@nice-move/init 0.5.2 → 0.6.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +4 -6
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as t}from"module";var e={9640:(t,e,r)=>{t=r.nmd(t);const n=(t,e)=>(...r)=>`\x1b[${t(...r)+e}m`,i=(t,e)=>(...r)=>{const n=t(...r);return`\x1b[${38+e};5;${n}m`},s=(t,e)=>(...r)=>{const n=t(...r);return`\x1b[${38+e};2;${n[0]};${n[1]};${n[2]}m`},o=t=>t,a=(t,e,r)=>[t,e,r],l=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{const n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let c;const h=(t,e,n,i)=>{void 0===c&&(c=r(841));const s=i?10:0,o={};for(const[r,i]of Object.entries(c)){const a="ansi16"===r?"ansi":r;r===e?o[a]=t(n,s):"object"==typeof i&&(o[a]=t(i[e],s))}return o};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",l(e.color,"ansi",(()=>h(n,"ansi16",o,!1))),l(e.color,"ansi256",(()=>h(i,"ansi256",o,!1))),l(e.color,"ansi16m",(()=>h(s,"rgb",a,!1))),l(e.bgColor,"ansi",(()=>h(n,"ansi16",o,!0))),l(e.bgColor,"ansi256",(()=>h(i,"ansi256",o,!0))),l(e.bgColor,"ansi16m",(()=>h(s,"rgb",a,!0))),e}})},633:t=>{t.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},6888:(t,e,r)=>{const{Buffer:n}=r(4300),i=Symbol.for("BufferList");function s(t){if(!(this instanceof s))return new s(t);s._init.call(this,t)}s._init=function(t){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)},s.prototype._new=function(t){return new s(t)},s.prototype._offset=function(t){if(0===t)return[0,0];let e=0;for(let r=0;r<this._bufs.length;r++){const n=e+this._bufs[r].length;if(t<n||r===this._bufs.length-1)return[r,t-e];e=n}},s.prototype._reverseOffset=function(t){const e=t[0];let r=t[1];for(let t=0;t<e;t++)r+=this._bufs[t].length;return r},s.prototype.get=function(t){if(t>this.length||t<0)return;const e=this._offset(t);return this._bufs[e[0]][e[1]]},s.prototype.slice=function(t,e){return"number"==typeof t&&t<0&&(t+=this.length),"number"==typeof e&&e<0&&(e+=this.length),this.copy(null,0,t,e)},s.prototype.copy=function(t,e,r,i){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof i||i>this.length)&&(i=this.length),r>=this.length)return t||n.alloc(0);if(i<=0)return t||n.alloc(0);const s=!!t,o=this._offset(r),a=i-r;let l=a,c=s&&e||0,h=o[1];if(0===r&&i===this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:n.concat(this._bufs,this.length);for(let e=0;e<this._bufs.length;e++)this._bufs[e].copy(t,c),c+=this._bufs[e].length;return t}if(l<=this._bufs[o[0]].length-h)return s?this._bufs[o[0]].copy(t,e,h,h+l):this._bufs[o[0]].slice(h,h+l);s||(t=n.allocUnsafe(a));for(let e=o[0];e<this._bufs.length;e++){const r=this._bufs[e].length-h;if(!(l>r)){this._bufs[e].copy(t,c,h,h+l),c+=r;break}this._bufs[e].copy(t,c,h),c+=r,l-=r,h&&(h=0)}return t.length>c?t.slice(0,c):t},s.prototype.shallowSlice=function(t,e){if(t=t||0,e="number"!=typeof e?this.length:e,t<0&&(t+=this.length),e<0&&(e+=this.length),t===e)return this._new();const r=this._offset(t),n=this._offset(e),i=this._bufs.slice(r[0],n[0]+1);return 0===n[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,n[1]),0!==r[1]&&(i[0]=i[0].slice(r[1])),this._new(i)},s.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)},s.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){const t=this._new();for(let e=0;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},s.prototype.append=function(t){if(null==t)return this;if(t.buffer)this._appendBuffer(n.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let e=0;e<t.length;e++)this.append(t[e]);else if(this._isBufferList(t))for(let e=0;e<t._bufs.length;e++)this.append(t._bufs[e]);else"number"==typeof t&&(t=t.toString()),this._appendBuffer(n.from(t));return this},s.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length},s.prototype.indexOf=function(t,e,r){if(void 0===r&&"string"==typeof e&&(r=e,e=void 0),"function"==typeof t||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"==typeof t?t=n.from([t]):"string"==typeof t?t=n.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=n.from(t.buffer,t.byteOffset,t.byteLength):n.isBuffer(t)||(t=n.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),0===t.length)return e>this.length?this.length:e;const i=this._offset(e);let s=i[0],o=i[1];for(;s<this._bufs.length;s++){const e=this._bufs[s];for(;o<e.length;){if(e.length-o>=t.length){const r=e.indexOf(t,o);if(-1!==r)return this._reverseOffset([s,r]);o=e.length-t.length+1}else{const e=this._reverseOffset([s,o]);if(this._match(e,t))return e;o++}}o=0}return-1},s.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0},function(){const t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const e in t)!function(e){s.prototype[e]=null===t[e]?function(t,r){return this.slice(t,t+r)[e](0,r)}:function(r=0){return this.slice(r,r+t[e])[e](0)}}(e)}(),s.prototype._isBufferList=function(t){return t instanceof s||s.isBufferList(t)},s.isBufferList=function(t){return null!=t&&t[i]},t.exports=s},9050:(t,e,r)=>{const n=r(1258).Duplex,i=r(8874),s=r(6888);function o(t){if(!(this instanceof o))return new o(t);if("function"==typeof t){this._callback=t;const e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",(function(t){t.on("error",e)})),this.on("unpipe",(function(t){t.removeListener("error",e)})),t=null}s._init.call(this,t),n.call(this)}i(o,n),Object.assign(o.prototype,s.prototype),o.prototype._new=function(t){return new o(t)},o.prototype._write=function(t,e,r){this._appendBuffer(t),"function"==typeof r&&r()},o.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)},o.prototype.end=function(t){n.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(t,e){this._bufs.length=0,this.length=0,e(t)},o.prototype._isBufferList=function(t){return t instanceof o||t instanceof s||o.isBufferList(t)},o.isBufferList=s.isBufferList,t.exports=o,t.exports.BufferListStream=o,t.exports.BufferList=s},8794:(t,e,r)=>{const n=r(773);t.exports=(t,e)=>new n(t,e)},773:(t,e,r)=>{const n=r(1017),i=r(3685),s=r(5687),o=r(3477),a=r(9796),{URL:l}=r(7310),c=r(8014),h=["gzip","deflate"];t.exports=class{constructor(t,e="GET"){return this.url="string"==typeof t?new l(t):t,this.method=e,this.data=null,this.sendDataAs=null,this.reqHeaders={},this.streamEnabled=!1,this.compressionEnabled=!1,this.timeoutTime=null,this.coreOptions={},this.resOptions={maxBuffer:5e7},this}query(t,e){return"object"==typeof t?Object.keys(t).forEach((e=>{this.url.searchParams.append(e,t[e])})):this.url.searchParams.append(t,e),this}path(t){return this.url.pathname=n.join(this.url.pathname,t),this}body(t,e){return this.sendDataAs="object"!=typeof t||e||Buffer.isBuffer(t)?e?e.toLowerCase():"buffer":"json",this.data="form"===this.sendDataAs?o.stringify(t):"json"===this.sendDataAs?JSON.stringify(t):t,this}header(t,e){return"object"==typeof t?Object.keys(t).forEach((e=>{this.reqHeaders[e.toLowerCase()]=t[e]})):this.reqHeaders[t.toLowerCase()]=e,this}timeout(t){return this.timeoutTime=t,this}option(t,e){return this.coreOptions[t]=e,this}stream(){return this.streamEnabled=!0,this}compress(){return this.compressionEnabled=!0,this.reqHeaders["accept-encoding"]||(this.reqHeaders["accept-encoding"]=h.join(", ")),this}send(){return new Promise(((t,e)=>{this.data&&(this.reqHeaders.hasOwnProperty("content-type")||("json"===this.sendDataAs?this.reqHeaders["content-type"]="application/json":"form"===this.sendDataAs&&(this.reqHeaders["content-type"]="application/x-www-form-urlencoded")),this.reqHeaders.hasOwnProperty("content-length")||(this.reqHeaders["content-length"]=Buffer.byteLength(this.data)));const r=Object.assign({protocol:this.url.protocol,host:this.url.hostname,port:this.url.port,path:this.url.pathname+(null===this.url.search?"":this.url.search),method:this.method,headers:this.reqHeaders},this.coreOptions);let n;const o=r=>{let n,i=r;this.compressionEnabled&&("gzip"===r.headers["content-encoding"]?i=r.pipe(a.createGunzip()):"deflate"===r.headers["content-encoding"]&&(i=r.pipe(a.createInflate()))),this.streamEnabled?t(i):(n=new c(r,this.resOptions),i.on("error",(t=>{e(t)})),i.on("aborted",(()=>{e(new Error("Server aborted request"))})),i.on("data",(t=>{n._addChunk(t),null!==this.resOptions.maxBuffer&&n.body.length>this.resOptions.maxBuffer&&(i.destroy(),e("Received a response which was longer than acceptable when buffering. ("+this.body.length+" bytes)"))})),i.on("end",(()=>{t(n)})))};if("http:"===this.url.protocol)n=i.request(r,o);else{if("https:"!==this.url.protocol)throw new Error("Bad URL protocol: "+this.url.protocol);n=s.request(r,o)}this.timeoutTime&&n.setTimeout(this.timeoutTime,(()=>{n.abort(),this.streamEnabled||e(new Error("Timeout reached"))})),n.on("error",(t=>{e(t)})),this.data&&n.write(this.data),n.end()}))}}},8014:t=>{t.exports=class{constructor(t,e){this.coreRes=t,this.resOptions=e,this.body=Buffer.alloc(0),this.headers=t.headers,this.statusCode=t.statusCode}_addChunk(t){this.body=Buffer.concat([this.body,t])}async json(){return 204===this.statusCode?null:JSON.parse(this.body)}async text(){return this.body.toString()}}},6183:(t,e,r)=>{const n=r(2037),i=r(6224),s=r(8137),{env:o}=process;let a;function l(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function c(t,e){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(t&&!e&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const t=n.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),t.exports={supportsColor:function(t){return l(c(t,t&&t.isTTY))},stdout:l(c(!0,i.isatty(1))),stderr:l(c(!0,i.isatty(2)))}},2645:(t,e,r)=>{const n=r(9640),{stdout:i,stderr:s}=r(6183),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(1957),{isArray:l}=Array,c=["ansi","ansi","ansi256","ansi16m"],h=Object.create(null);class u{constructor(t){return d(t)}}const d=t=>{const e={};return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;t.level=void 0===e.level?r:e.level})(e,t),e.template=(...t)=>w(e.template,...t),Object.setPrototypeOf(e,f.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=u,e.template};function f(t){return d(t)}for(const[t,e]of Object.entries(n))h[t]={get(){const r=y(this,g(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};h.visible={get(){const t=y(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of p)h[t]={get(){const{level:e}=this;return function(...r){const i=g(n.color[c[e]][t](...r),n.color.close,this._styler);return y(this,i,this._isEmpty)}}};for(const t of p){h["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const i=g(n.bgColor[c[e]][t](...r),n.bgColor.close,this._styler);return y(this,i,this._isEmpty)}}}}const m=Object.defineProperties((()=>{}),{...h,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),g=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},y=(t,e,r)=>{const n=(...t)=>l(t[0])&&l(t[0].raw)?b(n,w(n,...t)):b(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,m),n._generator=t,n._styler=e,n._isEmpty=r,n},b=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(-1!==e.indexOf("\x1b"))for(;void 0!==r;)e=o(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=a(e,i,n,s)),n+e+i};let v;const w=(t,...e)=>{const[n]=e;if(!l(n)||!l(n.raw))return e.join(" ");const i=e.slice(1),s=[n.raw[0]];for(let t=1;t<n.length;t++)s.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[t]));return void 0===v&&(v=r(1070)),v(t,s.join(""))};Object.defineProperties(f.prototype,h);const E=f();E.supportsColor=i,E.stderr=f({level:s?s.level:0}),E.stderr.supportsColor=s,t.exports=E},1070:t=>{const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function o(t){const e="u"===t[0],r="{"===t[1];return e&&!r&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):s.get(t)||t}function a(t,e){const r=[],s=e.trim().split(/\s*,\s*/g);let a;for(const e of s){const s=Number(e);if(Number.isNaN(s)){if(!(a=e.match(n)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(a[2].replace(i,((t,e,r)=>e?o(e):r)))}else r.push(s)}return r}function l(t){r.lastIndex=0;const e=[];let n;for(;null!==(n=r.exec(t));){const t=n[1];if(n[2]){const r=a(t,n[2]);e.push([t].concat(r))}else e.push([t])}return e}function c(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const[t,e]of Object.entries(r))if(Array.isArray(e)){if(!(t in n))throw new Error(`Unknown Chalk style: ${t}`);n=e.length>0?n[t](...e):n[t]}return n}t.exports=(t,r)=>{const n=[],i=[];let s=[];if(r.replace(e,((e,r,a,h,u,d)=>{if(r)s.push(o(r));else if(h){const e=s.join("");s=[],i.push(0===n.length?e:c(t,n)(e)),n.push({inverse:a,styles:l(h)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(c(t,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const t=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")}},1957:t=>{t.exports={stringReplaceAll:(t,e,r)=>{let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.substr(s),o},stringEncaseCRLFWithFirstIndex:(t,e,r,n)=>{let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.substr(i),s}}},3372:(t,e,r)=>{const n=Object.assign({},r(2548)),i=Object.keys(n);Object.defineProperty(n,"random",{get(){const t=Math.floor(Math.random()*i.length),e=i[t];return n[e]}}),t.exports=n},8138:t=>{var e=function(){function t(e,n,i,s){"object"==typeof n&&(i=n.depth,s=n.prototype,n.filter,n=n.circular);var o=[],a=[],l="undefined"!=typeof Buffer;return void 0===n&&(n=!0),void 0===i&&(i=1/0),function e(i,c){if(null===i)return null;if(0==c)return i;var h,u;if("object"!=typeof i)return i;if(t.__isArray(i))h=[];else if(t.__isRegExp(i))h=new RegExp(i.source,r(i)),i.lastIndex&&(h.lastIndex=i.lastIndex);else if(t.__isDate(i))h=new Date(i.getTime());else{if(l&&Buffer.isBuffer(i))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(h),h;void 0===s?(u=Object.getPrototypeOf(i),h=Object.create(u)):(h=Object.create(s),u=s)}if(n){var d=o.indexOf(i);if(-1!=d)return a[d];o.push(i),a.push(h)}for(var f in i){var p;u&&(p=Object.getOwnPropertyDescriptor(u,f)),p&&null==p.set||(h[f]=e(i[f],c-1))}return h}(e,i)}function e(t){return Object.prototype.toString.call(t)}function r(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return t.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},t.__objToStr=e,t.__isDate=function(t){return"object"==typeof t&&"[object Date]"===e(t)},t.__isArray=function(t){return"object"==typeof t&&"[object Array]"===e(t)},t.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===e(t)},t.__getRegExpFlags=r,t}();t.exports&&(t.exports=e)},4959:(t,e,r)=>{const n=r(1103),i={};for(const t of Object.keys(n))i[n[t]]=t;const s={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"]}};t.exports=s;for(const t of Object.keys(s)){if(!("channels"in s[t]))throw new Error("missing channels property: "+t);if(!("labels"in s[t]))throw new Error("missing channel labels property: "+t);if(s[t].labels.length!==s[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=s[t];delete s[t].channels,delete s[t].labels,Object.defineProperty(s[t],"channels",{value:e}),Object.defineProperty(s[t],"labels",{value:r})}s.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i;let a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const c=(i+s)/2;return l=s===i?0:c<=.5?o/(s+i):o/(2-s-i),[a,100*l,100*c]},s.rgb.hsv=function(t){let e,r,n,i,s;const o=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(o,a,l),h=c-Math.min(o,a,l),u=function(t){return(c-t)/6/h+.5};return 0===h?(i=0,s=0):(s=h/c,e=u(o),r=u(a),n=u(l),o===c?i=n-r:a===c?i=1/3+e-n:l===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*c]},s.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const i=s.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n);return[100*((1-e-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(t){const e=i[t];if(e)return e;let r,s=1/0;for(const e of Object.keys(n)){const i=n[e],l=(a=i,((o=t)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);l<s&&(s=l,r=e)}var o,a;return r},s.keyword.rgb=function(t){return n[t]},s.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},s.rgb.lab=function(t){const e=s.rgb.xyz(t);let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},s.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let i,s,o;if(0===r)return o=255*n,[o,o,o];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,l=[0,0,0];for(let t=0;t<3;t++)s=e+1/3*-(t-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,l[t]=255*o;return l},s.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,i=r;const s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;return[e,100*(0===n?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01);let s,o;o=(2-r)*n;const a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,100*s,100*o]},s.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*e),a=1-n;s=6*e-o,0!=(1&o)&&(s=1-s);const l=r+s*(a-r);let c,h,u;switch(o){default:case 6:case 0:c=a,h=l,u=r;break;case 1:c=l,h=a,u=r;break;case 2:c=r,h=a,u=l;break;case 3:c=r,h=l,u=a;break;case 4:c=l,h=r,u=a;break;case 5:c=a,h=r,u=l}return[255*c,255*h,255*u]},s.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},s.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let i,s,o;return i=3.2406*e+-1.5372*r+-.4986*n,s=-.9689*e+1.8758*r+.0415*n,o=.0557*e+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*i,255*s,255*o]},s.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(e-r),200*(r-n)]},s.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const i=r**3,s=e**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},s.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(t,e=null){const[r,n,i]=t;let o=null===e?s.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(a+=60),a},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},s.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},s.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s;let a,l;return a=o<1?s/(1-o):0,l=o<=0?0:i===e?(r-n)/o%6:i===r?2+(n-e)/o:4+(e-r)/o,l/=6,l%=1,[360*l,100*o,100*a]},s.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},s.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=e%1*6,o=s%1,a=1-o;let l=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}return l=(1-r)*n,[255*(r*i[0]+l),255*(r*i[1]+l),255*(r*i[2]+l)]},s.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},s.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},s.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},s.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=function(t){return[0,0,t[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},841:(t,e,r)=>{const n=r(4959),i=r(9325),s={};Object.keys(n).forEach((t=>{s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});const e=i(t);Object.keys(e).forEach((r=>{const n=e[r];s[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),s[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=s},9325:(t,e,r)=>{const n=r(4959);function i(t){const e=function(){const t={},e=Object.keys(n);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),i=Object.keys(n[t]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=e[n];-1===o.distance&&(o.distance=e[t].distance+1,o.parent=t,r.unshift(n))}}return e}function s(t,e){return function(r){return e(t(r))}}function o(t,e){const r=[e[t].parent,t];let i=n[e[t].parent][t],o=e[t].parent;for(;e[o].parent;)r.unshift(e[o].parent),i=s(n[e[o].parent][o],i),o=e[o].parent;return i.conversion=r,i}t.exports=function(t){const e=i(t),r={},n=Object.keys(e);for(let t=n.length,i=0;i<t;i++){const t=n[i];null!==e[t].parent&&(r[t]=o(t,e))}return r}},1103:t=>{t.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]}},8995:(t,e,r)=>{const n=r(2081),i=r(9015),s=r(5350);function o(t,e,r){const o=i(t,e,r),a=n.spawn(o.command,o.args,o.options);return s.hookChildProcess(a,o),a}t.exports=o,t.exports.spawn=o,t.exports.sync=function(t,e,r){const o=i(t,e,r),a=n.spawnSync(o.command,o.args,o.options);return a.error=a.error||s.verifyENOENTSync(a.status,o),a},t.exports._parse=i,t.exports._enoent=s},5350:t=>{const e="win32"===process.platform;function r(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function n(t,n){return e&&1===t&&!n.file?r(n.original,"spawn"):null}t.exports={hookChildProcess:function(t,r){if(!e)return;const i=t.emit;t.emit=function(e,s){if("exit"===e){const e=n(s,r);if(e)return i.call(t,"error",e)}return i.apply(t,arguments)}},verifyENOENT:n,verifyENOENTSync:function(t,n){return e&&1===t&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},9015:(t,e,r)=>{const n=r(1017),i=r(5358),s=r(6214),o=r(3106),a="win32"===process.platform,l=/\.(?:com|exe)$/i,c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function h(t){if(!a)return t;const e=function(t){t.file=i(t);const e=t.file&&o(t.file);return e?(t.args.unshift(t.file),t.command=e,i(t)):t.file}(t),r=!l.test(e);if(t.options.forceShell||r){const r=c.test(e);t.command=n.normalize(t.command),t.command=s.command(t.command),t.args=t.args.map((t=>s.argument(t,r)));const i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null);const n={command:t,args:e=e?e.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:t,args:e}};return r.shell?n:h(n)}},6214:t=>{const e=/([()\][%!^"`<>&|;, *?])/g;t.exports.command=function(t){return t=t.replace(e,"^$1")},t.exports.argument=function(t,r){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),r&&(t=t.replace(e,"^$1")),t}},3106:(t,e,r)=>{const n=r(7147),i=r(4256);t.exports=function(t){const e=Buffer.alloc(150);let r;try{r=n.openSync(t,"r"),n.readSync(r,e,0,150,0),n.closeSync(r)}catch(t){}return i(e.toString())}},5358:(t,e,r)=>{const n=r(1017),i=r(1468),s=r(6569);function o(t,e){const r=t.options.env||process.env,o=process.cwd(),a=null!=t.options.cwd,l=a&&void 0!==process.chdir&&!process.chdir.disabled;if(l)try{process.chdir(t.options.cwd)}catch(t){}let c;try{c=i.sync(t.command,{path:r[s({env:r})],pathExt:e?n.delimiter:void 0})}catch(t){}finally{l&&process.chdir(o)}return c&&(c=n.resolve(a?t.options.cwd:"",c)),c}t.exports=function(t){return o(t)||o(t,!0)}},1468:(t,e,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(1017),s=n?";":":",o=r(5909),a=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),l=(t,e)=>{const r=e.colon||s,i=t.match(/\//)||n&&t.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],o=n?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?o.split(r):[""];return n&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:o}},c=(t,e,r)=>{"function"==typeof e&&(r=e,e={}),e||(e={});const{pathEnv:n,pathExt:s,pathExtExe:c}=l(t,e),h=[],u=r=>new Promise(((s,o)=>{if(r===n.length)return e.all&&h.length?s(h):o(a(t));const l=n[r],c=/^".*"$/.test(l)?l.slice(1,-1):l,u=i.join(c,t),f=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;s(d(f,r,0))})),d=(t,r,n)=>new Promise(((i,a)=>{if(n===s.length)return i(u(r+1));const l=s[n];o(t+l,{pathExt:c},((s,o)=>{if(!s&&o){if(!e.all)return i(t+l);h.push(t+l)}return i(d(t,r,n+1))}))}));return r?u(0).then((t=>r(null,t)),r):u(0)};t.exports=c,c.sync=(t,e)=>{e=e||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=l(t,e),c=[];for(let a=0;a<r.length;a++){const l=r[a],h=/^".*"$/.test(l)?l.slice(1,-1):l,u=i.join(h,t),d=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let t=0;t<n.length;t++){const r=d+n[t];try{if(o.sync(r,{pathExt:s})){if(!e.all)return r;c.push(r)}}catch(t){}}}if(e.all&&c.length)return c;if(e.nothrow)return null;throw a(t)}},9714:t=>{var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function i(t,e,r){return t.concat(e).map((function(t){return n(t,r)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function o(t,e){try{return e in t}catch(t){return!1}}function a(t,e,r){var i={};return r.isMergeableObject(t)&&s(t).forEach((function(e){i[e]=n(t[e],r)})),s(e).forEach((function(s){(function(t,e){return o(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(o(t,s)&&r.isMergeableObject(e[s])?i[s]=function(t,e){if(!e.customMerge)return l;var r=e.customMerge(t);return"function"==typeof r?r:l}(s,r)(t[s],e[s],r):i[s]=n(e[s],r))})),i}function l(t,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||e,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(t)?o?s.arrayMerge(t,r,s):a(t,r,s):n(r,s)}l.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return l(t,r,e)}),{})};var c=l;t.exports=c},2526:(t,e,r)=>{var n=r(8138);t.exports=function(t,e){return t=t||{},Object.keys(e).forEach((function(r){void 0===t[r]&&(t[r]=n(e[r]))})),t}},8797:(t,e,r)=>{var n=r(9928),i=function(){},s=function(t,e,r){if("function"==typeof e)return s(t,null,e);e||(e={}),r=n(r||i);var o=t._writableState,a=t._readableState,l=e.readable||!1!==e.readable&&t.readable,c=e.writable||!1!==e.writable&&t.writable,h=!1,u=function(){t.writable||d()},d=function(){c=!1,l||r.call(t)},f=function(){l=!1,c||r.call(t)},p=function(e){r.call(t,e?new Error("exited with error code: "+e):null)},m=function(e){r.call(t,e)},g=function(){process.nextTick(y)},y=function(){if(!h)return(!l||a&&a.ended&&!a.destroyed)&&(!c||o&&o.ended&&!o.destroyed)?void 0:r.call(t,new Error("premature close"))},b=function(){t.req.on("finish",d)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?c&&!o&&(t.on("end",u),t.on("close",u)):(t.on("complete",d),t.on("abort",g),t.req?b():t.on("request",b)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",p),t.on("end",f),t.on("finish",d),!1!==e.error&&t.on("error",m),t.on("close",g),function(){h=!0,t.removeListener("complete",d),t.removeListener("abort",g),t.removeListener("request",b),t.req&&t.req.removeListener("finish",d),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",d),t.removeListener("exit",p),t.removeListener("end",f),t.removeListener("error",m),t.removeListener("close",g)}};t.exports=s},3799:(t,e,r)=>{const n=r(1017),i=r(2081),s=r(8995),o=r(6178),a=r(9002),l=r(3937),c=r(7860),h=r(407),{spawnedKill:u,spawnedCancel:d,setupTimeout:f,setExitHandler:p}=r(5454),{handleInput:m,getSpawnedResult:g,makeAllStream:y,validateInputSync:b}=r(3036),{mergePromise:v,getSpawnedPromise:w}=r(4578),{joinCommand:E,parseCommand:_}=r(2899),x=(t,e,r={})=>{const i=s._parse(t,e,r);return t=i.command,e=i.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=i.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{const s=e?{...process.env,...t}:t;return r?a.env({env:s,cwd:n,execPath:i}):s})(r),r.stdio=h(r),"win32"===process.platform&&"cmd"===n.basename(t,".exe")&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},S=(t,e,r)=>"string"==typeof e||Buffer.isBuffer(e)?t.stripFinalNewline?o(e):e:void 0===r?void 0:"",O=(t,e,r)=>{const n=x(t,e,r),o=E(t,e);let a;try{a=i.spawn(n.file,n.args,n.options)}catch(t){const e=new i.ChildProcess,r=Promise.reject(c({error:t,stdout:"",stderr:"",all:"",command:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return v(e,r)}const h=w(a),b=f(a,n.options,h),_=p(a,n.options,b),O={isCanceled:!1};a.kill=u.bind(null,a.kill.bind(a)),a.cancel=d.bind(null,a,O);const T=l((async()=>{const[{error:t,exitCode:e,signal:r,timedOut:i},s,l,h]=await g(a,n.options,_),u=S(n.options,s),d=S(n.options,l),f=S(n.options,h);if(t||0!==e||null!==r){const s=c({error:t,exitCode:e,signal:r,stdout:u,stderr:d,all:f,command:o,parsed:n,timedOut:i,isCanceled:O.isCanceled,killed:a.killed});if(!n.options.reject)return s;throw s}return{command:o,exitCode:0,stdout:u,stderr:d,all:f,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return s._enoent.hookChildProcess(a,n.parsed),m(a,n.options.input),a.all=y(a,n.options),v(a,T)};t.exports=O,t.exports.sync=(t,e,r)=>{const n=x(t,e,r),s=E(t,e);let o;b(n.options);try{o=i.spawnSync(n.file,n.args,n.options)}catch(t){throw c({error:t,stdout:"",stderr:"",all:"",command:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=S(n.options,o.stdout,o.error),l=S(n.options,o.stderr,o.error);if(o.error||0!==o.status||null!==o.signal){const t=c({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:s,parsed:n,timedOut:o.error&&"ETIMEDOUT"===o.error.code,isCanceled:!1,killed:null!==o.signal});if(!n.options.reject)return t;throw t}return{command:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(t,e)=>{const[r,...n]=_(t);return O(r,n,e)},t.exports.commandSync=(t,e)=>{const[r,...n]=_(t);return O.sync(r,n,e)},t.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&"object"==typeof e&&(r=e,e=[]);const n=h.node(r),i=process.execArgv.filter((t=>!t.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return O(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}},2899:t=>{const e=/ +/g;t.exports={joinCommand:(t,e=[])=>Array.isArray(e)?[t,...e].join(" "):t,parseCommand:t=>{const r=[];for(const n of t.trim().split(e)){const t=r[r.length-1];t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${n}`:r.push(n)}return r}}},7860:(t,e,r)=>{const{signalsByName:n}=r(3954);t.exports=({stdout:t,stderr:e,all:r,error:i,signal:s,exitCode:o,command:a,timedOut:l,isCanceled:c,killed:h,parsed:{options:{timeout:u}}})=>{o=null===o?void 0:o;const d=void 0===(s=null===s?void 0:s)?void 0:n[s].description,f=(({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:l,timeout:u,errorCode:i&&i.code,signal:s,signalDescription:d,exitCode:o,isCanceled:c}),p=`Command ${f}: ${a}`,m="[object Error]"===Object.prototype.toString.call(i),g=m?`${p}\n${i.message}`:p,y=[g,e,t].filter(Boolean).join("\n");return m?(i.originalMessage=i.message,i.message=y):i=new Error(y),i.shortMessage=g,i.command=a,i.exitCode=o,i.signal=s,i.signalDescription=d,i.stdout=t,i.stderr=e,void 0!==r&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=Boolean(l),i.isCanceled=c,i.killed=h&&!l,i}},5454:(t,e,r)=>{const n=r(2037),i=r(260),s=(t,e,r,n)=>{if(!o(e,r,n))return;const i=l(r),s=setTimeout((()=>{t("SIGKILL")}),i);s.unref&&s.unref()},o=(t,{forceKillAfterTimeout:e},r)=>a(t)&&!1!==e&&r,a=t=>t===n.constants.signals.SIGTERM||"string"==typeof t&&"SIGTERM"===t.toUpperCase(),l=({forceKillAfterTimeout:t=!0})=>{if(!0===t)return 5e3;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t};t.exports={spawnedKill:(t,e="SIGTERM",r={})=>{const n=t(e);return s(t,e,r,n),n},spawnedCancel:(t,e)=>{t.kill()&&(e.isCanceled=!0)},setupTimeout:(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(0===e||void 0===e)return n;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);let i;const s=new Promise(((n,s)=>{i=setTimeout((()=>{((t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))})(t,r,s)}),e)})),o=n.finally((()=>{clearTimeout(i)}));return Promise.race([s,o])},setExitHandler:async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;const s=i((()=>{t.kill()}));return n.finally((()=>{s()}))}}},4578:t=>{const e=(async()=>{})().constructor.prototype,r=["then","catch","finally"].map((t=>[t,Reflect.getOwnPropertyDescriptor(e,t)]));t.exports={mergePromise:(t,e)=>{for(const[n,i]of r){const r="function"==typeof e?(...t)=>Reflect.apply(i.value,e(),t):i.value.bind(e);Reflect.defineProperty(t,n,{...i,value:r})}return t},getSpawnedPromise:t=>new Promise(((e,r)=>{t.on("exit",((t,r)=>{e({exitCode:t,signal:r})})),t.on("error",(t=>{r(t)})),t.stdin&&t.stdin.on("error",(t=>{r(t)}))}))}},407:t=>{const e=["stdin","stdout","stderr"],r=t=>{if(!t)return;const{stdio:r}=t;if(void 0===r)return e.map((e=>t[e]));if((t=>e.some((e=>void 0!==t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${e.map((t=>`\`${t}\``)).join(", ")}`);if("string"==typeof r)return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);const n=Math.max(r.length,e.length);return Array.from({length:n},((t,e)=>r[e]))};t.exports=r,t.exports.node=t=>{const e=r(t);return"ipc"===e?"ipc":void 0===e||"string"==typeof e?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}},3036:(t,e,r)=>{const n=r(8607),i=r(2935),s=r(873),o=async(t,e)=>{if(t){t.destroy();try{return await e}catch(t){return t.bufferedData}}},a=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(t&&r)return e?i(t,{encoding:e,maxBuffer:n}):i.buffer(t,{maxBuffer:n})};t.exports={handleInput:(t,e)=>{void 0!==e&&void 0!==t.stdin&&(n(e)?e.pipe(t.stdin):t.stdin.end(e))},makeAllStream:(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;const r=s();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},getSpawnedResult:async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},l)=>{const c=a(t,{encoding:n,buffer:i,maxBuffer:s}),h=a(e,{encoding:n,buffer:i,maxBuffer:s}),u=a(r,{encoding:n,buffer:i,maxBuffer:2*s});try{return await Promise.all([l,c,h,u])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},o(t,c),o(e,h),o(r,u)])}},validateInputSync:({input:t})=>{if(n(t))throw new TypeError("The `input` option cannot be a stream in sync mode")}}},2178:(t,e,r)=>{const n=r(85),i=r(1017),s=r(5145).mkdirsSync,o=r(2450).utimesMillisSync,a=r(3719);function l(t,e,r,s){const o=(s.dereference?n.statSync:n.lstatSync)(e);if(o.isDirectory())return function(t,e,r,i,s){return e?u(r,i,s):function(t,e,r,i){return n.mkdirSync(r),u(e,r,i),h(r,t)}(t.mode,r,i,s)}(o,t,e,r,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(t,e,r,i,s){return e?function(t,e,r,i){if(i.overwrite)return n.unlinkSync(r),c(t,e,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(t,r,i,s):c(t,r,i,s)}(o,t,e,r,s);if(o.isSymbolicLink())return function(t,e,r,s){let o=n.readlinkSync(e);s.dereference&&(o=i.resolve(process.cwd(),o));if(t){let t;try{t=n.readlinkSync(r)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return n.symlinkSync(o,r);throw t}if(s.dereference&&(t=i.resolve(process.cwd(),t)),a.isSrcSubdir(o,t))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${t}'.`);if(n.statSync(r).isDirectory()&&a.isSrcSubdir(t,o))throw new Error(`Cannot overwrite '${t}' with '${o}'.`);return function(t,e){return n.unlinkSync(e),n.symlinkSync(t,e)}(o,r)}return n.symlinkSync(o,r)}(t,e,r,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${e}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${e}`);throw new Error(`Unknown file: ${e}`)}function c(t,e,r,i){return n.copyFileSync(e,r),i.preserveTimestamps&&function(t,e,r){(function(t){return 0==(128&t)})(t)&&function(t,e){h(t,128|e)}(r,t);(function(t,e){const r=n.statSync(t);o(e,r.atime,r.mtime)})(e,r)}(t.mode,e,r),h(r,t.mode)}function h(t,e){return n.chmodSync(t,e)}function u(t,e,r){n.readdirSync(t).forEach((n=>function(t,e,r,n){const s=i.join(e,t),o=i.join(r,t),{destStat:c}=a.checkPathsSync(s,o,"copy",n);return function(t,e,r,n){if(!n.filter||n.filter(e,r))return l(t,e,r,n)}(c,s,o,n)}(n,t,e,r)))}t.exports=function(t,e,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:o,destStat:c}=a.checkPathsSync(t,e,"copy",r);return a.checkParentPathsSync(t,o,e,"copy"),function(t,e,r,o){if(o.filter&&!o.filter(e,r))return;const a=i.dirname(r);n.existsSync(a)||s(a);return l(t,e,r,o)}(c,t,e,r)}},5205:(t,e,r)=>{const n=r(85),i=r(1017),s=r(5145).mkdirs,o=r(9699).pathExists,a=r(2450).utimesMillis,l=r(3719);function c(t,e,r,n,a){const l=i.dirname(r);o(l,((i,o)=>i?a(i):o?u(t,e,r,n,a):void s(l,(i=>i?a(i):u(t,e,r,n,a)))))}function h(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then((o=>o?t(e,r,n,i,s):s()),(t=>s(t)))}function u(t,e,r,i,s){(i.dereference?n.stat:n.lstat)(e,((o,a)=>o?s(o):a.isDirectory()?function(t,e,r,i,s,o){return e?m(r,i,s,o):function(t,e,r,i,s){n.mkdir(r,(n=>{if(n)return s(n);m(e,r,i,(e=>e?s(e):p(r,t,s)))}))}(t.mode,r,i,s,o)}(a,t,e,r,i,s):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(t,e,r,i,s,o){return e?function(t,e,r,i,s){if(!i.overwrite)return i.errorOnExist?s(new Error(`'${r}' already exists`)):s();n.unlink(r,(n=>n?s(n):d(t,e,r,i,s)))}(t,r,i,s,o):d(t,r,i,s,o)}(a,t,e,r,i,s):a.isSymbolicLink()?y(t,e,r,i,s):a.isSocket()?s(new Error(`Cannot copy a socket file: ${e}`)):a.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${e}`)):s(new Error(`Unknown file: ${e}`))))}function d(t,e,r,i,s){n.copyFile(e,r,(n=>n?s(n):i.preserveTimestamps?function(t,e,r,n){if(function(t){return 0==(128&t)}(t))return function(t,e,r){return p(t,128|e,r)}(r,t,(i=>i?n(i):f(t,e,r,n)));return f(t,e,r,n)}(t.mode,e,r,s):p(r,t.mode,s)))}function f(t,e,r,i){!function(t,e,r){n.stat(t,((t,n)=>t?r(t):a(e,n.atime,n.mtime,r)))}(e,r,(e=>e?i(e):p(r,t,i)))}function p(t,e,r){return n.chmod(t,e,r)}function m(t,e,r,i){n.readdir(t,((n,s)=>n?i(n):g(s,t,e,r,i)))}function g(t,e,r,n,s){const o=t.pop();return o?function(t,e,r,n,s,o){const a=i.join(r,e),c=i.join(n,e);l.checkPaths(a,c,"copy",s,((e,i)=>{if(e)return o(e);const{destStat:l}=i;!function(t,e,r,n,i){n.filter?h(u,t,e,r,n,i):u(t,e,r,n,i)}(l,a,c,s,(e=>e?o(e):g(t,r,n,s,o)))}))}(t,o,e,r,n,s):s()}function y(t,e,r,s,o){n.readlink(e,((e,a)=>e?o(e):(s.dereference&&(a=i.resolve(process.cwd(),a)),t?void n.readlink(r,((e,c)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?n.symlink(a,r,o):o(e):(s.dereference&&(c=i.resolve(process.cwd(),c)),l.isSrcSubdir(a,c)?o(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&l.isSrcSubdir(c,a)?o(new Error(`Cannot overwrite '${c}' with '${a}'.`)):function(t,e,r){n.unlink(e,(i=>i?r(i):n.symlink(t,e,r)))}(a,r,o)))):n.symlink(a,r,o))))}t.exports=function(t,e,r,n){"function"!=typeof r||n?"function"==typeof r&&(r={filter:r}):(n=r,r={}),n=n||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),l.checkPaths(t,e,"copy",r,((i,s)=>{if(i)return n(i);const{srcStat:o,destStat:a}=s;l.checkParentPaths(t,o,e,"copy",(i=>i?n(i):r.filter?h(c,a,t,e,r,n):c(a,t,e,r,n)))}))}},1889:(t,e,r)=>{const n=r(5725).fromCallback;t.exports={copy:n(r(5205)),copySync:r(2178)}},4088:(t,e,r)=>{const n=r(5725).fromPromise,i=r(2143),s=r(1017),o=r(5145),a=r(3495),l=n((async function(t){let e;try{e=await i.readdir(t)}catch{return o.mkdirs(t)}return Promise.all(e.map((e=>a.remove(s.join(t,e)))))}));function c(t){let e;try{e=i.readdirSync(t)}catch{return o.mkdirsSync(t)}e.forEach((e=>{e=s.join(t,e),a.removeSync(e)}))}t.exports={emptyDirSync:c,emptydirSync:c,emptyDir:l,emptydir:l}},1454:(t,e,r)=>{const n=r(5725).fromCallback,i=r(1017),s=r(85),o=r(5145);t.exports={createFile:n((function(t,e){function r(){s.writeFile(t,"",(t=>{if(t)return e(t);e()}))}s.stat(t,((n,a)=>{if(!n&&a.isFile())return e();const l=i.dirname(t);s.stat(l,((t,n)=>{if(t)return"ENOENT"===t.code?o.mkdirs(l,(t=>{if(t)return e(t);r()})):e(t);n.isDirectory()?r():s.readdir(l,(t=>{if(t)return e(t)}))}))}))})),createFileSync:function(t){let e;try{e=s.statSync(t)}catch{}if(e&&e.isFile())return;const r=i.dirname(t);try{s.statSync(r).isDirectory()||s.readdirSync(r)}catch(t){if(!t||"ENOENT"!==t.code)throw t;o.mkdirsSync(r)}s.writeFileSync(t,"")}}},2689:(t,e,r)=>{const{createFile:n,createFileSync:i}=r(1454),{createLink:s,createLinkSync:o}=r(462),{createSymlink:a,createSymlinkSync:l}=r(3318);t.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:s,createLinkSync:o,ensureLink:s,ensureLinkSync:o,createSymlink:a,createSymlinkSync:l,ensureSymlink:a,ensureSymlinkSync:l}},462:(t,e,r)=>{const n=r(5725).fromCallback,i=r(1017),s=r(85),o=r(5145),a=r(9699).pathExists,{areIdentical:l}=r(3719);t.exports={createLink:n((function(t,e,r){function n(t,e){s.link(t,e,(t=>{if(t)return r(t);r(null)}))}s.lstat(e,((c,h)=>{s.lstat(t,((s,c)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);if(h&&l(c,h))return r(null);const u=i.dirname(e);a(u,((i,s)=>i?r(i):s?n(t,e):void o.mkdirs(u,(i=>{if(i)return r(i);n(t,e)}))))}))}))})),createLinkSync:function(t,e){let r;try{r=s.lstatSync(e)}catch{}try{const e=s.lstatSync(t);if(r&&l(e,r))return}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return s.existsSync(n)||o.mkdirsSync(n),s.linkSync(t,e)}}},7650:(t,e,r)=>{const n=r(1017),i=r(85),s=r(9699).pathExists;t.exports={symlinkPaths:function(t,e,r){if(n.isAbsolute(t))return i.lstat(t,(e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:t})));{const o=n.dirname(e),a=n.join(o,t);return s(a,((e,s)=>e?r(e):s?r(null,{toCwd:a,toDst:t}):i.lstat(t,(e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:n.relative(o,t)})))))}},symlinkPathsSync:function(t,e){let r;if(n.isAbsolute(t)){if(r=i.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const s=n.dirname(e),o=n.join(s,t);if(r=i.existsSync(o),r)return{toCwd:o,toDst:t};if(r=i.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:n.relative(s,t)}}}}},2947:(t,e,r)=>{const n=r(85);t.exports={symlinkType:function(t,e,r){if(r="function"==typeof e?e:r,e="function"!=typeof e&&e)return r(null,e);n.lstat(t,((t,n)=>{if(t)return r(null,"file");e=n&&n.isDirectory()?"dir":"file",r(null,e)}))},symlinkTypeSync:function(t,e){let r;if(e)return e;try{r=n.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},3318:(t,e,r)=>{const n=r(5725).fromCallback,i=r(1017),s=r(2143),o=r(5145),a=o.mkdirs,l=o.mkdirsSync,c=r(7650),h=c.symlinkPaths,u=c.symlinkPathsSync,d=r(2947),f=d.symlinkType,p=d.symlinkTypeSync,m=r(9699).pathExists,{areIdentical:g}=r(3719);function y(t,e,r,n){h(t,e,((o,l)=>{if(o)return n(o);t=l.toDst,f(l.toCwd,r,((r,o)=>{if(r)return n(r);const l=i.dirname(e);m(l,((r,i)=>r?n(r):i?s.symlink(t,e,o,n):void a(l,(r=>{if(r)return n(r);s.symlink(t,e,o,n)}))))}))}))}t.exports={createSymlink:n((function(t,e,r,n){n="function"==typeof r?r:n,r="function"!=typeof r&&r,s.lstat(e,((i,o)=>{!i&&o.isSymbolicLink()?Promise.all([s.stat(t),s.stat(e)]).then((([i,s])=>{if(g(i,s))return n(null);y(t,e,r,n)})):y(t,e,r,n)}))})),createSymlinkSync:function(t,e,r){let n;try{n=s.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){const r=s.statSync(t),n=s.statSync(e);if(g(r,n))return}const o=u(t,e);t=o.toDst,r=p(o.toCwd,r);const a=i.dirname(e);return s.existsSync(a)||l(a),s.symlinkSync(t,e,r)}}},2143:(t,e,r)=>{const n=r(5725).fromCallback,i=r(85),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((t=>"function"==typeof i[t]));Object.assign(e,i),s.forEach((t=>{e[t]=n(i[t])})),e.realpath.native=n(i.realpath.native),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise((e=>i.exists(t,e)))},e.read=function(t,e,r,n,s,o){return"function"==typeof o?i.read(t,e,r,n,s,o):new Promise(((o,a)=>{i.read(t,e,r,n,s,((t,e,r)=>{if(t)return a(t);o({bytesRead:e,buffer:r})}))}))},e.write=function(t,e,...r){return"function"==typeof r[r.length-1]?i.write(t,e,...r):new Promise(((n,s)=>{i.write(t,e,...r,((t,e,r)=>{if(t)return s(t);n({bytesWritten:e,buffer:r})}))}))},"function"==typeof i.writev&&(e.writev=function(t,e,...r){return"function"==typeof r[r.length-1]?i.writev(t,e,...r):new Promise(((n,s)=>{i.writev(t,e,...r,((t,e,r)=>{if(t)return s(t);n({bytesWritten:e,buffers:r})}))}))})},890:(t,e,r)=>{t.exports={...r(2143),...r(1889),...r(4088),...r(2689),...r(9270),...r(5145),...r(4146),...r(5048),...r(9699),...r(3495)}},9270:(t,e,r)=>{const n=r(5725).fromPromise,i=r(9691);i.outputJson=n(r(8700)),i.outputJsonSync=r(2286),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},9691:(t,e,r)=>{const n=r(370);t.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},2286:(t,e,r)=>{const{stringify:n}=r(7154),{outputFileSync:i}=r(5048);t.exports=function(t,e,r){const s=n(e,r);i(t,s,r)}},8700:(t,e,r)=>{const{stringify:n}=r(7154),{outputFile:i}=r(5048);t.exports=async function(t,e,r={}){const s=n(e,r);await i(t,s,r)}},5145:(t,e,r)=>{const n=r(5725).fromPromise,{makeDir:i,makeDirSync:s}=r(646),o=n(i);t.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},646:(t,e,r)=>{const n=r(2143),{checkPath:i}=r(8051),s=t=>"number"==typeof t?t:{mode:511,...t}.mode;t.exports.makeDir=async(t,e)=>(i(t),n.mkdir(t,{mode:s(e),recursive:!0})),t.exports.makeDirSync=(t,e)=>(i(t),n.mkdirSync(t,{mode:s(e),recursive:!0}))},8051:(t,e,r)=>{const n=r(1017);t.exports.checkPath=function(t){if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(n.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}}},4146:(t,e,r)=>{const n=r(5725).fromCallback;t.exports={move:n(r(2571)),moveSync:r(1612)}},1612:(t,e,r)=>{const n=r(85),i=r(1017),s=r(1889).copySync,o=r(3495).removeSync,a=r(5145).mkdirpSync,l=r(3719);function c(t,e,r){try{n.renameSync(t,e)}catch(n){if("EXDEV"!==n.code)throw n;return function(t,e,r){return s(t,e,{overwrite:r,errorOnExist:true}),o(t)}(t,e,r)}}t.exports=function(t,e,r){const s=(r=r||{}).overwrite||r.clobber||!1,{srcStat:h,isChangingCase:u=!1}=l.checkPathsSync(t,e,"move",r);return l.checkParentPathsSync(t,h,e,"move"),function(t){const e=i.dirname(t);return i.parse(e).root===e}(e)||a(i.dirname(e)),function(t,e,r,i){if(i)return c(t,e,r);if(r)return o(e),c(t,e,r);if(n.existsSync(e))throw new Error("dest already exists.");return c(t,e,r)}(t,e,s,u)}},2571:(t,e,r)=>{const n=r(85),i=r(1017),s=r(1889).copy,o=r(3495).remove,a=r(5145).mkdirp,l=r(9699).pathExists,c=r(3719);function h(t,e,r,n,i){return n?u(t,e,r,i):r?o(e,(n=>n?i(n):u(t,e,r,i))):void l(e,((n,s)=>n?i(n):s?i(new Error("dest already exists.")):u(t,e,r,i)))}function u(t,e,r,i){n.rename(t,e,(n=>n?"EXDEV"!==n.code?i(n):function(t,e,r,n){s(t,e,{overwrite:r,errorOnExist:!0},(e=>e?n(e):o(t,n)))}(t,e,r,i):i()))}t.exports=function(t,e,r,n){"function"==typeof r&&(n=r,r={});const s=r.overwrite||r.clobber||!1;c.checkPaths(t,e,"move",r,((r,o)=>{if(r)return n(r);const{srcStat:l,isChangingCase:u=!1}=o;c.checkParentPaths(t,l,e,"move",(r=>r?n(r):function(t){const e=i.dirname(t);return i.parse(e).root===e}(e)?h(t,e,s,u,n):void a(i.dirname(e),(r=>r?n(r):h(t,e,s,u,n)))))}))}},5048:(t,e,r)=>{const n=r(5725).fromCallback,i=r(85),s=r(1017),o=r(5145),a=r(9699).pathExists;t.exports={outputFile:n((function(t,e,r,n){"function"==typeof r&&(n=r,r="utf8");const l=s.dirname(t);a(l,((s,a)=>s?n(s):a?i.writeFile(t,e,r,n):void o.mkdirs(l,(s=>{if(s)return n(s);i.writeFile(t,e,r,n)}))))})),outputFileSync:function(t,...e){const r=s.dirname(t);if(i.existsSync(r))return i.writeFileSync(t,...e);o.mkdirsSync(r),i.writeFileSync(t,...e)}}},9699:(t,e,r)=>{const n=r(5725).fromPromise,i=r(2143);t.exports={pathExists:n((function(t){return i.access(t).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},3495:(t,e,r)=>{const n=r(85),i=r(5725).fromCallback,s=r(9373);t.exports={remove:i((function(t,e){if(n.rm)return n.rm(t,{recursive:!0,force:!0},e);s(t,e)})),removeSync:function(t){if(n.rmSync)return n.rmSync(t,{recursive:!0,force:!0});s.sync(t)}}},9373:(t,e,r)=>{const n=r(85),i=r(1017),s=r(9491),o="win32"===process.platform;function a(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((e=>{t[e]=t[e]||n[e],t[e+="Sync"]=t[e]||n[e]})),t.maxBusyTries=t.maxBusyTries||3}function l(t,e,r){let n=0;"function"==typeof e&&(r=e,e={}),s(t,"rimraf: missing path"),s.strictEqual(typeof t,"string","rimraf: path should be a string"),s.strictEqual(typeof r,"function","rimraf: callback function required"),s(e,"rimraf: invalid options argument provided"),s.strictEqual(typeof e,"object","rimraf: options should be object"),a(e),c(t,e,(function i(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&n<e.maxBusyTries){n++;return setTimeout((()=>c(t,e,i)),100*n)}"ENOENT"===s.code&&(s=null)}r(s)}))}function c(t,e,r){s(t),s(e),s("function"==typeof r),e.lstat(t,((n,i)=>n&&"ENOENT"===n.code?r(null):n&&"EPERM"===n.code&&o?h(t,e,n,r):i&&i.isDirectory()?d(t,e,n,r):void e.unlink(t,(n=>{if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return o?h(t,e,n,r):d(t,e,n,r);if("EISDIR"===n.code)return d(t,e,n,r)}return r(n)}))))}function h(t,e,r,n){s(t),s(e),s("function"==typeof n),e.chmod(t,438,(i=>{i?n("ENOENT"===i.code?null:r):e.stat(t,((i,s)=>{i?n("ENOENT"===i.code?null:r):s.isDirectory()?d(t,e,r,n):e.unlink(t,n)}))}))}function u(t,e,r){let n;s(t),s(e);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw r}try{n=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw r}n.isDirectory()?p(t,e,r):e.unlinkSync(t)}function d(t,e,r,n){s(t),s(e),s("function"==typeof n),e.rmdir(t,(o=>{!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?o&&"ENOTDIR"===o.code?n(r):n(o):function(t,e,r){s(t),s(e),s("function"==typeof r),e.readdir(t,((n,s)=>{if(n)return r(n);let o,a=s.length;if(0===a)return e.rmdir(t,r);s.forEach((n=>{l(i.join(t,n),e,(n=>{if(!o)return n?r(o=n):void(0==--a&&e.rmdir(t,r))}))}))}))}(t,e,n)}))}function f(t,e){let r;a(e=e||{}),s(t,"rimraf: missing path"),s.strictEqual(typeof t,"string","rimraf: path should be a string"),s(e,"rimraf: missing options"),s.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&o&&u(t,e,r)}try{r&&r.isDirectory()?p(t,e,null):e.unlinkSync(t)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return o?u(t,e,r):p(t,e,r);if("EISDIR"!==r.code)throw r;p(t,e,r)}}function p(t,e,r){s(t),s(e);try{e.rmdirSync(t)}catch(n){if("ENOTDIR"===n.code)throw r;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(t,e){if(s(t),s(e),e.readdirSync(t).forEach((r=>f(i.join(t,r),e))),!o){return e.rmdirSync(t,e)}{const r=Date.now();do{try{return e.rmdirSync(t,e)}catch{}}while(Date.now()-r<500)}}(t,e);else if("ENOENT"!==n.code)throw n}}t.exports=l,l.sync=f},3719:(t,e,r)=>{const n=r(2143),i=r(1017),s=r(3837);function o(t,e,r){const i=r.dereference?t=>n.stat(t,{bigint:!0}):t=>n.lstat(t,{bigint:!0});return Promise.all([i(t),i(e).catch((t=>{if("ENOENT"===t.code)return null;throw t}))]).then((([t,e])=>({srcStat:t,destStat:e})))}function a(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function l(t,e){const r=i.resolve(t).split(i.sep).filter((t=>t)),n=i.resolve(e).split(i.sep).filter((t=>t));return r.reduce(((t,e,r)=>t&&n[r]===e),!0)}function c(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,r,n,h){s.callbackify(o)(t,e,n,((n,s)=>{if(n)return h(n);const{srcStat:o,destStat:u}=s;if(u){if(a(o,u)){const n=i.basename(t),s=i.basename(e);return"move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase()?h(null,{srcStat:o,destStat:u,isChangingCase:!0}):h(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return h(new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`));if(!o.isDirectory()&&u.isDirectory())return h(new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`))}return o.isDirectory()&&l(t,e)?h(new Error(c(t,e,r))):h(null,{srcStat:o,destStat:u})}))},checkPathsSync:function(t,e,r,s){const{srcStat:o,destStat:h}=function(t,e,r){let i;const s=r.dereference?t=>n.statSync(t,{bigint:!0}):t=>n.lstatSync(t,{bigint:!0}),o=s(t);try{i=s(e)}catch(t){if("ENOENT"===t.code)return{srcStat:o,destStat:null};throw t}return{srcStat:o,destStat:i}}(t,e,s);if(h){if(a(o,h)){const n=i.basename(t),s=i.basename(e);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:o,destStat:h,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!h.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!o.isDirectory()&&h.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(o.isDirectory()&&l(t,e))throw new Error(c(t,e,r));return{srcStat:o,destStat:h}},checkParentPaths:function t(e,r,s,o,l){const h=i.resolve(i.dirname(e)),u=i.resolve(i.dirname(s));if(u===h||u===i.parse(u).root)return l();n.stat(u,{bigint:!0},((n,i)=>n?"ENOENT"===n.code?l():l(n):a(r,i)?l(new Error(c(e,s,o))):t(e,r,u,o,l)))},checkParentPathsSync:function t(e,r,s,o){const l=i.resolve(i.dirname(e)),h=i.resolve(i.dirname(s));if(h===l||h===i.parse(h).root)return;let u;try{u=n.statSync(h,{bigint:!0})}catch(t){if("ENOENT"===t.code)return;throw t}if(a(r,u))throw new Error(c(e,s,o));return t(e,r,h,o)},isSrcSubdir:l,areIdentical:a}},2450:(t,e,r)=>{const n=r(85);t.exports={utimesMillis:function(t,e,r,i){n.open(t,"r+",((t,s)=>{if(t)return i(t);n.futimes(s,e,r,(t=>{n.close(s,(e=>{i&&i(t||e)}))}))}))},utimesMillisSync:function(t,e,r){const i=n.openSync(t,"r+");return n.futimesSync(i,e,r),n.closeSync(i)}}},4337:(t,e,r)=>{const{PassThrough:n}=r(2781);t.exports=t=>{t={...t};const{array:e}=t;let{encoding:r}=t;const i="buffer"===r;let s=!1;e?s=!(r||i):r=r||"utf8",i&&(r=null);const o=new n({objectMode:s});r&&o.setEncoding(r);let a=0;const l=[];return o.on("data",(t=>{l.push(t),s?a=l.length:a+=t.length})),o.getBufferedValue=()=>e?l:i?Buffer.concat(l,a):l.join(""),o.getBufferedLength=()=>a,o}},2935:(t,e,r)=>{const{constants:n}=r(4300),i=r(3171),s=r(4337);class o extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function a(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};const{maxBuffer:r}=e;let a;return await new Promise(((l,c)=>{const h=t=>{t&&a.getBufferedLength()<=n.MAX_LENGTH&&(t.bufferedData=a.getBufferedValue()),c(t)};a=i(t,s(e),(t=>{t?h(t):l()})),a.on("data",(()=>{a.getBufferedLength()>r&&h(new o)}))})),a.getBufferedValue()}t.exports=a,t.exports.default=a,t.exports.buffer=(t,e)=>a(t,{...e,encoding:"buffer"}),t.exports.array=(t,e)=>a(t,{...e,array:!0}),t.exports.MaxBufferError=o},4203:t=>{t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var r={__proto__:e(t)};else r=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})),r};var e=Object.getPrototypeOf||function(t){return t.__proto__}},85:(t,e,r)=>{var n,i,s=r(7147),o=r(2965),a=r(5361),l=r(4203),c=r(3837);function h(t,e){Object.defineProperty(t,n,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var u,d=function(){};if(c.debuglog?d=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var t=c.format.apply(c,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!s[n]){var f=global[n]||[];h(s,f),s.close=function(t){function e(e,r){return t.call(s,e,(function(t){t||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(e,i,{value:t}),e}(s.close),s.closeSync=function(t){function e(e){t.apply(s,arguments),g()}return Object.defineProperty(e,i,{value:t}),e}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(9491).equal(s[n].length,0)}))}function p(t){o(t),t.gracefulify=p,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,n){"function"==typeof r&&(n=r,r=null);return function t(r,n,i,s){return e(r,n,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof i&&i.apply(this,arguments):m([t,[r,n,i],e,s||Date.now(),Date.now()])}))}(t,r,n)};var r=t.writeFile;t.writeFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,s,o){return r(e,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):m([t,[e,n,i,s],r,o||Date.now(),Date.now()])}))}(t,e,n,i)};var n=t.appendFile;n&&(t.appendFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,s,o){return n(e,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):m([t,[e,r,i,s],n,o||Date.now(),Date.now()])}))}(t,e,r,i)});var i=t.copyFile;i&&(t.copyFile=function(t,e,r,n){"function"==typeof r&&(n=r,r=0);return function t(e,r,n,s,o){return i(e,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):m([t,[e,r,n,s],i,o||Date.now(),Date.now()])}))}(t,e,r,n)});var s=t.readdir;if(t.readdir=function(t,e,r){"function"==typeof e&&(r=e,e=null);return function t(e,r,n,i){return s(e,r,(function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(o&&o.sort&&o.sort(),"function"==typeof n&&n.call(this,s,o)):m([t,[e,r,n],s,i||Date.now(),Date.now()])}))}(t,e,r)},"v0.8"===process.version.substr(0,4)){var l=a(t);f=l.ReadStream,g=l.WriteStream}var c=t.ReadStream;c&&(f.prototype=Object.create(c.prototype),f.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,(function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())}))});var h=t.WriteStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,(function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return f},set:function(t){f=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return g},set:function(t){g=t},enumerable:!0,configurable:!0});var u=f;Object.defineProperty(t,"FileReadStream",{get:function(){return u},set:function(t){u=t},enumerable:!0,configurable:!0});var d=g;function f(t,e){return this instanceof f?(c.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function g(t,e){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return d},set:function(t){d=t},enumerable:!0,configurable:!0});var y=t.open;function b(t,e,r,n){return"function"==typeof r&&(n=r,r=null),function t(e,r,n,i,s){return y(e,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):m([t,[e,r,n,i],o,s||Date.now(),Date.now()])}))}(t,e,r,n)}return t.open=b,t}function m(t){d("ENQUEUE",t[0].name,t[1]),s[n].push(t),y()}function g(){for(var t=Date.now(),e=0;e<s[n].length;++e)s[n][e].length>2&&(s[n][e][3]=t,s[n][e][4]=t);y()}function y(){if(clearTimeout(u),u=void 0,0!==s[n].length){var t=s[n].shift(),e=t[0],r=t[1],i=t[2],o=t[3],a=t[4];if(void 0===o)d("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",e.name,r);var l=r.pop();"function"==typeof l&&l.call(null,i)}else{var c=Date.now()-a,h=Math.max(a-o,1);c>=Math.min(1.2*h,100)?(d("RETRY",e.name,r),e.apply(null,r.concat([o]))):s[n].push(t)}void 0===u&&(u=setTimeout(y,0))}}global[n]||h(global,s[n]),t.exports=p(l(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(t.exports=p(s),s.__patched=!0)},5361:(t,e,r)=>{var n=r(2781).Stream;t.exports=function(t){return{ReadStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),a=0,l=o.length;a<l;a++){var c=o[a];this[c]=i[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){s._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return s.emit("error",t),void(s.readable=!1);s.fd=e,s.emit("open",e),s._read()}))},WriteStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},2965:(t,e,r)=>{var n=r(2057),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(t){s=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}t.exports=function(t){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,r,i){t.open(e,n.O_WRONLY|n.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(e,r){var i,s=t.openSync(e,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=t.fchmodSync(s,r),o=!1}finally{if(o)try{t.closeSync(s)}catch(t){}else t.closeSync(s)}return i}}(t);t.lutimes||function(t){n.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,r,i,s){t.open(e,n.O_SYMLINK,(function(e,n){e?s&&s(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){s&&s(e||t)}))}))}))},t.lutimesSync=function(e,r,i){var s,o=t.openSync(e,n.O_SYMLINK),a=!0;try{s=t.futimesSync(o,r,i),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return s}):(t.lutimes=function(t,e,r,n){n&&process.nextTick(n)},t.lutimesSync=function(){})}(t);t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=r(t.chmod),t.fchmod=r(t.fchmod),t.lchmod=r(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=l(t.stat),t.fstat=l(t.fstat),t.lstat=l(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,r,n){n&&process.nextTick(n)},t.lchownSync=function(){});"win32"===o&&(t.rename=(e=t.rename,function(r,n,i){var s=Date.now(),o=0;e(r,n,(function a(l){if(l&&("EACCES"===l.code||"EPERM"===l.code)&&Date.now()-s<6e4)return setTimeout((function(){t.stat(n,(function(t,s){t&&"ENOENT"===t.code?e(r,n,a):i(l)}))}),o),void(o<100&&(o+=10));i&&i(l)}))}));var e;function r(e){return e?function(r,n,i){return e.call(t,r,n,(function(t){h(t)&&(t=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(r,n){try{return e.call(t,r,n)}catch(t){if(!h(t))throw t}}:e}function s(e){return e?function(r,n,i,s){return e.call(t,r,n,i,(function(t){h(t)&&(t=null),s&&s.apply(this,arguments)}))}:e}function a(e){return e?function(r,n,i){try{return e.call(t,r,n,i)}catch(t){if(!h(t))throw t}}:e}function l(e){return e?function(r,n,i){function s(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?e.call(t,r,n,s):e.call(t,r,s)}:e}function c(e){return e?function(r,n){var i=n?e.call(t,r,n):e.call(t,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function h(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read=function(e){function r(r,n,i,s,o,a){var l;if(a&&"function"==typeof a){var c=0;l=function(h,u,d){if(h&&"EAGAIN"===h.code&&c<10)return c++,e.call(t,r,n,i,s,o,l);a.apply(this,arguments)}}return e.call(t,r,n,i,s,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync=(u=t.readSync,function(e,r,n,i,s){for(var o=0;;)try{return u.call(t,e,r,n,i,s)}catch(t){if("EAGAIN"===t.code&&o<10){o++;continue}throw t}});var u}},8137:t=>{t.exports=(t,e=process.argv)=>{const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}},5793:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;e.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]},3954:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var n=r(2037),i=r(9030),s=r(5260);const o=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},a=(0,i.getSignals)().reduce(o,{});e.signalsByName=a;const l=function(t,e){const r=c(t,e);if(void 0===r)return{};const{name:n,description:i,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:l}}},c=function(t,e){const r=e.find((({name:e})=>n.constants.signals[e]===t));return void 0!==r?r:e.find((e=>e.number===t))},h=function(){const t=(0,i.getSignals)(),e=s.SIGRTMAX+1,r=Array.from({length:e},((e,r)=>l(r,t)));return Object.assign({},...r)}();e.signalsByNumber=h},5260:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;e.getRealtimeSignals=function(){const t=i-n+1;return Array.from({length:t},r)};const r=function(t,e){return{name:`SIGRT${e+1}`,number:n+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i},9030:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var n=r(2037),i=r(5793),s=r(5260);e.getSignals=function(){const t=(0,s.getRealtimeSignals)();return[...i.SIGNALS,...t].map(o)};const o=function({name:t,number:e,description:r,action:i,forced:s=!1,standard:o}){const{signals:{[t]:a}}=n.constants,l=void 0!==a;return{name:t,number:l?a:e,description:r,supported:l,action:i,forced:s,standard:o}}},8874:(t,e,r)=>{try{var n=r(3837);if("function"!=typeof n.inherits)throw"";t.exports=n.inherits}catch(e){t.exports=r(1285)}},1285:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},139:t=>{t.exports=t=>{if("object"!=typeof t||null===t)throw new TypeError("Expected an object");const e={};for(const[r,n]of Object.entries(t))e[n]=r;for(const r of Object.getOwnPropertySymbols(t)){e[t[r]]=r}return e}},5019:(t,e,r)=>{var n=r(1183),i=r(4725);function s(t){if("string"!=typeof t)throw new TypeError("isAbsolute expects a string.");return i()?s.win32(t):s.posix(t)}t.exports=s,s.posix=function(t){return"/"===t.charAt(0)},s.win32=function(t){return!(!/[a-z]/i.test(t.charAt(0))||":"!==t.charAt(1)||"\\"!==t.charAt(2))||("\\\\"===t.slice(0,2)||!n(t))}},4264:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(3799)),s=n(r(7918)),o=process.cwd();e.default=function(t){if(void 0===t&&(t=o),!s.default(t))return null;try{return i.default.commandSync("git status --short",{cwd:t}).stdout.length>0}catch(t){return null}},t.exports=e.default},7918:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(3799)),s=n(r(1017)),o=n(r(5019)),a=process.cwd();e.default=function(t){void 0===t&&(t=a);var e=o.default(t)?t:s.default.join(a,t);try{return i.default.commandSync("git rev-parse --is-inside-work-tree",{cwd:e}),!0}catch(t){return!1}},t.exports=e.default},1183:(t,e,r)=>{var n=r(4e3);t.exports=function(t){if("string"!=typeof t)throw new TypeError("expected filepath to be a string");return!n(t)&&!/^([a-z]:)?[\\\/]/i.test(t)}},8607:t=>{const e=t=>null!==t&&"object"==typeof t&&"function"==typeof t.pipe;e.writable=t=>e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState,e.readable=t=>e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState,e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&"function"==typeof t._transform,t.exports=e},4e3:(t,e,r)=>{var n=r(2191)();t.exports=function(t){if("string"!=typeof t)throw new TypeError("expected a string");return n.test(t)}},4725:(t,e)=>{!function(r){e&&"object"==typeof e?t.exports=r():"function"==typeof define&&define.amd?define([],r):"undefined"!=typeof window?window.isWindows=r():"undefined"!=typeof global?global.isWindows=r():"undefined"!=typeof self?self.isWindows=r():this.isWindows=r()}((function(){return function(){return process&&("win32"===process.platform||/^(msys|cygwin)$/.test(process.env.OSTYPE))}}))},5909:(t,e,r)=>{var n;r(7147);function i(t,e,r){if("function"==typeof e&&(r=e,e={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(t,e||{},(function(t,e){t?n(t):r(e)}))}))}n(t,e||{},(function(t,n){t&&("EACCES"===t.code||e&&e.ignoreErrors)&&(t=null,n=!1),r(t,n)}))}n="win32"===process.platform||global.TESTING_WINDOWS?r(837):r(4703),t.exports=i,i.sync=function(t,e){try{return n.sync(t,e||{})}catch(t){if(e&&e.ignoreErrors||"EACCES"===t.code)return!1;throw t}}},4703:(t,e,r)=>{t.exports=i,i.sync=function(t,e){return s(n.statSync(t),e)};var n=r(7147);function i(t,e,r){n.stat(t,(function(t,n){r(t,!t&&s(n,e))}))}function s(t,e){return t.isFile()&&function(t,e){var r=t.mode,n=t.uid,i=t.gid,s=void 0!==e.uid?e.uid:process.getuid&&process.getuid(),o=void 0!==e.gid?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),h=a|l;return r&c||r&l&&i===o||r&a&&n===s||r&h&&0===s}(t,e)}},837:(t,e,r)=>{t.exports=s,s.sync=function(t,e){return i(n.statSync(t),t,e)};var n=r(7147);function i(t,e,r){return!(!t.isSymbolicLink()&&!t.isFile())&&function(t,e){var r=void 0!==e.pathExt?e.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}(e,r)}function s(t,e,r){n.stat(t,(function(n,s){r(n,!n&&i(s,t,e))}))}},370:(t,e,r)=>{let n;try{n=r(85)}catch(t){n=r(7147)}const i=r(5725),{stringify:s,stripBom:o}=r(7154);const a={readFile:i.fromPromise((async function(t,e={}){"string"==typeof e&&(e={encoding:e});const r=e.fs||n,s=!("throws"in e)||e.throws;let a,l=await i.fromCallback(r.readFile)(t,e);l=o(l);try{a=JSON.parse(l,e?e.reviver:null)}catch(e){if(s)throw e.message=`${t}: ${e.message}`,e;return null}return a})),readFileSync:function(t,e={}){"string"==typeof e&&(e={encoding:e});const r=e.fs||n,i=!("throws"in e)||e.throws;try{let n=r.readFileSync(t,e);return n=o(n),JSON.parse(n,e.reviver)}catch(e){if(i)throw e.message=`${t}: ${e.message}`,e;return null}},writeFile:i.fromPromise((async function(t,e,r={}){const o=r.fs||n,a=s(e,r);await i.fromCallback(o.writeFile)(t,a,r)})),writeFileSync:function(t,e,r={}){const i=r.fs||n,o=s(e,r);return i.writeFileSync(t,o,r)}};t.exports=a},7154:t=>{t.exports={stringify:function(t,{EOL:e="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s},stripBom:function(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}}},3041:t=>{const{FORCE_COLOR:e,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==e,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function s(t,e){let r,n=0,i="",s="";for(;n<t.length;n++)r=t[n],i+=r.open,s+=r.close,e.includes(r.close)&&(e=e.replace(r.rgx,r.close+r.open));return i+e+s}function o(t,e){let r={open:`\x1b[${t}m`,close:`\x1b[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(e){return void 0!==this&&void 0!==this.has?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),void 0===e?this:i.enabled?s(this.keys,e+""):e+""):void 0===e?function(t,e){let r={has:t,keys:e};return 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),r}([t],[r]):i.enabled?s([r],e+""):e+""}}t.exports=i},1482:(t,e,r)=>{const n=r(139),i=r(9233),s=n(i);e.from=t=>{if("number"!=typeof t)throw new TypeError("Expected a number");return i[t]},e.to=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");if(s[t])return Number(s[t])},e.all=new Proxy(s,{get(t,e){const r=t[e];if(r)return Number(r)}})},7105:(t,e,r)=>{const n=r(8006),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),h=Symbol("noDisposeOnSet"),u=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(t,e,r)=>{const n=t[d].get(e);if(n){const e=n.value;if(g(t,e)){if(b(t,n),!t[a])return}else r&&(t[f]&&(n.value.now=Date.now()),t[u].unshiftNode(n));return e.value}},g=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},y=t=>{if(t[s]>t[i])for(let e=t[u].tail;t[s]>t[i]&&null!==e;){const r=e.prev;b(t,e),e=r}},b=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[s]-=r.length,t[d].delete(r.key),t[u].removeNode(e)}};class v{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const w=(t,e,r,n)=>{let i=r.value;g(t,i)&&(b(t,r),t[a]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[o]="function"!=typeof e?p:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[c]=t.dispose,this[h]=t.noDisposeOnSet||!1,this[f]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,y(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!=typeof t&&(t=p),t!==this[o]&&(this[o]=t,this[s]=0,this[u].forEach((t=>{t.length=this[o](t.value,t.key),this[s]+=t.length}))),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[u].length}rforEach(t,e){e=e||this;for(let r=this[u].tail;null!==r;){const n=r.prev;w(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[u].head;null!==r;){const n=r.next;w(this,t,r,e),r=n}}keys(){return this[u].toArray().map((t=>t.key))}values(){return this[u].toArray().map((t=>t.value))}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach((t=>this[c](t.key,t.value))),this[d]=new Map,this[u]=new n,this[s]=0}dump(){return this[u].map((t=>!g(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[u]}set(t,e,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[o](e,t);if(this[d].has(t)){if(a>this[i])return b(this,this[d].get(t)),!1;const o=this[d].get(t).value;return this[c]&&(this[h]||this[c](t,o.value)),o.now=n,o.maxAge=r,o.value=e,this[s]+=a-o.length,o.length=a,this.get(t),y(this),!0}const f=new v(t,e,a,n,r);return f.length>this[i]?(this[c]&&this[c](t,e),!1):(this[s]+=f.length,this[u].unshift(f),this[d].set(t,this[u].head),y(this),!0)}has(t){if(!this[d].has(t))return!1;const e=this[d].get(t).value;return!g(this,e)}get(t){return m(this,t,!0)}peek(t){return m(this,t,!1)}pop(){const t=this[u].tail;return t?(b(this,t),t.value):null}del(t){b(this,this[d].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[d].forEach(((t,e)=>m(this,e,!1)))}}},873:(t,e,r)=>{const{PassThrough:n}=r(2781);t.exports=function(){var t=[],e=new n({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(r),e;function r(n){return Array.isArray(n)?(n.forEach(r),this):(t.push(n),n.once("end",s.bind(null,n)),n.once("error",e.emit.bind(e,"error")),n.pipe(e,{end:!1}),this)}function i(){return 0==t.length}function s(r){!(t=t.filter((function(t){return t!==r}))).length&&e.readable&&e.end()}}},9002:(t,e,r)=>{const n=r(1017),i=r(6569),s=t=>{let e;t={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...t};let r=n.resolve(t.cwd);const s=[];for(;e!==r;)s.push(n.join(r,"node_modules/.bin")),e=r,r=n.resolve(r,"..");const o=n.resolve(t.cwd,t.execPath,"..");return s.push(o),s.concat(t.path).join(n.delimiter)};t.exports=s,t.exports.default=s,t.exports.env=e=>{const r={...(e={env:process.env,...e}).env},n=i({env:r});return e.path=r[n],r[n]=t.exports(e),r}},9928:(t,e,r)=>{var n=r(8892);function i(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function s(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=n(i),t.exports.strict=n(s),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})}))},3937:(t,e,r)=>{const n=r(6587),i=new WeakMap,s=(t,e={})=>{if("function"!=typeof t)throw new TypeError("Expected a function");let r,s=0;const o=t.displayName||t.name||"<anonymous>",a=function(...n){if(i.set(a,++s),1===s)r=t.apply(this,n),t=null;else if(!0===e.throw)throw new Error(`Function \`${o}\` can only be called once`);return r};return n(a,t),i.set(a,s),a};t.exports=s,t.exports.default=s,t.exports.callCount=t=>{if(!i.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return i.get(t)}},6587:t=>{const e=(t,e)=>{for(const r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};t.exports=e,t.exports.default=e},5528:(t,e,r)=>{var n=r(633);t.exports=function(t){if("string"!=typeof t)throw new TypeError("expected author to be a string");if(!t||!/\w/.test(t))return{};var e=[].concat.apply([],n().exec(t)),r={};e[1]&&(r.name=e[1]);for(var i=2;i<e.length;i++){var s=e[i];i%2==0&&s&&e[i+1]&&("<"===s.charAt(0)?(r.email=e[i+1],i++):"("===s.charAt(0)&&(r.url=e[i+1],i++))}return r}},6569:t=>{const e=(t={})=>{const e=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"};t.exports=e,t.exports.default=e},182:t=>{class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},5292:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},9822:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},8448:(t,e,r)=>{t.exports={DatePart:r(182),Meridiem:r(4722),Day:r(5292),Hours:r(9822),Milliseconds:r(1896),Minutes:r(7465),Month:r(5009),Seconds:r(3920),Year:r(9319)}},4722:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},1896:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},7465:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},5009:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},3920:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},9319:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},7974:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}const i=r(3041),s=r(4507),o=r(7840),a=o.erase,l=o.cursor,c=r(2410),h=c.style,u=c.clear,d=c.figures,f=c.wrap,p=c.entriesToDisplay,m=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),g=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=h.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=u("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=m(this.suggestions,t):this.value=this.fallback.value,this.fire()}complete(t){var e,r=this;return(e=function*(){const e=r.completing=r.suggest(r.input,r.choices),n=yield e;if(r.completing!==e)return;r.suggestions=n.map(((t,e,r)=>({title:g(r,e),value:m(r,e),description:t.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),t&&t()},function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,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()}renderOption(t,e,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=e?i.cyan().underline(t.title):t.title;return o=(e?i.cyan(d.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+f(t.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(l.hide):this.out.write(u(this.outputText,this.out.columns)),super.render();let t=p(this.select,this.choices.length,this.limit),e=t.startIndex,r=t.endIndex;if(this.outputText=[h.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),h.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const t=this.suggestions.slice(e,r).map(((t,n)=>this.renderOption(t,this.select===n+e,0===n&&e>0,n+e===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(t||i.gray(this.fallback.title))}this.out.write(a.line+l.to(0)+this.outputText)}}},4831:(t,e,r)=>{const n=r(3041),i=r(7840).cursor,s=r(2594),o=r(2410),a=o.clear,l=o.style,c=o.figures;t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=a("",this.out.columns),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(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\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(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(c.radioOn):c.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},2696:(t,e,r)=>{const n=r(3041),i=r(4507),s=r(2410),o=s.style,a=s.clear,l=r(7840),c=l.erase,h=l.cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(h.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(c.line+h.to(0)+this.outputText))}}},8577:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(3041),o=r(4507),a=r(2410),l=a.style,c=a.clear,h=a.figures,u=r(7840),d=u.erase,f=u.cursor,p=r(8448),m=p.DatePart,g=p.Meridiem,y=p.Day,b=p.Hours,v=p.Milliseconds,w=p.Minutes,E=p.Month,_=p.Seconds,x=p.Year,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,O={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new y(t),3:t=>new E(t),4:t=>new x(t),5:t=>new g(t),6:t=>new b(t),7:t=>new w(t),8:t=>new _(t),9:t=>new v(t)},T={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(",")};t.exports=class extends o{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(T,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=c("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=S.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in O?O[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof m))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof m))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(f.hide):this.out.write(c(this.outputText,this.out.columns)),super.render(),this.outputText=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:s.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(d.line+f.to(0)+this.outputText))}}},1791:(t,e,r)=>{t.exports={TextPrompt:r(3376),SelectPrompt:r(1278),TogglePrompt:r(9056),DatePrompt:r(8577),NumberPrompt:r(5098),MultiselectPrompt:r(2594),AutocompletePrompt:r(7974),AutocompleteMultiselectPrompt:r(4831),ConfirmPrompt:r(2696)}},2594:(t,e,r)=>{const n=r(3041),i=r(7840).cursor,s=r(4507),o=r(2410),a=o.clear,l=o.figures,c=o.style,h=o.wrap,u=o.entriesToDisplay;t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=a("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,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(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(l.radioOn):l.radioOff)+" "+i+" ";let o,a;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(a=` - ${e.description}`,(s.length+o.length+a.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(a="\n"+h(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,r=u(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)e=r===i&&i>0?l.arrowUp:r===s-1&&s<t.length?l.arrowDown:" ",o.push(this.renderOption(this.cursor,t[r],r,e));return"\n"+o.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},5098:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(3041),o=r(4507),a=r(7840),l=a.cursor,c=a.erase,h=r(2410),u=h.style,d=h.figures,f=h.clear,p=h.lines,m=/[0-9]/,g=t=>void 0!==t,y=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends o{constructor(t={}){super(t),this.transform=u.render(t.style),this.msg=t.message,this.initial=g(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=g(t.min)?t.min:-1/0,this.max=g(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${y(t,this.round)}`),this._value=y(t,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||m.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();let e=t.value;t.value=""!==e?e:t.initial,t.done=!0,t.aborted=!1,t.error=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(l.down(p(this.outputError,this.out.columns)-1)+f(this.outputError,this.out.columns)),this.out.write(f(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:s[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":d.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(c.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore))}}},4507:(t,e,r)=>{const n=r(4521),i=r(2410).action,s=r(2361),o=r(7840),a=o.beep,l=o.cursor,c=r(3041);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(l.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(a)}render(){this.onRender(c),this.firstRender&&(this.firstRender=!1)}}},1278:(t,e,r)=>{const n=r(3041),i=r(4507),s=r(2410),o=s.style,a=s.clear,l=s.figures,c=s.wrap,h=s.entriesToDisplay,u=r(7840).cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(u.hide):this.out.write(a(this.outputText,this.out.columns)),super.render();let t=h(this.cursor,this.choices.length,this.optionsPerPage),e=t.startIndex,r=t.endIndex;if(this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let t=e;t<r;t++){let i,s,o="",a=this.choices[t];s=t===e&&e>0?l.arrowUp:t===r-1&&r<this.choices.length?l.arrowDown:" ",a.disabled?(i=this.cursor===t?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===t?n.bold().gray(l.pointer)+" ":" ")+s):(i=this.cursor===t?n.cyan().underline(a.title):a.title,s=(this.cursor===t?n.cyan(l.pointer)+" ":" ")+s,a.description&&this.cursor===t&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+c(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},3376:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(3041),o=r(4507),a=r(7840),l=a.erase,c=a.cursor,h=r(2410),u=h.style,d=h.clear,f=h.lines,p=h.figures;t.exports=class extends o{constructor(t={}){super(t),this.transform=u.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(t.value=t.value||t.initial,t.cursorOffset=0,t.cursor=t.rendered.length,yield t.validate(),t.error)return t.red=!0,t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,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()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(c.down(f(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns)),this.out.write(d(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":p.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(l.line+c.to(0)+this.outputText+c.save+this.outputError+c.restore+c.move(this.cursorOffset,0)))}}},9056:(t,e,r)=>{const n=r(3041),i=r(4507),s=r(2410),o=s.style,a=s.clear,l=r(7840),c=l.cursor,h=l.erase;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,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()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(c.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(h.line+c.to(0)+this.outputText))}}},9422:(t,e,r)=>{function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){l=!0,s=t},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw s}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function o(t){l(s,n,i,o,a,"next",t)}function a(t){l(s,n,i,o,a,"throw",t)}o(void 0)}))}}const h=r(3700),u=["suggest","format","onState","validate","onRender","type"],d=()=>{};function f(){return p.apply(this,arguments)}function p(){return p=c((function*(t=[],{onSubmit:e=d,onCancel:r=d}={}){const n={},s=f._override||{};let a,l,p,g,y,b;t=[].concat(t);const v=function(){var t=c((function*(t,e,r=!1){if(r||!t.validate||!0===t.validate(e))return t.format?yield t.format(e,n):e}));return function(e,r){return t.apply(this,arguments)}}();var w,E=o(t);try{for(E.s();!(w=E.n()).done;){l=w.value;var _=l;if(g=_.name,y=_.type,"function"==typeof y&&(y=yield y(a,i({},n),l),l.type=y),y){for(let t in l){if(u.includes(t))continue;let e=l[t];l[t]="function"==typeof e?yield e(a,i({},n),b):e}if(b=l,"string"!=typeof l.message)throw new Error("prompt message is required");var x=l;if(g=x.name,y=x.type,void 0===h[y])throw new Error(`prompt type (${y}) is not defined`);if(void 0===s[l.name]||(a=yield v(l,s[l.name]),void 0===a)){try{a=f._injected?m(f._injected,l.initial):yield h[y](l),n[g]=a=yield v(l,a,!0),p=yield e(l,a,n)}catch(t){p=!(yield r(l,n))}if(p)return n}else n[g]=a}}}catch(t){E.e(t)}finally{E.f()}return n})),p.apply(this,arguments)}function m(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(f,{prompt:f,prompts:h,inject:function(t){f._injected=(f._injected||[]).concat(t)},override:function(t){f._override=Object.assign({},t)}})},3700:(t,e,r)=>{const n=e,i=r(1791),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,c=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(c(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},3667:t=>{t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},2875:(t,e,r)=>{function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const s=r(1444),o=r(7840),a=o.erase,l=o.cursor;t.exports=function(t,e){if(!e)return a.line+l.to(0);let r=0;var i,o=n(t.split(/\r?\n/));try{for(o.s();!(i=o.n()).done;){let t=i.value;r+=1+Math.floor(Math.max([...s(t)].length-1,0)/e)}}catch(t){o.e(t)}finally{o.f()}return a.lines(r)}},3578:t=>{t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},5592:t=>{const e={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},2410:(t,e,r)=>{t.exports={action:r(3667),clear:r(2875),style:r(8504),strip:r(1444),figures:r(5592),lines:r(9343),wrap:r(8847),entriesToDisplay:r(3578)}},9343:(t,e,r)=>{const n=r(1444);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},1444:t=>{t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},8504:(t,e,r)=>{const n=r(3041),i=r(5592),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1f603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},8847:t=>{t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},9035:(t,e,r)=>{t.exports=function(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}("8.6.0")?r(9422):r(2370)},149:t=>{class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},456:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},8010:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},2003:(t,e,r)=>{t.exports={DatePart:r(149),Meridiem:r(965),Day:r(456),Hours:r(8010),Milliseconds:r(4833),Minutes:r(730),Month:r(769),Seconds:r(4587),Year:r(4086)}},965:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},4833:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},730:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},769:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},4587:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},4086:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},2716:(t,e,r)=>{const n=r(3041),i=r(1524),{erase:s,cursor:o}=r(7840),{style:a,clear:l,figures:c,wrap:h,entriesToDisplay:u}=r(7292),d=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),f=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=a.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=l("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=d(this.suggestions,t):this.value=this.fallback.value,this.fire()}async complete(t){const e=this.completing=this.suggest(this.input,this.choices),r=await e;if(this.completing!==e)return;this.suggestions=r.map(((t,e,r)=>({title:f(r,e),value:d(r,e),description:t.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),t&&t()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,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()}renderOption(t,e,r,i){let s,o=r?c.arrowUp:i?c.arrowDown:" ",a=e?n.cyan().underline(t.title):t.title;return o=(e?n.cyan(c.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+h(t.description,{margin:3,width:this.out.columns}))),o+" "+a+n.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(l(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=u(this.select,this.choices.length,this.limit);if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),n.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const r=this.suggestions.slice(t,e).map(((r,n)=>this.renderOption(r,this.select===n+t,0===n&&t>0,n+t===e-1&&e<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},1776:(t,e,r)=>{const n=r(3041),{cursor:i}=r(7840),s=r(9200),{clear:o,style:a,figures:l}=r(7292);t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=o("",this.out.columns),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(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\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(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},8915:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o}=r(7292),{erase:a,cursor:l}=r(7840);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(a.line+l.to(0)+this.outputText))}}},5656:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o,figures:a}=r(7292),{erase:l,cursor:c}=r(7840),{DatePart:h,Meridiem:u,Day:d,Hours:f,Milliseconds:p,Minutes:m,Month:g,Seconds:y,Year:b}=r(2003),v=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,w={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new d(t),3:t=>new g(t),4:t=>new b(t),5:t=>new u(t),6:t=>new f(t),7:t=>new m(t),8:t=>new y(t),9:t=>new p(t)},E={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(",")};t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(E,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=o("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=v.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in w?w[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof h))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,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 t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof h))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(c.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:n.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":a.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(l.line+c.to(0)+this.outputText))}}},2434:(t,e,r)=>{t.exports={TextPrompt:r(4195),SelectPrompt:r(1298),TogglePrompt:r(826),DatePrompt:r(5656),NumberPrompt:r(5286),MultiselectPrompt:r(9200),AutocompletePrompt:r(2716),AutocompleteMultiselectPrompt:r(1776),ConfirmPrompt:r(8915)}},9200:(t,e,r)=>{const n=r(3041),{cursor:i}=r(7840),s=r(1524),{clear:o,figures:a,style:l,wrap:c,entriesToDisplay:h}=r(7292);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=o("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,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(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,l;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(l=` - ${e.description}`,(s.length+o.length+l.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(l="\n"+c(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(l||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,{startIndex:r,endIndex:i}=h(this.cursor,t.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)e=n===r&&r>0?a.arrowUp:n===i-1&&i<t.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,t[n],n,e));return"\n"+s.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},5286:(t,e,r)=>{const n=r(3041),i=r(1524),{cursor:s,erase:o}=r(7840),{style:a,figures:l,clear:c,lines:h}=r(7292),u=/[0-9]/,d=t=>void 0!==t,f=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.msg=t.message,this.initial=d(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=d(t.min)?t.min:-1/0,this.max=d(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${f(t,this.round)}`),this._value=f(t,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||u.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let t=this.value;this.value=""!==t?t:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(h(this.outputError,this.out.columns)-1)+c(this.outputError,this.out.columns)),this.out.write(c(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":l.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},1524:(t,e,r)=>{const n=r(4521),{action:i}=r(7292),s=r(2361),{beep:o,cursor:a}=r(7840),l=r(3041);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(o)}render(){this.onRender(l),this.firstRender&&(this.firstRender=!1)}}},1298:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o,figures:a,wrap:l,entriesToDisplay:c}=r(7292),{cursor:h}=r(7840);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(h.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=c(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let r=t;r<e;r++){let i,s,o="",c=this.choices[r];s=r===t&&t>0?a.arrowUp:r===e-1&&e<this.choices.length?a.arrowDown:" ",c.disabled?(i=this.cursor===r?n.gray().underline(c.title):n.strikethrough().gray(c.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(c.title):c.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,c.description&&this.cursor===r&&(o=` - ${c.description}`,(s.length+i.length+o.length>=this.out.columns||c.description.split(/\r?\n/).length>1)&&(o="\n"+l(c.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},4195:(t,e,r)=>{const n=r(3041),i=r(1524),{erase:s,cursor:o}=r(7840),{style:a,clear:l,lines:c,figures:h}=r(7292);t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=l("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,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(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,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()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(o.down(c(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},826:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o}=r(7292),{cursor:a,erase:l}=r(7840);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,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()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(l.line+a.to(0)+this.outputText))}}},2370:(t,e,r)=>{const n=r(1145),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(t=[],{onSubmit:e=s,onCancel:r=s}={}){const l={},c=o._override||{};let h,u,d,f,p,m;t=[].concat(t);const g=async(t,e,r=!1)=>{if(r||!t.validate||!0===t.validate(e))return t.format?await t.format(e,l):e};for(u of t)if(({name:f,type:p}=u),"function"==typeof p&&(p=await p(h,{...l},u),u.type=p),p){for(let t in u){if(i.includes(t))continue;let e=u[t];u[t]="function"==typeof e?await e(h,{...l},m):e}if(m=u,"string"!=typeof u.message)throw new Error("prompt message is required");if(({name:f,type:p}=u),void 0===n[p])throw new Error(`prompt type (${p}) is not defined`);if(void 0===c[u.name]||(h=await g(u,c[u.name]),void 0===h)){try{h=o._injected?a(o._injected,u.initial):await n[p](u),l[f]=h=await g(u,h,!0),d=await e(u,h,l)}catch(t){d=!await r(u,l)}if(d)return l}else l[f]=h}return l}function a(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(t){o._injected=(o._injected||[]).concat(t)},override:function(t){o._override=Object.assign({},t)}})},1145:(t,e,r)=>{const n=e,i=r(2434),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,c=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(c(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},3679:t=>{t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},7893:(t,e,r)=>{const n=r(6687),{erase:i,cursor:s}=r(7840);t.exports=function(t,e){if(!e)return i.line+s.to(0);let r=0;const o=t.split(/\r?\n/);for(let t of o)r+=1+Math.floor(Math.max([...n(t)].length-1,0)/e);return i.lines(r)}},7040:t=>{t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},4426:t=>{const e={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},7292:(t,e,r)=>{t.exports={action:r(3679),clear:r(7893),style:r(2348),strip:r(6687),figures:r(4426),lines:r(8851),wrap:r(7941),entriesToDisplay:r(7040)}},8851:(t,e,r)=>{const n=r(6687);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},6687:t=>{t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},2348:(t,e,r)=>{const n=r(3041),i=r(4426),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1f603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},7941:t=>{t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},6636:(t,e,r)=>{"pseudomap"===process.env.npm_package_name&&"test"===process.env.npm_lifecycle_script&&(process.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||process.env.TEST_PSEUDOMAP?t.exports=r(7222):t.exports=Map},7222:t=>{var e=Object.prototype.hasOwnProperty;function r(t){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),t)if(t instanceof r||"function"==typeof Map&&t instanceof Map)t.forEach((function(t,e){this.set(e,t)}),this);else{if(!Array.isArray(t))throw new TypeError("invalid argument");t.forEach((function(t){this.set(t[0],t[1])}),this)}}function n(t,e){return t===e||t!=t&&e!=e}function i(t,e,r){this.key=t,this.value=e,this._index=r}function s(t,r){for(var i=0,s="_"+r,o=s;e.call(t,o);o=s+i++)if(n(t[o].key,r))return t[o]}t.exports=r,r.prototype.forEach=function(t,e){e=e||this,Object.keys(this._data).forEach((function(r){"size"!==r&&t.call(e,this._data[r].value,this._data[r].key)}),this)},r.prototype.has=function(t){return!!s(this._data,t)},r.prototype.get=function(t){var e=s(this._data,t);return e&&e.value},r.prototype.set=function(t,r){!function(t,r,s){for(var o=0,a="_"+r,l=a;e.call(t,l);l=a+o++)if(n(t[l].key,r))return void(t[l].value=s);t.size++,t[l]=new i(r,s,l)}(this._data,t,r)},r.prototype.delete=function(t){var e=s(this._data,t);e&&(delete this._data[e._index],this._data.size--)},r.prototype.clear=function(){var t=Object.create(null);t.size=0,Object.defineProperty(this,"_data",{value:t,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(t){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},3171:(t,e,r)=>{var n=r(9928),i=r(8797),s=r(7147),o=function(){},a=/^v?\.0/.test(process.version),l=function(t){return"function"==typeof t},c=function(t,e,r,c){c=n(c);var h=!1;t.on("close",(function(){h=!0})),i(t,{readable:e,writable:r},(function(t){if(t)return c(t);h=!0,c()}));var u=!1;return function(e){if(!h&&!u)return u=!0,function(t){return!!a&&!!s&&(t instanceof(s.ReadStream||o)||t instanceof(s.WriteStream||o))&&l(t.close)}(t)?t.close(o):function(t){return t.setHeader&&l(t.abort)}(t)?t.abort():l(t.destroy)?t.destroy():void c(e||new Error("stream was destroyed"))}},h=function(t){t()},u=function(t,e){return t.pipe(e)};t.exports=function(){var t,e=Array.prototype.slice.call(arguments),r=l(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var n=e.map((function(i,s){var o=s<e.length-1;return c(i,o,s>0,(function(e){t||(t=e),e&&n.forEach(h),o||(n.forEach(h),r(t))}))}));return e.reduce(u)}},63:t=>{const e={};function r(t,r,n){n||(n=Error);class i extends n{constructor(t,e,n){super(function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(t,e,n))}}i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){const r=t.length;return t=t.map((t=>String(t))),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:2===r?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}return`of ${e} ${String(t)}`}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){let i;var s,o;let a;if("string"==typeof e&&(s="not ",e.substr(!o||o<0?0:+o,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))a=`The ${t} ${i} ${n(e,"type")}`;else{const r=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";a=`The "${t}" ${r} ${i} ${n(e,"type")}`}return a+=". Received type "+typeof r,a}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},7073:(t,e,r)=>{var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var i=r(8009),s=r(2557);r(8874)(c,i);for(var o=n(s.prototype),a=0;a<o.length;a++){var l=o[a];c.prototype[l]||(c.prototype[l]=s.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),s.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||process.nextTick(u,this)}function u(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},5163:(t,e,r)=>{t.exports=i;var n=r(7640);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(8874)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},8009:(t,e,r)=>{var n;t.exports=S,S.ReadableState=x;r(2361).EventEmitter;var i=function(t,e){return t.listeners(e).length},s=r(6748),o=r(4300).Buffer,a=global.Uint8Array||function(){};var l,c=r(3837);l=c&&c.debuglog?c.debuglog("stream"):function(){};var h,u,d,f=r(6637),p=r(2262),m=r(7605).getHighWaterMark,g=r(63).q,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,v=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(8874)(S,s);var E=p.errorOrDestroy,_=["error","close","destroy","pause","resume"];function x(t,e,i){n=n||r(7073),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=r(214).s),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||r(7073),!(this instanceof S))return new S(t);var e=this instanceof n;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function O(t,e,r,n,i){l("readableAddChunk",e);var s,c=t._readableState;if(null===e)c.reading=!1,function(t,e){if(l("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?C(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,R(t)))}(t,c);else if(i||(s=function(t,e){var r;n=e,o.isBuffer(n)||n instanceof a||"string"==typeof e||void 0===e||t.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(c,e)),s)E(t,s);else if(c.objectMode||e&&e.length>0)if("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===o.prototype||(e=function(t){return o.from(t)}(e)),n)c.endEmitted?E(t,new w):T(t,c,e,!0);else if(c.ended)E(t,new b);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(e=c.decoder.write(e),c.objectMode||0!==e.length?T(t,c,e,!1):k(t,c)):T(t,c,e,!1)}else n||(c.reading=!1,k(t,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function T(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&C(t)),k(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=o.from(t,e),e=""),r=!0),O(this,t,e,!1,r)},S.prototype.unshift=function(t){return O(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){h||(h=r(214).s);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function A(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(R,t))}function R(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,$(t)}function k(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(M,t,e))}function M(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(l("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function j(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function P(t){l("readable nexttick read 0"),t.read(0)}function N(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),$(t),e.flowing&&!e.reading&&t.read(0)}function $(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function D(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(F,e,t))}function F(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function B(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}S.prototype.read=function(t){l("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):C(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&D(this),null;var n,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&l("length less than watermark",i=!0),e.ended||e.reading?l("reading or ended",i=!1):i&&(l("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=A(r,e))),null===(n=t>0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&D(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(t){E(this,new v("_read()"))},S.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,e);var s=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?a:m;function o(e,i){l("onunpipe"),e===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",u),h=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function a(){l("onend"),t.end()}n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,$(t))}}(r);t.on("drain",c);var h=!1;function u(e){l("ondata");var i=t.write(e);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==B(n.pipes,t))&&!h&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(e){l("onerror",e),m(),t.removeListener("error",d),0===i(t,"error")&&E(t,e)}function f(){t.removeListener("finish",p),m()}function p(){l("onfinish"),t.removeListener("close",f),m()}function m(){l("unpipe"),r.unpipe(t)}return r.on("data",u),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",f),t.once("finish",p),t.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},S.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?C(this):n.reading||process.nextTick(P,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(j,this),r},S.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(j,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(N,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var s=0;s<_.length;s++)t.on(_[s],this.emit.bind(this,_[s]));return this._read=function(e){l("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=r(1029)),u(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=L,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===d&&(d=r(7549)),d(S,t,e)})},7640:(t,e,r)=>{t.exports=h;var n=r(63).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(7073);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function h(t){if(!(this instanceof h))return new h(t);l.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",u)}function u(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,r){d(t,e,r)}))}function d(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new o;return t.push(null)}r(8874)(h,l),h.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},h.prototype._transform=function(t,e,r){r(new i("_transform()"))},h.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},h.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},h.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},2557:(t,e,r)=>{function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var i;t.exports=S,S.WritableState=x;var s={deprecate:r(3854)},o=r(6748),a=r(4300).Buffer,l=global.Uint8Array||function(){};var c,h=r(2262),u=r(7605).getHighWaterMark,d=r(63).q,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function _(){}function x(t,e,s){i=i||r(7073),t=t||{},"boolean"!=typeof s&&(s=e instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(R,t,e),t._writableState.errorEmitted=!0,E(t,n)):(i(n),t._writableState.errorEmitted=!0,E(t,n),R(t,e))}(t,r,n,e,i);else{var s=A(r)||t.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||I(t,r),n?process.nextTick(T,t,r,s,i):T(t,r,s,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(t){var e=this instanceof(i=i||r(7073));if(!e&&!c.call(S,this))return new S(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function O(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function T(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),R(t,e)}function I(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,s=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)s[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;s.allBuffers=l,O(t,e,!0,e.length,s,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,h=r.encoding,u=r.callback;if(O(t,e,!1,e.objectMode?1:c.length,c,h,u),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function A(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function C(t,e){t._final((function(r){e.pendingcb--,r&&E(t,r),e.prefinished=!0,t.emit("prefinish"),R(t,e)}))}function R(t,e){var r=A(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(C,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(8874)(S,o),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===S&&(t&&t._writableState instanceof x)}})):c=function(t){return t instanceof this},S.prototype.pipe=function(){E(this,new g)},S.prototype.write=function(t,e,r){var n,i=this._writableState,s=!1,o=!i.objectMode&&(n=t,a.isBuffer(n)||n instanceof l);return o&&!a.isBuffer(t)&&(t=function(t){return a.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=_),i.ending?function(t,e){var r=new v;E(t,r),process.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var i;return null===r?i=new b:"string"==typeof r||e.objectMode||(i=new f("chunk",["string","Buffer"],r)),!i||(E(t,i),process.nextTick(n,i),!1)}(this,i,t,r))&&(i.pendingcb++,s=function(t,e,r,n,i,s){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=a.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var l=e.objectMode?1:n.length;e.length+=l;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else O(t,e,!1,l,n,i,s);return c}(this,i,o,t,e,r)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,R(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=h.destroy,S.prototype._undestroy=h.undestroy,S.prototype._destroy=function(t,e){e(t)}},1029:(t,e,r)=>{var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(9885),o=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var r=t[d].read();null!==r&&(t[h]=null,t[o]=null,t[a]=null,e(f(r,!1)))}}function m(t){process.nextTick(p,t)}var g=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(e,r){process.nextTick((function(){t[l]?r(t[l]):e(f(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(f(void 0,!0)):e[u](r,n)}),n)}}(n,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(f(i,!1));r=new Promise(this[u])}return this[h]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[d].destroy(null,(function(t){t?r(t):e(f(void 0,!0))}))}))})),n),g);t.exports=function(t){var e,r=Object.create(y,(i(e={},d,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,u,{value:function(t,e){var n=r[d].read();n?(r[h]=null,r[o]=null,r[a]=null,t(f(n,!1))):(r[o]=t,r[a]=e)},writable:!0}),e));return r[h]=null,s(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[h]=null,r[o]=null,r[a]=null,e(t)),void(r[l]=t)}var n=r[o];null!==n&&(r[h]=null,r[o]=null,r[a]=null,n(f(void 0,!0))),r[c]=!0})),t.on("readable",m.bind(null,r)),r}},6637:(t,e,r)=>{function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=r(4300).Buffer,a=r(3837).inspect,l=a&&a.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,c;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,r=i,n=a,o.prototype.copy.call(e,r,n),a+=s.data.length,s=s.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,s=t>i.length?i.length:t;if(s===i.length?n+=i:n+=i.slice(0,t),0==(t-=s)){s===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(s));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return a(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&s(e.prototype,r),c&&s(e,c),t}()},2262:t=>{function e(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,i){var s=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,t)):process.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?s._writableState?s._writableState.errorEmitted?process.nextTick(r,s):(s._writableState.errorEmitted=!0,process.nextTick(e,s,t)):process.nextTick(e,s,t):i?(process.nextTick(r,s),i(t)):process.nextTick(r,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},9885:(t,e,r)=>{var n=r(63).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,s){if("function"==typeof r)return t(e,null,r);r||(r={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(s||i);var o=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,l=function(){e.writable||h()},c=e._writableState&&e._writableState.finished,h=function(){a=!1,c=!0,o||s.call(e)},u=e._readableState&&e._readableState.endEmitted,d=function(){o=!1,u=!0,a||s.call(e)},f=function(t){s.call(e,t)},p=function(){var t;return o&&!u?(e._readableState&&e._readableState.ended||(t=new n),s.call(e,t)):a&&!c?(e._writableState&&e._writableState.ended||(t=new n),s.call(e,t)):void 0},m=function(){e.req.on("finish",h)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?a&&!e._writableState&&(e.on("end",l),e.on("close",l)):(e.on("complete",h),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",d),e.on("finish",h),!1!==r.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",h),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",h),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",h),e.removeListener("end",d),e.removeListener("error",f),e.removeListener("close",p)}}},7549:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(63).q.ERR_INVALID_ARG_TYPE;t.exports=function(t,e,r){var n;if(e&&"function"==typeof e.next)n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else{if(!e||!e[Symbol.iterator])throw new a("iterable",["Iterable"],e);n=e[Symbol.iterator]()}var l=new t(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({objectMode:!0},r)),c=!1;function h(){return u.apply(this,arguments)}function u(){return(u=i((function*(){try{var t=yield n.next(),e=t.value;t.done?l.push(null):l.push(yield e)?h():c=!1}catch(t){l.destroy(t)}}))).apply(this,arguments)}return l._read=function(){c||(c=!0,h())},l}},3272:(t,e,r)=>{var n;var i=r(63).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function l(t,e,i,s){s=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(s);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=r(9885)),n(t,{readable:e,writable:i},(function(t){if(t)return s(t);a=!0,s()}));var l=!1;return function(e){if(!a&&!l)return l=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new o("pipe"))}}function c(t){t()}function h(t,e){return t.pipe(e)}function u(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=u(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var o=e.map((function(t,r){var s=r<e.length-1;return l(t,s,r>0,(function(t){n||(n=t),t&&o.forEach(c),s||(o.forEach(c),i(n))}))}));return e.reduce(h)}},7605:(t,e,r)=>{var n=r(63).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var s=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(i?r:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},6748:(t,e,r)=>{t.exports=r(2781)},1258:(t,e,r)=>{var n=r(2781);"disable"===process.env.READABLE_STREAM&&n?(t.exports=n.Readable,Object.assign(t.exports,n),t.exports.Stream=n):((e=t.exports=r(8009)).Stream=n||e,e.Readable=e,e.Writable=r(2557),e.Duplex=r(7073),e.Transform=r(7640),e.PassThrough=r(5163),e.finished=r(9885),e.pipeline=r(3272))},7834:(t,e,r)=>{var n=r(4300),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},7847:(t,e,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=s(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){const e=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return l(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new u(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new u(this.value,e).test(t.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),s=this.semver.version===t.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),a=l(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=l(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||n||s&&o||a||c}}t.exports=i;const s=r(1388),{re:o,t:a}=r(4808),l=r(8117),c=r(952),h=r(2435),u=r(6843)},6843:(t,e,r)=>{class n{constructor(t,e){if(e=s(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!p(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const e=`parseRange:${Object.keys(this.options).join(",")}:${t}`,r=i.get(e);if(r)return r;const n=this.options.loose,s=n?c[h.HYPHENRANGELOOSE]:c[h.HYPHENRANGE];t=t.replace(s,I(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(c[h.COMPARATORTRIM],u),a("comparator trim",t,c[h.COMPARATORTRIM]),t=(t=(t=t.replace(c[h.TILDETRIM],d)).replace(c[h.CARETTRIM],f)).split(/\s+/).join(" ");const l=n?c[h.COMPARATORLOOSE]:c[h.COMPARATOR],m=t.split(" ").map((t=>y(t,this.options))).join(" ").split(/\s+/).map((t=>T(t,this.options))).filter(this.options.loose?t=>!!t.match(l):()=>!0).map((t=>new o(t,this.options))),g=(m.length,new Map);for(const t of m){if(p(t))return[t];g.set(t.value,t)}g.size>1&&g.has("")&&g.delete("");const b=[...g.values()];return i.set(e,b),b}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>g(r,e)&&t.set.some((t=>g(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(A(this.set[e],t,this.options))return!0;return!1}}t.exports=n;const i=new(r(7105))({max:1e3}),s=r(1388),o=r(7847),a=r(952),l=r(2435),{re:c,t:h,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=r(4808),p=t=>"<0.0.0-0"===t.value,m=t=>""===t.value,g=(t,e)=>{let r=!0;const n=t.slice();let i=n.pop();for(;r&&n.length;)r=n.every((t=>i.intersects(t,e))),i=n.pop();return r},y=(t,e)=>(a("comp",t,e),t=E(t,e),a("caret",t),t=v(t,e),a("tildes",t),t=x(t,e),a("xrange",t),t=O(t,e),a("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,v=(t,e)=>t.trim().split(/\s+/).map((t=>w(t,e))).join(" "),w=(t,e)=>{const r=e.loose?c[h.TILDELOOSE]:c[h.TILDE];return t.replace(r,((e,r,n,i,s)=>{let o;return a("tilde",t,e,r,n,i,s),b(r)?o="":b(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(a("replaceTilde pr",s),o=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},E=(t,e)=>t.trim().split(/\s+/).map((t=>_(t,e))).join(" "),_=(t,e)=>{a("caret",t,e);const r=e.loose?c[h.CARETLOOSE]:c[h.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,s,o)=>{let l;return a("caret",t,e,r,i,s,o),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(s)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),l="0"===r?"0"===i?`>=${r}.${i}.${s}-${o} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${o} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),a("caret return",l),l}))},x=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>S(t,e))).join(" ")),S=(t,e)=>{t=t.trim();const r=e.loose?c[h.XRANGELOOSE]:c[h.XRANGE];return t.replace(r,((r,n,i,s,o,l)=>{a("xRange",t,r,n,i,s,o,l);const c=b(i),h=c||b(s),u=h||b(o),d=u;return"="===n&&d&&(n=""),l=e.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(h&&(s=0),o=0,">"===n?(n=">=",h?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===n&&(n="<",h?i=+i+1:s=+s+1),"<"===n&&(l="-0"),r=`${n+i}.${s}.${o}${l}`):h?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${s}.0${l} <${i}.${+s+1}.0-0`),a("xRange return",r),r}))},O=(t,e)=>(a("replaceStars",t,e),t.trim().replace(c[h.STAR],"")),T=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?h.GTE0PRE:h.GTE0],"")),I=t=>(e,r,n,i,s,o,a,l,c,h,u,d,f)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${t?"-0":""}`:b(s)?`>=${n}.${i}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`} ${l=b(c)?"":b(h)?`<${+c+1}.0.0-0`:b(u)?`<${c}.${+h+1}.0-0`:d?`<=${c}.${h}.${u}-${d}`:t?`<${c}.${h}.${+u+1}-0`:`<=${l}`}`.trim(),A=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(a(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},2435:(t,e,r)=>{const n=r(952),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(5558),{re:o,t:a}=r(4808),l=r(1388),{compareIdentifiers:c}=r(4935);class h{constructor(t,e){if(e=l(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid Version: ${t}`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<s)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}inc(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let t=this.prerelease.length;for(;--t>=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}t.exports=h},6694:(t,e,r)=>{const n=r(9943);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},8117:(t,e,r)=>{const n=r(3276),i=r(7880),s=r(6379),o=r(8463),a=r(1897),l=r(506);t.exports=(t,e,r,c)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,c);case"!=":return i(t,r,c);case">":return s(t,r,c);case">=":return o(t,r,c);case"<":return a(t,r,c);case"<=":return l(t,r,c);default:throw new TypeError(`Invalid operator: ${e}`)}}},8686:(t,e,r)=>{const n=r(2435),i=r(9943),{re:s,t:o}=r(4808);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=s[o.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),s[o.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;s[o.COERCERTL].lastIndex=-1}else r=t.match(s[o.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},5914:(t,e,r)=>{const n=r(2435);t.exports=(t,e,r)=>{const i=new n(t,r),s=new n(e,r);return i.compare(s)||i.compareBuild(s)}},5404:(t,e,r)=>{const n=r(2271);t.exports=(t,e)=>n(t,e,!0)},2271:(t,e,r)=>{const n=r(2435);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},6007:(t,e,r)=>{const n=r(9943),i=r(3276);t.exports=(t,e)=>{if(i(t,e))return null;{const r=n(t),i=n(e),s=r.prerelease.length||i.prerelease.length,o=s?"pre":"",a=s?"prerelease":"";for(const t in r)if(("major"===t||"minor"===t||"patch"===t)&&r[t]!==i[t])return o+t;return a}}},3276:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>0===n(t,e,r)},6379:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)>0},8463:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)>=0},6360:(t,e,r)=>{const n=r(2435);t.exports=(t,e,r,i)=>{"string"==typeof r&&(i=r,r=void 0);try{return new n(t,r).inc(e,i).version}catch(t){return null}}},1897:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)<0},506:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)<=0},4551:(t,e,r)=>{const n=r(2435);t.exports=(t,e)=>new n(t,e).major},469:(t,e,r)=>{const n=r(2435);t.exports=(t,e)=>new n(t,e).minor},7880:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>0!==n(t,e,r)},9943:(t,e,r)=>{const{MAX_LENGTH:n}=r(5558),{re:i,t:s}=r(4808),o=r(2435),a=r(1388);t.exports=(t,e)=>{if(e=a(e),t instanceof o)return t;if("string"!=typeof t)return null;if(t.length>n)return null;if(!(e.loose?i[s.LOOSE]:i[s.FULL]).test(t))return null;try{return new o(t,e)}catch(t){return null}}},4250:(t,e,r)=>{const n=r(2435);t.exports=(t,e)=>new n(t,e).patch},8204:(t,e,r)=>{const n=r(9943);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},733:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(e,t,r)},2961:(t,e,r)=>{const n=r(5914);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},9844:(t,e,r)=>{const n=r(6843);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},1116:(t,e,r)=>{const n=r(5914);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},7230:(t,e,r)=>{const n=r(9943);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},7699:(t,e,r)=>{const n=r(4808);t.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(5558).SEMVER_SPEC_VERSION,SemVer:r(2435),compareIdentifiers:r(4935).compareIdentifiers,rcompareIdentifiers:r(4935).rcompareIdentifiers,parse:r(9943),valid:r(7230),clean:r(6694),inc:r(6360),diff:r(6007),major:r(4551),minor:r(469),patch:r(4250),prerelease:r(8204),compare:r(2271),rcompare:r(733),compareLoose:r(5404),compareBuild:r(5914),sort:r(1116),rsort:r(2961),gt:r(6379),lt:r(1897),eq:r(3276),neq:r(7880),gte:r(8463),lte:r(506),cmp:r(8117),coerce:r(8686),Comparator:r(7847),Range:r(6843),satisfies:r(9844),toComparators:r(8865),maxSatisfying:r(3727),minSatisfying:r(4338),minVersion:r(1542),validRange:r(6240),outside:r(9106),gtr:r(995),ltr:r(7805),intersects:r(2013),simplifyRange:r(1338),subset:r(3122)}},5558:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:e,MAX_SAFE_COMPONENT_LENGTH:16}},952:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},4935:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},1388:t=>{const e=["includePrerelease","loose","rtl"];t.exports=t=>t?"object"!=typeof t?{loose:!0}:e.filter((e=>t[e])).reduce(((t,e)=>(t[e]=!0,t)),{}):{}},4808:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(5558),i=r(952),s=(e=t.exports={}).re=[],o=e.src=[],a=e.t={};let l=0;const c=(t,e,r)=>{const n=l++;i(n,e),a[t]=n,o[n]=e,s[n]=new RegExp(e,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),c("FULL",`^${o[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),c("LOOSE",`^${o[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),c("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",o[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},995:(t,e,r)=>{const n=r(9106);t.exports=(t,e,r)=>n(t,e,">",r)},2013:(t,e,r)=>{const n=r(6843);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e))},7805:(t,e,r)=>{const n=r(9106);t.exports=(t,e,r)=>n(t,e,"<",r)},3727:(t,e,r)=>{const n=r(2435),i=r(6843);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&-1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},4338:(t,e,r)=>{const n=r(2435),i=r(6843);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},1542:(t,e,r)=>{const n=r(2435),i=r(6843),s=r(6379);t.exports=(t,e)=>{t=new i(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const i=t.set[e];let o=null;i.forEach((t=>{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":o&&!s(e,o)||(o=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!o||r&&!s(r,o)||(r=o)}return r&&t.test(r)?r:null}},9106:(t,e,r)=>{const n=r(2435),i=r(7847),{ANY:s}=i,o=r(6843),a=r(9844),l=r(6379),c=r(1897),h=r(506),u=r(8463);t.exports=(t,e,r,d)=>{let f,p,m,g,y;switch(t=new n(t,d),e=new o(e,d),r){case">":f=l,p=h,m=c,g=">",y=">=";break;case"<":f=c,p=u,m=l,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(t,e,d))return!1;for(let r=0;r<e.set.length;++r){const n=e.set[r];let o=null,a=null;if(n.forEach((t=>{t.semver===s&&(t=new i(">=0.0.0")),o=o||t,a=a||t,f(t.semver,o.semver,d)?o=t:m(t.semver,a.semver,d)&&(a=t)})),o.operator===g||o.operator===y)return!1;if((!a.operator||a.operator===g)&&p(t,a.semver))return!1;if(a.operator===y&&m(t,a.semver))return!1}return!0}},1338:(t,e,r)=>{const n=r(9844),i=r(2271);t.exports=(t,e,r)=>{const s=[];let o=null,a=null;const l=t.sort(((t,e)=>i(t,e,r)));for(const t of l){n(t,e,r)?(a=t,o||(o=t)):(a&&s.push([o,a]),a=null,o=null)}o&&s.push([o,null]);const c=[];for(const[t,e]of s)t===e?c.push(t):e||t!==l[0]?e?t===l[0]?c.push(`<=${e}`):c.push(`${t} - ${e}`):c.push(`>=${t}`):c.push("*");const h=c.join(" || "),u="string"==typeof e.raw?e.raw:String(e);return h.length<u.length?h:e}},3122:(t,e,r)=>{const n=r(6843),i=r(7847),{ANY:s}=i,o=r(9844),a=r(2271),l=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===s){if(1===e.length&&e[0].semver===s)return!0;t=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===e.length&&e[0].semver===s){if(r.includePrerelease)return!0;e=[new i(">=0.0.0")]}const n=new Set;let l,u,d,f,p,m,g;for(const e of t)">"===e.operator||">="===e.operator?l=c(l,e,r):"<"===e.operator||"<="===e.operator?u=h(u,e,r):n.add(e.semver);if(n.size>1)return null;if(l&&u){if(d=a(l.semver,u.semver,r),d>0)return null;if(0===d&&(">="!==l.operator||"<="!==u.operator))return null}for(const t of n){if(l&&!o(t,String(l),r))return null;if(u&&!o(t,String(u),r))return null;for(const n of e)if(!o(t,String(n),r))return!1;return!0}let y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver,b=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver;y&&1===y.prerelease.length&&"<"===u.operator&&0===y.prerelease[0]&&(y=!1);for(const t of e){if(g=g||">"===t.operator||">="===t.operator,m=m||"<"===t.operator||"<="===t.operator,l)if(b&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===b.major&&t.semver.minor===b.minor&&t.semver.patch===b.patch&&(b=!1),">"===t.operator||">="===t.operator){if(f=c(l,t,r),f===t&&f!==l)return!1}else if(">="===l.operator&&!o(l.semver,String(t),r))return!1;if(u)if(y&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===y.major&&t.semver.minor===y.minor&&t.semver.patch===y.patch&&(y=!1),"<"===t.operator||"<="===t.operator){if(p=h(u,t,r),p===t&&p!==u)return!1}else if("<="===u.operator&&!o(u.semver,String(t),r))return!1;if(!t.operator&&(u||l)&&0!==d)return!1}return!(l&&m&&!u&&0!==d)&&(!(u&&g&&!l&&0!==d)&&(!b&&!y))},c=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},h=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let i=!1;t:for(const n of t.set){for(const t of e.set){const e=l(n,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},8865:(t,e,r)=>{const n=r(6843);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},6240:(t,e,r)=>{const n=r(6843);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},4256:(t,e,r)=>{const n=r(3882);t.exports=(t="")=>{const e=t.match(n);if(!e)return null;const[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?i:i?`${s} ${i}`:s}},3882:t=>{t.exports=/^#!(.*)/},260:(t,e,r)=>{var n=global.process;const i=function(t){return t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on};if(i(n)){var s,o=r(9491),a=r(3261),l=/^win/i.test(n.platform),c=r(2361);"function"!=typeof c&&(c=c.EventEmitter),n.__signal_exit_emitter__?s=n.__signal_exit_emitter__:((s=n.__signal_exit_emitter__=new c).count=0,s.emitted={}),s.infinite||(s.setMaxListeners(1/0),s.infinite=!0),t.exports=function(t,e){if(!i(global.process))return function(){};o.equal(typeof t,"function","a callback must be provided for exit handler"),!1===f&&p();var r="exit";e&&e.alwaysLast&&(r="afterexit");return s.on(r,t),function(){s.removeListener(r,t),0===s.listeners("exit").length&&0===s.listeners("afterexit").length&&h()}};var h=function(){f&&i(global.process)&&(f=!1,a.forEach((function(t){try{n.removeListener(t,d[t])}catch(t){}})),n.emit=y,n.reallyExit=m,s.count-=1)};t.exports.unload=h;var u=function(t,e,r){s.emitted[t]||(s.emitted[t]=!0,s.emit(t,e,r))},d={};a.forEach((function(t){d[t]=function(){i(global.process)&&(n.listeners(t).length===s.count&&(h(),u("exit",null,t),u("afterexit",null,t),l&&"SIGHUP"===t&&(t="SIGINT"),n.kill(n.pid,t)))}})),t.exports.signals=function(){return a};var f=!1,p=function(){!f&&i(global.process)&&(f=!0,s.count+=1,a=a.filter((function(t){try{return n.on(t,d[t]),!0}catch(t){return!1}})),n.emit=b,n.reallyExit=g)};t.exports.load=p;var m=n.reallyExit,g=function(t){i(global.process)&&(n.exitCode=t||0,u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),m.call(n,n.exitCode))},y=n.emit,b=function(t,e){if("exit"===t&&i(global.process)){void 0!==e&&(n.exitCode=e);var r=y.apply(this,arguments);return u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),r}return y.apply(this,arguments)}}else t.exports=function(){return function(){}}},3261:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},7840:t=>{const e={to:(t,e)=>e?`\x1b[${e+1};${t+1}H`:`\x1b[${t+1}G`,move(t,e){let r="";return t<0?r+=`\x1b[${-t}D`:t>0&&(r+=`\x1b[${t}C`),e<0?r+=`\x1b[${-e}A`:e>0&&(r+=`\x1b[${e}B`),r},up:(t=1)=>`\x1b[${t}A`,down:(t=1)=>`\x1b[${t}B`,forward:(t=1)=>`\x1b[${t}C`,backward:(t=1)=>`\x1b[${t}D`,nextLine:(t=1)=>"\x1b[E".repeat(t),prevLine:(t=1)=>"\x1b[F".repeat(t),left:"\x1b[G",hide:"\x1b[?25l",show:"\x1b[?25h",save:"\x1b7",restore:"\x1b8"},r={up:(t=1)=>"\x1b[S".repeat(t),down:(t=1)=>"\x1b[T".repeat(t)},n={screen:"\x1b[2J",up:(t=1)=>"\x1b[1J".repeat(t),down:(t=1)=>"\x1b[J".repeat(t),line:"\x1b[2K",lineEnd:"\x1b[K",lineStart:"\x1b[1K",lines(t){let r="";for(let n=0;n<t;n++)r+=this.line+(n<t-1?e.up():"");return t&&(r+=e.left),r}};t.exports={cursor:e,scroll:r,erase:n,beep:"\x07"}},214:(t,e,r)=>{var n=r(7834).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=u,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.s=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=o(e[n]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=o(e[n]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},2278:t=>{t.exports=function(t){if("object"!=typeof t)throw new Error("expected an author to be an object");var e={name:["",""],email:["<",">"],url:["(",")"]},r="";for(var n in t.url&&(t.url=function(t){return t.replace(/\/$/,"")}(t.url)),e)t[n]&&(r+=e[n][0]+t[n]+e[n][1]+" ");return r.trim()}},6178:t=>{t.exports=t=>{const e="string"==typeof t?"\n":"\n".charCodeAt(),r="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}},2191:t=>{t.exports=function(){return/^[\\\/]{2,}[^\\\/]+[\\\/]+[^\\\/]+/}},5725:(t,e)=>{e.fromCallback=function(t){return Object.defineProperty((function(...e){if("function"!=typeof e[e.length-1])return new Promise(((r,n)=>{t.call(this,...e,((t,e)=>null!=t?n(t):r(e)))}));t.apply(this,e)}),"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty((function(...e){const r=e[e.length-1];if("function"!=typeof r)return t.apply(this,e);t.apply(this,e.slice(0,-1)).then((t=>r(null,t)),r)}),"name",{value:t.name})}},3854:(t,e,r)=>{t.exports=r(3837).deprecate},9189:(t,e,r)=>{var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),i=r(7479),s=["node_modules","favicon.ico"];var o=function(t,e){var r={validForNewPackages:0===e.length&&0===t.length,validForOldPackages:0===e.length,warnings:t,errors:e};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};t.exports=function(t){var e=[],r=[];if(null===t)return r.push("name cannot be null"),o(e,r);if(void 0===t)return r.push("name cannot be undefined"),o(e,r);if("string"!=typeof t)return r.push("name must be a string"),o(e,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),s.forEach((function(e){t.toLowerCase()===e&&r.push(e+" is a blacklisted name")})),i({version:"*"}).forEach((function(r){t.toLowerCase()===r&&e.push(r+" is a core module name")})),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(t)!==t){var a=t.match(n);if(a){var l=a[1],c=a[2];if(encodeURIComponent(l)===l&&encodeURIComponent(c)===c)return o(e,r)}r.push("name can only contain URL-friendly characters")}return o(e,r)}},7479:(t,e,r)=>{const n=r(7699),i=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"],s={freelist:"<6.0.0",v8:">=1.0.0",process:">=1.1.0",inspector:">=8.0.0",async_hooks:">=8.1.0",http2:">=8.4.0",perf_hooks:">=8.5.0",trace_events:">=10.0.0",worker_threads:">=12.0.0"},o={worker_threads:">=10.5.0",wasi:">=12.16.0",diagnostics_channel:"^14.17.0 || >=15.1.0"};t.exports=({version:t=process.version,experimental:e=!1}={})=>{const r=[...i];for(const[e,i]of Object.entries(s))("*"===t||n.satisfies(t,i))&&r.push(e);if(e)for(const[e,i]of Object.entries(o))r.includes(e)||"*"!==t&&!n.satisfies(t,i)||r.push(e);return r}},91:t=>{t.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},8975:(t,e,r)=>{var n=r(2526),i=r(91),s={nul:0,control:0};function o(t,e){if("string"!=typeof t)return a(t,e);for(var r=0,n=0;n<t.length;n++){var i=a(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function a(t,e){return 0===t?e.nul:t<32||t>=127&&t<160?e.control:function(t){var e,r=0,n=i.length-1;if(t<i[0][0]||t>i[n][1])return!1;for(;n>=r;)if(e=Math.floor((r+n)/2),t>i[e][1])r=e+1;else{if(!(t<i[e][0]))return!0;n=e-1}return!1}(t)?0:1+(t>=4352&&(t<=4447||9001==t||9002==t||t>=11904&&t<=42191&&12351!=t||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}t.exports=function(t){return o(t,s)},t.exports.config=function(t){return t=n(t||{},s),function(e){return o(e,t)}}},1813:(t,e,r)=>{t.exports=c,c.sync=function(t,e){for(var r=l(t,e=e||{}),n=r.env,s=r.ext,c=r.extExe,h=[],u=0,d=n.length;u<d;u++){var f=n[u];'"'===f.charAt(0)&&'"'===f.slice(-1)&&(f=f.slice(1,-1));var p=i.join(f,t);!f&&/^\.[\\\/]/.test(t)&&(p=t.slice(0,2)+p);for(var m=0,g=s.length;m<g;m++){var y=p+s[m];try{if(o.sync(y,{pathExt:c})){if(!e.all)return y;h.push(y)}}catch(t){}}}if(e.all&&h.length)return h;if(e.nothrow)return null;throw a(t)};var n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(1017),s=n?";":":",o=r(5909);function a(t){var e=new Error("not found: "+t);return e.code="ENOENT",e}function l(t,e){var r=e.colon||s,i=e.path||process.env.PATH||"",o=[""];i=i.split(r);var a="";return n&&(i.unshift(process.cwd()),o=(a=e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==t.indexOf(".")&&""!==o[0]&&o.unshift("")),(t.match(/\//)||n&&t.match(/\\/))&&(i=[""]),{env:i,ext:o,extExe:a}}function c(t,e,r){"function"==typeof e&&(r=e,e={});var n=l(t,e),s=n.env,c=n.ext,h=n.extExe,u=[];!function n(l,d){if(l===d)return e.all&&u.length?r(null,u):r(a(t));var f=s[l];'"'===f.charAt(0)&&'"'===f.slice(-1)&&(f=f.slice(1,-1));var p=i.join(f,t);!f&&/^\.[\\\/]/.test(t)&&(p=t.slice(0,2)+p),function t(i,s){if(i===s)return n(l+1,d);var a=c[i];o(p+a,{pathExt:h},(function(n,o){if(!n&&o){if(!e.all)return r(null,p+a);u.push(p+a)}return t(i+1,s)}))}(0,c.length)}(0,s.length)}},8892:t=>{t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){n[t]=e[t]})),n;function n(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),i=t[t.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(t){n[t]=i[t]})),n}}},8268:t=>{t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},8006:(t,e,r)=>{function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new a(r,null,e,t):new a(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function s(t,e){t.tail=new a(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function o(t,e){t.head=new a(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,e,r,n){if(!(this instanceof a))return new a(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=a,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)s(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;for(;null!==s&&i<e;i++,s=s.next)r.push(s.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;null!==s&&i>e;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)r.push(s.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;null!==s&&n<t;n++)s=s.next;var o=[];for(n=0;s&&n<e;n++)o.push(s.value),s=this.removeNode(s);null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(n=0;n<r.length;n++)s=i(this,s,r[n]);return o},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(8268)(n)}catch(t){}},5888:(t,e,r)=>{const n=r(9341);let i,s;function o({respectNpm5:t}={}){return t&&function(){if(void 0!==s)return s;const t=n.sync("npm",["--version"]).stdout.toString().trim().split(".")[0];return s=t>=5,s}()||!function(){if(void 0!==i)return i;const t=n.sync("yarn",["--version"]),e=t.stdout&&t.stdout.toString().trim();return i=e,e}()?"npm":"yarn"}function a(t){return Object.keys(t).filter((e=>Boolean(t[e])))}function l(t,e){const r=Object.assign({},process.env);return t.registry&&(e?r.yarn_registry=t.registry:r.npm_config_registry=t.registry),r}t.exports=function(t={}){const e=t.cwd,r=void 0===t.stdio?"inherit":t.stdio,i=o({respectNpm5:t.respectNpm5}),s=t.deps&&t.deps.length>0?t.deps:null;let c;c=a("yarn"===i?{global:t.global,add:s&&!t.remove,remove:t.remove,"--dev":t.dev,"--production":t.production}:{install:!t.remove,uninstall:t.remove,"--save":!t.dev&&!t.global,"--save-dev":t.dev,"--global":t.global,"--production":t.production}),s&&(c=c.concat(s)),t.showCommand&&console.log(">",i,c.join(" "));const h=n.sync(i,c,{stdio:r,cwd:e,env:l(t,"yarn"===i)});return 0!==h.status&&(process.exitCode=h.status),h},t.exports.yarnInstalled=i,t.exports.isNpm5=s,t.exports.getPm=o},9341:(t,e,r)=>{var n=r(2081),i=r(5750),s=r(7349),o=n.spawnSync;function a(t,e,r){var o,a;return o=i(t,e,r),a=n.spawn(o.command,o.args,o.options),s.hookChildProcess(a,o),a}t.exports=a,t.exports.spawn=a,t.exports.sync=function(t,e,n){var a,l;if(!o)try{o=r(4072)}catch(t){throw new Error("In order to use spawnSync on node 0.10 or older, you must install spawn-sync:\n\n npm install spawn-sync --save")}return a=i(t,e,n),(l=o(a.command,a.args,a.options)).error=l.error||s.verifyENOENTSync(l.status,a),l},t.exports._parse=i,t.exports._enoent=s},7349:(t,e,r)=>{var n="win32"===process.platform,i=r(5159),s=0===process.version.indexOf("v0.10.");function o(t,e){var r;return(r=new Error(e+" "+t+" ENOENT")).code=r.errno="ENOENT",r.syscall=e+" "+t,r}function a(t,e){return n&&1===t&&!e.file?o(e.original,"spawn"):null}t.exports.hookChildProcess=function(t,e){var r;n&&(r=t.emit,t.emit=function(n,i){var s;return"exit"===n&&(s=a(i,e))?r.call(t,"error",s):r.apply(t,arguments)})},t.exports.verifyENOENT=a,t.exports.verifyENOENTSync=function(t,e){return n&&1===t&&!e.file||s&&-1===t&&(e.file=n?e.file:i(e.original),!e.file)?o(e.original,"spawnSync"):null},t.exports.notFoundError=o},958:t=>{t.exports=function(){if("win32"!==process.platform)return!1;var t=process.version.substr(1).split(".").map((function(t){return parseInt(t,10)}));return 0===t[0]&&t[1]<12}()},5750:(t,e,r)=>{var n=r(7147),i=r(7796),s=r(5159),o=r(958),a="win32"===process.platform,l=new i({max:50,maxAge:3e4});function c(t,e){return t=""+t,t=e?'"'+(t=(t=t.replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"))+'"':t.replace(/([\(\)%!\^<>&|;,"'\s])/g,"^$1")}function h(t){return!/\.(?:com|exe)$/i.test(t)}t.exports=function(t,e,r){var i,u,d,f,p;return e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=r||{},f=t,a&&(i=(d=(d=s(t))||s(t,!0))&&function(t){var e,r,i,s;if(l.has(t))return l.get(t);e=new Buffer(150);try{r=n.openSync(t,"r"),n.readSync(r,e,0,150,0),n.closeSync(r)}catch(t){}return(i=e.toString().trim().match(/#!(.+)/i))&&(s=i[1].replace(/\/usr\/bin\/env\s+/i,"")),l.set(t,s),s}(d),p=r.shell||o,i?(e.unshift(d),t=i,p=p||h(s(i)||s(i,!0))):p=p||h(d),p&&(u="echo"!==t,e=["/s","/c",'"'+(t=function(t){return/^[a-z0-9_-]+$/i.test(t)?t:c(t,!0)}(t))+((e=e.map((function(t){return c(t,u)}))).length?" "+e.join(" "):"")+'"'],t=process.env.comspec||"cmd.exe",r.windowsVerbatimArguments=!0)),{command:t,args:e,options:r,file:d,original:f}}},5159:(t,e,r)=>{var n=r(1017),i=r(1813),s=new(r(7796))({max:50,maxAge:3e4});t.exports=function(t,e){var r;if(e=!!e,r=s.get(t+"!"+e),s.has(t))return s.get(t);try{r=e?i.sync(t,{pathExt:n.delimiter+(process.env.PATHEXT||"")}):i.sync(t)}catch(t){}return s.set(t+"!"+e,r),r}},7796:(t,e,r)=>{t.exports=y;var n,i=r(6636),s=r(3837),o=r(8203),a=(n="function"==typeof Symbol&&"1"!==process.env._nodeLRUCacheForceNoSymbol?function(t){return Symbol(t)}:function(t){return"_"+t})("max"),l=n("length"),c=n("lengthCalculator"),h=n("allowStale"),u=n("maxAge"),d=n("dispose"),f=n("noDisposeOnSet"),p=n("lruList"),m=n("cache");function g(){return 1}function y(t){if(!(this instanceof y))return new y(t);"number"==typeof t&&(t={max:t}),t||(t={});var e=this[a]=t.max;(!e||"number"!=typeof e||e<=0)&&(this[a]=1/0);var r=t.length||g;"function"!=typeof r&&(r=g),this[c]=r,this[h]=t.stale||!1,this[u]=t.maxAge||0,this[d]=t.dispose,this[f]=t.noDisposeOnSet||!1,this.reset()}function b(t,e,r,n){var i=r.value;w(t,i)&&(_(t,r),t[h]||(i=void 0)),i&&e.call(n,i.value,i.key,t)}function v(t,e,r){var n=t[m].get(e);if(n){var i=n.value;w(t,i)?(_(t,n),t[h]||(i=void 0)):r&&t[p].unshiftNode(n),i&&(i=i.value)}return i}function w(t,e){if(!e||!e.maxAge&&!t[u])return!1;var r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[u]&&r>t[u]}function E(t){if(t[l]>t[a])for(var e=t[p].tail;t[l]>t[a]&&null!==e;){var r=e.prev;_(t,e),e=r}}function _(t,e){if(e){var r=e.value;t[d]&&t[d](r.key,r.value),t[l]-=r.length,t[m].delete(r.key),t[p].removeNode(e)}}function x(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}Object.defineProperty(y.prototype,"max",{set:function(t){(!t||"number"!=typeof t||t<=0)&&(t=1/0),this[a]=t,E(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(t){this[h]=!!t},get:function(){return this[h]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(t){(!t||"number"!=typeof t||t<0)&&(t=0),this[u]=t,E(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(t){"function"!=typeof t&&(t=g),t!==this[c]&&(this[c]=t,this[l]=0,this[p].forEach((function(t){t.length=this[c](t.value,t.key),this[l]+=t.length}),this)),E(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[p].length},enumerable:!0}),y.prototype.rforEach=function(t,e){e=e||this;for(var r=this[p].tail;null!==r;){var n=r.prev;b(this,t,r,e),r=n}},y.prototype.forEach=function(t,e){e=e||this;for(var r=this[p].head;null!==r;){var n=r.next;b(this,t,r,e),r=n}},y.prototype.keys=function(){return this[p].toArray().map((function(t){return t.key}),this)},y.prototype.values=function(){return this[p].toArray().map((function(t){return t.value}),this)},y.prototype.reset=function(){this[d]&&this[p]&&this[p].length&&this[p].forEach((function(t){this[d](t.key,t.value)}),this),this[m]=new i,this[p]=new o,this[l]=0},y.prototype.dump=function(){return this[p].map((function(t){if(!w(this,t))return{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}),this).toArray().filter((function(t){return t}))},y.prototype.dumpLru=function(){return this[p]},y.prototype.inspect=function(t,e){var r="LRUCache {",n=!1;this[h]&&(r+="\n allowStale: true",n=!0);var i=this[a];i&&i!==1/0&&(n&&(r+=","),r+="\n max: "+s.inspect(i,e),n=!0);var o=this[u];o&&(n&&(r+=","),r+="\n maxAge: "+s.inspect(o,e),n=!0);var d=this[c];d&&d!==g&&(n&&(r+=","),r+="\n length: "+s.inspect(this[l],e),n=!0);var f=!1;return this[p].forEach((function(t){f?r+=",\n ":(n&&(r+=",\n"),f=!0,r+="\n ");var i=s.inspect(t.key).split("\n").join("\n "),a={value:t.value};t.maxAge!==o&&(a.maxAge=t.maxAge),d!==g&&(a.length=t.length),w(this,t)&&(a.stale=!0),a=s.inspect(a,e).split("\n").join("\n "),r+=i+" => "+a})),(f||n)&&(r+="\n"),r+="}"},y.prototype.set=function(t,e,r){var n=(r=r||this[u])?Date.now():0,i=this[c](e,t);if(this[m].has(t)){if(i>this[a])return _(this,this[m].get(t)),!1;var s=this[m].get(t).value;return this[d]&&(this[f]||this[d](t,s.value)),s.now=n,s.maxAge=r,s.value=e,this[l]+=i-s.length,s.length=i,this.get(t),E(this),!0}var o=new x(t,e,i,n,r);return o.length>this[a]?(this[d]&&this[d](t,e),!1):(this[l]+=o.length,this[p].unshift(o),this[m].set(t,this[p].head),E(this),!0)},y.prototype.has=function(t){return!!this[m].has(t)&&!w(this,this[m].get(t).value)},y.prototype.get=function(t){return v(this,t,!0)},y.prototype.peek=function(t){return v(this,t,!1)},y.prototype.pop=function(){var t=this[p].tail;return t?(_(this,t),t.value):null},y.prototype.del=function(t){_(this,this[m].get(t))},y.prototype.load=function(t){this.reset();for(var e=Date.now(),r=t.length-1;r>=0;r--){var n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{var s=i-e;s>0&&this.set(n.k,n.v,s)}}},y.prototype.prune=function(){var t=this;this[m].forEach((function(e,r){v(t,r,!1)}))}},8203:t=>{function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){r.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)r.push(arguments[n]);return r}function r(t,e){t.tail=new i(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function n(t,e){t.head=new i(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function i(t,e,r,n){if(!(this instanceof i))return new i(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=e,e.Node=i,e.create=e,e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)r(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)n(this,arguments[t]);return this.length},e.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},e.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},e.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},e.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},e.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},e.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},e.prototype.map=function(t,r){r=r||this;for(var n=new e,i=this.head;null!==i;)n.push(t.call(r,i.value,this)),i=i.next;return n},e.prototype.mapReverse=function(t,r){r=r||this;for(var n=new e,i=this.tail;null!==i;)n.push(t.call(r,i.value,this)),i=i.prev;return n},e.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},e.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},e.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},e.prototype.slice=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;for(;null!==s&&i<r;i++,s=s.next)n.push(s.value);return n},e.prototype.sliceReverse=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var i=this.length,s=this.tail;null!==s&&i>r;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)n.push(s.value);return n},e.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this}},5105:(t,e,r)=>{const{PassThrough:n}=r(2781);t.exports=t=>{t={...t};const{array:e}=t;let{encoding:r}=t;const i="buffer"===r;let s=!1;e?s=!(r||i):r=r||"utf8",i&&(r=null);const o=new n({objectMode:s});r&&o.setEncoding(r);let a=0;const l=[];return o.on("data",(t=>{l.push(t),s?a=l.length:a+=t.length})),o.getBufferedValue=()=>e?l:i?Buffer.concat(l,a):l.join(""),o.getBufferedLength=()=>a,o}},31:(t,e,r)=>{const{constants:n}=r(4300),i=r(2781),{promisify:s}=r(3837),o=r(5105),a=s(i.pipeline);class l extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function c(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};const{maxBuffer:r}=e,i=o(e);return await new Promise(((e,s)=>{const o=t=>{t&&i.getBufferedLength()<=n.MAX_LENGTH&&(t.bufferedData=i.getBufferedValue()),s(t)};(async()=>{try{await a(t,i),e()}catch(t){o(t)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&o(new l)}))})),i.getBufferedValue()}t.exports=c,t.exports.buffer=(t,e)=>c(t,{...e,encoding:"buffer"}),t.exports.array=(t,e)=>c(t,{...e,array:!0}),t.exports.MaxBufferError=l},5654:t=>{t.exports="# Created by nice-move\nroot = true\n\n[*]\ncharset = utf-8\nend_of_line = lf\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\nmax_line_length = 80\nquote_type = single\ntab_width = 2\ntrim_trailing_whitespace = true\n"},1112:t=>{t.exports="# Created by nice-move\n\n* text=auto eol=lf\n"},7408:t=>{t.exports='MIT License\n\nCopyright (c) {{year}} {{holder}}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n'},4807:t=>{t.exports='This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to <https://unlicense.org/>\n'},9491:e=>{e.exports=t(import.meta.url)("assert")},4300:e=>{e.exports=t(import.meta.url)("buffer")},2081:e=>{e.exports=t(import.meta.url)("child_process")},2057:e=>{e.exports=t(import.meta.url)("constants")},2361:e=>{e.exports=t(import.meta.url)("events")},7147:e=>{e.exports=t(import.meta.url)("fs")},3685:e=>{e.exports=t(import.meta.url)("http")},5687:e=>{e.exports=t(import.meta.url)("https")},8188:e=>{e.exports=t(import.meta.url)("module")},2037:e=>{e.exports=t(import.meta.url)("os")},1017:e=>{e.exports=t(import.meta.url)("path")},3477:e=>{e.exports=t(import.meta.url)("querystring")},4521:e=>{e.exports=t(import.meta.url)("readline")},2781:e=>{e.exports=t(import.meta.url)("stream")},6224:e=>{e.exports=t(import.meta.url)("tty")},7310:e=>{e.exports=t(import.meta.url)("url")},3837:e=>{e.exports=t(import.meta.url)("util")},9796:e=>{e.exports=t(import.meta.url)("zlib")},4072:t=>{if("undefined"==typeof commonjs2){var e=new Error("Cannot find module 'commonjs2'");throw e.code="MODULE_NOT_FOUND",e}t.exports=commonjs2},922:(t,e,r)=>{const n=r(890),{resolver:i}=r(3166),{Creator:s}=r(6792),{readFile:o,readJson:a,outputFile:l,outputJson:c}=n,h={spaces:2,replacer:null};function u(t){return o(t,{encoding:"utf8"})}function d(t,e){return l(t,e,{encoding:"utf8"})}function f(t,e,{pretty:r=!1}={}){return c(t,e,r?h:void 0)}const p=s({read:u,write:d}),m=s({read:a,write:f}),g=s({read:u,write:f}),y=s({read:a,write:d});t.exports={Creator:s,Json:m,JsonToText:y,Text:p,TextToJson:g,resolver:i,fs:n}},6792:(t,e,r)=>{const{resolver:n,Base:i,logger:s}=r(3166);t.exports={Creator:function({read:t,write:e}){return class extends i{constructor(t){super(),t&&(this.root=t)}config(t){return void 0!==t&&(this.option=t),this}source(e,r=this.root){if(!e)throw new Error("path cannot be empty");return this.action=this.action.then((()=>{this.source=n(e,r)})).then((()=>t(this.source))),this}output(t,r=this.root){return this.action=this.action.then((i=>{const s=n(void 0===t?this.source:t,r);if(!s)throw new Error("path cannot be empty");return this.source=s,e(s,i,this.option).then((()=>i))})),this}logger(...t){if(0===t.length)throw new Error("message cannot be empty");return this.action=this.action.then((e=>(s.okay(...t),e)),(e=>{throw s.fail(...t),e})),this}}}}},3166:(t,e,r)=>{const{createRequire:n}=r(8188),{isAbsolute:i,resolve:s}=r(1017),{fileURLToPath:o}=r(7310),{green:a,red:l}=r(2645),c=n(`${process.cwd()}/`);function h(t){return t.startsWith("file:")?o(t):t}const u=new class{okay(...t){console.log(a("\u221a"),...t)}fail(...t){console.log(l("\xd7"),...t)}};t.exports={logger:u,resolver:function(t,e=process.cwd()){if(t.startsWith("~"))return c.resolve(t.replace(/^~/,""));const r=h(t);if(i(r))return r;const n=h(e);return s(n,r)},Base:class{constructor(){this.action=Promise.resolve()}onDone(t=(t=>t)){return this.action=this.action.then((t=>(this.temp=t,t))).then(t),this}onFail(t=(()=>this.temp)){return this.action=this.action.then((t=>(this.temp=t,t))).catch(t),this}then(t){return this.action.then(t)}catch(t){return this.action.catch(t)}finally(t){return this.action.finally(t)}}}},2548:t=>{t.exports=JSON.parse('{"dots":{"interval":80,"frames":["\u280b","\u2819","\u2839","\u2838","\u283c","\u2834","\u2826","\u2827","\u2807","\u280f"]},"dots2":{"interval":80,"frames":["\u28fe","\u28fd","\u28fb","\u28bf","\u287f","\u28df","\u28ef","\u28f7"]},"dots3":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u281e","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},"dots4":{"interval":80,"frames":["\u2804","\u2806","\u2807","\u280b","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280b","\u2807","\u2806"]},"dots5":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b"]},"dots6":{"interval":80,"frames":["\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281a","\u2819","\u2809","\u2801"]},"dots7":{"interval":80,"frames":["\u2808","\u2809","\u280b","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808"]},"dots8":{"interval":80,"frames":["\u2801","\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808","\u2808"]},"dots9":{"interval":80,"frames":["\u28b9","\u28ba","\u28bc","\u28f8","\u28c7","\u2867","\u2857","\u284f"]},"dots10":{"interval":80,"frames":["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},"dots11":{"interval":100,"frames":["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},"dots12":{"interval":80,"frames":["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280d\u2800","\u288b\u2800","\u284b\u2800","\u280d\u2801","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280d\u2850","\u288b\u2820","\u284b\u2880","\u280d\u2841","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},"dots8Bit":{"interval":80,"frames":["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280a","\u280b","\u280c","\u280d","\u280e","\u280f","\u2848","\u2849","\u284a","\u284b","\u284c","\u284d","\u284e","\u284f","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281a","\u281b","\u281c","\u281d","\u281e","\u281f","\u2858","\u2859","\u285a","\u285b","\u285c","\u285d","\u285e","\u285f","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282a","\u282b","\u282c","\u282d","\u282e","\u282f","\u2868","\u2869","\u286a","\u286b","\u286c","\u286d","\u286e","\u286f","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283a","\u283b","\u283c","\u283d","\u283e","\u283f","\u2878","\u2879","\u287a","\u287b","\u287c","\u287d","\u287e","\u287f","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28c0","\u28c1","\u28c2","\u28c3","\u28c4","\u28c5","\u28c6","\u28c7","\u2888","\u2889","\u288a","\u288b","\u288c","\u288d","\u288e","\u288f","\u28c8","\u28c9","\u28ca","\u28cb","\u28cc","\u28cd","\u28ce","\u28cf","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28d0","\u28d1","\u28d2","\u28d3","\u28d4","\u28d5","\u28d6","\u28d7","\u2898","\u2899","\u289a","\u289b","\u289c","\u289d","\u289e","\u289f","\u28d8","\u28d9","\u28da","\u28db","\u28dc","\u28dd","\u28de","\u28df","\u28a0","\u28a1","\u28a2","\u28a3","\u28a4","\u28a5","\u28a6","\u28a7","\u28e0","\u28e1","\u28e2","\u28e3","\u28e4","\u28e5","\u28e6","\u28e7","\u28a8","\u28a9","\u28aa","\u28ab","\u28ac","\u28ad","\u28ae","\u28af","\u28e8","\u28e9","\u28ea","\u28eb","\u28ec","\u28ed","\u28ee","\u28ef","\u28b0","\u28b1","\u28b2","\u28b3","\u28b4","\u28b5","\u28b6","\u28b7","\u28f0","\u28f1","\u28f2","\u28f3","\u28f4","\u28f5","\u28f6","\u28f7","\u28b8","\u28b9","\u28ba","\u28bb","\u28bc","\u28bd","\u28be","\u28bf","\u28f8","\u28f9","\u28fa","\u28fb","\u28fc","\u28fd","\u28fe","\u28ff"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["\u2802","-","\u2013","\u2014","\u2013","-"]},"pipe":{"interval":100,"frames":["\u2524","\u2518","\u2534","\u2514","\u251c","\u250c","\u252c","\u2510"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["\u2736","\u2738","\u2739","\u273a","\u2739","\u2737"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["\u2631","\u2632","\u2634"]},"growVertical":{"interval":120,"frames":["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},"growHorizontal":{"interval":120,"frames":["\u258f","\u258e","\u258d","\u258c","\u258b","\u258a","\u2589","\u258a","\u258b","\u258c","\u258d","\u258e"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["\u2593","\u2592","\u2591"]},"bounce":{"interval":120,"frames":["\u2801","\u2802","\u2804","\u2802"]},"boxBounce":{"interval":120,"frames":["\u2596","\u2598","\u259d","\u2597"]},"boxBounce2":{"interval":100,"frames":["\u258c","\u2580","\u2590","\u2584"]},"triangle":{"interval":50,"frames":["\u25e2","\u25e3","\u25e4","\u25e5"]},"arc":{"interval":100,"frames":["\u25dc","\u25e0","\u25dd","\u25de","\u25e1","\u25df"]},"circle":{"interval":120,"frames":["\u25e1","\u2299","\u25e0"]},"squareCorners":{"interval":180,"frames":["\u25f0","\u25f3","\u25f2","\u25f1"]},"circleQuarters":{"interval":120,"frames":["\u25f4","\u25f7","\u25f6","\u25f5"]},"circleHalves":{"interval":50,"frames":["\u25d0","\u25d3","\u25d1","\u25d2"]},"squish":{"interval":100,"frames":["\u256b","\u256a"]},"toggle":{"interval":250,"frames":["\u22b6","\u22b7"]},"toggle2":{"interval":80,"frames":["\u25ab","\u25aa"]},"toggle3":{"interval":120,"frames":["\u25a1","\u25a0"]},"toggle4":{"interval":100,"frames":["\u25a0","\u25a1","\u25aa","\u25ab"]},"toggle5":{"interval":100,"frames":["\u25ae","\u25af"]},"toggle6":{"interval":300,"frames":["\u101d","\u1040"]},"toggle7":{"interval":80,"frames":["\u29be","\u29bf"]},"toggle8":{"interval":100,"frames":["\u25cd","\u25cc"]},"toggle9":{"interval":100,"frames":["\u25c9","\u25ce"]},"toggle10":{"interval":100,"frames":["\u3282","\u3280","\u3281"]},"toggle11":{"interval":50,"frames":["\u29c7","\u29c6"]},"toggle12":{"interval":120,"frames":["\u2617","\u2616"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},"arrow2":{"interval":80,"frames":["\u2b06\ufe0f ","\u2197\ufe0f ","\u27a1\ufe0f ","\u2198\ufe0f ","\u2b07\ufe0f ","\u2199\ufe0f ","\u2b05\ufe0f ","\u2196\ufe0f "]},"arrow3":{"interval":120,"frames":["\u25b9\u25b9\u25b9\u25b9\u25b9","\u25b8\u25b9\u25b9\u25b9\u25b9","\u25b9\u25b8\u25b9\u25b9\u25b9","\u25b9\u25b9\u25b8\u25b9\u25b9","\u25b9\u25b9\u25b9\u25b8\u25b9","\u25b9\u25b9\u25b9\u25b9\u25b8"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf)","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","(\u25cf )"]},"smiley":{"interval":200,"frames":["\u{1f604} ","\u{1f61d} "]},"monkey":{"interval":300,"frames":["\u{1f648} ","\u{1f648} ","\u{1f649} ","\u{1f64a} "]},"hearts":{"interval":100,"frames":["\u{1f49b} ","\u{1f499} ","\u{1f49c} ","\u{1f49a} ","\u2764\ufe0f "]},"clock":{"interval":100,"frames":["\u{1f55b} ","\u{1f550} ","\u{1f551} ","\u{1f552} ","\u{1f553} ","\u{1f554} ","\u{1f555} ","\u{1f556} ","\u{1f557} ","\u{1f558} ","\u{1f559} ","\u{1f55a} "]},"earth":{"interval":180,"frames":["\u{1f30d} ","\u{1f30e} ","\u{1f30f} "]},"material":{"interval":17,"frames":["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},"moon":{"interval":80,"frames":["\u{1f311} ","\u{1f312} ","\u{1f313} ","\u{1f314} ","\u{1f315} ","\u{1f316} ","\u{1f317} ","\u{1f318} "]},"runner":{"interval":140,"frames":["\u{1f6b6} ","\u{1f3c3} "]},"pong":{"interval":80,"frames":["\u2590\u2802 \u258c","\u2590\u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802\u258c","\u2590 \u2820\u258c","\u2590 \u2840\u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590\u2820 \u258c"]},"shark":{"interval":120,"frames":["\u2590|\\\\____________\u258c","\u2590_|\\\\___________\u258c","\u2590__|\\\\__________\u258c","\u2590___|\\\\_________\u258c","\u2590____|\\\\________\u258c","\u2590_____|\\\\_______\u258c","\u2590______|\\\\______\u258c","\u2590_______|\\\\_____\u258c","\u2590________|\\\\____\u258c","\u2590_________|\\\\___\u258c","\u2590__________|\\\\__\u258c","\u2590___________|\\\\_\u258c","\u2590____________|\\\\\u258c","\u2590____________/|\u258c","\u2590___________/|_\u258c","\u2590__________/|__\u258c","\u2590_________/|___\u258c","\u2590________/|____\u258c","\u2590_______/|_____\u258c","\u2590______/|______\u258c","\u2590_____/|_______\u258c","\u2590____/|________\u258c","\u2590___/|_________\u258c","\u2590__/|__________\u258c","\u2590_/|___________\u258c","\u2590/|____________\u258c"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["\u2600\ufe0f ","\u2600\ufe0f ","\u2600\ufe0f ","\u{1f324} ","\u26c5\ufe0f ","\u{1f325} ","\u2601\ufe0f ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u26c8 ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u2601\ufe0f ","\u{1f325} ","\u26c5\ufe0f ","\u{1f324} ","\u2600\ufe0f ","\u2600\ufe0f "]},"christmas":{"interval":400,"frames":["\u{1f332}","\u{1f384}"]},"grenade":{"interval":80,"frames":["\u060c ","\u2032 "," \xb4 "," \u203e "," \u2e0c"," \u2e0a"," |"," \u204e"," \u2055"," \u0df4 "," \u2053"," "," "," "]},"point":{"interval":125,"frames":["\u2219\u2219\u2219","\u25cf\u2219\u2219","\u2219\u25cf\u2219","\u2219\u2219\u25cf","\u2219\u2219\u2219"]},"layer":{"interval":150,"frames":["-","=","\u2261"]},"betaWave":{"interval":80,"frames":["\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1"]},"fingerDance":{"interval":160,"frames":["\u{1f918} ","\u{1f91f} ","\u{1f596} ","\u270b ","\u{1f91a} ","\u{1f446} "]},"fistBump":{"interval":80,"frames":["\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u3000\u{1f91c}\u3000\u3000\u{1f91b}\u3000 ","\u3000\u3000\u{1f91c}\u{1f91b}\u3000\u3000 ","\u3000\u{1f91c}\u2728\u{1f91b}\u3000\u3000 ","\u{1f91c}\u3000\u2728\u3000\u{1f91b}\u3000 "]},"soccerHeader":{"interval":80,"frames":[" \u{1f9d1}\u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f\u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} "]},"mindblown":{"interval":160,"frames":["\u{1f610} ","\u{1f610} ","\u{1f62e} ","\u{1f62e} ","\u{1f626} ","\u{1f626} ","\u{1f627} ","\u{1f627} ","\u{1f92f} ","\u{1f4a5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},"speaker":{"interval":160,"frames":["\u{1f508} ","\u{1f509} ","\u{1f50a} ","\u{1f509} "]},"orangePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} "]},"bluePulse":{"interval":100,"frames":["\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"orangeBluePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} ","\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"timeTravel":{"interval":100,"frames":["\u{1f55b} ","\u{1f55a} ","\u{1f559} ","\u{1f558} ","\u{1f557} ","\u{1f556} ","\u{1f555} ","\u{1f554} ","\u{1f553} ","\u{1f552} ","\u{1f551} ","\u{1f550} "]},"aesthetic":{"interval":80,"frames":["\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0","\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1"]}}')},9233:t=>{t.exports=JSON.parse('{"4":"zh_CHS","1025":"ar_SA","1026":"bg_BG","1027":"ca_ES","1028":"zh_TW","1029":"cs_CZ","1030":"da_DK","1031":"de_DE","1032":"el_GR","1033":"en_US","1034":"es_ES","1035":"fi_FI","1036":"fr_FR","1037":"he_IL","1038":"hu_HU","1039":"is_IS","1040":"it_IT","1041":"ja_JP","1042":"ko_KR","1043":"nl_NL","1044":"nb_NO","1045":"pl_PL","1046":"pt_BR","1047":"rm_CH","1048":"ro_RO","1049":"ru_RU","1050":"hr_HR","1051":"sk_SK","1052":"sq_AL","1053":"sv_SE","1054":"th_TH","1055":"tr_TR","1056":"ur_PK","1057":"id_ID","1058":"uk_UA","1059":"be_BY","1060":"sl_SI","1061":"et_EE","1062":"lv_LV","1063":"lt_LT","1064":"tg_TJ","1065":"fa_IR","1066":"vi_VN","1067":"hy_AM","1069":"eu_ES","1070":"wen_DE","1071":"mk_MK","1074":"tn_ZA","1076":"xh_ZA","1077":"zu_ZA","1078":"af_ZA","1079":"ka_GE","1080":"fo_FO","1081":"hi_IN","1082":"mt_MT","1083":"se_NO","1086":"ms_MY","1087":"kk_KZ","1088":"ky_KG","1089":"sw_KE","1090":"tk_TM","1092":"tt_RU","1093":"bn_IN","1094":"pa_IN","1095":"gu_IN","1096":"or_IN","1097":"ta_IN","1098":"te_IN","1099":"kn_IN","1100":"ml_IN","1101":"as_IN","1102":"mr_IN","1103":"sa_IN","1104":"mn_MN","1105":"bo_CN","1106":"cy_GB","1107":"kh_KH","1108":"lo_LA","1109":"my_MM","1110":"gl_ES","1111":"kok_IN","1114":"syr_SY","1115":"si_LK","1118":"am_ET","1121":"ne_NP","1122":"fy_NL","1123":"ps_AF","1124":"fil_PH","1125":"div_MV","1128":"ha_NG","1130":"yo_NG","1131":"quz_BO","1132":"ns_ZA","1133":"ba_RU","1134":"lb_LU","1135":"kl_GL","1144":"ii_CN","1146":"arn_CL","1148":"moh_CA","1150":"br_FR","1152":"ug_CN","1153":"mi_NZ","1154":"oc_FR","1155":"co_FR","1156":"gsw_FR","1157":"sah_RU","1158":"qut_GT","1159":"rw_RW","1160":"wo_SN","1164":"gbz_AF","2049":"ar_IQ","2052":"zh_CN","2055":"de_CH","2057":"en_GB","2058":"es_MX","2060":"fr_BE","2064":"it_CH","2067":"nl_BE","2068":"nn_NO","2070":"pt_PT","2077":"sv_FI","2080":"ur_IN","2092":"az_AZ","2094":"dsb_DE","2107":"se_SE","2108":"ga_IE","2110":"ms_BN","2115":"uz_UZ","2128":"mn_CN","2129":"bo_BT","2141":"iu_CA","2143":"tmz_DZ","2155":"quz_EC","3073":"ar_EG","3076":"zh_HK","3079":"de_AT","3081":"en_AU","3082":"es_ES","3084":"fr_CA","3098":"sr_SP","3131":"se_FI","3179":"quz_PE","4097":"ar_LY","4100":"zh_SG","4103":"de_LU","4105":"en_CA","4106":"es_GT","4108":"fr_CH","4122":"hr_BA","4155":"smj_NO","5121":"ar_DZ","5124":"zh_MO","5127":"de_LI","5129":"en_NZ","5130":"es_CR","5132":"fr_LU","5179":"smj_SE","6145":"ar_MA","6153":"en_IE","6154":"es_PA","6156":"fr_MC","6203":"sma_NO","7169":"ar_TN","7177":"en_ZA","7178":"es_DO","7194":"sr_BA","7227":"sma_SE","8193":"ar_OM","8201":"en_JA","8202":"es_VE","8218":"bs_BA","8251":"sms_FI","9217":"ar_YE","9225":"en_CB","9226":"es_CO","9275":"smn_FI","10241":"ar_SY","10249":"en_BZ","10250":"es_PE","11265":"ar_JO","11273":"en_TT","11274":"es_AR","12289":"ar_LB","12297":"en_ZW","12298":"es_EC","13313":"ar_KW","13321":"en_PH","13322":"es_CL","14337":"ar_AE","14346":"es_UR","15361":"ar_BH","15370":"es_PY","16385":"ar_QA","16394":"es_BO","17417":"en_MY","17418":"es_SV","18441":"en_IN","18442":"es_HN","19466":"es_NI","20490":"es_PR","21514":"es_US","31748":"zh_CHT"}')}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var s=r[t]={id:t,loaded:!1,exports:{}};return e[t].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var e=n(7147),r=n(9491);const i={right:function(t,e){t=t.trim();const r=a.stringWidth(t);if(r<e)return" ".repeat(e-r)+t;return t},center:function(t,e){t=t.trim();const r=a.stringWidth(t);if(r>=e)return t;return" ".repeat(e-r>>1)+t}};class s{constructor(t){var e;this.width=t.width,this.wrap=null===(e=t.wrap)||void 0===e||e,this.rows=[]}span(...t){this.div(...t).span=!0}resetOutput(){this.rows=[]}div(...t){if(0===t.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&"string"==typeof t[0])return this.applyLayoutDSL(t[0]);const e=t.map((t=>"string"==typeof t?this.colFromString(t):t));return this.rows.push(e),e}shouldApplyLayoutDSL(...t){return 1===t.length&&"string"==typeof t[0]&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){const e=t.split("\n").map((t=>t.split("\t")));let r=0;return e.forEach((t=>{t.length>1&&a.stringWidth(t[0])>r&&(r=Math.min(Math.floor(.5*this.width),a.stringWidth(t[0])))})),e.forEach((t=>{this.div(...t.map(((e,n)=>({text:e.trim(),padding:this.measurePadding(e),width:0===n&&t.length>1?r:void 0}))))})),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){const e=a.stripAnsi(t);return[0,e.match(/\s*$/)[0].length,0,e.match(/^\s*/)[0].length]}toString(){const t=[];return this.rows.forEach((e=>{this.rowToString(e,t)})),t.filter((t=>!t.hidden)).map((t=>t.text)).join("\n")}rowToString(t,e){return this.rasterize(t).forEach(((r,n)=>{let s="";r.forEach(((r,l)=>{const{width:c}=t[l],h=this.negatePadding(t[l]);let u=r;if(h>a.stringWidth(r)&&(u+=" ".repeat(h-a.stringWidth(r))),t[l].align&&"left"!==t[l].align&&this.wrap){u=(0,i[t[l].align])(u,h),a.stringWidth(u)<h&&(u+=" ".repeat((c||0)-a.stringWidth(u)-1))}const d=t[l].padding||[0,0,0,0];d[3]&&(s+=" ".repeat(d[3])),s+=o(t[l],u,"| "),s+=u,s+=o(t[l],u," |"),d[1]&&(s+=" ".repeat(d[1])),0===n&&e.length>0&&(s=this.renderInline(s,e[e.length-1]))})),e.push({text:s.replace(/ +$/,""),span:t.span})})),e}renderInline(t,e){const r=t.match(/^ */),n=r?r[0].length:0,i=e.text,s=a.stringWidth(i.trimRight());return e.span?this.wrap?n<s?t:(e.hidden=!0,i.trimRight()+" ".repeat(n-s)+t.trimLeft()):(e.hidden=!0,i+t):t}rasterize(t){const e=[],r=this.columnWidths(t);let n;return t.forEach(((t,i)=>{t.width=r[i],n=this.wrap?a.wrap(t.text,this.negatePadding(t),{hard:!0}).split("\n"):t.text.split("\n"),t.border&&(n.unshift("."+"-".repeat(this.negatePadding(t)+2)+"."),n.push("'"+"-".repeat(this.negatePadding(t)+2)+"'")),t.padding&&(n.unshift(...new Array(t.padding[0]||0).fill("")),n.push(...new Array(t.padding[2]||0).fill(""))),n.forEach(((t,r)=>{e[r]||e.push([]);const n=e[r];for(let t=0;t<i;t++)void 0===n[t]&&n.push("");n.push(t)}))})),e}negatePadding(t){let e=t.width||0;return t.padding&&(e-=(t.padding[3]||0)+(t.padding[1]||0)),t.border&&(e-=4),e}columnWidths(t){if(!this.wrap)return t.map((t=>t.width||a.stringWidth(t.text)));let e=t.length,r=this.width;const n=t.map((t=>{if(t.width)return e--,r-=t.width,t.width})),i=e?Math.floor(r/e):0;return n.map(((e,r)=>void 0===e?Math.max(i,function(t){const e=t.padding||[],r=1+(e[3]||0)+(e[1]||0);if(t.border)return r+4;return r}(t[r])):e))}}function o(t,e,r){return t.border?/[.']-+[.']/.test(e)?"":0!==e.trim().length?r:" ":""}let a;const l=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function c(t){return t.replace(l,"")}function h(t,e){const[r,n]=t.match(l)||["",""];t=c(t);let i="";for(let r=0;r<t.length;r++)0!==r&&r%e==0&&(i+="\n"),i+=t.charAt(r);return r&&n&&(i=`${r}${i}${n}`),i}var u=n(1017);var d,f=n(3837),p=n(7310);function m(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),-1===t.indexOf("-")&&-1===t.indexOf("_"))return t;{let e="",r=!1;const n=t.match(/^-+/);for(let i=n?n[0].length:0;i<t.length;i++){let n=t.charAt(i);r&&(r=!1,n=n.toUpperCase()),0===i||"-"!==n&&"_"!==n?"-"!==n&&"_"!==n&&(e+=n):r=!0}return e}}function g(t,e){const r=t.toLowerCase();e=e||"-";let n="";for(let i=0;i<t.length;i++){const s=r.charAt(i),o=t.charAt(i);n+=s!==o&&i>0?`${e}${r.charAt(i)}`:o}return n}function y(t){return null!=t&&("number"==typeof t||(!!/^0x[0-9a-f]+$/i.test(t)||!/^0[^.]/.test(t)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)))}let b;!function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"}(d||(d={}));function v(t){return void 0!==t?t+1:1}function w(t){return"__proto__"===t?"___proto___":t}const E=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version){if(Number(process.version.match(/v([^.]+)/)[1])<E)throw Error(`yargs parser supports a minimum Node.js version of ${E}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}const _=process?process.env:{},x=new class{constructor(t){b=t}parse(t,e){const r=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},e),n=function(t){if(Array.isArray(t))return t.map((t=>"string"!=typeof t?t+"":t));t=t.trim();let e=0,r=null,n=null,i=null;const s=[];for(let o=0;o<t.length;o++)r=n,n=t.charAt(o)," "!==n||i?(n===i?i=null:"'"!==n&&'"'!==n||i||(i=n),s[e]||(s[e]=""),s[e]+=n):" "!==r&&e++;return s}(t),i="string"==typeof t,s=function(t){const e=[],r=Object.create(null);let n=!0;Object.keys(t).forEach((function(r){e.push([].concat(t[r],r))}));for(;n;){n=!1;for(let t=0;t<e.length;t++)for(let r=t+1;r<e.length;r++){if(e[t].filter((function(t){return-1!==e[r].indexOf(t)})).length){e[t]=e[t].concat(e[r]),e.splice(r,1),n=!0;break}}}return e.forEach((function(t){const e=(t=t.filter((function(t,e,r){return r.indexOf(t)===e}))).pop();void 0!==e&&"string"==typeof e&&(r[e]=t)})),r}(Object.assign(Object.create(null),r.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},r.configuration),a=Object.assign(Object.create(null),r.default),l=r.configObjects||[],c=r.envPrefix,h=o["populate--"],u=h?"--":"_",f=Object.create(null),p=Object.create(null),E=r.__||b.format,_={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},x=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach((function(t){const e="object"==typeof t?t.key:t,r=Object.keys(t).map((function(t){return{boolean:"bools",string:"strings",number:"numbers"}[t]})).filter(Boolean).pop();r&&(_[r][e]=!0),_.arrays[e]=!0,_.keys.push(e)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(t){_.bools[t]=!0,_.keys.push(t)})),[].concat(r.string||[]).filter(Boolean).forEach((function(t){_.strings[t]=!0,_.keys.push(t)})),[].concat(r.number||[]).filter(Boolean).forEach((function(t){_.numbers[t]=!0,_.keys.push(t)})),[].concat(r.count||[]).filter(Boolean).forEach((function(t){_.counts[t]=!0,_.keys.push(t)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(t){_.normalize[t]=!0,_.keys.push(t)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([t,e])=>{"number"==typeof e&&(_.nargs[t]=e,_.keys.push(t))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([t,e])=>{"function"==typeof e&&(_.coercions[t]=e,_.keys.push(t))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(t){_.configs[t]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([t,e])=>{"boolean"!=typeof e&&"function"!=typeof e||(_.configs[t]=e)}))),function(...t){t.forEach((function(t){Object.keys(t||{}).forEach((function(t){_.aliases[t]||(_.aliases[t]=[].concat(s[t]||[]),_.aliases[t].concat(t).forEach((function(e){if(/-/.test(e)&&o["camel-case-expansion"]){const r=m(e);r!==t&&-1===_.aliases[t].indexOf(r)&&(_.aliases[t].push(r),f[r]=!0)}})),_.aliases[t].concat(t).forEach((function(e){if(e.length>1&&/[A-Z]/.test(e)&&o["camel-case-expansion"]){const r=g(e,"-");r!==t&&-1===_.aliases[t].indexOf(r)&&(_.aliases[t].push(r),f[r]=!0)}})),_.aliases[t].forEach((function(e){_.aliases[e]=[t].concat(_.aliases[t].filter((function(t){return e!==t})))})))}))}))}(r.key,s,r.default,_.arrays),Object.keys(a).forEach((function(t){(_.aliases[t]||[]).forEach((function(e){a[e]=a[t]}))}));let O=null;Object.keys(_.counts).find((t=>G(t,_.arrays)?(O=Error(E("Invalid configuration: %s, opts.count excludes opts.array.",t)),!0):!!G(t,_.nargs)&&(O=Error(E("Invalid configuration: %s, opts.count excludes opts.narg.",t)),!0)));let T=[];const I=Object.assign(Object.create(null),{_:[]}),A={};for(let t=0;t<n.length;t++){const e=n[t],r=e.replace(/^-{3,}/,"---");let i,s,a,l,c,h;if("--"!==e&&H(e))C(e);else{if(r.match(/---+(=|$)/)){C(e);continue}if(e.match(/^--.+=/)||!o["short-option-groups"]&&e.match(/^-.+=/))l=e.match(/^--?([^=]+)=([\s\S]*)$/),null!==l&&Array.isArray(l)&&l.length>=3&&(G(l[1],_.arrays)?t=k(t,l[1],n,l[2]):!1!==G(l[1],_.nargs)?t=R(t,l[1],n,l[2]):M(l[1],l[2],!0));else if(e.match(S)&&o["boolean-negation"])l=e.match(S),null!==l&&Array.isArray(l)&&l.length>=2&&(s=l[1],M(s,!!G(s,_.arrays)&&[!1]));else if(e.match(/^--.+/)||!o["short-option-groups"]&&e.match(/^-[^-]+/))l=e.match(/^--?(.+)/),null!==l&&Array.isArray(l)&&l.length>=2&&(s=l[1],G(s,_.arrays)?t=k(t,s,n):!1!==G(s,_.nargs)?t=R(t,s,n):(c=n[t+1],void 0===c||c.match(/^-/)&&!c.match(x)||G(s,_.bools)||G(s,_.counts)?/^(true|false)$/.test(c)?(M(s,c),t++):M(s,W(s)):(M(s,c),t++)));else if(e.match(/^-.\..+=/))l=e.match(/^-([^=]+)=([\s\S]*)$/),null!==l&&Array.isArray(l)&&l.length>=3&&M(l[1],l[2]);else if(e.match(/^-.\..+/)&&!e.match(x))c=n[t+1],l=e.match(/^-(.\..+)/),null!==l&&Array.isArray(l)&&l.length>=2&&(s=l[1],void 0===c||c.match(/^-/)||G(s,_.bools)||G(s,_.counts)?M(s,W(s)):(M(s,c),t++));else if(e.match(/^-[^-]+/)&&!e.match(x)){a=e.slice(1,-1).split(""),i=!1;for(let r=0;r<a.length;r++){if(c=e.slice(r+2),a[r+1]&&"="===a[r+1]){h=e.slice(r+3),s=a[r],G(s,_.arrays)?t=k(t,s,n,h):!1!==G(s,_.nargs)?t=R(t,s,n,h):M(s,h),i=!0;break}if("-"!==c){if(/[A-Za-z]/.test(a[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(c)&&!1===G(c,_.bools)){M(a[r],c),i=!0;break}if(a[r+1]&&a[r+1].match(/\W/)){M(a[r],c),i=!0;break}M(a[r],W(a[r]))}else M(a[r],c)}s=e.slice(-1)[0],i||"-"===s||(G(s,_.arrays)?t=k(t,s,n):!1!==G(s,_.nargs)?t=R(t,s,n):(c=n[t+1],void 0===c||/^(-|--)[^-]/.test(c)&&!c.match(x)||G(s,_.bools)||G(s,_.counts)?/^(true|false)$/.test(c)?(M(s,c),t++):M(s,W(s)):(M(s,c),t++)))}else if(e.match(/^-[0-9]$/)&&e.match(x)&&G(e.slice(1),_.bools))s=e.slice(1),M(s,W(s));else{if("--"===e){T=n.slice(t+1);break}if(o["halt-at-non-option"]){T=n.slice(t);break}C(e)}}}function C(t){const e=N("_",t);"string"!=typeof e&&"number"!=typeof e||I._.push(e)}function R(t,e,r,n){let i,s=G(e,_.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return q(n)||(O=Error(E("Argument unexpected for: %s",e))),M(e,W(e)),t;let a=q(n)?0:1;if(o["nargs-eats-options"])r.length-(t+1)+a<s&&(O=Error(E("Not enough arguments following: %s",e))),a=s;else{for(i=t+1;i<r.length&&(!r[i].match(/^-[^0-9]/)||r[i].match(x)||H(r[i]));i++)a++;a<s&&(O=Error(E("Not enough arguments following: %s",e)))}let l=Math.min(a,s);for(!q(n)&&l>0&&(M(e,n),l--),i=t+1;i<l+t+1;i++)M(e,r[i]);return t+l}function k(t,e,r,n){let s=[],l=n||r[t+1];const c=G(e,_.nargs);if(G(e,_.bools)&&!/^(true|false)$/.test(l))s.push(!0);else if(q(l)||q(n)&&/^-/.test(l)&&!x.test(l)&&!H(l)){if(void 0!==a[e]){const t=a[e];s=Array.isArray(t)?t:[t]}}else{q(n)||s.push(P(e,n,!0));for(let n=t+1;n<r.length&&!(!o["greedy-arrays"]&&s.length>0||c&&"number"==typeof c&&s.length>=c)&&(l=r[n],!/^-/.test(l)||x.test(l)||H(l));n++)t=n,s.push(P(e,l,i))}return"number"==typeof c&&(c&&s.length<c||isNaN(c)&&0===s.length)&&(O=Error(E("Not enough arguments following: %s",e))),M(e,s),t}function M(t,e,r=i){if(/-/.test(t)&&o["camel-case-expansion"]){const e=t.split(".").map((function(t){return m(t)})).join(".");j(t,e)}const n=P(t,e,r),s=t.split(".");if(B(I,s,n),_.aliases[t]&&_.aliases[t].forEach((function(t){const e=t.split(".");B(I,e,n)})),s.length>1&&o["dot-notation"]&&(_.aliases[s[0]]||[]).forEach((function(e){let r=e.split(".");const i=[].concat(s);i.shift(),r=r.concat(i),(_.aliases[t]||[]).includes(r.join("."))||B(I,r,n)})),G(t,_.normalize)&&!G(t,_.arrays)){[t].concat(_.aliases[t]||[]).forEach((function(t){Object.defineProperty(A,t,{enumerable:!0,get:()=>e,set(t){e="string"==typeof t?b.normalize(t):t}})}))}}function j(t,e){_.aliases[t]&&_.aliases[t].length||(_.aliases[t]=[e],f[e]=!0),_.aliases[e]&&_.aliases[e].length||j(e,t)}function P(t,e,r){r&&(e=function(t){return"string"!=typeof t||"'"!==t[0]&&'"'!==t[0]||t[t.length-1]!==t[0]?t:t.substring(1,t.length-1)}(e)),(G(t,_.bools)||G(t,_.counts))&&"string"==typeof e&&(e="true"===e);let n=Array.isArray(e)?e.map((function(e){return N(t,e)})):N(t,e);return G(t,_.counts)&&(q(n)||"boolean"==typeof n)&&(n=v()),G(t,_.normalize)&&G(t,_.arrays)&&(n=Array.isArray(e)?e.map((t=>b.normalize(t))):b.normalize(e)),n}function N(t,e){if(!o["parse-positional-numbers"]&&"_"===t)return e;if(!G(t,_.strings)&&!G(t,_.bools)&&!Array.isArray(e)){(y(e)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))||!q(e)&&G(t,_.numbers))&&(e=Number(e))}return e}function $(t,e){Object.keys(t).forEach((function(r){const n=t[r],i=e?e+"."+r:r;"object"==typeof n&&null!==n&&!Array.isArray(n)&&o["dot-notation"]?$(n,i):(!F(I,i.split("."))||G(i,_.arrays)&&o["combine-arrays"])&&M(i,n)}))}function L(t,e){if(void 0===c)return;const r="string"==typeof c?c:"",n=b.env();Object.keys(n).forEach((function(i){if(""===r||0===i.lastIndexOf(r,0)){const s=i.split("__").map((function(t,e){return 0===e&&(t=t.substring(r.length)),m(t)}));(e&&_.configs[s.join(".")]||!e)&&!F(t,s)&&M(s.join("."),n[i])}}))}function D(t,e,r,n=!1){Object.keys(r).forEach((function(i){F(t,i.split("."))||(B(t,i.split("."),r[i]),n&&(p[i]=!0),(e[i]||[]).forEach((function(e){F(t,e.split("."))||B(t,e.split("."),r[i])})))}))}function F(t,e){let r=t;o["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach((function(t){r=r[t]||{}}));const n=e[e.length-1];return"object"==typeof r&&n in r}function B(t,e,r){let n=t;o["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach((function(t){t=w(t),"object"==typeof n&&void 0===n[t]&&(n[t]={}),"object"!=typeof n[t]||Array.isArray(n[t])?(Array.isArray(n[t])?n[t].push({}):n[t]=[n[t],{}],n=n[t][n[t].length-1]):n=n[t]}));const i=w(e[e.length-1]),s=G(e.join("."),_.arrays),a=Array.isArray(r);let l=o["duplicate-arguments-array"];!l&&G(i,_.nargs)&&(l=!0,(!q(n[i])&&1===_.nargs[i]||Array.isArray(n[i])&&n[i].length===_.nargs[i])&&(n[i]=void 0)),r===v()?n[i]=v(n[i]):Array.isArray(n[i])?l&&s&&a?n[i]=o["flatten-duplicate-arrays"]?n[i].concat(r):(Array.isArray(n[i][0])?n[i]:[n[i]]).concat([r]):l||Boolean(s)!==Boolean(a)?n[i]=n[i].concat([r]):n[i]=r:void 0===n[i]&&s?n[i]=a?r:[r]:!l||void 0===n[i]||G(i,_.counts)||G(i,_.bools)?n[i]=r:n[i]=[n[i],r]}function G(t,e){const r=[].concat(_.aliases[t]||[],t),n=Object.keys(e),i=r.find((t=>n.includes(t)));return!!i&&e[i]}function U(t){const e=Object.keys(_);return[].concat(e.map((t=>_[t]))).some((function(e){return Array.isArray(e)?e.includes(t):e[t]}))}function H(t){return o["unknown-options-as-args"]&&function(t){if((t=t.replace(/^-{3,}/,"--")).match(x))return!1;if(function(t){if(t.match(x)||!t.match(/^-[^-]+/))return!1;let e,r=!0;const n=t.slice(1).split("");for(let i=0;i<n.length;i++){if(e=t.slice(i+2),!U(n[i])){r=!1;break}if(n[i+1]&&"="===n[i+1]||"-"===e||/[A-Za-z]/.test(n[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(e)||n[i+1]&&n[i+1].match(/\W/))break}return r}(t))return!1;return!function(t,...e){return[].concat(...e).some((function(e){const r=t.match(e);return r&&U(r[1])}))}(t,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}(t)}function W(t){return G(t,_.bools)||G(t,_.counts)||!(`${t}`in a)?(e=function(t){let e=d.BOOLEAN;return G(t,_.strings)?e=d.STRING:G(t,_.numbers)?e=d.NUMBER:G(t,_.bools)?e=d.BOOLEAN:G(t,_.arrays)&&(e=d.ARRAY),e}(t),{[d.BOOLEAN]:!0,[d.STRING]:"",[d.NUMBER]:void 0,[d.ARRAY]:[]}[e]):a[t];var e}function q(t){return void 0===t}return L(I,!0),L(I,!1),function(t){const e=Object.create(null);D(e,_.aliases,a),Object.keys(_.configs).forEach((function(r){const n=t[r]||e[r];if(n)try{let t=null;const e=b.resolve(b.cwd(),n),i=_.configs[r];if("function"==typeof i){try{t=i(e)}catch(e){t=e}if(t instanceof Error)return void(O=t)}else t=b.require(e);$(t)}catch(e){"PermissionDenied"===e.name?O=e:t[r]&&(O=Error(E("Invalid JSON config file: %s",n)))}}))}(I),void 0!==l&&l.forEach((function(t){$(t)})),D(I,_.aliases,a,!0),function(t){let e;const r=new Set;Object.keys(t).forEach((function(n){if(!r.has(n)&&(e=G(n,_.coercions),"function"==typeof e))try{const i=N(n,e(t[n]));[].concat(_.aliases[n]||[],n).forEach((e=>{r.add(e),t[e]=i}))}catch(t){O=t}}))}(I),o["set-placeholder-key"]&&function(t){_.keys.forEach((e=>{~e.indexOf(".")||void 0===t[e]&&(t[e]=void 0)}))}(I),Object.keys(_.counts).forEach((function(t){F(I,t.split("."))||M(t,0)})),h&&T.length&&(I[u]=[]),T.forEach((function(t){I[u].push(t)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(I).filter((t=>"--"!==t&&t.includes("-"))).forEach((t=>{delete I[t]})),o["strip-aliased"]&&[].concat(...Object.keys(s).map((t=>s[t]))).forEach((t=>{o["camel-case-expansion"]&&t.includes("-")&&delete I[t.split(".").map((t=>m(t))).join(".")],delete I[t]})),{aliases:Object.assign({},_.aliases),argv:Object.assign(A,I),configuration:o,defaulted:Object.assign({},p),error:O,newAliases:Object.assign({},f)}}}({cwd:process.cwd,env:()=>_,format:f.format,normalize:u.normalize,resolve:u.resolve,require:t=>{if("undefined"!=typeof require)return require(t);if(t.match(/\.json$/))return JSON.parse((0,e.readFileSync)(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),S=function(t,e){return x.parse(t.slice(),e).argv};S.detailed=function(t,e){return x.parse(t.slice(),e)},S.camelCase=m,S.decamelize=g,S.looksLikeNumber=y;const O=S;function T(){return process.versions.electron&&!process.defaultApp?0:1}class I extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace(this,I)}}const A={fs:{readFileSync:e.readFileSync,writeFile:e.writeFile},format:f.format,resolve:u.resolve,exists:t=>{try{return(0,e.statSync)(t).isFile()}catch(t){return!1}}};let C;class R{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles="boolean"!=typeof t.updateFiles||t.updateFiles,this.locale=t.locale||"en",this.fallbackToLanguage="boolean"!=typeof t.fallbackToLanguage||t.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const e=t.shift();let r=function(){};return"function"==typeof t[t.length-1]&&(r=t.pop()),r=r||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]=e,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:r})):r(),C.format.apply(C.format,[this.cache[this.locale][e]||e].concat(t))}__n(){const t=Array.prototype.slice.call(arguments),e=t.shift(),r=t.shift(),n=t.shift();let i=function(){};"function"==typeof t[t.length-1]&&(i=t.pop()),this.cache[this.locale]||this._readLocaleFile();let s=1===n?e:r;if(this.cache[this.locale][e]){s=this.cache[this.locale][e][1===n?"one":"other"]}!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const o=[s];return~s.indexOf("%d")&&o.push(n),C.format.apply(C.format,o.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this.cache[this.locale][e]=t[e])}_taggedLiteral(t,...e){let r="";return t.forEach((function(t,n){const i=e[n+1];r+=t,void 0!==i&&(r+="%s")})),this.__.apply(this,[r].concat([].slice.call(e,1)))}_enqueueWrite(t){this.writeQueue.push(t),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const t=this,e=this.writeQueue[0],r=e.directory,n=e.locale,i=e.cb,s=this._resolveLocaleFile(r,n),o=JSON.stringify(this.cache[n],null,2);C.fs.writeFile(s,o,"utf-8",(function(e){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),i(e)}))}_readLocaleFile(){let t={};const e=this._resolveLocaleFile(this.directory,this.locale);try{C.fs.readFileSync&&(t=JSON.parse(C.fs.readFileSync(e,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+e),"ENOENT"!==r.code)throw r;t={}}this.cache[this.locale]=t}_resolveLocaleFile(t,e){let r=C.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~e.lastIndexOf("_")){const n=C.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(n)&&(r=n)}return r}_fileExistsSync(t){return C.exists(t)}}const k=t=>function(t,e){C=e;const r=new R(t);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}(t,A),M="loading a directory of commands is not supported yet for ESM";let j;try{j=(0,p.fileURLToPath)(import.meta.url)}catch(t){j=process.cwd()}const P=j.split("node_modules")[0],N={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:function(t){return function(t,e){return a=e,new s({width:(null==t?void 0:t.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==t?void 0:t.wrap})}(t,{stringWidth:t=>[...t].length,stripAnsi:c,wrap:h})},findUp:function(t,r){let n,i=(0,u.resolve)(".",t);for((0,e.statSync)(i).isDirectory()||(i=(0,u.dirname)(i));;){if(n=r(i,(0,e.readdirSync)(i)),n)return(0,u.resolve)(i,n);if(i=(0,u.dirname)(n=i),n===i)break}},getEnv:t=>process.env[t],inspect:f.inspect,getCallerFile:()=>{throw new I(M)},getProcessArgvBin:function(){return process.argv[T()]},mainFilename:P||process.cwd(),Parser:O,path:{basename:u.basename,dirname:u.dirname,extname:u.extname,relative:u.relative,resolve:u.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:e.readFileSync,require:()=>{throw new I("require is not supported by ESM")},requireDirectory:()=>{throw new I(M)},stringWidth:t=>[...t].length,y18n:k({directory:(0,u.resolve)(j,"../../../locales"),updateFiles:!1})};function $(t,e,r,n){r.assert.notStrictEqual(t,e,n)}function L(t,e){e.assert.strictEqual(typeof t,"string")}function D(t){return Object.keys(t)}function F(t){return!!t&&!!t.then&&"function"==typeof t.then}function B(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,n=e.shift();if(!n)throw new Error(`No command found in: ${t}`);const i={cmd:n.replace(r,""),demanded:[],optional:[]};return e.forEach(((t,n)=>{let s=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&n===e.length-1&&(s=!0),/^\[/.test(t)?i.optional.push({cmd:t.replace(r,"").split("|"),variadic:s}):i.demanded.push({cmd:t.replace(r,"").split("|"),variadic:s})})),i}const G=["first","second","third","fourth","fifth","sixth"];function U(t,e,r){try{let n=0;const[i,s,o]="object"==typeof t?[{demanded:[],optional:[]},t,e]:[B(`cmd ${t}`),e,r],a=[].slice.call(s);for(;a.length&&void 0===a[a.length-1];)a.pop();const l=o||a.length;if(l<i.demanded.length)throw new I(`Not enough arguments provided. Expected ${i.demanded.length} but received ${a.length}.`);const c=i.demanded.length+i.optional.length;if(l>c)throw new I(`Too many arguments provided. Expected max ${c} but received ${l}.`);i.demanded.forEach((t=>{const e=H(a.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&W(e,t.cmd,n),n+=1})),i.optional.forEach((t=>{if(0===a.length)return;const e=H(a.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&W(e,t.cmd,n),n+=1}))}catch(t){console.warn(t.stack)}}function H(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function W(t,e,r){throw new I(`Invalid ${G[r]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}class q{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,r=!0,n=!1){if(U("<array|function> [boolean] [boolean] [boolean]",[t,e,r],arguments.length),Array.isArray(t)){for(let n=0;n<t.length;n++){if("function"!=typeof t[n])throw Error("middleware must be a function");const i=t[n];i.applyBeforeValidation=e,i.global=r}Array.prototype.push.apply(this.globalMiddleware,t)}else if("function"==typeof t){const i=t;i.applyBeforeValidation=e,i.global=r,i.mutates=n,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,e){const r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((t=>{const n=[...r[e]||[],e];return!t.option||!n.includes(t.option)})),t.option=e,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const t=this.frozens.pop();void 0!==t&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter((t=>t.global))}}function Y(t,e,r,n){return r.reduce(((t,r)=>{if(r.applyBeforeValidation!==n)return t;if(r.mutates){if(r.applied)return t;r.applied=!0}if(F(t))return t.then((t=>Promise.all([t,r(t,e)]))).then((([t,e])=>Object.assign(t,e)));{const n=r(t,e);return F(n)?n.then((e=>Object.assign(t,e))):Object.assign(t,n)}}),t)}function V(t,e,r=(t=>{throw t})){try{const r="function"==typeof t?t():t;return F(r)?r.then((t=>e(t))):e(r)}catch(t){return r(t)}}const z=/(^\*)|(^\$0)/;class K{constructor(t,e,r,n){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=n,this.usage=t,this.globalMiddleware=r,this.validation=e}addDirectory(t,e,r,n){"boolean"!=typeof(n=n||{}).recurse&&(n.recurse=!1),Array.isArray(n.extensions)||(n.extensions=["js"]);const i="function"==typeof n.visit?n.visit:t=>t;n.visit=(t,e,r)=>{const n=i(t,e,r);if(n){if(this.requireCache.has(e))return n;this.requireCache.add(e),this.addHandler(n)}return n},this.shim.requireDirectory({require:e,filename:r},t,n)}addHandler(t,e,r,n,i,s){let o=[];const a=function(t){return t?t.map((t=>(t.applyBeforeValidation=!1,t))):[]}(i);if(n=n||(()=>{}),Array.isArray(t))if(function(t){return t.every((t=>"string"==typeof t))}(t))[t,...o]=t;else for(const e of t)this.addHandler(e);else{if(function(t){return"object"==typeof t&&!Array.isArray(t)}(t)){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:this.moduleName(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void this.addHandler(e,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated)}if(J(r))return void this.addHandler([t].concat(o),e,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof t){const i=B(t);o=o.map((t=>B(t).cmd));let l=!1;const c=[i.cmd].concat(o).filter((t=>!z.test(t)||(l=!0,!1)));0===c.length&&l&&c.push("$0"),l&&(i.cmd=c[0],o=c.slice(1),t=t.replace(z,i.cmd)),o.forEach((t=>{this.aliasMap[t]=i.cmd})),!1!==e&&this.usage.command(t,e,l,o,s),this.handlers[i.cmd]={original:t,description:e,handler:n,builder:r||{},middlewares:a,deprecated:s,demanded:i.demanded,optional:i.optional},l&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,e,r,n,i,s){const o=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,a=e.getInternalMethods().getContext(),l=a.commands.slice(),c=!t;t&&(a.commands.push(t),a.fullCommands.push(o.original));const h=this.applyBuilderUpdateUsageAndParse(c,o,e,r.aliases,l,n,i,s);return F(h)?h.then((t=>this.applyMiddlewareAndGetResult(c,o,t.innerArgv,a,i,t.aliases,e))):this.applyMiddlewareAndGetResult(c,o,h.innerArgv,a,i,h.aliases,e)}applyBuilderUpdateUsageAndParse(t,e,r,n,i,s,o,a){const l=e.builder;let c=r;if(X(l)){const h=l(r.getInternalMethods().reset(n),a);if(F(h))return h.then((n=>{var a;return c=(a=n)&&"function"==typeof a.getInternalMethods?n:r,this.parseAndUpdateUsage(t,e,c,i,s,o)}))}else(function(t){return"object"==typeof t})(l)&&(c=r.getInternalMethods().reset(n),Object.keys(e.builder).forEach((t=>{c.option(t,l[t])})));return this.parseAndUpdateUsage(t,e,c,i,s,o)}parseAndUpdateUsage(t,e,r,n,i,s){t&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n,e),e.description);const o=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return F(o)?o.then((t=>({aliases:r.parsed.aliases,innerArgv:t}))):{aliases:r.parsed.aliases,innerArgv:o}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===t.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(t,e){const r=z.test(e.original)?e.original.replace(z,"").trim():e.original,n=t.filter((t=>!z.test(t)));return n.push(r),`$0 ${n.join(" ")}`}applyMiddlewareAndGetResult(t,e,r,n,i,s,o){let a={};if(i)return r;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(e,r,n,o));const l=this.globalMiddleware.getMiddleware().slice(0).concat(e.middlewares);if(r=Y(r,o,l,!0),!o.getInternalMethods().getHasOutput()){const e=o.getInternalMethods().runValidation(s,a,o.parsed.error,t);r=V(r,(t=>(e(t),t)))}if(e.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();const n=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(r,n,!1,!1),r=V(r=Y(r,o,l,!1),(t=>{const r=e.handler(t);return F(r)?r.then((()=>t)):t})),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),F(r)&&!o.getInternalMethods().hasParseCallback()&&r.catch((t=>{try{o.getInternalMethods().getUsageInstance().fail(null,t)}catch(t){}}))}return t||(n.commands.pop(),n.fullCommands.pop()),r}populatePositionals(t,e,r,n){e._=e._.slice(r.commands.length);const i=t.demanded.slice(0),s=t.optional.slice(0),o={};for(this.validation.positionalCount(i.length,e._.length);i.length;){const t=i.shift();this.populatePositional(t,e,o)}for(;s.length;){const t=s.shift();this.populatePositional(t,e,o)}return e._=r.commands.concat(e._.map((t=>""+t))),this.postProcessPositionals(e,o,this.cmdToParseOptions(t.original),n),o}populatePositional(t,e,r){const n=t.cmd[0];t.variadic?r[n]=e._.splice(0).map(String):e._.length&&(r[n]=[String(e._.shift())])}cmdToParseOptions(t){const e={array:[],default:{},alias:{},demand:{}},r=B(t);return r.demanded.forEach((t=>{const[r,...n]=t.cmd;t.variadic&&(e.array.push(r),e.default[r]=[]),e.alias[r]=n,e.demand[r]=!0})),r.optional.forEach((t=>{const[r,...n]=t.cmd;t.variadic&&(e.array.push(r),e.default[r]=[]),e.alias[r]=n})),e}postProcessPositionals(t,e,r,n){const i=Object.assign({},n.getOptions());i.default=Object.assign(r.default,i.default);for(const t of Object.keys(r.alias))i.alias[t]=(i.alias[t]||[]).concat(r.alias[t]);i.array=i.array.concat(r.array),i.config={};const s=[];if(Object.keys(e).forEach((t=>{e[t].map((e=>{i.configuration["unknown-options-as-args"]&&(i.key[t]=!0),s.push(`--${t}`),s.push(e)}))})),!s.length)return;const o=Object.assign({},i.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(s,Object.assign({},i,{configuration:o}));if(a.error)n.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const r=Object.keys(e);Object.keys(e).forEach((t=>{r.push(...a.aliases[t])}));const i=n.getOptions().default;Object.keys(a.argv).forEach((n=>{r.includes(n)&&(e[n]||(e[n]=a.argv[n]),!Object.prototype.hasOwnProperty.call(i,n)&&Object.prototype.hasOwnProperty.call(t,n)&&Object.prototype.hasOwnProperty.call(a.argv,n)&&(Array.isArray(t[n])||Array.isArray(a.argv[n]))?t[n]=[].concat(t[n],a.argv[n]):t[n]=a.argv[n])}))}}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){const e=z.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(e,this.defaultCommand.description)}const e=this.defaultCommand.builder;if(X(e))return e(t,!0);J(e)||Object.keys(e).forEach((r=>{t.option(r,e[r])}))}moduleName(t){const e=function(t){if("undefined"==typeof require)return null;for(let e,r=0,n=Object.keys(require.cache);r<n.length;r++)if(e=require.cache[n[r]],e.exports===t)return e;return null}(t);if(!e)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(e.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:e,desc:r}){for(const n of[t,e,r]){if("string"==typeof n||!1===n)return n;$(n,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const t=this.frozens.pop();$(t,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function J(t){return"object"==typeof t&&!!t.builder&&"function"==typeof t.handler}function X(t){return"function"==typeof t}function Z(t={},e=(()=>!0)){const r={};return D(t).forEach((n=>{e(n,t[n])&&(r[n]=t[n])})),r}function Q(t){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((e=>{const r=e;r._handle&&r.isTTY&&"function"==typeof r._handle.setBlocking&&r._handle.setBlocking(t)}))}function tt(t){return"boolean"==typeof t}function et(t,e){const r=e.y18n.__,n={},i=[];n.failFn=function(t){i.push(t)};let s=null,o=!0;n.showHelpOnFail=function(t=!0,e){const[r,i]="string"==typeof t?[!0,t]:[t,e];return s=i,o=r,n};let a=!1;n.fail=function(e,r){const l=t.getInternalMethods().getLoggerInstance();if(!i.length){if(t.getExitProcess()&&Q(!0),a||(a=!0,o&&(t.showHelp("error"),l.error()),(e||r)&&l.error(e||r),s&&((e||r)&&l.error(""),l.error(s))),r=r||new I(e),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,r);throw r}for(let t=i.length-1;t>=0;--t){const s=i[t];if(tt(s)){if(r)throw r;if(e)throw Error(e)}else s(e,r,n)}};let l=[],c=!1;n.usage=(t,e)=>null===t?(c=!0,l=[],n):(c=!1,l.push([t,e||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let h=[];n.example=(t,e)=>{h.push([t,e||""])};let u=[];n.command=function(t,e,r,n,i=!1){r&&(u=u.map((t=>(t[2]=!1,t)))),u.push([t,e||"",r,n,i])},n.getCommands=()=>u;let d={};n.describe=function(t,e){Array.isArray(t)?t.forEach((t=>{n.describe(t,e)})):"object"==typeof t?Object.keys(t).forEach((e=>{n.describe(e,t[e])})):d[t]=e},n.getDescriptions=()=>d;let f=[];n.epilog=t=>{f.push(t)};let p,m=!1;function g(){return m||(p=function(){const t=80;return e.process.stdColumns?Math.min(t,e.process.stdColumns):t}(),m=!0),p}n.wrap=t=>{m=!0,p=t};const y="__yargsString__:";function b(t,r,n){let i=0;return Array.isArray(t)||(t=Object.values(t).map((t=>[t]))),t.forEach((t=>{i=Math.max(e.stringWidth(n?`${n} ${it(t[0])}`:it(t[0]))+nt(t[0]),i)})),r&&(i=Math.min(i,parseInt((.5*r).toString(),10))),i}let v;function w(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function E(t,e){let n=`[${r("default:")} `;if(void 0===t&&!e)return null;if(e)n+=e;else switch(typeof t){case"string":n+=`"${t}"`;break;case"object":n+=JSON.stringify(t);break;default:n+=t}return`${n}]`}n.deferY18nLookup=t=>y+t,n.help=function(){if(v)return v;!function(){const e=t.getDemandedOptions(),r=t.getOptions();(Object.keys(r.alias)||[]).forEach((i=>{r.alias[i].forEach((s=>{d[s]&&n.describe(i,d[s]),s in e&&t.demandOption(i,e[s]),r.boolean.includes(s)&&t.boolean(i),r.count.includes(s)&&t.count(i),r.string.includes(s)&&t.string(i),r.normalize.includes(s)&&t.normalize(i),r.array.includes(s)&&t.array(i),r.number.includes(s)&&t.number(i)}))}))}();const i=t.customScriptName?t.$0:e.path.basename(t.$0),s=t.getDemandedOptions(),o=t.getDemandedCommands(),a=t.getDeprecatedOptions(),p=t.getGroups(),m=t.getOptions();let _=[];_=_.concat(Object.keys(d)),_=_.concat(Object.keys(s)),_=_.concat(Object.keys(o)),_=_.concat(Object.keys(m.default)),_=_.filter(w),_=Object.keys(_.reduce(((t,e)=>("_"!==e&&(t[e]=!0),t)),{}));const x=g(),S=e.cliui({width:x,wrap:!!x});if(!c)if(l.length)l.forEach((t=>{S.div({text:`${t[0].replace(/\$0/g,i)}`}),t[1]&&S.div({text:`${t[1]}`,padding:[1,0,0,0]})})),S.div();else if(u.length){let t=null;t=o._?`${i} <${r("command")}>\n`:`${i} [${r("command")}]\n`,S.div(`${t}`)}if(u.length>1||1===u.length&&!u[0][2]){S.div(r("Commands:"));const e=t.getInternalMethods().getContext(),n=e.commands.length?`${e.commands.join(" ")} `:"";!0===t.getInternalMethods().getParserConfiguration()["sort-commands"]&&(u=u.sort(((t,e)=>t[0].localeCompare(e[0]))));const s=i?`${i} `:"";u.forEach((t=>{const e=`${s}${n}${t[0].replace(/^\$0 ?/,"")}`;S.span({text:e,padding:[0,2,0,2],width:b(u,x,`${i}${n}`)+4},{text:t[1]});const o=[];t[2]&&o.push(`[${r("default")}]`),t[3]&&t[3].length&&o.push(`[${r("aliases:")} ${t[3].join(", ")}]`),t[4]&&("string"==typeof t[4]?o.push(`[${r("deprecated: %s",t[4])}]`):o.push(`[${r("deprecated")}]`)),o.length?S.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):S.div()})),S.div()}const O=(Object.keys(m.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);_=_.filter((e=>!t.parsed.newAliases[e]&&O.every((t=>-1===(m.alias[t]||[]).indexOf(e)))));const T=r("Options:");p[T]||(p[T]=[]),function(t,e,r,n){let i=[],s=null;Object.keys(r).forEach((t=>{i=i.concat(r[t])})),t.forEach((t=>{s=[t].concat(e[t]),s.some((t=>-1!==i.indexOf(t)))||r[n].push(t)}))}(_,m.alias,p,T);const I=t=>/^--/.test(it(t)),A=Object.keys(p).filter((t=>p[t].length>0)).map((t=>({groupName:t,normalizedKeys:p[t].filter(w).map((t=>{if(O.includes(t))return t;for(let e,r=0;void 0!==(e=O[r]);r++)if((m.alias[e]||[]).includes(t))return e;return t}))}))).filter((({normalizedKeys:t})=>t.length>0)).map((({groupName:t,normalizedKeys:e})=>{const r=e.reduce(((e,r)=>(e[r]=[r].concat(m.alias[r]||[]).map((e=>t===n.getPositionalGroupName()?e:(/^[0-9]$/.test(e)?m.boolean.includes(r)?"-":"--":e.length>1?"--":"-")+e)).sort(((t,e)=>I(t)===I(e)?0:I(t)?1:-1)).join(", "),e)),{});return{groupName:t,normalizedKeys:e,switches:r}}));if(A.filter((({groupName:t})=>t!==n.getPositionalGroupName())).some((({normalizedKeys:t,switches:e})=>!t.every((t=>I(e[t])))))&&A.filter((({groupName:t})=>t!==n.getPositionalGroupName())).forEach((({normalizedKeys:t,switches:e})=>{t.forEach((t=>{var r,n;I(e[t])&&(e[t]=(r=e[t],n="-x, ".length,rt(r)?{text:r.text,indentation:r.indentation+n}:{text:r,indentation:n}))}))})),A.forEach((({groupName:t,normalizedKeys:e,switches:i})=>{S.div(t),e.forEach((t=>{const e=i[t];let o=d[t]||"",l=null;o.includes(y)&&(o=r(o.substring(y.length))),m.boolean.includes(t)&&(l=`[${r("boolean")}]`),m.count.includes(t)&&(l=`[${r("count")}]`),m.string.includes(t)&&(l=`[${r("string")}]`),m.normalize.includes(t)&&(l=`[${r("string")}]`),m.array.includes(t)&&(l=`[${r("array")}]`),m.number.includes(t)&&(l=`[${r("number")}]`);const c=[t in a?(h=a[t],"string"==typeof h?`[${r("deprecated: %s",h)}]`:`[${r("deprecated")}]`):null,l,t in s?`[${r("required")}]`:null,m.choices&&m.choices[t]?`[${r("choices:")} ${n.stringifiedValues(m.choices[t])}]`:null,E(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var h;S.span({text:it(e),padding:[0,2,0,2+nt(e)],width:b(i,x)+4},o),c?S.div({text:c,padding:[0,0,0,2],align:"right"}):S.div()})),S.div()})),h.length&&(S.div(r("Examples:")),h.forEach((t=>{t[0]=t[0].replace(/\$0/g,i)})),h.forEach((t=>{""===t[1]?S.div({text:t[0],padding:[0,2,0,2]}):S.div({text:t[0],padding:[0,2,0,2],width:b(h,x)+4},{text:t[1]})})),S.div()),f.length>0){const t=f.map((t=>t.replace(/\$0/g,i))).join("\n");S.div(`${t}\n`)}return S.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){v=this.help()},n.clearCachedHelpMessage=function(){v=void 0},n.hasCachedHelpMessage=function(){return!!v},n.showHelp=e=>{const r=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:r[e])(n.help())},n.functionDescription=t=>["(",t.name?e.Parser.decamelize(t.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(t,e){let r="";const n=e||", ",i=[].concat(t);return t&&i.length?(i.forEach((t=>{r.length&&(r+=n),r+=JSON.stringify(t)})),r):r};let _=null;n.version=t=>{_=t},n.showVersion=e=>{const r=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:r[e])(_)},n.reset=function(t){return s=null,a=!1,l=[],c=!1,f=[],h=[],u=[],d=Z(d,(e=>!t[e])),n};const x=[];return n.freeze=function(){x.push({failMessage:s,failureOutput:a,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:u,descriptions:d})},n.unfreeze=function(t=!1){const e=x.pop();e&&(t?(d={...e.descriptions,...d},u=[...e.commands,...u],l=[...e.usages,...l],h=[...e.examples,...h],f=[...e.epilogs,...f]):({failMessage:s,failureOutput:a,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:u,descriptions:d}=e))},n}function rt(t){return"object"==typeof t}function nt(t){return rt(t)?t.indentation:0}function it(t){return rt(t)?t.text:t}class st{constructor(t,e,r,n){var i,s,o;this.yargs=t,this.usage=e,this.command=r,this.shim=n,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(i=this.shim.getEnv("SHELL"))||void 0===i?void 0:i.includes("zsh"))||(null===(s=this.shim.getEnv("ZSH_NAME"))||void 0===s?void 0:s.includes("zsh")))&&void 0!==o&&o}defaultCompletion(t,e,r,n){const i=this.command.getCommandHandlers();for(let e=0,r=t.length;e<r;++e)if(i[t[e]]&&i[t[e]].builder){const r=i[t[e]].builder;if(X(r)){this.indexAfterLastReset=e+1;const t=this.yargs.getInternalMethods().reset();return r(t,!0),t.argv}}const s=[];this.commandCompletions(s,t,r),this.optionCompletions(s,t,e,r),this.choicesFromOptionsCompletions(s,t,e,r),this.choicesFromPositionalsCompletions(s,t,e,r),n(null,s)}commandCompletions(t,e,r){const n=this.yargs.getInternalMethods().getContext().commands;r.match(/^-/)||n[n.length-1]===r||this.previousArgHasChoices(e)||this.usage.getCommands().forEach((r=>{const n=B(r[0]).cmd;if(-1===e.indexOf(n))if(this.zshShell){const e=r[1]||"";t.push(n.replace(/:/g,"\\:")+":"+e)}else t.push(n)}))}optionCompletions(t,e,r,n){if((n.match(/^-/)||""===n&&0===t.length)&&!this.previousArgHasChoices(e)){const i=this.yargs.getOptions(),s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach((o=>{const a=!!i.configuration["boolean-negation"]&&i.boolean.includes(o);s.includes(o)||this.argsContainKey(e,r,o,a)||(this.completeOptionKey(o,t,n),a&&i.default[o]&&this.completeOptionKey(`no-${o}`,t,n))}))}}choicesFromOptionsCompletions(t,e,r,n){if(this.previousArgHasChoices(e)){const r=this.getPreviousArgChoices(e);r&&r.length>0&&t.push(...r)}}choicesFromPositionalsCompletions(t,e,r,n){const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],s=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=i[r._.slice(s).length-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const e of a)e.startsWith(n)&&t.push(e)}getPreviousArgChoices(t){if(t.length<1)return;let e=t[t.length-1],r="";if(!e.startsWith("-")&&t.length>1&&(r=e,e=t[t.length-2]),!e.startsWith("-"))return;const n=e.replace(/^-+/,""),i=this.yargs.getOptions(),s=[n,...this.yargs.getAliases()[n]||[]];let o;for(const t of s)if(Object.prototype.hasOwnProperty.call(i.key,t)&&Array.isArray(i.choices[t])){o=i.choices[t];break}return o?o.filter((t=>!r||t.startsWith(r))):void 0}previousArgHasChoices(t){const e=this.getPreviousArgChoices(t);return void 0!==e&&e.length>0}argsContainKey(t,e,r,n){if(-1!==t.indexOf(`--${r}`))return!0;if(n&&-1!==t.indexOf(`--no-${r}`))return!0;if(this.aliases)for(const t of this.aliases[r])if(void 0!==e[t])return!0;return!1}completeOptionKey(t,e,r){const n=this.usage.getDescriptions(),i=!/^--/.test(r)&&(t=>/^[^0-9]$/.test(t))(t)?"-":"--";if(this.zshShell){const r=n[t]||"";e.push(i+`${t.replace(/:/g,"\\:")}:${r.replace("__yargsString__:","")}`)}else e.push(i+t)}customCompletion(t,e,r,n){if($(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const t=this.customCompletionFunction(r,e);return F(t)?t.then((t=>{this.shim.process.nextTick((()=>{n(null,t)}))})).catch((t=>{this.shim.process.nextTick((()=>{n(t,void 0)}))})):n(null,t)}return function(t){return t.length>3}(this.customCompletionFunction)?this.customCompletionFunction(r,e,((i=n)=>this.defaultCompletion(t,e,r,i)),(t=>{n(null,t)})):this.customCompletionFunction(r,e,(t=>{n(null,t)}))}getCompletion(t,e){const r=t.length?t[t.length-1]:"",n=this.yargs.parse(t,!0),i=this.customCompletionFunction?n=>this.customCompletion(t,n,r,e):n=>this.defaultCompletion(t,n,r,e);return F(n)?n.then(i):i(n)}generateCompletionScript(t,e){let r=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const n=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),r=r.replace(/{{app_name}}/g,n),r=r.replace(/{{completion_command}}/g,e),r.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}}function ot(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const r=[];let n,i;for(n=0;n<=e.length;n++)r[n]=[n];for(i=0;i<=t.length;i++)r[0][i]=i;for(n=1;n<=e.length;n++)for(i=1;i<=t.length;i++)e.charAt(n-1)===t.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&e.charAt(n-2)===t.charAt(i-1)&&e.charAt(n-1)===t.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[e.length][t.length]}const at=["$0","--","_"];let lt,ct=[];function ht(t,e,r,n){lt=n;let i={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeof t.extends)return i;const n=/\.json|\..*rc$/.test(t.extends);let s=null;if(n)s=function(t,e){return lt.path.resolve(t,e)}(e,t.extends);else try{s=require.resolve(t.extends)}catch(e){return t}!function(t){if(ct.indexOf(t)>-1)throw new I(`Circular extended configurations: '${t}'.`)}(s),ct.push(s),i=n?JSON.parse(lt.readFileSync(s,"utf8")):require(t.extends),delete t.extends,i=ht(i,lt.path.dirname(s),r,lt)}return ct=[],r?ut(i,t):Object.assign({},i,t)}function ut(t,e){const r={};function n(t){return t&&"object"==typeof t&&!Array.isArray(t)}Object.assign(r,t);for(const i of Object.keys(e))n(e[i])&&n(r[i])?r[i]=ut(t[i],e[i]):r[i]=e[i];return r}var dt,ft,pt,mt,gt,yt,bt,vt,wt,Et,_t,xt,St,Ot,Tt,It,At,Ct,Rt,kt,Mt,jt,Pt,Nt,$t,Lt,Dt,Ft,Bt,Gt,Ut,Ht,Wt,qt=function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},Yt=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};const Vt=Symbol("copyDoubleDash"),zt=Symbol("copyDoubleDash"),Kt=Symbol("deleteFromParserHintObject"),Jt=Symbol("emitWarning"),Xt=Symbol("freeze"),Zt=Symbol("getDollarZero"),Qt=Symbol("getParserConfiguration"),te=Symbol("guessLocale"),ee=Symbol("guessVersion"),re=Symbol("parsePositionalNumbers"),ne=Symbol("pkgUp"),ie=Symbol("populateParserHintArray"),se=Symbol("populateParserHintSingleValueDictionary"),oe=Symbol("populateParserHintArrayDictionary"),ae=Symbol("populateParserHintDictionary"),le=Symbol("sanitizeKey"),ce=Symbol("setKey"),he=Symbol("unfreeze"),ue=Symbol("validateAsync"),de=Symbol("getCommandInstance"),fe=Symbol("getContext"),pe=Symbol("getHasOutput"),me=Symbol("getLoggerInstance"),ge=Symbol("getParseContext"),ye=Symbol("getUsageInstance"),be=Symbol("getValidationInstance"),ve=Symbol("hasParseCallback"),we=Symbol("postProcess"),Ee=Symbol("rebase"),_e=Symbol("reset"),xe=Symbol("runYargsParserAndExecuteCommands"),Se=Symbol("runValidation"),Oe=Symbol("setHasOutput"),Te=Symbol("kTrackManuallySetKeys");class Ie{constructor(t=[],e,r,n){this.customScriptName=!1,this.parsed=!1,dt.set(this,void 0),ft.set(this,void 0),pt.set(this,{commands:[],fullCommands:[]}),mt.set(this,null),gt.set(this,null),yt.set(this,"show-hidden"),bt.set(this,null),vt.set(this,!0),wt.set(this,{}),Et.set(this,!0),_t.set(this,[]),xt.set(this,void 0),St.set(this,{}),Ot.set(this,!1),Tt.set(this,null),It.set(this,void 0),At.set(this,""),Ct.set(this,void 0),Rt.set(this,void 0),kt.set(this,{}),Mt.set(this,null),jt.set(this,null),Pt.set(this,{}),Nt.set(this,{}),$t.set(this,void 0),Lt.set(this,!1),Dt.set(this,void 0),Ft.set(this,!1),Bt.set(this,!1),Gt.set(this,!1),Ut.set(this,void 0),Ht.set(this,null),Wt.set(this,void 0),qt(this,Dt,n,"f"),qt(this,$t,t,"f"),qt(this,ft,e,"f"),qt(this,Rt,r,"f"),qt(this,xt,new q(this),"f"),this.$0=this[Zt](),this[_e](),qt(this,dt,Yt(this,dt,"f"),"f"),qt(this,Ut,Yt(this,Ut,"f"),"f"),qt(this,Wt,Yt(this,Wt,"f"),"f"),qt(this,Ct,Yt(this,Ct,"f"),"f"),Yt(this,Ct,"f").showHiddenOpt=Yt(this,yt,"f"),qt(this,It,this[zt](),"f")}addHelpOpt(t,e){return U("[string|boolean] [string]",[t,e],arguments.length),Yt(this,Tt,"f")&&(this[Kt](Yt(this,Tt,"f")),qt(this,Tt,null,"f")),!1===t&&void 0===e||(qt(this,Tt,"string"==typeof t?t:"help","f"),this.boolean(Yt(this,Tt,"f")),this.describe(Yt(this,Tt,"f"),e||Yt(this,Ut,"f").deferY18nLookup("Show help"))),this}help(t,e){return this.addHelpOpt(t,e)}addShowHiddenOpt(t,e){if(U("[string|boolean] [string]",[t,e],arguments.length),!1===t&&void 0===e)return this;const r="string"==typeof t?t:Yt(this,yt,"f");return this.boolean(r),this.describe(r,e||Yt(this,Ut,"f").deferY18nLookup("Show hidden options")),Yt(this,Ct,"f").showHiddenOpt=r,this}showHidden(t,e){return this.addShowHiddenOpt(t,e)}alias(t,e){return U("<object|string|array> [string|array]",[t,e],arguments.length),this[oe](this.alias.bind(this),"alias",t,e),this}array(t){return U("<array|string>",[t],arguments.length),this[ie]("array",t),this[Te](t),this}boolean(t){return U("<array|string>",[t],arguments.length),this[ie]("boolean",t),this[Te](t),this}check(t,e){return U("<function> [boolean]",[t,e],arguments.length),this.middleware(((e,r)=>V((()=>t(e,r.getOptions())),(r=>(r?("string"==typeof r||r instanceof Error)&&Yt(this,Ut,"f").fail(r.toString(),r):Yt(this,Ut,"f").fail(Yt(this,Dt,"f").y18n.__("Argument check failed: %s",t.toString())),e)),(t=>(Yt(this,Ut,"f").fail(t.message?t.message:t.toString(),t),e)))),!1,e),this}choices(t,e){return U("<object|string|array> [string|array]",[t,e],arguments.length),this[oe](this.choices.bind(this),"choices",t,e),this}coerce(t,e){if(U("<object|string|array> [function]",[t,e],arguments.length),Array.isArray(t)){if(!e)throw new I("coerce callback must be provided");for(const r of t)this.coerce(r,e);return this}if("object"==typeof t){for(const e of Object.keys(t))this.coerce(e,t[e]);return this}if(!e)throw new I("coerce callback must be provided");return Yt(this,Ct,"f").key[t]=!0,Yt(this,xt,"f").addCoerceMiddleware(((r,n)=>{let i;return V((()=>(i=n.getAliases(),e(r[t]))),(e=>{if(r[t]=e,i[t])for(const n of i[t])r[n]=e;return r}),(t=>{throw new I(t.message)}))}),t),this}conflicts(t,e){return U("<string|object> [string|array]",[t,e],arguments.length),Yt(this,Wt,"f").conflicts(t,e),this}config(t="config",e,r){return U("[object|string] [string|function] [function]",[t,e,r],arguments.length),"object"!=typeof t||Array.isArray(t)?("function"==typeof e&&(r=e,e=void 0),this.describe(t,e||Yt(this,Ut,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach((t=>{Yt(this,Ct,"f").config[t]=r||!0})),this):(t=ht(t,Yt(this,ft,"f"),this[Qt]()["deep-merge-config"]||!1,Yt(this,Dt,"f")),Yt(this,Ct,"f").configObjects=(Yt(this,Ct,"f").configObjects||[]).concat(t),this)}completion(t,e,r){return U("[string] [string|boolean|function] [function]",[t,e,r],arguments.length),"function"==typeof e&&(r=e,e=void 0),qt(this,gt,t||Yt(this,gt,"f")||"completion","f"),e||!1===e||(e="generate completion script"),this.command(Yt(this,gt,"f"),e),r&&Yt(this,mt,"f").registerFunction(r),this}command(t,e,r,n,i,s){return U("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,e,r,n,i,s],arguments.length),Yt(this,dt,"f").addHandler(t,e,r,n,i,s),this}commands(t,e,r,n,i,s){return this.command(t,e,r,n,i,s)}commandDir(t,e){U("<string> [object]",[t,e],arguments.length);const r=Yt(this,Rt,"f")||Yt(this,Dt,"f").require;return Yt(this,dt,"f").addDirectory(t,r,Yt(this,Dt,"f").getCallerFile(),e),this}count(t){return U("<array|string>",[t],arguments.length),this[ie]("count",t),this[Te](t),this}default(t,e,r){return U("<object|string|array> [*] [string]",[t,e,r],arguments.length),r&&(L(t,Yt(this,Dt,"f")),Yt(this,Ct,"f").defaultDescription[t]=r),"function"==typeof e&&(L(t,Yt(this,Dt,"f")),Yt(this,Ct,"f").defaultDescription[t]||(Yt(this,Ct,"f").defaultDescription[t]=Yt(this,Ut,"f").functionDescription(e)),e=e.call()),this[se](this.default.bind(this),"default",t,e),this}defaults(t,e,r){return this.default(t,e,r)}demandCommand(t=1,e,r,n){return U("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,r,n],arguments.length),"number"!=typeof e&&(r=e,e=1/0),this.global("_",!1),Yt(this,Ct,"f").demandedCommands._={min:t,max:e,minMsg:r,maxMsg:n},this}demand(t,e,r){return Array.isArray(e)?(e.forEach((t=>{$(r,!0,Yt(this,Dt,"f")),this.demandOption(t,r)})),e=1/0):"number"!=typeof e&&(r=e,e=1/0),"number"==typeof t?($(r,!0,Yt(this,Dt,"f")),this.demandCommand(t,e,r,r)):Array.isArray(t)?t.forEach((t=>{$(r,!0,Yt(this,Dt,"f")),this.demandOption(t,r)})):"string"==typeof r?this.demandOption(t,r):!0!==r&&void 0!==r||this.demandOption(t),this}demandOption(t,e){return U("<object|string|array> [string]",[t,e],arguments.length),this[se](this.demandOption.bind(this),"demandedOptions",t,e),this}deprecateOption(t,e){return U("<string> [string|boolean]",[t,e],arguments.length),Yt(this,Ct,"f").deprecatedOptions[t]=e,this}describe(t,e){return U("<object|string|array> [string]",[t,e],arguments.length),this[ce](t,!0),Yt(this,Ut,"f").describe(t,e),this}detectLocale(t){return U("<boolean>",[t],arguments.length),qt(this,vt,t,"f"),this}env(t){return U("[string|boolean]",[t],arguments.length),!1===t?delete Yt(this,Ct,"f").envPrefix:Yt(this,Ct,"f").envPrefix=t||"",this}epilogue(t){return U("<string>",[t],arguments.length),Yt(this,Ut,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,e){return U("<string|array> [string]",[t,e],arguments.length),Array.isArray(t)?t.forEach((t=>this.example(...t))):Yt(this,Ut,"f").example(t,e),this}exit(t,e){qt(this,Ot,!0,"f"),qt(this,bt,e,"f"),Yt(this,Et,"f")&&Yt(this,Dt,"f").process.exit(t)}exitProcess(t=!0){return U("[boolean]",[t],arguments.length),qt(this,Et,t,"f"),this}fail(t){if(U("<function|boolean>",[t],arguments.length),"boolean"==typeof t&&!1!==t)throw new I("Invalid first argument. Expected function or boolean 'false'");return Yt(this,Ut,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,e){return U("<array> [function]",[t,e],arguments.length),e?Yt(this,mt,"f").getCompletion(t,e):new Promise(((e,r)=>{Yt(this,mt,"f").getCompletion(t,((t,n)=>{t?r(t):e(n)}))}))}getDemandedOptions(){return U([],0),Yt(this,Ct,"f").demandedOptions}getDemandedCommands(){return U([],0),Yt(this,Ct,"f").demandedCommands}getDeprecatedOptions(){return U([],0),Yt(this,Ct,"f").deprecatedOptions}getDetectLocale(){return Yt(this,vt,"f")}getExitProcess(){return Yt(this,Et,"f")}getGroups(){return Object.assign({},Yt(this,St,"f"),Yt(this,Nt,"f"))}getHelp(){if(qt(this,Ot,!0,"f"),!Yt(this,Ut,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[xe](Yt(this,$t,"f"),void 0,void 0,0,!0);if(F(t))return t.then((()=>Yt(this,Ut,"f").help()))}const t=Yt(this,dt,"f").runDefaultBuilderOn(this);if(F(t))return t.then((()=>Yt(this,Ut,"f").help()))}return Promise.resolve(Yt(this,Ut,"f").help())}getOptions(){return Yt(this,Ct,"f")}getStrict(){return Yt(this,Ft,"f")}getStrictCommands(){return Yt(this,Bt,"f")}getStrictOptions(){return Yt(this,Gt,"f")}global(t,e){return U("<string|array> [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?Yt(this,Ct,"f").local=Yt(this,Ct,"f").local.filter((e=>-1===t.indexOf(e))):t.forEach((t=>{Yt(this,Ct,"f").local.includes(t)||Yt(this,Ct,"f").local.push(t)})),this}group(t,e){U("<string|array> <string>",[t,e],arguments.length);const r=Yt(this,Nt,"f")[e]||Yt(this,St,"f")[e];Yt(this,Nt,"f")[e]&&delete Yt(this,Nt,"f")[e];const n={};return Yt(this,St,"f")[e]=(r||[]).concat(t).filter((t=>!n[t]&&(n[t]=!0))),this}hide(t){return U("<string>",[t],arguments.length),Yt(this,Ct,"f").hiddenOptions.push(t),this}implies(t,e){return U("<string|object> [number|string|array]",[t,e],arguments.length),Yt(this,Wt,"f").implies(t,e),this}locale(t){return U("[string]",[t],arguments.length),t?(qt(this,vt,!1,"f"),Yt(this,Dt,"f").y18n.setLocale(t),this):(this[te](),Yt(this,Dt,"f").y18n.getLocale())}middleware(t,e,r){return Yt(this,xt,"f").addMiddleware(t,!!e,r)}nargs(t,e){return U("<string|object|array> [number]",[t,e],arguments.length),this[se](this.nargs.bind(this),"narg",t,e),this}normalize(t){return U("<array|string>",[t],arguments.length),this[ie]("normalize",t),this}number(t){return U("<array|string>",[t],arguments.length),this[ie]("number",t),this[Te](t),this}option(t,e){if(U("<string|object> [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach((e=>{this.options(e,t[e])}));else{"object"!=typeof e&&(e={}),this[Te](t),!Yt(this,Ht,"f")||"version"!==t&&"version"!==(null==e?void 0:e.alias)||this[Jt](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),Yt(this,Ct,"f").key[t]=!0,e.alias&&this.alias(t,e.alias);const r=e.deprecate||e.deprecated;r&&this.deprecateOption(t,r);const n=e.demand||e.required||e.require;n&&this.demand(t,n),e.demandOption&&this.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),e.conflicts&&this.conflicts(t,e.conflicts),"default"in e&&this.default(t,e.default),void 0!==e.implies&&this.implies(t,e.implies),void 0!==e.nargs&&this.nargs(t,e.nargs),e.config&&this.config(t,e.configParser),e.normalize&&this.normalize(t),e.choices&&this.choices(t,e.choices),e.coerce&&this.coerce(t,e.coerce),e.group&&this.group(t,e.group),(e.boolean||"boolean"===e.type)&&(this.boolean(t),e.alias&&this.boolean(e.alias)),(e.array||"array"===e.type)&&(this.array(t),e.alias&&this.array(e.alias)),(e.number||"number"===e.type)&&(this.number(t),e.alias&&this.number(e.alias)),(e.string||"string"===e.type)&&(this.string(t),e.alias&&this.string(e.alias)),(e.count||"count"===e.type)&&this.count(t),"boolean"==typeof e.global&&this.global(t,e.global),e.defaultDescription&&(Yt(this,Ct,"f").defaultDescription[t]=e.defaultDescription),e.skipValidation&&this.skipValidation(t);const i=e.describe||e.description||e.desc;this.describe(t,i),e.hidden&&this.hide(t),e.requiresArg&&this.requiresArg(t)}return this}options(t,e){return this.option(t,e)}parse(t,e,r){U("[string|array] [function|boolean|object] [function]",[t,e,r],arguments.length),this[Xt](),void 0===t&&(t=Yt(this,$t,"f")),"object"==typeof e&&(qt(this,jt,e,"f"),e=r),"function"==typeof e&&(qt(this,Mt,e,"f"),e=!1),e||qt(this,$t,t,"f"),Yt(this,Mt,"f")&&qt(this,Et,!1,"f");const n=this[xe](t,!!e),i=this.parsed;return Yt(this,mt,"f").setParsed(this.parsed),F(n)?n.then((t=>(Yt(this,Mt,"f")&&Yt(this,Mt,"f").call(this,Yt(this,bt,"f"),t,Yt(this,At,"f")),t))).catch((t=>{throw Yt(this,Mt,"f")&&Yt(this,Mt,"f")(t,this.parsed.argv,Yt(this,At,"f")),t})).finally((()=>{this[he](),this.parsed=i})):(Yt(this,Mt,"f")&&Yt(this,Mt,"f").call(this,Yt(this,bt,"f"),n,Yt(this,At,"f")),this[he](),this.parsed=i,n)}parseAsync(t,e,r){const n=this.parse(t,e,r);return F(n)?n:Promise.resolve(n)}parseSync(t,e,r){const n=this.parse(t,e,r);if(F(n))throw new I(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(t){return U("<object>",[t],arguments.length),qt(this,kt,t,"f"),this}pkgConf(t,e){U("<string> [string]",[t,e],arguments.length);let r=null;const n=this[ne](e||Yt(this,ft,"f"));return n[t]&&"object"==typeof n[t]&&(r=ht(n[t],e||Yt(this,ft,"f"),this[Qt]()["deep-merge-config"]||!1,Yt(this,Dt,"f")),Yt(this,Ct,"f").configObjects=(Yt(this,Ct,"f").configObjects||[]).concat(r)),this}positional(t,e){U("<string> <object>",[t,e],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=Z(e,((t,e)=>!("type"===t&&!["string","number","boolean"].includes(e))&&r.includes(t)));const n=Yt(this,pt,"f").fullCommands[Yt(this,pt,"f").fullCommands.length-1],i=n?Yt(this,dt,"f").cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};return D(i).forEach((r=>{const n=i[r];Array.isArray(n)?-1!==n.indexOf(t)&&(e[r]=!0):n[t]&&!(r in e)&&(e[r]=n[t])})),this.group(t,Yt(this,Ut,"f").getPositionalGroupName()),this.option(t,e)}recommendCommands(t=!0){return U("[boolean]",[t],arguments.length),qt(this,Lt,t,"f"),this}required(t,e,r){return this.demand(t,e,r)}require(t,e,r){return this.demand(t,e,r)}requiresArg(t){return U("<array|string|object> [number]",[t],arguments.length),"string"==typeof t&&Yt(this,Ct,"f").narg[t]||this[se](this.requiresArg.bind(this),"narg",t,NaN),this}showCompletionScript(t,e){return U("[string] [string]",[t,e],arguments.length),t=t||this.$0,Yt(this,It,"f").log(Yt(this,mt,"f").generateCompletionScript(t,e||Yt(this,gt,"f")||"completion")),this}showHelp(t){if(U("[string|function]",[t],arguments.length),qt(this,Ot,!0,"f"),!Yt(this,Ut,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[xe](Yt(this,$t,"f"),void 0,void 0,0,!0);if(F(e))return e.then((()=>{Yt(this,Ut,"f").showHelp(t)})),this}const e=Yt(this,dt,"f").runDefaultBuilderOn(this);if(F(e))return e.then((()=>{Yt(this,Ut,"f").showHelp(t)})),this}return Yt(this,Ut,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,e){return U("[boolean|string] [string]",[t,e],arguments.length),Yt(this,Ut,"f").showHelpOnFail(t,e),this}showVersion(t){return U("[string|function]",[t],arguments.length),Yt(this,Ut,"f").showVersion(t),this}skipValidation(t){return U("<array|string>",[t],arguments.length),this[ie]("skipValidation",t),this}strict(t){return U("[boolean]",[t],arguments.length),qt(this,Ft,!1!==t,"f"),this}strictCommands(t){return U("[boolean]",[t],arguments.length),qt(this,Bt,!1!==t,"f"),this}strictOptions(t){return U("[boolean]",[t],arguments.length),qt(this,Gt,!1!==t,"f"),this}string(t){return U("<array|string>",[t],arguments.length),this[ie]("string",t),this[Te](t),this}terminalWidth(){return U([],0),Yt(this,Dt,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return U("<object>",[t],arguments.length),qt(this,vt,!1,"f"),Yt(this,Dt,"f").y18n.updateLocale(t),this}usage(t,e,r,n){if(U("<string|null|undefined> [string|boolean] [function|object] [function]",[t,e,r,n],arguments.length),void 0!==e){if($(t,null,Yt(this,Dt,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,e,r,n);throw new I(".usage() description must start with $0 if being used as alias for .command()")}return Yt(this,Ut,"f").usage(t),this}version(t,e,r){const n="version";if(U("[boolean|string] [string] [string]",[t,e,r],arguments.length),Yt(this,Ht,"f")&&(this[Kt](Yt(this,Ht,"f")),Yt(this,Ut,"f").version(void 0),qt(this,Ht,null,"f")),0===arguments.length)r=this[ee](),t=n;else if(1===arguments.length){if(!1===t)return this;r=t,t=n}else 2===arguments.length&&(r=e,e=void 0);return qt(this,Ht,"string"==typeof t?t:n,"f"),e=e||Yt(this,Ut,"f").deferY18nLookup("Show version number"),Yt(this,Ut,"f").version(r||void 0),this.boolean(Yt(this,Ht,"f")),this.describe(Yt(this,Ht,"f"),e),this}wrap(t){return U("<number|null|undefined>",[t],arguments.length),Yt(this,Ut,"f").wrap(t),this}[(dt=new WeakMap,ft=new WeakMap,pt=new WeakMap,mt=new WeakMap,gt=new WeakMap,yt=new WeakMap,bt=new WeakMap,vt=new WeakMap,wt=new WeakMap,Et=new WeakMap,_t=new WeakMap,xt=new WeakMap,St=new WeakMap,Ot=new WeakMap,Tt=new WeakMap,It=new WeakMap,At=new WeakMap,Ct=new WeakMap,Rt=new WeakMap,kt=new WeakMap,Mt=new WeakMap,jt=new WeakMap,Pt=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Lt=new WeakMap,Dt=new WeakMap,Ft=new WeakMap,Bt=new WeakMap,Gt=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,Vt)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch(t){}return t}[zt](){return{log:(...t)=>{this[ve]()||console.log(...t),qt(this,Ot,!0,"f"),Yt(this,At,"f").length&&qt(this,At,Yt(this,At,"f")+"\n","f"),qt(this,At,Yt(this,At,"f")+t.join(" "),"f")},error:(...t)=>{this[ve]()||console.error(...t),qt(this,Ot,!0,"f"),Yt(this,At,"f").length&&qt(this,At,Yt(this,At,"f")+"\n","f"),qt(this,At,Yt(this,At,"f")+t.join(" "),"f")}}}[Kt](t){D(Yt(this,Ct,"f")).forEach((e=>{if("configObjects"===e)return;const r=Yt(this,Ct,"f")[e];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):"object"==typeof r&&delete r[t]})),delete Yt(this,Ut,"f").getDescriptions()[t]}[Jt](t,e,r){Yt(this,wt,"f")[r]||(Yt(this,Dt,"f").process.emitWarning(t,e),Yt(this,wt,"f")[r]=!0)}[Xt](){Yt(this,_t,"f").push({options:Yt(this,Ct,"f"),configObjects:Yt(this,Ct,"f").configObjects.slice(0),exitProcess:Yt(this,Et,"f"),groups:Yt(this,St,"f"),strict:Yt(this,Ft,"f"),strictCommands:Yt(this,Bt,"f"),strictOptions:Yt(this,Gt,"f"),completionCommand:Yt(this,gt,"f"),output:Yt(this,At,"f"),exitError:Yt(this,bt,"f"),hasOutput:Yt(this,Ot,"f"),parsed:this.parsed,parseFn:Yt(this,Mt,"f"),parseContext:Yt(this,jt,"f")}),Yt(this,Ut,"f").freeze(),Yt(this,Wt,"f").freeze(),Yt(this,dt,"f").freeze(),Yt(this,xt,"f").freeze()}[Zt](){let t,e="";return t=/\b(node|iojs|electron)(\.exe)?$/.test(Yt(this,Dt,"f").process.argv()[0])?Yt(this,Dt,"f").process.argv().slice(1,2):Yt(this,Dt,"f").process.argv().slice(0,1),e=t.map((t=>{const e=this[Ee](Yt(this,ft,"f"),t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&e.length<t.length?e:t})).join(" ").trim(),Yt(this,Dt,"f").getEnv("_")&&Yt(this,Dt,"f").getProcessArgvBin()===Yt(this,Dt,"f").getEnv("_")&&(e=Yt(this,Dt,"f").getEnv("_").replace(`${Yt(this,Dt,"f").path.dirname(Yt(this,Dt,"f").process.execPath())}/`,"")),e}[Qt](){return Yt(this,kt,"f")}[te](){if(!Yt(this,vt,"f"))return;const t=Yt(this,Dt,"f").getEnv("LC_ALL")||Yt(this,Dt,"f").getEnv("LC_MESSAGES")||Yt(this,Dt,"f").getEnv("LANG")||Yt(this,Dt,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[ee](){return this[ne]().version||"unknown"}[re](t){const e=t["--"]?t["--"]:t._;for(let t,r=0;void 0!==(t=e[r]);r++)Yt(this,Dt,"f").Parser.looksLikeNumber(t)&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))&&(e[r]=Number(t));return t}[ne](t){const e=t||"*";if(Yt(this,Pt,"f")[e])return Yt(this,Pt,"f")[e];let r={};try{let e=t||Yt(this,Dt,"f").mainFilename;!t&&Yt(this,Dt,"f").path.extname(e)&&(e=Yt(this,Dt,"f").path.dirname(e));const n=Yt(this,Dt,"f").findUp(e,((t,e)=>e.includes("package.json")?"package.json":void 0));$(n,void 0,Yt(this,Dt,"f")),r=JSON.parse(Yt(this,Dt,"f").readFileSync(n,"utf8"))}catch(t){}return Yt(this,Pt,"f")[e]=r||{},Yt(this,Pt,"f")[e]}[ie](t,e){(e=[].concat(e)).forEach((e=>{e=this[le](e),Yt(this,Ct,"f")[t].push(e)}))}[se](t,e,r,n){this[ae](t,e,r,n,((t,e,r)=>{Yt(this,Ct,"f")[t][e]=r}))}[oe](t,e,r,n){this[ae](t,e,r,n,((t,e,r)=>{Yt(this,Ct,"f")[t][e]=(Yt(this,Ct,"f")[t][e]||[]).concat(r)}))}[ae](t,e,r,n,i){if(Array.isArray(r))r.forEach((e=>{t(e,n)}));else if((t=>"object"==typeof t)(r))for(const e of D(r))t(e,r[e]);else i(e,this[le](r),n)}[le](t){return"__proto__"===t?"___proto___":t}[ce](t,e){return this[se](this[ce].bind(this),"key",t,e),this}[he](){var t,e,r,n,i,s,o,a,l,c,h,u;const d=Yt(this,_t,"f").pop();let f;$(d,void 0,Yt(this,Dt,"f")),t=this,e=this,r=this,n=this,i=this,s=this,o=this,a=this,l=this,c=this,h=this,u=this,({options:{set value(e){qt(t,Ct,e,"f")}}.value,configObjects:f,exitProcess:{set value(t){qt(e,Et,t,"f")}}.value,groups:{set value(t){qt(r,St,t,"f")}}.value,output:{set value(t){qt(n,At,t,"f")}}.value,exitError:{set value(t){qt(i,bt,t,"f")}}.value,hasOutput:{set value(t){qt(s,Ot,t,"f")}}.value,parsed:this.parsed,strict:{set value(t){qt(o,Ft,t,"f")}}.value,strictCommands:{set value(t){qt(a,Bt,t,"f")}}.value,strictOptions:{set value(t){qt(l,Gt,t,"f")}}.value,completionCommand:{set value(t){qt(c,gt,t,"f")}}.value,parseFn:{set value(t){qt(h,Mt,t,"f")}}.value,parseContext:{set value(t){qt(u,jt,t,"f")}}.value}=d),Yt(this,Ct,"f").configObjects=f,Yt(this,Ut,"f").unfreeze(),Yt(this,Wt,"f").unfreeze(),Yt(this,dt,"f").unfreeze(),Yt(this,xt,"f").unfreeze()}[ue](t,e){return V(e,(e=>(t(e),e)))}getInternalMethods(){return{getCommandInstance:this[de].bind(this),getContext:this[fe].bind(this),getHasOutput:this[pe].bind(this),getLoggerInstance:this[me].bind(this),getParseContext:this[ge].bind(this),getParserConfiguration:this[Qt].bind(this),getUsageInstance:this[ye].bind(this),getValidationInstance:this[be].bind(this),hasParseCallback:this[ve].bind(this),postProcess:this[we].bind(this),reset:this[_e].bind(this),runValidation:this[Se].bind(this),runYargsParserAndExecuteCommands:this[xe].bind(this),setHasOutput:this[Oe].bind(this)}}[de](){return Yt(this,dt,"f")}[fe](){return Yt(this,pt,"f")}[pe](){return Yt(this,Ot,"f")}[me](){return Yt(this,It,"f")}[ge](){return Yt(this,jt,"f")||{}}[ye](){return Yt(this,Ut,"f")}[be](){return Yt(this,Wt,"f")}[ve](){return!!Yt(this,Mt,"f")}[we](t,e,r,n){if(r)return t;if(F(t))return t;e||(t=this[Vt](t));return(this[Qt]()["parse-positional-numbers"]||void 0===this[Qt]()["parse-positional-numbers"])&&(t=this[re](t)),n&&(t=Y(t,this,Yt(this,xt,"f").getMiddleware(),!1)),t}[_e](t={}){qt(this,Ct,Yt(this,Ct,"f")||{},"f");const e={};e.local=Yt(this,Ct,"f").local||[],e.configObjects=Yt(this,Ct,"f").configObjects||[];const r={};e.local.forEach((e=>{r[e]=!0,(t[e]||[]).forEach((t=>{r[t]=!0}))})),Object.assign(Yt(this,Nt,"f"),Object.keys(Yt(this,St,"f")).reduce(((t,e)=>{const n=Yt(this,St,"f")[e].filter((t=>!(t in r)));return n.length>0&&(t[e]=n),t}),{})),qt(this,St,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((t=>{e[t]=(Yt(this,Ct,"f")[t]||[]).filter((t=>!r[t]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((t=>{e[t]=Z(Yt(this,Ct,"f")[t],(t=>!r[t]))})),e.envPrefix=Yt(this,Ct,"f").envPrefix,qt(this,Ct,e,"f"),qt(this,Ut,Yt(this,Ut,"f")?Yt(this,Ut,"f").reset(r):et(this,Yt(this,Dt,"f")),"f"),qt(this,Wt,Yt(this,Wt,"f")?Yt(this,Wt,"f").reset(r):function(t,e,r){const n=r.y18n.__,i=r.y18n.__n,s={nonOptionCount:function(r){const n=t.getDemandedCommands(),s=r._.length+(r["--"]?r["--"].length:0)-t.getInternalMethods().getContext().commands.length;n._&&(s<n._.min||s>n._.max)&&(s<n._.min?void 0!==n._.minMsg?e.fail(n._.minMsg?n._.minMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.min.toString()):null):e.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",s,s.toString(),n._.min.toString())):s>n._.max&&(void 0!==n._.maxMsg?e.fail(n._.maxMsg?n._.maxMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.max.toString()):null):e.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",s,s.toString(),n._.max.toString()))))},positionalCount:function(t,r){r<t&&e.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",r,r+"",t+""))},requiredArguments:function(t,r){let n=null;for(const e of Object.keys(r))Object.prototype.hasOwnProperty.call(t,e)&&void 0!==t[e]||(n=n||{},n[e]=r[e]);if(n){const t=[];for(const e of Object.keys(n)){const r=n[e];r&&t.indexOf(r)<0&&t.push(r)}const r=t.length?`\n${t.join("\n")}`:"";e.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(n).length,Object.keys(n).join(", ")+r))}},unknownArguments:function(r,n,o,a,l=!0){var c;const h=t.getInternalMethods().getCommandInstance().getCommands(),u=[],d=t.getInternalMethods().getContext();if(Object.keys(r).forEach((e=>{at.includes(e)||Object.prototype.hasOwnProperty.call(o,e)||Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),e)||s.isValidAndSomeAliasIsNotNew(e,n)||u.push(e)})),l&&(d.commands.length>0||h.length>0||a)&&r._.slice(d.commands.length).forEach((t=>{h.includes(""+t)||u.push(""+t)})),l){const e=(null===(c=t.getDemandedCommands()._)||void 0===c?void 0:c.max)||0,n=d.commands.length+e;n<r._.length&&r._.slice(n).forEach((t=>{t=String(t),d.commands.includes(t)||u.includes(t)||u.push(t)}))}u.length&&e.fail(i("Unknown argument: %s","Unknown arguments: %s",u.length,u.map((t=>t.trim()?t:`"${t}"`)).join(", ")))},unknownCommands:function(r){const n=t.getInternalMethods().getCommandInstance().getCommands(),s=[],o=t.getInternalMethods().getContext();return(o.commands.length>0||n.length>0)&&r._.slice(o.commands.length).forEach((t=>{n.includes(""+t)||s.push(""+t)})),s.length>0&&(e.fail(i("Unknown command: %s","Unknown commands: %s",s.length,s.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(e,r){if(!Object.prototype.hasOwnProperty.call(r,e))return!1;const n=t.parsed.newAliases;return[e,...r[e]].some((t=>!Object.prototype.hasOwnProperty.call(n,t)||!n[e]))},limitedChoices:function(r){const i=t.getOptions(),s={};if(!Object.keys(i.choices).length)return;Object.keys(r).forEach((t=>{-1===at.indexOf(t)&&Object.prototype.hasOwnProperty.call(i.choices,t)&&[].concat(r[t]).forEach((e=>{-1===i.choices[t].indexOf(e)&&void 0!==e&&(s[t]=(s[t]||[]).concat(e))}))}));const o=Object.keys(s);if(!o.length)return;let a=n("Invalid values:");o.forEach((t=>{a+=`\n ${n("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(s[t]),e.stringifiedValues(i.choices[t]))}`})),e.fail(a)}};let o={};function a(t,e){const r=Number(e);return"number"==typeof(e=isNaN(r)?e:r)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!Object.prototype.hasOwnProperty.call(t,e)):e=Object.prototype.hasOwnProperty.call(t,e),e}s.implies=function(e,n){U("<string|object> [array|number|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{s.implies(t,e[t])})):(t.global(e),o[e]||(o[e]=[]),Array.isArray(n)?n.forEach((t=>s.implies(e,t))):($(n,void 0,r),o[e].push(n)))},s.getImplied=function(){return o},s.implications=function(t){const r=[];if(Object.keys(o).forEach((e=>{const n=e;(o[e]||[]).forEach((e=>{let i=n;const s=e;i=a(t,i),e=a(t,e),i&&!e&&r.push(` ${n} -> ${s}`)}))})),r.length){let t=`${n("Implications failed:")}\n`;r.forEach((e=>{t+=e})),e.fail(t)}};let l={};s.conflicts=function(e,r){U("<string|object> [array|string]",[e,r],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{s.conflicts(t,e[t])})):(t.global(e),l[e]||(l[e]=[]),Array.isArray(r)?r.forEach((t=>s.conflicts(e,t))):l[e].push(r))},s.getConflicting=()=>l,s.conflicting=function(i){Object.keys(i).forEach((t=>{l[t]&&l[t].forEach((r=>{r&&void 0!==i[t]&&void 0!==i[r]&&e.fail(n("Arguments %s and %s are mutually exclusive",t,r))}))})),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach((t=>{l[t].forEach((s=>{s&&void 0!==i[r.Parser.camelCase(t)]&&void 0!==i[r.Parser.camelCase(s)]&&e.fail(n("Arguments %s and %s are mutually exclusive",t,s))}))}))},s.recommendCommands=function(t,r){r=r.sort(((t,e)=>e.length-t.length));let i=null,s=1/0;for(let e,n=0;void 0!==(e=r[n]);n++){const r=ot(t,e);r<=3&&r<s&&(s=r,i=e)}i&&e.fail(n("Did you mean %s?",i))},s.reset=function(t){return o=Z(o,(e=>!t[e])),l=Z(l,(e=>!t[e])),s};const c=[];return s.freeze=function(){c.push({implied:o,conflicting:l})},s.unfreeze=function(){const t=c.pop();$(t,void 0,r),({implied:o,conflicting:l}=t)},s}(this,Yt(this,Ut,"f"),Yt(this,Dt,"f")),"f"),qt(this,dt,Yt(this,dt,"f")?Yt(this,dt,"f").reset():function(t,e,r,n){return new K(t,e,r,n)}(Yt(this,Ut,"f"),Yt(this,Wt,"f"),Yt(this,xt,"f"),Yt(this,Dt,"f")),"f"),Yt(this,mt,"f")||qt(this,mt,function(t,e,r,n){return new st(t,e,r,n)}(this,Yt(this,Ut,"f"),Yt(this,dt,"f"),Yt(this,Dt,"f")),"f"),Yt(this,xt,"f").reset(),qt(this,gt,null,"f"),qt(this,At,"","f"),qt(this,bt,null,"f"),qt(this,Ot,!1,"f"),this.parsed=!1,this}[Ee](t,e){return Yt(this,Dt,"f").path.relative(t,e)}[xe](t,e,r,n=0,i=!1){let s=!!r||i;t=t||Yt(this,$t,"f"),Yt(this,Ct,"f").__=Yt(this,Dt,"f").y18n.__,Yt(this,Ct,"f").configuration=this[Qt]();const o=!!Yt(this,Ct,"f").configuration["populate--"],a=Object.assign({},Yt(this,Ct,"f").configuration,{"populate--":!0}),l=Yt(this,Dt,"f").Parser.detailed(t,Object.assign({},Yt(this,Ct,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),c=Object.assign(l.argv,Yt(this,jt,"f"));let h;const u=l.aliases;let d=!1,f=!1;Object.keys(c).forEach((t=>{t===Yt(this,Tt,"f")&&c[t]?d=!0:t===Yt(this,Ht,"f")&&c[t]&&(f=!0)})),c.$0=this.$0,this.parsed=l,0===n&&Yt(this,Ut,"f").clearCachedHelpMessage();try{if(this[te](),e)return this[we](c,o,!!r,!1);if(Yt(this,Tt,"f")){[Yt(this,Tt,"f")].concat(u[Yt(this,Tt,"f")]||[]).filter((t=>t.length>1)).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0)}const a=Yt(this,dt,"f").getCommands(),p=Yt(this,mt,"f").completionKey in c,m=d||p||i;if(c._.length){if(a.length){let t;for(let e,s=n||0;void 0!==c._[s];s++){if(e=String(c._[s]),a.includes(e)&&e!==Yt(this,gt,"f")){const t=Yt(this,dt,"f").runCommand(e,this,l,s+1,i,d||f||i);return this[we](t,o,!!r,!1)}if(!t&&e!==Yt(this,gt,"f")){t=e;break}}!Yt(this,dt,"f").hasDefaultCommand()&&Yt(this,Lt,"f")&&t&&!m&&Yt(this,Wt,"f").recommendCommands(t,a)}Yt(this,gt,"f")&&c._.includes(Yt(this,gt,"f"))&&!p&&(Yt(this,Et,"f")&&Q(!0),this.showCompletionScript(),this.exit(0))}if(Yt(this,dt,"f").hasDefaultCommand()&&!m){const t=Yt(this,dt,"f").runCommand(null,this,l,0,i,d||f||i);return this[we](t,o,!!r,!1)}if(p){Yt(this,Et,"f")&&Q(!0);const e=(t=[].concat(t)).slice(t.indexOf(`--${Yt(this,mt,"f").completionKey}`)+1);return Yt(this,mt,"f").getCompletion(e,((t,e)=>{if(t)throw new I(t.message);(e||[]).forEach((t=>{Yt(this,It,"f").log(t)})),this.exit(0)})),this[we](c,!o,!!r,!1)}if(Yt(this,Ot,"f")||(d?(Yt(this,Et,"f")&&Q(!0),s=!0,this.showHelp("log"),this.exit(0)):f&&(Yt(this,Et,"f")&&Q(!0),s=!0,Yt(this,Ut,"f").showVersion("log"),this.exit(0))),!s&&Yt(this,Ct,"f").skipValidation.length>0&&(s=Object.keys(c).some((t=>Yt(this,Ct,"f").skipValidation.indexOf(t)>=0&&!0===c[t]))),!s){if(l.error)throw new I(l.error.message);if(!p){const t=this[Se](u,{},l.error);r||(h=Y(c,this,Yt(this,xt,"f").getMiddleware(),!0)),h=this[ue](t,null!=h?h:c),F(h)&&!r&&(h=h.then((()=>Y(c,this,Yt(this,xt,"f").getMiddleware(),!1))))}}}catch(t){if(!(t instanceof I))throw t;Yt(this,Ut,"f").fail(t.message,t)}return this[we](null!=h?h:c,o,!!r,!0)}[Se](t,e,r,n){const i={...this.getDemandedOptions()};return s=>{if(r)throw new I(r.message);Yt(this,Wt,"f").nonOptionCount(s),Yt(this,Wt,"f").requiredArguments(s,i);let o=!1;Yt(this,Bt,"f")&&(o=Yt(this,Wt,"f").unknownCommands(s)),Yt(this,Ft,"f")&&!o?Yt(this,Wt,"f").unknownArguments(s,t,e,!!n):Yt(this,Gt,"f")&&Yt(this,Wt,"f").unknownArguments(s,t,{},!1,!1),Yt(this,Wt,"f").limitedChoices(s),Yt(this,Wt,"f").implications(s),Yt(this,Wt,"f").conflicting(s)}}[Oe](){qt(this,Ot,!0,"f")}[Te](t){if("string"==typeof t)Yt(this,Ct,"f").key[t]=!0;else for(const e of t)Yt(this,Ct,"f").key[e]=!0}}const Ae=(Ce=N,(t=[],e=Ce.process.cwd(),r)=>{const n=new Ie(t,e,r,Ce);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:!0}),n.help(),n.version(),n});var Ce;const Re=Ae;function ke(t,e){const r=t.startsWith(".")?(0,u.join)(e,t):t;return import(r)}function Me(t,e){const{homepage:r,site:n=r,repository:i}=e,s=n&&n!==i,o=t.getInternalMethods(),a=(l=o.getCommandInstance().handlers,Object.keys(l).some((t=>t&&"$0"!==t)));var l;return 0===o.getUsageInstance().getUsage().length&&(a?t.usage("Usage: $0 <command>"):t.usage("Usage: $0")),a&&t.demandCommand(1,"Won't work without a command"),s&&t.epilogue(`Website: ${n}`),i&&t.epilogue(`Repository: ${i}`),t}var je=n(922);const Pe=(t=0)=>e=>`\x1b[${e+t}m`,Ne=(t=0)=>e=>`\x1b[${38+t};5;${e}m`,$e=(t=0)=>(e,r,n)=>`\x1b[${38+t};2;${e};${r};${n}m`;const Le=function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",e.color.ansi=Pe(),e.color.ansi256=Ne(),e.color.ansi16m=$e(),e.bgColor.ansi=Pe(10),e.bgColor.ansi256=Ne(10),e.bgColor.ansi16m=$e(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,e,r)=>t===e&&e===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{const e=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!e)return[0,0,0];let{colorString:r}=e.groups;3===r.length&&(r=[...r].map((t=>t+t)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return t-8+90;let e,r,n;if(t>=232)e=(10*(t-232)+8)/255,r=e,n=e;else{const i=(t-=16)%36;e=Math.floor(t/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(e,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(e));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}(),De=Le,Fe=t(import.meta.url)("node:process"),Be=t(import.meta.url)("node:os"),Ge=t(import.meta.url)("node:tty");function Ue(t,e=Fe.argv){const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:He}=Fe;let We;function qe(t,{streamIsTTY:e,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in He)return"true"===He.FORCE_COLOR?1:"false"===He.FORCE_COLOR?0:0===He.FORCE_COLOR.length?1:Math.min(Number.parseInt(He.FORCE_COLOR,10),3)}();void 0!==n&&(We=n);const i=r?We:n;if(0===i)return 0;if(r){if(Ue("color=16m")||Ue("color=full")||Ue("color=truecolor"))return 3;if(Ue("color=256"))return 2}if(t&&!e&&void 0===i)return 0;const s=i||0;if("dumb"===He.TERM)return s;if("win32"===Fe.platform){const t=Be.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in He)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((t=>t in He))||"codeship"===He.CI_NAME?1:s;if("TEAMCITY_VERSION"in He)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(He.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in He&&"AGENT_NAME"in He)return 1;if("truecolor"===He.COLORTERM)return 3;if("TERM_PROGRAM"in He){const t=Number.parseInt((He.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(He.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(He.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(He.TERM)||"COLORTERM"in He?1:s}function Ye(t,e={}){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(qe(t,{streamIsTTY:t&&t.isTTY,...e}))}Ue("no-color")||Ue("no-colors")||Ue("color=false")||Ue("color=never")?We=0:(Ue("color")||Ue("colors")||Ue("color=true")||Ue("color=always"))&&(We=1);const Ve={stdout:Ye({isTTY:Ge.isatty(1)}),stderr:Ye({isTTY:Ge.isatty(2)})};function ze(t,e,r){let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.slice(s),o}const{stdout:Ke,stderr:Je}=Ve,Xe=Symbol("GENERATOR"),Ze=Symbol("STYLER"),Qe=Symbol("IS_EMPTY"),tr=["ansi","ansi","ansi256","ansi16m"],er=Object.create(null);const rr=t=>{const e=(...t)=>t.join(" ");return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=Ke?Ke.level:0;t.level=void 0===e.level?r:e.level})(e,t),Object.setPrototypeOf(e,nr.prototype),e};function nr(t){return rr(t)}Object.setPrototypeOf(nr.prototype,Function.prototype);for(const[t,e]of Object.entries(De))er[t]={get(){const r=lr(this,ar(e.open,e.close,this[Ze]),this[Qe]);return Object.defineProperty(this,t,{value:r}),r}};er.visible={get(){const t=lr(this,this[Ze],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const ir=(t,e,r,...n)=>"rgb"===t?"ansi16m"===e?De[r].ansi16m(...n):"ansi256"===e?De[r].ansi256(De.rgbToAnsi256(...n)):De[r].ansi(De.rgbToAnsi(...n)):"hex"===t?ir("rgb",e,r,...De.hexToRgb(...n)):De[r][t](...n),sr=["rgb","hex","ansi256"];for(const t of sr){er[t]={get(){const{level:e}=this;return function(...r){const n=ar(ir(t,tr[e],"color",...r),De.color.close,this[Ze]);return lr(this,n,this[Qe])}}};er["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const n=ar(ir(t,tr[e],"bgColor",...r),De.bgColor.close,this[Ze]);return lr(this,n,this[Qe])}}}}const or=Object.defineProperties((()=>{}),{...er,level:{enumerable:!0,get(){return this[Xe].level},set(t){this[Xe].level=t}}}),ar=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},lr=(t,e,r)=>{const n=(...t)=>cr(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,or),n[Xe]=t,n[Ze]=e,n[Qe]=r,n},cr=(t,e)=>{if(t.level<=0||!e)return t[Qe]?"":e;let r=t[Ze];if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(e.includes("\x1b"))for(;void 0!==r;)e=ze(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=function(t,e,r,n){let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.slice(i),s}(e,i,n,s)),n+e+i};Object.defineProperties(nr.prototype,er);const hr=nr(),ur=(nr({level:Je?Je.level:0}),hr),{cyan:dr,red:fr,green:pr}=ur;var mr=n(5654);function gr(){return(new je.Text).onDone((()=>mr)).output(".editorconfig").logger("Create/Overwrite",dr(".editorconfig")).catch(console.warn)}var yr=n(2037);const br=(t=0)=>e=>`\x1b[${e+t}m`,vr=(t=0)=>e=>`\x1b[${38+t};5;${e}m`,wr=(t=0)=>(e,r,n)=>`\x1b[${38+t};2;${e};${r};${n}m`;const Er=function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",e.color.ansi=br(),e.color.ansi256=vr(),e.color.ansi16m=wr(),e.bgColor.ansi=br(10),e.bgColor.ansi256=vr(10),e.bgColor.ansi16m=wr(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,e,r)=>t===e&&e===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{const e=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!e)return[0,0,0];let{colorString:r}=e.groups;3===r.length&&(r=[...r].map((t=>t+t)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return t-8+90;let e,r,n;if(t>=232)e=(10*(t-232)+8)/255,r=e,n=e;else{const i=(t-=16)%36;e=Math.floor(t/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(e,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(e));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}(),_r=Er;function xr(t,e=Fe.argv){const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:Sr}=Fe;let Or;function Tr(t,{streamIsTTY:e,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in Sr)return"true"===Sr.FORCE_COLOR?1:"false"===Sr.FORCE_COLOR?0:0===Sr.FORCE_COLOR.length?1:Math.min(Number.parseInt(Sr.FORCE_COLOR,10),3)}();void 0!==n&&(Or=n);const i=r?Or:n;if(0===i)return 0;if(r){if(xr("color=16m")||xr("color=full")||xr("color=truecolor"))return 3;if(xr("color=256"))return 2}if(t&&!e&&void 0===i)return 0;const s=i||0;if("dumb"===Sr.TERM)return s;if("win32"===Fe.platform){const t=Be.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in Sr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((t=>t in Sr))||"codeship"===Sr.CI_NAME?1:s;if("TEAMCITY_VERSION"in Sr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Sr.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Sr&&"AGENT_NAME"in Sr)return 1;if("truecolor"===Sr.COLORTERM)return 3;if("TERM_PROGRAM"in Sr){const t=Number.parseInt((Sr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Sr.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Sr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Sr.TERM)||"COLORTERM"in Sr?1:s}function Ir(t,e={}){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(Tr(t,{streamIsTTY:t&&t.isTTY,...e}))}xr("no-color")||xr("no-colors")||xr("color=false")||xr("color=never")?Or=0:(xr("color")||xr("colors")||xr("color=true")||xr("color=always"))&&(Or=1);const Ar={stdout:Ir({isTTY:Ge.isatty(1)}),stderr:Ir({isTTY:Ge.isatty(2)})};function Cr(t,e,r){let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.slice(s),o}const{stdout:Rr,stderr:kr}=Ar,Mr=Symbol("GENERATOR"),jr=Symbol("STYLER"),Pr=Symbol("IS_EMPTY"),Nr=["ansi","ansi","ansi256","ansi16m"],$r=Object.create(null);const Lr=t=>{const e=(...t)=>t.join(" ");return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=Rr?Rr.level:0;t.level=void 0===e.level?r:e.level})(e,t),Object.setPrototypeOf(e,Dr.prototype),e};function Dr(t){return Lr(t)}Object.setPrototypeOf(Dr.prototype,Function.prototype);for(const[t,e]of Object.entries(_r))$r[t]={get(){const r=Hr(this,Ur(e.open,e.close,this[jr]),this[Pr]);return Object.defineProperty(this,t,{value:r}),r}};$r.visible={get(){const t=Hr(this,this[jr],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const Fr=(t,e,r,...n)=>"rgb"===t?"ansi16m"===e?_r[r].ansi16m(...n):"ansi256"===e?_r[r].ansi256(_r.rgbToAnsi256(...n)):_r[r].ansi(_r.rgbToAnsi(...n)):"hex"===t?Fr("rgb",e,r,..._r.hexToRgb(...n)):_r[r][t](...n),Br=["rgb","hex","ansi256"];for(const t of Br){$r[t]={get(){const{level:e}=this;return function(...r){const n=Ur(Fr(t,Nr[e],"color",...r),_r.color.close,this[jr]);return Hr(this,n,this[Pr])}}};$r["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const n=Ur(Fr(t,Nr[e],"bgColor",...r),_r.bgColor.close,this[jr]);return Hr(this,n,this[Pr])}}}}const Gr=Object.defineProperties((()=>{}),{...$r,level:{enumerable:!0,get(){return this[Mr].level},set(t){this[Mr].level=t}}}),Ur=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Hr=(t,e,r)=>{const n=(...t)=>Wr(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,Gr),n[Mr]=t,n[jr]=e,n[Pr]=r,n},Wr=(t,e)=>{if(t.level<=0||!e)return t[Pr]?"":e;let r=t[jr];if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(e.includes("\x1b"))for(;void 0!==r;)e=Cr(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=function(t,e,r,n){let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.slice(i),s}(e,i,n,s)),n+e+i};Object.defineProperties(Dr.prototype,$r);const qr=Dr(),Yr=(Dr({level:kr?kr.level:0}),qr);var Vr=n(3937),zr=n(260);const Kr=Vr((()=>{zr((()=>{Fe.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let Jr=!1;const Xr={show:(t=Fe.stderr)=>{t.isTTY&&(Jr=!1,t.write("\x1b[?25h"))},hide:(t=Fe.stderr)=>{t.isTTY&&(Kr(),Jr=!0,t.write("\x1b[?25l"))},toggle:(t,e)=>{void 0!==t&&(Jr=t),Jr?Xr.show(e):Xr.hide(e)}},Zr=Xr;var Qr=n(3372);function tn(){return"win32"!==process.platform?"linux"!==process.env.TERM:Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||"{cmd::Cmder}"===process.env.ConEmuTask||"vscode"===process.env.TERM_PROGRAM||"xterm-256color"===process.env.TERM||"alacritty"===process.env.TERM}const en={info:Yr.blue("\u2139"),success:Yr.green("\u2714"),warning:Yr.yellow("\u26a0"),error:Yr.red("\u2716")},rn={info:Yr.blue("i"),success:Yr.green("\u221a"),warning:Yr.yellow("\u203c"),error:Yr.red("\xd7")},nn=tn()?en:rn;function sn(t){if("string"!=typeof t)throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(function({onlyFirst:t=!1}={}){const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}(),"")}var on=n(8975);const an=t(import.meta.url)("node:readline");var ln=n(9050);class cn{#t=0;#e=new ln.BufferListStream;#r;#n;constructor(){this.#e.pipe(Fe.stdout);const t=this;this.#r=function(e,r,...n){const{stdin:i}=Fe;if(t.#t>0||i.emit===t.#r){if("keypress"===e)return;"data"===e&&r.includes(3)&&Fe.emit("SIGINT"),Reflect.apply(t.#r,this,[e,r,...n])}else Reflect.apply(Fe.stdin.emit,this,[e,r,...n])}}start(){this.#t++,1===this.#t&&this._realStart()}stop(){if(this.#t<=0)throw new Error("`stop` called more times than `start`");this.#t--,0===this.#t&&this._realStop()}_realStart(){"win32"!==Fe.platform&&(this.#n=an.createInterface({input:Fe.stdin,output:this.#e}),this.#n.on("SIGINT",(()=>{0===Fe.listenerCount("SIGINT")?Fe.emit("SIGINT"):(this.#n.close(),Fe.kill(Fe.pid,"SIGINT"))})))}_realStop(){"win32"!==Fe.platform&&(this.#n.close(),this.#n=void 0)}}let hn;class un{#i=0;#s=!1;#o=0;#a=0;#l;#c;#h;#u;#d;#f;#p;#m;#g;#y;color;constructor(t){hn||(hn=new cn),"string"==typeof t&&(t={text:t}),this.#l={color:"cyan",stream:Fe.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#l.color,this.spinner=this.#l.spinner,this.#d=this.#l.interval,this.#h=this.#l.stream,this.#f="boolean"==typeof this.#l.isEnabled?this.#l.isEnabled:function({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#h}),this.#p="boolean"==typeof this.#l.isSilent&&this.#l.isSilent,this.text=this.#l.text,this.prefixText=this.#l.prefixText,this.indent=this.#l.indent,"test"===Fe.env.NODE_ENV&&(this._stream=this.#h,this._isEnabled=this.#f,Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(t){this.#i=t}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#a}}),Object.defineProperty(this,"_lineCount",{get(){return this.#o}}))}get indent(){return this.#m}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#m=t,this.updateLineCount()}get interval(){return this.#d||this.#c.interval||100}get spinner(){return this.#c}set spinner(t){if(this.#a=0,this.#d=void 0,"object"==typeof t){if(void 0===t.frames)throw new Error("The given spinner must have a `frames` property");this.#c=t}else if(tn())if(void 0===t)this.#c=Qr.dots;else{if("default"===t||!Qr[t])throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#c=Qr[t]}else this.#c=Qr.line}get text(){return this.#g}set text(t){this.#g=t||"",this.updateLineCount()}get prefixText(){return this.#y}set prefixText(t){this.#y=t||"",this.updateLineCount()}get isSpinning(){return void 0!==this.#u}getFullPrefixText(t=this.#y,e=" "){return"string"==typeof t&&""!==t?t+e:"function"==typeof t?t()+e:""}updateLineCount(){const t=this.#h.columns||80,e=this.getFullPrefixText(this.#y,"-");this.#o=0;for(const r of sn(" ".repeat(this.#m)+e+"--"+this.#g).split("\n"))this.#o+=Math.max(1,Math.ceil(on(r)/t))}get isEnabled(){return this.#f&&!this.#p}set isEnabled(t){if("boolean"!=typeof t)throw new TypeError("The `isEnabled` option must be a boolean");this.#f=t}get isSilent(){return this.#p}set isSilent(t){if("boolean"!=typeof t)throw new TypeError("The `isSilent` option must be a boolean");this.#p=t}frame(){const{frames:t}=this.#c;let e=t[this.#a];this.color&&(e=Yr[this.color](e)),this.#a=++this.#a%t.length;return("string"==typeof this.#y&&""!==this.#y?this.#y+" ":"")+e+("string"==typeof this.text?" "+this.text:"")}clear(){if(!this.#f||!this.#h.isTTY)return this;this.#h.cursorTo(0);for(let t=0;t<this.#i;t++)t>0&&this.#h.moveCursor(0,-1),this.#h.clearLine(1);return(this.#m||this.lastIndent!==this.#m)&&this.#h.cursorTo(this.#m),this.lastIndent=this.#m,this.#i=0,this}render(){return this.#p||(this.clear(),this.#h.write(this.frame()),this.#i=this.#o),this}start(t){return t&&(this.text=t),this.#p?this:this.#f?(this.isSpinning||(this.#l.hideCursor&&Zr.hide(this.#h),this.#l.discardStdin&&Fe.stdin.isTTY&&(this.#s=!0,hn.start()),this.render(),this.#u=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#h.write(`- ${this.text}\n`),this)}stop(){return this.#f?(clearInterval(this.#u),this.#u=void 0,this.#a=0,this.clear(),this.#l.hideCursor&&Zr.show(this.#h),this.#l.discardStdin&&Fe.stdin.isTTY&&this.#s&&(hn.stop(),this.#s=!1),this):this}succeed(t){return this.stopAndPersist({symbol:nn.success,text:t})}fail(t){return this.stopAndPersist({symbol:nn.error,text:t})}warn(t){return this.stopAndPersist({symbol:nn.warning,text:t})}info(t){return this.stopAndPersist({symbol:nn.info,text:t})}stopAndPersist(t={}){if(this.#p)return this;const e=t.prefixText||this.#y,r=t.text||this.text,n="string"==typeof r?" "+r:"";return this.stop(),this.#h.write(`${this.getFullPrefixText(e," ")}${t.symbol||" "}${n}\n`),this}}function dn(t){return new un(t)}var fn=n(2081),pn=n(8794);const mn=t(import.meta.url)("node:buffer"),gn=t(import.meta.url)("node:path"),yn=t(import.meta.url)("node:child_process");var bn=n(8995);const vn=t(import.meta.url)("node:url");function wn(t={}){const{env:e=process.env,platform:r=process.platform}=t;return"win32"!==r?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"}function En({env:t=Fe.env,...e}={}){const r=wn({env:t={...t}});return e.path=t[r],t[r]=function(t={}){const{cwd:e=Fe.cwd(),path:r=Fe.env[wn()],execPath:n=Fe.execPath}=t;let i;const s=e instanceof URL?vn.fileURLToPath(e):e;let o=gn.resolve(s);const a=[];for(;i!==o;)a.push(gn.join(o,"node_modules/.bin")),i=o,o=gn.resolve(o,"..");return a.push(gn.resolve(s,n,"..")),[...a,r].join(gn.delimiter)}(e),t}const _n=(t,e,r,n)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const i=Object.getOwnPropertyDescriptor(t,r),s=Object.getOwnPropertyDescriptor(e,r);!xn(i,s)&&n||Object.defineProperty(t,r,s)},xn=function(t,e){return void 0===t||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},Sn=(t,e)=>`/* Wrapped ${t}*/\n${e}`,On=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Tn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function In(t,e,{ignoreNonConfigurable:r=!1}={}){const{name:n}=t;for(const n of Reflect.ownKeys(e))_n(t,e,n,r);return((t,e)=>{const r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)})(t,e),((t,e,r)=>{const n=""===r?"":`with ${r.trim()}() `,i=Sn.bind(null,n,e.toString());Object.defineProperty(i,"name",Tn),Object.defineProperty(t,"toString",{...On,value:i})})(t,e,n),t}const An=new WeakMap,Cn=(t,e={})=>{if("function"!=typeof t)throw new TypeError("Expected a function");let r,n=0;const i=t.displayName||t.name||"<anonymous>",s=function(...o){if(An.set(s,++n),1===n)r=t.apply(this,o),t=null;else if(!0===e.throw)throw new Error(`Function \`${i}\` can only be called once`);return r};return In(s,t),An.set(s,n),s};Cn.callCount=t=>{if(!An.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return An.get(t)};const Rn=Cn,kn=function(t,e){return{name:`SIGRT${e+1}`,number:Mn+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Mn=34,jn=64,Pn=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],Nn=function(){const t=function(){const t=jn-Mn+1;return Array.from({length:t},kn)}();return[...Pn,...t].map($n)},$n=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){const{signals:{[t]:o}}=yr.constants,a=void 0!==o;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}},Ln=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},Dn=Nn().reduce(Ln,{}),Fn=function(t,e){const r=Bn(t,e);if(void 0===r)return{};const{name:n,description:i,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:l}}},Bn=function(t,e){const r=e.find((({name:e})=>yr.constants.signals[e]===t));return void 0!==r?r:e.find((e=>e.number===t))},Gn=(function(){const t=Nn(),e=jn+1,r=Array.from({length:e},((e,r)=>Fn(r,t)));Object.assign({},...r)}(),({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:h,parsed:{options:{timeout:u}}})=>{s=null===s?void 0:s;const d=void 0===(i=null===i?void 0:i)?void 0:Dn[i].description,f=(({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:l,timeout:u,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:s,isCanceled:c}),p=`Command ${f}: ${o}`,m="[object Error]"===Object.prototype.toString.call(n),g=m?`${p}\n${n.message}`:p,y=[g,e,t].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=y):n=new Error(y),n.shortMessage=g,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(l),n.isCanceled=c,n.killed=h&&!l,n}),Un=["stdin","stdout","stderr"],Hn=t=>{if(!t)return;const{stdio:e}=t;if(void 0===e)return Un.map((e=>t[e]));if((t=>Un.some((e=>void 0!==t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Un.map((t=>`\`${t}\``)).join(", ")}`);if("string"==typeof e)return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const r=Math.max(e.length,Un.length);return Array.from({length:r},((t,r)=>e[r]))},Wn=(t,e="SIGTERM",r={})=>{const n=t(e);return qn(t,e,r,n),n},qn=(t,e,r,n)=>{if(!Yn(e,r,n))return;const i=zn(r),s=setTimeout((()=>{t("SIGKILL")}),i);s.unref&&s.unref()},Yn=(t,{forceKillAfterTimeout:e},r)=>Vn(t)&&!1!==e&&r,Vn=t=>t===Be.constants.signals.SIGTERM||"string"==typeof t&&"SIGTERM"===t.toUpperCase(),zn=({forceKillAfterTimeout:t=!0})=>{if(!0===t)return 5e3;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Kn=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Jn=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(0===e||void 0===e)return n;let i;const s=new Promise(((n,s)=>{i=setTimeout((()=>{((t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))})(t,r,s)}),e)})),o=n.finally((()=>{clearTimeout(i)}));return Promise.race([s,o])};function Xn(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}var Zn=n(31),Qn=n(873);const ti=async(t,e)=>{if(t){t.destroy();try{return await e}catch(t){return t.bufferedData}}},ei=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(t&&r)return e?Zn(t,{encoding:e,maxBuffer:n}):Zn.buffer(t,{maxBuffer:n})},ri=(async()=>{})().constructor.prototype,ni=["then","catch","finally"].map((t=>[t,Reflect.getOwnPropertyDescriptor(ri,t)])),ii=(t,e)=>{for(const[r,n]of ni){const i="function"==typeof e?(...t)=>Reflect.apply(n.value,e(),t):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},si=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],oi=/^[\w.-]+$/,ai=/"/g,li=(t,e)=>si(t,e).map((t=>(t=>"string"!=typeof t||oi.test(t)?t:`"${t.replace(ai,'\\"')}"`)(t))).join(" "),ci=(t,e,r={})=>{const n=bn._parse(t,e,r);return t=n.command,e=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||Fe.cwd(),execPath:Fe.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{const s=e?{...Fe.env,...t}:t;return r?En({env:s,cwd:n,execPath:i}):s})(r),r.stdio=Hn(r),"win32"===Fe.platform&&"cmd"===gn.basename(t,".exe")&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},hi=(t,e,r)=>"string"==typeof e||mn.Buffer.isBuffer(e)?t.stripFinalNewline?function(t){const e="string"==typeof t?"\n":"\n".charCodeAt(),r="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,-1)),t[t.length-1]===r&&(t=t.slice(0,-1)),t}(e):e:void 0===r?void 0:"";function ui(t,e,r){const n=ci(t,e,r),i=((t,e)=>si(t,e).join(" "))(t,e),s=li(t,e);let o;(({timeout:t})=>{if(void 0!==t&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)})(n.options);try{o=yn.spawn(n.file,n.args,n.options)}catch(t){const e=new yn.ChildProcess,r=Promise.reject(Gn({error:t,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return ii(e,r)}const a=(t=>new Promise(((e,r)=>{t.on("exit",((t,r)=>{e({exitCode:t,signal:r})})),t.on("error",(t=>{r(t)})),t.stdin&&t.stdin.on("error",(t=>{r(t)}))})))(o),l=Jn(o,n.options,a),c=(async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;const i=zr((()=>{t.kill()}));return n.finally((()=>{i()}))})(o,n.options,l),h={isCanceled:!1};o.kill=Wn.bind(null,o.kill.bind(o)),o.cancel=Kn.bind(null,o,h);const u=Rn((async()=>{const[{error:t,exitCode:e,signal:r,timedOut:a},l,u,d]=await(async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{const a=ei(t,{encoding:n,buffer:i,maxBuffer:s}),l=ei(e,{encoding:n,buffer:i,maxBuffer:s}),c=ei(r,{encoding:n,buffer:i,maxBuffer:2*s});try{return await Promise.all([o,a,l,c])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ti(t,a),ti(e,l),ti(r,c)])}})(o,n.options,c),f=hi(n.options,l),p=hi(n.options,u),m=hi(n.options,d);if(t||0!==e||null!==r){const l=Gn({error:t,exitCode:e,signal:r,stdout:f,stderr:p,all:m,command:i,escapedCommand:s,parsed:n,timedOut:a,isCanceled:h.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:o.killed});if(!n.options.reject)return l;throw l}return{command:i,escapedCommand:s,exitCode:0,stdout:f,stderr:p,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((t,e)=>{void 0!==e&&void 0!==t.stdin&&(Xn(e)?e.pipe(t.stdin):t.stdin.end(e))})(o,n.options.input),o.all=((t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;const r=Qn();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r})(o,n.options),ii(o,u)}var di=n(2278);function fi(t){return pn(t).timeout(5e3).send().then((t=>301===t.statusCode?fi(t.headers.location):t.text())).then((t=>{const e=t.trim();if(e)return e;throw new Error("template download fail")}))}function pi(t){return t?t.trim():void 0}async function mi(t){if(t)return t;const e=function(){try{return{name:(0,fn.execSync)("git config user.name").toString().trim(),email:(0,fn.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return e.name?di(e):"Unknown"}function gi(){try{return JSON.parse((0,e.readFileSync)((0,u.join)(process.cwd(),"package.json")))}catch{return{}}}var yi=n(1112);const bi=/# Created by https?:\/\/(www\.)?(toptal\.com\/developers\/gitignore|gitignore\.io)\/api\/\S+[\S\s]+# End of https?:\/\/(www\.)?(toptal\.com\/developers\/gitignore|gitignore\.io)\/api\/\S+/,vi={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function wi(){await(new je.Text).onDone((()=>yi)).output(".gitattributes").logger("Create/Overwrite",dr(".gitattributes"));const t=dn({text:"Downloading template from `gitignore.io`"}).start(),e=`Create/Overwrite ${dr(".gitignore")}`;return(new je.Text).source(".gitignore").onFail().onDone(((t="")=>fi(`https://gitignore.io/api/node,${function(t){try{if(bi.test(t))return[...new Set([...t.match(/gitignore\.io\/api\/(\S+)/)[1].split(",").filter((t=>"node"!==t)),vi[(0,yr.type)()]])].sort();throw new Error("fail")}catch{return vi[(0,yr.type)()]}}(t)}`).then((e=>{const[r]=t.match(bi)||[];return`${(r?t.replace(bi,e):`${t.trim()}\n\n${e}`).replace(/(www\.)?toptal\.com\/developers\/gitignore/g,"gitignore.io").trim().split(/\n\n\+/g).filter((t=>t.trim())).join("\n\n")}\n`})).catch((()=>t||"node_modules\n")))).output().then((()=>{t.stopAndPersist({symbol:pr("\u221a"),text:e})})).catch((r=>{t.stopAndPersist({symbol:fr("\xd7"),text:`${e} - ${r.message}`})}))}var Ei=n(7408),_i=n(4807);async function xi(){const{license:t,author:e=""}=gi(),r="MIT"===t;if(r||"Unlicense"===t){const t=await async function(t){return(await mi(t)).name||"Unknown"}(e);return(new je.Text).onDone((()=>r?Ei.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",t):_i)).output("LICENSE").logger("Create/Overwrite",dr("LICENSE")).catch(console.warn)}}var Si=n(9714),Oi=n(1482);const Ti=(0,t(import.meta.url)("node:util").promisify)(yn.execFile);const Ii={spawn:!0},Ai="en-US";async function Ci(t,e){return(await async function(t,e){const r=await Ti(t,e,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(t,e)).stdout}function Ri(t=process.env){return t.LC_ALL||t.LC_MESSAGES||t.LANG||t.LANGUAGE}function ki(t){const e={};for(const r of t.split("\n")){const[t,n]=r.split("=");e[t]=n.replace(/^"|"$/g,"")}return Ri(e)}function Mi(t){return t&&t.replace(/[.:].*/,"")}async function ji(){return Ci("locale",["-a"])}function Pi(t,e=""){return e.includes(t)?t:Ai}function Ni(t){return t.replace(/_/,"-")}const $i=new Map;async function Li(t=Ii){if($i.has(t.spawn))return $i.get(t.spawn);let e;try{const r=Ri();e=r||!1===t.spawn?Mi(r):"win32"===process.platform?await async function(){const t=await Ci("wmic",["os","get","locale"]),e=Number.parseInt(t.replace("Locale",""),16);return Oi.from(e)}():"darwin"===process.platform?await async function(){const t=await Promise.all([Ci("defaults",["read","-globalDomain","AppleLocale"]),ji()]);return Pi(t[0],t[1])}():await async function(){return Mi(ki(await Ci("locale")))}()}catch{}const r=Ni(e||Ai);return $i.set(t.spawn,r),r}const Di="^4.2.0",Fi="^8.13.0",Bi="^13.2.0",Gi="^0.4.6",Ui="^2.6.2",Hi="^14.6.1",Wi="^4.6.3",qi="^0.6.2",Yi="^1.21.0",Vi="^16.14.25",zi="~16.14.0",Ki="~16.14.0",Ji="^0.14.0",Xi="~3.0.24",Zi="~3.2.33",Qi="^0.6.7",ts="^0.6.17",es="^0.5.4",rs="^0.7.1",ns="^14.17.0 || >=16.13.0",is="package.json";function ss(t){return(new je.Json).config({pretty:!0}).source(is).onFail().onDone(((e={})=>Si.all([{engines:{node:ns},publishConfig:t.private||e.private?void 0:{access:"public",registry:"https://registry.npmjs.org/"}},e,t]))).onDone((t=>(!0===t.private&&async function(){"zh-CN"===await Li()&&(new je.Text).source(".npmrc").onFail().onDone(((t="")=>t.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(t)?t:`registry = https://mirrors.tencent.com/npm/\r${t}`)).output().logger("Set registry to China mirror in",dr(".npmrc")).catch(console.warn)}(),t))).output().logger("Add project info to",dr(is)).catch(console.warn)}async function os(){const{name:t,description:e}=gi();(new je.Text).source("README.md").onFail().onDone((r=>r||[`# ${t}`,e?`${e}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",dr("README.md")).catch(console.warn)}var as=n(4264),ls=n(7918),cs=n(9035);function hs({vue:t,react:e}){const r=e&&t||!e&&!t?"base":e?"react":"vue";return{eslintConfig:{extends:`@nice-move/eslint-config-${r}`},devDependencies:{[`@nice-move/eslint-config-${r}`]:Qi,eslint:Fi}}}const us="Add/Reset project dependencies";function ds(){const{dependencies:t={},devDependencies:e={}}=gi();return{instructions:!1,optionsPerPage:20,message:us,name:"Dependencies",type:t=>!1===t?null:"multiselect",choices:["react","vue","typescript","commitlint","eslint","stylelint","prettier","garou","rustywind","ava","playwright","bring-it","tailwindcss"].map((r=>({title:r,value:r,selected:r in t||r in e}))),format:t=>{if(t.length>0)return e=>function(t,e={}){return(new je.Json).config({pretty:!0}).source("package.json").onFail().onDone((async(r={})=>{const{devDependencies:n={},dependencies:i={}}=r,{ava:s="ava"in n,commitlint:o="commitlint"in n,eslint:a="eslint"in n,garou:l="garou"in n,prettier:c="prettier"in n,react:h="react"in i,stylelint:u="stylelint"in n,typescript:d="typescript"in n,vue:f="vue"in i,tailwindcss:p="tailwindcss"in i||"tailwindcss"in n,rustywind:m="rustywind"in n,playwright:g="@playwright/test"in n,"bring-it":y="@bring-it/cli"in n}=e,b=a||u||c||l,v=[b?"npm run lint:staged":void 0,s?"npm test":void 0].filter(Boolean);return v.length>0&&await(new je.Text).onDone((()=>["#!/bin/sh","",...v,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new je.Text).onDone((()=>["#!/bin/sh","","npx --no-install nice-move lint commit",""].join("\n"))).output(".githooks/commit-msg"),d&&await(new je.Json).config({pretty:!0}).onDone((()=>({compilerOptions:{jsx:"preserve",strict:!0,target:"es2022"}}))).output("tsconfig.json"),Si.all([r,t&&(b||s||o)?{scripts:{prepare:"git config core.hooksPath .githooks"}}:void 0,l?{devDependencies:{garou:Gi}}:void 0,d?{devDependencies:{typescript:Wi},scripts:{"lint:type":"tsc --noEmit"}}:void 0,b||o?{devDependencies:{"@nice-move/cli":rs}}:void 0,b?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,s?{devDependencies:{ava:Di,...a?{"eslint-plugin-ava":Bi}:void 0},scripts:{prepublishOnly:r.private?void 0:v.join(" && ")||void 0,test:"ava --fail-fast"}}:void 0,a?hs({react:h,vue:f}):void 0,u?{devDependencies:{"@nice-move/stylelint-config":ts,stylelint:Hi},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,c?{devDependencies:{"@nice-move/prettier-config":es,prettier:Ui},prettier:"@nice-move/prettier-config"}:void 0,h?{dependencies:{react:zi,"react-dom":Ki},devDependencies:{"@types/react":Vi}}:void 0,f?{dependencies:{vue:Zi}}:void 0,p?{dependencies:{tailwindcss:Xi}}:void 0,m?{devDependencies:{tailwindcss:Ji}}:void 0,g?{devDependencies:{"@playwright/test":Yi},scripts:{"test:e2e":"playwright test"}}:void 0,y?{devDependencies:{"@bring-it/cli":qi}}:void 0].filter(Boolean))})).output().logger(us).catch(console.warn)}(e,Object.fromEntries(t.map((t=>[t,!0]))))}}}const fs="Initialize as git repository";function ps(){return ui("git",["init"]).then((t=>(console.log(pr("\u221a"),fs),t)),(t=>{throw console.log(fr("\xd7"),fs),t}))}function ms({gitSupported:t,isGit:e}){return{message:fs,name:"GitInit",initial:!0,type:r=>!1===r||!t||e?null:"confirm",format(t){if(!0===t)return ps}}}var gs=n(5888);const ys=`Run ${dr("npm")} / ${dr("yarn")} install command`;var bs=n(5528);var vs=n(9189);const ws=/(?:(?<=^v?|\sv?)(?:(?:0|[1-9]\d{0,9})\.){2}(?:0|[1-9]\d{0,9})(?:-(?:0|[1-9]\d*?|[\da-z-]*?[a-z-][\da-z-]*?){0,100}(?:\.(?:0|[1-9]\d*?|[\da-z-]*?[a-z-][\da-z-]*?))*?){0,100}(?:\+[\da-z-]+?(?:\.[\da-z-]+?)*?){0,100}\b){1,200}/gi;async function Es({cwd:t,pkg:{author:e,description:r,license:n,name:i,private:s,version:o,workspaces:a}={}}){return[{format:pi,initial:(0,u.parse)(t).base,message:"package.json \xbb name",name:"name",type:t=>!1===t||i?null:"text",validate:t=>vs(pi(t)||"").validForNewPackages},{format:pi,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:t=>!1===t||o?null:"text",validate:t=>ws.test(pi(t)||"")},{format:pi,message:"package.json \xbb description",name:"description",type:t=>!1===t||r?null:"text"},{active:"MIT",format:t=>t?"MIT":"UNLICENSED",inactive:"UNLICENSED",initial:!0,message:"package.json \xbb license",name:"license",type:t=>!1===t||n?null:"toggle"},{type:t=>!1===t||("string"==typeof e?e:e&&e.name)?null:"text",format:bs,initial:await mi(e),message:"package.json \xbb author",name:"author"},{active:"true",inactive:"false",initial:!1,message:"package.json \xbb private",name:"private",format:t=>!1===t?void 0:t,type:t=>!1===t||void 0!==s?null:"toggle"},{active:"recommend",inactive:"false",initial:!1,message:"package.json \xbb workspaces",name:"workspaces",format:t=>t?["packages/*","tools/*"]:void 0,type:(t,e)=>{return!1===t||!1===s||!1===e.private||(r=a&&a.packages?a.packages:a,Array.isArray(r)&&r.length>0)?null:"toggle";var r}}]}async function _s(){const t=await async function(){try{const{stdout:t}=await ui("git",["--version"]);return Boolean(t)}catch{return!1}}(),r=t&&ls(),n=!!r&&as(),i=0===(0,e.readdirSync)(process.cwd()).length,s=gi(),o=process.cwd(),a={gitSupported:t,isGit:r,isDirty:n,isEmpty:i,pkg:s,cwd:o},l=await Es(a);return cs([{active:"do it",inactive:"cancel",message:!0===n?"Repository not clean":"Workspace not empty",name:"okay",type:()=>i||!1===n?null:"toggle"},ms(a),...l,ds(),{message:ys,name:"Install",type:t=>!1===t?null:"confirm",format(t){if(!0===t)return()=>{console.log("-".repeat(32)),gs()}}}],{onCancel(){throw new Error("cancel")}}).then((({okay:t,...e})=>{if(!1===t)throw new Error("cancel");return Object.entries(e)})).then((t=>{const e=l.map((({name:t})=>t)),r=Object.fromEntries(t.filter((([t])=>e.includes(t))));return{...Object.fromEntries(t.filter((([t])=>!e.includes(t)))),info:r,options:a}}))}process.on("SIGINT",(()=>{})),new class{constructor(t,r){this.root=r;const{bin:n,homepage:i,name:s="cheetor",repository:{url:o=""}={},version:a}="string"==typeof t?JSON.parse((0,e.readFileSync)(new URL(t,r))):t;this.homepage=i,this.repository=o.includes("github.com")?o.replace(/\.git$/,""):"";const l=Re(process.argv.slice(2)).strict().alias("help","h").alias("version","v").hide("help").version(a).hide("version").detectLocale(!1),c=function(t,e){if("string"==typeof t||!t)return e;const r=Object.keys(t);return 1===r.length&&r[0]}(n,s);c&&l.scriptName(c),this.cli=Promise.resolve(l)}config(t){return this.cli=this.cli.then(t),this}command(...t){return this.cli=this.cli.then((e=>e.command(...t))),this}commandFrom(t){return this.cli=this.cli.then((async e=>{const r=await ke(t,this.root);return e.command(r)})),this}commandSafe(t){return this.cli=this.cli.then((e=>function(t,e){return ke(t,e).catch((t=>{if("ERR_MODULE_NOT_FOUND"===t.code&&t.message.endsWith(` imported from ${(0,p.fileURLToPath)(import.meta.url)}`))return!1;throw t}))}(t,this.root).then((t=>t&&t.command?e.command(t):e)))),this}commandSmart(t){return this.cli=this.cli.then((async e=>{const r=t();return r&&r.command?e.command(r):e})),this}website(t){return this.site=t,this}middleware(...t){return this.cli=this.cli.then((e=>e.middleware(...t))),this}setup(t){return this.cli.then((t=>Me(t,this))).then((e=>"function"==typeof t?t(e.parse()):e.parse()))}}("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").setup((()=>{(async function(){const{Dependencies:t,GitInit:e,Install:r,info:n,options:{isGit:i}={}}=await _s();console.log("-".repeat(32));const s=[e,()=>ss(n),os,xi,gr,()=>e||i?wi():void 0,()=>t?t(e||i):void 0,r].filter((t=>"function"==typeof t));for(const t of s){const e=await t();e&&e.catch&&e.catch((t=>{console.warn(t.message)}))}})().catch((t=>{if("cancel"!==t.message)throw t}))}))})();
2
+ import{createRequire as t}from"module";var e={9640:(t,e,r)=>{t=r.nmd(t);const n=(t,e)=>(...r)=>`\x1b[${t(...r)+e}m`,i=(t,e)=>(...r)=>{const n=t(...r);return`\x1b[${38+e};5;${n}m`},s=(t,e)=>(...r)=>{const n=t(...r);return`\x1b[${38+e};2;${n[0]};${n[1]};${n[2]}m`},o=t=>t,a=(t,e,r)=>[t,e,r],l=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{const n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let c;const h=(t,e,n,i)=>{void 0===c&&(c=r(841));const s=i?10:0,o={};for(const[r,i]of Object.entries(c)){const a="ansi16"===r?"ansi":r;r===e?o[a]=t(n,s):"object"==typeof i&&(o[a]=t(i[e],s))}return o};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",l(e.color,"ansi",(()=>h(n,"ansi16",o,!1))),l(e.color,"ansi256",(()=>h(i,"ansi256",o,!1))),l(e.color,"ansi16m",(()=>h(s,"rgb",a,!1))),l(e.bgColor,"ansi",(()=>h(n,"ansi16",o,!0))),l(e.bgColor,"ansi256",(()=>h(i,"ansi256",o,!0))),l(e.bgColor,"ansi16m",(()=>h(s,"rgb",a,!0))),e}})},633:t=>{t.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},6888:(t,e,r)=>{const{Buffer:n}=r(4300),i=Symbol.for("BufferList");function s(t){if(!(this instanceof s))return new s(t);s._init.call(this,t)}s._init=function(t){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)},s.prototype._new=function(t){return new s(t)},s.prototype._offset=function(t){if(0===t)return[0,0];let e=0;for(let r=0;r<this._bufs.length;r++){const n=e+this._bufs[r].length;if(t<n||r===this._bufs.length-1)return[r,t-e];e=n}},s.prototype._reverseOffset=function(t){const e=t[0];let r=t[1];for(let t=0;t<e;t++)r+=this._bufs[t].length;return r},s.prototype.get=function(t){if(t>this.length||t<0)return;const e=this._offset(t);return this._bufs[e[0]][e[1]]},s.prototype.slice=function(t,e){return"number"==typeof t&&t<0&&(t+=this.length),"number"==typeof e&&e<0&&(e+=this.length),this.copy(null,0,t,e)},s.prototype.copy=function(t,e,r,i){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof i||i>this.length)&&(i=this.length),r>=this.length)return t||n.alloc(0);if(i<=0)return t||n.alloc(0);const s=!!t,o=this._offset(r),a=i-r;let l=a,c=s&&e||0,h=o[1];if(0===r&&i===this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:n.concat(this._bufs,this.length);for(let e=0;e<this._bufs.length;e++)this._bufs[e].copy(t,c),c+=this._bufs[e].length;return t}if(l<=this._bufs[o[0]].length-h)return s?this._bufs[o[0]].copy(t,e,h,h+l):this._bufs[o[0]].slice(h,h+l);s||(t=n.allocUnsafe(a));for(let e=o[0];e<this._bufs.length;e++){const r=this._bufs[e].length-h;if(!(l>r)){this._bufs[e].copy(t,c,h,h+l),c+=r;break}this._bufs[e].copy(t,c,h),c+=r,l-=r,h&&(h=0)}return t.length>c?t.slice(0,c):t},s.prototype.shallowSlice=function(t,e){if(t=t||0,e="number"!=typeof e?this.length:e,t<0&&(t+=this.length),e<0&&(e+=this.length),t===e)return this._new();const r=this._offset(t),n=this._offset(e),i=this._bufs.slice(r[0],n[0]+1);return 0===n[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,n[1]),0!==r[1]&&(i[0]=i[0].slice(r[1])),this._new(i)},s.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)},s.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){const t=this._new();for(let e=0;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},s.prototype.append=function(t){if(null==t)return this;if(t.buffer)this._appendBuffer(n.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let e=0;e<t.length;e++)this.append(t[e]);else if(this._isBufferList(t))for(let e=0;e<t._bufs.length;e++)this.append(t._bufs[e]);else"number"==typeof t&&(t=t.toString()),this._appendBuffer(n.from(t));return this},s.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length},s.prototype.indexOf=function(t,e,r){if(void 0===r&&"string"==typeof e&&(r=e,e=void 0),"function"==typeof t||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"==typeof t?t=n.from([t]):"string"==typeof t?t=n.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=n.from(t.buffer,t.byteOffset,t.byteLength):n.isBuffer(t)||(t=n.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),0===t.length)return e>this.length?this.length:e;const i=this._offset(e);let s=i[0],o=i[1];for(;s<this._bufs.length;s++){const e=this._bufs[s];for(;o<e.length;){if(e.length-o>=t.length){const r=e.indexOf(t,o);if(-1!==r)return this._reverseOffset([s,r]);o=e.length-t.length+1}else{const e=this._reverseOffset([s,o]);if(this._match(e,t))return e;o++}}o=0}return-1},s.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0},function(){const t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const e in t)!function(e){s.prototype[e]=null===t[e]?function(t,r){return this.slice(t,t+r)[e](0,r)}:function(r=0){return this.slice(r,r+t[e])[e](0)}}(e)}(),s.prototype._isBufferList=function(t){return t instanceof s||s.isBufferList(t)},s.isBufferList=function(t){return null!=t&&t[i]},t.exports=s},9050:(t,e,r)=>{const n=r(1258).Duplex,i=r(8874),s=r(6888);function o(t){if(!(this instanceof o))return new o(t);if("function"==typeof t){this._callback=t;const e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",(function(t){t.on("error",e)})),this.on("unpipe",(function(t){t.removeListener("error",e)})),t=null}s._init.call(this,t),n.call(this)}i(o,n),Object.assign(o.prototype,s.prototype),o.prototype._new=function(t){return new o(t)},o.prototype._write=function(t,e,r){this._appendBuffer(t),"function"==typeof r&&r()},o.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)},o.prototype.end=function(t){n.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(t,e){this._bufs.length=0,this.length=0,e(t)},o.prototype._isBufferList=function(t){return t instanceof o||t instanceof s||o.isBufferList(t)},o.isBufferList=s.isBufferList,t.exports=o,t.exports.BufferListStream=o,t.exports.BufferList=s},5890:(t,e,r)=>{const n=r(7699),i=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"],s={freelist:"<6.0.0",v8:">=1.0.0",process:">=1.1.0",inspector:">=8.0.0",async_hooks:">=8.1.0",http2:">=8.4.0",perf_hooks:">=8.5.0",trace_events:">=10.0.0",worker_threads:">=12.0.0","node:test":">=18.0.0"},o={worker_threads:">=10.5.0",wasi:">=12.16.0",diagnostics_channel:"^14.17.0 || >=15.1.0"};t.exports=({version:t=process.version,experimental:e=!1}={})=>{const r=[...i];for(const[e,i]of Object.entries(s))("*"===t||n.satisfies(t,i))&&r.push(e);if(e)for(const[e,i]of Object.entries(o))r.includes(e)||"*"!==t&&!n.satisfies(t,i)||r.push(e);return r}},8794:(t,e,r)=>{const n=r(773);t.exports=(t,e)=>new n(t,e)},773:(t,e,r)=>{const n=r(1017),i=r(3685),s=r(5687),o=r(3477),a=r(9796),{URL:l}=r(7310),c=r(8014),h=["gzip","deflate"];t.exports=class{constructor(t,e="GET"){return this.url="string"==typeof t?new l(t):t,this.method=e,this.data=null,this.sendDataAs=null,this.reqHeaders={},this.streamEnabled=!1,this.compressionEnabled=!1,this.timeoutTime=null,this.coreOptions={},this.resOptions={maxBuffer:5e7},this}query(t,e){return"object"==typeof t?Object.keys(t).forEach((e=>{this.url.searchParams.append(e,t[e])})):this.url.searchParams.append(t,e),this}path(t){return this.url.pathname=n.join(this.url.pathname,t),this}body(t,e){return this.sendDataAs="object"!=typeof t||e||Buffer.isBuffer(t)?e?e.toLowerCase():"buffer":"json",this.data="form"===this.sendDataAs?o.stringify(t):"json"===this.sendDataAs?JSON.stringify(t):t,this}header(t,e){return"object"==typeof t?Object.keys(t).forEach((e=>{this.reqHeaders[e.toLowerCase()]=t[e]})):this.reqHeaders[t.toLowerCase()]=e,this}timeout(t){return this.timeoutTime=t,this}option(t,e){return this.coreOptions[t]=e,this}stream(){return this.streamEnabled=!0,this}compress(){return this.compressionEnabled=!0,this.reqHeaders["accept-encoding"]||(this.reqHeaders["accept-encoding"]=h.join(", ")),this}send(){return new Promise(((t,e)=>{this.data&&(this.reqHeaders.hasOwnProperty("content-type")||("json"===this.sendDataAs?this.reqHeaders["content-type"]="application/json":"form"===this.sendDataAs&&(this.reqHeaders["content-type"]="application/x-www-form-urlencoded")),this.reqHeaders.hasOwnProperty("content-length")||(this.reqHeaders["content-length"]=Buffer.byteLength(this.data)));const r=Object.assign({protocol:this.url.protocol,host:this.url.hostname,port:this.url.port,path:this.url.pathname+(null===this.url.search?"":this.url.search),method:this.method,headers:this.reqHeaders},this.coreOptions);let n;const o=r=>{let n,i=r;this.compressionEnabled&&("gzip"===r.headers["content-encoding"]?i=r.pipe(a.createGunzip()):"deflate"===r.headers["content-encoding"]&&(i=r.pipe(a.createInflate()))),this.streamEnabled?t(i):(n=new c(r,this.resOptions),i.on("error",(t=>{e(t)})),i.on("aborted",(()=>{e(new Error("Server aborted request"))})),i.on("data",(t=>{n._addChunk(t),null!==this.resOptions.maxBuffer&&n.body.length>this.resOptions.maxBuffer&&(i.destroy(),e("Received a response which was longer than acceptable when buffering. ("+this.body.length+" bytes)"))})),i.on("end",(()=>{t(n)})))};if("http:"===this.url.protocol)n=i.request(r,o);else{if("https:"!==this.url.protocol)throw new Error("Bad URL protocol: "+this.url.protocol);n=s.request(r,o)}this.timeoutTime&&n.setTimeout(this.timeoutTime,(()=>{n.abort(),this.streamEnabled||e(new Error("Timeout reached"))})),n.on("error",(t=>{e(t)})),this.data&&n.write(this.data),n.end()}))}}},8014:t=>{t.exports=class{constructor(t,e){this.coreRes=t,this.resOptions=e,this.body=Buffer.alloc(0),this.headers=t.headers,this.statusCode=t.statusCode}_addChunk(t){this.body=Buffer.concat([this.body,t])}async json(){return 204===this.statusCode?null:JSON.parse(this.body)}async text(){return this.body.toString()}}},6183:(t,e,r)=>{const n=r(2037),i=r(6224),s=r(8137),{env:o}=process;let a;function l(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function c(t,e){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(t&&!e&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const t=n.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),t.exports={supportsColor:function(t){return l(c(t,t&&t.isTTY))},stdout:l(c(!0,i.isatty(1))),stderr:l(c(!0,i.isatty(2)))}},2645:(t,e,r)=>{const n=r(9640),{stdout:i,stderr:s}=r(6183),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(1957),{isArray:l}=Array,c=["ansi","ansi","ansi256","ansi16m"],h=Object.create(null);class u{constructor(t){return d(t)}}const d=t=>{const e={};return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;t.level=void 0===e.level?r:e.level})(e,t),e.template=(...t)=>w(e.template,...t),Object.setPrototypeOf(e,f.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=u,e.template};function f(t){return d(t)}for(const[t,e]of Object.entries(n))h[t]={get(){const r=y(this,g(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};h.visible={get(){const t=y(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of p)h[t]={get(){const{level:e}=this;return function(...r){const i=g(n.color[c[e]][t](...r),n.color.close,this._styler);return y(this,i,this._isEmpty)}}};for(const t of p){h["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const i=g(n.bgColor[c[e]][t](...r),n.bgColor.close,this._styler);return y(this,i,this._isEmpty)}}}}const m=Object.defineProperties((()=>{}),{...h,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),g=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},y=(t,e,r)=>{const n=(...t)=>l(t[0])&&l(t[0].raw)?b(n,w(n,...t)):b(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,m),n._generator=t,n._styler=e,n._isEmpty=r,n},b=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(-1!==e.indexOf("\x1b"))for(;void 0!==r;)e=o(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=a(e,i,n,s)),n+e+i};let v;const w=(t,...e)=>{const[n]=e;if(!l(n)||!l(n.raw))return e.join(" ");const i=e.slice(1),s=[n.raw[0]];for(let t=1;t<n.length;t++)s.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[t]));return void 0===v&&(v=r(1070)),v(t,s.join(""))};Object.defineProperties(f.prototype,h);const E=f();E.supportsColor=i,E.stderr=f({level:s?s.level:0}),E.stderr.supportsColor=s,t.exports=E},1070:t=>{const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function o(t){const e="u"===t[0],r="{"===t[1];return e&&!r&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):s.get(t)||t}function a(t,e){const r=[],s=e.trim().split(/\s*,\s*/g);let a;for(const e of s){const s=Number(e);if(Number.isNaN(s)){if(!(a=e.match(n)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(a[2].replace(i,((t,e,r)=>e?o(e):r)))}else r.push(s)}return r}function l(t){r.lastIndex=0;const e=[];let n;for(;null!==(n=r.exec(t));){const t=n[1];if(n[2]){const r=a(t,n[2]);e.push([t].concat(r))}else e.push([t])}return e}function c(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const[t,e]of Object.entries(r))if(Array.isArray(e)){if(!(t in n))throw new Error(`Unknown Chalk style: ${t}`);n=e.length>0?n[t](...e):n[t]}return n}t.exports=(t,r)=>{const n=[],i=[];let s=[];if(r.replace(e,((e,r,a,h,u,d)=>{if(r)s.push(o(r));else if(h){const e=s.join("");s=[],i.push(0===n.length?e:c(t,n)(e)),n.push({inverse:a,styles:l(h)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(c(t,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const t=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")}},1957:t=>{t.exports={stringReplaceAll:(t,e,r)=>{let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.substr(s),o},stringEncaseCRLFWithFirstIndex:(t,e,r,n)=>{let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.substr(i),s}}},3372:(t,e,r)=>{const n=Object.assign({},r(2548)),i=Object.keys(n);Object.defineProperty(n,"random",{get(){const t=Math.floor(Math.random()*i.length),e=i[t];return n[e]}}),t.exports=n},8138:t=>{var e=function(){function t(e,n,i,s){"object"==typeof n&&(i=n.depth,s=n.prototype,n.filter,n=n.circular);var o=[],a=[],l="undefined"!=typeof Buffer;return void 0===n&&(n=!0),void 0===i&&(i=1/0),function e(i,c){if(null===i)return null;if(0==c)return i;var h,u;if("object"!=typeof i)return i;if(t.__isArray(i))h=[];else if(t.__isRegExp(i))h=new RegExp(i.source,r(i)),i.lastIndex&&(h.lastIndex=i.lastIndex);else if(t.__isDate(i))h=new Date(i.getTime());else{if(l&&Buffer.isBuffer(i))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(h),h;void 0===s?(u=Object.getPrototypeOf(i),h=Object.create(u)):(h=Object.create(s),u=s)}if(n){var d=o.indexOf(i);if(-1!=d)return a[d];o.push(i),a.push(h)}for(var f in i){var p;u&&(p=Object.getOwnPropertyDescriptor(u,f)),p&&null==p.set||(h[f]=e(i[f],c-1))}return h}(e,i)}function e(t){return Object.prototype.toString.call(t)}function r(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return t.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},t.__objToStr=e,t.__isDate=function(t){return"object"==typeof t&&"[object Date]"===e(t)},t.__isArray=function(t){return"object"==typeof t&&"[object Array]"===e(t)},t.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===e(t)},t.__getRegExpFlags=r,t}();t.exports&&(t.exports=e)},4959:(t,e,r)=>{const n=r(1103),i={};for(const t of Object.keys(n))i[n[t]]=t;const s={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"]}};t.exports=s;for(const t of Object.keys(s)){if(!("channels"in s[t]))throw new Error("missing channels property: "+t);if(!("labels"in s[t]))throw new Error("missing channel labels property: "+t);if(s[t].labels.length!==s[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=s[t];delete s[t].channels,delete s[t].labels,Object.defineProperty(s[t],"channels",{value:e}),Object.defineProperty(s[t],"labels",{value:r})}s.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i;let a,l;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const c=(i+s)/2;return l=s===i?0:c<=.5?o/(s+i):o/(2-s-i),[a,100*l,100*c]},s.rgb.hsv=function(t){let e,r,n,i,s;const o=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(o,a,l),h=c-Math.min(o,a,l),u=function(t){return(c-t)/6/h+.5};return 0===h?(i=0,s=0):(s=h/c,e=u(o),r=u(a),n=u(l),o===c?i=n-r:a===c?i=1/3+e-n:l===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*c]},s.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const i=s.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n);return[100*((1-e-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(t){const e=i[t];if(e)return e;let r,s=1/0;for(const e of Object.keys(n)){const i=n[e],l=(a=i,((o=t)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);l<s&&(s=l,r=e)}var o,a;return r},s.keyword.rgb=function(t){return n[t]},s.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},s.rgb.lab=function(t){const e=s.rgb.xyz(t);let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},s.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let i,s,o;if(0===r)return o=255*n,[o,o,o];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,l=[0,0,0];for(let t=0;t<3;t++)s=e+1/3*-(t-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,l[t]=255*o;return l},s.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,i=r;const s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;return[e,100*(0===n?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01);let s,o;o=(2-r)*n;const a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,100*s,100*o]},s.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*e),a=1-n;s=6*e-o,0!=(1&o)&&(s=1-s);const l=r+s*(a-r);let c,h,u;switch(o){default:case 6:case 0:c=a,h=l,u=r;break;case 1:c=l,h=a,u=r;break;case 2:c=r,h=a,u=l;break;case 3:c=r,h=l,u=a;break;case 4:c=l,h=r,u=a;break;case 5:c=a,h=r,u=l}return[255*c,255*h,255*u]},s.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},s.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let i,s,o;return i=3.2406*e+-1.5372*r+-.4986*n,s=-.9689*e+1.8758*r+.0415*n,o=.0557*e+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*i,255*s,255*o]},s.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(e-r),200*(r-n)]},s.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const i=r**3,s=e**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},s.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(t,e=null){const[r,n,i]=t;let o=null===e?s.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(a+=60),a},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},s.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},s.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s;let a,l;return a=o<1?s/(1-o):0,l=o<=0?0:i===e?(r-n)/o%6:i===r?2+(n-e)/o:4+(e-r)/o,l/=6,l%=1,[360*l,100*o,100*a]},s.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},s.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=e%1*6,o=s%1,a=1-o;let l=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}return l=(1-r)*n,[255*(r*i[0]+l),255*(r*i[1]+l),255*(r*i[2]+l)]},s.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},s.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},s.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},s.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=function(t){return[0,0,t[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},841:(t,e,r)=>{const n=r(4959),i=r(9325),s={};Object.keys(n).forEach((t=>{s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});const e=i(t);Object.keys(e).forEach((r=>{const n=e[r];s[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),s[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=s},9325:(t,e,r)=>{const n=r(4959);function i(t){const e=function(){const t={},e=Object.keys(n);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),i=Object.keys(n[t]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=e[n];-1===o.distance&&(o.distance=e[t].distance+1,o.parent=t,r.unshift(n))}}return e}function s(t,e){return function(r){return e(t(r))}}function o(t,e){const r=[e[t].parent,t];let i=n[e[t].parent][t],o=e[t].parent;for(;e[o].parent;)r.unshift(e[o].parent),i=s(n[e[o].parent][o],i),o=e[o].parent;return i.conversion=r,i}t.exports=function(t){const e=i(t),r={},n=Object.keys(e);for(let t=n.length,i=0;i<t;i++){const t=n[i];null!==e[t].parent&&(r[t]=o(t,e))}return r}},1103:t=>{t.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]}},8995:(t,e,r)=>{const n=r(2081),i=r(9015),s=r(5350);function o(t,e,r){const o=i(t,e,r),a=n.spawn(o.command,o.args,o.options);return s.hookChildProcess(a,o),a}t.exports=o,t.exports.spawn=o,t.exports.sync=function(t,e,r){const o=i(t,e,r),a=n.spawnSync(o.command,o.args,o.options);return a.error=a.error||s.verifyENOENTSync(a.status,o),a},t.exports._parse=i,t.exports._enoent=s},5350:t=>{const e="win32"===process.platform;function r(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function n(t,n){return e&&1===t&&!n.file?r(n.original,"spawn"):null}t.exports={hookChildProcess:function(t,r){if(!e)return;const i=t.emit;t.emit=function(e,s){if("exit"===e){const e=n(s,r);if(e)return i.call(t,"error",e)}return i.apply(t,arguments)}},verifyENOENT:n,verifyENOENTSync:function(t,n){return e&&1===t&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},9015:(t,e,r)=>{const n=r(1017),i=r(5358),s=r(6214),o=r(3106),a="win32"===process.platform,l=/\.(?:com|exe)$/i,c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function h(t){if(!a)return t;const e=function(t){t.file=i(t);const e=t.file&&o(t.file);return e?(t.args.unshift(t.file),t.command=e,i(t)):t.file}(t),r=!l.test(e);if(t.options.forceShell||r){const r=c.test(e);t.command=n.normalize(t.command),t.command=s.command(t.command),t.args=t.args.map((t=>s.argument(t,r)));const i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null);const n={command:t,args:e=e?e.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:t,args:e}};return r.shell?n:h(n)}},6214:t=>{const e=/([()\][%!^"`<>&|;, *?])/g;t.exports.command=function(t){return t=t.replace(e,"^$1")},t.exports.argument=function(t,r){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),r&&(t=t.replace(e,"^$1")),t}},3106:(t,e,r)=>{const n=r(7147),i=r(4256);t.exports=function(t){const e=Buffer.alloc(150);let r;try{r=n.openSync(t,"r"),n.readSync(r,e,0,150,0),n.closeSync(r)}catch(t){}return i(e.toString())}},5358:(t,e,r)=>{const n=r(1017),i=r(1468),s=r(6569);function o(t,e){const r=t.options.env||process.env,o=process.cwd(),a=null!=t.options.cwd,l=a&&void 0!==process.chdir&&!process.chdir.disabled;if(l)try{process.chdir(t.options.cwd)}catch(t){}let c;try{c=i.sync(t.command,{path:r[s({env:r})],pathExt:e?n.delimiter:void 0})}catch(t){}finally{l&&process.chdir(o)}return c&&(c=n.resolve(a?t.options.cwd:"",c)),c}t.exports=function(t){return o(t)||o(t,!0)}},1468:(t,e,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(1017),s=n?";":":",o=r(5909),a=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),l=(t,e)=>{const r=e.colon||s,i=t.match(/\//)||n&&t.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],o=n?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?o.split(r):[""];return n&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:o}},c=(t,e,r)=>{"function"==typeof e&&(r=e,e={}),e||(e={});const{pathEnv:n,pathExt:s,pathExtExe:c}=l(t,e),h=[],u=r=>new Promise(((s,o)=>{if(r===n.length)return e.all&&h.length?s(h):o(a(t));const l=n[r],c=/^".*"$/.test(l)?l.slice(1,-1):l,u=i.join(c,t),f=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;s(d(f,r,0))})),d=(t,r,n)=>new Promise(((i,a)=>{if(n===s.length)return i(u(r+1));const l=s[n];o(t+l,{pathExt:c},((s,o)=>{if(!s&&o){if(!e.all)return i(t+l);h.push(t+l)}return i(d(t,r,n+1))}))}));return r?u(0).then((t=>r(null,t)),r):u(0)};t.exports=c,c.sync=(t,e)=>{e=e||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=l(t,e),c=[];for(let a=0;a<r.length;a++){const l=r[a],h=/^".*"$/.test(l)?l.slice(1,-1):l,u=i.join(h,t),d=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let t=0;t<n.length;t++){const r=d+n[t];try{if(o.sync(r,{pathExt:s})){if(!e.all)return r;c.push(r)}}catch(t){}}}if(e.all&&c.length)return c;if(e.nothrow)return null;throw a(t)}},9714:t=>{var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function i(t,e,r){return t.concat(e).map((function(t){return n(t,r)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function o(t,e){try{return e in t}catch(t){return!1}}function a(t,e,r){var i={};return r.isMergeableObject(t)&&s(t).forEach((function(e){i[e]=n(t[e],r)})),s(e).forEach((function(s){(function(t,e){return o(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(o(t,s)&&r.isMergeableObject(e[s])?i[s]=function(t,e){if(!e.customMerge)return l;var r=e.customMerge(t);return"function"==typeof r?r:l}(s,r)(t[s],e[s],r):i[s]=n(e[s],r))})),i}function l(t,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||e,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(t)?o?s.arrayMerge(t,r,s):a(t,r,s):n(r,s)}l.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return l(t,r,e)}),{})};var c=l;t.exports=c},2526:(t,e,r)=>{var n=r(8138);t.exports=function(t,e){return t=t||{},Object.keys(e).forEach((function(r){void 0===t[r]&&(t[r]=n(e[r]))})),t}},361:(t,e,r)=>{const{PassThrough:n}=r(2781);t.exports=t=>{t={...t};const{array:e}=t;let{encoding:r}=t;const i="buffer"===r;let s=!1;e?s=!(r||i):r=r||"utf8",i&&(r=null);const o=new n({objectMode:s});r&&o.setEncoding(r);let a=0;const l=[];return o.on("data",(t=>{l.push(t),s?a=l.length:a+=t.length})),o.getBufferedValue=()=>e?l:i?Buffer.concat(l,a):l.join(""),o.getBufferedLength=()=>a,o}},9551:(t,e,r)=>{const{constants:n}=r(4300),i=r(2781),{promisify:s}=r(3837),o=r(361),a=s(i.pipeline);class l extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function c(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};const{maxBuffer:r}=e,i=o(e);return await new Promise(((e,s)=>{const o=t=>{t&&i.getBufferedLength()<=n.MAX_LENGTH&&(t.bufferedData=i.getBufferedValue()),s(t)};(async()=>{try{await a(t,i),e()}catch(t){o(t)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&o(new l)}))})),i.getBufferedValue()}t.exports=c,t.exports.buffer=(t,e)=>c(t,{...e,encoding:"buffer"}),t.exports.array=(t,e)=>c(t,{...e,array:!0}),t.exports.MaxBufferError=l},2178:(t,e,r)=>{const n=r(85),i=r(1017),s=r(5145).mkdirsSync,o=r(2450).utimesMillisSync,a=r(3719);function l(t,e,r,s){const o=(s.dereference?n.statSync:n.lstatSync)(e);if(o.isDirectory())return function(t,e,r,i,s){return e?u(r,i,s):function(t,e,r,i){return n.mkdirSync(r),u(e,r,i),h(r,t)}(t.mode,r,i,s)}(o,t,e,r,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(t,e,r,i,s){return e?function(t,e,r,i){if(i.overwrite)return n.unlinkSync(r),c(t,e,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(t,r,i,s):c(t,r,i,s)}(o,t,e,r,s);if(o.isSymbolicLink())return function(t,e,r,s){let o=n.readlinkSync(e);s.dereference&&(o=i.resolve(process.cwd(),o));if(t){let t;try{t=n.readlinkSync(r)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return n.symlinkSync(o,r);throw t}if(s.dereference&&(t=i.resolve(process.cwd(),t)),a.isSrcSubdir(o,t))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${t}'.`);if(n.statSync(r).isDirectory()&&a.isSrcSubdir(t,o))throw new Error(`Cannot overwrite '${t}' with '${o}'.`);return function(t,e){return n.unlinkSync(e),n.symlinkSync(t,e)}(o,r)}return n.symlinkSync(o,r)}(t,e,r,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${e}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${e}`);throw new Error(`Unknown file: ${e}`)}function c(t,e,r,i){return n.copyFileSync(e,r),i.preserveTimestamps&&function(t,e,r){(function(t){return 0==(128&t)})(t)&&function(t,e){h(t,128|e)}(r,t);(function(t,e){const r=n.statSync(t);o(e,r.atime,r.mtime)})(e,r)}(t.mode,e,r),h(r,t.mode)}function h(t,e){return n.chmodSync(t,e)}function u(t,e,r){n.readdirSync(t).forEach((n=>function(t,e,r,n){const s=i.join(e,t),o=i.join(r,t),{destStat:c}=a.checkPathsSync(s,o,"copy",n);return function(t,e,r,n){if(!n.filter||n.filter(e,r))return l(t,e,r,n)}(c,s,o,n)}(n,t,e,r)))}t.exports=function(t,e,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:o,destStat:c}=a.checkPathsSync(t,e,"copy",r);return a.checkParentPathsSync(t,o,e,"copy"),function(t,e,r,o){if(o.filter&&!o.filter(e,r))return;const a=i.dirname(r);n.existsSync(a)||s(a);return l(t,e,r,o)}(c,t,e,r)}},5205:(t,e,r)=>{const n=r(85),i=r(1017),s=r(5145).mkdirs,o=r(9699).pathExists,a=r(2450).utimesMillis,l=r(3719);function c(t,e,r,n,a){const l=i.dirname(r);o(l,((i,o)=>i?a(i):o?u(t,e,r,n,a):void s(l,(i=>i?a(i):u(t,e,r,n,a)))))}function h(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then((o=>o?t(e,r,n,i,s):s()),(t=>s(t)))}function u(t,e,r,i,s){(i.dereference?n.stat:n.lstat)(e,((o,a)=>o?s(o):a.isDirectory()?function(t,e,r,i,s,o){return e?m(r,i,s,o):function(t,e,r,i,s){n.mkdir(r,(n=>{if(n)return s(n);m(e,r,i,(e=>e?s(e):p(r,t,s)))}))}(t.mode,r,i,s,o)}(a,t,e,r,i,s):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(t,e,r,i,s,o){return e?function(t,e,r,i,s){if(!i.overwrite)return i.errorOnExist?s(new Error(`'${r}' already exists`)):s();n.unlink(r,(n=>n?s(n):d(t,e,r,i,s)))}(t,r,i,s,o):d(t,r,i,s,o)}(a,t,e,r,i,s):a.isSymbolicLink()?y(t,e,r,i,s):a.isSocket()?s(new Error(`Cannot copy a socket file: ${e}`)):a.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${e}`)):s(new Error(`Unknown file: ${e}`))))}function d(t,e,r,i,s){n.copyFile(e,r,(n=>n?s(n):i.preserveTimestamps?function(t,e,r,n){if(function(t){return 0==(128&t)}(t))return function(t,e,r){return p(t,128|e,r)}(r,t,(i=>i?n(i):f(t,e,r,n)));return f(t,e,r,n)}(t.mode,e,r,s):p(r,t.mode,s)))}function f(t,e,r,i){!function(t,e,r){n.stat(t,((t,n)=>t?r(t):a(e,n.atime,n.mtime,r)))}(e,r,(e=>e?i(e):p(r,t,i)))}function p(t,e,r){return n.chmod(t,e,r)}function m(t,e,r,i){n.readdir(t,((n,s)=>n?i(n):g(s,t,e,r,i)))}function g(t,e,r,n,s){const o=t.pop();return o?function(t,e,r,n,s,o){const a=i.join(r,e),c=i.join(n,e);l.checkPaths(a,c,"copy",s,((e,i)=>{if(e)return o(e);const{destStat:l}=i;!function(t,e,r,n,i){n.filter?h(u,t,e,r,n,i):u(t,e,r,n,i)}(l,a,c,s,(e=>e?o(e):g(t,r,n,s,o)))}))}(t,o,e,r,n,s):s()}function y(t,e,r,s,o){n.readlink(e,((e,a)=>e?o(e):(s.dereference&&(a=i.resolve(process.cwd(),a)),t?void n.readlink(r,((e,c)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?n.symlink(a,r,o):o(e):(s.dereference&&(c=i.resolve(process.cwd(),c)),l.isSrcSubdir(a,c)?o(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&l.isSrcSubdir(c,a)?o(new Error(`Cannot overwrite '${c}' with '${a}'.`)):function(t,e,r){n.unlink(e,(i=>i?r(i):n.symlink(t,e,r)))}(a,r,o)))):n.symlink(a,r,o))))}t.exports=function(t,e,r,n){"function"!=typeof r||n?"function"==typeof r&&(r={filter:r}):(n=r,r={}),n=n||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001"),l.checkPaths(t,e,"copy",r,((i,s)=>{if(i)return n(i);const{srcStat:o,destStat:a}=s;l.checkParentPaths(t,o,e,"copy",(i=>i?n(i):r.filter?h(c,a,t,e,r,n):c(a,t,e,r,n)))}))}},1889:(t,e,r)=>{const n=r(5725).fromCallback;t.exports={copy:n(r(5205)),copySync:r(2178)}},4088:(t,e,r)=>{const n=r(5725).fromPromise,i=r(2143),s=r(1017),o=r(5145),a=r(3495),l=n((async function(t){let e;try{e=await i.readdir(t)}catch{return o.mkdirs(t)}return Promise.all(e.map((e=>a.remove(s.join(t,e)))))}));function c(t){let e;try{e=i.readdirSync(t)}catch{return o.mkdirsSync(t)}e.forEach((e=>{e=s.join(t,e),a.removeSync(e)}))}t.exports={emptyDirSync:c,emptydirSync:c,emptyDir:l,emptydir:l}},1454:(t,e,r)=>{const n=r(5725).fromCallback,i=r(1017),s=r(85),o=r(5145);t.exports={createFile:n((function(t,e){function r(){s.writeFile(t,"",(t=>{if(t)return e(t);e()}))}s.stat(t,((n,a)=>{if(!n&&a.isFile())return e();const l=i.dirname(t);s.stat(l,((t,n)=>{if(t)return"ENOENT"===t.code?o.mkdirs(l,(t=>{if(t)return e(t);r()})):e(t);n.isDirectory()?r():s.readdir(l,(t=>{if(t)return e(t)}))}))}))})),createFileSync:function(t){let e;try{e=s.statSync(t)}catch{}if(e&&e.isFile())return;const r=i.dirname(t);try{s.statSync(r).isDirectory()||s.readdirSync(r)}catch(t){if(!t||"ENOENT"!==t.code)throw t;o.mkdirsSync(r)}s.writeFileSync(t,"")}}},2689:(t,e,r)=>{const{createFile:n,createFileSync:i}=r(1454),{createLink:s,createLinkSync:o}=r(462),{createSymlink:a,createSymlinkSync:l}=r(3318);t.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:s,createLinkSync:o,ensureLink:s,ensureLinkSync:o,createSymlink:a,createSymlinkSync:l,ensureSymlink:a,ensureSymlinkSync:l}},462:(t,e,r)=>{const n=r(5725).fromCallback,i=r(1017),s=r(85),o=r(5145),a=r(9699).pathExists,{areIdentical:l}=r(3719);t.exports={createLink:n((function(t,e,r){function n(t,e){s.link(t,e,(t=>{if(t)return r(t);r(null)}))}s.lstat(e,((c,h)=>{s.lstat(t,((s,c)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);if(h&&l(c,h))return r(null);const u=i.dirname(e);a(u,((i,s)=>i?r(i):s?n(t,e):void o.mkdirs(u,(i=>{if(i)return r(i);n(t,e)}))))}))}))})),createLinkSync:function(t,e){let r;try{r=s.lstatSync(e)}catch{}try{const e=s.lstatSync(t);if(r&&l(e,r))return}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return s.existsSync(n)||o.mkdirsSync(n),s.linkSync(t,e)}}},7650:(t,e,r)=>{const n=r(1017),i=r(85),s=r(9699).pathExists;t.exports={symlinkPaths:function(t,e,r){if(n.isAbsolute(t))return i.lstat(t,(e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:t})));{const o=n.dirname(e),a=n.join(o,t);return s(a,((e,s)=>e?r(e):s?r(null,{toCwd:a,toDst:t}):i.lstat(t,(e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:n.relative(o,t)})))))}},symlinkPathsSync:function(t,e){let r;if(n.isAbsolute(t)){if(r=i.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const s=n.dirname(e),o=n.join(s,t);if(r=i.existsSync(o),r)return{toCwd:o,toDst:t};if(r=i.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:n.relative(s,t)}}}}},2947:(t,e,r)=>{const n=r(85);t.exports={symlinkType:function(t,e,r){if(r="function"==typeof e?e:r,e="function"!=typeof e&&e)return r(null,e);n.lstat(t,((t,n)=>{if(t)return r(null,"file");e=n&&n.isDirectory()?"dir":"file",r(null,e)}))},symlinkTypeSync:function(t,e){let r;if(e)return e;try{r=n.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},3318:(t,e,r)=>{const n=r(5725).fromCallback,i=r(1017),s=r(2143),o=r(5145),a=o.mkdirs,l=o.mkdirsSync,c=r(7650),h=c.symlinkPaths,u=c.symlinkPathsSync,d=r(2947),f=d.symlinkType,p=d.symlinkTypeSync,m=r(9699).pathExists,{areIdentical:g}=r(3719);function y(t,e,r,n){h(t,e,((o,l)=>{if(o)return n(o);t=l.toDst,f(l.toCwd,r,((r,o)=>{if(r)return n(r);const l=i.dirname(e);m(l,((r,i)=>r?n(r):i?s.symlink(t,e,o,n):void a(l,(r=>{if(r)return n(r);s.symlink(t,e,o,n)}))))}))}))}t.exports={createSymlink:n((function(t,e,r,n){n="function"==typeof r?r:n,r="function"!=typeof r&&r,s.lstat(e,((i,o)=>{!i&&o.isSymbolicLink()?Promise.all([s.stat(t),s.stat(e)]).then((([i,s])=>{if(g(i,s))return n(null);y(t,e,r,n)})):y(t,e,r,n)}))})),createSymlinkSync:function(t,e,r){let n;try{n=s.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){const r=s.statSync(t),n=s.statSync(e);if(g(r,n))return}const o=u(t,e);t=o.toDst,r=p(o.toCwd,r);const a=i.dirname(e);return s.existsSync(a)||l(a),s.symlinkSync(t,e,r)}}},2143:(t,e,r)=>{const n=r(5725).fromCallback,i=r(85),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((t=>"function"==typeof i[t]));Object.assign(e,i),s.forEach((t=>{e[t]=n(i[t])})),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise((e=>i.exists(t,e)))},e.read=function(t,e,r,n,s,o){return"function"==typeof o?i.read(t,e,r,n,s,o):new Promise(((o,a)=>{i.read(t,e,r,n,s,((t,e,r)=>{if(t)return a(t);o({bytesRead:e,buffer:r})}))}))},e.write=function(t,e,...r){return"function"==typeof r[r.length-1]?i.write(t,e,...r):new Promise(((n,s)=>{i.write(t,e,...r,((t,e,r)=>{if(t)return s(t);n({bytesWritten:e,buffer:r})}))}))},"function"==typeof i.writev&&(e.writev=function(t,e,...r){return"function"==typeof r[r.length-1]?i.writev(t,e,...r):new Promise(((n,s)=>{i.writev(t,e,...r,((t,e,r)=>{if(t)return s(t);n({bytesWritten:e,buffers:r})}))}))}),"function"==typeof i.realpath.native?e.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},890:(t,e,r)=>{t.exports={...r(2143),...r(1889),...r(4088),...r(2689),...r(9270),...r(5145),...r(4146),...r(5048),...r(9699),...r(3495)}},9270:(t,e,r)=>{const n=r(5725).fromPromise,i=r(9691);i.outputJson=n(r(8700)),i.outputJsonSync=r(2286),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},9691:(t,e,r)=>{const n=r(370);t.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},2286:(t,e,r)=>{const{stringify:n}=r(7154),{outputFileSync:i}=r(5048);t.exports=function(t,e,r){const s=n(e,r);i(t,s,r)}},8700:(t,e,r)=>{const{stringify:n}=r(7154),{outputFile:i}=r(5048);t.exports=async function(t,e,r={}){const s=n(e,r);await i(t,s,r)}},5145:(t,e,r)=>{const n=r(5725).fromPromise,{makeDir:i,makeDirSync:s}=r(646),o=n(i);t.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},646:(t,e,r)=>{const n=r(2143),{checkPath:i}=r(8051),s=t=>"number"==typeof t?t:{mode:511,...t}.mode;t.exports.makeDir=async(t,e)=>(i(t),n.mkdir(t,{mode:s(e),recursive:!0})),t.exports.makeDirSync=(t,e)=>(i(t),n.mkdirSync(t,{mode:s(e),recursive:!0}))},8051:(t,e,r)=>{const n=r(1017);t.exports.checkPath=function(t){if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(n.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}}},4146:(t,e,r)=>{const n=r(5725).fromCallback;t.exports={move:n(r(2571)),moveSync:r(1612)}},1612:(t,e,r)=>{const n=r(85),i=r(1017),s=r(1889).copySync,o=r(3495).removeSync,a=r(5145).mkdirpSync,l=r(3719);function c(t,e,r){try{n.renameSync(t,e)}catch(n){if("EXDEV"!==n.code)throw n;return function(t,e,r){return s(t,e,{overwrite:r,errorOnExist:true}),o(t)}(t,e,r)}}t.exports=function(t,e,r){const s=(r=r||{}).overwrite||r.clobber||!1,{srcStat:h,isChangingCase:u=!1}=l.checkPathsSync(t,e,"move",r);return l.checkParentPathsSync(t,h,e,"move"),function(t){const e=i.dirname(t);return i.parse(e).root===e}(e)||a(i.dirname(e)),function(t,e,r,i){if(i)return c(t,e,r);if(r)return o(e),c(t,e,r);if(n.existsSync(e))throw new Error("dest already exists.");return c(t,e,r)}(t,e,s,u)}},2571:(t,e,r)=>{const n=r(85),i=r(1017),s=r(1889).copy,o=r(3495).remove,a=r(5145).mkdirp,l=r(9699).pathExists,c=r(3719);function h(t,e,r,n,i){return n?u(t,e,r,i):r?o(e,(n=>n?i(n):u(t,e,r,i))):void l(e,((n,s)=>n?i(n):s?i(new Error("dest already exists.")):u(t,e,r,i)))}function u(t,e,r,i){n.rename(t,e,(n=>n?"EXDEV"!==n.code?i(n):function(t,e,r,n){s(t,e,{overwrite:r,errorOnExist:!0},(e=>e?n(e):o(t,n)))}(t,e,r,i):i()))}t.exports=function(t,e,r,n){"function"==typeof r&&(n=r,r={});const s=(r=r||{}).overwrite||r.clobber||!1;c.checkPaths(t,e,"move",r,((r,o)=>{if(r)return n(r);const{srcStat:l,isChangingCase:u=!1}=o;c.checkParentPaths(t,l,e,"move",(r=>r?n(r):function(t){const e=i.dirname(t);return i.parse(e).root===e}(e)?h(t,e,s,u,n):void a(i.dirname(e),(r=>r?n(r):h(t,e,s,u,n)))))}))}},5048:(t,e,r)=>{const n=r(5725).fromCallback,i=r(85),s=r(1017),o=r(5145),a=r(9699).pathExists;t.exports={outputFile:n((function(t,e,r,n){"function"==typeof r&&(n=r,r="utf8");const l=s.dirname(t);a(l,((s,a)=>s?n(s):a?i.writeFile(t,e,r,n):void o.mkdirs(l,(s=>{if(s)return n(s);i.writeFile(t,e,r,n)}))))})),outputFileSync:function(t,...e){const r=s.dirname(t);if(i.existsSync(r))return i.writeFileSync(t,...e);o.mkdirsSync(r),i.writeFileSync(t,...e)}}},9699:(t,e,r)=>{const n=r(5725).fromPromise,i=r(2143);t.exports={pathExists:n((function(t){return i.access(t).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},3495:(t,e,r)=>{const n=r(85),i=r(5725).fromCallback,s=r(9373);t.exports={remove:i((function(t,e){if(n.rm)return n.rm(t,{recursive:!0,force:!0},e);s(t,e)})),removeSync:function(t){if(n.rmSync)return n.rmSync(t,{recursive:!0,force:!0});s.sync(t)}}},9373:(t,e,r)=>{const n=r(85),i=r(1017),s=r(9491),o="win32"===process.platform;function a(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((e=>{t[e]=t[e]||n[e],t[e+="Sync"]=t[e]||n[e]})),t.maxBusyTries=t.maxBusyTries||3}function l(t,e,r){let n=0;"function"==typeof e&&(r=e,e={}),s(t,"rimraf: missing path"),s.strictEqual(typeof t,"string","rimraf: path should be a string"),s.strictEqual(typeof r,"function","rimraf: callback function required"),s(e,"rimraf: invalid options argument provided"),s.strictEqual(typeof e,"object","rimraf: options should be object"),a(e),c(t,e,(function i(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&n<e.maxBusyTries){n++;return setTimeout((()=>c(t,e,i)),100*n)}"ENOENT"===s.code&&(s=null)}r(s)}))}function c(t,e,r){s(t),s(e),s("function"==typeof r),e.lstat(t,((n,i)=>n&&"ENOENT"===n.code?r(null):n&&"EPERM"===n.code&&o?h(t,e,n,r):i&&i.isDirectory()?d(t,e,n,r):void e.unlink(t,(n=>{if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return o?h(t,e,n,r):d(t,e,n,r);if("EISDIR"===n.code)return d(t,e,n,r)}return r(n)}))))}function h(t,e,r,n){s(t),s(e),s("function"==typeof n),e.chmod(t,438,(i=>{i?n("ENOENT"===i.code?null:r):e.stat(t,((i,s)=>{i?n("ENOENT"===i.code?null:r):s.isDirectory()?d(t,e,r,n):e.unlink(t,n)}))}))}function u(t,e,r){let n;s(t),s(e);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw r}try{n=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw r}n.isDirectory()?p(t,e,r):e.unlinkSync(t)}function d(t,e,r,n){s(t),s(e),s("function"==typeof n),e.rmdir(t,(o=>{!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?o&&"ENOTDIR"===o.code?n(r):n(o):function(t,e,r){s(t),s(e),s("function"==typeof r),e.readdir(t,((n,s)=>{if(n)return r(n);let o,a=s.length;if(0===a)return e.rmdir(t,r);s.forEach((n=>{l(i.join(t,n),e,(n=>{if(!o)return n?r(o=n):void(0==--a&&e.rmdir(t,r))}))}))}))}(t,e,n)}))}function f(t,e){let r;a(e=e||{}),s(t,"rimraf: missing path"),s.strictEqual(typeof t,"string","rimraf: path should be a string"),s(e,"rimraf: missing options"),s.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&o&&u(t,e,r)}try{r&&r.isDirectory()?p(t,e,null):e.unlinkSync(t)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return o?u(t,e,r):p(t,e,r);if("EISDIR"!==r.code)throw r;p(t,e,r)}}function p(t,e,r){s(t),s(e);try{e.rmdirSync(t)}catch(n){if("ENOTDIR"===n.code)throw r;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(t,e){if(s(t),s(e),e.readdirSync(t).forEach((r=>f(i.join(t,r),e))),!o){return e.rmdirSync(t,e)}{const r=Date.now();do{try{return e.rmdirSync(t,e)}catch{}}while(Date.now()-r<500)}}(t,e);else if("ENOENT"!==n.code)throw n}}t.exports=l,l.sync=f},3719:(t,e,r)=>{const n=r(2143),i=r(1017),s=r(3837);function o(t,e,r){const i=r.dereference?t=>n.stat(t,{bigint:!0}):t=>n.lstat(t,{bigint:!0});return Promise.all([i(t),i(e).catch((t=>{if("ENOENT"===t.code)return null;throw t}))]).then((([t,e])=>({srcStat:t,destStat:e})))}function a(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function l(t,e){const r=i.resolve(t).split(i.sep).filter((t=>t)),n=i.resolve(e).split(i.sep).filter((t=>t));return r.reduce(((t,e,r)=>t&&n[r]===e),!0)}function c(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,r,n,h){s.callbackify(o)(t,e,n,((n,s)=>{if(n)return h(n);const{srcStat:o,destStat:u}=s;if(u){if(a(o,u)){const n=i.basename(t),s=i.basename(e);return"move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase()?h(null,{srcStat:o,destStat:u,isChangingCase:!0}):h(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return h(new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`));if(!o.isDirectory()&&u.isDirectory())return h(new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`))}return o.isDirectory()&&l(t,e)?h(new Error(c(t,e,r))):h(null,{srcStat:o,destStat:u})}))},checkPathsSync:function(t,e,r,s){const{srcStat:o,destStat:h}=function(t,e,r){let i;const s=r.dereference?t=>n.statSync(t,{bigint:!0}):t=>n.lstatSync(t,{bigint:!0}),o=s(t);try{i=s(e)}catch(t){if("ENOENT"===t.code)return{srcStat:o,destStat:null};throw t}return{srcStat:o,destStat:i}}(t,e,s);if(h){if(a(o,h)){const n=i.basename(t),s=i.basename(e);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:o,destStat:h,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!h.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!o.isDirectory()&&h.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(o.isDirectory()&&l(t,e))throw new Error(c(t,e,r));return{srcStat:o,destStat:h}},checkParentPaths:function t(e,r,s,o,l){const h=i.resolve(i.dirname(e)),u=i.resolve(i.dirname(s));if(u===h||u===i.parse(u).root)return l();n.stat(u,{bigint:!0},((n,i)=>n?"ENOENT"===n.code?l():l(n):a(r,i)?l(new Error(c(e,s,o))):t(e,r,u,o,l)))},checkParentPathsSync:function t(e,r,s,o){const l=i.resolve(i.dirname(e)),h=i.resolve(i.dirname(s));if(h===l||h===i.parse(h).root)return;let u;try{u=n.statSync(h,{bigint:!0})}catch(t){if("ENOENT"===t.code)return;throw t}if(a(r,u))throw new Error(c(e,s,o));return t(e,r,h,o)},isSrcSubdir:l,areIdentical:a}},2450:(t,e,r)=>{const n=r(85);t.exports={utimesMillis:function(t,e,r,i){n.open(t,"r+",((t,s)=>{if(t)return i(t);n.futimes(s,e,r,(t=>{n.close(s,(e=>{i&&i(t||e)}))}))}))},utimesMillisSync:function(t,e,r){const i=n.openSync(t,"r+");return n.futimesSync(i,e,r),n.closeSync(i)}}},4203:t=>{t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var r={__proto__:e(t)};else r=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})),r};var e=Object.getPrototypeOf||function(t){return t.__proto__}},85:(t,e,r)=>{var n,i,s=r(7147),o=r(2965),a=r(5361),l=r(4203),c=r(3837);function h(t,e){Object.defineProperty(t,n,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var u,d=function(){};if(c.debuglog?d=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var t=c.format.apply(c,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!s[n]){var f=global[n]||[];h(s,f),s.close=function(t){function e(e,r){return t.call(s,e,(function(t){t||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(e,i,{value:t}),e}(s.close),s.closeSync=function(t){function e(e){t.apply(s,arguments),g()}return Object.defineProperty(e,i,{value:t}),e}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(9491).equal(s[n].length,0)}))}function p(t){o(t),t.gracefulify=p,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,n){"function"==typeof r&&(n=r,r=null);return function t(r,n,i,s){return e(r,n,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof i&&i.apply(this,arguments):m([t,[r,n,i],e,s||Date.now(),Date.now()])}))}(t,r,n)};var r=t.writeFile;t.writeFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,s,o){return r(e,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):m([t,[e,n,i,s],r,o||Date.now(),Date.now()])}))}(t,e,n,i)};var n=t.appendFile;n&&(t.appendFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,s,o){return n(e,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):m([t,[e,r,i,s],n,o||Date.now(),Date.now()])}))}(t,e,r,i)});var i=t.copyFile;i&&(t.copyFile=function(t,e,r,n){"function"==typeof r&&(n=r,r=0);return function t(e,r,n,s,o){return i(e,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):m([t,[e,r,n,s],i,o||Date.now(),Date.now()])}))}(t,e,r,n)});var s=t.readdir;t.readdir=function(t,e,r){"function"==typeof e&&(r=e,e=null);var n=l.test(process.version)?function(t,e,r,n){return s(t,i(t,e,r,n))}:function(t,e,r,n){return s(t,e,i(t,e,r,n))};return n(t,e,r);function i(t,e,r,i){return function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o)):m([n,[t,e,r],s,i||Date.now(),Date.now()])}}};var l=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var c=a(t);g=c.ReadStream,y=c.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=function(){var t=this;v(t.path,t.flags,t.mode,(function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())}))});var u=t.WriteStream;u&&(y.prototype=Object.create(u.prototype),y.prototype.open=function(){var t=this;v(t.path,t.flags,t.mode,(function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(t){g=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(t){y=t},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(t,"FileReadStream",{get:function(){return d},set:function(t){d=t},enumerable:!0,configurable:!0});var f=y;function g(t,e){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function y(t,e){return this instanceof y?(u.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return f},set:function(t){f=t},enumerable:!0,configurable:!0});var b=t.open;function v(t,e,r,n){return"function"==typeof r&&(n=r,r=null),function t(e,r,n,i,s){return b(e,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):m([t,[e,r,n,i],o,s||Date.now(),Date.now()])}))}(t,e,r,n)}return t.open=v,t}function m(t){d("ENQUEUE",t[0].name,t[1]),s[n].push(t),y()}function g(){for(var t=Date.now(),e=0;e<s[n].length;++e)s[n][e].length>2&&(s[n][e][3]=t,s[n][e][4]=t);y()}function y(){if(clearTimeout(u),u=void 0,0!==s[n].length){var t=s[n].shift(),e=t[0],r=t[1],i=t[2],o=t[3],a=t[4];if(void 0===o)d("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",e.name,r);var l=r.pop();"function"==typeof l&&l.call(null,i)}else{var c=Date.now()-a,h=Math.max(a-o,1);c>=Math.min(1.2*h,100)?(d("RETRY",e.name,r),e.apply(null,r.concat([o]))):s[n].push(t)}void 0===u&&(u=setTimeout(y,0))}}global[n]||h(global,s[n]),t.exports=p(l(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(t.exports=p(s),s.__patched=!0)},5361:(t,e,r)=>{var n=r(2781).Stream;t.exports=function(t){return{ReadStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),a=0,l=o.length;a<l;a++){var c=o[a];this[c]=i[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){s._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return s.emit("error",t),void(s.readable=!1);s.fd=e,s.emit("open",e),s._read()}))},WriteStream:function e(r,i){if(!(this instanceof e))return new e(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},2965:(t,e,r)=>{var n=r(2057),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(t){s=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}t.exports=function(t){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,r,i){t.open(e,n.O_WRONLY|n.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(e,r){var i,s=t.openSync(e,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=t.fchmodSync(s,r),o=!1}finally{if(o)try{t.closeSync(s)}catch(t){}else t.closeSync(s)}return i}}(t);t.lutimes||function(t){n.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,r,i,s){t.open(e,n.O_SYMLINK,(function(e,n){e?s&&s(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){s&&s(e||t)}))}))}))},t.lutimesSync=function(e,r,i){var s,o=t.openSync(e,n.O_SYMLINK),a=!0;try{s=t.futimesSync(o,r,i),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return s}):t.futimes&&(t.lutimes=function(t,e,r,n){n&&process.nextTick(n)},t.lutimesSync=function(){})}(t);t.chown=i(t.chown),t.fchown=i(t.fchown),t.lchown=i(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=r(t.chmodSync),t.fchmodSync=r(t.fchmodSync),t.lchmodSync=r(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(t,e,r,n){n&&process.nextTick(n)},t.lchownSync=function(){});"win32"===o&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function r(r,n,i){var s=Date.now(),o=0;e(r,n,(function a(l){if(l&&("EACCES"===l.code||"EPERM"===l.code)&&Date.now()-s<6e4)return setTimeout((function(){t.stat(n,(function(t,s){t&&"ENOENT"===t.code?e(r,n,a):i(l)}))}),o),void(o<100&&(o+=10));i&&i(l)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.rename));function e(e){return e?function(r,n,i){return e.call(t,r,n,(function(t){c(t)&&(t=null),i&&i.apply(this,arguments)}))}:e}function r(e){return e?function(r,n){try{return e.call(t,r,n)}catch(t){if(!c(t))throw t}}:e}function i(e){return e?function(r,n,i,s){return e.call(t,r,n,i,(function(t){c(t)&&(t=null),s&&s.apply(this,arguments)}))}:e}function s(e){return e?function(r,n,i){try{return e.call(t,r,n,i)}catch(t){if(!c(t))throw t}}:e}function a(e){return e?function(r,n,i){function s(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?e.call(t,r,n,s):e.call(t,r,s)}:e}function l(e){return e?function(r,n){var i=n?e.call(t,r,n):e.call(t,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:e}function c(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read="function"!=typeof t.read?t.read:function(e){function r(r,n,i,s,o,a){var l;if(a&&"function"==typeof a){var c=0;l=function(h,u,d){if(h&&"EAGAIN"===h.code&&c<10)return c++,e.call(t,r,n,i,s,o,l);a.apply(this,arguments)}}return e.call(t,r,n,i,s,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(h=t.readSync,function(e,r,n,i,s){for(var o=0;;)try{return h.call(t,e,r,n,i,s)}catch(t){if("EAGAIN"===t.code&&o<10){o++;continue}throw t}});var h}},8137:t=>{t.exports=(t,e=process.argv)=>{const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}},8874:(t,e,r)=>{try{var n=r(3837);if("function"!=typeof n.inherits)throw"";t.exports=n.inherits}catch(e){t.exports=r(1285)}},1285:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},139:t=>{t.exports=t=>{if("object"!=typeof t||null===t)throw new TypeError("Expected an object");const e={};for(const[r,n]of Object.entries(t))e[n]=r;for(const r of Object.getOwnPropertySymbols(t)){e[t[r]]=r}return e}},5909:(t,e,r)=>{var n;r(7147);function i(t,e,r){if("function"==typeof e&&(r=e,e={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(t,e||{},(function(t,e){t?n(t):r(e)}))}))}n(t,e||{},(function(t,n){t&&("EACCES"===t.code||e&&e.ignoreErrors)&&(t=null,n=!1),r(t,n)}))}n="win32"===process.platform||global.TESTING_WINDOWS?r(837):r(4703),t.exports=i,i.sync=function(t,e){try{return n.sync(t,e||{})}catch(t){if(e&&e.ignoreErrors||"EACCES"===t.code)return!1;throw t}}},4703:(t,e,r)=>{t.exports=i,i.sync=function(t,e){return s(n.statSync(t),e)};var n=r(7147);function i(t,e,r){n.stat(t,(function(t,n){r(t,!t&&s(n,e))}))}function s(t,e){return t.isFile()&&function(t,e){var r=t.mode,n=t.uid,i=t.gid,s=void 0!==e.uid?e.uid:process.getuid&&process.getuid(),o=void 0!==e.gid?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),h=a|l;return r&c||r&l&&i===o||r&a&&n===s||r&h&&0===s}(t,e)}},837:(t,e,r)=>{t.exports=s,s.sync=function(t,e){return i(n.statSync(t),t,e)};var n=r(7147);function i(t,e,r){return!(!t.isSymbolicLink()&&!t.isFile())&&function(t,e){var r=void 0!==e.pathExt?e.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}(e,r)}function s(t,e,r){n.stat(t,(function(n,s){r(n,!n&&i(s,t,e))}))}},370:(t,e,r)=>{let n;try{n=r(85)}catch(t){n=r(7147)}const i=r(5725),{stringify:s,stripBom:o}=r(7154);const a={readFile:i.fromPromise((async function(t,e={}){"string"==typeof e&&(e={encoding:e});const r=e.fs||n,s=!("throws"in e)||e.throws;let a,l=await i.fromCallback(r.readFile)(t,e);l=o(l);try{a=JSON.parse(l,e?e.reviver:null)}catch(e){if(s)throw e.message=`${t}: ${e.message}`,e;return null}return a})),readFileSync:function(t,e={}){"string"==typeof e&&(e={encoding:e});const r=e.fs||n,i=!("throws"in e)||e.throws;try{let n=r.readFileSync(t,e);return n=o(n),JSON.parse(n,e.reviver)}catch(e){if(i)throw e.message=`${t}: ${e.message}`,e;return null}},writeFile:i.fromPromise((async function(t,e,r={}){const o=r.fs||n,a=s(e,r);await i.fromCallback(o.writeFile)(t,a,r)})),writeFileSync:function(t,e,r={}){const i=r.fs||n,o=s(e,r);return i.writeFileSync(t,o,r)}};t.exports=a},7154:t=>{t.exports={stringify:function(t,{EOL:e="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s},stripBom:function(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}}},3041:t=>{const{FORCE_COLOR:e,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==e,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function s(t,e){let r,n=0,i="",s="";for(;n<t.length;n++)r=t[n],i+=r.open,s+=r.close,e.includes(r.close)&&(e=e.replace(r.rgx,r.close+r.open));return i+e+s}function o(t,e){let r={open:`\x1b[${t}m`,close:`\x1b[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(e){return void 0!==this&&void 0!==this.has?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),void 0===e?this:i.enabled?s(this.keys,e+""):e+""):void 0===e?function(t,e){let r={has:t,keys:e};return 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),r}([t],[r]):i.enabled?s([r],e+""):e+""}}t.exports=i},1482:(t,e,r)=>{const n=r(139),i=r(9233),s=n(i);e.from=t=>{if("number"!=typeof t)throw new TypeError("Expected a number");return i[t]},e.to=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");if(s[t])return Number(s[t])},e.all=new Proxy(s,{get(t,e){const r=t[e];if(r)return Number(r)}})},7105:(t,e,r)=>{const n=r(8006),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),h=Symbol("noDisposeOnSet"),u=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(t,e,r)=>{const n=t[d].get(e);if(n){const e=n.value;if(g(t,e)){if(b(t,n),!t[a])return}else r&&(t[f]&&(n.value.now=Date.now()),t[u].unshiftNode(n));return e.value}},g=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},y=t=>{if(t[s]>t[i])for(let e=t[u].tail;t[s]>t[i]&&null!==e;){const r=e.prev;b(t,e),e=r}},b=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[s]-=r.length,t[d].delete(r.key),t[u].removeNode(e)}};class v{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const w=(t,e,r,n)=>{let i=r.value;g(t,i)&&(b(t,r),t[a]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[o]="function"!=typeof e?p:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[c]=t.dispose,this[h]=t.noDisposeOnSet||!1,this[f]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,y(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!=typeof t&&(t=p),t!==this[o]&&(this[o]=t,this[s]=0,this[u].forEach((t=>{t.length=this[o](t.value,t.key),this[s]+=t.length}))),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[u].length}rforEach(t,e){e=e||this;for(let r=this[u].tail;null!==r;){const n=r.prev;w(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[u].head;null!==r;){const n=r.next;w(this,t,r,e),r=n}}keys(){return this[u].toArray().map((t=>t.key))}values(){return this[u].toArray().map((t=>t.value))}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach((t=>this[c](t.key,t.value))),this[d]=new Map,this[u]=new n,this[s]=0}dump(){return this[u].map((t=>!g(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[u]}set(t,e,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[o](e,t);if(this[d].has(t)){if(a>this[i])return b(this,this[d].get(t)),!1;const o=this[d].get(t).value;return this[c]&&(this[h]||this[c](t,o.value)),o.now=n,o.maxAge=r,o.value=e,this[s]+=a-o.length,o.length=a,this.get(t),y(this),!0}const f=new v(t,e,a,n,r);return f.length>this[i]?(this[c]&&this[c](t,e),!1):(this[s]+=f.length,this[u].unshift(f),this[d].set(t,this[u].head),y(this),!0)}has(t){if(!this[d].has(t))return!1;const e=this[d].get(t).value;return!g(this,e)}get(t){return m(this,t,!0)}peek(t){return m(this,t,!1)}pop(){const t=this[u].tail;return t?(b(this,t),t.value):null}del(t){b(this,this[d].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[d].forEach(((t,e)=>m(this,e,!1)))}}},873:(t,e,r)=>{const{PassThrough:n}=r(2781);t.exports=function(){var t=[],e=new n({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(r),e;function r(n){return Array.isArray(n)?(n.forEach(r),this):(t.push(n),n.once("end",s.bind(null,n)),n.once("error",e.emit.bind(e,"error")),n.pipe(e,{end:!1}),this)}function i(){return 0==t.length}function s(r){!(t=t.filter((function(t){return t!==r}))).length&&e.readable&&e.end()}}},3937:(t,e,r)=>{const n=r(6587),i=new WeakMap,s=(t,e={})=>{if("function"!=typeof t)throw new TypeError("Expected a function");let r,s=0;const o=t.displayName||t.name||"<anonymous>",a=function(...n){if(i.set(a,++s),1===s)r=t.apply(this,n),t=null;else if(!0===e.throw)throw new Error(`Function \`${o}\` can only be called once`);return r};return n(a,t),i.set(a,s),a};t.exports=s,t.exports.default=s,t.exports.callCount=t=>{if(!i.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return i.get(t)}},6587:t=>{const e=(t,e)=>{for(const r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};t.exports=e,t.exports.default=e},5528:(t,e,r)=>{var n=r(633);t.exports=function(t){if("string"!=typeof t)throw new TypeError("expected author to be a string");if(!t||!/\w/.test(t))return{};var e=[].concat.apply([],n().exec(t)),r={};e[1]&&(r.name=e[1]);for(var i=2;i<e.length;i++){var s=e[i];i%2==0&&s&&e[i+1]&&("<"===s.charAt(0)?(r.email=e[i+1],i++):"("===s.charAt(0)&&(r.url=e[i+1],i++))}return r}},6569:t=>{const e=(t={})=>{const e=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"};t.exports=e,t.exports.default=e},182:t=>{class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},5292:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},9822:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},8448:(t,e,r)=>{t.exports={DatePart:r(182),Meridiem:r(4722),Day:r(5292),Hours:r(9822),Milliseconds:r(1896),Minutes:r(7465),Month:r(5009),Seconds:r(3920),Year:r(9319)}},4722:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},1896:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},7465:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},5009:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},3920:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},9319:(t,e,r)=>{const n=r(182);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},7974:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}const i=r(3041),s=r(4507),o=r(7840),a=o.erase,l=o.cursor,c=r(2410),h=c.style,u=c.clear,d=c.figures,f=c.wrap,p=c.entriesToDisplay,m=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),g=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=h.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=u("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=m(this.suggestions,t):this.value=this.fallback.value,this.fire()}complete(t){var e,r=this;return(e=function*(){const e=r.completing=r.suggest(r.input,r.choices),n=yield e;if(r.completing!==e)return;r.suggestions=n.map(((t,e,r)=>({title:g(r,e),value:m(r,e),description:t.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),t&&t()},function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,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()}renderOption(t,e,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=e?i.cyan().underline(t.title):t.title;return o=(e?i.cyan(d.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+f(t.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(l.hide):this.out.write(u(this.outputText,this.out.columns)),super.render();let t=p(this.select,this.choices.length,this.limit),e=t.startIndex,r=t.endIndex;if(this.outputText=[h.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),h.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const t=this.suggestions.slice(e,r).map(((t,n)=>this.renderOption(t,this.select===n+e,0===n&&e>0,n+e===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(t||i.gray(this.fallback.title))}this.out.write(a.line+l.to(0)+this.outputText)}}},4831:(t,e,r)=>{const n=r(3041),i=r(7840).cursor,s=r(2594),o=r(2410),a=o.clear,l=o.style,c=o.figures;t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=a("",this.out.columns),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(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\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(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(c.radioOn):c.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},2696:(t,e,r)=>{const n=r(3041),i=r(4507),s=r(2410),o=s.style,a=s.clear,l=r(7840),c=l.erase,h=l.cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(h.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(c.line+h.to(0)+this.outputText))}}},8577:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(3041),o=r(4507),a=r(2410),l=a.style,c=a.clear,h=a.figures,u=r(7840),d=u.erase,f=u.cursor,p=r(8448),m=p.DatePart,g=p.Meridiem,y=p.Day,b=p.Hours,v=p.Milliseconds,w=p.Minutes,E=p.Month,_=p.Seconds,x=p.Year,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,O={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new y(t),3:t=>new E(t),4:t=>new x(t),5:t=>new g(t),6:t=>new b(t),7:t=>new w(t),8:t=>new _(t),9:t=>new v(t)},T={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(",")};t.exports=class extends o{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(T,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=c("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=S.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in O?O[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof m))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof m))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(f.hide):this.out.write(c(this.outputText,this.out.columns)),super.render(),this.outputText=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:s.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(d.line+f.to(0)+this.outputText))}}},1791:(t,e,r)=>{t.exports={TextPrompt:r(3376),SelectPrompt:r(1278),TogglePrompt:r(9056),DatePrompt:r(8577),NumberPrompt:r(5098),MultiselectPrompt:r(2594),AutocompletePrompt:r(7974),AutocompleteMultiselectPrompt:r(4831),ConfirmPrompt:r(2696)}},2594:(t,e,r)=>{const n=r(3041),i=r(7840).cursor,s=r(4507),o=r(2410),a=o.clear,l=o.figures,c=o.style,h=o.wrap,u=o.entriesToDisplay;t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=a("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,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(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(l.radioOn):l.radioOff)+" "+i+" ";let o,a;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(a=` - ${e.description}`,(s.length+o.length+a.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(a="\n"+h(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,r=u(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)e=r===i&&i>0?l.arrowUp:r===s-1&&s<t.length?l.arrowDown:" ",o.push(this.renderOption(this.cursor,t[r],r,e));return"\n"+o.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},5098:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(3041),o=r(4507),a=r(7840),l=a.cursor,c=a.erase,h=r(2410),u=h.style,d=h.figures,f=h.clear,p=h.lines,m=/[0-9]/,g=t=>void 0!==t,y=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends o{constructor(t={}){super(t),this.transform=u.render(t.style),this.msg=t.message,this.initial=g(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=g(t.min)?t.min:-1/0,this.max=g(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${y(t,this.round)}`),this._value=y(t,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||m.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();let e=t.value;t.value=""!==e?e:t.initial,t.done=!0,t.aborted=!1,t.error=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(l.down(p(this.outputError,this.out.columns)-1)+f(this.outputError,this.out.columns)),this.out.write(f(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:s[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":d.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(c.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore))}}},4507:(t,e,r)=>{const n=r(4521),i=r(2410).action,s=r(2361),o=r(7840),a=o.beep,l=o.cursor,c=r(3041);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(l.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(a)}render(){this.onRender(c),this.firstRender&&(this.firstRender=!1)}}},1278:(t,e,r)=>{const n=r(3041),i=r(4507),s=r(2410),o=s.style,a=s.clear,l=s.figures,c=s.wrap,h=s.entriesToDisplay,u=r(7840).cursor;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(u.hide):this.out.write(a(this.outputText,this.out.columns)),super.render();let t=h(this.cursor,this.choices.length,this.optionsPerPage),e=t.startIndex,r=t.endIndex;if(this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let t=e;t<r;t++){let i,s,o="",a=this.choices[t];s=t===e&&e>0?l.arrowUp:t===r-1&&r<this.choices.length?l.arrowDown:" ",a.disabled?(i=this.cursor===t?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===t?n.bold().gray(l.pointer)+" ":" ")+s):(i=this.cursor===t?n.cyan().underline(a.title):a.title,s=(this.cursor===t?n.cyan(l.pointer)+" ":" ")+s,a.description&&this.cursor===t&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+c(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},3376:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}const s=r(3041),o=r(4507),a=r(7840),l=a.erase,c=a.cursor,h=r(2410),u=h.style,d=h.clear,f=h.lines,p=h.figures;t.exports=class extends o{constructor(t={}){super(t),this.transform=u.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return i((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return i((function*(){if(t.value=t.value||t.initial,t.cursorOffset=0,t.cursor=t.rendered.length,yield t.validate(),t.error)return t.red=!0,t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,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()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(c.down(f(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns)),this.out.write(d(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":p.pointerSmall} ${s.red().italic(e)}`),"")),this.out.write(l.line+c.to(0)+this.outputText+c.save+this.outputError+c.restore+c.move(this.cursorOffset,0)))}}},9056:(t,e,r)=>{const n=r(3041),i=r(4507),s=r(2410),o=s.style,a=s.clear,l=r(7840),c=l.cursor,h=l.erase;t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,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()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(c.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(h.line+c.to(0)+this.outputText))}}},9422:(t,e,r)=>{function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){l=!0,s=t},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw s}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function o(t){l(s,n,i,o,a,"next",t)}function a(t){l(s,n,i,o,a,"throw",t)}o(void 0)}))}}const h=r(3700),u=["suggest","format","onState","validate","onRender","type"],d=()=>{};function f(){return p.apply(this,arguments)}function p(){return p=c((function*(t=[],{onSubmit:e=d,onCancel:r=d}={}){const n={},s=f._override||{};let a,l,p,g,y,b;t=[].concat(t);const v=function(){var t=c((function*(t,e,r=!1){if(r||!t.validate||!0===t.validate(e))return t.format?yield t.format(e,n):e}));return function(e,r){return t.apply(this,arguments)}}();var w,E=o(t);try{for(E.s();!(w=E.n()).done;){l=w.value;var _=l;if(g=_.name,y=_.type,"function"==typeof y&&(y=yield y(a,i({},n),l),l.type=y),y){for(let t in l){if(u.includes(t))continue;let e=l[t];l[t]="function"==typeof e?yield e(a,i({},n),b):e}if(b=l,"string"!=typeof l.message)throw new Error("prompt message is required");var x=l;if(g=x.name,y=x.type,void 0===h[y])throw new Error(`prompt type (${y}) is not defined`);if(void 0===s[l.name]||(a=yield v(l,s[l.name]),void 0===a)){try{a=f._injected?m(f._injected,l.initial):yield h[y](l),n[g]=a=yield v(l,a,!0),p=yield e(l,a,n)}catch(t){p=!(yield r(l,n))}if(p)return n}else n[g]=a}}}catch(t){E.e(t)}finally{E.f()}return n})),p.apply(this,arguments)}function m(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(f,{prompt:f,prompts:h,inject:function(t){f._injected=(f._injected||[]).concat(t)},override:function(t){f._override=Object.assign({},t)}})},3700:(t,e,r)=>{const n=e,i=r(1791),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,c=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(c(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},3667:t=>{t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},2875:(t,e,r)=>{function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const s=r(1444),o=r(7840),a=o.erase,l=o.cursor;t.exports=function(t,e){if(!e)return a.line+l.to(0);let r=0;var i,o=n(t.split(/\r?\n/));try{for(o.s();!(i=o.n()).done;){let t=i.value;r+=1+Math.floor(Math.max([...s(t)].length-1,0)/e)}}catch(t){o.e(t)}finally{o.f()}return a.lines(r)}},3578:t=>{t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},5592:t=>{const e={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},2410:(t,e,r)=>{t.exports={action:r(3667),clear:r(2875),style:r(8504),strip:r(1444),figures:r(5592),lines:r(9343),wrap:r(8847),entriesToDisplay:r(3578)}},9343:(t,e,r)=>{const n=r(1444);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},1444:t=>{t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},8504:(t,e,r)=>{const n=r(3041),i=r(5592),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1f603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},8847:t=>{t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},9035:(t,e,r)=>{t.exports=function(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}("8.6.0")?r(9422):r(2370)},149:t=>{class e{constructor({token:t,date:e,parts:r,locales:n}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,n)=>n>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},456:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},8010:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},2003:(t,e,r)=>{t.exports={DatePart:r(149),Meridiem:r(965),Day:r(456),Hours:r(8010),Milliseconds:r(4833),Minutes:r(730),Month:r(769),Seconds:r(4587),Year:r(4086)}},965:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},4833:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},730:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},769:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},4587:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},4086:(t,e,r)=>{const n=r(149);t.exports=class extends n{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},2716:(t,e,r)=>{const n=r(3041),i=r(1524),{erase:s,cursor:o}=r(7840),{style:a,clear:l,figures:c,wrap:h,entriesToDisplay:u}=r(7292),d=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),f=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=a.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=l("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=d(this.suggestions,t):this.value=this.fallback.value,this.fire()}async complete(t){const e=this.completing=this.suggest(this.input,this.choices),r=await e;if(this.completing!==e)return;this.suggestions=r.map(((t,e,r)=>({title:f(r,e),value:d(r,e),description:t.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),t&&t()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${t}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,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()}renderOption(t,e,r,i){let s,o=r?c.arrowUp:i?c.arrowDown:" ",a=e?n.cyan().underline(t.title):t.title;return o=(e?n.cyan(c.pointer)+" ":" ")+o,t.description&&(s=` - ${t.description}`,(o.length+a.length+s.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(s="\n"+h(t.description,{margin:3,width:this.out.columns}))),o+" "+a+n.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(l(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=u(this.select,this.choices.length,this.limit);if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),n.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const r=this.suggestions.slice(t,e).map(((r,n)=>this.renderOption(r,this.select===n+t,0===n&&t>0,n+t===e-1&&e<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},1776:(t,e,r)=>{const n=r(3041),{cursor:i}=r(7840),s=r(9200),{clear:o,style:a,figures:l}=r(7292);t.exports=class extends s{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=o("",this.out.columns),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(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\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(t,e,r){let i;return i=e.disabled?t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):t===r?n.cyan().underline(e.title):e.title,(e.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},8915:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o}=r(7292),{erase:a,cursor:l}=r(7840);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(a.line+l.to(0)+this.outputText))}}},5656:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o,figures:a}=r(7292),{erase:l,cursor:c}=r(7840),{DatePart:h,Meridiem:u,Day:d,Hours:f,Milliseconds:p,Minutes:m,Month:g,Seconds:y,Year:b}=r(2003),v=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,w={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new d(t),3:t=>new g(t),4:t=>new b(t),5:t=>new u(t),6:t=>new f(t),7:t=>new m(t),8:t=>new y(t),9:t=>new p(t)},E={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(",")};t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(E,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=o("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=v.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in w?w[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof h))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,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 t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof h))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(c.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:n.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":a.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(l.line+c.to(0)+this.outputText))}}},2434:(t,e,r)=>{t.exports={TextPrompt:r(4195),SelectPrompt:r(1298),TogglePrompt:r(826),DatePrompt:r(5656),NumberPrompt:r(5286),MultiselectPrompt:r(9200),AutocompletePrompt:r(2716),AutocompleteMultiselectPrompt:r(1776),ConfirmPrompt:r(8915)}},9200:(t,e,r)=>{const n=r(3041),{cursor:i}=r(7840),s=r(1524),{clear:o,figures:a,style:l,wrap:c,entriesToDisplay:h}=r(7292);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=o("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,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(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(t,e,r,i){const s=(e.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,l;return e.disabled?o=t===r?n.gray().underline(e.title):n.strikethrough().gray(e.title):(o=t===r?n.cyan().underline(e.title):e.title,t===r&&e.description&&(l=` - ${e.description}`,(s.length+o.length+l.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(l="\n"+c(e.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(l||"")}paginateOptions(t){if(0===t.length)return n.red("No matches for this query.");let e,{startIndex:r,endIndex:i}=h(this.cursor,t.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)e=n===r&&r>0?a.arrowUp:n===i-1&&i<t.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,t[n],n,e));return"\n"+s.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(n.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let t=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},5286:(t,e,r)=>{const n=r(3041),i=r(1524),{cursor:s,erase:o}=r(7840),{style:a,figures:l,clear:c,lines:h}=r(7292),u=/[0-9]/,d=t=>void 0!==t,f=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.msg=t.message,this.initial=d(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=d(t.min)?t.min:-1/0,this.max=d(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${f(t,this.round)}`),this._value=f(t,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||u.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let t=this.value;this.value=""!==t?t:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(h(this.outputError,this.out.columns)-1)+c(this.outputError,this.out.columns)),this.out.write(c(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":l.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},1524:(t,e,r)=>{const n=r(4521),{action:i}=r(7292),s=r(2361),{beep:o,cursor:a}=r(7840),l=r(3041);t.exports=class extends s{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(t,e)=>{let n=i(e,r);!1===n?this._&&this._(t,e):"function"==typeof this[n]?this[n](e):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(o)}render(){this.onRender(l),this.firstRender&&(this.firstRender=!1)}}},1298:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o,figures:a,wrap:l,entriesToDisplay:c}=r(7292),{cursor:h}=r(7840);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(" "===t)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(h.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=c(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let r=t;r<e;r++){let i,s,o="",c=this.choices[r];s=r===t&&t>0?a.arrowUp:r===e-1&&e<this.choices.length?a.arrowDown:" ",c.disabled?(i=this.cursor===r?n.gray().underline(c.title):n.strikethrough().gray(c.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(c.title):c.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,c.description&&this.cursor===r&&(o=` - ${c.description}`,(s.length+i.length+o.length>=this.out.columns||c.description.split(/\r?\n/).length>1)&&(o="\n"+l(c.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},4195:(t,e,r)=>{const n=r(3041),i=r(1524),{erase:s,cursor:o}=r(7840),{style:a,clear:l,lines:c,figures:h}=r(7292);t.exports=class extends i{constructor(t={}){super(t),this.transform=a.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=l("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,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(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,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()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(o.down(c(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":h.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},826:(t,e,r)=>{const n=r(3041),i=r(1524),{style:s,clear:o}=r(7292),{cursor:a,erase:l}=r(7840);t.exports=class extends i{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,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()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[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(" "),this.out.write(l.line+a.to(0)+this.outputText))}}},2370:(t,e,r)=>{const n=r(1145),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(t=[],{onSubmit:e=s,onCancel:r=s}={}){const l={},c=o._override||{};let h,u,d,f,p,m;t=[].concat(t);const g=async(t,e,r=!1)=>{if(r||!t.validate||!0===t.validate(e))return t.format?await t.format(e,l):e};for(u of t)if(({name:f,type:p}=u),"function"==typeof p&&(p=await p(h,{...l},u),u.type=p),p){for(let t in u){if(i.includes(t))continue;let e=u[t];u[t]="function"==typeof e?await e(h,{...l},m):e}if(m=u,"string"!=typeof u.message)throw new Error("prompt message is required");if(({name:f,type:p}=u),void 0===n[p])throw new Error(`prompt type (${p}) is not defined`);if(void 0===c[u.name]||(h=await g(u,c[u.name]),void 0===h)){try{h=o._injected?a(o._injected,u.initial):await n[p](u),l[f]=h=await g(u,h,!0),d=await e(u,h,l)}catch(t){d=!await r(u,l)}if(d)return l}else l[f]=h}return l}function a(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(t){o._injected=(o._injected||[]).concat(t)},override:function(t){o._override=Object.assign({},t)}})},1145:(t,e,r)=>{const n=e,i=r(2434),s=t=>t;function o(t,e,r={}){return new Promise(((n,o)=>{const a=new i[t](e),l=r.onAbort||s,c=r.onSubmit||s,h=r.onExit||s;a.on("state",e.onState||s),a.on("submit",(t=>n(c(t)))),a.on("exit",(t=>n(h(t)))),a.on("abort",(t=>o(l(t))))}))}n.text=t=>o("TextPrompt",t),n.password=t=>(t.style="password",n.text(t)),n.invisible=t=>(t.style="invisible",n.text(t)),n.number=t=>o("NumberPrompt",t),n.date=t=>o("DatePrompt",t),n.confirm=t=>o("ConfirmPrompt",t),n.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},n.toggle=t=>o("TogglePrompt",t),n.select=t=>o("SelectPrompt",t),n.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},n.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));n.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},3679:t=>{t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},7893:(t,e,r)=>{const n=r(6687),{erase:i,cursor:s}=r(7840);t.exports=function(t,e){if(!e)return i.line+s.to(0);let r=0;const o=t.split(/\r?\n/);for(let t of o)r+=1+Math.floor(Math.max([...n(t)].length-1,0)/e);return i.lines(r)}},7040:t=>{t.exports=(t,e,r)=>{r=r||e;let n=Math.min(e-r,t-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,e)}}},4426:t=>{const e={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:e;t.exports=n},7292:(t,e,r)=>{t.exports={action:r(3679),clear:r(7893),style:r(2348),strip:r(6687),figures:r(4426),lines:r(8851),wrap:r(7941),entriesToDisplay:r(7040)}},8851:(t,e,r)=>{const n=r(6687);t.exports=function(t,e){let r=String(n(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},6687:t=>{t.exports=t=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return"string"==typeof t?t.replace(r,""):t}},2348:(t,e,r)=>{const n=r(3041),i=r(4426),s=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1f603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});t.exports={styles:s,render:t=>s[t]||s.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>n.gray(t?i.ellipsis:i.pointerSmall),item:(t,e)=>n.gray(t?e?i.pointerSmall:"+":i.line)}},7941:t=>{t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",n=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=n||t[t.length-1].length+e.length+1<n?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},6636:(t,e,r)=>{"pseudomap"===process.env.npm_package_name&&"test"===process.env.npm_lifecycle_script&&(process.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||process.env.TEST_PSEUDOMAP?t.exports=r(7222):t.exports=Map},7222:t=>{var e=Object.prototype.hasOwnProperty;function r(t){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),t)if(t instanceof r||"function"==typeof Map&&t instanceof Map)t.forEach((function(t,e){this.set(e,t)}),this);else{if(!Array.isArray(t))throw new TypeError("invalid argument");t.forEach((function(t){this.set(t[0],t[1])}),this)}}function n(t,e){return t===e||t!=t&&e!=e}function i(t,e,r){this.key=t,this.value=e,this._index=r}function s(t,r){for(var i=0,s="_"+r,o=s;e.call(t,o);o=s+i++)if(n(t[o].key,r))return t[o]}t.exports=r,r.prototype.forEach=function(t,e){e=e||this,Object.keys(this._data).forEach((function(r){"size"!==r&&t.call(e,this._data[r].value,this._data[r].key)}),this)},r.prototype.has=function(t){return!!s(this._data,t)},r.prototype.get=function(t){var e=s(this._data,t);return e&&e.value},r.prototype.set=function(t,r){!function(t,r,s){for(var o=0,a="_"+r,l=a;e.call(t,l);l=a+o++)if(n(t[l].key,r))return void(t[l].value=s);t.size++,t[l]=new i(r,s,l)}(this._data,t,r)},r.prototype.delete=function(t){var e=s(this._data,t);e&&(delete this._data[e._index],this._data.size--)},r.prototype.clear=function(){var t=Object.create(null);t.size=0,Object.defineProperty(this,"_data",{value:t,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(t){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},63:t=>{const e={};function r(t,r,n){n||(n=Error);class i extends n{constructor(t,e,n){super(function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(t,e,n))}}i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){const r=t.length;return t=t.map((t=>String(t))),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:2===r?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}return`of ${e} ${String(t)}`}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){let i;var s,o;let a;if("string"==typeof e&&(s="not ",e.substr(!o||o<0?0:+o,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))a=`The ${t} ${i} ${n(e,"type")}`;else{const r=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";a=`The "${t}" ${r} ${i} ${n(e,"type")}`}return a+=". Received type "+typeof r,a}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},7073:(t,e,r)=>{var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var i=r(8009),s=r(2557);r(8874)(c,i);for(var o=n(s.prototype),a=0;a<o.length;a++){var l=o[a];c.prototype[l]||(c.prototype[l]=s.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),s.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||process.nextTick(u,this)}function u(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},5163:(t,e,r)=>{t.exports=i;var n=r(7640);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(8874)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},8009:(t,e,r)=>{var n;t.exports=S,S.ReadableState=x;r(2361).EventEmitter;var i=function(t,e){return t.listeners(e).length},s=r(6748),o=r(4300).Buffer,a=global.Uint8Array||function(){};var l,c=r(3837);l=c&&c.debuglog?c.debuglog("stream"):function(){};var h,u,d,f=r(6637),p=r(2262),m=r(7605).getHighWaterMark,g=r(63).q,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,v=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(8874)(S,s);var E=p.errorOrDestroy,_=["error","close","destroy","pause","resume"];function x(t,e,i){n=n||r(7073),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=r(214).s),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||r(7073),!(this instanceof S))return new S(t);var e=this instanceof n;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function O(t,e,r,n,i){l("readableAddChunk",e);var s,c=t._readableState;if(null===e)c.reading=!1,function(t,e){if(l("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,k(t)))}(t,c);else if(i||(s=function(t,e){var r;n=e,o.isBuffer(n)||n instanceof a||"string"==typeof e||void 0===e||t.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(c,e)),s)E(t,s);else if(c.objectMode||e&&e.length>0)if("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===o.prototype||(e=function(t){return o.from(t)}(e)),n)c.endEmitted?E(t,new w):T(t,c,e,!0);else if(c.ended)E(t,new b);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(e=c.decoder.write(e),c.objectMode||0!==e.length?T(t,c,e,!1):C(t,c)):T(t,c,e,!1)}else n||(c.reading=!1,C(t,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function T(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&R(t)),C(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=o.from(t,e),e=""),r=!0),O(this,t,e,!1,r)},S.prototype.unshift=function(t){return O(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){h||(h=r(214).s);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var A=1073741824;function I(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=A?t=A:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(k,t))}function k(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,$(t)}function C(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(M,t,e))}function M(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(l("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function j(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function P(t){l("readable nexttick read 0"),t.read(0)}function N(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),$(t),e.flowing&&!e.reading&&t.read(0)}function $(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function D(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(F,e,t))}function F(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function B(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}S.prototype.read=function(t){l("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):R(this),null;if(0===(t=I(t,e))&&e.ended)return 0===e.length&&D(this),null;var n,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&l("length less than watermark",i=!0),e.ended||e.reading?l("reading or ended",i=!1):i&&(l("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=I(r,e))),null===(n=t>0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&D(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(t){E(this,new v("_read()"))},S.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,e);var s=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?a:m;function o(e,i){l("onunpipe"),e===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",u),h=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function a(){l("onend"),t.end()}n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,$(t))}}(r);t.on("drain",c);var h=!1;function u(e){l("ondata");var i=t.write(e);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==B(n.pipes,t))&&!h&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(e){l("onerror",e),m(),t.removeListener("error",d),0===i(t,"error")&&E(t,e)}function f(){t.removeListener("finish",p),m()}function p(){l("onfinish"),t.removeListener("close",f),m()}function m(){l("unpipe"),r.unpipe(t)}return r.on("data",u),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",f),t.once("finish",p),t.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},S.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?R(this):n.reading||process.nextTick(P,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(j,this),r},S.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(j,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(N,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var s=0;s<_.length;s++)t.on(_[s],this.emit.bind(this,_[s]));return this._read=function(e){l("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=r(1029)),u(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=L,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===d&&(d=r(7549)),d(S,t,e)})},7640:(t,e,r)=>{t.exports=h;var n=r(63).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(7073);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function h(t){if(!(this instanceof h))return new h(t);l.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",u)}function u(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,r){d(t,e,r)}))}function d(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new o;return t.push(null)}r(8874)(h,l),h.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},h.prototype._transform=function(t,e,r){r(new i("_transform()"))},h.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},h.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},h.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},2557:(t,e,r)=>{function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var i;t.exports=S,S.WritableState=x;var s={deprecate:r(3854)},o=r(6748),a=r(4300).Buffer,l=global.Uint8Array||function(){};var c,h=r(2262),u=r(7605).getHighWaterMark,d=r(63).q,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function _(){}function x(t,e,s){i=i||r(7073),t=t||{},"boolean"!=typeof s&&(s=e instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(k,t,e),t._writableState.errorEmitted=!0,E(t,n)):(i(n),t._writableState.errorEmitted=!0,E(t,n),k(t,e))}(t,r,n,e,i);else{var s=I(r)||t.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||A(t,r),n?process.nextTick(T,t,r,s,i):T(t,r,s,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function S(t){var e=this instanceof(i=i||r(7073));if(!e&&!c.call(S,this))return new S(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function O(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function T(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),k(t,e)}function A(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,s=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)s[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;s.allBuffers=l,O(t,e,!0,e.length,s,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,h=r.encoding,u=r.callback;if(O(t,e,!1,e.objectMode?1:c.length,c,h,u),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function I(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function R(t,e){t._final((function(r){e.pendingcb--,r&&E(t,r),e.prefinished=!0,t.emit("prefinish"),k(t,e)}))}function k(t,e){var r=I(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(R,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(8874)(S,o),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===S&&(t&&t._writableState instanceof x)}})):c=function(t){return t instanceof this},S.prototype.pipe=function(){E(this,new g)},S.prototype.write=function(t,e,r){var n,i=this._writableState,s=!1,o=!i.objectMode&&(n=t,a.isBuffer(n)||n instanceof l);return o&&!a.isBuffer(t)&&(t=function(t){return a.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=_),i.ending?function(t,e){var r=new v;E(t,r),process.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var i;return null===r?i=new b:"string"==typeof r||e.objectMode||(i=new f("chunk",["string","Buffer"],r)),!i||(E(t,i),process.nextTick(n,i),!1)}(this,i,t,r))&&(i.pendingcb++,s=function(t,e,r,n,i,s){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=a.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var l=e.objectMode?1:n.length;e.length+=l;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else O(t,e,!1,l,n,i,s);return c}(this,i,o,t,e,r)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||A(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,k(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=h.destroy,S.prototype._undestroy=h.undestroy,S.prototype._destroy=function(t,e){e(t)}},1029:(t,e,r)=>{var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(9885),o=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var r=t[d].read();null!==r&&(t[h]=null,t[o]=null,t[a]=null,e(f(r,!1)))}}function m(t){process.nextTick(p,t)}var g=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(e,r){process.nextTick((function(){t[l]?r(t[l]):e(f(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(f(void 0,!0)):e[u](r,n)}),n)}}(n,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(f(i,!1));r=new Promise(this[u])}return this[h]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[d].destroy(null,(function(t){t?r(t):e(f(void 0,!0))}))}))})),n),g);t.exports=function(t){var e,r=Object.create(y,(i(e={},d,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,u,{value:function(t,e){var n=r[d].read();n?(r[h]=null,r[o]=null,r[a]=null,t(f(n,!1))):(r[o]=t,r[a]=e)},writable:!0}),e));return r[h]=null,s(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[h]=null,r[o]=null,r[a]=null,e(t)),void(r[l]=t)}var n=r[o];null!==n&&(r[h]=null,r[o]=null,r[a]=null,n(f(void 0,!0))),r[c]=!0})),t.on("readable",m.bind(null,r)),r}},6637:(t,e,r)=>{function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=r(4300).Buffer,a=r(3837).inspect,l=a&&a.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,c;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,r=i,n=a,o.prototype.copy.call(e,r,n),a+=s.data.length,s=s.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,s=t>i.length?i.length:t;if(s===i.length?n+=i:n+=i.slice(0,t),0==(t-=s)){s===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(s));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return a(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&s(e.prototype,r),c&&s(e,c),t}()},2262:t=>{function e(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,i){var s=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,t)):process.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?s._writableState?s._writableState.errorEmitted?process.nextTick(r,s):(s._writableState.errorEmitted=!0,process.nextTick(e,s,t)):process.nextTick(e,s,t):i?(process.nextTick(r,s),i(t)):process.nextTick(r,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},9885:(t,e,r)=>{var n=r(63).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,s){if("function"==typeof r)return t(e,null,r);r||(r={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(s||i);var o=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,l=function(){e.writable||h()},c=e._writableState&&e._writableState.finished,h=function(){a=!1,c=!0,o||s.call(e)},u=e._readableState&&e._readableState.endEmitted,d=function(){o=!1,u=!0,a||s.call(e)},f=function(t){s.call(e,t)},p=function(){var t;return o&&!u?(e._readableState&&e._readableState.ended||(t=new n),s.call(e,t)):a&&!c?(e._writableState&&e._writableState.ended||(t=new n),s.call(e,t)):void 0},m=function(){e.req.on("finish",h)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?a&&!e._writableState&&(e.on("end",l),e.on("close",l)):(e.on("complete",h),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",d),e.on("finish",h),!1!==r.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",h),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",h),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",h),e.removeListener("end",d),e.removeListener("error",f),e.removeListener("close",p)}}},7549:(t,e,r)=>{function n(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(t){n(o,i,s,a,l,"next",t)}function l(t){n(o,i,s,a,l,"throw",t)}a(void 0)}))}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(63).q.ERR_INVALID_ARG_TYPE;t.exports=function(t,e,r){var n;if(e&&"function"==typeof e.next)n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else{if(!e||!e[Symbol.iterator])throw new a("iterable",["Iterable"],e);n=e[Symbol.iterator]()}var l=new t(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({objectMode:!0},r)),c=!1;function h(){return u.apply(this,arguments)}function u(){return(u=i((function*(){try{var t=yield n.next(),e=t.value;t.done?l.push(null):l.push(yield e)?h():c=!1}catch(t){l.destroy(t)}}))).apply(this,arguments)}return l._read=function(){c||(c=!0,h())},l}},3272:(t,e,r)=>{var n;var i=r(63).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function l(t,e,i,s){s=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(s);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=r(9885)),n(t,{readable:e,writable:i},(function(t){if(t)return s(t);a=!0,s()}));var l=!1;return function(e){if(!a&&!l)return l=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new o("pipe"))}}function c(t){t()}function h(t,e){return t.pipe(e)}function u(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=u(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var o=e.map((function(t,r){var s=r<e.length-1;return l(t,s,r>0,(function(t){n||(n=t),t&&o.forEach(c),s||(o.forEach(c),i(n))}))}));return e.reduce(h)}},7605:(t,e,r)=>{var n=r(63).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var s=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(i?r:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},6748:(t,e,r)=>{t.exports=r(2781)},1258:(t,e,r)=>{var n=r(2781);"disable"===process.env.READABLE_STREAM&&n?(t.exports=n.Readable,Object.assign(t.exports,n),t.exports.Stream=n):((e=t.exports=r(8009)).Stream=n||e,e.Readable=e,e.Writable=r(2557),e.Duplex=r(7073),e.Transform=r(7640),e.PassThrough=r(5163),e.finished=r(9885),e.pipeline=r(3272))},7834:(t,e,r)=>{var n=r(4300),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},7847:(t,e,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=s(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){const e=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return l(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new u(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new u(this.value,e).test(t.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),s=this.semver.version===t.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),a=l(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=l(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||n||s&&o||a||c}}t.exports=i;const s=r(1388),{re:o,t:a}=r(4808),l=r(8117),c=r(952),h=r(2435),u=r(6843)},6843:(t,e,r)=>{class n{constructor(t,e){if(e=s(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!p(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const e=`parseRange:${Object.keys(this.options).join(",")}:${t}`,r=i.get(e);if(r)return r;const n=this.options.loose,s=n?c[h.HYPHENRANGELOOSE]:c[h.HYPHENRANGE];t=t.replace(s,A(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(c[h.COMPARATORTRIM],u),a("comparator trim",t);let l=(t=(t=(t=t.replace(c[h.TILDETRIM],d)).replace(c[h.CARETTRIM],f)).split(/\s+/).join(" ")).split(" ").map((t=>y(t,this.options))).join(" ").split(/\s+/).map((t=>T(t,this.options)));n&&(l=l.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(c[h.COMPARATORLOOSE]))))),a("range list",l);const m=new Map,g=l.map((t=>new o(t,this.options)));for(const t of g){if(p(t))return[t];m.set(t.value,t)}m.size>1&&m.has("")&&m.delete("");const b=[...m.values()];return i.set(e,b),b}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>g(r,e)&&t.set.some((t=>g(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(I(this.set[e],t,this.options))return!0;return!1}}t.exports=n;const i=new(r(7105))({max:1e3}),s=r(1388),o=r(7847),a=r(952),l=r(2435),{re:c,t:h,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=r(4808),p=t=>"<0.0.0-0"===t.value,m=t=>""===t.value,g=(t,e)=>{let r=!0;const n=t.slice();let i=n.pop();for(;r&&n.length;)r=n.every((t=>i.intersects(t,e))),i=n.pop();return r},y=(t,e)=>(a("comp",t,e),t=E(t,e),a("caret",t),t=v(t,e),a("tildes",t),t=x(t,e),a("xrange",t),t=O(t,e),a("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,v=(t,e)=>t.trim().split(/\s+/).map((t=>w(t,e))).join(" "),w=(t,e)=>{const r=e.loose?c[h.TILDELOOSE]:c[h.TILDE];return t.replace(r,((e,r,n,i,s)=>{let o;return a("tilde",t,e,r,n,i,s),b(r)?o="":b(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(a("replaceTilde pr",s),o=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},E=(t,e)=>t.trim().split(/\s+/).map((t=>_(t,e))).join(" "),_=(t,e)=>{a("caret",t,e);const r=e.loose?c[h.CARETLOOSE]:c[h.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,s,o)=>{let l;return a("caret",t,e,r,i,s,o),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(s)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),l="0"===r?"0"===i?`>=${r}.${i}.${s}-${o} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${o} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),a("caret return",l),l}))},x=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>S(t,e))).join(" ")),S=(t,e)=>{t=t.trim();const r=e.loose?c[h.XRANGELOOSE]:c[h.XRANGE];return t.replace(r,((r,n,i,s,o,l)=>{a("xRange",t,r,n,i,s,o,l);const c=b(i),h=c||b(s),u=h||b(o),d=u;return"="===n&&d&&(n=""),l=e.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(h&&(s=0),o=0,">"===n?(n=">=",h?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===n&&(n="<",h?i=+i+1:s=+s+1),"<"===n&&(l="-0"),r=`${n+i}.${s}.${o}${l}`):h?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${s}.0${l} <${i}.${+s+1}.0-0`),a("xRange return",r),r}))},O=(t,e)=>(a("replaceStars",t,e),t.trim().replace(c[h.STAR],"")),T=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?h.GTE0PRE:h.GTE0],"")),A=t=>(e,r,n,i,s,o,a,l,c,h,u,d,f)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${t?"-0":""}`:b(s)?`>=${n}.${i}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`} ${l=b(c)?"":b(h)?`<${+c+1}.0.0-0`:b(u)?`<${c}.${+h+1}.0-0`:d?`<=${c}.${h}.${u}-${d}`:t?`<${c}.${h}.${+u+1}-0`:`<=${l}`}`.trim(),I=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(a(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},2435:(t,e,r)=>{const n=r(952),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(5558),{re:o,t:a}=r(4808),l=r(1388),{compareIdentifiers:c}=r(4935);class h{constructor(t,e){if(e=l(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid Version: ${t}`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<s)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}inc(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let t=this.prerelease.length;for(;--t>=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}t.exports=h},6694:(t,e,r)=>{const n=r(9943);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},8117:(t,e,r)=>{const n=r(3276),i=r(7880),s=r(6379),o=r(8463),a=r(1897),l=r(506);t.exports=(t,e,r,c)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,c);case"!=":return i(t,r,c);case">":return s(t,r,c);case">=":return o(t,r,c);case"<":return a(t,r,c);case"<=":return l(t,r,c);default:throw new TypeError(`Invalid operator: ${e}`)}}},8686:(t,e,r)=>{const n=r(2435),i=r(9943),{re:s,t:o}=r(4808);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=s[o.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),s[o.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;s[o.COERCERTL].lastIndex=-1}else r=t.match(s[o.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},5914:(t,e,r)=>{const n=r(2435);t.exports=(t,e,r)=>{const i=new n(t,r),s=new n(e,r);return i.compare(s)||i.compareBuild(s)}},5404:(t,e,r)=>{const n=r(2271);t.exports=(t,e)=>n(t,e,!0)},2271:(t,e,r)=>{const n=r(2435);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},6007:(t,e,r)=>{const n=r(9943),i=r(3276);t.exports=(t,e)=>{if(i(t,e))return null;{const r=n(t),i=n(e),s=r.prerelease.length||i.prerelease.length,o=s?"pre":"",a=s?"prerelease":"";for(const t in r)if(("major"===t||"minor"===t||"patch"===t)&&r[t]!==i[t])return o+t;return a}}},3276:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>0===n(t,e,r)},6379:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)>0},8463:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)>=0},6360:(t,e,r)=>{const n=r(2435);t.exports=(t,e,r,i)=>{"string"==typeof r&&(i=r,r=void 0);try{return new n(t instanceof n?t.version:t,r).inc(e,i).version}catch(t){return null}}},1897:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)<0},506:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)<=0},4551:(t,e,r)=>{const n=r(2435);t.exports=(t,e)=>new n(t,e).major},469:(t,e,r)=>{const n=r(2435);t.exports=(t,e)=>new n(t,e).minor},7880:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>0!==n(t,e,r)},9943:(t,e,r)=>{const{MAX_LENGTH:n}=r(5558),{re:i,t:s}=r(4808),o=r(2435),a=r(1388);t.exports=(t,e)=>{if(e=a(e),t instanceof o)return t;if("string"!=typeof t)return null;if(t.length>n)return null;if(!(e.loose?i[s.LOOSE]:i[s.FULL]).test(t))return null;try{return new o(t,e)}catch(t){return null}}},4250:(t,e,r)=>{const n=r(2435);t.exports=(t,e)=>new n(t,e).patch},8204:(t,e,r)=>{const n=r(9943);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},733:(t,e,r)=>{const n=r(2271);t.exports=(t,e,r)=>n(e,t,r)},2961:(t,e,r)=>{const n=r(5914);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},9844:(t,e,r)=>{const n=r(6843);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},1116:(t,e,r)=>{const n=r(5914);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},7230:(t,e,r)=>{const n=r(9943);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},7699:(t,e,r)=>{const n=r(4808);t.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(5558).SEMVER_SPEC_VERSION,SemVer:r(2435),compareIdentifiers:r(4935).compareIdentifiers,rcompareIdentifiers:r(4935).rcompareIdentifiers,parse:r(9943),valid:r(7230),clean:r(6694),inc:r(6360),diff:r(6007),major:r(4551),minor:r(469),patch:r(4250),prerelease:r(8204),compare:r(2271),rcompare:r(733),compareLoose:r(5404),compareBuild:r(5914),sort:r(1116),rsort:r(2961),gt:r(6379),lt:r(1897),eq:r(3276),neq:r(7880),gte:r(8463),lte:r(506),cmp:r(8117),coerce:r(8686),Comparator:r(7847),Range:r(6843),satisfies:r(9844),toComparators:r(8865),maxSatisfying:r(3727),minSatisfying:r(4338),minVersion:r(1542),validRange:r(6240),outside:r(9106),gtr:r(995),ltr:r(7805),intersects:r(2013),simplifyRange:r(1338),subset:r(3122)}},5558:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:e,MAX_SAFE_COMPONENT_LENGTH:16}},952:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},4935:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},1388:t=>{const e=["includePrerelease","loose","rtl"];t.exports=t=>t?"object"!=typeof t?{loose:!0}:e.filter((e=>t[e])).reduce(((t,e)=>(t[e]=!0,t)),{}):{}},4808:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(5558),i=r(952),s=(e=t.exports={}).re=[],o=e.src=[],a=e.t={};let l=0;const c=(t,e,r)=>{const n=l++;i(t,n,e),a[t]=n,o[n]=e,s[n]=new RegExp(e,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),c("FULL",`^${o[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),c("LOOSE",`^${o[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),c("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",o[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},995:(t,e,r)=>{const n=r(9106);t.exports=(t,e,r)=>n(t,e,">",r)},2013:(t,e,r)=>{const n=r(6843);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e))},7805:(t,e,r)=>{const n=r(9106);t.exports=(t,e,r)=>n(t,e,"<",r)},3727:(t,e,r)=>{const n=r(2435),i=r(6843);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&-1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},4338:(t,e,r)=>{const n=r(2435),i=r(6843);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},1542:(t,e,r)=>{const n=r(2435),i=r(6843),s=r(6379);t.exports=(t,e)=>{t=new i(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const i=t.set[e];let o=null;i.forEach((t=>{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":o&&!s(e,o)||(o=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!o||r&&!s(r,o)||(r=o)}return r&&t.test(r)?r:null}},9106:(t,e,r)=>{const n=r(2435),i=r(7847),{ANY:s}=i,o=r(6843),a=r(9844),l=r(6379),c=r(1897),h=r(506),u=r(8463);t.exports=(t,e,r,d)=>{let f,p,m,g,y;switch(t=new n(t,d),e=new o(e,d),r){case">":f=l,p=h,m=c,g=">",y=">=";break;case"<":f=c,p=u,m=l,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(t,e,d))return!1;for(let r=0;r<e.set.length;++r){const n=e.set[r];let o=null,a=null;if(n.forEach((t=>{t.semver===s&&(t=new i(">=0.0.0")),o=o||t,a=a||t,f(t.semver,o.semver,d)?o=t:m(t.semver,a.semver,d)&&(a=t)})),o.operator===g||o.operator===y)return!1;if((!a.operator||a.operator===g)&&p(t,a.semver))return!1;if(a.operator===y&&m(t,a.semver))return!1}return!0}},1338:(t,e,r)=>{const n=r(9844),i=r(2271);t.exports=(t,e,r)=>{const s=[];let o=null,a=null;const l=t.sort(((t,e)=>i(t,e,r)));for(const t of l){n(t,e,r)?(a=t,o||(o=t)):(a&&s.push([o,a]),a=null,o=null)}o&&s.push([o,null]);const c=[];for(const[t,e]of s)t===e?c.push(t):e||t!==l[0]?e?t===l[0]?c.push(`<=${e}`):c.push(`${t} - ${e}`):c.push(`>=${t}`):c.push("*");const h=c.join(" || "),u="string"==typeof e.raw?e.raw:String(e);return h.length<u.length?h:e}},3122:(t,e,r)=>{const n=r(6843),i=r(7847),{ANY:s}=i,o=r(9844),a=r(2271),l=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===s){if(1===e.length&&e[0].semver===s)return!0;t=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===e.length&&e[0].semver===s){if(r.includePrerelease)return!0;e=[new i(">=0.0.0")]}const n=new Set;let l,u,d,f,p,m,g;for(const e of t)">"===e.operator||">="===e.operator?l=c(l,e,r):"<"===e.operator||"<="===e.operator?u=h(u,e,r):n.add(e.semver);if(n.size>1)return null;if(l&&u){if(d=a(l.semver,u.semver,r),d>0)return null;if(0===d&&(">="!==l.operator||"<="!==u.operator))return null}for(const t of n){if(l&&!o(t,String(l),r))return null;if(u&&!o(t,String(u),r))return null;for(const n of e)if(!o(t,String(n),r))return!1;return!0}let y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver,b=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver;y&&1===y.prerelease.length&&"<"===u.operator&&0===y.prerelease[0]&&(y=!1);for(const t of e){if(g=g||">"===t.operator||">="===t.operator,m=m||"<"===t.operator||"<="===t.operator,l)if(b&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===b.major&&t.semver.minor===b.minor&&t.semver.patch===b.patch&&(b=!1),">"===t.operator||">="===t.operator){if(f=c(l,t,r),f===t&&f!==l)return!1}else if(">="===l.operator&&!o(l.semver,String(t),r))return!1;if(u)if(y&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===y.major&&t.semver.minor===y.minor&&t.semver.patch===y.patch&&(y=!1),"<"===t.operator||"<="===t.operator){if(p=h(u,t,r),p===t&&p!==u)return!1}else if("<="===u.operator&&!o(u.semver,String(t),r))return!1;if(!t.operator&&(u||l)&&0!==d)return!1}return!(l&&m&&!u&&0!==d)&&(!(u&&g&&!l&&0!==d)&&(!b&&!y))},c=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},h=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let i=!1;t:for(const n of t.set){for(const t of e.set){const e=l(n,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},8865:(t,e,r)=>{const n=r(6843);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},6240:(t,e,r)=>{const n=r(6843);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},4256:(t,e,r)=>{const n=r(3882);t.exports=(t="")=>{const e=t.match(n);if(!e)return null;const[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?i:i?`${s} ${i}`:s}},3882:t=>{t.exports=/^#!(.*)/},260:(t,e,r)=>{var n=global.process;const i=function(t){return t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on};if(i(n)){var s,o=r(9491),a=r(3261),l=/^win/i.test(n.platform),c=r(2361);"function"!=typeof c&&(c=c.EventEmitter),n.__signal_exit_emitter__?s=n.__signal_exit_emitter__:((s=n.__signal_exit_emitter__=new c).count=0,s.emitted={}),s.infinite||(s.setMaxListeners(1/0),s.infinite=!0),t.exports=function(t,e){if(!i(global.process))return function(){};o.equal(typeof t,"function","a callback must be provided for exit handler"),!1===f&&p();var r="exit";e&&e.alwaysLast&&(r="afterexit");return s.on(r,t),function(){s.removeListener(r,t),0===s.listeners("exit").length&&0===s.listeners("afterexit").length&&h()}};var h=function(){f&&i(global.process)&&(f=!1,a.forEach((function(t){try{n.removeListener(t,d[t])}catch(t){}})),n.emit=y,n.reallyExit=m,s.count-=1)};t.exports.unload=h;var u=function(t,e,r){s.emitted[t]||(s.emitted[t]=!0,s.emit(t,e,r))},d={};a.forEach((function(t){d[t]=function(){i(global.process)&&(n.listeners(t).length===s.count&&(h(),u("exit",null,t),u("afterexit",null,t),l&&"SIGHUP"===t&&(t="SIGINT"),n.kill(n.pid,t)))}})),t.exports.signals=function(){return a};var f=!1,p=function(){!f&&i(global.process)&&(f=!0,s.count+=1,a=a.filter((function(t){try{return n.on(t,d[t]),!0}catch(t){return!1}})),n.emit=b,n.reallyExit=g)};t.exports.load=p;var m=n.reallyExit,g=function(t){i(global.process)&&(n.exitCode=t||0,u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),m.call(n,n.exitCode))},y=n.emit,b=function(t,e){if("exit"===t&&i(global.process)){void 0!==e&&(n.exitCode=e);var r=y.apply(this,arguments);return u("exit",n.exitCode,null),u("afterexit",n.exitCode,null),r}return y.apply(this,arguments)}}else t.exports=function(){return function(){}}},3261:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},7840:t=>{const e={to:(t,e)=>e?`\x1b[${e+1};${t+1}H`:`\x1b[${t+1}G`,move(t,e){let r="";return t<0?r+=`\x1b[${-t}D`:t>0&&(r+=`\x1b[${t}C`),e<0?r+=`\x1b[${-e}A`:e>0&&(r+=`\x1b[${e}B`),r},up:(t=1)=>`\x1b[${t}A`,down:(t=1)=>`\x1b[${t}B`,forward:(t=1)=>`\x1b[${t}C`,backward:(t=1)=>`\x1b[${t}D`,nextLine:(t=1)=>"\x1b[E".repeat(t),prevLine:(t=1)=>"\x1b[F".repeat(t),left:"\x1b[G",hide:"\x1b[?25l",show:"\x1b[?25h",save:"\x1b7",restore:"\x1b8"},r={up:(t=1)=>"\x1b[S".repeat(t),down:(t=1)=>"\x1b[T".repeat(t)},n={screen:"\x1b[2J",up:(t=1)=>"\x1b[1J".repeat(t),down:(t=1)=>"\x1b[J".repeat(t),line:"\x1b[2K",lineEnd:"\x1b[K",lineStart:"\x1b[1K",lines(t){let r="";for(let n=0;n<t;n++)r+=this.line+(n<t-1?e.up():"");return t&&(r+=e.left),r}};t.exports={cursor:e,scroll:r,erase:n,beep:"\x07"}},214:(t,e,r)=>{var n=r(7834).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=u,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.s=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=o(e[n]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=o(e[n]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},2278:t=>{t.exports=function(t){if("object"!=typeof t)throw new Error("expected an author to be an object");var e={name:["",""],email:["<",">"],url:["(",")"]},r="";for(var n in t.url&&(t.url=function(t){return t.replace(/\/$/,"")}(t.url)),e)t[n]&&(r+=e[n][0]+t[n]+e[n][1]+" ");return r.trim()}},5725:(t,e)=>{e.fromCallback=function(t){return Object.defineProperty((function(...e){if("function"!=typeof e[e.length-1])return new Promise(((r,n)=>{t.call(this,...e,((t,e)=>null!=t?n(t):r(e)))}));t.apply(this,e)}),"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty((function(...e){const r=e[e.length-1];if("function"!=typeof r)return t.apply(this,e);t.apply(this,e.slice(0,-1)).then((t=>r(null,t)),r)}),"name",{value:t.name})}},3854:(t,e,r)=>{t.exports=r(3837).deprecate},9189:(t,e,r)=>{var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),i=r(5890),s=["node_modules","favicon.ico"];var o=function(t,e){var r={validForNewPackages:0===e.length&&0===t.length,validForOldPackages:0===e.length,warnings:t,errors:e};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};t.exports=function(t){var e=[],r=[];if(null===t)return r.push("name cannot be null"),o(e,r);if(void 0===t)return r.push("name cannot be undefined"),o(e,r);if("string"!=typeof t)return r.push("name must be a string"),o(e,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),s.forEach((function(e){t.toLowerCase()===e&&r.push(e+" is a blacklisted name")})),i({version:"*"}).forEach((function(r){t.toLowerCase()===r&&e.push(r+" is a core module name")})),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(t)!==t){var a=t.match(n);if(a){var l=a[1],c=a[2];if(encodeURIComponent(l)===l&&encodeURIComponent(c)===c)return o(e,r)}r.push("name can only contain URL-friendly characters")}return o(e,r)}},91:t=>{t.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},8975:(t,e,r)=>{var n=r(2526),i=r(91),s={nul:0,control:0};function o(t,e){if("string"!=typeof t)return a(t,e);for(var r=0,n=0;n<t.length;n++){var i=a(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function a(t,e){return 0===t?e.nul:t<32||t>=127&&t<160?e.control:function(t){var e,r=0,n=i.length-1;if(t<i[0][0]||t>i[n][1])return!1;for(;n>=r;)if(e=Math.floor((r+n)/2),t>i[e][1])r=e+1;else{if(!(t<i[e][0]))return!0;n=e-1}return!1}(t)?0:1+(t>=4352&&(t<=4447||9001==t||9002==t||t>=11904&&t<=42191&&12351!=t||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}t.exports=function(t){return o(t,s)},t.exports.config=function(t){return t=n(t||{},s),function(e){return o(e,t)}}},1813:(t,e,r)=>{t.exports=c,c.sync=function(t,e){for(var r=l(t,e=e||{}),n=r.env,s=r.ext,c=r.extExe,h=[],u=0,d=n.length;u<d;u++){var f=n[u];'"'===f.charAt(0)&&'"'===f.slice(-1)&&(f=f.slice(1,-1));var p=i.join(f,t);!f&&/^\.[\\\/]/.test(t)&&(p=t.slice(0,2)+p);for(var m=0,g=s.length;m<g;m++){var y=p+s[m];try{if(o.sync(y,{pathExt:c})){if(!e.all)return y;h.push(y)}}catch(t){}}}if(e.all&&h.length)return h;if(e.nothrow)return null;throw a(t)};var n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(1017),s=n?";":":",o=r(5909);function a(t){var e=new Error("not found: "+t);return e.code="ENOENT",e}function l(t,e){var r=e.colon||s,i=e.path||process.env.PATH||"",o=[""];i=i.split(r);var a="";return n&&(i.unshift(process.cwd()),o=(a=e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==t.indexOf(".")&&""!==o[0]&&o.unshift("")),(t.match(/\//)||n&&t.match(/\\/))&&(i=[""]),{env:i,ext:o,extExe:a}}function c(t,e,r){"function"==typeof e&&(r=e,e={});var n=l(t,e),s=n.env,c=n.ext,h=n.extExe,u=[];!function n(l,d){if(l===d)return e.all&&u.length?r(null,u):r(a(t));var f=s[l];'"'===f.charAt(0)&&'"'===f.slice(-1)&&(f=f.slice(1,-1));var p=i.join(f,t);!f&&/^\.[\\\/]/.test(t)&&(p=t.slice(0,2)+p),function t(i,s){if(i===s)return n(l+1,d);var a=c[i];o(p+a,{pathExt:h},(function(n,o){if(!n&&o){if(!e.all)return r(null,p+a);u.push(p+a)}return t(i+1,s)}))}(0,c.length)}(0,s.length)}},8268:t=>{t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},8006:(t,e,r)=>{function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new a(r,null,e,t):new a(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function s(t,e){t.tail=new a(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function o(t,e){t.head=new a(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,e,r,n){if(!(this instanceof a))return new a(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=a,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)s(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;for(;null!==s&&i<e;i++,s=s.next)r.push(s.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;null!==s&&i>e;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)r.push(s.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;null!==s&&n<t;n++)s=s.next;var o=[];for(n=0;s&&n<e;n++)o.push(s.value),s=this.removeNode(s);null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(n=0;n<r.length;n++)s=i(this,s,r[n]);return o},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(8268)(n)}catch(t){}},5888:(t,e,r)=>{const n=r(9341);let i,s;function o({respectNpm5:t}={}){return t&&function(){if(void 0!==s)return s;const t=n.sync("npm",["--version"]).stdout.toString().trim().split(".")[0];return s=t>=5,s}()||!function(){if(void 0!==i)return i;const t=n.sync("yarn",["--version"]),e=t.stdout&&t.stdout.toString().trim();return i=e,e}()?"npm":"yarn"}function a(t){return Object.keys(t).filter((e=>Boolean(t[e])))}function l(t,e){const r=Object.assign({},process.env);return t.registry&&(e?r.yarn_registry=t.registry:r.npm_config_registry=t.registry),r}t.exports=function(t={}){const e=t.cwd,r=void 0===t.stdio?"inherit":t.stdio,i=o({respectNpm5:t.respectNpm5}),s=t.deps&&t.deps.length>0?t.deps:null;let c;c=a("yarn"===i?{global:t.global,add:s&&!t.remove,remove:t.remove,"--dev":t.dev,"--production":t.production}:{install:!t.remove,uninstall:t.remove,"--save":!t.dev&&!t.global,"--save-dev":t.dev,"--global":t.global,"--production":t.production}),s&&(c=c.concat(s)),t.showCommand&&console.log(">",i,c.join(" "));const h=n.sync(i,c,{stdio:r,cwd:e,env:l(t,"yarn"===i)});return 0!==h.status&&(process.exitCode=h.status),h},t.exports.yarnInstalled=i,t.exports.isNpm5=s,t.exports.getPm=o},9341:(t,e,r)=>{var n=r(2081),i=r(5750),s=r(7349),o=n.spawnSync;function a(t,e,r){var o,a;return o=i(t,e,r),a=n.spawn(o.command,o.args,o.options),s.hookChildProcess(a,o),a}t.exports=a,t.exports.spawn=a,t.exports.sync=function(t,e,n){var a,l;if(!o)try{o=r(1796)}catch(t){throw new Error("In order to use spawnSync on node 0.10 or older, you must install spawn-sync:\n\n npm install spawn-sync --save")}return a=i(t,e,n),(l=o(a.command,a.args,a.options)).error=l.error||s.verifyENOENTSync(l.status,a),l},t.exports._parse=i,t.exports._enoent=s},7349:(t,e,r)=>{var n="win32"===process.platform,i=r(5159),s=0===process.version.indexOf("v0.10.");function o(t,e){var r;return(r=new Error(e+" "+t+" ENOENT")).code=r.errno="ENOENT",r.syscall=e+" "+t,r}function a(t,e){return n&&1===t&&!e.file?o(e.original,"spawn"):null}t.exports.hookChildProcess=function(t,e){var r;n&&(r=t.emit,t.emit=function(n,i){var s;return"exit"===n&&(s=a(i,e))?r.call(t,"error",s):r.apply(t,arguments)})},t.exports.verifyENOENT=a,t.exports.verifyENOENTSync=function(t,e){return n&&1===t&&!e.file||s&&-1===t&&(e.file=n?e.file:i(e.original),!e.file)?o(e.original,"spawnSync"):null},t.exports.notFoundError=o},958:t=>{t.exports=function(){if("win32"!==process.platform)return!1;var t=process.version.substr(1).split(".").map((function(t){return parseInt(t,10)}));return 0===t[0]&&t[1]<12}()},5750:(t,e,r)=>{var n=r(7147),i=r(7796),s=r(5159),o=r(958),a="win32"===process.platform,l=new i({max:50,maxAge:3e4});function c(t,e){return t=""+t,t=e?'"'+(t=(t=t.replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"))+'"':t.replace(/([\(\)%!\^<>&|;,"'\s])/g,"^$1")}function h(t){return!/\.(?:com|exe)$/i.test(t)}t.exports=function(t,e,r){var i,u,d,f,p;return e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=r||{},f=t,a&&(i=(d=(d=s(t))||s(t,!0))&&function(t){var e,r,i,s;if(l.has(t))return l.get(t);e=new Buffer(150);try{r=n.openSync(t,"r"),n.readSync(r,e,0,150,0),n.closeSync(r)}catch(t){}return(i=e.toString().trim().match(/#!(.+)/i))&&(s=i[1].replace(/\/usr\/bin\/env\s+/i,"")),l.set(t,s),s}(d),p=r.shell||o,i?(e.unshift(d),t=i,p=p||h(s(i)||s(i,!0))):p=p||h(d),p&&(u="echo"!==t,e=["/s","/c",'"'+(t=function(t){return/^[a-z0-9_-]+$/i.test(t)?t:c(t,!0)}(t))+((e=e.map((function(t){return c(t,u)}))).length?" "+e.join(" "):"")+'"'],t=process.env.comspec||"cmd.exe",r.windowsVerbatimArguments=!0)),{command:t,args:e,options:r,file:d,original:f}}},5159:(t,e,r)=>{var n=r(1017),i=r(1813),s=new(r(7796))({max:50,maxAge:3e4});t.exports=function(t,e){var r;if(e=!!e,r=s.get(t+"!"+e),s.has(t))return s.get(t);try{r=e?i.sync(t,{pathExt:n.delimiter+(process.env.PATHEXT||"")}):i.sync(t)}catch(t){}return s.set(t+"!"+e,r),r}},7796:(t,e,r)=>{t.exports=y;var n,i=r(6636),s=r(3837),o=r(8203),a=(n="function"==typeof Symbol&&"1"!==process.env._nodeLRUCacheForceNoSymbol?function(t){return Symbol(t)}:function(t){return"_"+t})("max"),l=n("length"),c=n("lengthCalculator"),h=n("allowStale"),u=n("maxAge"),d=n("dispose"),f=n("noDisposeOnSet"),p=n("lruList"),m=n("cache");function g(){return 1}function y(t){if(!(this instanceof y))return new y(t);"number"==typeof t&&(t={max:t}),t||(t={});var e=this[a]=t.max;(!e||"number"!=typeof e||e<=0)&&(this[a]=1/0);var r=t.length||g;"function"!=typeof r&&(r=g),this[c]=r,this[h]=t.stale||!1,this[u]=t.maxAge||0,this[d]=t.dispose,this[f]=t.noDisposeOnSet||!1,this.reset()}function b(t,e,r,n){var i=r.value;w(t,i)&&(_(t,r),t[h]||(i=void 0)),i&&e.call(n,i.value,i.key,t)}function v(t,e,r){var n=t[m].get(e);if(n){var i=n.value;w(t,i)?(_(t,n),t[h]||(i=void 0)):r&&t[p].unshiftNode(n),i&&(i=i.value)}return i}function w(t,e){if(!e||!e.maxAge&&!t[u])return!1;var r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[u]&&r>t[u]}function E(t){if(t[l]>t[a])for(var e=t[p].tail;t[l]>t[a]&&null!==e;){var r=e.prev;_(t,e),e=r}}function _(t,e){if(e){var r=e.value;t[d]&&t[d](r.key,r.value),t[l]-=r.length,t[m].delete(r.key),t[p].removeNode(e)}}function x(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}Object.defineProperty(y.prototype,"max",{set:function(t){(!t||"number"!=typeof t||t<=0)&&(t=1/0),this[a]=t,E(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(t){this[h]=!!t},get:function(){return this[h]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(t){(!t||"number"!=typeof t||t<0)&&(t=0),this[u]=t,E(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(t){"function"!=typeof t&&(t=g),t!==this[c]&&(this[c]=t,this[l]=0,this[p].forEach((function(t){t.length=this[c](t.value,t.key),this[l]+=t.length}),this)),E(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[p].length},enumerable:!0}),y.prototype.rforEach=function(t,e){e=e||this;for(var r=this[p].tail;null!==r;){var n=r.prev;b(this,t,r,e),r=n}},y.prototype.forEach=function(t,e){e=e||this;for(var r=this[p].head;null!==r;){var n=r.next;b(this,t,r,e),r=n}},y.prototype.keys=function(){return this[p].toArray().map((function(t){return t.key}),this)},y.prototype.values=function(){return this[p].toArray().map((function(t){return t.value}),this)},y.prototype.reset=function(){this[d]&&this[p]&&this[p].length&&this[p].forEach((function(t){this[d](t.key,t.value)}),this),this[m]=new i,this[p]=new o,this[l]=0},y.prototype.dump=function(){return this[p].map((function(t){if(!w(this,t))return{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}),this).toArray().filter((function(t){return t}))},y.prototype.dumpLru=function(){return this[p]},y.prototype.inspect=function(t,e){var r="LRUCache {",n=!1;this[h]&&(r+="\n allowStale: true",n=!0);var i=this[a];i&&i!==1/0&&(n&&(r+=","),r+="\n max: "+s.inspect(i,e),n=!0);var o=this[u];o&&(n&&(r+=","),r+="\n maxAge: "+s.inspect(o,e),n=!0);var d=this[c];d&&d!==g&&(n&&(r+=","),r+="\n length: "+s.inspect(this[l],e),n=!0);var f=!1;return this[p].forEach((function(t){f?r+=",\n ":(n&&(r+=",\n"),f=!0,r+="\n ");var i=s.inspect(t.key).split("\n").join("\n "),a={value:t.value};t.maxAge!==o&&(a.maxAge=t.maxAge),d!==g&&(a.length=t.length),w(this,t)&&(a.stale=!0),a=s.inspect(a,e).split("\n").join("\n "),r+=i+" => "+a})),(f||n)&&(r+="\n"),r+="}"},y.prototype.set=function(t,e,r){var n=(r=r||this[u])?Date.now():0,i=this[c](e,t);if(this[m].has(t)){if(i>this[a])return _(this,this[m].get(t)),!1;var s=this[m].get(t).value;return this[d]&&(this[f]||this[d](t,s.value)),s.now=n,s.maxAge=r,s.value=e,this[l]+=i-s.length,s.length=i,this.get(t),E(this),!0}var o=new x(t,e,i,n,r);return o.length>this[a]?(this[d]&&this[d](t,e),!1):(this[l]+=o.length,this[p].unshift(o),this[m].set(t,this[p].head),E(this),!0)},y.prototype.has=function(t){return!!this[m].has(t)&&!w(this,this[m].get(t).value)},y.prototype.get=function(t){return v(this,t,!0)},y.prototype.peek=function(t){return v(this,t,!1)},y.prototype.pop=function(){var t=this[p].tail;return t?(_(this,t),t.value):null},y.prototype.del=function(t){_(this,this[m].get(t))},y.prototype.load=function(t){this.reset();for(var e=Date.now(),r=t.length-1;r>=0;r--){var n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{var s=i-e;s>0&&this.set(n.k,n.v,s)}}},y.prototype.prune=function(){var t=this;this[m].forEach((function(e,r){v(t,r,!1)}))}},8203:t=>{function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){r.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)r.push(arguments[n]);return r}function r(t,e){t.tail=new i(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function n(t,e){t.head=new i(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function i(t,e,r,n){if(!(this instanceof i))return new i(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=e,e.Node=i,e.create=e,e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)r(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)n(this,arguments[t]);return this.length},e.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},e.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},e.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},e.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},e.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},e.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},e.prototype.map=function(t,r){r=r||this;for(var n=new e,i=this.head;null!==i;)n.push(t.call(r,i.value,this)),i=i.next;return n},e.prototype.mapReverse=function(t,r){r=r||this;for(var n=new e,i=this.tail;null!==i;)n.push(t.call(r,i.value,this)),i=i.prev;return n},e.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},e.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},e.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},e.prototype.slice=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;for(;null!==s&&i<r;i++,s=s.next)n.push(s.value);return n},e.prototype.sliceReverse=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var i=this.length,s=this.tail;null!==s&&i>r;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)n.push(s.value);return n},e.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this}},1796:t=>{t.exports=require("spawn-sync")},9491:e=>{e.exports=t(import.meta.url)("assert")},4300:e=>{e.exports=t(import.meta.url)("buffer")},2081:e=>{e.exports=t(import.meta.url)("child_process")},2057:e=>{e.exports=t(import.meta.url)("constants")},2361:e=>{e.exports=t(import.meta.url)("events")},7147:e=>{e.exports=t(import.meta.url)("fs")},3685:e=>{e.exports=t(import.meta.url)("http")},5687:e=>{e.exports=t(import.meta.url)("https")},8188:e=>{e.exports=t(import.meta.url)("module")},2037:e=>{e.exports=t(import.meta.url)("os")},1017:e=>{e.exports=t(import.meta.url)("path")},3477:e=>{e.exports=t(import.meta.url)("querystring")},4521:e=>{e.exports=t(import.meta.url)("readline")},2781:e=>{e.exports=t(import.meta.url)("stream")},6224:e=>{e.exports=t(import.meta.url)("tty")},7310:e=>{e.exports=t(import.meta.url)("url")},3837:e=>{e.exports=t(import.meta.url)("util")},9796:e=>{e.exports=t(import.meta.url)("zlib")},922:(t,e,r)=>{const n=r(890),{resolver:i}=r(3166),{Creator:s}=r(6792),{readFile:o,readJson:a,outputFile:l,outputJson:c}=n,h={spaces:2,replacer:null};function u(t){return o(t,{encoding:"utf8"})}function d(t,e){return l(t,e,{encoding:"utf8"})}function f(t,e,{pretty:r=!1}={}){return c(t,e,r?h:void 0)}const p=s({read:u,write:d}),m=s({read:a,write:f}),g=s({read:u,write:f}),y=s({read:a,write:d});t.exports={Creator:s,Json:m,JsonToText:y,Text:p,TextToJson:g,resolver:i,fs:n}},6792:(t,e,r)=>{const{resolver:n,Base:i,logger:s}=r(3166);t.exports={Creator:function({read:t,write:e}){return class extends i{constructor(t){super(),t&&(this.root=t)}config(t){return void 0!==t&&(this.option=t),this}source(e,r=this.root){if(!e)throw new Error("path cannot be empty");return this.action=this.action.then((()=>{this.source=n(e,r)})).then((()=>t(this.source))),this}output(t,r=this.root){return this.action=this.action.then((i=>{const s=n(void 0===t?this.source:t,r);if(!s)throw new Error("path cannot be empty");return this.source=s,e(s,i,this.option).then((()=>i))})),this}logger(...t){if(0===t.length)throw new Error("message cannot be empty");return this.action=this.action.then((e=>(s.okay(...t),e)),(e=>{throw s.fail(...t),e})),this}}}}},3166:(t,e,r)=>{const{createRequire:n}=r(8188),{isAbsolute:i,resolve:s}=r(1017),{fileURLToPath:o}=r(7310),{green:a,red:l}=r(2645),c=n(`${process.cwd()}/`);function h(t){return t.startsWith("file:")?o(t):t}const u=new class{okay(...t){console.log(a("\u221a"),...t)}fail(...t){console.log(l("\xd7"),...t)}};t.exports={logger:u,resolver:function(t,e=process.cwd()){if(t.startsWith("~"))return c.resolve(t.replace(/^~/,""));const r=h(t);if(i(r))return r;const n=h(e);return s(n,r)},Base:class{constructor(){this.action=Promise.resolve()}onDone(t=(t=>t)){return this.action=this.action.then((t=>(this.temp=t,t))).then(t),this}onFail(t=(()=>this.temp)){return this.action=this.action.then((t=>(this.temp=t,t))).catch(t),this}then(t){return this.action.then(t)}catch(t){return this.action.catch(t)}finally(t){return this.action.finally(t)}}}},2548:t=>{t.exports=JSON.parse('{"dots":{"interval":80,"frames":["\u280b","\u2819","\u2839","\u2838","\u283c","\u2834","\u2826","\u2827","\u2807","\u280f"]},"dots2":{"interval":80,"frames":["\u28fe","\u28fd","\u28fb","\u28bf","\u287f","\u28df","\u28ef","\u28f7"]},"dots3":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u281e","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},"dots4":{"interval":80,"frames":["\u2804","\u2806","\u2807","\u280b","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280b","\u2807","\u2806"]},"dots5":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b"]},"dots6":{"interval":80,"frames":["\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281a","\u2819","\u2809","\u2801"]},"dots7":{"interval":80,"frames":["\u2808","\u2809","\u280b","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808"]},"dots8":{"interval":80,"frames":["\u2801","\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808","\u2808"]},"dots9":{"interval":80,"frames":["\u28b9","\u28ba","\u28bc","\u28f8","\u28c7","\u2867","\u2857","\u284f"]},"dots10":{"interval":80,"frames":["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},"dots11":{"interval":100,"frames":["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},"dots12":{"interval":80,"frames":["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280d\u2800","\u288b\u2800","\u284b\u2800","\u280d\u2801","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280d\u2850","\u288b\u2820","\u284b\u2880","\u280d\u2841","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},"dots8Bit":{"interval":80,"frames":["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280a","\u280b","\u280c","\u280d","\u280e","\u280f","\u2848","\u2849","\u284a","\u284b","\u284c","\u284d","\u284e","\u284f","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281a","\u281b","\u281c","\u281d","\u281e","\u281f","\u2858","\u2859","\u285a","\u285b","\u285c","\u285d","\u285e","\u285f","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282a","\u282b","\u282c","\u282d","\u282e","\u282f","\u2868","\u2869","\u286a","\u286b","\u286c","\u286d","\u286e","\u286f","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283a","\u283b","\u283c","\u283d","\u283e","\u283f","\u2878","\u2879","\u287a","\u287b","\u287c","\u287d","\u287e","\u287f","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28c0","\u28c1","\u28c2","\u28c3","\u28c4","\u28c5","\u28c6","\u28c7","\u2888","\u2889","\u288a","\u288b","\u288c","\u288d","\u288e","\u288f","\u28c8","\u28c9","\u28ca","\u28cb","\u28cc","\u28cd","\u28ce","\u28cf","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28d0","\u28d1","\u28d2","\u28d3","\u28d4","\u28d5","\u28d6","\u28d7","\u2898","\u2899","\u289a","\u289b","\u289c","\u289d","\u289e","\u289f","\u28d8","\u28d9","\u28da","\u28db","\u28dc","\u28dd","\u28de","\u28df","\u28a0","\u28a1","\u28a2","\u28a3","\u28a4","\u28a5","\u28a6","\u28a7","\u28e0","\u28e1","\u28e2","\u28e3","\u28e4","\u28e5","\u28e6","\u28e7","\u28a8","\u28a9","\u28aa","\u28ab","\u28ac","\u28ad","\u28ae","\u28af","\u28e8","\u28e9","\u28ea","\u28eb","\u28ec","\u28ed","\u28ee","\u28ef","\u28b0","\u28b1","\u28b2","\u28b3","\u28b4","\u28b5","\u28b6","\u28b7","\u28f0","\u28f1","\u28f2","\u28f3","\u28f4","\u28f5","\u28f6","\u28f7","\u28b8","\u28b9","\u28ba","\u28bb","\u28bc","\u28bd","\u28be","\u28bf","\u28f8","\u28f9","\u28fa","\u28fb","\u28fc","\u28fd","\u28fe","\u28ff"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["\u2802","-","\u2013","\u2014","\u2013","-"]},"pipe":{"interval":100,"frames":["\u2524","\u2518","\u2534","\u2514","\u251c","\u250c","\u252c","\u2510"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["\u2736","\u2738","\u2739","\u273a","\u2739","\u2737"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["\u2631","\u2632","\u2634"]},"growVertical":{"interval":120,"frames":["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},"growHorizontal":{"interval":120,"frames":["\u258f","\u258e","\u258d","\u258c","\u258b","\u258a","\u2589","\u258a","\u258b","\u258c","\u258d","\u258e"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["\u2593","\u2592","\u2591"]},"bounce":{"interval":120,"frames":["\u2801","\u2802","\u2804","\u2802"]},"boxBounce":{"interval":120,"frames":["\u2596","\u2598","\u259d","\u2597"]},"boxBounce2":{"interval":100,"frames":["\u258c","\u2580","\u2590","\u2584"]},"triangle":{"interval":50,"frames":["\u25e2","\u25e3","\u25e4","\u25e5"]},"arc":{"interval":100,"frames":["\u25dc","\u25e0","\u25dd","\u25de","\u25e1","\u25df"]},"circle":{"interval":120,"frames":["\u25e1","\u2299","\u25e0"]},"squareCorners":{"interval":180,"frames":["\u25f0","\u25f3","\u25f2","\u25f1"]},"circleQuarters":{"interval":120,"frames":["\u25f4","\u25f7","\u25f6","\u25f5"]},"circleHalves":{"interval":50,"frames":["\u25d0","\u25d3","\u25d1","\u25d2"]},"squish":{"interval":100,"frames":["\u256b","\u256a"]},"toggle":{"interval":250,"frames":["\u22b6","\u22b7"]},"toggle2":{"interval":80,"frames":["\u25ab","\u25aa"]},"toggle3":{"interval":120,"frames":["\u25a1","\u25a0"]},"toggle4":{"interval":100,"frames":["\u25a0","\u25a1","\u25aa","\u25ab"]},"toggle5":{"interval":100,"frames":["\u25ae","\u25af"]},"toggle6":{"interval":300,"frames":["\u101d","\u1040"]},"toggle7":{"interval":80,"frames":["\u29be","\u29bf"]},"toggle8":{"interval":100,"frames":["\u25cd","\u25cc"]},"toggle9":{"interval":100,"frames":["\u25c9","\u25ce"]},"toggle10":{"interval":100,"frames":["\u3282","\u3280","\u3281"]},"toggle11":{"interval":50,"frames":["\u29c7","\u29c6"]},"toggle12":{"interval":120,"frames":["\u2617","\u2616"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},"arrow2":{"interval":80,"frames":["\u2b06\ufe0f ","\u2197\ufe0f ","\u27a1\ufe0f ","\u2198\ufe0f ","\u2b07\ufe0f ","\u2199\ufe0f ","\u2b05\ufe0f ","\u2196\ufe0f "]},"arrow3":{"interval":120,"frames":["\u25b9\u25b9\u25b9\u25b9\u25b9","\u25b8\u25b9\u25b9\u25b9\u25b9","\u25b9\u25b8\u25b9\u25b9\u25b9","\u25b9\u25b9\u25b8\u25b9\u25b9","\u25b9\u25b9\u25b9\u25b8\u25b9","\u25b9\u25b9\u25b9\u25b9\u25b8"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf)","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","(\u25cf )"]},"smiley":{"interval":200,"frames":["\u{1f604} ","\u{1f61d} "]},"monkey":{"interval":300,"frames":["\u{1f648} ","\u{1f648} ","\u{1f649} ","\u{1f64a} "]},"hearts":{"interval":100,"frames":["\u{1f49b} ","\u{1f499} ","\u{1f49c} ","\u{1f49a} ","\u2764\ufe0f "]},"clock":{"interval":100,"frames":["\u{1f55b} ","\u{1f550} ","\u{1f551} ","\u{1f552} ","\u{1f553} ","\u{1f554} ","\u{1f555} ","\u{1f556} ","\u{1f557} ","\u{1f558} ","\u{1f559} ","\u{1f55a} "]},"earth":{"interval":180,"frames":["\u{1f30d} ","\u{1f30e} ","\u{1f30f} "]},"material":{"interval":17,"frames":["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},"moon":{"interval":80,"frames":["\u{1f311} ","\u{1f312} ","\u{1f313} ","\u{1f314} ","\u{1f315} ","\u{1f316} ","\u{1f317} ","\u{1f318} "]},"runner":{"interval":140,"frames":["\u{1f6b6} ","\u{1f3c3} "]},"pong":{"interval":80,"frames":["\u2590\u2802 \u258c","\u2590\u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802\u258c","\u2590 \u2820\u258c","\u2590 \u2840\u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590\u2820 \u258c"]},"shark":{"interval":120,"frames":["\u2590|\\\\____________\u258c","\u2590_|\\\\___________\u258c","\u2590__|\\\\__________\u258c","\u2590___|\\\\_________\u258c","\u2590____|\\\\________\u258c","\u2590_____|\\\\_______\u258c","\u2590______|\\\\______\u258c","\u2590_______|\\\\_____\u258c","\u2590________|\\\\____\u258c","\u2590_________|\\\\___\u258c","\u2590__________|\\\\__\u258c","\u2590___________|\\\\_\u258c","\u2590____________|\\\\\u258c","\u2590____________/|\u258c","\u2590___________/|_\u258c","\u2590__________/|__\u258c","\u2590_________/|___\u258c","\u2590________/|____\u258c","\u2590_______/|_____\u258c","\u2590______/|______\u258c","\u2590_____/|_______\u258c","\u2590____/|________\u258c","\u2590___/|_________\u258c","\u2590__/|__________\u258c","\u2590_/|___________\u258c","\u2590/|____________\u258c"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["\u2600\ufe0f ","\u2600\ufe0f ","\u2600\ufe0f ","\u{1f324} ","\u26c5\ufe0f ","\u{1f325} ","\u2601\ufe0f ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u26c8 ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u2601\ufe0f ","\u{1f325} ","\u26c5\ufe0f ","\u{1f324} ","\u2600\ufe0f ","\u2600\ufe0f "]},"christmas":{"interval":400,"frames":["\u{1f332}","\u{1f384}"]},"grenade":{"interval":80,"frames":["\u060c ","\u2032 "," \xb4 "," \u203e "," \u2e0c"," \u2e0a"," |"," \u204e"," \u2055"," \u0df4 "," \u2053"," "," "," "]},"point":{"interval":125,"frames":["\u2219\u2219\u2219","\u25cf\u2219\u2219","\u2219\u25cf\u2219","\u2219\u2219\u25cf","\u2219\u2219\u2219"]},"layer":{"interval":150,"frames":["-","=","\u2261"]},"betaWave":{"interval":80,"frames":["\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1"]},"fingerDance":{"interval":160,"frames":["\u{1f918} ","\u{1f91f} ","\u{1f596} ","\u270b ","\u{1f91a} ","\u{1f446} "]},"fistBump":{"interval":80,"frames":["\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u3000\u{1f91c}\u3000\u3000\u{1f91b}\u3000 ","\u3000\u3000\u{1f91c}\u{1f91b}\u3000\u3000 ","\u3000\u{1f91c}\u2728\u{1f91b}\u3000\u3000 ","\u{1f91c}\u3000\u2728\u3000\u{1f91b}\u3000 "]},"soccerHeader":{"interval":80,"frames":[" \u{1f9d1}\u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f\u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} "]},"mindblown":{"interval":160,"frames":["\u{1f610} ","\u{1f610} ","\u{1f62e} ","\u{1f62e} ","\u{1f626} ","\u{1f626} ","\u{1f627} ","\u{1f627} ","\u{1f92f} ","\u{1f4a5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},"speaker":{"interval":160,"frames":["\u{1f508} ","\u{1f509} ","\u{1f50a} ","\u{1f509} "]},"orangePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} "]},"bluePulse":{"interval":100,"frames":["\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"orangeBluePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} ","\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"timeTravel":{"interval":100,"frames":["\u{1f55b} ","\u{1f55a} ","\u{1f559} ","\u{1f558} ","\u{1f557} ","\u{1f556} ","\u{1f555} ","\u{1f554} ","\u{1f553} ","\u{1f552} ","\u{1f551} ","\u{1f550} "]},"aesthetic":{"interval":80,"frames":["\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0","\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1"]}}')},9233:t=>{t.exports=JSON.parse('{"4":"zh_CHS","1025":"ar_SA","1026":"bg_BG","1027":"ca_ES","1028":"zh_TW","1029":"cs_CZ","1030":"da_DK","1031":"de_DE","1032":"el_GR","1033":"en_US","1034":"es_ES","1035":"fi_FI","1036":"fr_FR","1037":"he_IL","1038":"hu_HU","1039":"is_IS","1040":"it_IT","1041":"ja_JP","1042":"ko_KR","1043":"nl_NL","1044":"nb_NO","1045":"pl_PL","1046":"pt_BR","1047":"rm_CH","1048":"ro_RO","1049":"ru_RU","1050":"hr_HR","1051":"sk_SK","1052":"sq_AL","1053":"sv_SE","1054":"th_TH","1055":"tr_TR","1056":"ur_PK","1057":"id_ID","1058":"uk_UA","1059":"be_BY","1060":"sl_SI","1061":"et_EE","1062":"lv_LV","1063":"lt_LT","1064":"tg_TJ","1065":"fa_IR","1066":"vi_VN","1067":"hy_AM","1069":"eu_ES","1070":"wen_DE","1071":"mk_MK","1074":"tn_ZA","1076":"xh_ZA","1077":"zu_ZA","1078":"af_ZA","1079":"ka_GE","1080":"fo_FO","1081":"hi_IN","1082":"mt_MT","1083":"se_NO","1086":"ms_MY","1087":"kk_KZ","1088":"ky_KG","1089":"sw_KE","1090":"tk_TM","1092":"tt_RU","1093":"bn_IN","1094":"pa_IN","1095":"gu_IN","1096":"or_IN","1097":"ta_IN","1098":"te_IN","1099":"kn_IN","1100":"ml_IN","1101":"as_IN","1102":"mr_IN","1103":"sa_IN","1104":"mn_MN","1105":"bo_CN","1106":"cy_GB","1107":"kh_KH","1108":"lo_LA","1109":"my_MM","1110":"gl_ES","1111":"kok_IN","1114":"syr_SY","1115":"si_LK","1118":"am_ET","1121":"ne_NP","1122":"fy_NL","1123":"ps_AF","1124":"fil_PH","1125":"div_MV","1128":"ha_NG","1130":"yo_NG","1131":"quz_BO","1132":"ns_ZA","1133":"ba_RU","1134":"lb_LU","1135":"kl_GL","1144":"ii_CN","1146":"arn_CL","1148":"moh_CA","1150":"br_FR","1152":"ug_CN","1153":"mi_NZ","1154":"oc_FR","1155":"co_FR","1156":"gsw_FR","1157":"sah_RU","1158":"qut_GT","1159":"rw_RW","1160":"wo_SN","1164":"gbz_AF","2049":"ar_IQ","2052":"zh_CN","2055":"de_CH","2057":"en_GB","2058":"es_MX","2060":"fr_BE","2064":"it_CH","2067":"nl_BE","2068":"nn_NO","2070":"pt_PT","2077":"sv_FI","2080":"ur_IN","2092":"az_AZ","2094":"dsb_DE","2107":"se_SE","2108":"ga_IE","2110":"ms_BN","2115":"uz_UZ","2128":"mn_CN","2129":"bo_BT","2141":"iu_CA","2143":"tmz_DZ","2155":"quz_EC","3073":"ar_EG","3076":"zh_HK","3079":"de_AT","3081":"en_AU","3082":"es_ES","3084":"fr_CA","3098":"sr_SP","3131":"se_FI","3179":"quz_PE","4097":"ar_LY","4100":"zh_SG","4103":"de_LU","4105":"en_CA","4106":"es_GT","4108":"fr_CH","4122":"hr_BA","4155":"smj_NO","5121":"ar_DZ","5124":"zh_MO","5127":"de_LI","5129":"en_NZ","5130":"es_CR","5132":"fr_LU","5179":"smj_SE","6145":"ar_MA","6153":"en_IE","6154":"es_PA","6156":"fr_MC","6203":"sma_NO","7169":"ar_TN","7177":"en_ZA","7178":"es_DO","7194":"sr_BA","7227":"sma_SE","8193":"ar_OM","8201":"en_JA","8202":"es_VE","8218":"bs_BA","8251":"sms_FI","9217":"ar_YE","9225":"en_CB","9226":"es_CO","9275":"smn_FI","10241":"ar_SY","10249":"en_BZ","10250":"es_PE","11265":"ar_JO","11273":"en_TT","11274":"es_AR","12289":"ar_LB","12297":"en_ZW","12298":"es_EC","13313":"ar_KW","13321":"en_PH","13322":"es_CL","14337":"ar_AE","14346":"es_UR","15361":"ar_BH","15370":"es_PY","16385":"ar_QA","16394":"es_BO","17417":"en_MY","17418":"es_SV","18441":"en_IN","18442":"es_HN","19466":"es_NI","20490":"es_PR","21514":"es_US","31748":"zh_CHT"}')}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var s=r[t]={id:t,loaded:!1,exports:{}};return e[t](s,s.exports,n),s.loaded=!0,s.exports}n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var e=n(7147),r=n(9491);const i={right:function(t,e){t=t.trim();const r=a.stringWidth(t);if(r<e)return" ".repeat(e-r)+t;return t},center:function(t,e){t=t.trim();const r=a.stringWidth(t);if(r>=e)return t;return" ".repeat(e-r>>1)+t}};class s{constructor(t){var e;this.width=t.width,this.wrap=null===(e=t.wrap)||void 0===e||e,this.rows=[]}span(...t){this.div(...t).span=!0}resetOutput(){this.rows=[]}div(...t){if(0===t.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&"string"==typeof t[0])return this.applyLayoutDSL(t[0]);const e=t.map((t=>"string"==typeof t?this.colFromString(t):t));return this.rows.push(e),e}shouldApplyLayoutDSL(...t){return 1===t.length&&"string"==typeof t[0]&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){const e=t.split("\n").map((t=>t.split("\t")));let r=0;return e.forEach((t=>{t.length>1&&a.stringWidth(t[0])>r&&(r=Math.min(Math.floor(.5*this.width),a.stringWidth(t[0])))})),e.forEach((t=>{this.div(...t.map(((e,n)=>({text:e.trim(),padding:this.measurePadding(e),width:0===n&&t.length>1?r:void 0}))))})),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){const e=a.stripAnsi(t);return[0,e.match(/\s*$/)[0].length,0,e.match(/^\s*/)[0].length]}toString(){const t=[];return this.rows.forEach((e=>{this.rowToString(e,t)})),t.filter((t=>!t.hidden)).map((t=>t.text)).join("\n")}rowToString(t,e){return this.rasterize(t).forEach(((r,n)=>{let s="";r.forEach(((r,l)=>{const{width:c}=t[l],h=this.negatePadding(t[l]);let u=r;if(h>a.stringWidth(r)&&(u+=" ".repeat(h-a.stringWidth(r))),t[l].align&&"left"!==t[l].align&&this.wrap){u=(0,i[t[l].align])(u,h),a.stringWidth(u)<h&&(u+=" ".repeat((c||0)-a.stringWidth(u)-1))}const d=t[l].padding||[0,0,0,0];d[3]&&(s+=" ".repeat(d[3])),s+=o(t[l],u,"| "),s+=u,s+=o(t[l],u," |"),d[1]&&(s+=" ".repeat(d[1])),0===n&&e.length>0&&(s=this.renderInline(s,e[e.length-1]))})),e.push({text:s.replace(/ +$/,""),span:t.span})})),e}renderInline(t,e){const r=t.match(/^ */),n=r?r[0].length:0,i=e.text,s=a.stringWidth(i.trimRight());return e.span?this.wrap?n<s?t:(e.hidden=!0,i.trimRight()+" ".repeat(n-s)+t.trimLeft()):(e.hidden=!0,i+t):t}rasterize(t){const e=[],r=this.columnWidths(t);let n;return t.forEach(((t,i)=>{t.width=r[i],n=this.wrap?a.wrap(t.text,this.negatePadding(t),{hard:!0}).split("\n"):t.text.split("\n"),t.border&&(n.unshift("."+"-".repeat(this.negatePadding(t)+2)+"."),n.push("'"+"-".repeat(this.negatePadding(t)+2)+"'")),t.padding&&(n.unshift(...new Array(t.padding[0]||0).fill("")),n.push(...new Array(t.padding[2]||0).fill(""))),n.forEach(((t,r)=>{e[r]||e.push([]);const n=e[r];for(let t=0;t<i;t++)void 0===n[t]&&n.push("");n.push(t)}))})),e}negatePadding(t){let e=t.width||0;return t.padding&&(e-=(t.padding[3]||0)+(t.padding[1]||0)),t.border&&(e-=4),e}columnWidths(t){if(!this.wrap)return t.map((t=>t.width||a.stringWidth(t.text)));let e=t.length,r=this.width;const n=t.map((t=>{if(t.width)return e--,r-=t.width,t.width})),i=e?Math.floor(r/e):0;return n.map(((e,r)=>void 0===e?Math.max(i,function(t){const e=t.padding||[],r=1+(e[3]||0)+(e[1]||0);if(t.border)return r+4;return r}(t[r])):e))}}function o(t,e,r){return t.border?/[.']-+[.']/.test(e)?"":0!==e.trim().length?r:" ":""}let a;const l=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function c(t){return t.replace(l,"")}function h(t,e){const[r,n]=t.match(l)||["",""];t=c(t);let i="";for(let r=0;r<t.length;r++)0!==r&&r%e==0&&(i+="\n"),i+=t.charAt(r);return r&&n&&(i=`${r}${i}${n}`),i}var u=n(1017);var d,f=n(3837),p=n(7310);function m(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),-1===t.indexOf("-")&&-1===t.indexOf("_"))return t;{let e="",r=!1;const n=t.match(/^-+/);for(let i=n?n[0].length:0;i<t.length;i++){let n=t.charAt(i);r&&(r=!1,n=n.toUpperCase()),0===i||"-"!==n&&"_"!==n?"-"!==n&&"_"!==n&&(e+=n):r=!0}return e}}function g(t,e){const r=t.toLowerCase();e=e||"-";let n="";for(let i=0;i<t.length;i++){const s=r.charAt(i),o=t.charAt(i);n+=s!==o&&i>0?`${e}${r.charAt(i)}`:o}return n}function y(t){return null!=t&&("number"==typeof t||(!!/^0x[0-9a-f]+$/i.test(t)||!/^0[^.]/.test(t)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)))}let b;!function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"}(d||(d={}));function v(t){return void 0!==t?t+1:1}function w(t){return"__proto__"===t?"___proto___":t}const E=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version){if(Number(process.version.match(/v([^.]+)/)[1])<E)throw Error(`yargs parser supports a minimum Node.js version of ${E}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}const _=process?process.env:{},x=new class{constructor(t){b=t}parse(t,e){const r=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},e),n=function(t){if(Array.isArray(t))return t.map((t=>"string"!=typeof t?t+"":t));t=t.trim();let e=0,r=null,n=null,i=null;const s=[];for(let o=0;o<t.length;o++)r=n,n=t.charAt(o)," "!==n||i?(n===i?i=null:"'"!==n&&'"'!==n||i||(i=n),s[e]||(s[e]=""),s[e]+=n):" "!==r&&e++;return s}(t),i="string"==typeof t,s=function(t){const e=[],r=Object.create(null);let n=!0;Object.keys(t).forEach((function(r){e.push([].concat(t[r],r))}));for(;n;){n=!1;for(let t=0;t<e.length;t++)for(let r=t+1;r<e.length;r++){if(e[t].filter((function(t){return-1!==e[r].indexOf(t)})).length){e[t]=e[t].concat(e[r]),e.splice(r,1),n=!0;break}}}return e.forEach((function(t){const e=(t=t.filter((function(t,e,r){return r.indexOf(t)===e}))).pop();void 0!==e&&"string"==typeof e&&(r[e]=t)})),r}(Object.assign(Object.create(null),r.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},r.configuration),a=Object.assign(Object.create(null),r.default),l=r.configObjects||[],c=r.envPrefix,h=o["populate--"],u=h?"--":"_",f=Object.create(null),p=Object.create(null),E=r.__||b.format,_={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},x=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach((function(t){const e="object"==typeof t?t.key:t,r=Object.keys(t).map((function(t){return{boolean:"bools",string:"strings",number:"numbers"}[t]})).filter(Boolean).pop();r&&(_[r][e]=!0),_.arrays[e]=!0,_.keys.push(e)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(t){_.bools[t]=!0,_.keys.push(t)})),[].concat(r.string||[]).filter(Boolean).forEach((function(t){_.strings[t]=!0,_.keys.push(t)})),[].concat(r.number||[]).filter(Boolean).forEach((function(t){_.numbers[t]=!0,_.keys.push(t)})),[].concat(r.count||[]).filter(Boolean).forEach((function(t){_.counts[t]=!0,_.keys.push(t)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(t){_.normalize[t]=!0,_.keys.push(t)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([t,e])=>{"number"==typeof e&&(_.nargs[t]=e,_.keys.push(t))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([t,e])=>{"function"==typeof e&&(_.coercions[t]=e,_.keys.push(t))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(t){_.configs[t]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([t,e])=>{"boolean"!=typeof e&&"function"!=typeof e||(_.configs[t]=e)}))),function(...t){t.forEach((function(t){Object.keys(t||{}).forEach((function(t){_.aliases[t]||(_.aliases[t]=[].concat(s[t]||[]),_.aliases[t].concat(t).forEach((function(e){if(/-/.test(e)&&o["camel-case-expansion"]){const r=m(e);r!==t&&-1===_.aliases[t].indexOf(r)&&(_.aliases[t].push(r),f[r]=!0)}})),_.aliases[t].concat(t).forEach((function(e){if(e.length>1&&/[A-Z]/.test(e)&&o["camel-case-expansion"]){const r=g(e,"-");r!==t&&-1===_.aliases[t].indexOf(r)&&(_.aliases[t].push(r),f[r]=!0)}})),_.aliases[t].forEach((function(e){_.aliases[e]=[t].concat(_.aliases[t].filter((function(t){return e!==t})))})))}))}))}(r.key,s,r.default,_.arrays),Object.keys(a).forEach((function(t){(_.aliases[t]||[]).forEach((function(e){a[e]=a[t]}))}));let O=null;Object.keys(_.counts).find((t=>U(t,_.arrays)?(O=Error(E("Invalid configuration: %s, opts.count excludes opts.array.",t)),!0):!!U(t,_.nargs)&&(O=Error(E("Invalid configuration: %s, opts.count excludes opts.narg.",t)),!0)));let T=[];const A=Object.assign(Object.create(null),{_:[]}),I={};for(let t=0;t<n.length;t++){const e=n[t],r=e.replace(/^-{3,}/,"---");let i,s,a,l,c,h;if("--"!==e&&H(e))R(e);else{if(r.match(/---+(=|$)/)){R(e);continue}if(e.match(/^--.+=/)||!o["short-option-groups"]&&e.match(/^-.+=/))l=e.match(/^--?([^=]+)=([\s\S]*)$/),null!==l&&Array.isArray(l)&&l.length>=3&&(U(l[1],_.arrays)?t=C(t,l[1],n,l[2]):!1!==U(l[1],_.nargs)?t=k(t,l[1],n,l[2]):M(l[1],l[2],!0));else if(e.match(S)&&o["boolean-negation"])l=e.match(S),null!==l&&Array.isArray(l)&&l.length>=2&&(s=l[1],M(s,!!U(s,_.arrays)&&[!1]));else if(e.match(/^--.+/)||!o["short-option-groups"]&&e.match(/^-[^-]+/))l=e.match(/^--?(.+)/),null!==l&&Array.isArray(l)&&l.length>=2&&(s=l[1],U(s,_.arrays)?t=C(t,s,n):!1!==U(s,_.nargs)?t=k(t,s,n):(c=n[t+1],void 0===c||c.match(/^-/)&&!c.match(x)||U(s,_.bools)||U(s,_.counts)?/^(true|false)$/.test(c)?(M(s,c),t++):M(s,W(s)):(M(s,c),t++)));else if(e.match(/^-.\..+=/))l=e.match(/^-([^=]+)=([\s\S]*)$/),null!==l&&Array.isArray(l)&&l.length>=3&&M(l[1],l[2]);else if(e.match(/^-.\..+/)&&!e.match(x))c=n[t+1],l=e.match(/^-(.\..+)/),null!==l&&Array.isArray(l)&&l.length>=2&&(s=l[1],void 0===c||c.match(/^-/)||U(s,_.bools)||U(s,_.counts)?M(s,W(s)):(M(s,c),t++));else if(e.match(/^-[^-]+/)&&!e.match(x)){a=e.slice(1,-1).split(""),i=!1;for(let r=0;r<a.length;r++){if(c=e.slice(r+2),a[r+1]&&"="===a[r+1]){h=e.slice(r+3),s=a[r],U(s,_.arrays)?t=C(t,s,n,h):!1!==U(s,_.nargs)?t=k(t,s,n,h):M(s,h),i=!0;break}if("-"!==c){if(/[A-Za-z]/.test(a[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(c)&&!1===U(c,_.bools)){M(a[r],c),i=!0;break}if(a[r+1]&&a[r+1].match(/\W/)){M(a[r],c),i=!0;break}M(a[r],W(a[r]))}else M(a[r],c)}s=e.slice(-1)[0],i||"-"===s||(U(s,_.arrays)?t=C(t,s,n):!1!==U(s,_.nargs)?t=k(t,s,n):(c=n[t+1],void 0===c||/^(-|--)[^-]/.test(c)&&!c.match(x)||U(s,_.bools)||U(s,_.counts)?/^(true|false)$/.test(c)?(M(s,c),t++):M(s,W(s)):(M(s,c),t++)))}else if(e.match(/^-[0-9]$/)&&e.match(x)&&U(e.slice(1),_.bools))s=e.slice(1),M(s,W(s));else{if("--"===e){T=n.slice(t+1);break}if(o["halt-at-non-option"]){T=n.slice(t);break}R(e)}}}function R(t){const e=N("_",t);"string"!=typeof e&&"number"!=typeof e||A._.push(e)}function k(t,e,r,n){let i,s=U(e,_.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return Y(n)||(O=Error(E("Argument unexpected for: %s",e))),M(e,W(e)),t;let a=Y(n)?0:1;if(o["nargs-eats-options"])r.length-(t+1)+a<s&&(O=Error(E("Not enough arguments following: %s",e))),a=s;else{for(i=t+1;i<r.length&&(!r[i].match(/^-[^0-9]/)||r[i].match(x)||H(r[i]));i++)a++;a<s&&(O=Error(E("Not enough arguments following: %s",e)))}let l=Math.min(a,s);for(!Y(n)&&l>0&&(M(e,n),l--),i=t+1;i<l+t+1;i++)M(e,r[i]);return t+l}function C(t,e,r,n){let s=[],l=n||r[t+1];const c=U(e,_.nargs);if(U(e,_.bools)&&!/^(true|false)$/.test(l))s.push(!0);else if(Y(l)||Y(n)&&/^-/.test(l)&&!x.test(l)&&!H(l)){if(void 0!==a[e]){const t=a[e];s=Array.isArray(t)?t:[t]}}else{Y(n)||s.push(P(e,n,!0));for(let n=t+1;n<r.length&&!(!o["greedy-arrays"]&&s.length>0||c&&"number"==typeof c&&s.length>=c)&&(l=r[n],!/^-/.test(l)||x.test(l)||H(l));n++)t=n,s.push(P(e,l,i))}return"number"==typeof c&&(c&&s.length<c||isNaN(c)&&0===s.length)&&(O=Error(E("Not enough arguments following: %s",e))),M(e,s),t}function M(t,e,r=i){if(/-/.test(t)&&o["camel-case-expansion"]){const e=t.split(".").map((function(t){return m(t)})).join(".");j(t,e)}const n=P(t,e,r),s=t.split(".");if(B(A,s,n),_.aliases[t]&&_.aliases[t].forEach((function(t){const e=t.split(".");B(A,e,n)})),s.length>1&&o["dot-notation"]&&(_.aliases[s[0]]||[]).forEach((function(e){let r=e.split(".");const i=[].concat(s);i.shift(),r=r.concat(i),(_.aliases[t]||[]).includes(r.join("."))||B(A,r,n)})),U(t,_.normalize)&&!U(t,_.arrays)){[t].concat(_.aliases[t]||[]).forEach((function(t){Object.defineProperty(I,t,{enumerable:!0,get:()=>e,set(t){e="string"==typeof t?b.normalize(t):t}})}))}}function j(t,e){_.aliases[t]&&_.aliases[t].length||(_.aliases[t]=[e],f[e]=!0),_.aliases[e]&&_.aliases[e].length||j(e,t)}function P(t,e,r){r&&(e=function(t){return"string"!=typeof t||"'"!==t[0]&&'"'!==t[0]||t[t.length-1]!==t[0]?t:t.substring(1,t.length-1)}(e)),(U(t,_.bools)||U(t,_.counts))&&"string"==typeof e&&(e="true"===e);let n=Array.isArray(e)?e.map((function(e){return N(t,e)})):N(t,e);return U(t,_.counts)&&(Y(n)||"boolean"==typeof n)&&(n=v()),U(t,_.normalize)&&U(t,_.arrays)&&(n=Array.isArray(e)?e.map((t=>b.normalize(t))):b.normalize(e)),n}function N(t,e){if(!o["parse-positional-numbers"]&&"_"===t)return e;if(!U(t,_.strings)&&!U(t,_.bools)&&!Array.isArray(e)){(y(e)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))||!Y(e)&&U(t,_.numbers))&&(e=Number(e))}return e}function $(t,e){Object.keys(t).forEach((function(r){const n=t[r],i=e?e+"."+r:r;"object"==typeof n&&null!==n&&!Array.isArray(n)&&o["dot-notation"]?$(n,i):(!F(A,i.split("."))||U(i,_.arrays)&&o["combine-arrays"])&&M(i,n)}))}function L(t,e){if(void 0===c)return;const r="string"==typeof c?c:"",n=b.env();Object.keys(n).forEach((function(i){if(""===r||0===i.lastIndexOf(r,0)){const s=i.split("__").map((function(t,e){return 0===e&&(t=t.substring(r.length)),m(t)}));(e&&_.configs[s.join(".")]||!e)&&!F(t,s)&&M(s.join("."),n[i])}}))}function D(t,e,r,n=!1){Object.keys(r).forEach((function(i){F(t,i.split("."))||(B(t,i.split("."),r[i]),n&&(p[i]=!0),(e[i]||[]).forEach((function(e){F(t,e.split("."))||B(t,e.split("."),r[i])})))}))}function F(t,e){let r=t;o["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach((function(t){r=r[t]||{}}));const n=e[e.length-1];return"object"==typeof r&&n in r}function B(t,e,r){let n=t;o["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach((function(t){t=w(t),"object"==typeof n&&void 0===n[t]&&(n[t]={}),"object"!=typeof n[t]||Array.isArray(n[t])?(Array.isArray(n[t])?n[t].push({}):n[t]=[n[t],{}],n=n[t][n[t].length-1]):n=n[t]}));const i=w(e[e.length-1]),s=U(e.join("."),_.arrays),a=Array.isArray(r);let l=o["duplicate-arguments-array"];!l&&U(i,_.nargs)&&(l=!0,(!Y(n[i])&&1===_.nargs[i]||Array.isArray(n[i])&&n[i].length===_.nargs[i])&&(n[i]=void 0)),r===v()?n[i]=v(n[i]):Array.isArray(n[i])?l&&s&&a?n[i]=o["flatten-duplicate-arrays"]?n[i].concat(r):(Array.isArray(n[i][0])?n[i]:[n[i]]).concat([r]):l||Boolean(s)!==Boolean(a)?n[i]=n[i].concat([r]):n[i]=r:void 0===n[i]&&s?n[i]=a?r:[r]:!l||void 0===n[i]||U(i,_.counts)||U(i,_.bools)?n[i]=r:n[i]=[n[i],r]}function U(t,e){const r=[].concat(_.aliases[t]||[],t),n=Object.keys(e),i=r.find((t=>n.includes(t)));return!!i&&e[i]}function G(t){const e=Object.keys(_);return[].concat(e.map((t=>_[t]))).some((function(e){return Array.isArray(e)?e.includes(t):e[t]}))}function H(t){return o["unknown-options-as-args"]&&function(t){if((t=t.replace(/^-{3,}/,"--")).match(x))return!1;if(function(t){if(t.match(x)||!t.match(/^-[^-]+/))return!1;let e,r=!0;const n=t.slice(1).split("");for(let i=0;i<n.length;i++){if(e=t.slice(i+2),!G(n[i])){r=!1;break}if(n[i+1]&&"="===n[i+1]||"-"===e||/[A-Za-z]/.test(n[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(e)||n[i+1]&&n[i+1].match(/\W/))break}return r}(t))return!1;return!function(t,...e){return[].concat(...e).some((function(e){const r=t.match(e);return r&&G(r[1])}))}(t,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}(t)}function W(t){return U(t,_.bools)||U(t,_.counts)||!(`${t}`in a)?(e=function(t){let e=d.BOOLEAN;return U(t,_.strings)?e=d.STRING:U(t,_.numbers)?e=d.NUMBER:U(t,_.bools)?e=d.BOOLEAN:U(t,_.arrays)&&(e=d.ARRAY),e}(t),{[d.BOOLEAN]:!0,[d.STRING]:"",[d.NUMBER]:void 0,[d.ARRAY]:[]}[e]):a[t];var e}function Y(t){return void 0===t}return L(A,!0),L(A,!1),function(t){const e=Object.create(null);D(e,_.aliases,a),Object.keys(_.configs).forEach((function(r){const n=t[r]||e[r];if(n)try{let t=null;const e=b.resolve(b.cwd(),n),i=_.configs[r];if("function"==typeof i){try{t=i(e)}catch(e){t=e}if(t instanceof Error)return void(O=t)}else t=b.require(e);$(t)}catch(e){"PermissionDenied"===e.name?O=e:t[r]&&(O=Error(E("Invalid JSON config file: %s",n)))}}))}(A),void 0!==l&&l.forEach((function(t){$(t)})),D(A,_.aliases,a,!0),function(t){let e;const r=new Set;Object.keys(t).forEach((function(n){if(!r.has(n)&&(e=U(n,_.coercions),"function"==typeof e))try{const i=N(n,e(t[n]));[].concat(_.aliases[n]||[],n).forEach((e=>{r.add(e),t[e]=i}))}catch(t){O=t}}))}(A),o["set-placeholder-key"]&&function(t){_.keys.forEach((e=>{~e.indexOf(".")||void 0===t[e]&&(t[e]=void 0)}))}(A),Object.keys(_.counts).forEach((function(t){F(A,t.split("."))||M(t,0)})),h&&T.length&&(A[u]=[]),T.forEach((function(t){A[u].push(t)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(A).filter((t=>"--"!==t&&t.includes("-"))).forEach((t=>{delete A[t]})),o["strip-aliased"]&&[].concat(...Object.keys(s).map((t=>s[t]))).forEach((t=>{o["camel-case-expansion"]&&t.includes("-")&&delete A[t.split(".").map((t=>m(t))).join(".")],delete A[t]})),{aliases:Object.assign({},_.aliases),argv:Object.assign(I,A),configuration:o,defaulted:Object.assign({},p),error:O,newAliases:Object.assign({},f)}}}({cwd:process.cwd,env:()=>_,format:f.format,normalize:u.normalize,resolve:u.resolve,require:t=>{if("undefined"!=typeof require)return require(t);if(t.match(/\.json$/))return JSON.parse((0,e.readFileSync)(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),S=function(t,e){return x.parse(t.slice(),e).argv};S.detailed=function(t,e){return x.parse(t.slice(),e)},S.camelCase=m,S.decamelize=g,S.looksLikeNumber=y;const O=S;function T(){return process.versions.electron&&!process.defaultApp?0:1}class A extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,A)}}const I={fs:{readFileSync:e.readFileSync,writeFile:e.writeFile},format:f.format,resolve:u.resolve,exists:t=>{try{return(0,e.statSync)(t).isFile()}catch(t){return!1}}};let R;class k{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles="boolean"!=typeof t.updateFiles||t.updateFiles,this.locale=t.locale||"en",this.fallbackToLanguage="boolean"!=typeof t.fallbackToLanguage||t.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const e=t.shift();let r=function(){};return"function"==typeof t[t.length-1]&&(r=t.pop()),r=r||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]=e,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:r})):r(),R.format.apply(R.format,[this.cache[this.locale][e]||e].concat(t))}__n(){const t=Array.prototype.slice.call(arguments),e=t.shift(),r=t.shift(),n=t.shift();let i=function(){};"function"==typeof t[t.length-1]&&(i=t.pop()),this.cache[this.locale]||this._readLocaleFile();let s=1===n?e:r;if(this.cache[this.locale][e]){s=this.cache[this.locale][e][1===n?"one":"other"]}!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const o=[s];return~s.indexOf("%d")&&o.push(n),R.format.apply(R.format,o.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this.cache[this.locale][e]=t[e])}_taggedLiteral(t,...e){let r="";return t.forEach((function(t,n){const i=e[n+1];r+=t,void 0!==i&&(r+="%s")})),this.__.apply(this,[r].concat([].slice.call(e,1)))}_enqueueWrite(t){this.writeQueue.push(t),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const t=this,e=this.writeQueue[0],r=e.directory,n=e.locale,i=e.cb,s=this._resolveLocaleFile(r,n),o=JSON.stringify(this.cache[n],null,2);R.fs.writeFile(s,o,"utf-8",(function(e){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),i(e)}))}_readLocaleFile(){let t={};const e=this._resolveLocaleFile(this.directory,this.locale);try{R.fs.readFileSync&&(t=JSON.parse(R.fs.readFileSync(e,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+e),"ENOENT"!==r.code)throw r;t={}}this.cache[this.locale]=t}_resolveLocaleFile(t,e){let r=R.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~e.lastIndexOf("_")){const n=R.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(n)&&(r=n)}return r}_fileExistsSync(t){return R.exists(t)}}const C=t=>function(t,e){R=e;const r=new k(t);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}(t,I),M="loading a directory of commands is not supported yet for ESM";let j;try{j=(0,p.fileURLToPath)(import.meta.url)}catch(t){j=process.cwd()}const P=j.substring(0,j.lastIndexOf("node_modules")),N={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:function(t){return function(t,e){return a=e,new s({width:(null==t?void 0:t.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==t?void 0:t.wrap})}(t,{stringWidth:t=>[...t].length,stripAnsi:c,wrap:h})},findUp:function(t,r){let n,i=(0,u.resolve)(".",t);for((0,e.statSync)(i).isDirectory()||(i=(0,u.dirname)(i));;){if(n=r(i,(0,e.readdirSync)(i)),n)return(0,u.resolve)(i,n);if(i=(0,u.dirname)(n=i),n===i)break}},getEnv:t=>process.env[t],inspect:f.inspect,getCallerFile:()=>{throw new A(M)},getProcessArgvBin:function(){return process.argv[T()]},mainFilename:P||process.cwd(),Parser:O,path:{basename:u.basename,dirname:u.dirname,extname:u.extname,relative:u.relative,resolve:u.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:e.readFileSync,require:()=>{throw new A("require is not supported by ESM")},requireDirectory:()=>{throw new A(M)},stringWidth:t=>[...t].length,y18n:C({directory:(0,u.resolve)(j,"../../../locales"),updateFiles:!1})};function $(t,e,r,n){r.assert.notStrictEqual(t,e,n)}function L(t,e){e.assert.strictEqual(typeof t,"string")}function D(t){return Object.keys(t)}function F(t){return!!t&&!!t.then&&"function"==typeof t.then}function B(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,n=e.shift();if(!n)throw new Error(`No command found in: ${t}`);const i={cmd:n.replace(r,""),demanded:[],optional:[]};return e.forEach(((t,n)=>{let s=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&n===e.length-1&&(s=!0),/^\[/.test(t)?i.optional.push({cmd:t.replace(r,"").split("|"),variadic:s}):i.demanded.push({cmd:t.replace(r,"").split("|"),variadic:s})})),i}const U=["first","second","third","fourth","fifth","sixth"];function G(t,e,r){try{let n=0;const[i,s,o]="object"==typeof t?[{demanded:[],optional:[]},t,e]:[B(`cmd ${t}`),e,r],a=[].slice.call(s);for(;a.length&&void 0===a[a.length-1];)a.pop();const l=o||a.length;if(l<i.demanded.length)throw new A(`Not enough arguments provided. Expected ${i.demanded.length} but received ${a.length}.`);const c=i.demanded.length+i.optional.length;if(l>c)throw new A(`Too many arguments provided. Expected max ${c} but received ${l}.`);i.demanded.forEach((t=>{const e=H(a.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&W(e,t.cmd,n),n+=1})),i.optional.forEach((t=>{if(0===a.length)return;const e=H(a.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&W(e,t.cmd,n),n+=1}))}catch(t){console.warn(t.stack)}}function H(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function W(t,e,r){throw new A(`Invalid ${U[r]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}class Y{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,r=!0,n=!1){if(G("<array|function> [boolean] [boolean] [boolean]",[t,e,r],arguments.length),Array.isArray(t)){for(let n=0;n<t.length;n++){if("function"!=typeof t[n])throw Error("middleware must be a function");const i=t[n];i.applyBeforeValidation=e,i.global=r}Array.prototype.push.apply(this.globalMiddleware,t)}else if("function"==typeof t){const i=t;i.applyBeforeValidation=e,i.global=r,i.mutates=n,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,e){const r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((t=>{const n=[...r[e]||[],e];return!t.option||!n.includes(t.option)})),t.option=e,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const t=this.frozens.pop();void 0!==t&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter((t=>t.global))}}function q(t,e,r,n){return r.reduce(((t,r)=>{if(r.applyBeforeValidation!==n)return t;if(r.mutates){if(r.applied)return t;r.applied=!0}if(F(t))return t.then((t=>Promise.all([t,r(t,e)]))).then((([t,e])=>Object.assign(t,e)));{const n=r(t,e);return F(n)?n.then((e=>Object.assign(t,e))):Object.assign(t,n)}}),t)}function V(t,e,r=(t=>{throw t})){try{const r="function"==typeof t?t():t;return F(r)?r.then((t=>e(t))):e(r)}catch(t){return r(t)}}const z=/(^\*)|(^\$0)/;class J{constructor(t,e,r,n){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=n,this.usage=t,this.globalMiddleware=r,this.validation=e}addDirectory(t,e,r,n){"boolean"!=typeof(n=n||{}).recurse&&(n.recurse=!1),Array.isArray(n.extensions)||(n.extensions=["js"]);const i="function"==typeof n.visit?n.visit:t=>t;n.visit=(t,e,r)=>{const n=i(t,e,r);if(n){if(this.requireCache.has(e))return n;this.requireCache.add(e),this.addHandler(n)}return n},this.shim.requireDirectory({require:e,filename:r},t,n)}addHandler(t,e,r,n,i,s){let o=[];const a=function(t){return t?t.map((t=>(t.applyBeforeValidation=!1,t))):[]}(i);if(n=n||(()=>{}),Array.isArray(t))if(function(t){return t.every((t=>"string"==typeof t))}(t))[t,...o]=t;else for(const e of t)this.addHandler(e);else{if(function(t){return"object"==typeof t&&!Array.isArray(t)}(t)){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:this.moduleName(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void this.addHandler(e,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated)}if(K(r))return void this.addHandler([t].concat(o),e,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof t){const i=B(t);o=o.map((t=>B(t).cmd));let l=!1;const c=[i.cmd].concat(o).filter((t=>!z.test(t)||(l=!0,!1)));0===c.length&&l&&c.push("$0"),l&&(i.cmd=c[0],o=c.slice(1),t=t.replace(z,i.cmd)),o.forEach((t=>{this.aliasMap[t]=i.cmd})),!1!==e&&this.usage.command(t,e,l,o,s),this.handlers[i.cmd]={original:t,description:e,handler:n,builder:r||{},middlewares:a,deprecated:s,demanded:i.demanded,optional:i.optional},l&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,e,r,n,i,s){const o=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,a=e.getInternalMethods().getContext(),l=a.commands.slice(),c=!t;t&&(a.commands.push(t),a.fullCommands.push(o.original));const h=this.applyBuilderUpdateUsageAndParse(c,o,e,r.aliases,l,n,i,s);return F(h)?h.then((t=>this.applyMiddlewareAndGetResult(c,o,t.innerArgv,a,i,t.aliases,e))):this.applyMiddlewareAndGetResult(c,o,h.innerArgv,a,i,h.aliases,e)}applyBuilderUpdateUsageAndParse(t,e,r,n,i,s,o,a){const l=e.builder;let c=r;if(X(l)){const h=l(r.getInternalMethods().reset(n),a);if(F(h))return h.then((n=>{var a;return c=(a=n)&&"function"==typeof a.getInternalMethods?n:r,this.parseAndUpdateUsage(t,e,c,i,s,o)}))}else(function(t){return"object"==typeof t})(l)&&(c=r.getInternalMethods().reset(n),Object.keys(e.builder).forEach((t=>{c.option(t,l[t])})));return this.parseAndUpdateUsage(t,e,c,i,s,o)}parseAndUpdateUsage(t,e,r,n,i,s){t&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n,e),e.description);const o=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return F(o)?o.then((t=>({aliases:r.parsed.aliases,innerArgv:t}))):{aliases:r.parsed.aliases,innerArgv:o}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===t.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(t,e){const r=z.test(e.original)?e.original.replace(z,"").trim():e.original,n=t.filter((t=>!z.test(t)));return n.push(r),`$0 ${n.join(" ")}`}handleValidationAndGetResult(t,e,r,n,i,s,o,a){if(!s.getInternalMethods().getHasOutput()){const e=s.getInternalMethods().runValidation(i,a,s.parsed.error,t);r=V(r,(t=>(e(t),t)))}if(e.handler&&!s.getInternalMethods().getHasOutput()){s.getInternalMethods().setHasOutput();const n=!!s.getOptions().configuration["populate--"];s.getInternalMethods().postProcess(r,n,!1,!1),r=V(r=q(r,s,o,!1),(t=>{const r=e.handler(t);return F(r)?r.then((()=>t)):t})),t||s.getInternalMethods().getUsageInstance().cacheHelpMessage(),F(r)&&!s.getInternalMethods().hasParseCallback()&&r.catch((t=>{try{s.getInternalMethods().getUsageInstance().fail(null,t)}catch(t){}}))}return t||(n.commands.pop(),n.fullCommands.pop()),r}applyMiddlewareAndGetResult(t,e,r,n,i,s,o){let a={};if(i)return r;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(e,r,n,o));const l=this.globalMiddleware.getMiddleware().slice(0).concat(e.middlewares),c=q(r,o,l,!0);return F(c)?c.then((r=>this.handleValidationAndGetResult(t,e,r,n,s,o,l,a))):this.handleValidationAndGetResult(t,e,c,n,s,o,l,a)}populatePositionals(t,e,r,n){e._=e._.slice(r.commands.length);const i=t.demanded.slice(0),s=t.optional.slice(0),o={};for(this.validation.positionalCount(i.length,e._.length);i.length;){const t=i.shift();this.populatePositional(t,e,o)}for(;s.length;){const t=s.shift();this.populatePositional(t,e,o)}return e._=r.commands.concat(e._.map((t=>""+t))),this.postProcessPositionals(e,o,this.cmdToParseOptions(t.original),n),o}populatePositional(t,e,r){const n=t.cmd[0];t.variadic?r[n]=e._.splice(0).map(String):e._.length&&(r[n]=[String(e._.shift())])}cmdToParseOptions(t){const e={array:[],default:{},alias:{},demand:{}},r=B(t);return r.demanded.forEach((t=>{const[r,...n]=t.cmd;t.variadic&&(e.array.push(r),e.default[r]=[]),e.alias[r]=n,e.demand[r]=!0})),r.optional.forEach((t=>{const[r,...n]=t.cmd;t.variadic&&(e.array.push(r),e.default[r]=[]),e.alias[r]=n})),e}postProcessPositionals(t,e,r,n){const i=Object.assign({},n.getOptions());i.default=Object.assign(r.default,i.default);for(const t of Object.keys(r.alias))i.alias[t]=(i.alias[t]||[]).concat(r.alias[t]);i.array=i.array.concat(r.array),i.config={};const s=[];if(Object.keys(e).forEach((t=>{e[t].map((e=>{i.configuration["unknown-options-as-args"]&&(i.key[t]=!0),s.push(`--${t}`),s.push(e)}))})),!s.length)return;const o=Object.assign({},i.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(s,Object.assign({},i,{configuration:o}));if(a.error)n.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const r=Object.keys(e);Object.keys(e).forEach((t=>{r.push(...a.aliases[t])})),Object.keys(a.argv).forEach((i=>{r.includes(i)&&(e[i]||(e[i]=a.argv[i]),!this.isInConfigs(n,i)&&!this.isDefaulted(n,i)&&Object.prototype.hasOwnProperty.call(t,i)&&Object.prototype.hasOwnProperty.call(a.argv,i)&&(Array.isArray(t[i])||Array.isArray(a.argv[i]))?t[i]=[].concat(t[i],a.argv[i]):t[i]=a.argv[i])}))}}isDefaulted(t,e){const{default:r}=t.getOptions();return Object.prototype.hasOwnProperty.call(r,e)||Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(e))}isInConfigs(t,e){const{configObjects:r}=t.getOptions();return r.some((t=>Object.prototype.hasOwnProperty.call(t,e)))||r.some((t=>Object.prototype.hasOwnProperty.call(t,this.shim.Parser.camelCase(e))))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){const e=z.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(e,this.defaultCommand.description)}const e=this.defaultCommand.builder;if(X(e))return e(t,!0);K(e)||Object.keys(e).forEach((r=>{t.option(r,e[r])}))}moduleName(t){const e=function(t){if("undefined"==typeof require)return null;for(let e,r=0,n=Object.keys(require.cache);r<n.length;r++)if(e=require.cache[n[r]],e.exports===t)return e;return null}(t);if(!e)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(e.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:e,desc:r}){for(const n of[t,e,r]){if("string"==typeof n||!1===n)return n;$(n,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const t=this.frozens.pop();$(t,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function K(t){return"object"==typeof t&&!!t.builder&&"function"==typeof t.handler}function X(t){return"function"==typeof t}function Z(t={},e=(()=>!0)){const r={};return D(t).forEach((n=>{e(n,t[n])&&(r[n]=t[n])})),r}function Q(t){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((e=>{const r=e;r._handle&&r.isTTY&&"function"==typeof r._handle.setBlocking&&r._handle.setBlocking(t)}))}function tt(t){return"boolean"==typeof t}function et(t,e){const r=e.y18n.__,n={},i=[];n.failFn=function(t){i.push(t)};let s=null,o=null,a=!0;n.showHelpOnFail=function(e=!0,r){const[i,l]="string"==typeof e?[!0,e]:[e,r];return t.getInternalMethods().isGlobalContext()&&(o=l),s=l,a=i,n};let l=!1;n.fail=function(e,r){const c=t.getInternalMethods().getLoggerInstance();if(!i.length){if(t.getExitProcess()&&Q(!0),!l){l=!0,a&&(t.showHelp("error"),c.error()),(e||r)&&c.error(e||r);const n=s||o;n&&((e||r)&&c.error(""),c.error(n))}if(r=r||new A(e),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,r);throw r}for(let t=i.length-1;t>=0;--t){const s=i[t];if(tt(s)){if(r)throw r;if(e)throw Error(e)}else s(e,r,n)}};let c=[],h=!1;n.usage=(t,e)=>null===t?(h=!0,c=[],n):(h=!1,c.push([t,e||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>h,n.getPositionalGroupName=()=>r("Positionals:");let u=[];n.example=(t,e)=>{u.push([t,e||""])};let d=[];n.command=function(t,e,r,n,i=!1){r&&(d=d.map((t=>(t[2]=!1,t)))),d.push([t,e||"",r,n,i])},n.getCommands=()=>d;let f={};n.describe=function(t,e){Array.isArray(t)?t.forEach((t=>{n.describe(t,e)})):"object"==typeof t?Object.keys(t).forEach((e=>{n.describe(e,t[e])})):f[t]=e},n.getDescriptions=()=>f;let p=[];n.epilog=t=>{p.push(t)};let m,g=!1;function y(){return g||(m=function(){const t=80;return e.process.stdColumns?Math.min(t,e.process.stdColumns):t}(),g=!0),m}n.wrap=t=>{g=!0,m=t};const b="__yargsString__:";function v(t,r,n){let i=0;return Array.isArray(t)||(t=Object.values(t).map((t=>[t]))),t.forEach((t=>{i=Math.max(e.stringWidth(n?`${n} ${it(t[0])}`:it(t[0]))+nt(t[0]),i)})),r&&(i=Math.min(i,parseInt((.5*r).toString(),10))),i}let w;function E(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function _(t,e){let n=`[${r("default:")} `;if(void 0===t&&!e)return null;if(e)n+=e;else switch(typeof t){case"string":n+=`"${t}"`;break;case"object":n+=JSON.stringify(t);break;default:n+=t}return`${n}]`}n.deferY18nLookup=t=>b+t,n.help=function(){if(w)return w;!function(){const e=t.getDemandedOptions(),r=t.getOptions();(Object.keys(r.alias)||[]).forEach((i=>{r.alias[i].forEach((s=>{f[s]&&n.describe(i,f[s]),s in e&&t.demandOption(i,e[s]),r.boolean.includes(s)&&t.boolean(i),r.count.includes(s)&&t.count(i),r.string.includes(s)&&t.string(i),r.normalize.includes(s)&&t.normalize(i),r.array.includes(s)&&t.array(i),r.number.includes(s)&&t.number(i)}))}))}();const i=t.customScriptName?t.$0:e.path.basename(t.$0),s=t.getDemandedOptions(),o=t.getDemandedCommands(),a=t.getDeprecatedOptions(),l=t.getGroups(),m=t.getOptions();let g=[];g=g.concat(Object.keys(f)),g=g.concat(Object.keys(s)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(m.default)),g=g.filter(E),g=Object.keys(g.reduce(((t,e)=>("_"!==e&&(t[e]=!0),t)),{}));const x=y(),S=e.cliui({width:x,wrap:!!x});if(!h)if(c.length)c.forEach((t=>{S.div({text:`${t[0].replace(/\$0/g,i)}`}),t[1]&&S.div({text:`${t[1]}`,padding:[1,0,0,0]})})),S.div();else if(d.length){let t=null;t=o._?`${i} <${r("command")}>\n`:`${i} [${r("command")}]\n`,S.div(`${t}`)}if(d.length>1||1===d.length&&!d[0][2]){S.div(r("Commands:"));const e=t.getInternalMethods().getContext(),n=e.commands.length?`${e.commands.join(" ")} `:"";!0===t.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((t,e)=>t[0].localeCompare(e[0]))));const s=i?`${i} `:"";d.forEach((t=>{const e=`${s}${n}${t[0].replace(/^\$0 ?/,"")}`;S.span({text:e,padding:[0,2,0,2],width:v(d,x,`${i}${n}`)+4},{text:t[1]});const o=[];t[2]&&o.push(`[${r("default")}]`),t[3]&&t[3].length&&o.push(`[${r("aliases:")} ${t[3].join(", ")}]`),t[4]&&("string"==typeof t[4]?o.push(`[${r("deprecated: %s",t[4])}]`):o.push(`[${r("deprecated")}]`)),o.length?S.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):S.div()})),S.div()}const O=(Object.keys(m.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);g=g.filter((e=>!t.parsed.newAliases[e]&&O.every((t=>-1===(m.alias[t]||[]).indexOf(e)))));const T=r("Options:");l[T]||(l[T]=[]),function(t,e,r,n){let i=[],s=null;Object.keys(r).forEach((t=>{i=i.concat(r[t])})),t.forEach((t=>{s=[t].concat(e[t]),s.some((t=>-1!==i.indexOf(t)))||r[n].push(t)}))}(g,m.alias,l,T);const A=t=>/^--/.test(it(t)),I=Object.keys(l).filter((t=>l[t].length>0)).map((t=>({groupName:t,normalizedKeys:l[t].filter(E).map((t=>{if(O.includes(t))return t;for(let e,r=0;void 0!==(e=O[r]);r++)if((m.alias[e]||[]).includes(t))return e;return t}))}))).filter((({normalizedKeys:t})=>t.length>0)).map((({groupName:t,normalizedKeys:e})=>{const r=e.reduce(((e,r)=>(e[r]=[r].concat(m.alias[r]||[]).map((e=>t===n.getPositionalGroupName()?e:(/^[0-9]$/.test(e)?m.boolean.includes(r)?"-":"--":e.length>1?"--":"-")+e)).sort(((t,e)=>A(t)===A(e)?0:A(t)?1:-1)).join(", "),e)),{});return{groupName:t,normalizedKeys:e,switches:r}}));if(I.filter((({groupName:t})=>t!==n.getPositionalGroupName())).some((({normalizedKeys:t,switches:e})=>!t.every((t=>A(e[t])))))&&I.filter((({groupName:t})=>t!==n.getPositionalGroupName())).forEach((({normalizedKeys:t,switches:e})=>{t.forEach((t=>{var r,n;A(e[t])&&(e[t]=(r=e[t],n="-x, ".length,rt(r)?{text:r.text,indentation:r.indentation+n}:{text:r,indentation:n}))}))})),I.forEach((({groupName:t,normalizedKeys:e,switches:i})=>{S.div(t),e.forEach((t=>{const e=i[t];let o=f[t]||"",l=null;o.includes(b)&&(o=r(o.substring(b.length))),m.boolean.includes(t)&&(l=`[${r("boolean")}]`),m.count.includes(t)&&(l=`[${r("count")}]`),m.string.includes(t)&&(l=`[${r("string")}]`),m.normalize.includes(t)&&(l=`[${r("string")}]`),m.array.includes(t)&&(l=`[${r("array")}]`),m.number.includes(t)&&(l=`[${r("number")}]`);const c=[t in a?(h=a[t],"string"==typeof h?`[${r("deprecated: %s",h)}]`:`[${r("deprecated")}]`):null,l,t in s?`[${r("required")}]`:null,m.choices&&m.choices[t]?`[${r("choices:")} ${n.stringifiedValues(m.choices[t])}]`:null,_(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var h;S.span({text:it(e),padding:[0,2,0,2+nt(e)],width:v(i,x)+4},o),c?S.div({text:c,padding:[0,0,0,2],align:"right"}):S.div()})),S.div()})),u.length&&(S.div(r("Examples:")),u.forEach((t=>{t[0]=t[0].replace(/\$0/g,i)})),u.forEach((t=>{""===t[1]?S.div({text:t[0],padding:[0,2,0,2]}):S.div({text:t[0],padding:[0,2,0,2],width:v(u,x)+4},{text:t[1]})})),S.div()),p.length>0){const t=p.map((t=>t.replace(/\$0/g,i))).join("\n");S.div(`${t}\n`)}return S.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){w=this.help()},n.clearCachedHelpMessage=function(){w=void 0},n.hasCachedHelpMessage=function(){return!!w},n.showHelp=e=>{const r=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:r[e])(n.help())},n.functionDescription=t=>["(",t.name?e.Parser.decamelize(t.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(t,e){let r="";const n=e||", ",i=[].concat(t);return t&&i.length?(i.forEach((t=>{r.length&&(r+=n),r+=JSON.stringify(t)})),r):r};let x=null;n.version=t=>{x=t},n.showVersion=e=>{const r=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:r[e])(x)},n.reset=function(t){return s=null,l=!1,c=[],h=!1,p=[],u=[],d=[],f=Z(f,(e=>!t[e])),n};const S=[];return n.freeze=function(){S.push({failMessage:s,failureOutput:l,usages:c,usageDisabled:h,epilogs:p,examples:u,commands:d,descriptions:f})},n.unfreeze=function(t=!1){const e=S.pop();e&&(t?(f={...e.descriptions,...f},d=[...e.commands,...d],c=[...e.usages,...c],u=[...e.examples,...u],p=[...e.epilogs,...p]):({failMessage:s,failureOutput:l,usages:c,usageDisabled:h,epilogs:p,examples:u,commands:d,descriptions:f}=e))},n}function rt(t){return"object"==typeof t}function nt(t){return rt(t)?t.indentation:0}function it(t){return rt(t)?t.text:t}class st{constructor(t,e,r,n){var i,s,o;this.yargs=t,this.usage=e,this.command=r,this.shim=n,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(i=this.shim.getEnv("SHELL"))||void 0===i?void 0:i.includes("zsh"))||(null===(s=this.shim.getEnv("ZSH_NAME"))||void 0===s?void 0:s.includes("zsh")))&&void 0!==o&&o}defaultCompletion(t,e,r,n){const i=this.command.getCommandHandlers();for(let e=0,r=t.length;e<r;++e)if(i[t[e]]&&i[t[e]].builder){const r=i[t[e]].builder;if(X(r)){this.indexAfterLastReset=e+1;const t=this.yargs.getInternalMethods().reset();return r(t,!0),t.argv}}const s=[];this.commandCompletions(s,t,r),this.optionCompletions(s,t,e,r),this.choicesFromOptionsCompletions(s,t,e,r),this.choicesFromPositionalsCompletions(s,t,e,r),n(null,s)}commandCompletions(t,e,r){const n=this.yargs.getInternalMethods().getContext().commands;r.match(/^-/)||n[n.length-1]===r||this.previousArgHasChoices(e)||this.usage.getCommands().forEach((r=>{const n=B(r[0]).cmd;if(-1===e.indexOf(n))if(this.zshShell){const e=r[1]||"";t.push(n.replace(/:/g,"\\:")+":"+e)}else t.push(n)}))}optionCompletions(t,e,r,n){if((n.match(/^-/)||""===n&&0===t.length)&&!this.previousArgHasChoices(e)){const r=this.yargs.getOptions(),i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(r.key).forEach((s=>{const o=!!r.configuration["boolean-negation"]&&r.boolean.includes(s);i.includes(s)||r.hiddenOptions.includes(s)||this.argsContainKey(e,s,o)||(this.completeOptionKey(s,t,n),o&&r.default[s]&&this.completeOptionKey(`no-${s}`,t,n))}))}}choicesFromOptionsCompletions(t,e,r,n){if(this.previousArgHasChoices(e)){const r=this.getPreviousArgChoices(e);r&&r.length>0&&t.push(...r.map((t=>t.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(t,e,r,n){if(""===n&&t.length>0&&this.previousArgHasChoices(e))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],s=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=i[r._.length-s-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const e of a)e.startsWith(n)&&t.push(e.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let e=t[t.length-1],r="";if(!e.startsWith("-")&&t.length>1&&(r=e,e=t[t.length-2]),!e.startsWith("-"))return;const n=e.replace(/^-+/,""),i=this.yargs.getOptions(),s=[n,...this.yargs.getAliases()[n]||[]];let o;for(const t of s)if(Object.prototype.hasOwnProperty.call(i.key,t)&&Array.isArray(i.choices[t])){o=i.choices[t];break}return o?o.filter((t=>!r||t.startsWith(r))):void 0}previousArgHasChoices(t){const e=this.getPreviousArgChoices(t);return void 0!==e&&e.length>0}argsContainKey(t,e,r){const n=e=>-1!==t.indexOf((/^[^0-9]$/.test(e)?"-":"--")+e);if(n(e))return!0;if(r&&n(`no-${e}`))return!0;if(this.aliases)for(const t of this.aliases[e])if(n(t))return!0;return!1}completeOptionKey(t,e,r){const n=this.usage.getDescriptions(),i=!/^--/.test(r)&&(t=>/^[^0-9]$/.test(t))(t)?"-":"--";if(this.zshShell){const r=n[t]||"";e.push(i+`${t.replace(/:/g,"\\:")}:${r.replace("__yargsString__:","")}`)}else e.push(i+t)}customCompletion(t,e,r,n){if($(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const t=this.customCompletionFunction(r,e);return F(t)?t.then((t=>{this.shim.process.nextTick((()=>{n(null,t)}))})).catch((t=>{this.shim.process.nextTick((()=>{n(t,void 0)}))})):n(null,t)}return function(t){return t.length>3}(this.customCompletionFunction)?this.customCompletionFunction(r,e,((i=n)=>this.defaultCompletion(t,e,r,i)),(t=>{n(null,t)})):this.customCompletionFunction(r,e,(t=>{n(null,t)}))}getCompletion(t,e){const r=t.length?t[t.length-1]:"",n=this.yargs.parse(t,!0),i=this.customCompletionFunction?n=>this.customCompletion(t,n,r,e):n=>this.defaultCompletion(t,n,r,e);return F(n)?n.then(i):i(n)}generateCompletionScript(t,e){let r=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const n=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),r=r.replace(/{{app_name}}/g,n),r=r.replace(/{{completion_command}}/g,e),r.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}}function ot(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const r=[];let n,i;for(n=0;n<=e.length;n++)r[n]=[n];for(i=0;i<=t.length;i++)r[0][i]=i;for(n=1;n<=e.length;n++)for(i=1;i<=t.length;i++)e.charAt(n-1)===t.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&e.charAt(n-2)===t.charAt(i-1)&&e.charAt(n-1)===t.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[e.length][t.length]}const at=["$0","--","_"];let lt,ct=[];function ht(t,e,r,n){lt=n;let i={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeof t.extends)return i;const n=/\.json|\..*rc$/.test(t.extends);let s=null;if(n)s=function(t,e){return lt.path.resolve(t,e)}(e,t.extends);else try{s=require.resolve(t.extends)}catch(e){return t}!function(t){if(ct.indexOf(t)>-1)throw new A(`Circular extended configurations: '${t}'.`)}(s),ct.push(s),i=n?JSON.parse(lt.readFileSync(s,"utf8")):require(t.extends),delete t.extends,i=ht(i,lt.path.dirname(s),r,lt)}return ct=[],r?ut(i,t):Object.assign({},i,t)}function ut(t,e){const r={};function n(t){return t&&"object"==typeof t&&!Array.isArray(t)}Object.assign(r,t);for(const i of Object.keys(e))n(e[i])&&n(r[i])?r[i]=ut(t[i],e[i]):r[i]=e[i];return r}var dt,ft,pt,mt,gt,yt,bt,vt,wt,Et,_t,xt,St,Ot,Tt,At,It,Rt,kt,Ct,Mt,jt,Pt,Nt,$t,Lt,Dt,Ft,Bt,Ut,Gt,Ht,Wt,Yt,qt=function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},Vt=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};const zt=Symbol("copyDoubleDash"),Jt=Symbol("copyDoubleDash"),Kt=Symbol("deleteFromParserHintObject"),Xt=Symbol("emitWarning"),Zt=Symbol("freeze"),Qt=Symbol("getDollarZero"),te=Symbol("getParserConfiguration"),ee=Symbol("guessLocale"),re=Symbol("guessVersion"),ne=Symbol("parsePositionalNumbers"),ie=Symbol("pkgUp"),se=Symbol("populateParserHintArray"),oe=Symbol("populateParserHintSingleValueDictionary"),ae=Symbol("populateParserHintArrayDictionary"),le=Symbol("populateParserHintDictionary"),ce=Symbol("sanitizeKey"),he=Symbol("setKey"),ue=Symbol("unfreeze"),de=Symbol("validateAsync"),fe=Symbol("getCommandInstance"),pe=Symbol("getContext"),me=Symbol("getHasOutput"),ge=Symbol("getLoggerInstance"),ye=Symbol("getParseContext"),be=Symbol("getUsageInstance"),ve=Symbol("getValidationInstance"),we=Symbol("hasParseCallback"),Ee=Symbol("isGlobalContext"),_e=Symbol("postProcess"),xe=Symbol("rebase"),Se=Symbol("reset"),Oe=Symbol("runYargsParserAndExecuteCommands"),Te=Symbol("runValidation"),Ae=Symbol("setHasOutput"),Ie=Symbol("kTrackManuallySetKeys");class Re{constructor(t=[],e,r,n){this.customScriptName=!1,this.parsed=!1,dt.set(this,void 0),ft.set(this,void 0),pt.set(this,{commands:[],fullCommands:[]}),mt.set(this,null),gt.set(this,null),yt.set(this,"show-hidden"),bt.set(this,null),vt.set(this,!0),wt.set(this,{}),Et.set(this,!0),_t.set(this,[]),xt.set(this,void 0),St.set(this,{}),Ot.set(this,!1),Tt.set(this,null),At.set(this,!0),It.set(this,void 0),Rt.set(this,""),kt.set(this,void 0),Ct.set(this,void 0),Mt.set(this,{}),jt.set(this,null),Pt.set(this,null),Nt.set(this,{}),$t.set(this,{}),Lt.set(this,void 0),Dt.set(this,!1),Ft.set(this,void 0),Bt.set(this,!1),Ut.set(this,!1),Gt.set(this,!1),Ht.set(this,void 0),Wt.set(this,null),Yt.set(this,void 0),qt(this,Ft,n,"f"),qt(this,Lt,t,"f"),qt(this,ft,e,"f"),qt(this,Ct,r,"f"),qt(this,xt,new Y(this),"f"),this.$0=this[Qt](),this[Se](),qt(this,dt,Vt(this,dt,"f"),"f"),qt(this,Ht,Vt(this,Ht,"f"),"f"),qt(this,Yt,Vt(this,Yt,"f"),"f"),qt(this,kt,Vt(this,kt,"f"),"f"),Vt(this,kt,"f").showHiddenOpt=Vt(this,yt,"f"),qt(this,It,this[Jt](),"f")}addHelpOpt(t,e){return G("[string|boolean] [string]",[t,e],arguments.length),Vt(this,Tt,"f")&&(this[Kt](Vt(this,Tt,"f")),qt(this,Tt,null,"f")),!1===t&&void 0===e||(qt(this,Tt,"string"==typeof t?t:"help","f"),this.boolean(Vt(this,Tt,"f")),this.describe(Vt(this,Tt,"f"),e||Vt(this,Ht,"f").deferY18nLookup("Show help"))),this}help(t,e){return this.addHelpOpt(t,e)}addShowHiddenOpt(t,e){if(G("[string|boolean] [string]",[t,e],arguments.length),!1===t&&void 0===e)return this;const r="string"==typeof t?t:Vt(this,yt,"f");return this.boolean(r),this.describe(r,e||Vt(this,Ht,"f").deferY18nLookup("Show hidden options")),Vt(this,kt,"f").showHiddenOpt=r,this}showHidden(t,e){return this.addShowHiddenOpt(t,e)}alias(t,e){return G("<object|string|array> [string|array]",[t,e],arguments.length),this[ae](this.alias.bind(this),"alias",t,e),this}array(t){return G("<array|string>",[t],arguments.length),this[se]("array",t),this[Ie](t),this}boolean(t){return G("<array|string>",[t],arguments.length),this[se]("boolean",t),this[Ie](t),this}check(t,e){return G("<function> [boolean]",[t,e],arguments.length),this.middleware(((e,r)=>V((()=>t(e,r.getOptions())),(r=>(r?("string"==typeof r||r instanceof Error)&&Vt(this,Ht,"f").fail(r.toString(),r):Vt(this,Ht,"f").fail(Vt(this,Ft,"f").y18n.__("Argument check failed: %s",t.toString())),e)),(t=>(Vt(this,Ht,"f").fail(t.message?t.message:t.toString(),t),e)))),!1,e),this}choices(t,e){return G("<object|string|array> [string|array]",[t,e],arguments.length),this[ae](this.choices.bind(this),"choices",t,e),this}coerce(t,e){if(G("<object|string|array> [function]",[t,e],arguments.length),Array.isArray(t)){if(!e)throw new A("coerce callback must be provided");for(const r of t)this.coerce(r,e);return this}if("object"==typeof t){for(const e of Object.keys(t))this.coerce(e,t[e]);return this}if(!e)throw new A("coerce callback must be provided");return Vt(this,kt,"f").key[t]=!0,Vt(this,xt,"f").addCoerceMiddleware(((r,n)=>{let i;return Object.prototype.hasOwnProperty.call(r,t)?V((()=>(i=n.getAliases(),e(r[t]))),(e=>{r[t]=e;const s=n.getInternalMethods().getParserConfiguration()["strip-aliased"];if(i[t]&&!0!==s)for(const n of i[t])r[n]=e;return r}),(t=>{throw new A(t.message)})):r}),t),this}conflicts(t,e){return G("<string|object> [string|array]",[t,e],arguments.length),Vt(this,Yt,"f").conflicts(t,e),this}config(t="config",e,r){return G("[object|string] [string|function] [function]",[t,e,r],arguments.length),"object"!=typeof t||Array.isArray(t)?("function"==typeof e&&(r=e,e=void 0),this.describe(t,e||Vt(this,Ht,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach((t=>{Vt(this,kt,"f").config[t]=r||!0})),this):(t=ht(t,Vt(this,ft,"f"),this[te]()["deep-merge-config"]||!1,Vt(this,Ft,"f")),Vt(this,kt,"f").configObjects=(Vt(this,kt,"f").configObjects||[]).concat(t),this)}completion(t,e,r){return G("[string] [string|boolean|function] [function]",[t,e,r],arguments.length),"function"==typeof e&&(r=e,e=void 0),qt(this,gt,t||Vt(this,gt,"f")||"completion","f"),e||!1===e||(e="generate completion script"),this.command(Vt(this,gt,"f"),e),r&&Vt(this,mt,"f").registerFunction(r),this}command(t,e,r,n,i,s){return G("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,e,r,n,i,s],arguments.length),Vt(this,dt,"f").addHandler(t,e,r,n,i,s),this}commands(t,e,r,n,i,s){return this.command(t,e,r,n,i,s)}commandDir(t,e){G("<string> [object]",[t,e],arguments.length);const r=Vt(this,Ct,"f")||Vt(this,Ft,"f").require;return Vt(this,dt,"f").addDirectory(t,r,Vt(this,Ft,"f").getCallerFile(),e),this}count(t){return G("<array|string>",[t],arguments.length),this[se]("count",t),this[Ie](t),this}default(t,e,r){return G("<object|string|array> [*] [string]",[t,e,r],arguments.length),r&&(L(t,Vt(this,Ft,"f")),Vt(this,kt,"f").defaultDescription[t]=r),"function"==typeof e&&(L(t,Vt(this,Ft,"f")),Vt(this,kt,"f").defaultDescription[t]||(Vt(this,kt,"f").defaultDescription[t]=Vt(this,Ht,"f").functionDescription(e)),e=e.call()),this[oe](this.default.bind(this),"default",t,e),this}defaults(t,e,r){return this.default(t,e,r)}demandCommand(t=1,e,r,n){return G("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,r,n],arguments.length),"number"!=typeof e&&(r=e,e=1/0),this.global("_",!1),Vt(this,kt,"f").demandedCommands._={min:t,max:e,minMsg:r,maxMsg:n},this}demand(t,e,r){return Array.isArray(e)?(e.forEach((t=>{$(r,!0,Vt(this,Ft,"f")),this.demandOption(t,r)})),e=1/0):"number"!=typeof e&&(r=e,e=1/0),"number"==typeof t?($(r,!0,Vt(this,Ft,"f")),this.demandCommand(t,e,r,r)):Array.isArray(t)?t.forEach((t=>{$(r,!0,Vt(this,Ft,"f")),this.demandOption(t,r)})):"string"==typeof r?this.demandOption(t,r):!0!==r&&void 0!==r||this.demandOption(t),this}demandOption(t,e){return G("<object|string|array> [string]",[t,e],arguments.length),this[oe](this.demandOption.bind(this),"demandedOptions",t,e),this}deprecateOption(t,e){return G("<string> [string|boolean]",[t,e],arguments.length),Vt(this,kt,"f").deprecatedOptions[t]=e,this}describe(t,e){return G("<object|string|array> [string]",[t,e],arguments.length),this[he](t,!0),Vt(this,Ht,"f").describe(t,e),this}detectLocale(t){return G("<boolean>",[t],arguments.length),qt(this,vt,t,"f"),this}env(t){return G("[string|boolean]",[t],arguments.length),!1===t?delete Vt(this,kt,"f").envPrefix:Vt(this,kt,"f").envPrefix=t||"",this}epilogue(t){return G("<string>",[t],arguments.length),Vt(this,Ht,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,e){return G("<string|array> [string]",[t,e],arguments.length),Array.isArray(t)?t.forEach((t=>this.example(...t))):Vt(this,Ht,"f").example(t,e),this}exit(t,e){qt(this,Ot,!0,"f"),qt(this,bt,e,"f"),Vt(this,Et,"f")&&Vt(this,Ft,"f").process.exit(t)}exitProcess(t=!0){return G("[boolean]",[t],arguments.length),qt(this,Et,t,"f"),this}fail(t){if(G("<function|boolean>",[t],arguments.length),"boolean"==typeof t&&!1!==t)throw new A("Invalid first argument. Expected function or boolean 'false'");return Vt(this,Ht,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,e){return G("<array> [function]",[t,e],arguments.length),e?Vt(this,mt,"f").getCompletion(t,e):new Promise(((e,r)=>{Vt(this,mt,"f").getCompletion(t,((t,n)=>{t?r(t):e(n)}))}))}getDemandedOptions(){return G([],0),Vt(this,kt,"f").demandedOptions}getDemandedCommands(){return G([],0),Vt(this,kt,"f").demandedCommands}getDeprecatedOptions(){return G([],0),Vt(this,kt,"f").deprecatedOptions}getDetectLocale(){return Vt(this,vt,"f")}getExitProcess(){return Vt(this,Et,"f")}getGroups(){return Object.assign({},Vt(this,St,"f"),Vt(this,$t,"f"))}getHelp(){if(qt(this,Ot,!0,"f"),!Vt(this,Ht,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Oe](Vt(this,Lt,"f"),void 0,void 0,0,!0);if(F(t))return t.then((()=>Vt(this,Ht,"f").help()))}const t=Vt(this,dt,"f").runDefaultBuilderOn(this);if(F(t))return t.then((()=>Vt(this,Ht,"f").help()))}return Promise.resolve(Vt(this,Ht,"f").help())}getOptions(){return Vt(this,kt,"f")}getStrict(){return Vt(this,Bt,"f")}getStrictCommands(){return Vt(this,Ut,"f")}getStrictOptions(){return Vt(this,Gt,"f")}global(t,e){return G("<string|array> [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?Vt(this,kt,"f").local=Vt(this,kt,"f").local.filter((e=>-1===t.indexOf(e))):t.forEach((t=>{Vt(this,kt,"f").local.includes(t)||Vt(this,kt,"f").local.push(t)})),this}group(t,e){G("<string|array> <string>",[t,e],arguments.length);const r=Vt(this,$t,"f")[e]||Vt(this,St,"f")[e];Vt(this,$t,"f")[e]&&delete Vt(this,$t,"f")[e];const n={};return Vt(this,St,"f")[e]=(r||[]).concat(t).filter((t=>!n[t]&&(n[t]=!0))),this}hide(t){return G("<string>",[t],arguments.length),Vt(this,kt,"f").hiddenOptions.push(t),this}implies(t,e){return G("<string|object> [number|string|array]",[t,e],arguments.length),Vt(this,Yt,"f").implies(t,e),this}locale(t){return G("[string]",[t],arguments.length),void 0===t?(this[ee](),Vt(this,Ft,"f").y18n.getLocale()):(qt(this,vt,!1,"f"),Vt(this,Ft,"f").y18n.setLocale(t),this)}middleware(t,e,r){return Vt(this,xt,"f").addMiddleware(t,!!e,r)}nargs(t,e){return G("<string|object|array> [number]",[t,e],arguments.length),this[oe](this.nargs.bind(this),"narg",t,e),this}normalize(t){return G("<array|string>",[t],arguments.length),this[se]("normalize",t),this}number(t){return G("<array|string>",[t],arguments.length),this[se]("number",t),this[Ie](t),this}option(t,e){if(G("<string|object> [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach((e=>{this.options(e,t[e])}));else{"object"!=typeof e&&(e={}),this[Ie](t),!Vt(this,Wt,"f")||"version"!==t&&"version"!==(null==e?void 0:e.alias)||this[Xt](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),Vt(this,kt,"f").key[t]=!0,e.alias&&this.alias(t,e.alias);const r=e.deprecate||e.deprecated;r&&this.deprecateOption(t,r);const n=e.demand||e.required||e.require;n&&this.demand(t,n),e.demandOption&&this.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),e.conflicts&&this.conflicts(t,e.conflicts),"default"in e&&this.default(t,e.default),void 0!==e.implies&&this.implies(t,e.implies),void 0!==e.nargs&&this.nargs(t,e.nargs),e.config&&this.config(t,e.configParser),e.normalize&&this.normalize(t),e.choices&&this.choices(t,e.choices),e.coerce&&this.coerce(t,e.coerce),e.group&&this.group(t,e.group),(e.boolean||"boolean"===e.type)&&(this.boolean(t),e.alias&&this.boolean(e.alias)),(e.array||"array"===e.type)&&(this.array(t),e.alias&&this.array(e.alias)),(e.number||"number"===e.type)&&(this.number(t),e.alias&&this.number(e.alias)),(e.string||"string"===e.type)&&(this.string(t),e.alias&&this.string(e.alias)),(e.count||"count"===e.type)&&this.count(t),"boolean"==typeof e.global&&this.global(t,e.global),e.defaultDescription&&(Vt(this,kt,"f").defaultDescription[t]=e.defaultDescription),e.skipValidation&&this.skipValidation(t);const i=e.describe||e.description||e.desc;this.describe(t,i),e.hidden&&this.hide(t),e.requiresArg&&this.requiresArg(t)}return this}options(t,e){return this.option(t,e)}parse(t,e,r){G("[string|array] [function|boolean|object] [function]",[t,e,r],arguments.length),this[Zt](),void 0===t&&(t=Vt(this,Lt,"f")),"object"==typeof e&&(qt(this,Pt,e,"f"),e=r),"function"==typeof e&&(qt(this,jt,e,"f"),e=!1),e||qt(this,Lt,t,"f"),Vt(this,jt,"f")&&qt(this,Et,!1,"f");const n=this[Oe](t,!!e),i=this.parsed;return Vt(this,mt,"f").setParsed(this.parsed),F(n)?n.then((t=>(Vt(this,jt,"f")&&Vt(this,jt,"f").call(this,Vt(this,bt,"f"),t,Vt(this,Rt,"f")),t))).catch((t=>{throw Vt(this,jt,"f")&&Vt(this,jt,"f")(t,this.parsed.argv,Vt(this,Rt,"f")),t})).finally((()=>{this[ue](),this.parsed=i})):(Vt(this,jt,"f")&&Vt(this,jt,"f").call(this,Vt(this,bt,"f"),n,Vt(this,Rt,"f")),this[ue](),this.parsed=i,n)}parseAsync(t,e,r){const n=this.parse(t,e,r);return F(n)?n:Promise.resolve(n)}parseSync(t,e,r){const n=this.parse(t,e,r);if(F(n))throw new A(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(t){return G("<object>",[t],arguments.length),qt(this,Mt,t,"f"),this}pkgConf(t,e){G("<string> [string]",[t,e],arguments.length);let r=null;const n=this[ie](e||Vt(this,ft,"f"));return n[t]&&"object"==typeof n[t]&&(r=ht(n[t],e||Vt(this,ft,"f"),this[te]()["deep-merge-config"]||!1,Vt(this,Ft,"f")),Vt(this,kt,"f").configObjects=(Vt(this,kt,"f").configObjects||[]).concat(r)),this}positional(t,e){G("<string> <object>",[t,e],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=Z(e,((t,e)=>!("type"===t&&!["string","number","boolean"].includes(e))&&r.includes(t)));const n=Vt(this,pt,"f").fullCommands[Vt(this,pt,"f").fullCommands.length-1],i=n?Vt(this,dt,"f").cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};return D(i).forEach((r=>{const n=i[r];Array.isArray(n)?-1!==n.indexOf(t)&&(e[r]=!0):n[t]&&!(r in e)&&(e[r]=n[t])})),this.group(t,Vt(this,Ht,"f").getPositionalGroupName()),this.option(t,e)}recommendCommands(t=!0){return G("[boolean]",[t],arguments.length),qt(this,Dt,t,"f"),this}required(t,e,r){return this.demand(t,e,r)}require(t,e,r){return this.demand(t,e,r)}requiresArg(t){return G("<array|string|object> [number]",[t],arguments.length),"string"==typeof t&&Vt(this,kt,"f").narg[t]||this[oe](this.requiresArg.bind(this),"narg",t,NaN),this}showCompletionScript(t,e){return G("[string] [string]",[t,e],arguments.length),t=t||this.$0,Vt(this,It,"f").log(Vt(this,mt,"f").generateCompletionScript(t,e||Vt(this,gt,"f")||"completion")),this}showHelp(t){if(G("[string|function]",[t],arguments.length),qt(this,Ot,!0,"f"),!Vt(this,Ht,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Oe](Vt(this,Lt,"f"),void 0,void 0,0,!0);if(F(e))return e.then((()=>{Vt(this,Ht,"f").showHelp(t)})),this}const e=Vt(this,dt,"f").runDefaultBuilderOn(this);if(F(e))return e.then((()=>{Vt(this,Ht,"f").showHelp(t)})),this}return Vt(this,Ht,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,e){return G("[boolean|string] [string]",[t,e],arguments.length),Vt(this,Ht,"f").showHelpOnFail(t,e),this}showVersion(t){return G("[string|function]",[t],arguments.length),Vt(this,Ht,"f").showVersion(t),this}skipValidation(t){return G("<array|string>",[t],arguments.length),this[se]("skipValidation",t),this}strict(t){return G("[boolean]",[t],arguments.length),qt(this,Bt,!1!==t,"f"),this}strictCommands(t){return G("[boolean]",[t],arguments.length),qt(this,Ut,!1!==t,"f"),this}strictOptions(t){return G("[boolean]",[t],arguments.length),qt(this,Gt,!1!==t,"f"),this}string(t){return G("<array|string>",[t],arguments.length),this[se]("string",t),this[Ie](t),this}terminalWidth(){return G([],0),Vt(this,Ft,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return G("<object>",[t],arguments.length),qt(this,vt,!1,"f"),Vt(this,Ft,"f").y18n.updateLocale(t),this}usage(t,e,r,n){if(G("<string|null|undefined> [string|boolean] [function|object] [function]",[t,e,r,n],arguments.length),void 0!==e){if($(t,null,Vt(this,Ft,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,e,r,n);throw new A(".usage() description must start with $0 if being used as alias for .command()")}return Vt(this,Ht,"f").usage(t),this}version(t,e,r){const n="version";if(G("[boolean|string] [string] [string]",[t,e,r],arguments.length),Vt(this,Wt,"f")&&(this[Kt](Vt(this,Wt,"f")),Vt(this,Ht,"f").version(void 0),qt(this,Wt,null,"f")),0===arguments.length)r=this[re](),t=n;else if(1===arguments.length){if(!1===t)return this;r=t,t=n}else 2===arguments.length&&(r=e,e=void 0);return qt(this,Wt,"string"==typeof t?t:n,"f"),e=e||Vt(this,Ht,"f").deferY18nLookup("Show version number"),Vt(this,Ht,"f").version(r||void 0),this.boolean(Vt(this,Wt,"f")),this.describe(Vt(this,Wt,"f"),e),this}wrap(t){return G("<number|null|undefined>",[t],arguments.length),Vt(this,Ht,"f").wrap(t),this}[(dt=new WeakMap,ft=new WeakMap,pt=new WeakMap,mt=new WeakMap,gt=new WeakMap,yt=new WeakMap,bt=new WeakMap,vt=new WeakMap,wt=new WeakMap,Et=new WeakMap,_t=new WeakMap,xt=new WeakMap,St=new WeakMap,Ot=new WeakMap,Tt=new WeakMap,At=new WeakMap,It=new WeakMap,Rt=new WeakMap,kt=new WeakMap,Ct=new WeakMap,Mt=new WeakMap,jt=new WeakMap,Pt=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Lt=new WeakMap,Dt=new WeakMap,Ft=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,Yt=new WeakMap,zt)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch(t){}return t}[Jt](){return{log:(...t)=>{this[we]()||console.log(...t),qt(this,Ot,!0,"f"),Vt(this,Rt,"f").length&&qt(this,Rt,Vt(this,Rt,"f")+"\n","f"),qt(this,Rt,Vt(this,Rt,"f")+t.join(" "),"f")},error:(...t)=>{this[we]()||console.error(...t),qt(this,Ot,!0,"f"),Vt(this,Rt,"f").length&&qt(this,Rt,Vt(this,Rt,"f")+"\n","f"),qt(this,Rt,Vt(this,Rt,"f")+t.join(" "),"f")}}}[Kt](t){D(Vt(this,kt,"f")).forEach((e=>{if("configObjects"===e)return;const r=Vt(this,kt,"f")[e];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):"object"==typeof r&&delete r[t]})),delete Vt(this,Ht,"f").getDescriptions()[t]}[Xt](t,e,r){Vt(this,wt,"f")[r]||(Vt(this,Ft,"f").process.emitWarning(t,e),Vt(this,wt,"f")[r]=!0)}[Zt](){Vt(this,_t,"f").push({options:Vt(this,kt,"f"),configObjects:Vt(this,kt,"f").configObjects.slice(0),exitProcess:Vt(this,Et,"f"),groups:Vt(this,St,"f"),strict:Vt(this,Bt,"f"),strictCommands:Vt(this,Ut,"f"),strictOptions:Vt(this,Gt,"f"),completionCommand:Vt(this,gt,"f"),output:Vt(this,Rt,"f"),exitError:Vt(this,bt,"f"),hasOutput:Vt(this,Ot,"f"),parsed:this.parsed,parseFn:Vt(this,jt,"f"),parseContext:Vt(this,Pt,"f")}),Vt(this,Ht,"f").freeze(),Vt(this,Yt,"f").freeze(),Vt(this,dt,"f").freeze(),Vt(this,xt,"f").freeze()}[Qt](){let t,e="";return t=/\b(node|iojs|electron)(\.exe)?$/.test(Vt(this,Ft,"f").process.argv()[0])?Vt(this,Ft,"f").process.argv().slice(1,2):Vt(this,Ft,"f").process.argv().slice(0,1),e=t.map((t=>{const e=this[xe](Vt(this,ft,"f"),t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&e.length<t.length?e:t})).join(" ").trim(),Vt(this,Ft,"f").getEnv("_")&&Vt(this,Ft,"f").getProcessArgvBin()===Vt(this,Ft,"f").getEnv("_")&&(e=Vt(this,Ft,"f").getEnv("_").replace(`${Vt(this,Ft,"f").path.dirname(Vt(this,Ft,"f").process.execPath())}/`,"")),e}[te](){return Vt(this,Mt,"f")}[ee](){if(!Vt(this,vt,"f"))return;const t=Vt(this,Ft,"f").getEnv("LC_ALL")||Vt(this,Ft,"f").getEnv("LC_MESSAGES")||Vt(this,Ft,"f").getEnv("LANG")||Vt(this,Ft,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[re](){return this[ie]().version||"unknown"}[ne](t){const e=t["--"]?t["--"]:t._;for(let t,r=0;void 0!==(t=e[r]);r++)Vt(this,Ft,"f").Parser.looksLikeNumber(t)&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))&&(e[r]=Number(t));return t}[ie](t){const e=t||"*";if(Vt(this,Nt,"f")[e])return Vt(this,Nt,"f")[e];let r={};try{let e=t||Vt(this,Ft,"f").mainFilename;!t&&Vt(this,Ft,"f").path.extname(e)&&(e=Vt(this,Ft,"f").path.dirname(e));const n=Vt(this,Ft,"f").findUp(e,((t,e)=>e.includes("package.json")?"package.json":void 0));$(n,void 0,Vt(this,Ft,"f")),r=JSON.parse(Vt(this,Ft,"f").readFileSync(n,"utf8"))}catch(t){}return Vt(this,Nt,"f")[e]=r||{},Vt(this,Nt,"f")[e]}[se](t,e){(e=[].concat(e)).forEach((e=>{e=this[ce](e),Vt(this,kt,"f")[t].push(e)}))}[oe](t,e,r,n){this[le](t,e,r,n,((t,e,r)=>{Vt(this,kt,"f")[t][e]=r}))}[ae](t,e,r,n){this[le](t,e,r,n,((t,e,r)=>{Vt(this,kt,"f")[t][e]=(Vt(this,kt,"f")[t][e]||[]).concat(r)}))}[le](t,e,r,n,i){if(Array.isArray(r))r.forEach((e=>{t(e,n)}));else if((t=>"object"==typeof t)(r))for(const e of D(r))t(e,r[e]);else i(e,this[ce](r),n)}[ce](t){return"__proto__"===t?"___proto___":t}[he](t,e){return this[oe](this[he].bind(this),"key",t,e),this}[ue](){var t,e,r,n,i,s,o,a,l,c,h,u;const d=Vt(this,_t,"f").pop();let f;$(d,void 0,Vt(this,Ft,"f")),t=this,e=this,r=this,n=this,i=this,s=this,o=this,a=this,l=this,c=this,h=this,u=this,({options:{set value(e){qt(t,kt,e,"f")}}.value,configObjects:f,exitProcess:{set value(t){qt(e,Et,t,"f")}}.value,groups:{set value(t){qt(r,St,t,"f")}}.value,output:{set value(t){qt(n,Rt,t,"f")}}.value,exitError:{set value(t){qt(i,bt,t,"f")}}.value,hasOutput:{set value(t){qt(s,Ot,t,"f")}}.value,parsed:this.parsed,strict:{set value(t){qt(o,Bt,t,"f")}}.value,strictCommands:{set value(t){qt(a,Ut,t,"f")}}.value,strictOptions:{set value(t){qt(l,Gt,t,"f")}}.value,completionCommand:{set value(t){qt(c,gt,t,"f")}}.value,parseFn:{set value(t){qt(h,jt,t,"f")}}.value,parseContext:{set value(t){qt(u,Pt,t,"f")}}.value}=d),Vt(this,kt,"f").configObjects=f,Vt(this,Ht,"f").unfreeze(),Vt(this,Yt,"f").unfreeze(),Vt(this,dt,"f").unfreeze(),Vt(this,xt,"f").unfreeze()}[de](t,e){return V(e,(e=>(t(e),e)))}getInternalMethods(){return{getCommandInstance:this[fe].bind(this),getContext:this[pe].bind(this),getHasOutput:this[me].bind(this),getLoggerInstance:this[ge].bind(this),getParseContext:this[ye].bind(this),getParserConfiguration:this[te].bind(this),getUsageInstance:this[be].bind(this),getValidationInstance:this[ve].bind(this),hasParseCallback:this[we].bind(this),isGlobalContext:this[Ee].bind(this),postProcess:this[_e].bind(this),reset:this[Se].bind(this),runValidation:this[Te].bind(this),runYargsParserAndExecuteCommands:this[Oe].bind(this),setHasOutput:this[Ae].bind(this)}}[fe](){return Vt(this,dt,"f")}[pe](){return Vt(this,pt,"f")}[me](){return Vt(this,Ot,"f")}[ge](){return Vt(this,It,"f")}[ye](){return Vt(this,Pt,"f")||{}}[be](){return Vt(this,Ht,"f")}[ve](){return Vt(this,Yt,"f")}[we](){return!!Vt(this,jt,"f")}[Ee](){return Vt(this,At,"f")}[_e](t,e,r,n){if(r)return t;if(F(t))return t;e||(t=this[zt](t));return(this[te]()["parse-positional-numbers"]||void 0===this[te]()["parse-positional-numbers"])&&(t=this[ne](t)),n&&(t=q(t,this,Vt(this,xt,"f").getMiddleware(),!1)),t}[Se](t={}){qt(this,kt,Vt(this,kt,"f")||{},"f");const e={};e.local=Vt(this,kt,"f").local||[],e.configObjects=Vt(this,kt,"f").configObjects||[];const r={};e.local.forEach((e=>{r[e]=!0,(t[e]||[]).forEach((t=>{r[t]=!0}))})),Object.assign(Vt(this,$t,"f"),Object.keys(Vt(this,St,"f")).reduce(((t,e)=>{const n=Vt(this,St,"f")[e].filter((t=>!(t in r)));return n.length>0&&(t[e]=n),t}),{})),qt(this,St,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((t=>{e[t]=(Vt(this,kt,"f")[t]||[]).filter((t=>!r[t]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((t=>{e[t]=Z(Vt(this,kt,"f")[t],(t=>!r[t]))})),e.envPrefix=Vt(this,kt,"f").envPrefix,qt(this,kt,e,"f"),qt(this,Ht,Vt(this,Ht,"f")?Vt(this,Ht,"f").reset(r):et(this,Vt(this,Ft,"f")),"f"),qt(this,Yt,Vt(this,Yt,"f")?Vt(this,Yt,"f").reset(r):function(t,e,r){const n=r.y18n.__,i=r.y18n.__n,s={nonOptionCount:function(r){const n=t.getDemandedCommands(),s=r._.length+(r["--"]?r["--"].length:0)-t.getInternalMethods().getContext().commands.length;n._&&(s<n._.min||s>n._.max)&&(s<n._.min?void 0!==n._.minMsg?e.fail(n._.minMsg?n._.minMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.min.toString()):null):e.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",s,s.toString(),n._.min.toString())):s>n._.max&&(void 0!==n._.maxMsg?e.fail(n._.maxMsg?n._.maxMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.max.toString()):null):e.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",s,s.toString(),n._.max.toString()))))},positionalCount:function(t,r){r<t&&e.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",r,r+"",t+""))},requiredArguments:function(t,r){let n=null;for(const e of Object.keys(r))Object.prototype.hasOwnProperty.call(t,e)&&void 0!==t[e]||(n=n||{},n[e]=r[e]);if(n){const t=[];for(const e of Object.keys(n)){const r=n[e];r&&t.indexOf(r)<0&&t.push(r)}const r=t.length?`\n${t.join("\n")}`:"";e.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(n).length,Object.keys(n).join(", ")+r))}},unknownArguments:function(r,n,o,a,l=!0){var c;const h=t.getInternalMethods().getCommandInstance().getCommands(),u=[],d=t.getInternalMethods().getContext();if(Object.keys(r).forEach((e=>{at.includes(e)||Object.prototype.hasOwnProperty.call(o,e)||Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),e)||s.isValidAndSomeAliasIsNotNew(e,n)||u.push(e)})),l&&(d.commands.length>0||h.length>0||a)&&r._.slice(d.commands.length).forEach((t=>{h.includes(""+t)||u.push(""+t)})),l){const e=(null===(c=t.getDemandedCommands()._)||void 0===c?void 0:c.max)||0,n=d.commands.length+e;n<r._.length&&r._.slice(n).forEach((t=>{t=String(t),d.commands.includes(t)||u.includes(t)||u.push(t)}))}u.length&&e.fail(i("Unknown argument: %s","Unknown arguments: %s",u.length,u.map((t=>t.trim()?t:`"${t}"`)).join(", ")))},unknownCommands:function(r){const n=t.getInternalMethods().getCommandInstance().getCommands(),s=[],o=t.getInternalMethods().getContext();return(o.commands.length>0||n.length>0)&&r._.slice(o.commands.length).forEach((t=>{n.includes(""+t)||s.push(""+t)})),s.length>0&&(e.fail(i("Unknown command: %s","Unknown commands: %s",s.length,s.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(e,r){if(!Object.prototype.hasOwnProperty.call(r,e))return!1;const n=t.parsed.newAliases;return[e,...r[e]].some((t=>!Object.prototype.hasOwnProperty.call(n,t)||!n[e]))},limitedChoices:function(r){const i=t.getOptions(),s={};if(!Object.keys(i.choices).length)return;Object.keys(r).forEach((t=>{-1===at.indexOf(t)&&Object.prototype.hasOwnProperty.call(i.choices,t)&&[].concat(r[t]).forEach((e=>{-1===i.choices[t].indexOf(e)&&void 0!==e&&(s[t]=(s[t]||[]).concat(e))}))}));const o=Object.keys(s);if(!o.length)return;let a=n("Invalid values:");o.forEach((t=>{a+=`\n ${n("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(s[t]),e.stringifiedValues(i.choices[t]))}`})),e.fail(a)}};let o={};function a(t,e){const r=Number(e);return"number"==typeof(e=isNaN(r)?e:r)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!Object.prototype.hasOwnProperty.call(t,e)):e=Object.prototype.hasOwnProperty.call(t,e),e}s.implies=function(e,n){G("<string|object> [array|number|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{s.implies(t,e[t])})):(t.global(e),o[e]||(o[e]=[]),Array.isArray(n)?n.forEach((t=>s.implies(e,t))):($(n,void 0,r),o[e].push(n)))},s.getImplied=function(){return o},s.implications=function(t){const r=[];if(Object.keys(o).forEach((e=>{const n=e;(o[e]||[]).forEach((e=>{let i=n;const s=e;i=a(t,i),e=a(t,e),i&&!e&&r.push(` ${n} -> ${s}`)}))})),r.length){let t=`${n("Implications failed:")}\n`;r.forEach((e=>{t+=e})),e.fail(t)}};let l={};s.conflicts=function(e,r){G("<string|object> [array|string]",[e,r],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{s.conflicts(t,e[t])})):(t.global(e),l[e]||(l[e]=[]),Array.isArray(r)?r.forEach((t=>s.conflicts(e,t))):l[e].push(r))},s.getConflicting=()=>l,s.conflicting=function(i){Object.keys(i).forEach((t=>{l[t]&&l[t].forEach((r=>{r&&void 0!==i[t]&&void 0!==i[r]&&e.fail(n("Arguments %s and %s are mutually exclusive",t,r))}))})),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach((t=>{l[t].forEach((s=>{s&&void 0!==i[r.Parser.camelCase(t)]&&void 0!==i[r.Parser.camelCase(s)]&&e.fail(n("Arguments %s and %s are mutually exclusive",t,s))}))}))},s.recommendCommands=function(t,r){r=r.sort(((t,e)=>e.length-t.length));let i=null,s=1/0;for(let e,n=0;void 0!==(e=r[n]);n++){const r=ot(t,e);r<=3&&r<s&&(s=r,i=e)}i&&e.fail(n("Did you mean %s?",i))},s.reset=function(t){return o=Z(o,(e=>!t[e])),l=Z(l,(e=>!t[e])),s};const c=[];return s.freeze=function(){c.push({implied:o,conflicting:l})},s.unfreeze=function(){const t=c.pop();$(t,void 0,r),({implied:o,conflicting:l}=t)},s}(this,Vt(this,Ht,"f"),Vt(this,Ft,"f")),"f"),qt(this,dt,Vt(this,dt,"f")?Vt(this,dt,"f").reset():function(t,e,r,n){return new J(t,e,r,n)}(Vt(this,Ht,"f"),Vt(this,Yt,"f"),Vt(this,xt,"f"),Vt(this,Ft,"f")),"f"),Vt(this,mt,"f")||qt(this,mt,function(t,e,r,n){return new st(t,e,r,n)}(this,Vt(this,Ht,"f"),Vt(this,dt,"f"),Vt(this,Ft,"f")),"f"),Vt(this,xt,"f").reset(),qt(this,gt,null,"f"),qt(this,Rt,"","f"),qt(this,bt,null,"f"),qt(this,Ot,!1,"f"),this.parsed=!1,this}[xe](t,e){return Vt(this,Ft,"f").path.relative(t,e)}[Oe](t,e,r,n=0,i=!1){let s=!!r||i;t=t||Vt(this,Lt,"f"),Vt(this,kt,"f").__=Vt(this,Ft,"f").y18n.__,Vt(this,kt,"f").configuration=this[te]();const o=!!Vt(this,kt,"f").configuration["populate--"],a=Object.assign({},Vt(this,kt,"f").configuration,{"populate--":!0}),l=Vt(this,Ft,"f").Parser.detailed(t,Object.assign({},Vt(this,kt,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),c=Object.assign(l.argv,Vt(this,Pt,"f"));let h;const u=l.aliases;let d=!1,f=!1;Object.keys(c).forEach((t=>{t===Vt(this,Tt,"f")&&c[t]?d=!0:t===Vt(this,Wt,"f")&&c[t]&&(f=!0)})),c.$0=this.$0,this.parsed=l,0===n&&Vt(this,Ht,"f").clearCachedHelpMessage();try{if(this[ee](),e)return this[_e](c,o,!!r,!1);if(Vt(this,Tt,"f")){[Vt(this,Tt,"f")].concat(u[Vt(this,Tt,"f")]||[]).filter((t=>t.length>1)).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0)}qt(this,At,!1,"f");const a=Vt(this,dt,"f").getCommands(),p=Vt(this,mt,"f").completionKey in c,m=d||p||i;if(c._.length){if(a.length){let t;for(let e,s=n||0;void 0!==c._[s];s++){if(e=String(c._[s]),a.includes(e)&&e!==Vt(this,gt,"f")){const t=Vt(this,dt,"f").runCommand(e,this,l,s+1,i,d||f||i);return this[_e](t,o,!!r,!1)}if(!t&&e!==Vt(this,gt,"f")){t=e;break}}!Vt(this,dt,"f").hasDefaultCommand()&&Vt(this,Dt,"f")&&t&&!m&&Vt(this,Yt,"f").recommendCommands(t,a)}Vt(this,gt,"f")&&c._.includes(Vt(this,gt,"f"))&&!p&&(Vt(this,Et,"f")&&Q(!0),this.showCompletionScript(),this.exit(0))}if(Vt(this,dt,"f").hasDefaultCommand()&&!m){const t=Vt(this,dt,"f").runCommand(null,this,l,0,i,d||f||i);return this[_e](t,o,!!r,!1)}if(p){Vt(this,Et,"f")&&Q(!0);const e=(t=[].concat(t)).slice(t.indexOf(`--${Vt(this,mt,"f").completionKey}`)+1);return Vt(this,mt,"f").getCompletion(e,((t,e)=>{if(t)throw new A(t.message);(e||[]).forEach((t=>{Vt(this,It,"f").log(t)})),this.exit(0)})),this[_e](c,!o,!!r,!1)}if(Vt(this,Ot,"f")||(d?(Vt(this,Et,"f")&&Q(!0),s=!0,this.showHelp("log"),this.exit(0)):f&&(Vt(this,Et,"f")&&Q(!0),s=!0,Vt(this,Ht,"f").showVersion("log"),this.exit(0))),!s&&Vt(this,kt,"f").skipValidation.length>0&&(s=Object.keys(c).some((t=>Vt(this,kt,"f").skipValidation.indexOf(t)>=0&&!0===c[t]))),!s){if(l.error)throw new A(l.error.message);if(!p){const t=this[Te](u,{},l.error);r||(h=q(c,this,Vt(this,xt,"f").getMiddleware(),!0)),h=this[de](t,null!=h?h:c),F(h)&&!r&&(h=h.then((()=>q(c,this,Vt(this,xt,"f").getMiddleware(),!1))))}}}catch(t){if(!(t instanceof A))throw t;Vt(this,Ht,"f").fail(t.message,t)}return this[_e](null!=h?h:c,o,!!r,!0)}[Te](t,e,r,n){const i={...this.getDemandedOptions()};return s=>{if(r)throw new A(r.message);Vt(this,Yt,"f").nonOptionCount(s),Vt(this,Yt,"f").requiredArguments(s,i);let o=!1;Vt(this,Ut,"f")&&(o=Vt(this,Yt,"f").unknownCommands(s)),Vt(this,Bt,"f")&&!o?Vt(this,Yt,"f").unknownArguments(s,t,e,!!n):Vt(this,Gt,"f")&&Vt(this,Yt,"f").unknownArguments(s,t,{},!1,!1),Vt(this,Yt,"f").limitedChoices(s),Vt(this,Yt,"f").implications(s),Vt(this,Yt,"f").conflicting(s)}}[Ae](){qt(this,Ot,!0,"f")}[Ie](t){if("string"==typeof t)Vt(this,kt,"f").key[t]=!0;else for(const e of t)Vt(this,kt,"f").key[e]=!0}}const ke=(Ce=N,(t=[],e=Ce.process.cwd(),r)=>{const n=new Re(t,e,r,Ce);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:!0}),n.help(),n.version(),n});var Ce;const Me=ke;function je(t,e){const r=t.startsWith(".")?(0,u.join)(e,t):t;return import(r)}function Pe(t,e){const{homepage:r,site:n=r,repository:i}=e,s=n&&n!==i,o=t.getInternalMethods(),a=(l=o.getCommandInstance().handlers,Object.keys(l).some((t=>t&&"$0"!==t)));var l;return 0===o.getUsageInstance().getUsage().length&&(a?t.usage("Usage: $0 <command>"):t.usage("Usage: $0")),a&&t.demandCommand(1,"Won't work without a command"),s&&t.epilogue(`Website: ${n}`),i&&t.epilogue(`Repository: ${i}`),t}var Ne=n(922);const $e=(t=0)=>e=>`\x1b[${e+t}m`,Le=(t=0)=>e=>`\x1b[${38+t};5;${e}m`,De=(t=0)=>(e,r,n)=>`\x1b[${38+t};2;${e};${r};${n}m`;const Fe=function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",e.color.ansi=$e(),e.color.ansi256=Le(),e.color.ansi16m=De(),e.bgColor.ansi=$e(10),e.bgColor.ansi256=Le(10),e.bgColor.ansi16m=De(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,e,r)=>t===e&&e===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{const e=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!e)return[0,0,0];let{colorString:r}=e.groups;3===r.length&&(r=[...r].map((t=>t+t)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return t-8+90;let e,r,n;if(t>=232)e=(10*(t-232)+8)/255,r=e,n=e;else{const i=(t-=16)%36;e=Math.floor(t/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(e,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(e));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}(),Be=Fe,Ue=t(import.meta.url)("node:process"),Ge=t(import.meta.url)("node:os"),He=t(import.meta.url)("node:tty");function We(t,e=Ue.argv){const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:Ye}=Ue;let qe;function Ve(t,{streamIsTTY:e,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in Ye)return"true"===Ye.FORCE_COLOR?1:"false"===Ye.FORCE_COLOR?0:0===Ye.FORCE_COLOR.length?1:Math.min(Number.parseInt(Ye.FORCE_COLOR,10),3)}();void 0!==n&&(qe=n);const i=r?qe:n;if(0===i)return 0;if(r){if(We("color=16m")||We("color=full")||We("color=truecolor"))return 3;if(We("color=256"))return 2}if(t&&!e&&void 0===i)return 0;const s=i||0;if("dumb"===Ye.TERM)return s;if("win32"===Ue.platform){const t=Ge.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in Ye)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((t=>t in Ye))||"codeship"===Ye.CI_NAME?1:s;if("TEAMCITY_VERSION"in Ye)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ye.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Ye&&"AGENT_NAME"in Ye)return 1;if("truecolor"===Ye.COLORTERM)return 3;if("TERM_PROGRAM"in Ye){const t=Number.parseInt((Ye.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ye.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ye.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ye.TERM)||"COLORTERM"in Ye?1:s}function ze(t,e={}){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(Ve(t,{streamIsTTY:t&&t.isTTY,...e}))}We("no-color")||We("no-colors")||We("color=false")||We("color=never")?qe=0:(We("color")||We("colors")||We("color=true")||We("color=always"))&&(qe=1);const Je={stdout:ze({isTTY:He.isatty(1)}),stderr:ze({isTTY:He.isatty(2)})};function Ke(t,e,r){let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.slice(s),o}const{stdout:Xe,stderr:Ze}=Je,Qe=Symbol("GENERATOR"),tr=Symbol("STYLER"),er=Symbol("IS_EMPTY"),rr=["ansi","ansi","ansi256","ansi16m"],nr=Object.create(null);const ir=t=>{const e=(...t)=>t.join(" ");return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=Xe?Xe.level:0;t.level=void 0===e.level?r:e.level})(e,t),Object.setPrototypeOf(e,sr.prototype),e};function sr(t){return ir(t)}Object.setPrototypeOf(sr.prototype,Function.prototype);for(const[t,e]of Object.entries(Be))nr[t]={get(){const r=hr(this,cr(e.open,e.close,this[tr]),this[er]);return Object.defineProperty(this,t,{value:r}),r}};nr.visible={get(){const t=hr(this,this[tr],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const or=(t,e,r,...n)=>"rgb"===t?"ansi16m"===e?Be[r].ansi16m(...n):"ansi256"===e?Be[r].ansi256(Be.rgbToAnsi256(...n)):Be[r].ansi(Be.rgbToAnsi(...n)):"hex"===t?or("rgb",e,r,...Be.hexToRgb(...n)):Be[r][t](...n),ar=["rgb","hex","ansi256"];for(const t of ar){nr[t]={get(){const{level:e}=this;return function(...r){const n=cr(or(t,rr[e],"color",...r),Be.color.close,this[tr]);return hr(this,n,this[er])}}};nr["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const n=cr(or(t,rr[e],"bgColor",...r),Be.bgColor.close,this[tr]);return hr(this,n,this[er])}}}}const lr=Object.defineProperties((()=>{}),{...nr,level:{enumerable:!0,get(){return this[Qe].level},set(t){this[Qe].level=t}}}),cr=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},hr=(t,e,r)=>{const n=(...t)=>ur(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,lr),n[Qe]=t,n[tr]=e,n[er]=r,n},ur=(t,e)=>{if(t.level<=0||!e)return t[er]?"":e;let r=t[tr];if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(e.includes("\x1b"))for(;void 0!==r;)e=Ke(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=function(t,e,r,n){let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.slice(i),s}(e,i,n,s)),n+e+i};Object.defineProperties(sr.prototype,nr);const dr=sr(),fr=(sr({level:Ze?Ze.level:0}),dr),{cyan:pr,red:mr,green:gr}=fr;function yr(){return(new Ne.Text).onDone((()=>"# Created by nice-move\nroot = true\n\n[*]\ncharset = utf-8\nend_of_line = lf\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\nmax_line_length = 80\nquote_type = single\ntab_width = 2\ntrim_trailing_whitespace = true\n")).output(".editorconfig").logger("Create/Overwrite",pr(".editorconfig")).catch(console.warn)}var br=n(2037);const vr=(t=0)=>e=>`\x1b[${e+t}m`,wr=(t=0)=>e=>`\x1b[${38+t};5;${e}m`,Er=(t=0)=>(e,r,n)=>`\x1b[${38+t};2;${e};${r};${n}m`;const _r=function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,n]of Object.entries(e)){for(const[r,i]of Object.entries(n))e[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",e.color.ansi=vr(),e.color.ansi256=wr(),e.color.ansi16m=Er(),e.bgColor.ansi=vr(10),e.bgColor.ansi256=wr(10),e.bgColor.ansi16m=Er(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,e,r)=>t===e&&e===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{const e=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!e)return[0,0,0];let{colorString:r}=e.groups;3===r.length&&(r=[...r].map((t=>t+t)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return t-8+90;let e,r,n;if(t>=232)e=(10*(t-232)+8)/255,r=e,n=e;else{const i=(t-=16)%36;e=Math.floor(t/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(e,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(e));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}(),xr=_r;function Sr(t,e=Ue.argv){const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:Or}=Ue;let Tr;function Ar(t,{streamIsTTY:e,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in Or)return"true"===Or.FORCE_COLOR?1:"false"===Or.FORCE_COLOR?0:0===Or.FORCE_COLOR.length?1:Math.min(Number.parseInt(Or.FORCE_COLOR,10),3)}();void 0!==n&&(Tr=n);const i=r?Tr:n;if(0===i)return 0;if(r){if(Sr("color=16m")||Sr("color=full")||Sr("color=truecolor"))return 3;if(Sr("color=256"))return 2}if(t&&!e&&void 0===i)return 0;const s=i||0;if("dumb"===Or.TERM)return s;if("win32"===Ue.platform){const t=Ge.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in Or)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((t=>t in Or))||"codeship"===Or.CI_NAME?1:s;if("TEAMCITY_VERSION"in Or)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Or.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Or&&"AGENT_NAME"in Or)return 1;if("truecolor"===Or.COLORTERM)return 3;if("TERM_PROGRAM"in Or){const t=Number.parseInt((Or.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Or.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Or.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Or.TERM)||"COLORTERM"in Or?1:s}function Ir(t,e={}){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(Ar(t,{streamIsTTY:t&&t.isTTY,...e}))}Sr("no-color")||Sr("no-colors")||Sr("color=false")||Sr("color=never")?Tr=0:(Sr("color")||Sr("colors")||Sr("color=true")||Sr("color=always"))&&(Tr=1);const Rr={stdout:Ir({isTTY:He.isatty(1)}),stderr:Ir({isTTY:He.isatty(2)})};function kr(t,e,r){let n=t.indexOf(e);if(-1===n)return t;const i=e.length;let s=0,o="";do{o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s)}while(-1!==n);return o+=t.slice(s),o}const{stdout:Cr,stderr:Mr}=Rr,jr=Symbol("GENERATOR"),Pr=Symbol("STYLER"),Nr=Symbol("IS_EMPTY"),$r=["ansi","ansi","ansi256","ansi16m"],Lr=Object.create(null);const Dr=t=>{const e=(...t)=>t.join(" ");return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=Cr?Cr.level:0;t.level=void 0===e.level?r:e.level})(e,t),Object.setPrototypeOf(e,Fr.prototype),e};function Fr(t){return Dr(t)}Object.setPrototypeOf(Fr.prototype,Function.prototype);for(const[t,e]of Object.entries(xr))Lr[t]={get(){const r=Wr(this,Hr(e.open,e.close,this[Pr]),this[Nr]);return Object.defineProperty(this,t,{value:r}),r}};Lr.visible={get(){const t=Wr(this,this[Pr],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const Br=(t,e,r,...n)=>"rgb"===t?"ansi16m"===e?xr[r].ansi16m(...n):"ansi256"===e?xr[r].ansi256(xr.rgbToAnsi256(...n)):xr[r].ansi(xr.rgbToAnsi(...n)):"hex"===t?Br("rgb",e,r,...xr.hexToRgb(...n)):xr[r][t](...n),Ur=["rgb","hex","ansi256"];for(const t of Ur){Lr[t]={get(){const{level:e}=this;return function(...r){const n=Hr(Br(t,$r[e],"color",...r),xr.color.close,this[Pr]);return Wr(this,n,this[Nr])}}};Lr["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const n=Hr(Br(t,$r[e],"bgColor",...r),xr.bgColor.close,this[Pr]);return Wr(this,n,this[Nr])}}}}const Gr=Object.defineProperties((()=>{}),{...Lr,level:{enumerable:!0,get(){return this[jr].level},set(t){this[jr].level=t}}}),Hr=(t,e,r)=>{let n,i;return void 0===r?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Wr=(t,e,r)=>{const n=(...t)=>Yr(n,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(n,Gr),n[jr]=t,n[Pr]=e,n[Nr]=r,n},Yr=(t,e)=>{if(t.level<=0||!e)return t[Nr]?"":e;let r=t[Pr];if(void 0===r)return e;const{openAll:n,closeAll:i}=r;if(e.includes("\x1b"))for(;void 0!==r;)e=kr(e,r.close,r.open),r=r.parent;const s=e.indexOf("\n");return-1!==s&&(e=function(t,e,r,n){let i=0,s="";do{const o="\r"===t[n-1];s+=t.substr(i,(o?n-1:n)-i)+e+(o?"\r\n":"\n")+r,i=n+1,n=t.indexOf("\n",i)}while(-1!==n);return s+=t.slice(i),s}(e,i,n,s)),n+e+i};Object.defineProperties(Fr.prototype,Lr);const qr=Fr(),Vr=(Fr({level:Mr?Mr.level:0}),qr);var zr=n(3937),Jr=n(260);const Kr=zr((()=>{Jr((()=>{Ue.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let Xr=!1;const Zr={show:(t=Ue.stderr)=>{t.isTTY&&(Xr=!1,t.write("\x1b[?25h"))},hide:(t=Ue.stderr)=>{t.isTTY&&(Kr(),Xr=!0,t.write("\x1b[?25l"))},toggle:(t,e)=>{void 0!==t&&(Xr=t),Xr?Zr.show(e):Zr.hide(e)}},Qr=Zr;var tn=n(3372);function en(){return"win32"!==Ue.platform?"linux"!==Ue.env.TERM:Boolean(Ue.env.CI)||Boolean(Ue.env.WT_SESSION)||"{cmd::Cmder}"===Ue.env.ConEmuTask||"vscode"===Ue.env.TERM_PROGRAM||"xterm-256color"===Ue.env.TERM||"alacritty"===Ue.env.TERM||"JetBrains-JediTerm"===Ue.env.TERMINAL_EMULATOR}const rn={info:Vr.blue("\u2139"),success:Vr.green("\u2714"),warning:Vr.yellow("\u26a0"),error:Vr.red("\u2716")},nn={info:Vr.blue("i"),success:Vr.green("\u221a"),warning:Vr.yellow("\u203c"),error:Vr.red("\xd7")},sn=en()?rn:nn;function on(t){if("string"!=typeof t)throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(function({onlyFirst:t=!1}={}){const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}(),"")}var an=n(8975);const ln=t(import.meta.url)("node:readline");var cn=n(9050);class hn{#t=0;#e=new cn.BufferListStream;#r;#n;constructor(){this.#e.pipe(Ue.stdout);const t=this;this.#r=function(e,r,...n){const{stdin:i}=Ue;if(t.#t>0||i.emit===t.#r){if("keypress"===e)return;"data"===e&&r.includes(3)&&Ue.emit("SIGINT"),Reflect.apply(t.#r,this,[e,r,...n])}else Reflect.apply(Ue.stdin.emit,this,[e,r,...n])}}start(){this.#t++,1===this.#t&&this._realStart()}stop(){if(this.#t<=0)throw new Error("`stop` called more times than `start`");this.#t--,0===this.#t&&this._realStop()}_realStart(){"win32"!==Ue.platform&&(this.#n=ln.createInterface({input:Ue.stdin,output:this.#e}),this.#n.on("SIGINT",(()=>{0===Ue.listenerCount("SIGINT")?Ue.emit("SIGINT"):(this.#n.close(),Ue.kill(Ue.pid,"SIGINT"))})))}_realStop(){if("win32"===Ue.platform)return;const{stdin:t}=Ue,e=t.isPaused();this.#n.close(),!e&&t.isPaused()&&t.resume(),this.#n=void 0}}let un;class dn{#i=0;#s=!1;#o=0;#a=0;#l;#c;#h;#u;#d;#f;#p;#m;#g;#y;color;constructor(t){un||(un=new hn),"string"==typeof t&&(t={text:t}),this.#l={color:"cyan",stream:Ue.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#l.color,this.spinner=this.#l.spinner,this.#d=this.#l.interval,this.#h=this.#l.stream,this.#f="boolean"==typeof this.#l.isEnabled?this.#l.isEnabled:function({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#h}),this.#p="boolean"==typeof this.#l.isSilent&&this.#l.isSilent,this.text=this.#l.text,this.prefixText=this.#l.prefixText,this.indent=this.#l.indent,"test"===Ue.env.NODE_ENV&&(this._stream=this.#h,this._isEnabled=this.#f,Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(t){this.#i=t}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#a}}),Object.defineProperty(this,"_lineCount",{get(){return this.#o}}))}get indent(){return this.#m}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#m=t,this.updateLineCount()}get interval(){return this.#d||this.#c.interval||100}get spinner(){return this.#c}set spinner(t){if(this.#a=0,this.#d=void 0,"object"==typeof t){if(void 0===t.frames)throw new Error("The given spinner must have a `frames` property");this.#c=t}else if(en())if(void 0===t)this.#c=tn.dots;else{if("default"===t||!tn[t])throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#c=tn[t]}else this.#c=tn.line}get text(){return this.#g}set text(t){this.#g=t||"",this.updateLineCount()}get prefixText(){return this.#y}set prefixText(t){this.#y=t||"",this.updateLineCount()}get isSpinning(){return void 0!==this.#u}getFullPrefixText(t=this.#y,e=" "){return"string"==typeof t&&""!==t?t+e:"function"==typeof t?t()+e:""}updateLineCount(){const t=this.#h.columns||80,e=this.getFullPrefixText(this.#y,"-");this.#o=0;for(const r of on(" ".repeat(this.#m)+e+"--"+this.#g).split("\n"))this.#o+=Math.max(1,Math.ceil(an(r)/t))}get isEnabled(){return this.#f&&!this.#p}set isEnabled(t){if("boolean"!=typeof t)throw new TypeError("The `isEnabled` option must be a boolean");this.#f=t}get isSilent(){return this.#p}set isSilent(t){if("boolean"!=typeof t)throw new TypeError("The `isSilent` option must be a boolean");this.#p=t}frame(){const{frames:t}=this.#c;let e=t[this.#a];this.color&&(e=Vr[this.color](e)),this.#a=++this.#a%t.length;return("string"==typeof this.#y&&""!==this.#y?this.#y+" ":"")+e+("string"==typeof this.text?" "+this.text:"")}clear(){if(!this.#f||!this.#h.isTTY)return this;this.#h.cursorTo(0);for(let t=0;t<this.#i;t++)t>0&&this.#h.moveCursor(0,-1),this.#h.clearLine(1);return(this.#m||this.lastIndent!==this.#m)&&this.#h.cursorTo(this.#m),this.lastIndent=this.#m,this.#i=0,this}render(){return this.#p||(this.clear(),this.#h.write(this.frame()),this.#i=this.#o),this}start(t){return t&&(this.text=t),this.#p?this:this.#f?(this.isSpinning||(this.#l.hideCursor&&Qr.hide(this.#h),this.#l.discardStdin&&Ue.stdin.isTTY&&(this.#s=!0,un.start()),this.render(),this.#u=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#h.write(`- ${this.text}\n`),this)}stop(){return this.#f?(clearInterval(this.#u),this.#u=void 0,this.#a=0,this.clear(),this.#l.hideCursor&&Qr.show(this.#h),this.#l.discardStdin&&Ue.stdin.isTTY&&this.#s&&(un.stop(),this.#s=!1),this):this}succeed(t){return this.stopAndPersist({symbol:sn.success,text:t})}fail(t){return this.stopAndPersist({symbol:sn.error,text:t})}warn(t){return this.stopAndPersist({symbol:sn.warning,text:t})}info(t){return this.stopAndPersist({symbol:sn.info,text:t})}stopAndPersist(t={}){if(this.#p)return this;const e=t.prefixText||this.#y,r=t.text||this.text,n="string"==typeof r?" "+r:"";return this.stop(),this.#h.write(`${this.getFullPrefixText(e," ")}${t.symbol||" "}${n}\n`),this}}function fn(t){return new dn(t)}var pn=n(2081),mn=n(8794),gn=n(2278);function yn(t){return mn(t).timeout(5e3).send().then((t=>301===t.statusCode?yn(t.headers.location):t.text())).then((t=>{const e=t.trim();if(e)return e;throw new Error("template download fail")}))}function bn(t){return t?t.trim():void 0}async function vn(t){if(t)return t;const e=function(){try{return{name:(0,pn.execSync)("git config user.name").toString().trim(),email:(0,pn.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return e.name?gn(e):"Unknown"}function wn(){try{return JSON.parse((0,e.readFileSync)((0,u.join)(process.cwd(),"package.json")))}catch{return{}}}const En=/# Created by https?:\/\/(www\.)?(toptal\.com\/developers\/gitignore|gitignore\.io)\/api\/\S+[\S\s]+# End of https?:\/\/(www\.)?(toptal\.com\/developers\/gitignore|gitignore\.io)\/api\/\S+/,_n={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function xn(){await(new Ne.Text).onDone((()=>"# Created by nice-move\n\n* text=auto eol=lf\n")).output(".gitattributes").logger("Create/Overwrite",pr(".gitattributes"));const t=fn({text:"Downloading template from `gitignore.io`"}).start(),e=`Create/Overwrite ${pr(".gitignore")}`;return(new Ne.Text).source(".gitignore").onFail().onDone(((t="")=>yn(`https://gitignore.io/api/node,${function(t){try{if(En.test(t))return[...new Set([...t.match(/gitignore\.io\/api\/(\S+)/)[1].split(",").filter((t=>"node"!==t)),_n[(0,br.type)()]])].sort();throw new Error("fail")}catch{return _n[(0,br.type)()]}}(t)}`).then((e=>{const[r]=t.match(En)||[];return`${(r?t.replace(En,e):`${t.trim()}\n\n${e}`).replace(/(www\.)?toptal\.com\/developers\/gitignore/g,"gitignore.io").trim().split(/\n\n\+/g).filter((t=>t.trim())).join("\n\n")}\n`})).catch((()=>t||"node_modules\n")))).output().then((()=>{t.stopAndPersist({symbol:gr("\u221a"),text:e})})).catch((r=>{t.stopAndPersist({symbol:mr("\xd7"),text:`${e} - ${r.message}`})}))}async function Sn(){const{license:t,author:e=""}=wn(),r="MIT"===t;if(r||"Unlicense"===t){const t=await async function(t){return(await vn(t)).name||"Unknown"}(e);return(new Ne.Text).onDone((()=>r?'MIT License\n\nCopyright (c) {{year}} {{holder}}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n'.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",t):'This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to <https://unlicense.org/>\n')).output("LICENSE").logger("Create/Overwrite",pr("LICENSE")).catch(console.warn)}}var On=n(9714),Tn=n(1482);const An=t(import.meta.url)("node:util"),In=t(import.meta.url)("node:child_process"),Rn=(0,An.promisify)(In.execFile);const kn={spawn:!0},Cn="en-US";async function Mn(t,e){return(await async function(t,e){const r=await Rn(t,e,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(t,e)).stdout}function jn(t=process.env){return t.LC_ALL||t.LC_MESSAGES||t.LANG||t.LANGUAGE}function Pn(t){const e={};for(const r of t.split("\n")){const[t,n]=r.split("=");e[t]=n.replace(/^"|"$/g,"")}return jn(e)}function Nn(t){return t&&t.replace(/[.:].*/,"")}async function $n(){return Mn("locale",["-a"])}function Ln(t,e=""){return e.includes(t)?t:Cn}function Dn(t){return t.replace(/_/,"-")}const Fn=new Map;async function Bn(t=kn){if(Fn.has(t.spawn))return Fn.get(t.spawn);let e;try{const r=jn();e=r||!1===t.spawn?Nn(r):"win32"===process.platform?await async function(){const t=await Mn("wmic",["os","get","locale"]),e=Number.parseInt(t.replace("Locale",""),16);return Tn.from(e)}():"darwin"===process.platform?await async function(){const t=await Promise.all([Mn("defaults",["read","-globalDomain","AppleLocale"]),$n()]);return Ln(t[0],t[1])}():await async function(){return Nn(Pn(await Mn("locale")))}()}catch{}const r=Dn(e||Cn);return Fn.set(t.spawn,r),r}const Un="^4.3.0",Gn="^0.2.8",Hn="^8.18.0",Wn="^13.2.0",Yn="^0.4.14",qn="^2.7.1",Vn="^14.9.1",zn="^4.7.4",Jn="^0.6.2",Kn="^1.22.2",Xn="^18.0.14",Zn="^0.1.11",Qn="^18.2.0",ti="^18.2.0",ei="^3.1.4",ri="^3.2.37",ni="^0.7.4",ii="^0.7.0",si="^0.6.0",oi="^0.9.6",ai="^14.17.0 || ^16.13.0 || >=18.0.0",li="package.json";function ci(t){return(new Ne.Json).config({pretty:!0}).source(li).onFail().onDone(((e={})=>On.all([{engines:{node:ai},publishConfig:t.private||e.private?void 0:{access:"public",registry:"https://registry.npmjs.org/"}},e,t]))).onDone((t=>(!0===t.private&&async function(){"zh-CN"===await Bn()&&(new Ne.Text).source(".npmrc").onFail().onDone(((t="")=>t.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(t)?t:`registry = https://mirrors.tencent.com/npm/\r${t}`)).output().logger("Set registry to China mirror in",pr(".npmrc")).catch(console.warn)}(),t))).output().logger("Add project info to",pr(li)).catch(console.warn)}async function hi(){const{name:t,description:e}=wn();(new Ne.Text).source("README.md").onFail().onDone((r=>r||[`# ${t}`,e?`${e}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",pr("README.md")).catch(console.warn)}const ui=t(import.meta.url)("node:buffer"),di=t(import.meta.url)("node:path");var fi=n(8995);const pi=t(import.meta.url)("node:url");function mi(t={}){const{env:e=process.env,platform:r=process.platform}=t;return"win32"!==r?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"}function gi({env:t=Ue.env,...e}={}){const r=mi({env:t={...t}});return e.path=t[r],t[r]=function(t={}){const{cwd:e=Ue.cwd(),path:r=Ue.env[mi()],execPath:n=Ue.execPath}=t;let i;const s=e instanceof URL?pi.fileURLToPath(e):e;let o=di.resolve(s);const a=[];for(;i!==o;)a.push(di.join(o,"node_modules/.bin")),i=o,o=di.resolve(o,"..");return a.push(di.resolve(s,n,"..")),[...a,r].join(di.delimiter)}(e),t}const yi=(t,e,r,n)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const i=Object.getOwnPropertyDescriptor(t,r),s=Object.getOwnPropertyDescriptor(e,r);!bi(i,s)&&n||Object.defineProperty(t,r,s)},bi=function(t,e){return void 0===t||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},vi=(t,e)=>`/* Wrapped ${t}*/\n${e}`,wi=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Ei=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function _i(t,e,{ignoreNonConfigurable:r=!1}={}){const{name:n}=t;for(const n of Reflect.ownKeys(e))yi(t,e,n,r);return((t,e)=>{const r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)})(t,e),((t,e,r)=>{const n=""===r?"":`with ${r.trim()}() `,i=vi.bind(null,n,e.toString());Object.defineProperty(i,"name",Ei),Object.defineProperty(t,"toString",{...wi,value:i})})(t,e,n),t}const xi=new WeakMap,Si=(t,e={})=>{if("function"!=typeof t)throw new TypeError("Expected a function");let r,n=0;const i=t.displayName||t.name||"<anonymous>",s=function(...o){if(xi.set(s,++n),1===n)r=t.apply(this,o),t=null;else if(!0===e.throw)throw new Error(`Function \`${i}\` can only be called once`);return r};return _i(s,t),xi.set(s,n),s};Si.callCount=t=>{if(!xi.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return xi.get(t)};const Oi=Si,Ti=function(t,e){return{name:`SIGRT${e+1}`,number:Ai+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Ai=34,Ii=64,Ri=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],ki=function(){const t=function(){const t=Ii-Ai+1;return Array.from({length:t},Ti)}();return[...Ri,...t].map(Ci)},Ci=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){const{signals:{[t]:o}}=br.constants,a=void 0!==o;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}},Mi=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},ji=ki().reduce(Mi,{}),Pi=function(t,e){const r=Ni(t,e);if(void 0===r)return{};const{name:n,description:i,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:l}}},Ni=function(t,e){const r=e.find((({name:e})=>br.constants.signals[e]===t));return void 0!==r?r:e.find((e=>e.number===t))},$i=(function(){const t=ki(),e=Ii+1,r=Array.from({length:e},((e,r)=>Pi(r,t)));Object.assign({},...r)}(),({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:h,parsed:{options:{timeout:u}}})=>{s=null===s?void 0:s;const d=void 0===(i=null===i?void 0:i)?void 0:ji[i].description,f=(({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:l,timeout:u,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:s,isCanceled:c}),p=`Command ${f}: ${o}`,m="[object Error]"===Object.prototype.toString.call(n),g=m?`${p}\n${n.message}`:p,y=[g,e,t].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=y):n=new Error(y),n.shortMessage=g,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(l),n.isCanceled=c,n.killed=h&&!l,n}),Li=["stdin","stdout","stderr"],Di=t=>{if(!t)return;const{stdio:e}=t;if(void 0===e)return Li.map((e=>t[e]));if((t=>Li.some((e=>void 0!==t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Li.map((t=>`\`${t}\``)).join(", ")}`);if("string"==typeof e)return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const r=Math.max(e.length,Li.length);return Array.from({length:r},((t,r)=>e[r]))},Fi=(t,e="SIGTERM",r={})=>{const n=t(e);return Bi(t,e,r,n),n},Bi=(t,e,r,n)=>{if(!Ui(e,r,n))return;const i=Hi(r),s=setTimeout((()=>{t("SIGKILL")}),i);s.unref&&s.unref()},Ui=(t,{forceKillAfterTimeout:e},r)=>Gi(t)&&!1!==e&&r,Gi=t=>t===Ge.constants.signals.SIGTERM||"string"==typeof t&&"SIGTERM"===t.toUpperCase(),Hi=({forceKillAfterTimeout:t=!0})=>{if(!0===t)return 5e3;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Wi=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Yi=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(0===e||void 0===e)return n;let i;const s=new Promise(((n,s)=>{i=setTimeout((()=>{((t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))})(t,r,s)}),e)})),o=n.finally((()=>{clearTimeout(i)}));return Promise.race([s,o])};function qi(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}var Vi=n(9551),zi=n(873);const Ji=async(t,e)=>{if(t){t.destroy();try{return await e}catch(t){return t.bufferedData}}},Ki=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(t&&r)return e?Vi(t,{encoding:e,maxBuffer:n}):Vi.buffer(t,{maxBuffer:n})},Xi=(async()=>{})().constructor.prototype,Zi=["then","catch","finally"].map((t=>[t,Reflect.getOwnPropertyDescriptor(Xi,t)])),Qi=(t,e)=>{for(const[r,n]of Zi){const i="function"==typeof e?(...t)=>Reflect.apply(n.value,e(),t):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},ts=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],es=/^[\w.-]+$/,rs=/"/g,ns=(t,e)=>ts(t,e).map((t=>(t=>"string"!=typeof t||es.test(t)?t:`"${t.replace(rs,'\\"')}"`)(t))).join(" "),is=(t,e,r={})=>{const n=fi._parse(t,e,r);return t=n.command,e=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||Ue.cwd(),execPath:Ue.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{const s=e?{...Ue.env,...t}:t;return r?gi({env:s,cwd:n,execPath:i}):s})(r),r.stdio=Di(r),"win32"===Ue.platform&&"cmd"===di.basename(t,".exe")&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},ss=(t,e,r)=>"string"==typeof e||ui.Buffer.isBuffer(e)?t.stripFinalNewline?function(t){const e="string"==typeof t?"\n":"\n".charCodeAt(),r="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,-1)),t[t.length-1]===r&&(t=t.slice(0,-1)),t}(e):e:void 0===r?void 0:"";function os(t,e,r){const n=is(t,e,r),i=((t,e)=>ts(t,e).join(" "))(t,e),s=ns(t,e);let o;(({timeout:t})=>{if(void 0!==t&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)})(n.options);try{o=In.spawn(n.file,n.args,n.options)}catch(t){const e=new In.ChildProcess,r=Promise.reject($i({error:t,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Qi(e,r)}const a=(t=>new Promise(((e,r)=>{t.on("exit",((t,r)=>{e({exitCode:t,signal:r})})),t.on("error",(t=>{r(t)})),t.stdin&&t.stdin.on("error",(t=>{r(t)}))})))(o),l=Yi(o,n.options,a),c=(async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;const i=Jr((()=>{t.kill()}));return n.finally((()=>{i()}))})(o,n.options,l),h={isCanceled:!1};o.kill=Fi.bind(null,o.kill.bind(o)),o.cancel=Wi.bind(null,o,h);const u=Oi((async()=>{const[{error:t,exitCode:e,signal:r,timedOut:a},l,u,d]=await(async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{const a=Ki(t,{encoding:n,buffer:i,maxBuffer:s}),l=Ki(e,{encoding:n,buffer:i,maxBuffer:s}),c=Ki(r,{encoding:n,buffer:i,maxBuffer:2*s});try{return await Promise.all([o,a,l,c])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},Ji(t,a),Ji(e,l),Ji(r,c)])}})(o,n.options,c),f=ss(n.options,l),p=ss(n.options,u),m=ss(n.options,d);if(t||0!==e||null!==r){const l=$i({error:t,exitCode:e,signal:r,stdout:f,stderr:p,all:m,command:i,escapedCommand:s,parsed:n,timedOut:a,isCanceled:h.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:o.killed});if(!n.options.reject)return l;throw l}return{command:i,escapedCommand:s,exitCode:0,stdout:f,stderr:p,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((t,e)=>{void 0!==e&&void 0!==t.stdin&&(qi(e)?e.pipe(t.stdin):t.stdin.end(e))})(o,n.options.input),o.all=((t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;const r=zi();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r})(o,n.options),Qi(o,u)}var as=n(9035);function ls({vue:t,react:e}){const r=e&&t||!e&&!t?"base":e?"react":"vue";return{eslintConfig:{extends:`@nice-move/eslint-config-${r}`},devDependencies:{[`@nice-move/eslint-config-${r}`]:ni,eslint:Hn}}}const cs="Add/Reset project dependencies";function hs(){const{dependencies:t={},devDependencies:e={}}=wn();return{instructions:!1,optionsPerPage:20,message:cs,name:"Dependencies",type:t=>!1===t?null:"multiselect",choices:["tailwindcss","react","vue","typescript","commitlint","eslint","stylelint","prettier","garou","ava","playwright","bring-it","best-shot"].map((r=>({title:r,value:r,selected:r in t||r in e}))),format:t=>{if(t.length>0)return e=>function(t,e={}){return(new Ne.Json).config({pretty:!0}).source("package.json").onFail().onDone((async(r={})=>{const{devDependencies:n={},dependencies:i={}}=r,{ava:s="ava"in n,commitlint:o="commitlint"in n,eslint:a="eslint"in n,garou:l="garou"in n,prettier:c="prettier"in n,react:h="react"in i,stylelint:u="stylelint"in n,typescript:d="typescript"in n,vue:f="vue"in i,tailwindcss:p="tailwindcss"in i||"tailwindcss"in n,playwright:m="@playwright/test"in n,"bring-it":g="@bring-it/cli"in n,"best-shot":y="best-shot"in n}=e,b=a||u||c||l,v=[b?"npm run lint:staged":void 0,d?"npm run lint:type":void 0,s?"npm test":void 0].filter(Boolean);return v.length>0&&await(new Ne.Text).onDone((()=>["#!/bin/sh","",...v,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new Ne.Text).onDone((()=>["#!/bin/sh","","npx --no-install nice-move lint commit",""].join("\n"))).output(".githooks/commit-msg"),d&&await(new Ne.Json).config({pretty:!0}).onDone((()=>({compilerOptions:{jsx:"preserve",strict:!0,target:"es2022"}}))).output("tsconfig.json"),On.all([r,t&&(b||s||o||m||d)?{scripts:{prepare:"nice-move git hooks"}}:void 0,l?{devDependencies:{garou:Yn}}:void 0,d?{devDependencies:{typescript:zn},scripts:{"lint:type":"tsc --noEmit"}}:void 0,b||o?{devDependencies:{"@nice-move/cli":oi}}:void 0,b?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,s?{devDependencies:{ava:Un,...a?{"eslint-plugin-ava":Wn}:void 0},scripts:{prepublishOnly:r.private?void 0:v.join(" && ")||void 0,test:"ava --fail-fast"}}:void 0,a?ls({react:h,vue:f}):void 0,u?{devDependencies:{"@nice-move/stylelint-config":ii,stylelint:Vn},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,c?{devDependencies:{"@nice-move/prettier-config":si,prettier:qn},prettier:"@nice-move/prettier-config"}:void 0,h?{dependencies:{react:Qn,"react-dom":ti},devDependencies:{"@types/react":Xn}}:void 0,f?{dependencies:{vue:ri}}:void 0,p?{dependencies:{tailwindcss:ei},devDependencies:{"prettier-plugin-tailwindcss":c?Zn:void 0}}:void 0,m?{devDependencies:{"@playwright/test":Kn},scripts:{"test:e2e":"playwright test"}}:void 0,g?{devDependencies:{"@bring-it/cli":Jn}}:void 0,y?{devDependencies:{"best-shot":Gn}}:void 0].filter(Boolean))})).output().logger(cs).catch(console.warn)}(e,Object.fromEntries(t.map((t=>[t,!0]))))}}}const us="Initialize as git repository";function ds(){return os("git",["init"]).then((t=>(console.log(gr("\u221a"),us),t)),(t=>{throw console.log(mr("\xd7"),us),t}))}function fs({gitSupported:t,isGit:e}){return{message:us,name:"GitInit",initial:!0,type:r=>!1===r||!t||e?null:"confirm",format(t){if(!0===t)return ds}}}var ps=n(5888);const ms=`Run ${pr("npm")} / ${pr("yarn")} install command`;var gs=n(5528);var ys=n(9189);const bs=/(?<=^v?|\sv?)(?:(?:0|[1-9]\d{0,9}?)\.){2}(?:0|[1-9]\d{0,9})(?:-(?:--+)?(?:0|[1-9]\d*|\d*[a-z]+\d*)){0,100}(?=$| |\+|\.)(?:(?<=-\S+)(?:\.(?:--?|[\da-z-]*[a-z-]\d*|0|[1-9]\d*)){1,100}?)?(?!\.)(?:\+(?:[\da-z]\.?-?){1,100}?(?!\w))?(?!\+)/gi;async function vs({cwd:t,pkg:{author:e,description:r,license:n,name:i,private:s,version:o,workspaces:a}={}}){return[{format:bn,initial:(0,u.parse)(t).base,message:"package.json \xbb name",name:"name",type:t=>!1===t||i?null:"text",validate:t=>ys(bn(t)||"").validForNewPackages},{format:bn,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:t=>!1===t||o?null:"text",validate:t=>bs.test(bn(t)||"")},{format:bn,message:"package.json \xbb description",name:"description",type:t=>!1===t||r?null:"text"},{active:"MIT",format:t=>t?"MIT":"UNLICENSED",inactive:"UNLICENSED",initial:!0,message:"package.json \xbb license",name:"license",type:t=>!1===t||n?null:"toggle"},{type:t=>!1===t||("string"==typeof e?e:e&&e.name)?null:"text",format:gs,initial:await vn(e),message:"package.json \xbb author",name:"author"},{active:"true",inactive:"false",initial:!1,message:"package.json \xbb private",name:"private",format:t=>!1===t?void 0:t,type:t=>!1===t||void 0!==s?null:"toggle"},{active:"recommend",inactive:"false",initial:!1,message:"package.json \xbb workspaces",name:"workspaces",format:t=>t?["packages/*","tools/*"]:void 0,type:(t,e)=>{return!1===t||!1===s||!1===e.private||(r=a&&a.packages?a.packages:a,Array.isArray(r)&&r.length>0)?null:"toggle";var r}}]}async function ws(){const t=await os("git",["--version"]).then((({stdout:t})=>Boolean(t))),r=t&&os("git",["rev-parse","--is-inside-git-dir"]).then((({stdout:t})=>"true"===t)),n=!!r&&os("git",["status","--short"]).then((({stdout:t})=>t.length>0)),i=0===(0,e.readdirSync)(process.cwd()).length,s=wn(),o=process.cwd(),a={gitSupported:t,isGit:r,isDirty:n,isEmpty:i,pkg:s,cwd:o},l=await vs(a);return as([{active:"do it",inactive:"cancel",message:!0===n?"Repository not clean":"Workspace not empty",name:"okay",type:()=>i||!1===n?null:"toggle"},fs(a),...l,hs(),{message:ms,name:"Install",type:t=>!1===t?null:"confirm",format(t){if(!0===t)return()=>{console.log("-".repeat(32)),ps()}}}],{onCancel(){throw new Error("cancel")}}).then((({okay:t,...e})=>{if(!1===t)throw new Error("cancel");return Object.entries(e)})).then((t=>{const e=l.map((({name:t})=>t)),r=Object.fromEntries(t.filter((([t])=>e.includes(t))));return{...Object.fromEntries(t.filter((([t])=>!e.includes(t)))),info:r,options:a}}))}process.on("SIGINT",(()=>{})),new class{constructor(t,r){this.root=r;const{bin:n,homepage:i,name:s="cheetor",repository:{url:o=""}={},version:a}="string"==typeof t?JSON.parse((0,e.readFileSync)(new URL(t,r))):t;this.homepage=i,this.repository=o.includes("github.com")?o.replace(/\.git$/,""):"";const l=Me(process.argv.slice(2)).strict().alias("help","h").alias("version","v").hide("help").version(a).hide("version").detectLocale(!1),c=function(t,e){if("string"==typeof t||!t)return e;const r=Object.keys(t);return 1===r.length&&r[0]}(n,s);c&&l.scriptName(c),this.cli=Promise.resolve(l)}config(t){return this.cli=this.cli.then(t),this}command(...t){return this.cli=this.cli.then((e=>e.command(...t))),this}commandFrom(t){return this.cli=this.cli.then((async e=>{const r=await je(t,this.root);return e.command(r)})),this}commandSafe(t){return this.cli=this.cli.then((e=>function(t,e){return je(t,e).catch((t=>{if("ERR_MODULE_NOT_FOUND"===t.code&&t.message.endsWith(` imported from ${(0,p.fileURLToPath)(import.meta.url)}`))return!1;throw t}))}(t,this.root).then((t=>t&&t.command?e.command(t):e)))),this}commandSmart(t){return this.cli=this.cli.then((async e=>{const r=t();return r&&r.command?e.command(r):e})),this}website(t){return this.site=t,this}middleware(...t){return this.cli=this.cli.then((e=>e.middleware(...t))),this}setup(t){return this.cli.then((t=>Pe(t,this))).then((e=>"function"==typeof t?t(e.parse()):e.parse()))}}("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").setup((()=>{(async function(){const{Dependencies:t,GitInit:e,Install:r,info:n,options:{isGit:i}={}}=await ws();console.log("-".repeat(32));const s=[e,()=>ci(n),hi,Sn,yr,()=>e||i?xn():void 0,()=>t?t(e||i):void 0,r].filter((t=>"function"==typeof t));for(const t of s){const e=await t();e&&e.catch&&e.catch((t=>{console.warn(t.message)}))}})().catch((t=>{if("cancel"!==t.message)throw t}))}))})();