@nice-move/init 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createRequire as e}from"module";var t={2701:(e,t,r)=>{e=r.nmd(e);const n=(e,t)=>(...r)=>`\x1b[${e(...r)+t}m`,i=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};5;${n}m`},s=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};2;${n[0]};${n[1]};${n[2]}m`},o=e=>e,a=(e,t,r)=>[e,t,r],u=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let l;const c=(e,t,n,i)=>{void 0===l&&(l=r(9307));const s=i?10:0,o={};for(const[r,i]of Object.entries(l)){const a="ansi16"===r?"ansi":r;r===t?o[a]=e(n,s):"object"==typeof i&&(o[a]=e(i[t],s))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n))t[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",u(t.color,"ansi",(()=>c(n,"ansi16",o,!1))),u(t.color,"ansi256",(()=>c(i,"ansi256",o,!1))),u(t.color,"ansi16m",(()=>c(s,"rgb",a,!1))),u(t.bgColor,"ansi",(()=>c(n,"ansi16",o,!0))),u(t.bgColor,"ansi256",(()=>c(i,"ansi256",o,!0))),u(t.bgColor,"ansi16m",(()=>c(s,"rgb",a,!0))),t}})},1813:e=>{e.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},1364:(e,t,r)=>{const n=r(3027);e.exports=(e,t)=>new n(e,t)},3027:(e,t,r)=>{const n=r(6928),i=r(8611),s=r(5692),o=r(6173),a=r(3480),u=r(3106),{URL:l}=r(7016),c=r(5495),h=["gzip","deflate","br"];e.exports=class{constructor(e,t="GET"){return this.url="string"==typeof e?new l(e):e,this.method=t,this.data=null,this.sendDataAs=null,this.reqHeaders={},this.streamEnabled=!1,this.compressionEnabled=!1,this.timeoutTime=null,this.coreOptions={},this.maxRedirects=0,this.resOptions={maxBuffer:5e7},this}followRedirects(e){return this.maxRedirects=e,this}query(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.url.searchParams.append(t,e[t])})):this.url.searchParams.append(e,t),this}path(e){return this.url.pathname=n.join(this.url.pathname,e),this}body(e,t){return this.sendDataAs="object"!=typeof e||t||Buffer.isBuffer(e)?t?t.toLowerCase():"buffer":"json",this.data="form"===this.sendDataAs?a.stringify(e):"json"===this.sendDataAs?JSON.stringify(e):e,this}header(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.reqHeaders[t.toLowerCase()]=e[t]})):this.reqHeaders[e.toLowerCase()]=t,this}timeout(e){return this.timeoutTime=e,this}option(e,t){return this.coreOptions[e]=t,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(((e,t)=>{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.replace("[","").replace("]",""),port:this.url.port,path:this.url.pathname+(null===this.url.search?"":this.url.search),method:this.method,headers:this.reqHeaders,maxRedirects:this.maxRedirects},this.coreOptions);let n;const a=((e,t)=>{let r,n;if(t<=0?(r=i.request,n=s.request):(r=o.http.request,n=o.https.request),"http:"===e)return r;if("https:"===e)return n;throw new Error("Bad URL protocol: "+e)})(this.url.protocol,this.maxRedirects);n=a(r,(r=>{let n,i=r;this.compressionEnabled&&("gzip"===r.headers["content-encoding"]?i=r.pipe(u.createGunzip()):"deflate"===r.headers["content-encoding"]?i=r.pipe(u.createInflate()):"br"===r.headers["content-encoding"]&&(i=r.pipe(u.createBrotliDecompress()))),this.streamEnabled?e(i):(n=new c(r,this.resOptions),i.on("error",(e=>{t(e)})),i.on("aborted",(()=>{t(new Error("Server aborted request"))})),i.on("data",(e=>{n._addChunk(e),null!==this.resOptions.maxBuffer&&n.body.length>this.resOptions.maxBuffer&&(i.destroy(),t("Received a response which was longer than acceptable when buffering. ("+this.body.length+" bytes)"))})),i.on("end",(()=>{e(n)})))})),this.timeoutTime&&n.setTimeout(this.timeoutTime,(()=>{n.abort(),this.streamEnabled||t(new Error("Timeout reached"))})),n.on("error",(e=>{t(e)})),this.data&&n.write(this.data),n.end()}))}}},5495:e=>{e.exports=class{constructor(e,t){this.coreRes=e,this.resOptions=t,this.body=Buffer.alloc(0),this.headers=e.headers,this.statusCode=e.statusCode}_addChunk(e){this.body=Buffer.concat([this.body,e])}async json(){return 204===this.statusCode?null:JSON.parse(this.body)}async text(){return this.body.toString()}}},6181:(e,t,r)=>{const n=r(2701),{stdout:i,stderr:s}=r(5421),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(2597),{isArray:u}=Array,l=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null);class h{constructor(e){return d(e)}}const d=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;e.level=void 0===t.level?r:t.level})(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=h,t.template};function f(e){return d(e)}for(const[e,t]of Object.entries(n))c[e]={get(){const r=b(this,g(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};c.visible={get(){const e=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p)c[e]={get(){const{level:t}=this;return function(...r){const i=g(n.color[l[t]][e](...r),n.color.close,this._styler);return b(this,i,this._isEmpty)}}};for(const e of p){c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const i=g(n.bgColor[l[t]][e](...r),n.bgColor.close,this._styler);return b(this,i,this._isEmpty)}}}}const m=Object.defineProperties((()=>{}),{...c,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),g=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},b=(e,t,r)=>{const n=(...e)=>u(e[0])&&u(e[0].raw)?y(n,w(n,...e)):y(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,m),n._generator=e,n._styler=t,n._isEmpty=r,n},y=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(-1!==t.indexOf("\x1b"))for(;void 0!==r;)t=o(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=a(t,i,n,s)),n+t+i};let D;const w=(e,...t)=>{const[n]=t;if(!u(n)||!u(n.raw))return t.join(" ");const i=t.slice(1),s=[n.raw[0]];for(let e=1;e<n.length;e++)s.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===D&&(D=r(826)),D(e,s.join(""))};Object.defineProperties(f.prototype,c);const v=f();v.supportsColor=i,v.stderr=f({level:s?s.level:0}),v.stderr.supportsColor=s,e.exports=v},826:e=>{const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,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(e){const t="u"===e[0],r="{"===e[1];return t&&!r&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):s.get(e)||e}function a(e,t){const r=[],s=t.trim().split(/\s*,\s*/g);let a;for(const t of s){const s=Number(t);if(Number.isNaN(s)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(a[2].replace(i,((e,t,r)=>t?o(t):r)))}else r.push(s)}return r}function u(e){r.lastIndex=0;const t=[];let n;for(;null!==(n=r.exec(e));){const e=n[1];if(n[2]){const r=a(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function l(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const[e,t]of Object.entries(r))if(Array.isArray(t)){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,r)=>{const n=[],i=[];let s=[];if(r.replace(t,((t,r,a,c,h,d)=>{if(r)s.push(o(r));else if(c){const t=s.join("");s=[],i.push(0===n.length?t:l(e,n)(t)),n.push({inverse:a,styles:u(c)})}else if(h){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(l(e,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},2597:e=>{e.exports={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.substr(s),o},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let i=0,s="";do{const o="\r"===e[n-1];s+=e.substr(i,(o?n-1:n)-i)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.substr(i),s}}},1473:(e,t,r)=>{const n=Object.assign({},r(7256)),i=Object.keys(n);Object.defineProperty(n,"random",{get(){const e=Math.floor(Math.random()*i.length),t=i[e];return n[t]}}),e.exports=n},8138:(e,t,r)=>{const n=r(9878),i={};for(const e of Object.keys(n))i[n[e]]=e;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"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e]))throw new Error("missing channels property: "+e);if(!("labels"in s[e]))throw new Error("missing channel labels property: "+e);if(s[e].labels.length!==s[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=s[e];delete s[e].channels,delete s[e].labels,Object.defineProperty(s[e],"channels",{value:t}),Object.defineProperty(s[e],"labels",{value:r})}s.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i;let a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+s)/2;return u=s===i?0:l<=.5?o/(s+i):o/(2-s-i),[a,100*u,100*l]},s.rgb.hsv=function(e){let t,r,n,i,s;const o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),h=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,s=0):(s=c/l,t=h(o),r=h(a),n=h(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*l]},s.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=s.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n);return[100*((1-t-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(e){const t=i[e];if(t)return t;let r,s=1/0;for(const t of Object.keys(n)){const i=n[t],u=(a=i,((o=e)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);u<s&&(s=u,r=t)}var o,a;return r},s.keyword.rgb=function(e){return n[e]},s.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/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*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){const t=s.rgb.xyz(e);let r=t[0],n=t[1],i=t[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(e){const t=e[0]/360,r=e[1]/100,n=e[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,u=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-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,u[e]=255*o;return u},s.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[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[t,100*(0===n?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[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,[t,100*s,100*o]},s.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),a=1-n;s=6*t-o,1&o&&(s=1-s);const u=r+s*(a-r);let l,c,h;switch(o){default:case 6:case 0:l=a,c=u,h=r;break;case 1:l=u,c=a,h=r;break;case 2:l=r,c=a,h=u;break;case 3:l=r,c=u,h=a;break;case 4:l=u,c=r,h=a;break;case 5:l=a,c=r,h=u}return[255*l,255*c,255*h]},s.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(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(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,s,o;return i=3.2406*t+-1.5372*r+-.4986*n,s=-.9689*t+1.8758*r+.0415*n,o=.0557*t+-.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(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+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*(t-r),200*(r-n)]},s.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const i=r**3,s=t**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},s.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=null===t?s.rgb.hsv(e)[2]:t;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(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s;let a,u;return a=o<1?s/(1-o):0,u=o<=0?0:i===t?(r-n)/o%6:i===r?2+(n-t)/o:4+(t-r)/o,u/=6,u%=1,[360*u,100*o,100*a]},s.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},s.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=t%1*6,o=s%1,a=1-o;let u=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 u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},s.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},s.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},s.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},s.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=function(e){return[0,0,e[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},9307:(e,t,r)=>{const n=r(8138),i=r(5214),s={};Object.keys(n).forEach((e=>{s[e]={},Object.defineProperty(s[e],"channels",{value:n[e].channels}),Object.defineProperty(s[e],"labels",{value:n[e].labels});const t=i(e);Object.keys(t).forEach((r=>{const n=t[r];s[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),s[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=s},5214:(e,t,r)=>{const n=r(8138);function i(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),i=Object.keys(n[e]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=t[n];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,r.unshift(n))}}return t}function s(e,t){return function(r){return t(e(r))}}function o(e,t){const r=[t[e].parent,e];let i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=s(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}e.exports=function(e){const t=i(e),r={},n=Object.keys(t);for(let e=n.length,i=0;i<e;i++){const e=n[i];null!==t[e].parent&&(r[e]=o(e,t))}return r}},9878:e=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},526:(e,t,r)=>{const n=r(5317),i=r(4705),s=r(2369);function o(e,t,r){const o=i(e,t,r),a=n.spawn(o.command,o.args,o.options);return s.hookChildProcess(a,o),a}e.exports=o,e.exports.spawn=o,e.exports.sync=function(e,t,r){const o=i(e,t,r),a=n.spawnSync(o.command,o.args,o.options);return a.error=a.error||s.verifyENOENTSync(a.status,o),a},e.exports._parse=i,e.exports._enoent=s},2369:e=>{const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return t&&1===e&&!n.file?r(n.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const i=e.emit;e.emit=function(t,s){if("exit"===t){const t=n(s,r);if(t)return i.call(e,"error",t)}return i.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},4705:(e,t,r)=>{const n=r(6928),i=r(6694),s=r(1192),o=r(3179),a="win32"===process.platform,u=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(e){if(!a)return e;const t=function(e){e.file=i(e);const t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}(e),r=!u.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=n.normalize(e.command),e.command=s.command(e.command),e.args=e.args.map((e=>s.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}e.exports=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:c(n)}},1192:e=>{const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e=e.replace(t,"^$1")},e.exports.argument=function(e,r){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),r&&(e=e.replace(t,"^$1")),e}},3179:(e,t,r)=>{const n=r(9896),i=r(600);e.exports=function(e){const t=Buffer.alloc(150);let r;try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return i(t.toString())}},6694:(e,t,r)=>{const n=r(6928),i=r(1905),s=r(9695);function o(e,t){const r=e.options.env||process.env,o=process.cwd(),a=null!=e.options.cwd,u=a&&void 0!==process.chdir&&!process.chdir.disabled;if(u)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=i.sync(e.command,{path:r[s({env:r})],pathExt:t?n.delimiter:void 0})}catch(e){}finally{u&&process.chdir(o)}return l&&(l=n.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return o(e)||o(e,!0)}},6800:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(415)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},415:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,s,o=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];r=s.call(n,t),e.splice(o,1),o--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(7821),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},7124:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(6800):e.exports=r(7698)},7698:(e,t,r)=>{const n=r(2018),i=r(9023);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="\x1b[3"+(t<8?t:"8;5;"+t),s=` ${i};1m${n} \x1b[0m`;r[0]=s+r[0].split("\n").join("\n"+s),r.push(i+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(1754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(415)(t);const{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},4579:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var i={};return r.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&r.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(s,r)(e[s],t[s],r):i[s]=n(t[s],r))})),i}function u(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?s.arrayMerge(e,r,s):a(e,r,s):n(r,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var l=u;e.exports=l},1698:(e,t,r)=>{var n;e.exports=function(){if(!n){try{n=r(7124)("follow-redirects")}catch(e){}"function"!=typeof n&&(n=function(){})}n.apply(null,arguments)}},6173:(e,t,r)=>{var n=r(7016),i=n.URL,s=r(8611),o=r(5692),a=r(2203).Writable,u=r(2613),l=r(1698),c=!1;try{u(new i)}catch(e){c="ERR_INVALID_URL"===e.code}var h=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],d=["abort","aborted","connect","error","socket","timeout"],f=Object.create(null);d.forEach((function(e){f[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var p=O("ERR_INVALID_URL","Invalid URL",TypeError),m=O("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),g=O("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",m),b=O("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=O("ERR_STREAM_WRITE_AFTER_END","write after end"),D=a.prototype.destroy||E;function w(e,t){a.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof m?e:new m({cause:e}))}},this._performRequest()}function v(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var s=n+":",o=r[s]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){var a;return a=e,i&&a instanceof i?e=S(e):A(e)?e=S(F(e)):(o=n,n=C(e),e={protocol:s}),T(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,A(n.host)||A(n.hostname)||(n.hostname="::1"),u.equal(n.protocol,s,"protocol mismatch"),l("options",n),new w(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function E(){}function F(e){var t;if(c)t=new i(e);else if(!A((t=C(n.parse(e))).protocol))throw new p({input:e});return t}function C(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new p({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new p({input:e.href||e});return e}function S(e,t){var r=t||{};for(var n of h)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function x(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function O(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function _(e,t){for(var r of d)e.removeListener(r,f[r]);e.on("error",E),e.destroy(t)}function A(e){return"string"==typeof e||e instanceof String}function T(e){return"function"==typeof e}w.prototype=Object.create(a.prototype),w.prototype.abort=function(){_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},w.prototype.destroy=function(e){return _(this._currentRequest,e),D.call(this,e),this},w.prototype.write=function(e,t,r){if(this._ending)throw new y;if(!A(e)&&("object"!=typeof(n=e)||!("length"in n)))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;T(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new b),this.abort()):r&&r()},w.prototype.end=function(e,t,r){if(T(e)?(r=e,e=t=null):T(t)&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},w.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},w.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},w.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),s()}),e),n(t)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){w.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(w.prototype,e,{get:function(){return this._currentRequest[e]}})})),w.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},w.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var s of(i._redirectable=this,d))i.on(s,f[s]);if(this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,u=this._requestBodyBuffers;!function e(t){if(i===a._currentRequest)if(t)a.emit("error",t);else if(o<u.length){var r=u[o++];i.finished||i.write(r.data,r.encoding,e)}else a._ended&&i.end()}()}},w.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,s=e.headers.location;if(!s||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(_(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new g;var o=this._options.beforeRedirect;o&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],x(/^content-/i,this._options.headers));var h,d,f=x(/^host$/i,this._options.headers),p=F(this._currentUrl),m=f||p.host,b=/^\w+:/.test(s)?this._currentUrl:n.format(Object.assign(p,{host:m})),y=(h=s,d=b,c?new i(h,d):F(n.resolve(d,h)));if(l("redirecting to",y.href),this._isRedirect=!0,S(y,this._options),(y.protocol!==p.protocol&&"https:"!==y.protocol||y.host!==m&&!function(e,t){u(A(e)&&A(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(y.host,m))&&x(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),T(o)){var D={headers:e.headers,statusCode:t},w={url:b,method:a,headers:r};o(this._options,D,w),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=v({http:s,https:o}),e.exports.wrap=v},7657:(e,t,r)=>{const n=r(627),i=r(6928),s=r(9823).mkdirsSync,o=r(2292).utimesMillisSync,a=r(8549);function u(e,t,r,s){const o=(s.dereference?n.statSync:n.lstatSync)(t);if(o.isDirectory())return function(e,t,r,i,s){return t?h(r,i,s):function(e,t,r,i){return n.mkdirSync(r),h(t,r,i),c(r,e)}(e.mode,r,i,s)}(o,e,t,r,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(e,t,r,i,s){return t?function(e,t,r,i){if(i.overwrite)return n.unlinkSync(r),l(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,i,s):l(e,r,i,s)}(o,e,t,r,s);if(o.isSymbolicLink())return function(e,t,r,s){let o=n.readlinkSync(t);s.dereference&&(o=i.resolve(process.cwd(),o));if(e){let e;try{e=n.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlinkSync(o,r);throw e}if(s.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(a.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return n.unlinkSync(t),n.symlinkSync(e,t)}(o,r)}return n.symlinkSync(o,r)}(e,t,r,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,r,i){return n.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){c(e,128|t)}(r,e);(function(e,t){const r=n.statSync(e);o(t,r.atime,r.mtime)})(t,r)}(e.mode,t,r),c(r,e.mode)}function c(e,t){return n.chmodSync(e,t)}function h(e,t,r){n.readdirSync(e).forEach((n=>function(e,t,r,n){const s=i.join(t,e),o=i.join(r,e);if(n.filter&&!n.filter(s,o))return;const{destStat:l}=a.checkPathsSync(s,o,"copy",n);return u(l,s,o,n)}(n,e,t,r)))}e.exports=function(e,t,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:l}=a.checkPathsSync(e,t,"copy",r);if(a.checkParentPathsSync(e,o,t,"copy"),r.filter&&!r.filter(e,t))return;const c=i.dirname(t);return n.existsSync(c)||s(c),u(l,e,t,r)}},9945:(e,t,r)=>{const n=r(1692),i=r(6928),{mkdirs:s}=r(9823),{pathExists:o}=r(303),{utimesMillis:a}=r(2292),u=r(8549);async function l(e,t,r){return!r.filter||r.filter(e,t)}async function c(e,t,r,s){const o=s.dereference?n.stat:n.lstat,a=await o(t);if(a.isDirectory())return async function(e,t,r,s,o){t||await n.mkdir(s);const a=await n.readdir(r);await Promise.all(a.map((async e=>{const t=i.join(r,e),n=i.join(s,e);if(!await l(t,n,o))return;const{destStat:a}=await u.checkPaths(t,n,"copy",o);return c(a,t,n,o)}))),t||await n.chmod(s,e.mode)}(a,e,t,r,s);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return async function(e,t,r,i,s){if(!t)return h(e,r,i,s);if(s.overwrite)return await n.unlink(i),h(e,r,i,s);if(s.errorOnExist)throw new Error(`'${i}' already exists`)}(a,e,t,r,s);if(a.isSymbolicLink())return async function(e,t,r,s){let o=await n.readlink(t);s.dereference&&(o=i.resolve(process.cwd(),o));if(!e)return n.symlink(o,r);let a=null;try{a=await n.readlink(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlink(o,r);throw e}s.dereference&&(a=i.resolve(process.cwd(),a));if(u.isSrcSubdir(o,a))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${a}'.`);if(u.isSrcSubdir(a,o))throw new Error(`Cannot overwrite '${a}' with '${o}'.`);return await n.unlink(r),n.symlink(o,r)}(e,t,r,s);if(a.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(a.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function h(e,t,r,i){if(await n.copyFile(t,r),i.preserveTimestamps){128&e.mode||await function(e,t){return n.chmod(e,128|t)}(r,e.mode);const i=await n.stat(t);await a(r,i.atime,i.mtime)}return n.chmod(r,e.mode)}e.exports=async function(e,t,r={}){"function"==typeof r&&(r={filter: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");const{srcStat:n,destStat:a}=await u.checkPaths(e,t,"copy",r);if(await u.checkParentPaths(e,n,t,"copy"),!await l(e,t,r))return;const h=i.dirname(t);await o(h)||await s(h),await c(a,e,t,r)}},718:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={copy:n(r(9945)),copySync:r(7657)}},2456:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(5483),u=n((async function(e){let t;try{t=await i.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>a.remove(s.join(e,t)))))}));function l(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:u,emptydir:u}},4355:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823);e.exports={createFile:n((async function(e){let t;try{t=await s.stat(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);let n=null;try{n=await s.stat(r)}catch(t){if("ENOENT"===t.code)return await o.mkdirs(r),void await s.writeFile(e,"");throw t}n.isDirectory()?await s.writeFile(e,""):await s.readdir(r)})),createFileSync:function(e){let t;try{t=s.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{s.statSync(r).isDirectory()||s.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;o.mkdirsSync(r)}s.writeFileSync(e,"")}}},4177:(e,t,r)=>{const{createFile:n,createFileSync:i}=r(4355),{createLink:s,createLinkSync:o}=r(445),{createSymlink:a,createSymlinkSync:u}=r(4014);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:s,createLinkSync:o,ensureLink:s,ensureLinkSync:o,createSymlink:a,createSymlinkSync:u,ensureSymlink:a,ensureSymlinkSync:u}},445:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823),{pathExists:a}=r(303),{areIdentical:u}=r(8549);e.exports={createLink:n((async function(e,t){let r,n;try{r=await s.lstat(t)}catch{}try{n=await s.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(r&&u(n,r))return;const l=i.dirname(t);await a(l)||await o.mkdirs(l),await s.link(e,t)})),createLinkSync:function(e,t){let r;try{r=s.lstatSync(t)}catch{}try{const t=s.lstatSync(e);if(r&&u(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return s.existsSync(n)||o.mkdirsSync(n),s.linkSync(e,t)}}},9475:(e,t,r)=>{const n=r(6928),i=r(1692),{pathExists:s}=r(303),o=r(4635).fromPromise;e.exports={symlinkPaths:o((async function(e,t){if(n.isAbsolute(e)){try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const r=n.dirname(t),o=n.join(r,e);if(await s(o))return{toCwd:o,toDst:e};try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:n.relative(r,e)}})),symlinkPathsSync:function(e,t){if(n.isAbsolute(e)){if(!i.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const r=n.dirname(t),s=n.join(r,e);if(i.existsSync(s))return{toCwd:s,toDst:e};if(!i.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(r,e)}}}},3607:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={symlinkType:i((async function(e,t){if(t)return t;let r;try{r=await n.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(e,t){if(t)return t;let r;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},4014:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),{mkdirs:o,mkdirsSync:a}=r(9823),{symlinkPaths:u,symlinkPathsSync:l}=r(9475),{symlinkType:c,symlinkTypeSync:h}=r(3607),{pathExists:d}=r(303),{areIdentical:f}=r(8549);e.exports={createSymlink:n((async function(e,t,r){let n;try{n=await s.lstat(t)}catch{}if(n&&n.isSymbolicLink()){const[r,n]=await Promise.all([s.stat(e),s.stat(t)]);if(f(r,n))return}const a=await u(e,t);e=a.toDst;const l=await c(a.toCwd,r),h=i.dirname(t);return await d(h)||await o(h),s.symlink(e,t,l)})),createSymlinkSync:function(e,t,r){let n;try{n=s.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=s.statSync(e),n=s.statSync(t);if(f(r,n))return}const o=l(e,t);e=o.toDst,r=h(o.toCwd,r);const u=i.dirname(t);return s.existsSync(u)||a(u),s.symlinkSync(e,t,r)}}},1692:(e,t,r)=>{const n=r(4635).fromCallback,i=r(627),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((e=>"function"==typeof i[e]));Object.assign(t,i),s.forEach((e=>{t[e]=n(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,r,n,s,o){return"function"==typeof o?i.read(e,t,r,n,s,o):new Promise(((o,a)=>{i.read(e,t,r,n,s,((e,t,r)=>{if(e)return a(e);o({bytesRead:t,buffer:r})}))}))},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?i.write(e,t,...r):new Promise(((n,s)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})}))}))},t.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?i.readv(e,t,...r):new Promise(((n,s)=>{i.readv(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesRead:t,buffers:r})}))}))},t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?i.writev(e,t,...r):new Promise(((n,s)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffers:r})}))}))},"function"==typeof i.realpath.native?t.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},738:(e,t,r)=>{e.exports={...r(1692),...r(718),...r(2456),...r(4177),...r(6185),...r(9823),...r(1254),...r(2227),...r(303),...r(5483)}},6185:(e,t,r)=>{const n=r(4635).fromPromise,i=r(509);i.outputJson=n(r(3291)),i.outputJsonSync=r(8235),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},509:(e,t,r)=>{const n=r(8843);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},8235:(e,t,r)=>{const{stringify:n}=r(374),{outputFileSync:i}=r(2227);e.exports=function(e,t,r){const s=n(t,r);i(e,s,r)}},3291:(e,t,r)=>{const{stringify:n}=r(374),{outputFile:i}=r(2227);e.exports=async function(e,t,r={}){const s=n(t,r);await i(e,s,r)}},9823:(e,t,r)=>{const n=r(4635).fromPromise,{makeDir:i,makeDirSync:s}=r(5639),o=n(i);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},5639:(e,t,r)=>{const n=r(1692),{checkPath:i}=r(9242),s=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:s(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:s(t),recursive:!0}))},9242:(e,t,r)=>{const n=r(6928);e.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}},1254:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={move:n(r(5553)),moveSync:r(7473)}},7473:(e,t,r)=>{const n=r(627),i=r(6928),s=r(718).copySync,o=r(5483).removeSync,a=r(9823).mkdirpSync,u=r(8549);function l(e,t,r){try{n.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return s(e,t,n),o(e)}(e,t,r)}}e.exports=function(e,t,r){const s=(r=r||{}).overwrite||r.clobber||!1,{srcStat:c,isChangingCase:h=!1}=u.checkPathsSync(e,t,"move",r);return u.checkParentPathsSync(e,c,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||a(i.dirname(t)),function(e,t,r,i){if(i)return l(e,t,r);if(r)return o(t),l(e,t,r);if(n.existsSync(t))throw new Error("dest already exists.");return l(e,t,r)}(e,t,s,h)}},5553:(e,t,r)=>{const n=r(1692),i=r(6928),{copy:s}=r(718),{remove:o}=r(5483),{mkdirp:a}=r(9823),{pathExists:u}=r(303),l=r(8549);e.exports=async function(e,t,r={}){const c=r.overwrite||r.clobber||!1,{srcStat:h,isChangingCase:d=!1}=await l.checkPaths(e,t,"move",r);await l.checkParentPaths(e,h,t,"move");const f=i.dirname(t);return i.parse(f).root!==f&&await a(f),async function(e,t,r,i){if(!i)if(r)await o(t);else if(await u(t))throw new Error("dest already exists.");try{await n.rename(e,t)}catch(n){if("EXDEV"!==n.code)throw n;await async function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await s(e,t,n),o(e)}(e,t,r)}}(e,t,c,d)}},2227:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(303).pathExists;e.exports={outputFile:n((async function(e,t,r="utf-8"){const n=s.dirname(e);return await a(n)||await o.mkdirs(n),i.writeFile(e,t,r)})),outputFileSync:function(e,...t){const r=s.dirname(e);i.existsSync(r)||o.mkdirsSync(r),i.writeFileSync(e,...t)}}},303:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692);e.exports={pathExists:n((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},5483:(e,t,r)=>{const n=r(627),i=r(4635).fromCallback;e.exports={remove:i((function(e,t){n.rm(e,{recursive:!0,force:!0},t)})),removeSync:function(e){n.rmSync(e,{recursive:!0,force:!0})}}},8549:(e,t,r)=>{const n=r(1692),i=r(6928),s=r(4635).fromPromise;function o(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function a(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e)),n=i.resolve(t).split(i.sep).filter((e=>e));return r.every(((e,t)=>n[t]===e))}function u(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:s((async function(e,t,r,s){const{srcStat:l,destStat:c}=await function(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:!0}):e=>n.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}})),checkPathsSync:function(e,t,r,s){const{srcStat:l,destStat:c}=function(e,t,r){let i;const s=r.dereference?e=>n.statSync(e,{bigint:!0}):e=>n.lstatSync(e,{bigint:!0}),o=s(e);try{i=s(t)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}},checkParentPaths:s((async function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=await n.stat(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)})),checkParentPathsSync:function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=n.statSync(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)},isSrcSubdir:a,areIdentical:o}},2292:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={utimesMillis:i((async function(e,t,r){const i=await n.open(e,"r+");let s=null;try{await n.futimes(i,t,r)}finally{try{await n.close(i)}catch(e){s=e}}if(s)throw s})),utimesMillisSync:function(e,t,r){const i=n.openSync(e,"r+");return n.futimesSync(i,t,r),n.closeSync(i)}}},8359:e=>{e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else r=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r};var t=Object.getPrototypeOf||function(e){return e.__proto__}},627:(e,t,r)=>{var n,i,s=r(9896),o=r(8254),a=r(111),u=r(8359),l=r(9023);function c(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"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 h,d=function(){};if(l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!s[n]){var f=global[n]||[];c(s,f),s.close=function(e){function t(t,r){return e.call(s,t,(function(e){e||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(s.close),s.closeSync=function(e){function t(t){e.apply(s,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(2613).equal(s[n].length,0)}))}function p(e){o(e),e.gracefulify=p,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,s){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[r,n,i],t,s||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,s,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,n,i,s],r,o||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,s,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,i,s],n,o||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,s,o){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,n,s],i,o||Date.now(),Date.now()])}))}(e,t,r,n)});var s=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=u.test(process.version)?function(e,t,r,n){return s(e,i(e,t,r,n))}:function(e,t,r,n){return s(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,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,[e,t,r],s,i||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,b=l.WriteStream}var c=e.ReadStream;c&&(g.prototype=Object.create(c.prototype),g.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var h=e.WriteStream;h&&(b.prototype=Object.create(h.prototype),b.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var f=b;function g(e,t){return this instanceof g?(c.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function b(e,t){return this instanceof b?(h.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var y=e.open;function D(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,s){return y(t,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,r,n,i],o,s||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=D,e}function m(e){d("ENQUEUE",e[0].name,e[1]),s[n].push(e),b()}function g(){for(var e=Date.now(),t=0;t<s[n].length;++t)s[n][t].length>2&&(s[n][t][3]=e,s[n][t][4]=e);b()}function b(){if(clearTimeout(h),h=void 0,0!==s[n].length){var e=s[n].shift(),t=e[0],r=e[1],i=e[2],o=e[3],a=e[4];if(void 0===o)d("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",t.name,r);var u=r.pop();"function"==typeof u&&u.call(null,i)}else{var l=Date.now()-a,c=Math.max(a-o,1);l>=Math.min(1.2*c,100)?(d("RETRY",t.name,r),t.apply(null,r.concat([o]))):s[n].push(e)}void 0===h&&(h=setTimeout(b,0))}}global[n]||c(global,s[n]),e.exports=p(u(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=p(s),s.__patched=!0)},111:(e,t,r)=>{var n=r(2203).Stream;e.exports=function(e){return{ReadStream:function t(r,i){if(!(this instanceof t))return new t(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,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}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()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return s.emit("error",e),void(s.readable=!1);s.fd=t,s.emit("open",t),s._read()}))},WriteStream:function t(r,i){if(!(this instanceof t))return new t(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 u=s[o];this[u]=i[u]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},8254:(e,t,r)=>{var n=r(9140),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(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,s=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=e.fchmodSync(s,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,(function(t,n){t?s&&s(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){s&&s(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var s,o=e.openSync(t,n.O_SYMLINK),a=!0;try{s=e.futimesSync(o,r,i),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return s}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===o&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var s=Date.now(),o=0;t(r,n,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-s<6e4)return setTimeout((function(){e.stat(n,(function(e,s){e&&"ENOENT"===e.code?t(r,n,a):i(u)}))}),o),void(o<100&&(o+=10));i&&i(u)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(r,n,i,s){return t.call(e,r,n,i,(function(e){l(e)&&(e=null),s&&s.apply(this,arguments)}))}:t}function s(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(r,n,i){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,s):t.call(e,r,s)}:t}function u(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function l(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,s,o,a){var u;if(a&&"function"==typeof a){var l=0;u=function(c,h,d){if(c&&"EAGAIN"===c.code&&l<10)return l++,t.call(e,r,n,i,s,o,u);a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,u)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,s){for(var o=0;;)try{return c.call(e,t,r,n,i,s)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var c}},4891:e=>{e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},910:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},4140:e=>{e.exports=e=>{if("object"!=typeof e||null===e)throw new TypeError("Expected an object");const t={};for(const[r,n]of Object.entries(e))t[n]=r;for(const r of Object.getOwnPropertySymbols(e)){t[e[r]]=r}return t}},9344:(e,t,r)=>{var n;r(9896);function i(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(e,t||{},(function(e,t){e?n(e):r(t)}))}))}n(e,t||{},(function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}n="win32"===process.platform||global.TESTING_WINDOWS?r(8541):r(709),e.exports=i,i.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},709:(e,t,r)=>{e.exports=i,i.sync=function(e,t){return s(n.statSync(e),t)};var n=r(9896);function i(e,t,r){n.stat(e,(function(e,n){r(e,!e&&s(n,t))}))}function s(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,i=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u;return r&l||r&u&&i===o||r&a&&n===s||r&c&&0===s}(e,t)}},8541:(e,t,r)=>{e.exports=s,s.sync=function(e,t){return i(n.statSync(e),e,t)};var n=r(9896);function i(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.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&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,r)}function s(e,t,r){n.stat(e,(function(n,s){r(n,!n&&i(s,e,t))}))}},8843:(e,t,r)=>{let n;try{n=r(627)}catch(e){n=r(9896)}const i=r(4635),{stringify:s,stripBom:o}=r(374);const a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,s=!("throws"in t)||t.throws;let a,u=await i.fromCallback(r.readFile)(e,t);u=o(u);try{a=JSON.parse(u,t?t.reviver:null)}catch(t){if(s)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,i=!("throws"in t)||t.throws;try{let n=r.readFileSync(e,t);return n=o(n),JSON.parse(n,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,r={}){const o=r.fs||n,a=s(t,r);await i.fromCallback(o.writeFile)(e,a,r)})),writeFileSync:function(e,t,r={}){const i=r.fs||n,o=s(t,r);return i.writeFileSync(e,o,r)}};e.exports=a},374:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},8888:e=>{const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==t,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(e,t){let r,n=0,i="",s="";for(;n<e.length;n++)r=e[n],i+=r.open,s+=r.close,t.includes(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+s}function o(e,t){let r={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){return void 0!==this&&void 0!==this.has?(this.has.includes(e)||(this.has.push(e),this.keys.push(r)),void 0===t?this:i.enabled?s(this.keys,t+""):t+""):void 0===t?function(e,t){let r={has:e,keys:t};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}([e],[r]):i.enabled?s([r],t+""):t+""}}e.exports=i},323:(e,t,r)=>{const n=r(4140),i=r(8360),s=n(i);t.from=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return i[e]},t.to=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");if(s[e])return Number(s[e])},t.all=new Proxy(s,{get(e,t){const r=e[t];if(r)return Number(r)}})},6283:e=>{const t=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};e.exports=t,e.exports.default=t},7821:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,s=7*i,o=365.25*i;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,u){u=u||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===l&&isFinite(e))return u.long?function(e){var s=Math.abs(e);if(s>=i)return a(e,s,i,"day");if(s>=n)return a(e,s,n,"hour");if(s>=r)return a(e,s,r,"minute");if(s>=t)return a(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=i)return Math.round(e/i)+"d";if(s>=n)return Math.round(e/n)+"h";if(s>=r)return Math.round(e/r)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7862:(e,t,r)=>{const n=r(6283),i=new WeakMap,s=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const o=e.displayName||e.name||"<anonymous>",a=function(...n){if(i.set(a,++s),1===s)r=e.apply(this,n),e=null;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return r};return n(a,e),i.set(a,s),a};e.exports=s,e.exports.default=s,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},1416:(e,t,r)=>{var n=r(1813);e.exports=function(e){if("string"!=typeof e)throw new TypeError("expected author to be a string");if(!e||!/\w/.test(e))return{};var t=[].concat.apply([],n().exec(e)),r={};t[1]&&(r.name=t[1]);for(var i=2;i<t.length;i++){var s=t[i];i%2==0&&s&&t[i+1]&&("<"===s.charAt(0)?(r.email=t[i+1],i++):"("===s.charAt(0)&&(r.url=t[i+1],i++))}return r}},9695:e=>{const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},8459:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},5882:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(r=e,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var r}}},2583:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},9180:(e,t,r)=>{e.exports={DatePart:r(8459),Meridiem:r(4356),Day:r(5882),Hours:r(2583),Milliseconds:r(1516),Minutes:r(3317),Month:r(5058),Seconds:r(249),Year:r(5599)}},4356:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1516:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},3317:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},5058:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},249:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},5599:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},9111:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}const i=r(8888),s=r(7261),o=r(4347),a=o.erase,u=o.cursor,l=r(8482),c=l.style,h=l.clear,d=l.figures,f=l.wrap,p=l.entriesToDisplay,m=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),g=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=c.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=h("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=m(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var t,r=this;return(t=function*(){const t=r.completing=r.suggest(r.input,r.choices),n=yield t;if(r.completing!==t)return;r.suggestions=n.map(((e,t,r)=>({title:g(r,t),value:m(r,t),description:e.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),e&&e()},function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}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()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.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(e,t,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=t?i.cyan().underline(e.title):e.title;return o=(t?i.cyan(d.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+f(e.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(u.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();let e=p(this.select,this.choices.length,this.limit),t=e.startIndex,r=e.endIndex;if(this.outputText=[c.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),c.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 e=this.suggestions.slice(t,r).map(((e,n)=>this.renderOption(e,this.select===n+t,0===n&&t>0,n+t===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(e||i.gray(this.fallback.title))}this.out.write(a.line+u.to(0)+this.outputText)}}},5518:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(538),o=r(8482),a=o.clear,u=o.style,l=o.figures;e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),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((e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}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(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},539:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.erase,c=u.cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}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.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(l.line+c.to(0)+this.outputText))}}},7191:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(8482),u=a.style,l=a.clear,c=a.figures,h=r(4347),d=h.erase,f=h.cursor,p=r(9180),m=p.DatePart,g=p.Meridiem,b=p.Day,y=p.Hours,D=p.Milliseconds,w=p.Minutes,v=p.Month,E=p.Seconds,F=p.Year,C=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,S={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new b(e),3:e=>new v(e),4:e=>new F(e),5:e=>new g(e),6:e=>new y(e),7:e=>new w(e),8:e=>new E(e),9:e=>new D(e)},x={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(",")};e.exports=class extends o{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(x,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=l("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=C.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in S?S[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof m))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof m))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(f.hide):this.out.write(l(this.outputText,this.out.columns)),super.render(),this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:s.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(d.line+f.to(0)+this.outputText))}}},271:(e,t,r)=>{e.exports={TextPrompt:r(3392),SelectPrompt:r(4003),TogglePrompt:r(5807),DatePrompt:r(7191),NumberPrompt:r(1270),MultiselectPrompt:r(538),AutocompletePrompt:r(9111),AutocompleteMultiselectPrompt:r(5518),ConfirmPrompt:r(539)}},538:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(7261),o=r(8482),a=o.clear,u=o.figures,l=o.style,c=o.wrap,h=o.entriesToDisplay;e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=a("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.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((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(e,t,r,i){const s=(t.selected?n.green(u.radioOn):u.radioOff)+" "+i+" ";let o,a;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(a=` - ${t.description}`,(s.length+o.length+a.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(a="\n"+c(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,r=h(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)t=r===i&&i>0?u.arrowUp:r===s-1&&s<e.length?u.arrowDown:" ",o.push(this.renderOption(this.cursor,e[r],r,t));return"\n"+o.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},1270:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.cursor,l=a.erase,c=r(8482),h=c.style,d=c.figures,f=c.clear,p=c.lines,m=/[0-9]/,g=e=>void 0!==e,b=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.msg=e.message,this.initial=g(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=g(e.min)?e.min:-1/0,this.max=g(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${b(e,this.round)}`),this._value=b(e,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||m.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();let t=e.value;e.value=""!==t?t:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write("\n"),e.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 e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.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()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)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(u.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=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.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(((e,t,r)=>e+`\n${r?" ":d.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore))}}},7261:(e,t,r)=>{const n=r(3785),i=r(8482).action,s=r(4434),o=r(4347),a=o.beep,u=o.cursor,l=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(u.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.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(l),this.firstRender&&(this.firstRender=!1)}}},4003:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=s.figures,l=s.wrap,c=s.entriesToDisplay,h=r(4347).cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].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()}_(e,t){if(" "===e)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(a(this.outputText,this.out.columns)),super.render();let e=c(this.cursor,this.choices.length,this.optionsPerPage),t=e.startIndex,r=e.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 e=t;e<r;e++){let i,s,o="",a=this.choices[e];s=e===t&&t>0?u.arrowUp:e===r-1&&r<this.choices.length?u.arrowDown:" ",a.disabled?(i=this.cursor===e?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===e?n.bold().gray(u.pointer)+" ":" ")+s):(i=this.cursor===e?n.cyan().underline(a.title):a.title,s=(this.cursor===e?n.cyan(u.pointer)+" ":" ")+s,a.description&&this.cursor===e&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+l(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},3392:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.erase,l=a.cursor,c=r(8482),h=c.style,d=c.clear,f=c.lines,p=c.figures;e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.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 e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error)return e.red=!0,e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,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 e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,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(l.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=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":p.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0)))}}},5807:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.cursor,c=u.erase;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(l.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(c.line+l.to(0)+this.outputText))}}},2481:(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,s=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw s}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function o(e){u(s,n,i,o,a,"next",e)}function a(e){u(s,n,i,o,a,"throw",e)}o(void 0)}))}}const c=r(3682),h=["suggest","format","onState","validate","onRender","type"],d=()=>{};function f(){return p.apply(this,arguments)}function p(){return p=l((function*(e=[],{onSubmit:t=d,onCancel:r=d}={}){const n={},s=f._override||{};let a,u,p,g,b,y;e=[].concat(e);const D=function(){var e=l((function*(e,t,r=!1){if(r||!e.validate||!0===e.validate(t))return e.format?yield e.format(t,n):t}));return function(t,r){return e.apply(this,arguments)}}();var w,v=o(e);try{for(v.s();!(w=v.n()).done;){u=w.value;var E=u;if(g=E.name,b=E.type,"function"==typeof b&&(b=yield b(a,i({},n),u),u.type=b),b){for(let e in u){if(h.includes(e))continue;let t=u[e];u[e]="function"==typeof t?yield t(a,i({},n),y):t}if(y=u,"string"!=typeof u.message)throw new Error("prompt message is required");var F=u;if(g=F.name,b=F.type,void 0===c[b])throw new Error(`prompt type (${b}) is not defined`);if(void 0===s[u.name]||(a=yield D(u,s[u.name]),void 0===a)){try{a=f._injected?m(f._injected,u.initial):yield c[b](u),n[g]=a=yield D(u,a,!0),p=yield t(u,a,n)}catch(e){p=!(yield r(u,n))}if(p)return n}else n[g]=a}}}catch(e){v.e(e)}finally{v.f()}return n})),p.apply(this,arguments)}function m(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(f,{prompt:f,prompts:c,inject:function(e){f._injected=(f._injected||[]).concat(e)},override:function(e){f._override=Object.assign({},e)}})},3682:(e,t,r)=>{const n=t,i=r(271),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},8386:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},6203:(e,t,r)=>{function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const s=r(9440),o=r(4347),a=o.erase,u=o.cursor;e.exports=function(e,t){if(!t)return a.line+u.to(0);let r=0;var i,o=n(e.split(/\r?\n/));try{for(o.s();!(i=o.n()).done;){let e=i.value;r+=1+Math.floor(Math.max([...s(e)].length-1,0)/t)}}catch(e){o.e(e)}finally{o.f()}return a.lines(r)}},4409:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},6135:e=>{const t={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:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},8482:(e,t,r)=>{e.exports={action:r(8386),clear:r(6203),style:r(6187),strip:r(9440),figures:r(6135),lines:r(6905),wrap:r(3424),entriesToDisplay:r(4409)}},6905:(e,t,r)=>{const n=r(9440);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},9440:e=>{e.exports=e=>{const t=["[\\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(t,"g");return"string"==typeof e?e.replace(r,""):e}},6187:(e,t,r)=>{const n=r(8888),i=r(6135),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},3424:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},5600:(e,t,r)=>{e.exports=function(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return!1;if(e[t]>r[t])return!0}return!1}("8.6.0")?r(2481):r(8332)},4264:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},8171:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(r=e,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var r}}},9518:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},1693:(e,t,r)=>{e.exports={DatePart:r(4264),Meridiem:r(6551),Day:r(8171),Hours:r(9518),Milliseconds:r(1271),Minutes:r(136),Month:r(2103),Seconds:r(6272),Year:r(2968)}},6551:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1271:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},136:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},2103:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},6272:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},2968:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},8590:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,figures:l,wrap:c,entriesToDisplay:h}=r(7933),d=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),f=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=a.render(e.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(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=d(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices),r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:f(r,t),value:d(r,t),description:e.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),e&&e()}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()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.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(e,t,r,i){let s,o=r?l.arrowUp:i?l.arrowDown:" ",a=t?n.cyan().underline(e.title):e.title;return o=(t?n.cyan(l.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+c(e.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(u(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=h(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(e,t).map(((r,n)=>this.renderOption(r,this.select===n+e,0===n&&e>0,n+e===t-1&&t<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},4349:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(3725),{clear:o,style:a,figures:u}=r(7933);e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),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((e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},3756:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{erase:a,cursor:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(u.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+u.to(0)+this.outputText))}}},8626:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a}=r(7933),{erase:u,cursor:l}=r(4347),{DatePart:c,Meridiem:h,Day:d,Hours:f,Milliseconds:p,Minutes:m,Month:g,Seconds:b,Year:y}=r(1693),D=/\\(.)|"((?:\\["\\]|[^"])+)"|(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:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new g(e),4:e=>new y(e),5:e=>new h(e),6:e=>new f(e),7:e=>new m(e),8:e=>new b(e),9:e=>new p(e)},v={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(",")};e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(v,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.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(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=D.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in w?w[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof c))),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 e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}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 e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof c))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}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(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:n.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":a.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText))}}},5864:(e,t,r)=>{e.exports={TextPrompt:r(1433),SelectPrompt:r(406),TogglePrompt:r(1582),DatePrompt:r(8626),NumberPrompt:r(9927),MultiselectPrompt:r(3725),AutocompletePrompt:r(8590),AutocompleteMultiselectPrompt:r(4349),ConfirmPrompt:r(3756)}},3725:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(8544),{clear:o,figures:a,style:u,wrap:l,entriesToDisplay:c}=r(7933);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=o("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.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((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)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(e,t,r,i){const s=(t.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,u;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(u=` - ${t.description}`,(s.length+o.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(u="\n"+l(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(u||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,{startIndex:r,endIndex:i}=c(this.cursor,e.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)t=n===r&&r>0?a.arrowUp:n===i-1&&i<e.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,e[n],n,t));return"\n"+s.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},9927:(e,t,r)=>{const n=r(8888),i=r(8544),{cursor:s,erase:o}=r(4347),{style:a,figures:u,clear:l,lines:c}=r(7933),h=/[0-9]/,d=e=>void 0!==e,f=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.msg=e.message,this.initial=d(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=d(e.min)?e.min:-1/0,this.max=d(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${f(e,this.round)}`),this._value=f(e,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||h.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let e=this.value;this.value=""!==e?e: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 e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.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()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)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(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.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},8544:(e,t,r)=>{const n=r(3785),{action:i}=r(7933),s=r(4434),{beep:o,cursor:a}=r(4347),u=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.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(u),this.firstRender&&(this.firstRender=!1)}}},406:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a,wrap:u,entriesToDisplay:l}=r(7933),{cursor:c}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].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()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=l(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=e;r<t;r++){let i,s,o="",l=this.choices[r];s=r===e&&e>0?a.arrowUp:r===t-1&&t<this.choices.length?a.arrowDown:" ",l.disabled?(i=this.cursor===r?n.gray().underline(l.title):n.strikethrough().gray(l.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(l.title):l.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,l.description&&this.cursor===r&&(o=` - ${l.description}`,(s.length+i.length+o.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(o="\n"+u(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},1433:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,lines:l,figures:c}=r(7933);e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=u("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.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 e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}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(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,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 e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,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(l(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(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(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},1582:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{cursor:a,erase:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)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(u.line+a.to(0)+this.outputText))}}},8332:(e,t,r)=>{const n=r(3683),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(e=[],{onSubmit:t=s,onCancel:r=s}={}){const u={},l=o._override||{};let c,h,d,f,p,m;e=[].concat(e);const g=async(e,t,r=!1)=>{if(r||!e.validate||!0===e.validate(t))return e.format?await e.format(t,u):t};for(h of e)if(({name:f,type:p}=h),"function"==typeof p&&(p=await p(c,{...u},h),h.type=p),p){for(let e in h){if(i.includes(e))continue;let t=h[e];h[e]="function"==typeof t?await t(c,{...u},m):t}if(m=h,"string"!=typeof h.message)throw new Error("prompt message is required");if(({name:f,type:p}=h),void 0===n[p])throw new Error(`prompt type (${p}) is not defined`);if(void 0===l[h.name]||(c=await g(h,l[h.name]),void 0===c)){try{c=o._injected?a(o._injected,h.initial):await n[p](h),u[f]=c=await g(h,c,!0),d=await t(h,c,u)}catch(e){d=!await r(h,u)}if(d)return u}else u[f]=c}return u}function a(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(e){o._injected=(o._injected||[]).concat(e)},override:function(e){o._override=Object.assign({},e)}})},3683:(e,t,r)=>{const n=t,i=r(5864),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},1787:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},7676:(e,t,r)=>{const n=r(7135),{erase:i,cursor:s}=r(4347);e.exports=function(e,t){if(!t)return i.line+s.to(0);let r=0;const o=e.split(/\r?\n/);for(let e of o)r+=1+Math.floor(Math.max([...n(e)].length-1,0)/t);return i.lines(r)}},4640:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},3248:e=>{const t={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:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},7933:(e,t,r)=>{e.exports={action:r(1787),clear:r(7676),style:r(7456),strip:r(7135),figures:r(3248),lines:r(334),wrap:r(1485),entriesToDisplay:r(4640)}},334:(e,t,r)=>{const n=r(7135);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},7135:e=>{e.exports=e=>{const t=["[\\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(t,"g");return"string"==typeof e?e.replace(r,""):e}},7456:(e,t,r)=>{const n=r(8888),i=r(3248),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},1485:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},600:(e,t,r)=>{const n=r(7257);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?i:i?`${s} ${i}`:s}},7257:e=>{e.exports=/^#!(.*)/},112:(e,t,r)=>{var n=global.process;const i=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(i(n)){var s,o=r(2613),a=r(7401),u=/^win/i.test(n.platform),l=r(4434);"function"!=typeof l&&(l=l.EventEmitter),n.__signal_exit_emitter__?s=n.__signal_exit_emitter__:((s=n.__signal_exit_emitter__=new l).count=0,s.emitted={}),s.infinite||(s.setMaxListeners(1/0),s.infinite=!0),e.exports=function(e,t){if(!i(global.process))return function(){};o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===f&&p();var r="exit";t&&t.alwaysLast&&(r="afterexit");return s.on(r,e),function(){s.removeListener(r,e),0===s.listeners("exit").length&&0===s.listeners("afterexit").length&&c()}};var c=function(){f&&i(global.process)&&(f=!1,a.forEach((function(e){try{n.removeListener(e,d[e])}catch(e){}})),n.emit=b,n.reallyExit=m,s.count-=1)};e.exports.unload=c;var h=function(e,t,r){s.emitted[e]||(s.emitted[e]=!0,s.emit(e,t,r))},d={};a.forEach((function(e){d[e]=function(){i(global.process)&&(n.listeners(e).length===s.count&&(c(),h("exit",null,e),h("afterexit",null,e),u&&"SIGHUP"===e&&(e="SIGINT"),n.kill(n.pid,e)))}})),e.exports.signals=function(){return a};var f=!1,p=function(){!f&&i(global.process)&&(f=!0,s.count+=1,a=a.filter((function(e){try{return n.on(e,d[e]),!0}catch(e){return!1}})),n.emit=y,n.reallyExit=g)};e.exports.load=p;var m=n.reallyExit,g=function(e){i(global.process)&&(n.exitCode=e||0,h("exit",n.exitCode,null),h("afterexit",n.exitCode,null),m.call(n,n.exitCode))},b=n.emit,y=function(e,t){if("exit"===e&&i(global.process)){void 0!==t&&(n.exitCode=t);var r=b.apply(this,arguments);return h("exit",n.exitCode,null),h("afterexit",n.exitCode,null),r}return b.apply(this,arguments)}}else e.exports=function(){return function(){}}},7401:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},4347:e=>{const t="\x1b[",r={to:(e,r)=>r?`${t}${r+1};${e+1}H`:`${t}${e+1}G`,move(e,r){let n="";return e<0?n+=`${t}${-e}D`:e>0&&(n+=`${t}${e}C`),r<0?n+=`${t}${-r}A`:r>0&&(n+=`${t}${r}B`),n},up:(e=1)=>`${t}${e}A`,down:(e=1)=>`${t}${e}B`,forward:(e=1)=>`${t}${e}C`,backward:(e=1)=>`${t}${e}D`,nextLine:(e=1)=>`${t}E`.repeat(e),prevLine:(e=1)=>`${t}F`.repeat(e),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:"\x1b7",restore:"\x1b8"},n={up:(e=1)=>`${t}S`.repeat(e),down:(e=1)=>`${t}T`.repeat(e)},i={screen:`${t}2J`,up:(e=1)=>`${t}1J`.repeat(e),down:(e=1)=>`${t}J`.repeat(e),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?r.up():"");return e&&(t+=r.left),t}};e.exports={cursor:r,scroll:n,erase:i,beep:"\x07"}},3396:e=>{e.exports=function(e){if("object"!=typeof e)throw new Error("expected an author to be an object");var t={name:["",""],email:["<",">"],url:["(",")"]},r="";for(var n in e.url&&(e.url=function(e){return e.replace(/\/$/,"")}(e.url)),t)e[n]&&(r+=t[n][0]+e[n]+t[n][1]+" ");return r.trim()}},1754:(e,t,r)=>{const n=r(857),i=r(4891),s=process.env;let o;function a(e){const t=function(e){if(!1===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;const t=o?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in s))||"codeship"===s.CI_NAME?1:t;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:(s.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?o=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=!0),"FORCE_COLOR"in s&&(o=0===s.FORCE_COLOR.length||0!==parseInt(s.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},5421:(e,t,r)=>{const n=r(857),i=r(2018),s=r(910),{env:o}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e 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 e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=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)),e.exports={supportsColor:function(e){return u(l(e,e&&e.isTTY))},stdout:u(l(!0,i.isatty(1))),stderr:u(l(!0,i.isatty(2)))}},4635:(e,t)=>{t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{t.push(((e,t)=>null!=e?n(e):r(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>r(null,e)),r)}),"name",{value:e.name})}},6756:(e,t,r)=>{const{builtinModules:n}=r(3339);var i=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),s=["node_modules","favicon.ico"];var o=function(e,t){var r={validForNewPackages:0===t.length&&0===e.length,validForOldPackages:0===t.length,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};e.exports=function(e){var t=[],r=[];if(null===e)return r.push("name cannot be null"),o(t,r);if(void 0===e)return r.push("name cannot be undefined"),o(t,r);if("string"!=typeof e)return r.push("name must be a string"),o(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),s.forEach((function(t){e.toLowerCase()===t&&r.push(t+" is a blacklisted name")})),n.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(e)!==e){var a=e.match(i);if(a){var u=a[1],l=a[2];if(encodeURIComponent(u)===u&&encodeURIComponent(l)===l)return o(t,r)}r.push("name can only contain URL-friendly characters")}return o(t,r)}},1905:(e,t,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(6928),s=n?";":":",o=r(9344),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),u=(e,t)=>{const r=t.colon||s,i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?o.split(r):[""];return n&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:o}},l=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:s,pathExtExe:l}=u(e,t),c=[],h=r=>new Promise(((s,o)=>{if(r===n.length)return t.all&&c.length?s(c):o(a(e));const u=n[r],l=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(l,e),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;s(d(f,r,0))})),d=(e,r,n)=>new Promise(((i,a)=>{if(n===s.length)return i(h(r+1));const u=s[n];o(e+u,{pathExt:l},((s,o)=>{if(!s&&o){if(!t.all)return i(e+u);c.push(e+u)}return i(d(e,r,n+1))}))}));return r?h(0).then((e=>r(null,e)),r):h(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=u(e,t),l=[];for(let a=0;a<r.length;a++){const u=r[a],c=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;for(let e=0;e<n.length;e++){const r=d+n[e];try{if(o.sync(r,{pathExt:s})){if(!t.all)return r;l.push(r)}}catch(e){}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw a(e)}},2613:t=>{t.exports=e(import.meta.url)("assert")},5317:t=>{t.exports=e(import.meta.url)("child_process")},9140:t=>{t.exports=e(import.meta.url)("constants")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},3339:t=>{t.exports=e(import.meta.url)("module")},8995:t=>{t.exports=e(import.meta.url)("node:module")},6760:t=>{t.exports=e(import.meta.url)("node:path")},3136:t=>{t.exports=e(import.meta.url)("node:url")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},3480:t=>{t.exports=e(import.meta.url)("querystring")},3785:t=>{t.exports=e(import.meta.url)("readline")},2203:t=>{t.exports=e(import.meta.url)("stream")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3106:t=>{t.exports=e(import.meta.url)("zlib")},9523:(e,t,r)=>{const n=r(738),{resolver:i}=r(776),{Creator:s}=r(7391),{readFile:o,readJson:a,outputFile:u,outputJson:l}=n,c={spaces:2,replacer:null};function h(e){return o(e,{encoding:"utf8"})}function d(e,t){return u(e,t,{encoding:"utf8"})}function f(e,t,{pretty:r=!1}={}){return l(e,t,r?c:void 0)}const p=s({read:h,write:d}),m=s({read:a,write:f}),g=s({read:h,write:f}),b=s({read:a,write:d});e.exports={Creator:s,Json:m,JsonToText:b,Text:p,TextToJson:g,resolver:i,fs:n}},7391:(e,t,r)=>{const{resolver:n,Base:i,logger:s}=r(776);e.exports={Creator:function({read:e,write:t}){return class extends i{constructor(e){super(),e&&(this.root=e)}config(e){return void 0!==e&&(this.option=e),this}source(t,r=this.root){if(!t)throw new Error("path cannot be empty");return this.action=this.action.then((()=>{this.source=n(t,r)})).then((()=>e(this.source))),this}output(e,r=this.root){return this.action=this.action.then((i=>{const s=n(void 0===e?this.source:e,r);if(!s)throw new Error("path cannot be empty");return this.source=s,t(s,i,this.option).then((()=>i))})),this}logger(...e){if(0===e.length)throw new Error("message cannot be empty");return this.action=this.action.then((t=>(s.okay(...e),t)),(t=>{throw s.fail(...e),t})),this}}}}},776:(e,t,r)=>{const{createRequire:n}=r(8995),{isAbsolute:i,resolve:s}=r(6760),{fileURLToPath:o}=r(3136),{green:a,red:u}=r(6181),l=n(`${process.cwd()}/`);function c(e){return e.startsWith("file:")?o(e):e}const h=new class{okay(...e){console.log(a("\u2714"),...e)}fail(...e){console.log(u("\u2718"),...e)}};e.exports={logger:h,resolver:function(e,t=process.cwd()){if(e.startsWith("~"))return l.resolve(e.replace(/^~/,""));const r=c(e);if(i(r))return r;const n=c(t);return s(n,r)},Base:class{constructor(){this.action=Promise.resolve()}onDone(e=(e=>e)){return this.action=this.action.then((e=>(this.temp=e,e))).then(e),this}onFail(e=(()=>this.temp)){return this.action=this.action.then((e=>(this.temp=e,e))).catch(e),this}then(e){return this.action.then(e)}catch(e){return this.action.catch(e)}finally(e){return this.action.finally(e)}}}},7256:e=>{e.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"]},"dots13":{"interval":80,"frames":["\u28fc","\u28f9","\u28bb","\u283f","\u285f","\u28cf","\u28e7","\u28f6"]},"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"]},"sand":{"interval":80,"frames":["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28c0","\u28c1","\u28c2","\u28c4","\u28cc","\u28d4","\u28e4","\u28e5","\u28e6","\u28ee","\u28f6","\u28f7","\u28ff","\u287f","\u283f","\u289f","\u281f","\u285b","\u281b","\u282b","\u288b","\u280b","\u280d","\u2849","\u2809","\u2811","\u2821","\u2881"]},"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"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"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"]},"dwarfFortress":{"interval":80,"frames":[" \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a \u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a \xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a \xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\u2593\xa3 "," \u263a\u2593\xa3 "," \u263a\u2592\xa3 "," \u263a\u2592\xa3 "," \u263a\u2591\xa3 "," \u263a\u2591\xa3 "," \u263a \xa3 "," \u263a\xa3 "," \u263a\xa3 "," \u263a\u2593 "," \u263a\u2593 "," \u263a\u2592 "," \u263a\u2592 "," \u263a\u2591 "," \u263a\u2591 "," \u263a "," \u263a &"," \u263a \u263c&"," \u263a \u263c &"," \u263a\u263c &"," \u263a\u263c & "," \u203c & "," \u263a & "," \u203c & "," \u263a & "," \u203c & "," \u263a & ","\u203c & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xa3 "," & \u2591\xa3 "," & \u2592\xa3 "," & \u2593\xa3 "," & \xa3\xa3 "," & \u2591\xa3\xa3 "," & \u2592\xa3\xa3 ","& \u2593\xa3\xa3 ","& \xa3\xa3\xa3 "," \u2591\xa3\xa3\xa3 "," \u2592\xa3\xa3\xa3 "," \u2593\xa3\xa3\xa3 "," \u2588\xa3\xa3\xa3 "," \u2591\u2588\xa3\xa3\xa3 "," \u2592\u2588\xa3\xa3\xa3 "," \u2593\u2588\xa3\xa3\xa3 "," \u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "]}}')},8360:e=>{e.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(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return t[e](s,s.exports,n),s.loaded=!0,s.exports}n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var t=n(9896),r=n(2613);const i={right:function(e,t){e=e.trim();const r=a.stringWidth(e);if(r<t)return" ".repeat(t-r)+e;return e},center:function(e,t){e=e.trim();const r=a.stringWidth(e);if(r>=t)return e;return" ".repeat(t-r>>1)+e}};class s{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let r=0;return t.forEach((e=>{e.length>1&&a.stringWidth(e[0])>r&&(r=Math.min(Math.floor(.5*this.width),a.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,n)=>({text:t.trim(),padding:this.measurePadding(t),width:0===n&&e.length>1?r:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=a.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((r,n)=>{let s="";r.forEach(((r,u)=>{const{width:l}=e[u],c=this.negatePadding(e[u]);let h=r;if(c>a.stringWidth(r)&&(h+=" ".repeat(c-a.stringWidth(r))),e[u].align&&"left"!==e[u].align&&this.wrap){h=(0,i[e[u].align])(h,c),a.stringWidth(h)<c&&(h+=" ".repeat((l||0)-a.stringWidth(h)-1))}const d=e[u].padding||[0,0,0,0];d[3]&&(s+=" ".repeat(d[3])),s+=o(e[u],h,"| "),s+=h,s+=o(e[u],h," |"),d[1]&&(s+=" ".repeat(d[1])),0===n&&t.length>0&&(s=this.renderInline(s,t[t.length-1]))})),t.push({text:s.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const r=e.match(/^ */),n=r?r[0].length:0,i=t.text,s=a.stringWidth(i.trimRight());return t.span?this.wrap?n<s?e:(t.hidden=!0,i.trimRight()+" ".repeat(n-s)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){const t=[],r=this.columnWidths(e);let n;return e.forEach(((e,i)=>{e.width=r[i],n=this.wrap?a.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(n.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),n.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(n.unshift(...new Array(e.padding[0]||0).fill("")),n.push(...new Array(e.padding[2]||0).fill(""))),n.forEach(((e,r)=>{t[r]||t.push([]);const n=t[r];for(let e=0;e<i;e++)void 0===n[e]&&n.push("");n.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||a.stringWidth(e.text)));let t=e.length,r=this.width;const n=e.map((e=>{if(e.width)return t--,r-=e.width,e.width})),i=t?Math.floor(r/t):0;return n.map(((t,r)=>void 0===t?Math.max(i,function(e){const t=e.padding||[],r=1+(t[3]||0)+(t[1]||0);if(e.border)return r+4;return r}(e[r])):t))}}function o(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?r:" ":""}let a;const u=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function l(e){return e.replace(u,"")}function c(e,t){const[r,n]=e.match(u)||["",""];e=l(e);let i="";for(let r=0;r<e.length;r++)0!==r&&r%t==0&&(i+="\n"),i+=e.charAt(r);return r&&n&&(i=`${r}${i}${n}`),i}var h=n(6928);var d,f=n(9023),p=n(7016);function m(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",r=!1;const n=e.match(/^-+/);for(let i=n?n[0].length:0;i<e.length;i++){let n=e.charAt(i);r&&(r=!1,n=n.toUpperCase()),0===i||"-"!==n&&"_"!==n?"-"!==n&&"_"!==n&&(t+=n):r=!0}return t}}function g(e,t){const r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){const s=r.charAt(i),o=e.charAt(i);n+=s!==o&&i>0?`${t}${r.charAt(i)}`:o}return n}function b(e){return null!=e&&("number"==typeof e||(!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)))}let y;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(d||(d={}));function D(e){return void 0!==e?e+1:1}function w(e){return"__proto__"===e?"___proto___":e}var v,E,F;const C=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,S=null!==(E=null===(v=null===process||void 0===process?void 0:process.versions)||void 0===v?void 0:v.node)&&void 0!==E?E:null===(F=null===process||void 0===process?void 0:process.version)||void 0===F?void 0:F.slice(1);if(S){if(Number(S.match(/^([^.]+)/)[1])<C)throw Error(`yargs parser supports a minimum Node.js version of ${C}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}const x=process?process.env:{},O=new class{constructor(e){y=e}parse(e,t){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},t),n=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,r=null,n=null,i=null;const s=[];for(let o=0;o<e.length;o++)r=n,n=e.charAt(o)," "!==n||i?(n===i?i=null:"'"!==n&&'"'!==n||i||(i=n),s[t]||(s[t]=""),s[t]+=n):" "!==r&&t++;return s}(e),i="string"==typeof e,s=function(e){const t=[],r=Object.create(null);let n=!0;Object.keys(e).forEach((function(r){t.push([].concat(e[r],r))}));for(;n;){n=!1;for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){if(t[e].filter((function(e){return-1!==t[r].indexOf(e)})).length){t[e]=t[e].concat(t[r]),t.splice(r,1),n=!0;break}}}return t.forEach((function(e){e=e.filter((function(e,t,r){return r.indexOf(e)===t}));const t=e.pop();void 0!==t&&"string"==typeof t&&(r[t]=e)})),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),u=r.configObjects||[],l=r.envPrefix,c=o["populate--"],h=c?"--":"_",f=Object.create(null),p=Object.create(null),v=r.__||y.format,E={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:[]},F=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,C=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,r=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();r&&(E[r][t]=!0),E.arrays[t]=!0,E.keys.push(t)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(e){E.bools[e]=!0,E.keys.push(e)})),[].concat(r.string||[]).filter(Boolean).forEach((function(e){E.strings[e]=!0,E.keys.push(e)})),[].concat(r.number||[]).filter(Boolean).forEach((function(e){E.numbers[e]=!0,E.keys.push(e)})),[].concat(r.count||[]).filter(Boolean).forEach((function(e){E.counts[e]=!0,E.keys.push(e)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(e){E.normalize[e]=!0,E.keys.push(e)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([e,t])=>{"number"==typeof t&&(E.nargs[e]=t,E.keys.push(e))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([e,t])=>{"function"==typeof t&&(E.coercions[e]=t,E.keys.push(e))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(e){E.configs[e]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(E.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){E.aliases[e]||(E.aliases[e]=[].concat(s[e]||[]),E.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&o["camel-case-expansion"]){const r=m(t);r!==e&&-1===E.aliases[e].indexOf(r)&&(E.aliases[e].push(r),f[r]=!0)}})),E.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&o["camel-case-expansion"]){const r=g(t,"-");r!==e&&-1===E.aliases[e].indexOf(r)&&(E.aliases[e].push(r),f[r]=!0)}})),E.aliases[e].forEach((function(t){E.aliases[t]=[e].concat(E.aliases[e].filter((function(e){return t!==e})))})))}))}))}(r.key,s,r.default,E.arrays),Object.keys(a).forEach((function(e){(E.aliases[e]||[]).forEach((function(t){a[t]=a[e]}))}));let S=null;Object.keys(E.counts).find((e=>U(e,E.arrays)?(S=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!U(e,E.nargs)&&(S=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let x=[];const O=Object.assign(Object.create(null),{_:[]}),_={};for(let e=0;e<n.length;e++){const t=n[e],r=t.replace(/^-{3,}/,"---");let i,s,a,u,l,c;if("--"!==t&&/^-/.test(t)&&G(t))A(t);else{if(r.match(/^---+(=|$)/)){A(t);continue}if(t.match(/^--.+=/)||!o["short-option-groups"]&&t.match(/^-.+=/))u=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&(U(u[1],E.arrays)?e=M(e,u[1],n,u[2]):!1!==U(u[1],E.nargs)?e=T(e,u[1],n,u[2]):k(u[1],u[2],!0));else if(t.match(C)&&o["boolean-negation"])u=t.match(C),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],k(s,!!U(s,E.arrays)&&[!1]));else if(t.match(/^--.+/)||!o["short-option-groups"]&&t.match(/^-[^-]+/))u=t.match(/^--?(.+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],U(s,E.arrays)?e=M(e,s,n):!1!==U(s,E.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||l.match(/^-/)&&!l.match(F)||U(s,E.bools)||U(s,E.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,H(s)):(k(s,l),e++)));else if(t.match(/^-.\..+=/))u=t.match(/^-([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&k(u[1],u[2]);else if(t.match(/^-.\..+/)&&!t.match(F))l=n[e+1],u=t.match(/^-(.\..+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],void 0===l||l.match(/^-/)||U(s,E.bools)||U(s,E.counts)?k(s,H(s)):(k(s,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(F)){a=t.slice(1,-1).split(""),i=!1;for(let r=0;r<a.length;r++){if(l=t.slice(r+2),a[r+1]&&"="===a[r+1]){c=t.slice(r+3),s=a[r],U(s,E.arrays)?e=M(e,s,n,c):!1!==U(s,E.nargs)?e=T(e,s,n,c):k(s,c),i=!0;break}if("-"!==l){if(/[A-Za-z]/.test(a[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===U(l,E.bools)){k(a[r],l),i=!0;break}if(a[r+1]&&a[r+1].match(/\W/)){k(a[r],l),i=!0;break}k(a[r],H(a[r]))}else k(a[r],l)}s=t.slice(-1)[0],i||"-"===s||(U(s,E.arrays)?e=M(e,s,n):!1!==U(s,E.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(F)||U(s,E.bools)||U(s,E.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,H(s)):(k(s,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(F)&&U(t.slice(1),E.bools))s=t.slice(1),k(s,H(s));else{if("--"===t){x=n.slice(e+1);break}if(o["halt-at-non-option"]){x=n.slice(e);break}A(t)}}}function A(e){const t=B("_",e);"string"!=typeof t&&"number"!=typeof t||O._.push(t)}function T(e,t,r,n){let i,s=U(t,E.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return z(n)||(S=Error(v("Argument unexpected for: %s",t))),k(t,H(t)),e;let a=z(n)?0:1;if(o["nargs-eats-options"])r.length-(e+1)+a<s&&(S=Error(v("Not enough arguments following: %s",t))),a=s;else{for(i=e+1;i<r.length&&(!r[i].match(/^-[^0-9]/)||r[i].match(F)||G(r[i]));i++)a++;a<s&&(S=Error(v("Not enough arguments following: %s",t)))}let u=Math.min(a,s);for(!z(n)&&u>0&&(k(t,n),u--),i=e+1;i<u+e+1;i++)k(t,r[i]);return e+u}function M(e,t,r,n){let s=[],u=n||r[e+1];const l=U(t,E.nargs);if(U(t,E.bools)&&!/^(true|false)$/.test(u))s.push(!0);else if(z(u)||z(n)&&/^-/.test(u)&&!F.test(u)&&!G(u)){if(void 0!==a[t]){const e=a[t];s=Array.isArray(e)?e:[e]}}else{z(n)||s.push(j(t,n,!0));for(let n=e+1;n<r.length&&!(!o["greedy-arrays"]&&s.length>0||l&&"number"==typeof l&&s.length>=l)&&(u=r[n],!/^-/.test(u)||F.test(u)||G(u));n++)e=n,s.push(j(t,u,i))}return"number"==typeof l&&(l&&s.length<l||isNaN(l)&&0===s.length)&&(S=Error(v("Not enough arguments following: %s",t))),k(t,s),e}function k(e,t,r=i){if(/-/.test(e)&&o["camel-case-expansion"]){const t=e.split(".").map((function(e){return m(e)})).join(".");I(e,t)}const n=j(e,t,r),s=e.split(".");if(L(O,s,n),E.aliases[e]&&E.aliases[e].forEach((function(e){const t=e.split(".");L(O,t,n)})),s.length>1&&o["dot-notation"]&&(E.aliases[s[0]]||[]).forEach((function(t){let r=t.split(".");const i=[].concat(s);i.shift(),r=r.concat(i),(E.aliases[e]||[]).includes(r.join("."))||L(O,r,n)})),U(e,E.normalize)&&!U(e,E.arrays)){[e].concat(E.aliases[e]||[]).forEach((function(e){Object.defineProperty(_,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?y.normalize(e):e}})}))}}function I(e,t){E.aliases[e]&&E.aliases[e].length||(E.aliases[e]=[t],f[t]=!0),E.aliases[t]&&E.aliases[t].length||I(t,e)}function j(e,t,r){r&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(U(e,E.bools)||U(e,E.counts))&&"string"==typeof t&&(t="true"===t);let n=Array.isArray(t)?t.map((function(t){return B(e,t)})):B(e,t);return U(e,E.counts)&&(z(n)||"boolean"==typeof n)&&(n=D()),U(e,E.normalize)&&U(e,E.arrays)&&(n=Array.isArray(t)?t.map((e=>y.normalize(e))):y.normalize(t)),n}function B(e,t){if(!o["parse-positional-numbers"]&&"_"===e)return t;if(!U(e,E.strings)&&!U(e,E.bools)&&!Array.isArray(t)){(b(t)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!z(t)&&U(e,E.numbers))&&(t=Number(t))}return t}function P(e,t){Object.keys(e).forEach((function(r){const n=e[r],i=t?t+"."+r:r;"object"==typeof n&&null!==n&&!Array.isArray(n)&&o["dot-notation"]?P(n,i):(!N(O,i.split("."))||U(i,E.arrays)&&o["combine-arrays"])&&k(i,n)}))}function R(e,t){if(void 0===l)return;const r="string"==typeof l?l:"",n=y.env();Object.keys(n).forEach((function(i){if(""===r||0===i.lastIndexOf(r,0)){const s=i.split("__").map((function(e,t){return 0===t&&(e=e.substring(r.length)),m(e)}));(t&&E.configs[s.join(".")]||!t)&&!N(e,s)&&k(s.join("."),n[i])}}))}function $(e,t,r,n=!1){Object.keys(r).forEach((function(i){N(e,i.split("."))||(L(e,i.split("."),r[i]),n&&(p[i]=!0),(t[i]||[]).forEach((function(t){N(e,t.split("."))||L(e,t.split("."),r[i])})))}))}function N(e,t){let r=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){r=r[e]||{}}));const n=t[t.length-1];return"object"==typeof r&&n in r}function L(e,t,r){let n=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=w(e),"object"==typeof n&&void 0===n[e]&&(n[e]={}),"object"!=typeof n[e]||Array.isArray(n[e])?(Array.isArray(n[e])?n[e].push({}):n[e]=[n[e],{}],n=n[e][n[e].length-1]):n=n[e]}));const i=w(t[t.length-1]),s=U(t.join("."),E.arrays),a=Array.isArray(r);let u=o["duplicate-arguments-array"];!u&&U(i,E.nargs)&&(u=!0,(!z(n[i])&&1===E.nargs[i]||Array.isArray(n[i])&&n[i].length===E.nargs[i])&&(n[i]=void 0)),r===D()?n[i]=D(n[i]):Array.isArray(n[i])?u&&s&&a?n[i]=o["flatten-duplicate-arrays"]?n[i].concat(r):(Array.isArray(n[i][0])?n[i]:[n[i]]).concat([r]):u||Boolean(s)!==Boolean(a)?n[i]=n[i].concat([r]):n[i]=r:void 0===n[i]&&s?n[i]=a?r:[r]:!u||void 0===n[i]||U(i,E.counts)||U(i,E.bools)?n[i]=r:n[i]=[n[i],r]}function U(e,t){const r=[].concat(E.aliases[e]||[],e),n=Object.keys(t),i=r.find((e=>n.includes(e)));return!!i&&t[i]}function W(e){const t=Object.keys(E);return[].concat(t.map((e=>E[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function G(e){return o["unknown-options-as-args"]&&function(e){if(e=e.replace(/^-{3,}/,"--"),e.match(F))return!1;if(function(e){if(e.match(F)||!e.match(/^-[^-]+/))return!1;let t,r=!0;const n=e.slice(1).split("");for(let i=0;i<n.length;i++){if(t=e.slice(i+2),!W(n[i])){r=!1;break}if(n[i+1]&&"="===n[i+1]||"-"===t||/[A-Za-z]/.test(n[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||n[i+1]&&n[i+1].match(/\W/))break}return r}(e))return!1;return!function(e,...t){return[].concat(...t).some((function(t){const r=e.match(t);return r&&W(r[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,C,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}(e)}function H(e){return U(e,E.bools)||U(e,E.counts)||!(`${e}`in a)?(t=function(e){let t=d.BOOLEAN;return U(e,E.strings)?t=d.STRING:U(e,E.numbers)?t=d.NUMBER:U(e,E.bools)?t=d.BOOLEAN:U(e,E.arrays)&&(t=d.ARRAY),t}(e),{[d.BOOLEAN]:!0,[d.STRING]:"",[d.NUMBER]:void 0,[d.ARRAY]:[]}[t]):a[e];var t}function z(e){return void 0===e}return R(O,!0),R(O,!1),function(e){const t=Object.create(null);$(t,E.aliases,a),Object.keys(E.configs).forEach((function(r){const n=e[r]||t[r];if(n)try{let e=null;const t=y.resolve(y.cwd(),n),i=E.configs[r];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(S=e)}else e=y.require(t);P(e)}catch(t){"PermissionDenied"===t.name?S=t:e[r]&&(S=Error(v("Invalid JSON config file: %s",n)))}}))}(O),void 0!==u&&u.forEach((function(e){P(e)})),$(O,E.aliases,a,!0),function(e){let t;const r=new Set;Object.keys(e).forEach((function(n){if(!r.has(n)&&(t=U(n,E.coercions),"function"==typeof t))try{const i=B(n,t(e[n]));[].concat(E.aliases[n]||[],n).forEach((t=>{r.add(t),e[t]=i}))}catch(e){S=e}}))}(O),o["set-placeholder-key"]&&function(e){E.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(O),Object.keys(E.counts).forEach((function(e){N(O,e.split("."))||k(e,0)})),c&&x.length&&(O[h]=[]),x.forEach((function(e){O[h].push(e)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(O).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete O[e]})),o["strip-aliased"]&&[].concat(...Object.keys(s).map((e=>s[e]))).forEach((e=>{o["camel-case-expansion"]&&e.includes("-")&&delete O[e.split(".").map((e=>m(e))).join(".")],delete O[e]})),{aliases:Object.assign({},E.aliases),argv:Object.assign(_,O),configuration:o,defaulted:Object.assign({},p),error:S,newAliases:Object.assign({},f)}}}({cwd:process.cwd,env:()=>x,format:f.format,normalize:h.normalize,resolve:h.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,t.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),_=function(e,t){return O.parse(e.slice(),t).argv};_.detailed=function(e,t){return O.parse(e.slice(),t)},_.camelCase=m,_.decamelize=g,_.looksLikeNumber=b;const A=_;function T(){return process.versions.electron&&!process.defaultApp?0:1}class M extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,M)}}const k={fs:{readFileSync:t.readFileSync,writeFile:t.writeFile},format:f.format,resolve:h.resolve,exists:e=>{try{return(0,t.statSync)(e).isFile()}catch(e){return!1}}};let I;class j{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let r=function(){};return"function"==typeof e[e.length-1]&&(r=e.pop()),r=r||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:r})):r(),I.format.apply(I.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),r=e.shift(),n=e.shift();let i=function(){};"function"==typeof e[e.length-1]&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let s=1===n?t:r;if(this.cache[this.locale][t]){s=this.cache[this.locale][t][1===n?"one":"other"]}!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const o=[s];return~s.indexOf("%d")&&o.push(n),I.format.apply(I.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let r="";return e.forEach((function(e,n){const i=t[n+1];r+=e,void 0!==i&&(r+="%s")})),this.__.apply(this,[r].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],r=t.directory,n=t.locale,i=t.cb,s=this._resolveLocaleFile(r,n),o=JSON.stringify(this.cache[n],null,2);I.fs.writeFile(s,o,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{I.fs.readFileSync&&(e=JSON.parse(I.fs.readFileSync(t,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+t),"ENOENT"!==r.code)throw r;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let r=I.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~t.lastIndexOf("_")){const n=I.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(n)&&(r=n)}return r}_fileExistsSync(e){return I.exists(e)}}const B=e=>function(e,t){I=t;const r=new j(e);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}}(e,k),P="loading a directory of commands is not supported yet for ESM";let R;try{R=(0,p.fileURLToPath)(import.meta.url)}catch(e){R=process.cwd()}const $=R.substring(0,R.lastIndexOf("node_modules")),N={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:function(e){return function(e,t){return a=t,new s({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:e=>[...e].length,stripAnsi:l,wrap:c})},findUp:function(e,r){let n,i=(0,h.resolve)(".",e);for((0,t.statSync)(i).isDirectory()||(i=(0,h.dirname)(i));;){if(n=r(i,(0,t.readdirSync)(i)),n)return(0,h.resolve)(i,n);if(i=(0,h.dirname)(n=i),n===i)break}},getEnv:e=>process.env[e],inspect:f.inspect,getCallerFile:()=>{throw new M(P)},getProcessArgvBin:function(){return process.argv[T()]},mainFilename:$||process.cwd(),Parser:A,path:{basename:h.basename,dirname:h.dirname,extname:h.extname,relative:h.relative,resolve:h.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:t.readFileSync,require:()=>{throw new M("require is not supported by ESM")},requireDirectory:()=>{throw new M(P)},stringWidth:e=>[...e].length,y18n:B({directory:(0,h.resolve)(R,"../../../locales"),updateFiles:!1})};function L(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function U(e,t){t.assert.strictEqual(typeof e,"string")}function W(e){return Object.keys(e)}function G(e){return!!e&&!!e.then&&"function"==typeof e.then}function H(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,n=t.shift();if(!n)throw new Error(`No command found in: ${e}`);const i={cmd:n.replace(r,""),demanded:[],optional:[]};return t.forEach(((e,n)=>{let s=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&n===t.length-1&&(s=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(r,"").split("|"),variadic:s}):i.demanded.push({cmd:e.replace(r,"").split("|"),variadic:s})})),i}const z=["first","second","third","fourth","fifth","sixth"];function V(e,t,r){try{let n=0;const[i,s,o]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[H(`cmd ${e}`),t,r],a=[].slice.call(s);for(;a.length&&void 0===a[a.length-1];)a.pop();const u=o||a.length;if(u<i.demanded.length)throw new M(`Not enough arguments provided. Expected ${i.demanded.length} but received ${a.length}.`);const l=i.demanded.length+i.optional.length;if(u>l)throw new M(`Too many arguments provided. Expected max ${l} but received ${u}.`);i.demanded.forEach((e=>{const t=q(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&Y(t,e.cmd,n),n+=1})),i.optional.forEach((e=>{if(0===a.length)return;const t=q(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&Y(t,e.cmd,n),n+=1}))}catch(e){console.warn(e.stack)}}function q(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function Y(e,t,r){throw new M(`Invalid ${z[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}class K{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,r=!0,n=!1){if(V("<array|function> [boolean] [boolean] [boolean]",[e,t,r],arguments.length),Array.isArray(e)){for(let n=0;n<e.length;n++){if("function"!=typeof e[n])throw Error("middleware must be a function");const i=e[n];i.applyBeforeValidation=t,i.global=r}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const i=e;i.applyBeforeValidation=t,i.global=r,i.mutates=n,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const n=[...r[t]||[],t];return!e.option||!n.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function J(e,t,r,n){return r.reduce(((e,r)=>{if(r.applyBeforeValidation!==n)return e;if(r.mutates){if(r.applied)return e;r.applied=!0}if(G(e))return e.then((e=>Promise.all([e,r(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const n=r(e,t);return G(n)?n.then((t=>Object.assign(e,t))):Object.assign(e,n)}}),e)}function Z(e,t,r=(e=>{throw e})){try{const r="function"==typeof e?e():e;return G(r)?r.then((e=>t(e))):t(r)}catch(e){return r(e)}}const Q=/(^\*)|(^\$0)/;class X{constructor(e,t,r,n){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=n,this.usage=e,this.globalMiddleware=r,this.validation=t}addDirectory(e,t,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:e=>e;n.visit=(e,t,r)=>{const n=i(e,t,r);if(n){if(this.requireCache.has(t))return n;this.requireCache.add(t),this.addHandler(n)}return n},this.shim.requireDirectory({require:t,filename:r},e,n)}addHandler(e,t,r,n,i,s){let o=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(i);if(n=n||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...o]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(ee(r))return void this.addHandler([e].concat(o),t,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof e){const i=H(e);o=o.map((e=>H(e).cmd));let u=!1;const l=[i.cmd].concat(o).filter((e=>!Q.test(e)||(u=!0,!1)));0===l.length&&u&&l.push("$0"),u&&(i.cmd=l[0],o=l.slice(1),e=e.replace(Q,i.cmd)),o.forEach((e=>{this.aliasMap[e]=i.cmd})),!1!==t&&this.usage.command(e,t,u,o,s),this.handlers[i.cmd]={original:e,description:t,handler:n,builder:r||{},middlewares:a,deprecated:s,demanded:i.demanded,optional:i.optional},u&&(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(e,t,r,n,i,s){const o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),u=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(o.original));const c=this.applyBuilderUpdateUsageAndParse(l,o,t,r.aliases,u,n,i,s);return G(c)?c.then((e=>this.applyMiddlewareAndGetResult(l,o,e.innerArgv,a,i,e.aliases,t))):this.applyMiddlewareAndGetResult(l,o,c.innerArgv,a,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,r,n,i,s,o,a){const u=t.builder;let l=r;if(te(u)){r.getInternalMethods().getUsageInstance().freeze();const c=u(r.getInternalMethods().reset(n),a);if(G(c))return c.then((n=>{var a;return l=(a=n)&&"function"==typeof a.getInternalMethods?n:r,this.parseAndUpdateUsage(e,t,l,i,s,o)}))}else(function(e){return"object"==typeof e})(u)&&(r.getInternalMethods().getUsageInstance().freeze(),l=r.getInternalMethods().reset(n),Object.keys(t.builder).forEach((e=>{l.option(e,u[e])})));return this.parseAndUpdateUsage(e,t,l,i,s,o)}parseAndUpdateUsage(e,t,r,n,i,s){e&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n,t),t.description);const o=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return G(o)?o.then((e=>({aliases:r.parsed.aliases,innerArgv:e}))):{aliases:r.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const r=Q.test(t.original)?t.original.replace(Q,"").trim():t.original,n=e.filter((e=>!Q.test(e)));return n.push(r),`$0 ${n.join(" ")}`}handleValidationAndGetResult(e,t,r,n,i,s,o,a){if(!s.getInternalMethods().getHasOutput()){const t=s.getInternalMethods().runValidation(i,a,s.parsed.error,e);r=Z(r,(e=>(t(e),e)))}if(t.handler&&!s.getInternalMethods().getHasOutput()){s.getInternalMethods().setHasOutput();const n=!!s.getOptions().configuration["populate--"];s.getInternalMethods().postProcess(r,n,!1,!1),r=Z(r=J(r,s,o,!1),(e=>{const r=t.handler(e);return G(r)?r.then((()=>e)):e})),e||s.getInternalMethods().getUsageInstance().cacheHelpMessage(),G(r)&&!s.getInternalMethods().hasParseCallback()&&r.catch((e=>{try{s.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(n.commands.pop(),n.fullCommands.pop()),r}applyMiddlewareAndGetResult(e,t,r,n,i,s,o){let a={};if(i)return r;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,r,n,o));const u=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=J(r,o,u,!0);return G(l)?l.then((r=>this.handleValidationAndGetResult(e,t,r,n,s,o,u,a))):this.handleValidationAndGetResult(e,t,l,n,s,o,u,a)}populatePositionals(e,t,r,n){t._=t._.slice(r.commands.length);const i=e.demanded.slice(0),s=e.optional.slice(0),o={};for(this.validation.positionalCount(i.length,t._.length);i.length;){const e=i.shift();this.populatePositional(e,t,o)}for(;s.length;){const e=s.shift();this.populatePositional(e,t,o)}return t._=r.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),n),o}populatePositional(e,t,r){const n=e.cmd[0];e.variadic?r[n]=t._.splice(0).map(String):t._.length&&(r[n]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},r=H(e);return r.demanded.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n,t.demand[r]=!0})),r.optional.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n})),t}postProcessPositionals(e,t,r,n){const i=Object.assign({},n.getOptions());i.default=Object.assign(r.default,i.default);for(const e of Object.keys(r.alias))i.alias[e]=(i.alias[e]||[]).concat(r.alias[e]);i.array=i.array.concat(r.array),i.config={};const s=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),s.push(`--${e}`),s.push(t)}))})),!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(t);Object.keys(t).forEach((e=>{r.push(...a.aliases[e])})),Object.keys(a.argv).forEach((i=>{r.includes(i)&&(t[i]||(t[i]=a.argv[i]),!this.isInConfigs(n,i)&&!this.isDefaulted(n,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(a.argv,i)&&(Array.isArray(e[i])||Array.isArray(a.argv[i]))?e[i]=[].concat(e[i],a.argv[i]):e[i]=a.argv[i])}))}}isDefaulted(e,t){const{default:r}=e.getOptions();return Object.prototype.hasOwnProperty.call(r,t)||Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:r}=e.getOptions();return r.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||r.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=Q.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(te(t))return t(e,!0);ee(t)||Object.keys(t).forEach((r=>{e.option(r,t[r])}))}moduleName(e){const t=function(e){if("undefined"==typeof require)return null;for(let t,r=0,n=Object.keys(require.cache);r<n.length;r++)if(t=require.cache[n[r]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:r}){for(const n of[e,t,r]){if("string"==typeof n||!1===n)return n;L(n,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();L(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function ee(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function te(e){return"function"==typeof e}function re(e={},t=(()=>!0)){const r={};return W(e).forEach((n=>{t(n,e[n])&&(r[n]=e[n])})),r}function ne(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const r=t;r._handle&&r.isTTY&&"function"==typeof r._handle.setBlocking&&r._handle.setBlocking(e)}))}function ie(e){return"boolean"==typeof e}function se(e,t){const r=t.y18n.__,n={},i=[];n.failFn=function(e){i.push(e)};let s=null,o=null,a=!0;n.showHelpOnFail=function(t=!0,r){const[i,u]="string"==typeof t?[!0,t]:[t,r];return e.getInternalMethods().isGlobalContext()&&(o=u),s=u,a=i,n};let u=!1;n.fail=function(t,r){const l=e.getInternalMethods().getLoggerInstance();if(!i.length){if(e.getExitProcess()&&ne(!0),!u){u=!0,a&&(e.showHelp("error"),l.error()),(t||r)&&l.error(t||r);const n=s||o;n&&((t||r)&&l.error(""),l.error(n))}if(r=r||new M(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,r);throw r}for(let e=i.length-1;e>=0;--e){const s=i[e];if(ie(s)){if(r)throw r;if(t)throw Error(t)}else s(t,r,n)}};let l=[],c=!1;n.usage=(e,t)=>null===e?(c=!0,l=[],n):(c=!1,l.push([e,t||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let h=[];n.example=(e,t)=>{h.push([e,t||""])};let d=[];n.command=function(e,t,r,n,i=!1){r&&(d=d.map((e=>(e[2]=!1,e)))),d.push([e,t||"",r,n,i])},n.getCommands=()=>d;let f={};n.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{n.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{n.describe(t,e[t])})):f[e]=t},n.getDescriptions=()=>f;let p=[];n.epilog=e=>{p.push(e)};let m,g=!1;n.wrap=e=>{g=!0,m=e},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=function(){const e=80;return t.process.stdColumns?Math.min(e,t.process.stdColumns):e}(),g=!0),m);const b="__yargsString__:";function y(e,r,n){let i=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{i=Math.max(t.stringWidth(n?`${n} ${ue(e[0])}`:ue(e[0]))+ae(e[0]),i)})),r&&(i=Math.min(i,parseInt((.5*r).toString(),10))),i}let D;function w(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function v(e,t){let n=`[${r("default:")} `;if(void 0===e&&!t)return null;if(t)n+=t;else switch(typeof e){case"string":n+=`"${e}"`;break;case"object":n+=JSON.stringify(e);break;default:n+=e}return`${n}]`}n.deferY18nLookup=e=>b+e,n.help=function(){if(D)return D;!function(){const t=e.getDemandedOptions(),r=e.getOptions();(Object.keys(r.alias)||[]).forEach((i=>{r.alias[i].forEach((s=>{f[s]&&n.describe(i,f[s]),s in t&&e.demandOption(i,t[s]),r.boolean.includes(s)&&e.boolean(i),r.count.includes(s)&&e.count(i),r.string.includes(s)&&e.string(i),r.normalize.includes(s)&&e.normalize(i),r.array.includes(s)&&e.array(i),r.number.includes(s)&&e.number(i)}))}))}();const i=e.customScriptName?e.$0:t.path.basename(e.$0),s=e.getDemandedOptions(),o=e.getDemandedCommands(),a=e.getDeprecatedOptions(),u=e.getGroups(),m=e.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(w),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const E=n.getWrap(),F=t.cliui({width:E,wrap:!!E});if(!c)if(l.length)l.forEach((e=>{F.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&F.div({text:`${e[1]}`,padding:[1,0,0,0]})})),F.div();else if(d.length){let e=null;e=o._?`${i} <${r("command")}>\n`:`${i} [${r("command")}]\n`,F.div(`${e}`)}if(d.length>1||1===d.length&&!d[0][2]){F.div(r("Commands:"));const t=e.getInternalMethods().getContext(),n=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((e,t)=>e[0].localeCompare(t[0]))));const s=i?`${i} `:"";d.forEach((e=>{const t=`${s}${n}${e[0].replace(/^\$0 ?/,"")}`;F.span({text:t,padding:[0,2,0,2],width:y(d,E,`${i}${n}`)+4},{text:e[1]});const o=[];e[2]&&o.push(`[${r("default")}]`),e[3]&&e[3].length&&o.push(`[${r("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?o.push(`[${r("deprecated: %s",e[4])}]`):o.push(`[${r("deprecated")}]`)),o.length?F.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):F.div()})),F.div()}const C=(Object.keys(m.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&C.every((e=>-1===(m.alias[e]||[]).indexOf(t)))));const S=r("Options:");u[S]||(u[S]=[]),function(e,t,r,n){let i=[],s=null;Object.keys(r).forEach((e=>{i=i.concat(r[e])})),e.forEach((e=>{s=[e].concat(t[e]),s.some((e=>-1!==i.indexOf(e)))||r[n].push(e)}))}(g,m.alias,u,S);const x=e=>/^--/.test(ue(e)),O=Object.keys(u).filter((e=>u[e].length>0)).map((e=>{const t=u[e].filter(w).map((e=>{if(C.includes(e))return e;for(let t,r=0;void 0!==(t=C[r]);r++)if((m.alias[t]||[]).includes(e))return t;return e}));return{groupName:e,normalizedKeys:t}})).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const r=t.reduce(((t,r)=>(t[r]=[r].concat(m.alias[r]||[]).map((t=>e===n.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?m.boolean.includes(r)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>x(e)===x(t)?0:x(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:r}}));if(O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>x(t[e])))))&&O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var r,n;x(t[e])&&(t[e]=(r=t[e],n=4,oe(r)?{text:r.text,indentation:r.indentation+n}:{text:r,indentation:n}))}))})),O.forEach((({groupName:t,normalizedKeys:i,switches:o})=>{F.div(t),i.forEach((t=>{const i=o[t];let u=f[t]||"",l=null;u.includes(b)&&(u=r(u.substring(16))),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,v(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var h;F.span({text:ue(i),padding:[0,2,0,2+ae(i)],width:y(o,E)+4},u);const d=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];c&&!d?F.div({text:c,padding:[0,0,0,2],align:"right"}):F.div()})),F.div()})),h.length&&(F.div(r("Examples:")),h.forEach((e=>{e[0]=e[0].replace(/\$0/g,i)})),h.forEach((e=>{""===e[1]?F.div({text:e[0],padding:[0,2,0,2]}):F.div({text:e[0],padding:[0,2,0,2],width:y(h,E)+4},{text:e[1]})})),F.div()),p.length>0){const e=p.map((e=>e.replace(/\$0/g,i))).join("\n");F.div(`${e}\n`)}return F.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){D=this.help()},n.clearCachedHelpMessage=function(){D=void 0},n.hasCachedHelpMessage=function(){return!!D},n.showHelp=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error");("function"==typeof t?t:r[t])(n.help())},n.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(e,t){let r="";const n=t||", ",i=[].concat(e);return e&&i.length?(i.forEach((e=>{r.length&&(r+=n),r+=JSON.stringify(e)})),r):r};let E=null;n.version=e=>{E=e},n.showVersion=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error");("function"==typeof t?t:r[t])(E)},n.reset=function(e){return s=null,u=!1,l=[],c=!1,p=[],h=[],d=[],f=re(f,(t=>!e[t])),n};const F=[];return n.freeze=function(){F.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:p,examples:h,commands:d,descriptions:f})},n.unfreeze=function(e=!1){const t=F.pop();t&&(e?(f={...t.descriptions,...f},d=[...t.commands,...d],l=[...t.usages,...l],h=[...t.examples,...h],p=[...t.epilogs,...p]):({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:p,examples:h,commands:d,descriptions:f}=t))},n}function oe(e){return"object"==typeof e}function ae(e){return oe(e)?e.indentation:0}function ue(e){return oe(e)?e.text:e}class le{constructor(e,t,r,n){var i,s,o;this.yargs=e,this.usage=t,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(e,t,r,n){const i=this.command.getCommandHandlers();for(let t=0,r=e.length;t<r;++t)if(i[e[t]]&&i[e[t]].builder){const r=i[e[t]].builder;if(te(r)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return r(e,!0),e.argv}}const s=[];this.commandCompletions(s,e,r),this.optionCompletions(s,e,t,r),this.choicesFromOptionsCompletions(s,e,t,r),this.choicesFromPositionalsCompletions(s,e,t,r),n(null,s)}commandCompletions(e,t,r){const n=this.yargs.getInternalMethods().getContext().commands;r.match(/^-/)||n[n.length-1]===r||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((r=>{const n=H(r[0]).cmd;if(-1===t.indexOf(n))if(this.zshShell){const t=r[1]||"";e.push(n.replace(/:/g,"\\:")+":"+t)}else e.push(n)}))}optionCompletions(e,t,r,n){if((n.match(/^-/)||""===n&&0===e.length)&&!this.previousArgHasChoices(t)){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(t,s,o)||this.completeOptionKey(s,e,n,o&&!!r.default[s])}))}}choicesFromOptionsCompletions(e,t,r,n){if(this.previousArgHasChoices(t)){const r=this.getPreviousArgChoices(t);r&&r.length>0&&e.push(...r.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,r,n){if(""===n&&e.length>0&&this.previousArgHasChoices(t))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 t of a)t.startsWith(n)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],r="";if(!t.startsWith("-")&&e.length>1&&(r=t,t=e[e.length-2]),!t.startsWith("-"))return;const n=t.replace(/^-+/,""),i=this.yargs.getOptions(),s=[n,...this.yargs.getAliases()[n]||[]];let o;for(const e of s)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){o=i.choices[e];break}return o?o.filter((e=>!r||e.startsWith(r))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,r){const n=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(n(t))return!0;if(r&&n(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(n(e))return!0;return!1}completeOptionKey(e,t,r,n){var i,s,o,a;let u=e;if(this.zshShell){const t=this.usage.getDescriptions(),r=null===(s=null===(i=null==this?void 0:this.aliases)||void 0===i?void 0:i[e])||void 0===s?void 0:s.find((e=>{const r=t[e];return"string"==typeof r&&r.length>0})),n=r?t[r]:void 0,l=null!==(a=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==a?a:"";u=`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(r)&&(e=>/^[^0-9]$/.test(e))(e)?"-":"--";t.push(l+u),n&&t.push(l+"no-"+u)}customCompletion(e,t,r,n){if(L(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(r,t);return G(e)?e.then((e=>{this.shim.process.nextTick((()=>{n(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{n(e,void 0)}))})):n(null,e)}return function(e){return e.length>3}(this.customCompletionFunction)?this.customCompletionFunction(r,t,((i=n)=>this.defaultCompletion(e,t,r,i)),(e=>{n(null,e)})):this.customCompletionFunction(r,t,(e=>{n(null,e)}))}getCompletion(e,t){const r=e.length?e[e.length-1]:"",n=this.yargs.parse(e,!0),i=this.customCompletionFunction?n=>this.customCompletion(e,n,r,t):n=>this.defaultCompletion(e,n,r,t);return G(n)?n.then(i):i(n)}generateCompletionScript(e,t){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(e);return e.match(/\.js$/)&&(e=`./${e}`),r=r.replace(/{{app_name}}/g,n),r=r.replace(/{{completion_command}}/g,t),r.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function ce(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const r=[];let n,i;for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.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[t.length][e.length]}const he=["$0","--","_"];let de,fe=[];function pe(e,t,r,n){de=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return i;const n=/\.json|\..*rc$/.test(e.extends);let s=null;if(n)s=function(e,t){return de.path.resolve(e,t)}(t,e.extends);else try{s=require.resolve(e.extends)}catch(t){return e}!function(e){if(fe.indexOf(e)>-1)throw new M(`Circular extended configurations: '${e}'.`)}(s),fe.push(s),i=n?JSON.parse(de.readFileSync(s,"utf8")):require(e.extends),delete e.extends,i=pe(i,de.path.dirname(s),r,de)}return fe=[],r?me(i,e):Object.assign({},i,e)}function me(e,t){const r={};function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(r,e);for(const i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=me(e[i],t[i]):r[i]=t[i];return r}var ge,be,ye,De,we,ve,Ee,Fe,Ce,Se,xe,Oe,_e,Ae,Te,Me,ke,Ie,je,Be,Pe,Re,$e,Ne,Le,Ue,We,Ge,He,ze,Ve,qe,Ye,Ke,Je,Ze=function(e,t,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 t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},Qe=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const Xe=Symbol("copyDoubleDash"),et=Symbol("copyDoubleDash"),tt=Symbol("deleteFromParserHintObject"),rt=Symbol("emitWarning"),nt=Symbol("freeze"),it=Symbol("getDollarZero"),st=Symbol("getParserConfiguration"),ot=Symbol("getUsageConfiguration"),at=Symbol("guessLocale"),ut=Symbol("guessVersion"),lt=Symbol("parsePositionalNumbers"),ct=Symbol("pkgUp"),ht=Symbol("populateParserHintArray"),dt=Symbol("populateParserHintSingleValueDictionary"),ft=Symbol("populateParserHintArrayDictionary"),pt=Symbol("populateParserHintDictionary"),mt=Symbol("sanitizeKey"),gt=Symbol("setKey"),bt=Symbol("unfreeze"),yt=Symbol("validateAsync"),Dt=Symbol("getCommandInstance"),wt=Symbol("getContext"),vt=Symbol("getHasOutput"),Et=Symbol("getLoggerInstance"),Ft=Symbol("getParseContext"),Ct=Symbol("getUsageInstance"),St=Symbol("getValidationInstance"),xt=Symbol("hasParseCallback"),Ot=Symbol("isGlobalContext"),_t=Symbol("postProcess"),At=Symbol("rebase"),Tt=Symbol("reset"),Mt=Symbol("runYargsParserAndExecuteCommands"),kt=Symbol("runValidation"),It=Symbol("setHasOutput"),jt=Symbol("kTrackManuallySetKeys");class Bt{constructor(e=[],t,r,n){this.customScriptName=!1,this.parsed=!1,ge.set(this,void 0),be.set(this,void 0),ye.set(this,{commands:[],fullCommands:[]}),De.set(this,null),we.set(this,null),ve.set(this,"show-hidden"),Ee.set(this,null),Fe.set(this,!0),Ce.set(this,{}),Se.set(this,!0),xe.set(this,[]),Oe.set(this,void 0),_e.set(this,{}),Ae.set(this,!1),Te.set(this,null),Me.set(this,!0),ke.set(this,void 0),Ie.set(this,""),je.set(this,void 0),Be.set(this,void 0),Pe.set(this,{}),Re.set(this,null),$e.set(this,null),Ne.set(this,{}),Le.set(this,{}),Ue.set(this,void 0),We.set(this,!1),Ge.set(this,void 0),He.set(this,!1),ze.set(this,!1),Ve.set(this,!1),qe.set(this,void 0),Ye.set(this,{}),Ke.set(this,null),Je.set(this,void 0),Ze(this,Ge,n,"f"),Ze(this,Ue,e,"f"),Ze(this,be,t,"f"),Ze(this,Be,r,"f"),Ze(this,Oe,new K(this),"f"),this.$0=this[it](),this[Tt](),Ze(this,ge,Qe(this,ge,"f"),"f"),Ze(this,qe,Qe(this,qe,"f"),"f"),Ze(this,Je,Qe(this,Je,"f"),"f"),Ze(this,je,Qe(this,je,"f"),"f"),Qe(this,je,"f").showHiddenOpt=Qe(this,ve,"f"),Ze(this,ke,this[et](),"f")}addHelpOpt(e,t){return V("[string|boolean] [string]",[e,t],arguments.length),Qe(this,Te,"f")&&(this[tt](Qe(this,Te,"f")),Ze(this,Te,null,"f")),!1===e&&void 0===t||(Ze(this,Te,"string"==typeof e?e:"help","f"),this.boolean(Qe(this,Te,"f")),this.describe(Qe(this,Te,"f"),t||Qe(this,qe,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(V("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const r="string"==typeof e?e:Qe(this,ve,"f");return this.boolean(r),this.describe(r,t||Qe(this,qe,"f").deferY18nLookup("Show hidden options")),Qe(this,je,"f").showHiddenOpt=r,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return V("<object|string|array> [string|array]",[e,t],arguments.length),this[ft](this.alias.bind(this),"alias",e,t),this}array(e){return V("<array|string>",[e],arguments.length),this[ht]("array",e),this[jt](e),this}boolean(e){return V("<array|string>",[e],arguments.length),this[ht]("boolean",e),this[jt](e),this}check(e,t){return V("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,r)=>Z((()=>e(t,r.getOptions())),(r=>(r?("string"==typeof r||r instanceof Error)&&Qe(this,qe,"f").fail(r.toString(),r):Qe(this,qe,"f").fail(Qe(this,Ge,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(Qe(this,qe,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return V("<object|string|array> [string|array]",[e,t],arguments.length),this[ft](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(V("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new M("coerce callback must be provided");for(const r of e)this.coerce(r,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new M("coerce callback must be provided");return Qe(this,je,"f").key[e]=!0,Qe(this,Oe,"f").addCoerceMiddleware(((r,n)=>{let i;return Object.prototype.hasOwnProperty.call(r,e)?Z((()=>(i=n.getAliases(),t(r[e]))),(t=>{r[e]=t;const s=n.getInternalMethods().getParserConfiguration()["strip-aliased"];if(i[e]&&!0!==s)for(const n of i[e])r[n]=t;return r}),(e=>{throw new M(e.message)})):r}),e),this}conflicts(e,t){return V("<string|object> [string|array]",[e,t],arguments.length),Qe(this,Je,"f").conflicts(e,t),this}config(e="config",t,r){return V("[object|string] [string|function] [function]",[e,t,r],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(r=t,t=void 0),this.describe(e,t||Qe(this,qe,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{Qe(this,je,"f").config[e]=r||!0})),this):(e=pe(e,Qe(this,be,"f"),this[st]()["deep-merge-config"]||!1,Qe(this,Ge,"f")),Qe(this,je,"f").configObjects=(Qe(this,je,"f").configObjects||[]).concat(e),this)}completion(e,t,r){return V("[string] [string|boolean|function] [function]",[e,t,r],arguments.length),"function"==typeof t&&(r=t,t=void 0),Ze(this,we,e||Qe(this,we,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(Qe(this,we,"f"),t),r&&Qe(this,De,"f").registerFunction(r),this}command(e,t,r,n,i,s){return V("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,r,n,i,s],arguments.length),Qe(this,ge,"f").addHandler(e,t,r,n,i,s),this}commands(e,t,r,n,i,s){return this.command(e,t,r,n,i,s)}commandDir(e,t){V("<string> [object]",[e,t],arguments.length);const r=Qe(this,Be,"f")||Qe(this,Ge,"f").require;return Qe(this,ge,"f").addDirectory(e,r,Qe(this,Ge,"f").getCallerFile(),t),this}count(e){return V("<array|string>",[e],arguments.length),this[ht]("count",e),this[jt](e),this}default(e,t,r){return V("<object|string|array> [*] [string]",[e,t,r],arguments.length),r&&(U(e,Qe(this,Ge,"f")),Qe(this,je,"f").defaultDescription[e]=r),"function"==typeof t&&(U(e,Qe(this,Ge,"f")),Qe(this,je,"f").defaultDescription[e]||(Qe(this,je,"f").defaultDescription[e]=Qe(this,qe,"f").functionDescription(t)),t=t.call()),this[dt](this.default.bind(this),"default",e,t),this}defaults(e,t,r){return this.default(e,t,r)}demandCommand(e=1,t,r,n){return V("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,r,n],arguments.length),"number"!=typeof t&&(r=t,t=1/0),this.global("_",!1),Qe(this,je,"f").demandedCommands._={min:e,max:t,minMsg:r,maxMsg:n},this}demand(e,t,r){return Array.isArray(t)?(t.forEach((e=>{L(r,!0,Qe(this,Ge,"f")),this.demandOption(e,r)})),t=1/0):"number"!=typeof t&&(r=t,t=1/0),"number"==typeof e?(L(r,!0,Qe(this,Ge,"f")),this.demandCommand(e,t,r,r)):Array.isArray(e)?e.forEach((e=>{L(r,!0,Qe(this,Ge,"f")),this.demandOption(e,r)})):"string"==typeof r?this.demandOption(e,r):!0!==r&&void 0!==r||this.demandOption(e),this}demandOption(e,t){return V("<object|string|array> [string]",[e,t],arguments.length),this[dt](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return V("<string> [string|boolean]",[e,t],arguments.length),Qe(this,je,"f").deprecatedOptions[e]=t,this}describe(e,t){return V("<object|string|array> [string]",[e,t],arguments.length),this[gt](e,!0),Qe(this,qe,"f").describe(e,t),this}detectLocale(e){return V("<boolean>",[e],arguments.length),Ze(this,Fe,e,"f"),this}env(e){return V("[string|boolean]",[e],arguments.length),!1===e?delete Qe(this,je,"f").envPrefix:Qe(this,je,"f").envPrefix=e||"",this}epilogue(e){return V("<string>",[e],arguments.length),Qe(this,qe,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return V("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):Qe(this,qe,"f").example(e,t),this}exit(e,t){Ze(this,Ae,!0,"f"),Ze(this,Ee,t,"f"),Qe(this,Se,"f")&&Qe(this,Ge,"f").process.exit(e)}exitProcess(e=!0){return V("[boolean]",[e],arguments.length),Ze(this,Se,e,"f"),this}fail(e){if(V("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new M("Invalid first argument. Expected function or boolean 'false'");return Qe(this,qe,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return V("<array> [function]",[e,t],arguments.length),t?Qe(this,De,"f").getCompletion(e,t):new Promise(((t,r)=>{Qe(this,De,"f").getCompletion(e,((e,n)=>{e?r(e):t(n)}))}))}getDemandedOptions(){return V([],0),Qe(this,je,"f").demandedOptions}getDemandedCommands(){return V([],0),Qe(this,je,"f").demandedCommands}getDeprecatedOptions(){return V([],0),Qe(this,je,"f").deprecatedOptions}getDetectLocale(){return Qe(this,Fe,"f")}getExitProcess(){return Qe(this,Se,"f")}getGroups(){return Object.assign({},Qe(this,_e,"f"),Qe(this,Le,"f"))}getHelp(){if(Ze(this,Ae,!0,"f"),!Qe(this,qe,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Mt](Qe(this,Ue,"f"),void 0,void 0,0,!0);if(G(e))return e.then((()=>Qe(this,qe,"f").help()))}const e=Qe(this,ge,"f").runDefaultBuilderOn(this);if(G(e))return e.then((()=>Qe(this,qe,"f").help()))}return Promise.resolve(Qe(this,qe,"f").help())}getOptions(){return Qe(this,je,"f")}getStrict(){return Qe(this,He,"f")}getStrictCommands(){return Qe(this,ze,"f")}getStrictOptions(){return Qe(this,Ve,"f")}global(e,t){return V("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?Qe(this,je,"f").local=Qe(this,je,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{Qe(this,je,"f").local.includes(e)||Qe(this,je,"f").local.push(e)})),this}group(e,t){V("<string|array> <string>",[e,t],arguments.length);const r=Qe(this,Le,"f")[t]||Qe(this,_e,"f")[t];Qe(this,Le,"f")[t]&&delete Qe(this,Le,"f")[t];const n={};return Qe(this,_e,"f")[t]=(r||[]).concat(e).filter((e=>!n[e]&&(n[e]=!0))),this}hide(e){return V("<string>",[e],arguments.length),Qe(this,je,"f").hiddenOptions.push(e),this}implies(e,t){return V("<string|object> [number|string|array]",[e,t],arguments.length),Qe(this,Je,"f").implies(e,t),this}locale(e){return V("[string]",[e],arguments.length),void 0===e?(this[at](),Qe(this,Ge,"f").y18n.getLocale()):(Ze(this,Fe,!1,"f"),Qe(this,Ge,"f").y18n.setLocale(e),this)}middleware(e,t,r){return Qe(this,Oe,"f").addMiddleware(e,!!t,r)}nargs(e,t){return V("<string|object|array> [number]",[e,t],arguments.length),this[dt](this.nargs.bind(this),"narg",e,t),this}normalize(e){return V("<array|string>",[e],arguments.length),this[ht]("normalize",e),this}number(e){return V("<array|string>",[e],arguments.length),this[ht]("number",e),this[jt](e),this}option(e,t){if(V("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[jt](e),!Qe(this,Ke,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[rt](['"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"),Qe(this,je,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const r=t.deprecate||t.deprecated;r&&this.deprecateOption(e,r);const n=t.demand||t.required||t.require;n&&this.demand(e,n),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(Qe(this,je,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const i=t.describe||t.description||t.desc,s=Qe(this,qe,"f").getDescriptions();Object.prototype.hasOwnProperty.call(s,e)&&"string"!=typeof i||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,r){V("[string|array] [function|boolean|object] [function]",[e,t,r],arguments.length),this[nt](),void 0===e&&(e=Qe(this,Ue,"f")),"object"==typeof t&&(Ze(this,$e,t,"f"),t=r),"function"==typeof t&&(Ze(this,Re,t,"f"),t=!1),t||Ze(this,Ue,e,"f"),Qe(this,Re,"f")&&Ze(this,Se,!1,"f");const n=this[Mt](e,!!t),i=this.parsed;return Qe(this,De,"f").setParsed(this.parsed),G(n)?n.then((e=>(Qe(this,Re,"f")&&Qe(this,Re,"f").call(this,Qe(this,Ee,"f"),e,Qe(this,Ie,"f")),e))).catch((e=>{throw Qe(this,Re,"f")&&Qe(this,Re,"f")(e,this.parsed.argv,Qe(this,Ie,"f")),e})).finally((()=>{this[bt](),this.parsed=i})):(Qe(this,Re,"f")&&Qe(this,Re,"f").call(this,Qe(this,Ee,"f"),n,Qe(this,Ie,"f")),this[bt](),this.parsed=i,n)}parseAsync(e,t,r){const n=this.parse(e,t,r);return G(n)?n:Promise.resolve(n)}parseSync(e,t,r){const n=this.parse(e,t,r);if(G(n))throw new M(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(e){return V("<object>",[e],arguments.length),Ze(this,Pe,e,"f"),this}pkgConf(e,t){V("<string> [string]",[e,t],arguments.length);let r=null;const n=this[ct](t||Qe(this,be,"f"));return n[e]&&"object"==typeof n[e]&&(r=pe(n[e],t||Qe(this,be,"f"),this[st]()["deep-merge-config"]||!1,Qe(this,Ge,"f")),Qe(this,je,"f").configObjects=(Qe(this,je,"f").configObjects||[]).concat(r)),this}positional(e,t){V("<string> <object>",[e,t],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=re(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&r.includes(e)));const n=Qe(this,ye,"f").fullCommands[Qe(this,ye,"f").fullCommands.length-1],i=n?Qe(this,ge,"f").cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};return W(i).forEach((r=>{const n=i[r];Array.isArray(n)?-1!==n.indexOf(e)&&(t[r]=!0):n[e]&&!(r in t)&&(t[r]=n[e])})),this.group(e,Qe(this,qe,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return V("[boolean]",[e],arguments.length),Ze(this,We,e,"f"),this}required(e,t,r){return this.demand(e,t,r)}require(e,t,r){return this.demand(e,t,r)}requiresArg(e){return V("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&Qe(this,je,"f").narg[e]||this[dt](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return V("[string] [string]",[e,t],arguments.length),e=e||this.$0,Qe(this,ke,"f").log(Qe(this,De,"f").generateCompletionScript(e,t||Qe(this,we,"f")||"completion")),this}showHelp(e){if(V("[string|function]",[e],arguments.length),Ze(this,Ae,!0,"f"),!Qe(this,qe,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Mt](Qe(this,Ue,"f"),void 0,void 0,0,!0);if(G(t))return t.then((()=>{Qe(this,qe,"f").showHelp(e)})),this}const t=Qe(this,ge,"f").runDefaultBuilderOn(this);if(G(t))return t.then((()=>{Qe(this,qe,"f").showHelp(e)})),this}return Qe(this,qe,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return V("[boolean|string] [string]",[e,t],arguments.length),Qe(this,qe,"f").showHelpOnFail(e,t),this}showVersion(e){return V("[string|function]",[e],arguments.length),Qe(this,qe,"f").showVersion(e),this}skipValidation(e){return V("<array|string>",[e],arguments.length),this[ht]("skipValidation",e),this}strict(e){return V("[boolean]",[e],arguments.length),Ze(this,He,!1!==e,"f"),this}strictCommands(e){return V("[boolean]",[e],arguments.length),Ze(this,ze,!1!==e,"f"),this}strictOptions(e){return V("[boolean]",[e],arguments.length),Ze(this,Ve,!1!==e,"f"),this}string(e){return V("<array|string>",[e],arguments.length),this[ht]("string",e),this[jt](e),this}terminalWidth(){return V([],0),Qe(this,Ge,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return V("<object>",[e],arguments.length),Ze(this,Fe,!1,"f"),Qe(this,Ge,"f").y18n.updateLocale(e),this}usage(e,t,r,n){if(V("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,r,n],arguments.length),void 0!==t){if(L(e,null,Qe(this,Ge,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,r,n);throw new M(".usage() description must start with $0 if being used as alias for .command()")}return Qe(this,qe,"f").usage(e),this}usageConfiguration(e){return V("<object>",[e],arguments.length),Ze(this,Ye,e,"f"),this}version(e,t,r){const n="version";if(V("[boolean|string] [string] [string]",[e,t,r],arguments.length),Qe(this,Ke,"f")&&(this[tt](Qe(this,Ke,"f")),Qe(this,qe,"f").version(void 0),Ze(this,Ke,null,"f")),0===arguments.length)r=this[ut](),e=n;else if(1===arguments.length){if(!1===e)return this;r=e,e=n}else 2===arguments.length&&(r=t,t=void 0);return Ze(this,Ke,"string"==typeof e?e:n,"f"),t=t||Qe(this,qe,"f").deferY18nLookup("Show version number"),Qe(this,qe,"f").version(r||void 0),this.boolean(Qe(this,Ke,"f")),this.describe(Qe(this,Ke,"f"),t),this}wrap(e){return V("<number|null|undefined>",[e],arguments.length),Qe(this,qe,"f").wrap(e),this}[(ge=new WeakMap,be=new WeakMap,ye=new WeakMap,De=new WeakMap,we=new WeakMap,ve=new WeakMap,Ee=new WeakMap,Fe=new WeakMap,Ce=new WeakMap,Se=new WeakMap,xe=new WeakMap,Oe=new WeakMap,_e=new WeakMap,Ae=new WeakMap,Te=new WeakMap,Me=new WeakMap,ke=new WeakMap,Ie=new WeakMap,je=new WeakMap,Be=new WeakMap,Pe=new WeakMap,Re=new WeakMap,$e=new WeakMap,Ne=new WeakMap,Le=new WeakMap,Ue=new WeakMap,We=new WeakMap,Ge=new WeakMap,He=new WeakMap,ze=new WeakMap,Ve=new WeakMap,qe=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Je=new WeakMap,Xe)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[et](){return{log:(...e)=>{this[xt]()||console.log(...e),Ze(this,Ae,!0,"f"),Qe(this,Ie,"f").length&&Ze(this,Ie,Qe(this,Ie,"f")+"\n","f"),Ze(this,Ie,Qe(this,Ie,"f")+e.join(" "),"f")},error:(...e)=>{this[xt]()||console.error(...e),Ze(this,Ae,!0,"f"),Qe(this,Ie,"f").length&&Ze(this,Ie,Qe(this,Ie,"f")+"\n","f"),Ze(this,Ie,Qe(this,Ie,"f")+e.join(" "),"f")}}}[tt](e){W(Qe(this,je,"f")).forEach((t=>{if("configObjects"===t)return;const r=Qe(this,je,"f")[t];Array.isArray(r)?r.includes(e)&&r.splice(r.indexOf(e),1):"object"==typeof r&&delete r[e]})),delete Qe(this,qe,"f").getDescriptions()[e]}[rt](e,t,r){Qe(this,Ce,"f")[r]||(Qe(this,Ge,"f").process.emitWarning(e,t),Qe(this,Ce,"f")[r]=!0)}[nt](){Qe(this,xe,"f").push({options:Qe(this,je,"f"),configObjects:Qe(this,je,"f").configObjects.slice(0),exitProcess:Qe(this,Se,"f"),groups:Qe(this,_e,"f"),strict:Qe(this,He,"f"),strictCommands:Qe(this,ze,"f"),strictOptions:Qe(this,Ve,"f"),completionCommand:Qe(this,we,"f"),output:Qe(this,Ie,"f"),exitError:Qe(this,Ee,"f"),hasOutput:Qe(this,Ae,"f"),parsed:this.parsed,parseFn:Qe(this,Re,"f"),parseContext:Qe(this,$e,"f")}),Qe(this,qe,"f").freeze(),Qe(this,Je,"f").freeze(),Qe(this,ge,"f").freeze(),Qe(this,Oe,"f").freeze()}[it](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(Qe(this,Ge,"f").process.argv()[0])?Qe(this,Ge,"f").process.argv().slice(1,2):Qe(this,Ge,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[At](Qe(this,be,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),Qe(this,Ge,"f").getEnv("_")&&Qe(this,Ge,"f").getProcessArgvBin()===Qe(this,Ge,"f").getEnv("_")&&(t=Qe(this,Ge,"f").getEnv("_").replace(`${Qe(this,Ge,"f").path.dirname(Qe(this,Ge,"f").process.execPath())}/`,"")),t}[st](){return Qe(this,Pe,"f")}[ot](){return Qe(this,Ye,"f")}[at](){if(!Qe(this,Fe,"f"))return;const e=Qe(this,Ge,"f").getEnv("LC_ALL")||Qe(this,Ge,"f").getEnv("LC_MESSAGES")||Qe(this,Ge,"f").getEnv("LANG")||Qe(this,Ge,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[ut](){return this[ct]().version||"unknown"}[lt](e){const t=e["--"]?e["--"]:e._;for(let e,r=0;void 0!==(e=t[r]);r++)Qe(this,Ge,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[r]=Number(e));return e}[ct](e){const t=e||"*";if(Qe(this,Ne,"f")[t])return Qe(this,Ne,"f")[t];let r={};try{let t=e||Qe(this,Ge,"f").mainFilename;!e&&Qe(this,Ge,"f").path.extname(t)&&(t=Qe(this,Ge,"f").path.dirname(t));const n=Qe(this,Ge,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));L(n,void 0,Qe(this,Ge,"f")),r=JSON.parse(Qe(this,Ge,"f").readFileSync(n,"utf8"))}catch(e){}return Qe(this,Ne,"f")[t]=r||{},Qe(this,Ne,"f")[t]}[ht](e,t){(t=[].concat(t)).forEach((t=>{t=this[mt](t),Qe(this,je,"f")[e].push(t)}))}[dt](e,t,r,n){this[pt](e,t,r,n,((e,t,r)=>{Qe(this,je,"f")[e][t]=r}))}[ft](e,t,r,n){this[pt](e,t,r,n,((e,t,r)=>{Qe(this,je,"f")[e][t]=(Qe(this,je,"f")[e][t]||[]).concat(r)}))}[pt](e,t,r,n,i){if(Array.isArray(r))r.forEach((t=>{e(t,n)}));else if((e=>"object"==typeof e)(r))for(const t of W(r))e(t,r[t]);else i(t,this[mt](r),n)}[mt](e){return"__proto__"===e?"___proto___":e}[gt](e,t){return this[dt](this[gt].bind(this),"key",e,t),this}[bt](){var e,t,r,n,i,s,o,a,u,l,c,h;const d=Qe(this,xe,"f").pop();let f;L(d,void 0,Qe(this,Ge,"f")),e=this,t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,l=this,c=this,h=this,({options:{set value(t){Ze(e,je,t,"f")}}.value,configObjects:f,exitProcess:{set value(e){Ze(t,Se,e,"f")}}.value,groups:{set value(e){Ze(r,_e,e,"f")}}.value,output:{set value(e){Ze(n,Ie,e,"f")}}.value,exitError:{set value(e){Ze(i,Ee,e,"f")}}.value,hasOutput:{set value(e){Ze(s,Ae,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){Ze(o,He,e,"f")}}.value,strictCommands:{set value(e){Ze(a,ze,e,"f")}}.value,strictOptions:{set value(e){Ze(u,Ve,e,"f")}}.value,completionCommand:{set value(e){Ze(l,we,e,"f")}}.value,parseFn:{set value(e){Ze(c,Re,e,"f")}}.value,parseContext:{set value(e){Ze(h,$e,e,"f")}}.value}=d),Qe(this,je,"f").configObjects=f,Qe(this,qe,"f").unfreeze(),Qe(this,Je,"f").unfreeze(),Qe(this,ge,"f").unfreeze(),Qe(this,Oe,"f").unfreeze()}[yt](e,t){return Z(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[Dt].bind(this),getContext:this[wt].bind(this),getHasOutput:this[vt].bind(this),getLoggerInstance:this[Et].bind(this),getParseContext:this[Ft].bind(this),getParserConfiguration:this[st].bind(this),getUsageConfiguration:this[ot].bind(this),getUsageInstance:this[Ct].bind(this),getValidationInstance:this[St].bind(this),hasParseCallback:this[xt].bind(this),isGlobalContext:this[Ot].bind(this),postProcess:this[_t].bind(this),reset:this[Tt].bind(this),runValidation:this[kt].bind(this),runYargsParserAndExecuteCommands:this[Mt].bind(this),setHasOutput:this[It].bind(this)}}[Dt](){return Qe(this,ge,"f")}[wt](){return Qe(this,ye,"f")}[vt](){return Qe(this,Ae,"f")}[Et](){return Qe(this,ke,"f")}[Ft](){return Qe(this,$e,"f")||{}}[Ct](){return Qe(this,qe,"f")}[St](){return Qe(this,Je,"f")}[xt](){return!!Qe(this,Re,"f")}[Ot](){return Qe(this,Me,"f")}[_t](e,t,r,n){if(r)return e;if(G(e))return e;t||(e=this[Xe](e));return(this[st]()["parse-positional-numbers"]||void 0===this[st]()["parse-positional-numbers"])&&(e=this[lt](e)),n&&(e=J(e,this,Qe(this,Oe,"f").getMiddleware(),!1)),e}[Tt](e={}){Ze(this,je,Qe(this,je,"f")||{},"f");const t={};t.local=Qe(this,je,"f").local||[],t.configObjects=Qe(this,je,"f").configObjects||[];const r={};t.local.forEach((t=>{r[t]=!0,(e[t]||[]).forEach((e=>{r[e]=!0}))})),Object.assign(Qe(this,Le,"f"),Object.keys(Qe(this,_e,"f")).reduce(((e,t)=>{const n=Qe(this,_e,"f")[t].filter((e=>!(e in r)));return n.length>0&&(e[t]=n),e}),{})),Ze(this,_e,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(Qe(this,je,"f")[e]||[]).filter((e=>!r[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=re(Qe(this,je,"f")[e],(e=>!r[e]))})),t.envPrefix=Qe(this,je,"f").envPrefix,Ze(this,je,t,"f"),Ze(this,qe,Qe(this,qe,"f")?Qe(this,qe,"f").reset(r):se(this,Qe(this,Ge,"f")),"f"),Ze(this,Je,Qe(this,Je,"f")?Qe(this,Je,"f").reset(r):function(e,t,r){const n=r.y18n.__,i=r.y18n.__n,s={nonOptionCount:function(r){const n=e.getDemandedCommands(),s=r._.length+(r["--"]?r["--"].length:0)-e.getInternalMethods().getContext().commands.length;n._&&(s<n._.min||s>n._.max)&&(s<n._.min?void 0!==n._.minMsg?t.fail(n._.minMsg?n._.minMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.min.toString()):null):t.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?t.fail(n._.maxMsg?n._.maxMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.max.toString()):null):t.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(e,r){r<e&&t.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+"",e+""))},requiredArguments:function(e,r){let n=null;for(const t of Object.keys(r))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(n=n||{},n[t]=r[t]);if(n){const e=[];for(const t of Object.keys(n)){const r=n[t];r&&e.indexOf(r)<0&&e.push(r)}const r=e.length?`\n${e.join("\n")}`:"";t.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,u=!0){var l;const c=e.getInternalMethods().getCommandInstance().getCommands(),h=[],d=e.getInternalMethods().getContext();if(Object.keys(r).forEach((t=>{he.includes(t)||Object.prototype.hasOwnProperty.call(o,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||s.isValidAndSomeAliasIsNotNew(t,n)||h.push(t)})),u&&(d.commands.length>0||c.length>0||a)&&r._.slice(d.commands.length).forEach((e=>{c.includes(""+e)||h.push(""+e)})),u){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,n=d.commands.length+t;n<r._.length&&r._.slice(n).forEach((e=>{e=String(e),d.commands.includes(e)||h.includes(e)||h.push(e)}))}h.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",h.length,h.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(r){const n=e.getInternalMethods().getCommandInstance().getCommands(),s=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||n.length>0)&&r._.slice(o.commands.length).forEach((e=>{n.includes(""+e)||s.push(""+e)})),s.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",s.length,s.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,r){if(!Object.prototype.hasOwnProperty.call(r,t))return!1;const n=e.parsed.newAliases;return[t,...r[t]].some((e=>!Object.prototype.hasOwnProperty.call(n,e)||!n[t]))},limitedChoices:function(r){const i=e.getOptions(),s={};if(!Object.keys(i.choices).length)return;Object.keys(r).forEach((e=>{-1===he.indexOf(e)&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(r[e]).forEach((t=>{-1===i.choices[e].indexOf(t)&&void 0!==t&&(s[e]=(s[e]||[]).concat(t))}))}));const o=Object.keys(s);if(!o.length)return;let a=n("Invalid values:");o.forEach((e=>{a+=`\n ${n("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(s[e]),t.stringifiedValues(i.choices[e]))}`})),t.fail(a)}};let o={};function a(e,t){const r=Number(t);return"number"==typeof(t=isNaN(r)?t:r)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}s.implies=function(t,n){V("<string|object> [array|number|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.implies(e,t[e])})):(e.global(t),o[t]||(o[t]=[]),Array.isArray(n)?n.forEach((e=>s.implies(t,e))):(L(n,void 0,r),o[t].push(n)))},s.getImplied=function(){return o},s.implications=function(e){const r=[];if(Object.keys(o).forEach((t=>{const n=t;(o[t]||[]).forEach((t=>{let i=n;const s=t;i=a(e,i),t=a(e,t),i&&!t&&r.push(` ${n} -> ${s}`)}))})),r.length){let e=`${n("Implications failed:")}\n`;r.forEach((t=>{e+=t})),t.fail(e)}};let u={};s.conflicts=function(t,r){V("<string|object> [array|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.conflicts(e,t[e])})):(e.global(t),u[t]||(u[t]=[]),Array.isArray(r)?r.forEach((e=>s.conflicts(t,e))):u[t].push(r))},s.getConflicting=()=>u,s.conflicting=function(i){Object.keys(i).forEach((e=>{u[e]&&u[e].forEach((r=>{r&&void 0!==i[e]&&void 0!==i[r]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,r))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach((e=>{u[e].forEach((s=>{s&&void 0!==i[r.Parser.camelCase(e)]&&void 0!==i[r.Parser.camelCase(s)]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,s))}))}))},s.recommendCommands=function(e,r){r=r.sort(((e,t)=>t.length-e.length));let i=null,s=1/0;for(let t,n=0;void 0!==(t=r[n]);n++){const r=ce(e,t);r<=3&&r<s&&(s=r,i=t)}i&&t.fail(n("Did you mean %s?",i))},s.reset=function(e){return o=re(o,(t=>!e[t])),u=re(u,(t=>!e[t])),s};const l=[];return s.freeze=function(){l.push({implied:o,conflicting:u})},s.unfreeze=function(){const e=l.pop();L(e,void 0,r),({implied:o,conflicting:u}=e)},s}(this,Qe(this,qe,"f"),Qe(this,Ge,"f")),"f"),Ze(this,ge,Qe(this,ge,"f")?Qe(this,ge,"f").reset():function(e,t,r,n){return new X(e,t,r,n)}(Qe(this,qe,"f"),Qe(this,Je,"f"),Qe(this,Oe,"f"),Qe(this,Ge,"f")),"f"),Qe(this,De,"f")||Ze(this,De,function(e,t,r,n){return new le(e,t,r,n)}(this,Qe(this,qe,"f"),Qe(this,ge,"f"),Qe(this,Ge,"f")),"f"),Qe(this,Oe,"f").reset(),Ze(this,we,null,"f"),Ze(this,Ie,"","f"),Ze(this,Ee,null,"f"),Ze(this,Ae,!1,"f"),this.parsed=!1,this}[At](e,t){return Qe(this,Ge,"f").path.relative(e,t)}[Mt](e,t,r,n=0,i=!1){let s=!!r||i;e=e||Qe(this,Ue,"f"),Qe(this,je,"f").__=Qe(this,Ge,"f").y18n.__,Qe(this,je,"f").configuration=this[st]();const o=!!Qe(this,je,"f").configuration["populate--"],a=Object.assign({},Qe(this,je,"f").configuration,{"populate--":!0}),u=Qe(this,Ge,"f").Parser.detailed(e,Object.assign({},Qe(this,je,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),l=Object.assign(u.argv,Qe(this,$e,"f"));let c;const h=u.aliases;let d=!1,f=!1;Object.keys(l).forEach((e=>{e===Qe(this,Te,"f")&&l[e]?d=!0:e===Qe(this,Ke,"f")&&l[e]&&(f=!0)})),l.$0=this.$0,this.parsed=u,0===n&&Qe(this,qe,"f").clearCachedHelpMessage();try{if(this[at](),t)return this[_t](l,o,!!r,!1);if(Qe(this,Te,"f")){[Qe(this,Te,"f")].concat(h[Qe(this,Te,"f")]||[]).filter((e=>e.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),d=!0)}Ze(this,Me,!1,"f");const a=Qe(this,ge,"f").getCommands(),p=Qe(this,De,"f").completionKey in l,m=d||p||i;if(l._.length){if(a.length){let e;for(let t,s=n||0;void 0!==l._[s];s++){if(t=String(l._[s]),a.includes(t)&&t!==Qe(this,we,"f")){const e=Qe(this,ge,"f").runCommand(t,this,u,s+1,i,d||f||i);return this[_t](e,o,!!r,!1)}if(!e&&t!==Qe(this,we,"f")){e=t;break}}!Qe(this,ge,"f").hasDefaultCommand()&&Qe(this,We,"f")&&e&&!m&&Qe(this,Je,"f").recommendCommands(e,a)}Qe(this,we,"f")&&l._.includes(Qe(this,we,"f"))&&!p&&(Qe(this,Se,"f")&&ne(!0),this.showCompletionScript(),this.exit(0))}if(Qe(this,ge,"f").hasDefaultCommand()&&!m){const e=Qe(this,ge,"f").runCommand(null,this,u,0,i,d||f||i);return this[_t](e,o,!!r,!1)}if(p){Qe(this,Se,"f")&&ne(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${Qe(this,De,"f").completionKey}`)+1);return Qe(this,De,"f").getCompletion(t,((e,t)=>{if(e)throw new M(e.message);(t||[]).forEach((e=>{Qe(this,ke,"f").log(e)})),this.exit(0)})),this[_t](l,!o,!!r,!1)}if(Qe(this,Ae,"f")||(d?(Qe(this,Se,"f")&&ne(!0),s=!0,this.showHelp("log"),this.exit(0)):f&&(Qe(this,Se,"f")&&ne(!0),s=!0,Qe(this,qe,"f").showVersion("log"),this.exit(0))),!s&&Qe(this,je,"f").skipValidation.length>0&&(s=Object.keys(l).some((e=>Qe(this,je,"f").skipValidation.indexOf(e)>=0&&!0===l[e]))),!s){if(u.error)throw new M(u.error.message);if(!p){const e=this[kt](h,{},u.error);r||(c=J(l,this,Qe(this,Oe,"f").getMiddleware(),!0)),c=this[yt](e,null!=c?c:l),G(c)&&!r&&(c=c.then((()=>J(l,this,Qe(this,Oe,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof M))throw e;Qe(this,qe,"f").fail(e.message,e)}return this[_t](null!=c?c:l,o,!!r,!0)}[kt](e,t,r,n){const i={...this.getDemandedOptions()};return s=>{if(r)throw new M(r.message);Qe(this,Je,"f").nonOptionCount(s),Qe(this,Je,"f").requiredArguments(s,i);let o=!1;Qe(this,ze,"f")&&(o=Qe(this,Je,"f").unknownCommands(s)),Qe(this,He,"f")&&!o?Qe(this,Je,"f").unknownArguments(s,e,t,!!n):Qe(this,Ve,"f")&&Qe(this,Je,"f").unknownArguments(s,e,{},!1,!1),Qe(this,Je,"f").limitedChoices(s),Qe(this,Je,"f").implications(s),Qe(this,Je,"f").conflicting(s)}}[It](){Ze(this,Ae,!0,"f")}[jt](e){if("string"==typeof e)Qe(this,je,"f").key[e]=!0;else for(const t of e)Qe(this,je,"f").key[t]=!0}}const Pt=(Rt=N,(e=[],t=Rt.process.cwd(),r)=>{const n=new Bt(e,t,r,Rt);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:!0}),n.help(),n.version(),n});var Rt;const $t=Pt;function Nt(e,t){const r=e.startsWith(".")?(0,h.join)(t,e):e;return import(r)}function Lt(e,t){const{homepage:r,site:n=r,repository:i}=t,s=n&&n!==i,o=e.getInternalMethods(),a=(u=o.getCommandInstance().handlers,Object.keys(u).some((e=>e&&"$0"!==e)));var u;return 0===o.getUsageInstance().getUsage().length&&(a?e.usage("Usage: $0 <command>"):e.usage("Usage: $0")),a&&e.demandCommand(1,"Won't work without a command"),s&&e.epilogue(`Website: ${n}`),i&&e.epilogue(`Repository: ${i}`),e}var Ut=n(9523);const Wt=(e=0)=>t=>`\x1b[${t+e}m`,Gt=(e=0)=>t=>`\x1b[${38+e};5;${t}m`,Ht=(e=0)=>(t,r,n)=>`\x1b[${38+e};2;${t};${r};${n}m`,zt={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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(zt.modifier),Object.keys(zt.color),Object.keys(zt.bgColor);const Vt=function(){const e=new Map;for(const[t,r]of Object.entries(zt)){for(const[t,n]of Object.entries(r))zt[t]={open:`\x1b[${n[0]}m`,close:`\x1b[${n[1]}m`},r[t]=zt[t],e.set(n[0],n[1]);Object.defineProperty(zt,t,{value:r,enumerable:!1})}return Object.defineProperty(zt,"codes",{value:e,enumerable:!1}),zt.color.close="\x1b[39m",zt.bgColor.close="\x1b[49m",zt.color.ansi=Wt(),zt.color.ansi256=Gt(),zt.color.ansi16m=Ht(),zt.bgColor.ansi=Wt(10),zt.bgColor.ansi256=Gt(10),zt.bgColor.ansi16m=Ht(10),Object.defineProperties(zt,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map((e=>e+e)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>zt.rgbToAnsi256(...zt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,n;if(e>=232)t=(10*(e-232)+8)/255,r=t,n=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(t,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>zt.ansi256ToAnsi(zt.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>zt.ansi256ToAnsi(zt.hexToAnsi256(e)),enumerable:!1}}),zt}(),qt=Vt,Yt=e(import.meta.url)("node:process"),Kt=e(import.meta.url)("node:os"),Jt=e(import.meta.url)("node:tty");function Zt(e,t=(globalThis.Deno?globalThis.Deno.args:Yt.argv)){const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:Qt}=Yt;let Xt;function er(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in Qt)return"true"===Qt.FORCE_COLOR?1:"false"===Qt.FORCE_COLOR?0:0===Qt.FORCE_COLOR.length?1:Math.min(Number.parseInt(Qt.FORCE_COLOR,10),3)}();void 0!==n&&(Xt=n);const i=r?Xt:n;if(0===i)return 0;if(r){if(Zt("color=16m")||Zt("color=full")||Zt("color=truecolor"))return 3;if(Zt("color=256"))return 2}if("TF_BUILD"in Qt&&"AGENT_NAME"in Qt)return 1;if(e&&!t&&void 0===i)return 0;const s=i||0;if("dumb"===Qt.TERM)return s;if("win32"===Yt.platform){const e=Kt.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Qt)return"GITHUB_ACTIONS"in Qt||"GITEA_ACTIONS"in Qt?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in Qt))||"codeship"===Qt.CI_NAME?1:s;if("TEAMCITY_VERSION"in Qt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Qt.TEAMCITY_VERSION)?1:0;if("truecolor"===Qt.COLORTERM)return 3;if("xterm-kitty"===Qt.TERM)return 3;if("TERM_PROGRAM"in Qt){const e=Number.parseInt((Qt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Qt.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Qt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Qt.TERM)||"COLORTERM"in Qt?1:s}function tr(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(er(e,{streamIsTTY:e&&e.isTTY,...t}))}Zt("no-color")||Zt("no-colors")||Zt("color=false")||Zt("color=never")?Xt=0:(Zt("color")||Zt("colors")||Zt("color=true")||Zt("color=always"))&&(Xt=1);const rr={stdout:tr({isTTY:Jt.isatty(1)}),stderr:tr({isTTY:Jt.isatty(2)})};function nr(e,t,r){let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.slice(s),o}const{stdout:ir,stderr:sr}=rr,or=Symbol("GENERATOR"),ar=Symbol("STYLER"),ur=Symbol("IS_EMPTY"),lr=["ansi","ansi","ansi256","ansi16m"],cr=Object.create(null);const hr=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=ir?ir.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,dr.prototype),t};function dr(e){return hr(e)}Object.setPrototypeOf(dr.prototype,Function.prototype);for(const[e,t]of Object.entries(qt))cr[e]={get(){const r=br(this,gr(t.open,t.close,this[ar]),this[ur]);return Object.defineProperty(this,e,{value:r}),r}};cr.visible={get(){const e=br(this,this[ar],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const fr=(e,t,r,...n)=>"rgb"===e?"ansi16m"===t?qt[r].ansi16m(...n):"ansi256"===t?qt[r].ansi256(qt.rgbToAnsi256(...n)):qt[r].ansi(qt.rgbToAnsi(...n)):"hex"===e?fr("rgb",t,r,...qt.hexToRgb(...n)):qt[r][e](...n),pr=["rgb","hex","ansi256"];for(const e of pr){cr[e]={get(){const{level:t}=this;return function(...r){const n=gr(fr(e,lr[t],"color",...r),qt.color.close,this[ar]);return br(this,n,this[ur])}}};cr["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const n=gr(fr(e,lr[t],"bgColor",...r),qt.bgColor.close,this[ar]);return br(this,n,this[ur])}}}}const mr=Object.defineProperties((()=>{}),{...cr,level:{enumerable:!0,get(){return this[or].level},set(e){this[or].level=e}}}),gr=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},br=(e,t,r)=>{const n=(...e)=>yr(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,mr),n[or]=e,n[ar]=t,n[ur]=r,n},yr=(e,t)=>{if(e.level<=0||!t)return e[ur]?"":t;let r=e[ar];if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(t.includes("\x1b"))for(;void 0!==r;)t=nr(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=function(e,t,r,n){let i=0,s="";do{const o="\r"===e[n-1];s+=e.slice(i,o?n-1:n)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.slice(i),s}(t,i,n,s)),n+t+i};Object.defineProperties(dr.prototype,cr);const Dr=dr(),wr=(dr({level:sr?sr.level:0}),Dr),{cyan:vr,red:Er,green:Fr}=wr,Cr="# 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";function Sr(){return(new Ut.Text).onDone((()=>Cr)).output(".editorconfig").logger("Create/Overwrite",vr(".editorconfig")).catch(console.warn)}var xr=n(7862),Or=n(112);const _r=xr((()=>{Or((()=>{Yt.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let Ar=!1;const Tr={show:(e=Yt.stderr)=>{e.isTTY&&(Ar=!1,e.write("\x1b[?25h"))},hide:(e=Yt.stderr)=>{e.isTTY&&(_r(),Ar=!0,e.write("\x1b[?25l"))},toggle:(e,t)=>{void 0!==e&&(Ar=e),Ar?Tr.show(t):Tr.hide(t)}},Mr=Tr;var kr=n(1473);const Ir={info:wr.blue("\u2139"),success:wr.green("\u2714"),warning:wr.yellow("\u26a0"),error:wr.red("\u2716")},jr={info:wr.blue("i"),success:wr.green("\u221a"),warning:wr.yellow("\u203c"),error:wr.red("\xd7")},Br=("win32"!==Yt.platform?"linux"!==Yt.env.TERM:Boolean(Yt.env.CI)||Boolean(Yt.env.WT_SESSION)||Boolean(Yt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Yt.env.ConEmuTask||"Terminus-Sublime"===Yt.env.TERM_PROGRAM||"vscode"===Yt.env.TERM_PROGRAM||"xterm-256color"===Yt.env.TERM||"alacritty"===Yt.env.TERM||"JetBrains-JediTerm"===Yt.env.TERMINAL_EMULATOR)?Ir:jr;const Pr=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function Rr(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Pr,"")}function $r(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Nr(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function Lr(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Ur(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Wr(e,{ambiguousAsWide:t=!1}={}){return Ur(e),Nr(e)||Lr(e)||t&&$r(e)?2:1}const Gr=new Intl.Segmenter;function Hr(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Rr(e)),0===e.length)return 0;let i=0;const s={ambiguousAsWide:!r};for(const{segment:t}of Gr.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=768&&e<=879||(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g.test(t)?i+=2:i+=Wr(e,s)))}return i}function zr(){return"win32"!==Yt.platform?"linux"!==Yt.env.TERM:Boolean(Yt.env.WT_SESSION)||Boolean(Yt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Yt.env.ConEmuTask||"Terminus-Sublime"===Yt.env.TERM_PROGRAM||"vscode"===Yt.env.TERM_PROGRAM||"xterm-256color"===Yt.env.TERM||"alacritty"===Yt.env.TERM||"JetBrains-JediTerm"===Yt.env.TERMINAL_EMULATOR}const Vr=new class{#e=0;start(){this.#e++,1===this.#e&&this.#t()}stop(){if(this.#e<=0)throw new Error("`stop` called more times than `start`");this.#e--,0===this.#e&&this.#r()}#t(){"win32"!==Yt.platform&&Yt.stdin.isTTY&&(Yt.stdin.setRawMode(!0),Yt.stdin.on("data",this.#n),Yt.stdin.resume())}#r(){Yt.stdin.isTTY&&(Yt.stdin.off("data",this.#n),Yt.stdin.pause(),Yt.stdin.setRawMode(!1))}#n(e){3===e[0]&&Yt.emit("SIGINT")}};class qr{#i=0;#s=!1;#o=0;#a=0;#u;#l;#c;#h;#d;#f;#p;#m;#g;#b;#y;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#u={color:"cyan",stream:Yt.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#u.color,this.spinner=this.#u.spinner,this.#d=this.#u.interval,this.#c=this.#u.stream,this.#f="boolean"==typeof this.#u.isEnabled?this.#u.isEnabled:function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#c}),this.#p="boolean"==typeof this.#u.isSilent&&this.#u.isSilent,this.text=this.#u.text,this.prefixText=this.#u.prefixText,this.suffixText=this.#u.suffixText,this.indent=this.#u.indent,"test"===Yt.env.NODE_ENV&&(this._stream=this.#c,this._isEnabled=this.#f,Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(e){this.#i=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#a}}),Object.defineProperty(this,"_lineCount",{get(){return this.#o}}))}get indent(){return this.#m}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#m=e,this.#D()}get interval(){return this.#d??this.#l.interval??100}get spinner(){return this.#l}set spinner(e){if(this.#a=0,this.#d=void 0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this.#l=e}else if(zr())if(void 0===e)this.#l=kr.dots;else{if("default"===e||!kr[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#l=kr[e]}else this.#l=kr.line}get text(){return this.#g}set text(e=""){this.#g=e,this.#D()}get prefixText(){return this.#b}set prefixText(e=""){this.#b=e,this.#D()}get suffixText(){return this.#y}set suffixText(e=""){this.#y=e,this.#D()}get isSpinning(){return void 0!==this.#h}#w(e=this.#b,t=" "){return"string"==typeof e&&""!==e?e+t:"function"==typeof e?e()+t:""}#v(e=this.#y,t=" "){return"string"==typeof e&&""!==e?t+e:"function"==typeof e?t+e():""}#D(){const e=this.#c.columns??80,t=this.#w(this.#b,"-"),r=this.#v(this.#y,"-"),n=" ".repeat(this.#m)+t+"--"+this.#g+"--"+r;this.#o=0;for(const t of Rr(n).split("\n"))this.#o+=Math.max(1,Math.ceil(Hr(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#f&&!this.#p}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#f=e}get isSilent(){return this.#p}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#p=e}frame(){const{frames:e}=this.#l;let t=e[this.#a];this.color&&(t=wr[this.color](t)),this.#a=++this.#a%e.length;return("string"==typeof this.#b&&""!==this.#b?this.#b+" ":"")+t+("string"==typeof this.text?" "+this.text:"")+("string"==typeof this.#y&&""!==this.#y?" "+this.#y:"")}clear(){if(!this.#f||!this.#c.isTTY)return this;this.#c.cursorTo(0);for(let e=0;e<this.#i;e++)e>0&&this.#c.moveCursor(0,-1),this.#c.clearLine(1);return(this.#m||this.lastIndent!==this.#m)&&this.#c.cursorTo(this.#m),this.lastIndent=this.#m,this.#i=0,this}render(){return this.#p||(this.clear(),this.#c.write(this.frame()),this.#i=this.#o),this}start(e){return e&&(this.text=e),this.#p?this:this.#f?(this.isSpinning||(this.#u.hideCursor&&Mr.hide(this.#c),this.#u.discardStdin&&Yt.stdin.isTTY&&(this.#s=!0,Vr.start()),this.render(),this.#h=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#c.write(`- ${this.text}\n`),this)}stop(){return this.#f?(clearInterval(this.#h),this.#h=void 0,this.#a=0,this.clear(),this.#u.hideCursor&&Mr.show(this.#c),this.#u.discardStdin&&Yt.stdin.isTTY&&this.#s&&(Vr.stop(),this.#s=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Br.success,text:e})}fail(e){return this.stopAndPersist({symbol:Br.error,text:e})}warn(e){return this.stopAndPersist({symbol:Br.warning,text:e})}info(e){return this.stopAndPersist({symbol:Br.info,text:e})}stopAndPersist(e={}){if(this.#p)return this;const t=e.prefixText??this.#b,r=this.#w(t," "),n=e.symbol??" ",i=e.text??this.text,s="string"==typeof i?" "+i:"",o=e.suffixText??this.#y,a=r+n+s+this.#v(o," ")+"\n";return this.stop(),this.#c.write(a),this}}function Yr(e){return new qr(e)}const Kr=e(import.meta.url)("node:child_process"),Jr=e(import.meta.url)("node:fs");var Zr=n(6760),Qr=n(1364),Xr=n(3396);function en(e){return Qr(e).timeout(5e3).send().then((e=>301===e.statusCode?en(e.headers.location):e.text())).then((e=>{const t=e.trim();if(t)return t;throw new Error("template download fail")}))}function tn(e){return e?e.trim():void 0}async function rn(e){if(e)return e;const t=function(){try{return{name:(0,Kr.execSync)("git config user.name").toString().trim(),email:(0,Kr.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return t.name?Xr(t):"Unknown"}function nn(){try{return JSON.parse((0,Jr.readFileSync)((0,Zr.join)(process.cwd(),"package.json")))}catch{return{}}}const sn="# Created by nice-move\n\n* text=auto eol=lf\n",on={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function an(){await(new Ut.Text).onDone((()=>sn)).output(".gitattributes").logger("Create/Overwrite",vr(".gitattributes"));const e=Yr({text:"Downloading template from `gitignore.io`"}).start(),t=`Create/Overwrite ${vr(".gitignore")}`;return(new Ut.Text).source(".gitignore").onFail().onDone(((e="")=>en(`https://gitignore.io/api/ssh,certificates,node,${on[(0,Kt.type)()]}`).then((e=>`${e.replaceAll(/(www\.)?toptal\.com\/developers\/gitignore/g,"gitignore.io").trim()}\n`)).catch((()=>e||"node_modules\n")))).output().then((()=>{e.stopAndPersist({symbol:Fr("\u221a"),text:t})})).catch((r=>{e.stopAndPersist({symbol:Er("\xd7"),text:`${t} - ${r.message}`})}))}const un='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',ln='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';async function cn(){const{license:e,author:t=""}=nn(),r="MIT"===e;if(r||"Unlicense"===e){const e=await async function(e){return(await rn(e)).name||"Unknown"}(t);return(new Ut.Text).onDone((()=>r?un.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",e):ln)).output("LICENSE").logger("Create/Overwrite",vr("LICENSE")).catch(console.warn)}}var hn=n(4579),dn=n(323);const fn=e(import.meta.url)("node:util"),pn=(0,fn.promisify)(Kr.execFile);const mn={spawn:!0},gn="en-US";async function bn(e,t){return(await async function(e,t){const r=await pn(e,t,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(e,t)).stdout}function yn(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function Dn(e){const t={};for(const r of e.split("\n")){const[e,n]=r.split("=");t[e]=n.replace(/^"|"$/g,"")}return yn(t)}function wn(e){return e&&e.replace(/[.:].*/,"")}async function vn(){return bn("locale",["-a"])}function En(e,t=""){return t.includes(e)?e:gn}function Fn(e){return e.replace(/_/,"-")}const Cn=new Map;async function Sn(e=mn){if(Cn.has(e.spawn))return Cn.get(e.spawn);let t;try{const r=yn();t=r||!1===e.spawn?wn(r):"win32"===process.platform?await async function(){const e=await bn("wmic",["os","get","locale"]),t=Number.parseInt(e.replace("Locale",""),16);return dn.from(t)}():"darwin"===process.platform?await async function(){const e=await Promise.all([bn("defaults",["read","-globalDomain","AppleLocale"]),vn()]);return En(e[0],e[1])}():await async function(){return wn(Dn(await bn("locale")))}()}catch{}const r=Fn(t||gn);return Cn.set(e.spawn,r),r}const xn={"@bring-it/npm":"^0.5.4","@cospaia/prettier-plugin-clojure":"^0.0.2",ava:"^6.1.3","best-shot":"^0.5.7",eslint:"^8.57.0","eslint-plugin-ava":"^14.0.0",garou:"^0.7.5",postcss:"^8.4.38",prettier:"^3.3.1","prettier-plugin-tailwindcss":"^0.6.1",sass:"^1.77.4",stylelint:"^16.6.1",syncpack:"^12.3.2",typescript:"~5.4.5","@bring-it/sftp":"^0.3.1","@playwright/test":"^1.44.0","@types/react":"~18.2.79",react:"~18.2.0","react-dom":"~18.2.0",tailwindcss:"^3.4.3",vue:"^3.4.27","eslint-config-base":"^0.11.9","stylelint-config":"^0.10.6","prettier-config":"^0.12.4","syncpack-config":"^0.1.3",tsconfig:"^0.2.3",cli:"^0.11.13",lts:"^18.12.0 || ^20.0.0"},On="package.json";function _n(e){return(new Ut.Json).config({pretty:!0}).source(On).onFail().onDone(((t={})=>hn.all([{engines:{node:xn.lts},publishConfig:e.private||t.private?void 0:{access:"public",registry:"https://registry.npmjs.org/"}},t,e]))).onDone((e=>(!0===e.private&&async function(){"zh-CN"===await Sn()&&(new Ut.Text).source(".npmrc").onFail().onDone(((e="")=>e.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(e)?e:`registry = https://mirrors.tencent.com/npm/\r${e}`)).output().logger("Set registry to China mirror in",vr(".npmrc")).catch(console.warn)}(),e))).output().logger("Add project info to",vr(On)).catch(console.warn)}async function An(){const{name:e,description:t}=nn();(new Ut.Text).source("README.md").onFail().onDone((r=>r||[`# ${e}`,t?`${t}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",vr("README.md")).catch(console.warn)}function Tn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var Mn=n(3136);const kn=(e,t)=>{const r=In(e);if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},In=e=>e instanceof URL?(0,Mn.fileURLToPath)(e):e,jn=(e,t=[],r={})=>{const n=kn(e,"First argument"),[i,s]=Tn(t)?[[],t]:[t,r];if(!Array.isArray(i))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some((e=>"object"==typeof e&&null!==e)))throw new TypeError(`Second argument must be an array of strings: ${i}`);const o=i.map(String),a=o.find((e=>e.includes("\0")));if(void 0!==a)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!Tn(s))throw new TypeError(`Last argument must be an options object: ${s}`);return[n,o,s]},Bn=e(import.meta.url)("node:string_decoder"),{toString:Pn}=Object.prototype,Rn=e=>"[object Uint8Array]"===Pn.call(e),$n=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Nn=new TextEncoder,Ln=e=>Nn.encode(e),Un=new TextDecoder,Wn=e=>Un.decode(e),Gn=(e,t)=>{if("utf8"===t&&e.every((e=>"string"==typeof e)))return e;const r=new Bn.StringDecoder(t),n=e.map((e=>"string"==typeof e?Ln(e):e)).map((e=>r.write(e))),i=r.end();return""===i?n:[...n,i]},Hn=e=>1===e.length&&Rn(e[0])?e[0]:Vn(zn(e)),zn=e=>e.map((e=>"string"==typeof e?Ln(e):e)),Vn=e=>{const t=new Uint8Array(qn(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},qn=e=>{let t=0;for(const r of e)t+=r.length;return t},Yn=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{if(void 0===i)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);const{nextTokens:s,leadingWhitespaces:o,trailingWhitespaces:a}=Kn(i,e.raw[n]),u=Qn(r,s,o);if(n===t.length)return u;const l=t[n],c=Array.isArray(l)?l.map((e=>Xn(e))):[Xn(l)];return Qn(u,c,a)},Kn=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const i=Jn.has(t[0]);for(let i=0,s=0;i<e.length;i+=1,s+=1){const o=t[s];if(Jn.has(o))n!==i&&r.push(e.slice(n,i)),n=i+1;else if("\\"===o){const e=t[s+1];"u"===e&&"{"===t[s+2]?s=t.indexOf("}",s+3):s+=Zn[e]??1}}const s=n===e.length;return s||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:i,trailingWhitespaces:s}},Jn=new Set([" ","\t","\r","\n"]),Zn={x:3,u:5},Qn=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Xn=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(Tn(e)&&("stdout"in e||"isMaxBuffer"in e))return ei(e);if(e instanceof Kr.ChildProcess||"[object Promise]"===Object.prototype.toString.call(e))throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw new TypeError(`Unexpected "${t}" in template expression`)},ei=({stdout:e})=>{if("string"==typeof e)return e;if(Rn(e))return Wn(e);if(void 0===e)throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');throw new TypeError(`Unexpected "${typeof e}" stdout in template expression`)},ti=Jt.WriteStream.prototype.hasColors(),ri=(e,t)=>{if(!ti)return e=>e;const r=`\x1b[${e}m`,n=`\x1b[${t}m`;return e=>{const t=e+"";let i=t.indexOf(n);if(-1===i)return r+t+n;let s=r,o=0;for(;-1!==i;)s+=t.slice(o,i)+r,o=i+n.length,i=t.indexOf(n,o);return s+=t.slice(o)+n,s}},ni=(ri(0,0),ri(1,22)),ii=(ri(2,22),ri(3,23),ri(4,24),ri(53,55),ri(7,27),ri(8,28),ri(9,29),ri(30,39),ri(31,39),ri(32,39),ri(33,39),ri(34,39),ri(35,39),ri(36,39),ri(37,39),ri(90,39)),si=(ri(40,49),ri(41,49),ri(42,49),ri(43,49),ri(44,49),ri(45,49),ri(46,49),ri(47,49),ri(100,49),ri(91,39)),oi=(ri(92,39),ri(93,39)),ai=(ri(94,39),ri(95,39),ri(96,39),ri(97,39),ri(101,49),ri(102,49),ri(103,49),ri(104,49),ri(105,49),ri(106,49),ri(107,49),(0,fn.debuglog)("execa").enabled?"full":"none");let ui=0n;const li=e=>e.some((e=>"none"!==e)),ci=e=>{for(const t of e){if(!1===t)throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".');if(!0===t)throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".');if(!hi.has(t)){const e=[...hi].map((e=>`'${e}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e}.`)}}},hi=new Set(["none","short","full"]),di={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258c",squareRight:"\u2590",squareCenter:"\u25a0",bullet:"\u25cf",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203a",triangleUp:"\u25b2",triangleUpSmall:"\u25b4",triangleDown:"\u25bc",triangleDownSmall:"\u25be",triangleLeftSmall:"\u25c2",triangleRightSmall:"\u25b8",home:"\u2302",heart:"\u2665",musicNote:"\u266a",musicNoteBeamed:"\u266b",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221e",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xbd",oneThird:"\u2153",oneQuarter:"\xbc",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215b",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xbe",threeFifths:"\u2157",threeEighths:"\u215c",fourFifths:"\u2158",fiveSixths:"\u215a",fiveEighths:"\u215d",sevenEighths:"\u215e",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254c",lineDashed5:"\u254d",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257a",lineDashed10:"\u257c",lineDashed11:"\u257e",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250a",lineVerticalDashed3:"\u250b",lineVerticalDashed4:"\u254e",lineVerticalDashed5:"\u254f",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257b",lineVerticalDashed10:"\u257d",lineVerticalDashed11:"\u257f",lineDownLeft:"\u2510",lineDownLeftArc:"\u256e",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250c",lineDownRightArc:"\u256d",lineDownBoldRightBold:"\u250f",lineDownBoldRight:"\u250e",lineDownRightBold:"\u250d",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256f",lineUpBoldLeftBold:"\u251b",lineUpBoldLeft:"\u251a",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255d",lineUpDoubleLeft:"\u255c",lineUpLeftDouble:"\u255b",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255a",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252b",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252a",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251c",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251d",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251f",lineUpBoldDownRight:"\u251e",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255f",lineUpDownRightDouble:"\u255e",lineDownLeftRight:"\u252c",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252f",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252e",lineDownLeftBoldRight:"\u252d",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253b",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253a",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253c",lineUpBoldDownBoldLeftBoldRightBold:"\u254b",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254a",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253d",lineUpDownLeftRightBold:"\u253e",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253f",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256c",lineUpDoubleDownDoubleLeftRight:"\u256b",lineUpDownLeftDoubleRightDouble:"\u256a",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},fi={tick:"\u2714",info:"\u2139",warning:"\u26a0",cross:"\u2718",squareSmall:"\u25fb",squareSmallFilled:"\u25fc",circle:"\u25ef",circleFilled:"\u25c9",circleDotted:"\u25cc",circleDouble:"\u25ce",circleCircle:"\u24de",circleCross:"\u24e7",circlePipe:"\u24be",radioOn:"\u25c9",radioOff:"\u25ef",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24e7",checkboxCircleOff:"\u24be",pointer:"\u276f",triangleUpOutline:"\u25b3",triangleLeft:"\u25c0",triangleRight:"\u25b6",lozenge:"\u25c6",lozengeOutline:"\u25c7",hamburger:"\u2630",smiley:"\u32e1",mustache:"\u0df4",star:"\u2605",play:"\u25b6",nodejs:"\u2b22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},pi={...di,...fi},mi={...di,tick:"\u221a",info:"i",warning:"\u203c",cross:"\xd7",squareSmall:"\u25a1",squareSmallFilled:"\u25a0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25cb)",circleCross:"(\xd7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25c4",triangleRight:"\u25ba",lozenge:"\u2666",lozengeOutline:"\u25ca",hamburger:"\u2261",smiley:"\u263a",mustache:"\u250c\u2500\u2510",star:"\u2736",play:"\u25ba",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},gi=zr(),bi=gi?pi:mi,yi=(Object.entries(fi),e=>(0,fn.stripVTControlCharacters)(e).split("\n").map((e=>Di(e))).join("\n")),Di=e=>e.replaceAll(vi,(e=>wi(e))),wi=e=>{const t=Ei[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=Fi?`\\u${n.padStart(4,"0")}`:`\\U${n}`},vi=/\p{Separator}|\p{Other}/gu,Ei={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Fi=65535,Ci=e=>Si.test(e)?e:"win32"===Yt.platform?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,Si=/^[\w./-]+$/,xi=(e,t,r,n)=>{const i=_i(e,t,r,n);(0,Jr.writeFileSync)(Oi,`${i}\n`)},Oi=2,_i=(e,t,r,n)=>e.includes("\n")?e.split("\n").map((e=>Ai(e,t,r,n))).join("\n"):Ai(e,t,r,n),Ai=(e,t,r,n=Ti)=>[ii(`[${Mi()}]`),ii(`[${t}]`),n(Ii[r]),n(e)].join(" "),Ti=e=>e,Mi=()=>{const e=new Date;return`${ki(e.getHours(),2)}:${ki(e.getMinutes(),2)}:${ki(e.getSeconds(),2)}.${ki(e.getMilliseconds(),3)}`},ki=(e,t)=>String(e).padStart(t,"0"),Ii={command:"$",pipedCommand:"|",output:" ",ipc:"*",error:bi.cross,warning:bi.warning,success:bi.tick},ji=e=>{const t="string"==typeof e?e:(0,fn.inspect)(e);return yi(t).replaceAll("\t"," ".repeat(Bi))},Bi=2,Pi=()=>Yt.hrtime.bigint(),Ri=e=>Number(Yt.hrtime.bigint()-e)/1e6,$i=e=>Ni.includes(e),Ni=[Yt.stdin,Yt.stdout,Yt.stderr],Li=["stdin","stdout","stderr"],Ui=e=>Li[e]??`stdio[${e}]`,Wi=(e,t)=>{const r=Array.from({length:Gi(e)+1}),n=Hi(e[t],r,t);return Zi(n,t)},Gi=({stdio:e})=>Array.isArray(e)?Math.max(e.length,Li.length):Li.length,Hi=(e,t,r)=>Tn(e)?zi(e,t,r):t.fill(e),zi=(e,t,r)=>{for(const n of Object.keys(e).sort(Vi))for(const i of Yi(n,r,t))t[i]=e[n];return t},Vi=(e,t)=>qi(e)<qi(t)?1:-1,qi=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,Yi=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=Ki(e);if(void 0===n||0===n)throw new TypeError(`"${t}.${e}" is invalid.\nIt must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(n>=r.length)throw new TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);return"all"===n?[1,2]:[n]},Ki=e=>{if("all"===e)return e;if(Li.includes(e))return Li.indexOf(e);const t=Ji.exec(e);return null!==t?Number(t[1]):void 0},Ji=/^fd(\d+)$/,Zi=(e,t)=>e.map((e=>void 0===e?Qi[t]:e)),Qi={lines:!1,buffer:!0,maxBuffer:1e8,verbose:ai,stripFinalNewline:!0},Xi=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],es=(e,t,r)=>{const n=Pi(),{command:i,escapedCommand:s}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map((e=>Ci(Di(e)))).join(" ")}})(e,t),o=(e=>{const t=li(e)?ui++:void 0;return ci(e),{verbose:e,verboseId:t}})(Wi(r,"verbose"));return((e,{verbose:t,verboseId:r},{piped:n=!1})=>{if(!li(t))return;xi(e,r,n?"pipedCommand":"command",ni)})(s,o,r),{command:i,escapedCommand:s,startTime:n,verboseInfo:o}};var ts=n(526);function rs(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}const ns=(e,t)=>{let r;for(;r!==t;)e.push(Zr.join(t,"node_modules/.bin")),r=t,t=Zr.resolve(t,"..")},is=(e,t,r)=>{const n=t instanceof URL?(0,Mn.fileURLToPath)(t):t;e.push(Zr.resolve(r,n,".."))},ss=({env:e=Yt.env,...t}={})=>{const r=rs({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=Yt.cwd(),path:t=Yt.env[rs()],preferLocal:r=!0,execPath:n=Yt.execPath,addExecPath:i=!0}={})=>{const s=e instanceof URL?(0,Mn.fileURLToPath)(e):e,o=Zr.resolve(s),a=[];return r&&ns(a,o),i&&is(a,n,o),[...a,t].join(Zr.delimiter)})(t),e},os=e(import.meta.url)("node:timers/promises");class as extends Error{}const us=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,ls,{value:!0,writable:!1,enumerable:!1,configurable:!1})},ls=Symbol("isExecaError"),cs=e=>"[object Error]"===Object.prototype.toString.call(e);class hs extends Error{}us(hs,hs.name);class ds extends Error{}us(ds,ds.name);const fs=(e,t)=>({name:`SIGRT${t+1}`,number:ps+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ps=34,ms=64,gs=[{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"}],bs=()=>{const e=(()=>{const e=ms-ps+1;return Array.from({length:e},fs)})();return[...gs,...e].map(ys)},ys=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{const{signals:{[e]:o}}=Kt.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}},Ds=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o}],ws=(()=>{const e=bs();return Object.fromEntries(e.map(Ds))})(),vs=(e,t)=>{const r=Es(e,t);if(void 0===r)return{};const{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:a,standard:u}}},Es=(e,t)=>{const r=t.find((({name:t})=>Kt.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},Fs=((()=>{const e=bs(),t=ms+1,r=Array.from({length:t},((t,r)=>vs(r,e)));Object.assign({},...r)})(),e=>0===e?e:Cs(e,"`subprocess.kill()`'s argument")),Cs=(e,t)=>{if(Number.isInteger(e))return Ss(e,t);if("string"==typeof e)return Os(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${_s()}`)},Ss=(e,t)=>{if(xs.has(e))return xs.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${_s()}`)},xs=new Map(Object.entries(Kt.constants.signals).reverse().map((([e,t])=>[t,e]))),Os=(e,t)=>{if(e in Kt.constants.signals)return e;if(e.toUpperCase()in Kt.constants.signals)throw new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`);throw new TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${_s()}`)},_s=()=>`Available signal names: ${As()}.\nAvailable signal numbers: ${Ts()}.`,As=()=>Object.keys(Kt.constants.signals).sort().map((e=>`'${e}'`)).join(", "),Ts=()=>[...new Set(Object.values(Kt.constants.signals).sort(((e,t)=>e-t)))].join(", "),Ms=e=>ws[e].description,ks=5e3,Is=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:i,controller:s},o,a)=>{const{signal:u,error:l}=js(o,a,r);Bs(l,n);const c=e(u);return Ps({kill:e,signal:u,forceKillAfterDelay:t,killSignal:r,killResult:c,context:i,controller:s}),c},js=(e,t,r)=>{const[n=r,i]=cs(e)?[void 0,e]:[e,t];if("string"!=typeof n&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(void 0!==i&&!cs(i))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${i}`);return{signal:Fs(n),error:i}},Bs=(e,t)=>{void 0!==e&&t.reject(e)},Ps=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:i,context:s,controller:o})=>{t===n&&i&&Rs({kill:e,forceKillAfterDelay:r,context:s,controllerSignal:o.signal})},Rs=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await(0,os.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},$s=e(import.meta.url)("node:events"),Ns=async(e,t)=>{e.aborted||await(0,$s.once)(e,"abort",{signal:t})},Ls=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:i})=>void 0===t||r?[]:[Us(e,t,n,i)],Us=async(e,t,r,{signal:n})=>{throw await Ns(t,n),r.terminationReason??="cancel",e.kill(),t.reason},Ws=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{Gs(e,t,r),Hs(e,t,n)},Gs=(e,t,r)=>{if(!r)throw new Error(`${Ks(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Hs=(e,t,r)=>{if(!r)throw new Error(`${Ks(e,t)} cannot be used: the ${Zs(t)} has already exited or disconnected.`)},zs=(e,t)=>new Error(`${Ks("sendMessage",t)} failed when sending an acknowledgment response to the ${Zs(t)}.`,{cause:e}),Vs=({code:e,message:t})=>qs.has(e)||Ys.some((e=>t.includes(e))),qs=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Ys=["could not be cloned","circular structure","call stack size exceeded"],Ks=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${Js(t)}${e}(${r})`,Js=e=>e?"":"subprocess.",Zs=e=>e?"parent process":"subprocess",Qs=e=>{e.connected&&e.disconnect()},Xs=()=>{const e={},t=new Promise(((t,r)=>{Object.assign(e,{resolve:t,reject:r})}));return Object.assign(t,e)},eo=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:i}=ro.get(e),s=no(i,t,r),o=e.stdio[s];if(null===o)throw new TypeError(oo(s,t,n,r));return o},to=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:i}=ro.get(e),s=no(i,t,r),o="all"===s?e.all:e.stdio[s];if(null==o)throw new TypeError(oo(s,t,n,r));return o},ro=new WeakMap,no=(e,t,r)=>{const n=io(t,r);return so(n,t,r,e),n},io=(e,t)=>{const r=Ki(e);if(void 0!==r)return r;const{validOptions:n,defaultValue:i}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${lo(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${i}".`)},so=(e,t,r,n)=>{const i=n[uo(e)];if(void 0===i)throw new TypeError(`"${lo(r)}" must not be ${t}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);if("input"===i.direction&&!r)throw new TypeError(`"${lo(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==i.direction&&r)throw new TypeError(`"${lo(r)}" must not be ${t}. It must be a writable stream, not readable.`)},oo=(e,t,r,n)=>{if("all"===e&&!r.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:i,optionValue:s}=ao(e,r);return`The "${i}: ${co(s)}" option is incompatible with using "${lo(n)}: ${co(t)}".\nPlease set this option with "pipe" instead.`},ao=(e,{stdin:t,stdout:r,stderr:n,stdio:i})=>{const s=uo(e);return 0===s&&void 0!==t?{optionName:"stdin",optionValue:t}:1===s&&void 0!==r?{optionName:"stdout",optionValue:r}:2===s&&void 0!==n?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${s}]`,optionValue:i[s]}},uo=e=>"all"===e?1:e,lo=e=>e?"to":"from",co=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",ho=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),(0,$s.addAbortListener)(r,(()=>{e.setMaxListeners(e.getMaxListeners()-t)})))},fo=(e,t)=>{t&&po(e)},po=e=>{e.refCounted()},mo=(e,t)=>{t&&go(e)},go=e=>{e.unrefCounted()},bo=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},i)=>{if(Oo(i)||zo(i))return;Do.has(e)||Do.set(e,[]);const s=Do.get(e);if(s.push(i),!(s.length>1))for(;s.length>0;){await Io(e,n,i),await os.scheduler.yield();const o=await xo({wrappedMessage:s[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});s.shift(),n.emit("message",o),n.emit("message:done")}},yo=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:i})=>{qo();const s=Do.get(e);for(;s?.length>0;)await(0,$s.once)(n,"message:done");e.removeListener("message",i),((e,t)=>{t&&(po(e),po(e))})(t,r),n.connected=!1,n.emit("disconnect")},Do=new WeakMap,wo=(e,t,r)=>{if(vo.has(e))return vo.get(e);const n=new $s.EventEmitter;return n.connected=!0,vo.set(e,n),Eo({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},vo=new WeakMap,Eo=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const i=bo.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",i),t.once("disconnect",yo.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:i})),((e,t)=>{t&&(go(e),go(e))})(r,n)},Fo=e=>{const t=vo.get(e);return void 0===t?null!==e.channel:t.connected};let Co=0n;const So=(e,t)=>{if(t?.type===Mo&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&Ao[t].resolve({isDeadlock:!0,hasListeners:!1})},xo=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:i})=>{if(e?.type!==Mo||!t.connected)return e;const{id:s,message:o}=e,a={id:s,type:ko,message:Bo(t,i)};try{await Ro({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){i.emit("strict:error",e)}return o},Oo=e=>{if(e?.type!==ko)return!1;const{id:t,message:r}=e;return Ao[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},_o=async(e,t,r)=>{if(e?.type!==Mo)return;const n=Xs();Ao[e.id]=n;const i=new AbortController;try{const{isDeadlock:e,hasListeners:s}=await Promise.race([n,To(t,r,i)]);e&&(e=>{throw new Error(`${Ks("sendMessage",e)} failed: the ${Zs(e)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${Ks("getOneMessage",e)},\n\t${Ks("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),s||(e=>{throw new Error(`${Ks("sendMessage",e)} failed: the ${Zs(e)} is not listening to incoming messages.`)})(r)}finally{i.abort(),delete Ao[e.id]}},Ao={},To=async(e,t,{signal:r})=>{ho(e,1,r),await(0,$s.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Ks("sendMessage",e)} failed: the ${Zs(e)} exited without listening to incoming messages.`)})(t)},Mo="execa:ipc:request",ko="execa:ipc:response",Io=async(e,t,r)=>{for(;!Bo(e,t)&&jo.get(e)?.size>0;){const t=[...jo.get(e)];So(t,r),await Promise.all(t.map((({onMessageSent:e})=>e)))}},jo=new WeakMap,Bo=(e,t)=>t.listenerCount("message")>Po(e),Po=e=>ro.has(e)&&!ro.get(e).options.buffer.at(-1)?1:0,Ro=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},i,{strict:s=!1}={})=>{const o="sendMessage";return Ws({methodName:o,isSubprocess:r,ipc:n,isConnected:e.connected}),$o({anyProcess:e,channel:t,methodName:o,isSubprocess:r,message:i,strict:s})},$o=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:i,strict:s})=>{const o=(({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:i})=>{if(!i)return n;const s=wo(e,t,r),o=Bo(e,s);return{id:Co++,type:Mo,message:n,hasListeners:o}})({anyProcess:e,channel:t,isSubprocess:n,message:i,strict:s}),a=((e,t,r)=>{jo.has(e)||jo.set(e,new Set);const n=jo.get(e),i={onMessageSent:Xs(),id:r?t.id:void 0};return n.add(i),{outgoingMessages:n,outgoingMessage:i}})(e,o,s);try{await No({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:o,message:i})}catch(t){throw Qs(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},No=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:i})=>{const s=Lo(e);try{await Promise.all([_o(n,e,r),s(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${Ks(t,r)} cannot be used: the ${Zs(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if(Vs(e))throw new Error(`${Ks(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:r,message:i}),e}},Lo=e=>{if(Uo.has(e))return Uo.get(e);const t=(0,fn.promisify)(e.send.bind(e));return Uo.set(e,t),t},Uo=new WeakMap,Wo=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await Go({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),Yo.signal),Go=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{Ho||(Ho=!0,n?null!==t?(wo(e,t,r),await os.scheduler.yield()):qo():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let Ho=!1;const zo=e=>e?.type===Vo&&(Yo.abort(e.message),!0),Vo="execa:ipc:cancel",qo=()=>{Yo.abort(new Error(`\`cancelSignal\` aborted: the ${Zs(!0)} disconnected.`))},Yo=new AbortController,Ko=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:i,controller:s})=>r?[Jo({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:i,controller:s})]:[],Jo=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:i}})=>{await Ns(t,i);const s=Zo(t);throw await((e,t)=>{const r="cancelSignal";return Hs(r,!1,e.connected),No({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:Vo,message:t},message:t})})(e,s),Rs({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:i}),n.terminationReason??="gracefulCancel",t.reason},Zo=({reason:e})=>{if(!(e instanceof DOMException))return e;const t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t},Qo=(e,t,r,n)=>0===t||void 0===t?[]:[Xo(e,t,r,n)],Xo=async(e,t,r,{signal:n})=>{throw await(0,os.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new as},ea=e(import.meta.url)("node:v8"),ta={advanced:e=>{try{(0,ea.serialize)(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},json:e=>{try{JSON.stringify(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}}},ra=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},na=new Set(["utf8","utf16le"]),ia=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),sa=new Set([...na,...ia]),oa=e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in aa?aa[t]:sa.has(t)?t:void 0},aa={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},ua=e=>"string"==typeof e?`"${e}"`:String(e),la=()=>{try{return Yt.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},ca=(e,t,r)=>{r.cwd=((e=la())=>{const t=kn(e,'The "cwd" option');return(0,Zr.resolve)(t)})(r.cwd);const[n,i,s]=((e,t,{node:r=!1,nodePath:n=Yt.execPath,nodeOptions:i=Yt.execArgv.filter((e=>!e.startsWith("--inspect"))),cwd:s,execPath:o,...a})=>{if(void 0!==o)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const u=kn(n,'The "nodePath" option'),l=(0,Zr.resolve)(s,u),c={...a,nodePath:l,node:r,cwd:s};if(!r)return[e,t,c];if("node"===(0,Zr.basename)(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[l,[...i,e,...t],{ipc:!0,...c,shell:!1}]})(e,t,r),{command:o,args:a,options:u}=ts._parse(n,i,s),l=(e=>{const t={...e};for(const r of Xi)t[r]=Wi(e,r);return t})(u),c=ha(l);return(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(c),(({encoding:e})=>{if(sa.has(e))return;const t=oa(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${ua(e)}\`.\nPlease rename it to ${ua(t)}.`);const r=[...sa].map((e=>ua(e))).join(", ");throw new TypeError(`Invalid option \`encoding: ${ua(e)}\`.\nPlease rename it to one of: ${r}.`)})(c),(({ipcInput:e,ipc:t,serialization:r})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");ta[r](e)}})(c),(({cancelSignal:e})=>{if(void 0!==e&&"[object AbortSignal]"!==Object.prototype.toString.call(e))throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)})(c),(({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(void 0===t)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!r)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if("json"===n)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(c),c.shell=In(c.shell),c.env=da(c),c.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return Cs(e,t)})(c.killSignal),c.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return ks;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(c.forceKillAfterDelay),c.lines=c.lines.map(((e,t)=>e&&!ia.has(c.encoding)&&c.buffer[t])),"win32"===Yt.platform&&"cmd"===(0,Zr.basename)(o,".exe")&&a.unshift("/q"),{file:o,commandArguments:a,options:c}},ha=({extendEnv:e=!0,preferLocal:t=!1,cwd:r,localDir:n=r,encoding:i="utf8",reject:s=!0,cleanup:o=!0,all:a=!1,windowsHide:u=!0,killSignal:l="SIGTERM",forceKillAfterDelay:c=!0,gracefulCancel:h=!1,ipcInput:d,ipc:f=void 0!==d||h,serialization:p="advanced",...m})=>({...m,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:i,reject:s,cleanup:o,all:a,windowsHide:u,killSignal:l,forceKillAfterDelay:c,gracefulCancel:h,ipcInput:d,ipc:f,serialization:p}),da=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:i,nodePath:s})=>{const o=t?{...Yt.env,...e}:e;return r||n?ss({env:o,cwd:i,execPath:s,preferLocal:r,addExecPath:n}):o};function fa(e){if("string"==typeof e)return pa(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return ma(e)}const pa=e=>e.at(-1)===ga?e.slice(0,e.at(-2)===ya?-2:-1):e,ma=e=>e.at(-1)===ba?e.subarray(0,e.at(-2)===Da?-2:-1):e,ga="\n",ba=ga.codePointAt(0),ya="\r",Da=ya.codePointAt(0);function wa(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function va(e,{checkOpen:t=!0}={}){return wa(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Ea(e,{checkOpen:t=!0}={}){return wa(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Fa(e,t){return va(e,t)&&Ea(e,t)}const Ca=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class Sa{#E;#F;#C=!1;#S=void 0;constructor(e,t){this.#E=e,this.#F=t}next(){const e=()=>this.#x();return this.#S=this.#S?this.#S.then(e,e):e(),this.#S}return(e){const t=()=>this.#O(e);return this.#S?this.#S.then(t,t):t()}async#x(){if(this.#C)return{done:!0,value:void 0};let e;try{e=await this.#E.read()}catch(e){throw this.#S=void 0,this.#C=!0,this.#E.releaseLock(),e}return e.done&&(this.#S=void 0,this.#C=!0,this.#E.releaseLock()),e}async#O(e){if(this.#C)return{done:!0,value:e};if(this.#C=!0,!this.#F){const t=this.#E.cancel(e);return this.#E.releaseLock(),await t,{done:!0,value:e}}return this.#E.releaseLock(),{done:!0,value:e}}}const xa=Symbol();function Oa(){return this[xa].next()}function _a(e){return this[xa].return(e)}Object.defineProperty(Oa,"name",{value:"next"}),Object.defineProperty(_a,"name",{value:"return"});const Aa=Object.create(Ca,{next:{enumerable:!0,configurable:!0,writable:!0,value:Oa},return:{enumerable:!0,configurable:!0,writable:!0,value:_a}});function Ta({preventCancel:e=!1}={}){const t=this.getReader(),r=new Sa(t,e),n=Object.create(Aa);return n[xa]=r,n}const Ma=e=>{if(Ea(e,{checkOpen:!1})&&void 0!==Ba.on)return Ia(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===ka.call(e))return Ta.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:ka}=Object.prototype,Ia=async function*(e){const t=new AbortController,r={};ja(e,t,r);try{for await(const[r]of Ba.on(e,"data",{signal:t.signal}))yield r}catch(e){if(void 0!==r.error)throw r.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},ja=async(e,t,r)=>{try{await Ba.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},Ba={},Pa=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{const l=Ma(e),c=t();c.length=0;try{for await(const e of l){const t=r[La(e)](e,c);$a({convertedChunk:t,state:c,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:u})}return Ra({state:c,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,maxBuffer:u}),a(c)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(c),t}},Ra=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:s})=>{const o=i(e);void 0!==o&&$a({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:s})},$a=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:s})=>{const o=r(e),a=t.length+o;if(a<=s)return void Na(e,t,i,a);const u=n(e,s-t.length);throw void 0!==u&&Na(u,t,i,s),new Wa},Na=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},La=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const r=Ua.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===Ua.call(e.buffer)?"typedArray":"others"},{toString:Ua}=Object.prototype;class Wa extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const Ga=(e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters",Ha=(e,t,r)=>{if(t.length!==r)return;const n=new Wa;throw n.maxBufferInfo={fdNumber:"ipc"},n},za=(e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:r,unit:n}}=e;return delete e.maxBufferInfo,"ipc"===r?{streamName:"IPC output",threshold:t.at(-1),unit:"messages"}:{streamName:Ui(r),threshold:t[r],unit:n}},Va=([,e])=>e,qa=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:i,errorCode:s,signal:o,signalDescription:a,exitCode:u,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:h,forceKillAfterDelay:d,killSignal:f})=>{const p=Ya(h,d);return t?`Command timed out after ${r} milliseconds${p}`:c?void 0===o?`Command was gracefully canceled with exit code ${u}`:h?`Command was gracefully canceled${p}`:`Command was gracefully canceled with ${o} (${a})`:l?`Command was canceled${p}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:i}=za(e,t);return`Command's ${r} was larger than ${n} ${i}`})(e,i)}${p}`:void 0!==s?`Command failed with ${s}${p}`:h?`Command was killed with ${f} (${Ms(f)})${p}`:void 0!==o?`Command was killed with ${o} (${a})`:void 0!==u?`Command failed with exit code ${u}`:"Command failed"},Ya=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",Ka=(e,t)=>{if(e instanceof as)return;const r=cs(n=e)&&ls in n?e.originalMessage:String(e?.message??e);var n;const i=yi(((e,t)=>{if(t===la())return e;let r;try{r=(0,Jr.statSync)(t)}catch(r){return`The "cwd" option is invalid: ${t}.\n${r.message}\n${e}`}return r.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(r,t));return""===i?void 0:i},Ja=e=>"string"==typeof e?e:(0,fn.inspect)(e),Za=e=>Array.isArray(e)?e.map((e=>fa(Qa(e)))).filter(Boolean).join("\n"):Qa(e),Qa=e=>"string"==typeof e?e:Rn(e)?Wn(e):"",Xa=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:i,options:{cwd:s},startTime:o})=>nu({command:e,escapedCommand:t,cwd:s,durationMs:Ri(o),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:i,pipedFrom:[]}),eu=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:o})=>tu({error:e,command:t,escapedCommand:r,startTime:s,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:i,isSync:o}),tu=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,stdio:h,all:d,ipcOutput:f,options:{timeoutDuration:p,timeout:m=p,forceKillAfterDelay:g,killSignal:b,cwd:y,maxBuffer:D},isSync:w})=>{const{exitCode:v,signal:E,signalDescription:F}=iu(l,c),{originalMessage:C,shortMessage:S,message:x}=(({stdio:e,all:t,ipcOutput:r,originalError:n,signal:i,signalDescription:s,exitCode:o,escapedCommand:a,timedOut:u,isCanceled:l,isGracefullyCanceled:c,isMaxBuffer:h,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p,maxBuffer:m,timeout:g,cwd:b})=>{const y=n?.code,D=qa({originalError:n,timedOut:u,timeout:g,isMaxBuffer:h,maxBuffer:m,errorCode:y,signal:i,signalDescription:s,exitCode:o,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p}),w=Ka(n,b),v=`${D}: ${a}${void 0===w?"":`\n${w}`}`,E=[v,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),r.map((e=>Ja(e))).join("\n")].map((e=>yi(fa(Za(e))))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:v,message:E}})({stdio:h,all:d,ipcOutput:f,originalError:e,signal:E,signalDescription:F,exitCode:v,escapedCommand:r,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,forceKillAfterDelay:g,killSignal:b,maxBuffer:D,timeout:m,cwd:y}),O=((e,t,r)=>new(r?ds:hs)(t,e instanceof as?{}:{cause:e}))(e,x,w);return Object.assign(O,ru({error:O,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:v,signal:E,signalDescription:F,stdio:h,all:d,ipcOutput:f,cwd:y,originalMessage:C,shortMessage:S})),O},ru=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,stdio:d,all:f,ipcOutput:p,cwd:m,originalMessage:g,shortMessage:b})=>nu({shortMessage:b,originalMessage:g,command:t,escapedCommand:r,cwd:m,durationMs:Ri(n),failed:!0,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isTerminated:void 0!==c,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,code:e.cause?.code,stdout:d[1],stderr:d[2],all:f,stdio:d,ipcOutput:p,pipedFrom:[]}),nu=e=>Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e))),iu=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:Ms(t)}},su=e=>Number.isFinite(e)?e:0;function ou(e){switch(typeof e){case"number":if(Number.isFinite(e))return function(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(su(1e3*e)%1e3),nanoseconds:Math.trunc(su(1e6*e)%1e3)}}(e);break;case"bigint":return function(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}(e)}throw new TypeError("Expected a finite number or bigint")}function au(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");(t={...t}).colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let n=[];const i=(e,r,i,s)=>{if(0!==n.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===i){if(s=s??String(e),t.colonNotation){const e=s.includes(".")?s.split(".")[0].length:s.length,t=n.length>0?2:1;s="0".repeat(Math.max(0,t-e))+s}else s+=t.verbose?" "+((e,t)=>1===t||1n===t?e:`${e}s`)(r,e):i;n.push(s)}},s=ou(e),o=BigInt(s.days);if(i(o/365n,"year","y"),i(o%365n,"day","d"),i(Number(s.hours),"hour","h"),i(Number(s.minutes),"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(s.seconds),r=Number(s.milliseconds),n=Number(s.microseconds),o=Number(s.nanoseconds);if(i(e,"second","s"),t.formatSubMilliseconds)i(r,"millisecond","ms"),i(n,"microsecond","\xb5s"),i(o,"nanosecond","ns");else{const e=r+n/1e3+o/1e6,s="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),u=s?e.toFixed(s):a;i(Number.parseFloat(u),"millisecond","ms",u)}}else{const n=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})((r?Number(e%86400000n):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),s=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");i(Number.parseFloat(s),"second","s",s)}if(0===n.length)return"0"+(t.verbose?" milliseconds":"ms");const a=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(n=n.slice(0,Math.max(t.unitCount,1))),n.join(a)}const uu=(e,t,r)=>{lu({message:yi(String(e)),failed:!0,reject:!0,durationMs:Ri(t),verboseInfo:r})},lu=({message:e,failed:t,reject:r,durationMs:n,verboseInfo:{verbose:i,verboseId:s}})=>{if(!li(i))return;const o=hu(t,r);(({message:e,failed:t,reject:r,verboseId:n,icon:i})=>{if(!t)return;xi(e,n,i,r?si:oi)})({message:e,failed:t,reject:r,verboseId:s,icon:o}),cu(n,s,o)},cu=(e,t,r)=>{const n=`(done in ${au(e)})`;xi(n,t,r,ii)},hu=(e,t)=>e?t?"error":"warning":"success",du=(e,t,{reject:r})=>{if((({shortMessage:e,failed:t,durationMs:r},n,i)=>{lu({message:e,failed:t,reject:n,durationMs:r,verboseInfo:i})})(e,r,t),e.failed&&r)throw e;return e},fu=(e,t)=>Eu(e)?"asyncGenerator":Fu(e)?"generator":Su(e)?"fileUrl":xu(e)?"filePath":Mu(e)?"webStream":wa(e,{checkOpen:!1})?"native":Rn(e)?"uint8Array":Iu(e)?"asyncIterable":ju(e)?"iterable":ku(e)?gu({transform:e},t):Cu(e)?pu(e,t):"native",pu=(e,t)=>Fa(e.transform,{checkOpen:!1})?mu(e,t):ku(e.transform)?gu(e,t):Du(e,t),mu=(e,t)=>(bu(e,t,"Duplex stream"),"duplex"),gu=(e,t)=>(bu(e,t,"web TransformStream"),"webTransform"),bu=({final:e,binary:t,objectMode:r},n,i)=>{yu(e,`${n}.final`,i),yu(t,`${n}.binary`,i),wu(r,`${n}.objectMode`)},yu=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},Du=({transform:e,final:t,binary:r,objectMode:n},i)=>{if(void 0!==e&&!vu(e))throw new TypeError(`The \`${i}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(Fa(t,{checkOpen:!1}))throw new TypeError(`The \`${i}.final\` option must not be a Duplex stream.`);if(ku(t))throw new TypeError(`The \`${i}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!vu(t))throw new TypeError(`The \`${i}.final\` option must be a generator.`);return wu(r,`${i}.binary`),wu(n,`${i}.objectMode`),Eu(e)||Eu(t)?"asyncGenerator":"generator"},wu=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},vu=e=>Eu(e)||Fu(e),Eu=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),Fu=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),Cu=e=>Tn(e)&&(void 0!==e.transform||void 0!==e.final),Su=e=>"[object URL]"===Object.prototype.toString.call(e),xu=e=>Tn(e)&&1===Object.keys(e).length&&Ou(e.file),Ou=e=>"string"==typeof e,_u=new Set(["ipc","ignore","inherit","overlapped","pipe"]),Au=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),Tu=e=>"[object WritableStream]"===Object.prototype.toString.call(e),Mu=e=>Au(e)||Tu(e),ku=e=>Au(e?.readable)&&Tu(e?.writable),Iu=e=>Bu(e)&&"function"==typeof e[Symbol.asyncIterator],ju=e=>Bu(e)&&"function"==typeof e[Symbol.iterator],Bu=e=>"object"==typeof e&&null!==e,Pu=new Set(["generator","asyncGenerator","duplex","webTransform"]),Ru=new Set(["fileUrl","filePath","fileNumber"]),$u=new Set(["fileUrl","filePath"]),Nu=new Set([...$u,"webStream","nodeStream"]),Lu=new Set(["webTransform","duplex"]),Uu={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"},Wu=(e,t,r,n)=>"output"===n?Gu(e,t,r):Hu(e,t,r),Gu=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},Hu=(e,t,r)=>{const n=0===t?!0===e:r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:t!==r.length-1&&(e??n)}},zu=(e,t,r,{encoding:n})=>{const i=e.filter((({type:e})=>Pu.has(e))),s=Array.from({length:i.length});for(const[e,o]of Object.entries(i))s[e]=Vu({stdioItem:o,index:Number(e),newTransforms:s,optionName:t,direction:r,encoding:n});return Ju(s,r)},Vu=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:i,direction:s,encoding:o})=>"duplex"===t?qu({stdioItem:e,optionName:i}):"webTransform"===t?Yu({stdioItem:e,index:r,newTransforms:n,direction:s}):Ku({stdioItem:e,index:r,newTransforms:n,direction:s,encoding:o}),qu=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:i=n}},optionName:s})=>{if(i&&!n)throw new TypeError(`The \`${s}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!i&&n)throw new TypeError(`The \`${s}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:r,readableObjectMode:n}}},Yu=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i})=>{const{transform:s,objectMode:o}=Tn(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:u}=Wu(o,r,n,i);return{...e,value:{transform:s,writableObjectMode:a,readableObjectMode:u}}},Ku=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i,encoding:s})=>{const{transform:o,final:a,binary:u=!1,preserveNewlines:l=!1,objectMode:c}=Tn(t)?t:{transform:t},h=u||ia.has(s),{writableObjectMode:d,readableObjectMode:f}=Wu(c,r,n,i);return{...e,value:{transform:o,final:a,binary:h,preserveNewlines:l,writableObjectMode:d,readableObjectMode:f}}},Ju=(e,t)=>"input"===t?e.reverse():e,Zu=({type:e,value:t},r)=>Qu[r]??tl[e](t),Qu=["input","output","output"],Xu=()=>{},el=()=>"input",tl={generator:Xu,asyncGenerator:Xu,fileUrl:Xu,filePath:Xu,iterable:el,asyncIterable:el,uint8Array:el,webStream:e=>Tu(e)?"output":"input",nodeStream:e=>Ea(e,{checkOpen:!1})?va(e,{checkOpen:!1})?void 0:"input":"output",webTransform:Xu,duplex:Xu,native(e){const t=rl(e);return void 0!==t?t:wa(e,{checkOpen:!1})?tl.nodeStream(e):void 0}},rl=e=>[0,Yt.stdin].includes(e)?"input":[1,2,Yt.stdout,Yt.stderr].includes(e)?"output":void 0,nl="output",il=(e,t)=>{if(void 0===e)return Li.map((e=>t[e]));if(sl(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Li.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e)return[e,e,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]))},sl=e=>Li.some((t=>void 0!==e[t])),ol=(e,t)=>Array.isArray(e)?e.map((e=>ol(e,t))):null==e?t>=Li.length?"ignore":"pipe":e,al=(e,t,r)=>e.map(((e,n)=>!t[n]&&0!==n&&"full"!==r[n]&&ul(e)?"ignore":e)),ul=e=>"pipe"===e||Array.isArray(e)&&e.every((e=>"pipe"===e)),ll=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:i})=>{const s=cl({value:t,optionName:r,fdNumber:n,direction:i});if(void 0!==s)return s;if(wa(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},cl=({value:e,optionName:t,fdNumber:r,direction:n})=>{const i=hl(e,r);if(void 0!==i){if("output"===n)return{type:"fileNumber",value:i,optionName:t};if(Jt.isatty(i))throw new TypeError(`The \`${t}: ${co(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:$n((0,Jr.readFileSync)(i)),optionName:t}}},hl=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=Ni.indexOf(e);return-1!==r?r:void 0},dl=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:fl(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:fl(t,t,r),optionName:r}:wa(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,fl=(e,t,r)=>{const n=Ni[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},pl=({input:e,inputFile:t},r)=>0===r?[...ml(e),...bl(t)]:[],ml=e=>void 0===e?[]:[{type:gl(e),value:e,optionName:"input"}],gl=e=>{if(Ea(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(Rn(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},bl=e=>void 0===e?[]:[{...yl(e),optionName:"inputFile"}],yl=e=>{if(Su(e))return{type:"fileUrl",value:e};if(Ou(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},Dl=(e,t)=>e.flatMap((({direction:e,stdioItems:r})=>r.filter((e=>e.type===t)).map((t=>({...t,direction:e}))))),wl=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{$u.has(t)&&vl({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})},vl=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{const s=e.filter((e=>El(e,r)));if(0===s.length)return;const o=s.find((e=>e.direction!==i));return Cl(o,n,t),"output"===i?s[0].stream:void 0},El=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,Fl=({otherStdioItems:e,type:t,value:r,optionName:n})=>{const i=e.find((({value:{transform:e}})=>e===r.transform));Cl(i,n,t)},Cl=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Uu[r]} that is the same.`)},Sl=(e,t,r,n)=>{const i=(({stdio:e,ipc:t,buffer:r,verbose:n,...i},s)=>{const o=il(e,i).map(((e,t)=>ol(e,t)));return s?al(o,r,n):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(o,t)})(t,n),s=i.map(((e,r)=>xl({stdioOption:e,fdNumber:r,options:t,isSync:n}))),o=jl({initialFileDescriptors:s,addProperties:e,options:t,isSync:n});return t.stdio=o.map((({stdioItems:e})=>$l(e))),o},xl=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const i=Ui(t),{stdioItems:s,isStdioArray:o}=Ol({stdioOption:e,fdNumber:t,options:r,optionName:i}),a=((e,t,r)=>{const n=e.map((e=>Zu(e,t)));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??nl})(s,t,i),u=s.map((e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:i,isSync:s})=>r&&"native"===t?s?ll({stdioItem:e,fdNumber:n,direction:i}):dl({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:o,fdNumber:t,direction:a,isSync:n}))),l=((e,t,r,n)=>[...e.filter((({type:e})=>!Pu.has(e))),...zu(e,t,r,n)])(u,i,a,r),c=((e,t)=>{const r=e.findLast((({type:e})=>Pu.has(e)));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(l,a);return Il(l,c),{direction:a,objectMode:c,stdioItems:l}},Ol=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{const i=(e=>e.filter(((t,r)=>e.every(((e,n)=>t.value!==e.value||r>=n||"generator"===t.type||"asyncGenerator"===t.type)))))([...(Array.isArray(e)?e:[e]).map((e=>_l(e,n))),...pl(r,t)]),s=i.length>1;return Al(i,s,n),Ml(i),{stdioItems:i,isStdioArray:s}},_l=(e,t)=>({type:fu(e,t),value:e,optionName:t}),Al=(e,t,r)=>{if(0===e.length)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t)for(const{value:t,optionName:r}of e)if(Tl.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},Tl=new Set(["ignore","ipc"]),Ml=e=>{for(const t of e)kl(t)},kl=({type:e,value:t,optionName:r})=>{if((e=>Su(e)&&"file:"!==e.protocol)(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(((e,t)=>"native"===e&&"string"==typeof t&&!_u.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},Il=(e,t)=>{if(!t)return;const r=e.find((({type:e})=>Ru.has(e)));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},jl=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const i=[];try{for(const s of e)i.push(Bl({fileDescriptor:s,fileDescriptors:i,addProperties:t,options:r,isSync:n}));return i}catch(e){throw Rl(i),e}},Bl=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:i,options:s,isSync:o})=>{const a=r.map((t=>Pl({stdioItem:t,addProperties:i,direction:e,options:s,fileDescriptors:n,isSync:o})));return{direction:e,objectMode:t,stdioItems:a}},Pl=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:i,isSync:s})=>{const o=(({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:i,isSync:s})=>{const o=Dl(i,e);if(0!==o.length){if(!s)return Nu.has(e)?vl({otherStdioItems:o,type:e,value:t,optionName:r,direction:n}):void(Lu.has(e)&&Fl({otherStdioItems:o,type:e,value:t,optionName:r}));wl({otherStdioItems:o,type:e,value:t,optionName:r,direction:n})}})({stdioItem:e,direction:r,fileDescriptors:i,isSync:s});return void 0!==o?{...e,stream:o}:{...e,...t[r][e.type](e,n)}},Rl=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||$i(e)||e.destroy()},$l=e=>{if(e.length>1)return e.some((({value:e})=>"overlapped"===e))?"overlapped":"pipe";const[{type:t,value:r}]=e;return"native"===t?r:"pipe"},Nl=({type:e,optionName:t})=>{Ll(t,Uu[e])},Ll=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},Ul={generator(){},asyncGenerator:Nl,webStream:Nl,nodeStream:Nl,webTransform:Nl,duplex:Nl,asyncIterable:Nl,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||Ll(e,`"${t}"`),{})},Wl={input:{...Ul,fileUrl:({value:e})=>({contents:[$n((0,Jr.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[$n((0,Jr.readFileSync)(e))]}),fileNumber:Nl,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...Ul,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e}})=>({path:e}),fileNumber:({value:e})=>({path:e}),iterable:Nl,string:Nl,uint8Array:Nl}},Gl=(e,{stripFinalNewline:t},r)=>Hl(t,r)&&void 0!==e&&!Array.isArray(e)?fa(e):e,Hl=(e,t)=>"all"===t?e[1]||e[2]:e[t],zl=e(import.meta.url)("node:stream"),Vl=(e,t,r,n)=>e||r?void 0:Kl(t,n),ql=(e,t,r)=>r?e.flatMap((e=>Yl(e,t))):Yl(e,t),Yl=(e,t)=>{const{transform:r,final:n}=Kl(t,{});return[...r(e),...n()]},Kl=(e,t)=>(t.previousChunks="",{transform:Jl.bind(void 0,t,e),final:Ql.bind(void 0,t)}),Jl=function*(e,t,r){if("string"!=typeof r)return void(yield r);let{previousChunks:n}=e,i=-1;for(let s=0;s<r.length;s+=1)if("\n"===r[s]){const o=Zl(r,s,t,e);let a=r.slice(i+1,s+1-o);n.length>0&&(a=tc(n,a),n=""),yield a,i=s}i!==r.length-1&&(n=tc(n,r.slice(i+1))),e.previousChunks=n},Zl=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),Ql=function*({previousChunks:e}){e.length>0&&(yield e)},Xl=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:ec.bind(void 0,n)},ec=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:i,concatBytes:s}="string"==typeof t?rc:nc;if(t.at(-1)===i)return void(yield t);const o=e?n:r;yield s(t,o)},tc=(e,t)=>`${e}${t}`,rc={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:tc},nc={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}},ic=e(import.meta.url)("node:buffer"),sc=(e,t)=>e?void 0:oc.bind(void 0,t),oc=function*(e,t){if("string"!=typeof t&&!Rn(t)&&!ic.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},ac=(e,t)=>e?uc.bind(void 0,t):lc.bind(void 0,t),uc=function*(e,t){cc(e,t),yield t},lc=function*(e,t){if(cc(e,t),"string"!=typeof t&&!Rn(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},cc=(e,t)=>{if(null==t)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)},hc=(e,t,r)=>{if(r)return;if(e)return{transform:dc.bind(void 0,new TextEncoder)};const n=new Bn.StringDecoder(t);return{transform:fc.bind(void 0,n),final:pc.bind(void 0,n)}},dc=function*(e,t){ic.Buffer.isBuffer(t)?yield $n(t):"string"==typeof t?yield e.encode(t):yield t},fc=function*(e,t){yield Rn(t)?e.write(t):t},pc=function*(e){const t=e.end();""!==t&&(yield t)},mc=(0,fn.callbackify)((async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(const e of t.currentIterable)n.push(e)}finally{delete t.currentIterable}})),gc=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=wc}=t[r];for await(const i of n(e))yield*gc(i,t,r+1)},bc=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*yc(r,Number(t),e)},yc=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*gc(n,r,t+1)},Dc=(0,fn.callbackify)((async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())})),wc=function*(e){yield e},vc=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},Ec=(e,t)=>[...t.flatMap((t=>[...Fc(t,e,0)])),...Cc(e)],Fc=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=xc}=t[r];for(const i of n(e))yield*Fc(i,t,r+1)},Cc=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Sc(r,Number(t),e)},Sc=function*(e,t,r){if(void 0!==e)for(const n of e())yield*Fc(n,r,t+1)},xc=function*(e){yield e},Oc=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:i},optionName:s},{encoding:o})=>{const a={},u=Ac(e,o,s),l=Eu(t),c=Eu(r),h=l?mc.bind(void 0,gc,a):vc.bind(void 0,Fc),d=l||c?mc.bind(void 0,bc,a):vc.bind(void 0,Cc),f=l||c?Dc.bind(void 0,a):void 0;return{stream:new zl.Transform({writableObjectMode:n,writableHighWaterMark:(0,zl.getDefaultHighWaterMark)(n),readableObjectMode:i,readableHighWaterMark:(0,zl.getDefaultHighWaterMark)(i),transform(e,t,r){h([e,u,0],this,r)},flush(e){d([u],this,e)},destroy:f})}},_c=(e,t,r,n)=>{const i=t.filter((({type:e})=>"generator"===e)),s=n?i.reverse():i;for(const{value:t,optionName:n}of s){const i=Ac(t,r,n);e=Ec(i,e)}return e},Ac=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:i,preserveNewlines:s},o,a)=>{const u={};return[{transform:sc(n,a)},hc(r,o,n),Vl(r,s,n,u),{transform:e,final:t},{transform:ac(i,a)},Xl({binary:r,preserveNewlines:s,readableObjectMode:i,state:u})].filter(Boolean)},Tc=e=>new Set(Object.entries(e).filter((([,{direction:e}])=>"input"===e)).map((([e])=>Number(e)))),Mc=(e,t,r)=>{const{stdioItems:n}=e[t],i=n.filter((({contents:e})=>void 0!==e));if(0===i.length)return;if(0!==t){const[{type:e,optionName:t}]=i;throw new TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${Uu[e]} with synchronous methods.`)}const s=i.map((({contents:e})=>e)).map((e=>kc(e,n)));r.input=Hn(s)},kc=(e,t)=>{const r=_c(e,t,"utf8",!0);return Ic(r),Hn(r)},Ic=e=>{const t=e.find((e=>"string"!=typeof e&&!Rn(e)));if(void 0!==t)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)},jc=({stdioItems:e,encoding:t,verboseInfo:{verbose:r},fdNumber:n})=>"all"!==n&&"full"===r[n]&&!ia.has(t)&&Bc(n)&&(e.some((({type:e,value:t})=>"native"===e&&Pc.has(t)))||e.every((({type:e})=>Pu.has(e)))),Bc=e=>1===e||2===e,Pc=new Set(["pipe","overlapped"]),Rc=e=>e._readableState.pipes.length>0,$c=(e,{verboseId:t})=>{xi(ji(e),t,"output")},Nc=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:i,isMaxBuffer:s,verboseInfo:o},{buffer:a,encoding:u,lines:l,stripFinalNewline:c,maxBuffer:h})=>{if(null===e)return;const d=((e,t,r)=>{if(!t)return e;const n=Va(r);return e.length>n?e.slice(0,n):e})(e,s,h),f=$n(d),{stdioItems:p,objectMode:m}=t[r],g=Lc([f],p,u,n),{serializedResult:b,finalResult:y=b}=Uc({chunks:g,objectMode:m,encoding:u,lines:l,stripFinalNewline:c,fdNumber:r});if(jc({stdioItems:p,encoding:u,verboseInfo:o,fdNumber:r})){((e,t)=>{for(const r of e)$c(r,t)})(ql(b,!1,m),o)}const D=a[r]?y:void 0;try{return void 0===n.error&&Wc(b,p,i),D}catch(e){return n.error=e,D}},Lc=(e,t,r,n)=>{try{return _c(e,t,r,!1)}catch(t){return n.error=t,e}},Uc=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:i,fdNumber:s})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:Hn(e)};const o=((e,t)=>Gn(e,t).join(""))(e,r);return n[s]?{serializedResult:o,finalResult:ql(o,!i[s],t)}:{serializedResult:o}},Wc=(e,t,r)=>{for(const{path:n}of t.filter((({type:e})=>Ru.has(e)))){const t="string"==typeof n?n:n.toString();r.has(t)?(0,Jr.appendFileSync)(n,e):(r.add(t),(0,Jr.writeFileSync)(n,e))}},Gc=async e=>{const[t,r]=await Promise.allSettled([(0,$s.once)(e,"spawn"),(0,$s.once)(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?Hc(e):r.value},Hc=async e=>{try{return await(0,$s.once)(e,"exit")}catch{return Hc(e)}},zc=async e=>{const[t,r]=await e;if(!Vc(t,r)&&qc(t,r))throw new as;return[t,r]},Vc=(e,t)=>void 0===e&&void 0===t,qc=(e,t)=>0!==e||null!==t,Yc=({error:e,status:t,signal:r,output:n},{maxBuffer:i})=>{const s=Kc(e,t,r),o="ETIMEDOUT"===s?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some((e=>null!==e&&e.length>Va(r))))(s,n,i);return{resultError:s,exitCode:t,signal:r,timedOut:o,isMaxBuffer:a}},Kc=(e,t,r)=>void 0!==e?e:qc(t,r)?new as:void 0,Jc=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=es(e,t,r);try{const a=Zc(r),{file:u,commandArguments:l,options:c}=ca(e,t,a);Qc(c);const h=((e,t)=>Sl(Wl,e,0,!0))(c);return{file:u,commandArguments:l,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}}catch(e){throw uu(e,s,o),e}},Zc=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,Qc=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&Xc("ipcInput"),e&&Xc("ipc: true"),r&&Xc("detached: true"),n&&Xc("cancelSignal")},Xc=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},eh=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,verboseInfo:s,fileDescriptors:o,startTime:a})=>{const u=th({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:o,startTime:a});if(u.failed)return u;const{resultError:l,exitCode:c,signal:h,timedOut:d,isMaxBuffer:f}=Yc(u,r),{output:p,error:m=l}=(({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:i})=>{if(null===t)return{output:Array.from({length:3})};const s={},o=new Set([]);return{output:t.map(((t,a)=>Nc({result:t,fileDescriptors:e,fdNumber:a,state:s,outputFiles:o,isMaxBuffer:n,verboseInfo:i},r))),...s}})({fileDescriptors:o,syncResult:u,options:r,isMaxBuffer:f,verboseInfo:s}),g=p.map(((e,t)=>Gl(e,r,t))),b=Gl((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,Gl(t,r,"all")]:Array.isArray(t)?[Gl(e,r,"all"),...t]:Rn(e)&&Rn(t)?Vn([e,t]):`${e}${t}`})(p,r),r,"all");return nh({error:m,exitCode:c,signal:h,timedOut:d,isMaxBuffer:f,stdio:g,all:b,options:r,command:n,escapedCommand:i,startTime:a})},th=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:s,startTime:o})=>{try{((e,t)=>{for(const r of Tc(e))Mc(e,r,t)})(s,r);const n=rh(r);return(0,Kr.spawnSync)(e,t,n)}catch(e){return eu({error:e,command:n,escapedCommand:i,fileDescriptors:s,options:r,startTime:o,isSync:!0})}},rh=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:Va(t)}),nh=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:i,stdio:s,all:o,options:a,command:u,escapedCommand:l,startTime:c})=>void 0===e?Xa({command:u,escapedCommand:l,stdio:s,all:o,ipcOutput:[],options:a,startTime:c}):tu({error:e,command:u,escapedCommand:l,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:i,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:s,all:o,ipcOutput:[],options:a,startTime:c,isSync:!0}),ih=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0,filter:s}={})=>(Ws({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:Fo(e)}),sh({anyProcess:e,channel:t,isSubprocess:r,filter:s,reference:i})),sh=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:i})=>{fo(t,i);const s=wo(e,t,r),o=new AbortController;try{return await Promise.race([oh(s,n,o),ah(s,r,o),uh(s,r,o)])}catch(t){throw Qs(e),t}finally{o.abort(),mo(t,i)}},oh=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await(0,$s.once)(e,"message",{signal:r});return t}for await(const[n]of(0,$s.on)(e,"message",{signal:r}))if(t(n))return n},ah=async(e,t,{signal:r})=>{await(0,$s.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Ks("getOneMessage",e)} could not complete: the ${Zs(e)} exited or disconnected.`)})(t)},uh=async(e,t,{signal:r})=>{const[n]=await(0,$s.once)(e,"strict:error",{signal:r});throw zs(n,t)},lh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0}={})=>ch({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:i}),ch=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:i,reference:s})=>{Ws({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:Fo(e)}),fo(t,s);const o=wo(e,t,r),a=new AbortController,u={};return hh(e,o,a),dh({ipcEmitter:o,isSubprocess:r,controller:a,state:u}),fh({anyProcess:e,channel:t,ipcEmitter:o,isSubprocess:r,shouldAwait:i,controller:a,state:u,reference:s})},hh=async(e,t,r)=>{try{await(0,$s.once)(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},dh=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[i]=await(0,$s.once)(e,"strict:error",{signal:r.signal});n.error=zs(i,t),r.abort()}catch{}},fh=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:i,controller:s,state:o,reference:a}){try{for await(const[e]of(0,$s.on)(r,"message",{signal:s.signal}))ph(o),yield e}catch{ph(o)}finally{s.abort(),mo(t,a),n||Qs(e),i&&await e}},ph=({error:e})=>{if(e)throw e},mh=(e,t,r)=>({sendMessage:Ro.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:ih.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:lh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),gh=(e,t)=>{const r=bh(),n=bh(),i=bh(),s=Array.from({length:t.length-3},bh),o=bh(),a=[r,n,i,...s];Object.assign(e,{stdin:r,stdout:n,stderr:i,all:o,stdio:a})},bh=()=>{const e=new zl.PassThrough;return e.end(),e},yh=()=>new zl.Readable({read(){}}),Dh=()=>new zl.Writable({write(){}}),wh=()=>new zl.Duplex({read(){},write(){}}),vh=async(e,t,r)=>du(e,t,r),Eh=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${Uu[e]}.`)},Fh={fileNumber:Eh,generator:Oc,asyncGenerator:Oc,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:zl.Duplex.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Ch={input:{...Fh,fileUrl:({value:e})=>({stream:(0,Jr.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Jr.createReadStream)(e)}),webStream:({value:e})=>({stream:zl.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:zl.Readable.from(e)}),asyncIterable:({value:e})=>({stream:zl.Readable.from(e)}),string:({value:e})=>({stream:zl.Readable.from(e)}),uint8Array:({value:e})=>({stream:zl.Readable.from(ic.Buffer.from(e))})},output:{...Fh,fileUrl:({value:e})=>({stream:(0,Jr.createWriteStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Jr.createWriteStream)(e)}),webStream:({value:e})=>({stream:zl.Writable.fromWeb(e)}),iterable:Eh,asyncIterable:Eh,string:Eh,uint8Array:Eh}},Sh=e(import.meta.url)("node:stream/promises");function xh(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)kh(t);const t=e.some((({readableObjectMode:e})=>e)),r=Oh(e,t),n=new _h({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const Oh=(e,t)=>{if(0===e.length)return(0,zl.getDefaultHighWaterMark)(t);const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class _h extends zl.PassThrough{#_=new Set([]);#A=new Set([]);#T=new Set([]);#M;#k=Symbol("unpipe");#I=new WeakMap;add(e){if(kh(e),this.#_.has(e))return;this.#_.add(e),this.#M??=Ah(this,this.#_,this.#k);const t=Ih({passThroughStream:this,stream:e,streams:this.#_,ended:this.#A,aborted:this.#T,onFinished:this.#M,unpipeEvent:this.#k});this.#I.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(kh(e),!this.#_.has(e))return!1;const t=this.#I.get(e);return void 0!==t&&(this.#I.delete(e),e.unpipe(this),await t,!0)}}const Ah=async(e,t,r)=>{Gh(e,Hh);const n=new AbortController;try{await Promise.race([Th(e,n),Mh(e,t,r,n)])}finally{n.abort(),Gh(e,-Hh)}},Th=async(e,{signal:t})=>{try{await(0,Sh.finished)(e,{signal:t,cleanup:!0})}catch(t){throw $h(e,t),t}},Mh=async(e,t,r,{signal:n})=>{for await(const[i]of(0,$s.on)(e,"unpipe",{signal:n}))t.has(i)&&i.emit(r)},kh=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Ih=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,onFinished:s,unpipeEvent:o})=>{Gh(e,zh);const a=new AbortController;try{await Promise.race([jh(s,t,a),Bh({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:a}),Ph({stream:t,streams:r,ended:n,aborted:i,unpipeEvent:o,controller:a})])}finally{a.abort(),Gh(e,-zh)}r.size>0&&r.size===n.size+i.size&&(0===n.size&&i.size>0?Lh(e):Rh(e))},jh=async(e,t,{signal:r})=>{try{await e,r.aborted||Lh(t)}catch(e){r.aborted||$h(t,e)}},Bh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:{signal:s}})=>{try{await(0,Sh.finished)(t,{signal:s,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(n){if(s.aborted||!r.has(t))return;Nh(n)?i.add(t):Uh(e,n)}},Ph=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:i,controller:{signal:s}})=>{if(await(0,$s.once)(e,i,{signal:s}),!e.readable)return(0,$s.once)(s,"abort",{signal:s});t.delete(e),r.delete(e),n.delete(e)},Rh=e=>{e.writable&&e.end()},$h=(e,t)=>{Nh(t)?Lh(e):Uh(e,t)},Nh=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Lh=e=>{(e.readable||e.writable)&&e.destroy()},Uh=(e,t)=>{e.destroyed||(e.once("error",Wh),e.destroy(t))},Wh=()=>{},Gh=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},Hh=2,zh=1,Vh=(e,t)=>{e.pipe(t),qh(e,t),Kh(e,t)},qh=async(e,t)=>{if(!$i(e)&&!$i(t)){try{await(0,Sh.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Yh(t)}},Yh=e=>{e.writable&&e.end()},Kh=async(e,t)=>{if(!$i(e)&&!$i(t)){try{await(0,Sh.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}Jh(e)}},Jh=e=>{e.readable&&e.destroy()},Zh=(e,t,r,n)=>{"output"===r?Vh(e.stdio[n],t):Vh(t,e.stdio[n]);const i=Qh[n];void 0!==i&&(e[i]=t),e.stdio[n]=t},Qh=["stdin","stdout","stderr"],Xh=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:i,controller:s})=>{if(void 0===t)return;ed(t,s);const[o,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],u=i.get(o)??[];i.set(o,[...u,a])},ed=(e,{signal:t})=>{$i(e)&&ho(e,td,t)},td=2,rd=[];rd.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&rd.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&rd.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const nd=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,id=Symbol.for("signal-exit emitter"),sd=globalThis,od=Object.defineProperty.bind(Object);class ad{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(sd[id])return sd[id];od(sd,id,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const i of this.listeners[e])n=!0===i(t,r)||n;return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class ud{}const ld=globalThis.process,{onExit:cd,load:hd,unload:dd}=(fd=nd(ld)?new class extends ud{#j="win32"===ld.platform?"SIGINT":"SIGHUP";#B=new ad;#P;#R;#$;#N={};#L=!1;constructor(e){super(),this.#P=e,this.#N={};for(const t of rd)this.#N[t]=()=>{const r=this.#P.listeners(t);let{count:n}=this.#B;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(n+=i.__signal_exit_emitter__.count),r.length===n){this.unload();const r=this.#B.emit("exit",null,t),n="SIGHUP"===t?this.#j:t;r||e.kill(e.pid,n)}};this.#$=e.reallyExit,this.#R=e.emit}onExit(e,t){if(!nd(this.#P))return()=>{};!1===this.#L&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#B.on(r,e),()=>{this.#B.removeListener(r,e),0===this.#B.listeners.exit.length&&0===this.#B.listeners.afterExit.length&&this.unload()}}load(){if(!this.#L){this.#L=!0,this.#B.count+=1;for(const e of rd)try{const t=this.#N[e];t&&this.#P.on(e,t)}catch(e){}this.#P.emit=(e,...t)=>this.#U(e,...t),this.#P.reallyExit=e=>this.#W(e)}}unload(){this.#L&&(this.#L=!1,rd.forEach((e=>{const t=this.#N[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#P.removeListener(e,t)}catch(e){}})),this.#P.emit=this.#R,this.#P.reallyExit=this.#$,this.#B.count-=1)}#W(e){return nd(this.#P)?(this.#P.exitCode=e||0,this.#B.emit("exit",this.#P.exitCode,null),this.#$.call(this.#P,this.#P.exitCode)):0}#U(e,...t){const r=this.#R;if("exit"===e&&nd(this.#P)){"number"==typeof t[0]&&(this.#P.exitCode=t[0]);const n=r.call(this.#P,e,...t);return this.#B.emit("exit",this.#P.exitCode,null),n}return r.call(this.#P,e,...t)}}(ld):new class extends ud{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>fd.onExit(e,t),load:()=>fd.load(),unload:()=>fd.unload()});var fd;const pd=(e,t,r)=>{try{const{destination:n,pipeOptions:{from:i,to:s,unpipeSignal:o}={}}=md(e,t,...r);return{destination:n,destinationStream:eo(n,s),from:i,unpipeSignal:o}}catch(e){return{destinationError:e}}},md=(e,t,r,...n)=>{if(Array.isArray(r)){return{destination:t(gd,e)(r,...n),pipeOptions:e}}if("string"==typeof r||r instanceof URL){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');const[i,s,o]=jn(r,...n);return{destination:t(gd)(i,s,o),pipeOptions:o}}if(ro.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},gd=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),bd=(e,t)=>{try{return{sourceStream:to(e,t)}}catch(e){return{sourceError:e}}},yd=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(Jh(e),n):void 0!==t?(Yh(r),t):void 0,Dd=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>eu({error:e,command:wd,escapedCommand:wd,fileDescriptors:t,options:r,startTime:n,isSync:!1}),wd="source.pipe(destination)",vd=async e=>{const[{status:t,reason:r,value:n=r},{status:i,reason:s,value:o=s}]=await e;if(o.pipedFrom.includes(n)||o.pipedFrom.push(n),"rejected"===i)throw o;if("rejected"===t)throw n;return o},Ed=(e,t)=>{const r=xh([e]);return Vh(r,t),Sd.set(t,r),r},Fd=(e,t)=>{const r=Sd.get(t);return r.add(e),r},Cd=async e=>{try{await(0,Sh.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Sd.delete(e)},Sd=new WeakMap,xd=2,Od=1,_d=(e,t)=>void 0===e?[]:[Ad(e,t)],Ad=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:i,startTime:s})=>{await(0,fn.aborted)(e,t),await r.remove(t);const o=new Error("Pipe canceled by `unpipeSignal` option.");throw Dd({error:o,fileDescriptors:n,sourceOptions:i,startTime:s})},Td=(e,...t)=>{if(Tn(t[0]))return Td.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:r,...n}=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...i)=>{const s=Pi(),{destination:o,destinationStream:a,destinationError:u,from:l,unpipeSignal:c}=pd(r,n,i),{sourceStream:h,sourceError:d}=bd(e,l),{options:f,fileDescriptors:p}=ro.get(e);return{sourcePromise:t,sourceStream:h,sourceOptions:f,sourceError:d,destination:o,destinationStream:a,destinationError:u,unpipeSignal:c,fileDescriptors:p,startTime:s}})(e,...t),i=Md({...n,destination:r});return i.pipe=Td.bind(void 0,{...e,source:r,sourcePromise:i,boundOptions:{}}),i},Md=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:i,destinationStream:s,destinationError:o,unpipeSignal:a,fileDescriptors:u,startTime:l})=>{const c=kd(e,i);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:i,sourceOptions:s,startTime:o})=>{const a=yd({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw Dd({error:a,fileDescriptors:i,sourceOptions:s,startTime:o})})({sourceStream:t,sourceError:n,destinationStream:s,destinationError:o,fileDescriptors:u,sourceOptions:r,startTime:l});const h=new AbortController;try{const e=((e,t,r)=>{const n=Sd.has(t)?Fd(e,t):Ed(e,t);return ho(e,xd,r.signal),ho(t,Od,r.signal),Cd(t),n})(t,s,h);return await Promise.race([vd(c),..._d(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:u,startTime:l})])}finally{h.abort()}},kd=(e,t)=>Promise.allSettled([e,t]),Id=e=>e,jd=()=>{},Bd=({contents:e})=>e,Pd=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Rd=e=>e.length;const $d={init:()=>({contents:[]}),convertChunk:{string:Id,buffer:Id,arrayBuffer:Id,dataView:Id,typedArray:Id,others:Id},getSize:()=>1,truncateChunk:jd,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:jd,finalize:Bd};const Nd=new TextEncoder,Ld=e=>new Uint8Array(e),Ud=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Wd=(e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(Hd(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},Gd=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:Hd(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},Hd=e=>zd**Math.ceil(Math.log(e)/Math.log(zd)),zd=2,Vd=()=>"resize"in ArrayBuffer.prototype,qd={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>Nd.encode(e),buffer:Ld,arrayBuffer:Ld,dataView:Ud,typedArray:Ud,others:Pd},getSize:Rd,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const i=Vd()?Gd(t,n):Wd(t,n);return new Uint8Array(i).set(e,r),i},getFinalChunk:jd,finalize:({contents:e,length:t})=>Vd()?e:e.slice(0,t)};const Yd=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Kd={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:Id,buffer:Yd,arrayBuffer:Yd,dataView:Yd,typedArray:Yd,others:Pd},getSize:Rd,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:Bd},Jd=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:i,preserveNewlines:s})=>{const o=new AbortController;return Zd(t,o),ef({stream:e,controller:o,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:i,shouldSplit:!e.readableObjectMode,preserveNewlines:s})},Zd=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Qd=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:i,allMixed:s})=>{const o=new AbortController;Xd(t,o,e);const a=e.readableObjectMode&&!s;return ef({stream:e,controller:o,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!i})},Xd=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},ef=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})=>{const a=(0,$s.on)(e,"data",{signal:t.signal,highWaterMark:rf,highWatermark:rf});return nf({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})},tf=(0,zl.getDefaultHighWaterMark)(!0),rf=tf,nf=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o}){const a=sf({binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o});try{for await(const[t]of e)yield*Fc(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*Cc(a)}},sf=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:i})=>[hc(e,r,!t),Vl(e,i,!n,{})].filter(Boolean),of=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:i,maxBuffer:s,lines:o,allMixed:a,stripFinalNewline:u,verboseInfo:l,streamInfo:{fileDescriptors:c}})=>{if(jc({stdioItems:c[r]?.stdioItems,encoding:n,verboseInfo:l,fdNumber:r})){(async(e,t,r)=>{for await(const n of e)Rc(t)||$c(n,r)})(Qd({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:a}),e,l)}if(!i)return void await af(e);const h=Hl(u,r),d=Qd({stream:e,onStreamEnd:t,lines:o,encoding:n,stripFinalNewline:h,allMixed:a});return uf({stream:e,iterable:d,fdNumber:r,encoding:n,maxBuffer:s,lines:o})},af=async e=>{await(0,os.setImmediate)(),null===e.readableFlowing&&e.resume()},uf=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:i,maxBuffer:s,lines:o})=>{try{return t||o?await async function(e,t){return Pa(e,$d,t)}(r,{maxBuffer:s}):"buffer"===i?new Uint8Array(await async function(e,t){return Pa(e,qd,t)}(r,{maxBuffer:s})):await async function(e,t){return Pa(e,Kd,t)}(r,{maxBuffer:s})}catch(r){return cf((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:i,fdNumber:s})=>{if(!(e instanceof Wa))throw e;if("all"===s)return e;const o=Ga(r,n,i);throw e.maxBufferInfo={fdNumber:s,unit:o},t.destroy(),e})({error:r,stream:e,readableObjectMode:t,lines:o,encoding:i,fdNumber:n}))}},lf=async e=>{try{return await e}catch(e){return cf(e)}},cf=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===Pn.call(t)?new Uint8Array(e):e;var t},hf=async(e,t,r,{isSameDirection:n,stopOnExit:i=!1}={})=>{const s=df(e,r),o=new AbortController;try{await Promise.race([...i?[r.exitPromise]:[],(0,Sh.finished)(e,{cleanup:!0,signal:o.signal})])}catch(e){s.stdinCleanedUp||mf(e,t,r,n)}finally{o.abort()}},df=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&ff(e,r,n),n},ff=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...i)=>{pf(t,r),n.call(e,...i)}},pf=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},mf=(e,t,r,n)=>{if(!gf(e,t,r,n))throw e},gf=(e,t,r,n=!0)=>r.propagating?Df(e)||yf(e):(r.propagating=!0,bf(r,t)===n?Df(e):yf(e)),bf=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,yf=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Df=e=>"EPIPE"===e?.code,wf=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l})=>{if(!e)return;const c=hf(e,t,l);if(bf(l,t))return void await c;const[h]=await Promise.all([of({stream:e,onStreamEnd:c,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l}),c]);return h},vf=({stdout:e,stderr:t,all:r},[,n,i])=>{const s=n||i;return s?n?i?{stream:r,buffer:s}:{stream:e,buffer:s}:{stream:t,buffer:s}:{stream:r,buffer:s}},Ef=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,Ff=(e,{verboseId:t})=>{xi(ji(e),t,"ipc")},Cf=async(e,t)=>(await Promise.allSettled([e]),t),Sf=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:i,timeoutDuration:s,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,stripFinalNewline:l,ipc:c,ipcInput:h},context:d,verboseInfo:f,fileDescriptors:p,originalStreams:m,onInternalError:g,controller:b})=>{const y=(async(e,t)=>{const[r,n]=await Gc(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,d),D={originalStreams:m,fileDescriptors:p,subprocess:e,exitPromise:y,propagating:!1},w=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>e.stdio.map(((e,u)=>wf({stream:e,fdNumber:u,encoding:t,buffer:r[u],maxBuffer:n[u],lines:i[u],allMixed:!1,stripFinalNewline:s,verboseInfo:o,streamInfo:a}))))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:f,streamInfo:D}),v=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>wf({...vf(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:i[1]||i[2],allMixed:Ef(e),stripFinalNewline:s,verboseInfo:o,streamInfo:a}))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:f,streamInfo:D}),E=[],F=(async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:i,verboseInfo:s})=>{if(!n)return i;const o=(({verbose:e})=>"full"===e.at(-1))(s),a=t.at(-1),u=r.at(-1);for await(const t of ch({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(Ha(0,i,u),i.push(t)),o&&Ff(t,s);return i})({subprocess:e,buffer:r,maxBuffer:n,ipc:c,ipcOutput:E,verboseInfo:f}),C=xf(m,e,D),S=Of(p,D);try{return await Promise.race([Promise.all([{},zc(y),Promise.all(w),v,F,ra(e,h),...C,...S]),g,_f(e,b),...Qo(e,s,d,b),...Ls({subprocess:e,cancelSignal:o,gracefulCancel:a,context:d,controller:b}),...Ko({subprocess:e,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,context:d,controller:b})])}catch(e){return d.terminationReason??="other",Promise.all([{error:e},y,Promise.all(w.map((e=>lf(e)))),lf(v),Cf(F,E),Promise.allSettled(C),Promise.allSettled(S)])}},xf=(e,t,r)=>e.map(((e,n)=>e===t.stdio[n]?void 0:hf(e,n,r))),Of=(e,t)=>e.flatMap((({stdioItems:e},r)=>e.filter((({value:e,stream:t=e})=>wa(t,{checkOpen:!1})&&!$i(t))).map((({type:e,value:n,stream:i=n})=>hf(i,r,t,{isSameDirection:Pu.has(e),stopOnExit:"native"===e}))))),_f=async(e,{signal:t})=>{const[r]=await(0,$s.once)(e,"error",{signal:t});throw r},Af=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const i=n.get(t),s=Xs();i.push(s);return{resolve:s.resolve.bind(s),promises:i}},Tf=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},Mf=async e=>{if(void 0!==e)try{await kf(e)}catch{}},kf=async e=>{await(0,Sh.finished)(e,{cleanup:!0,readable:!1,writable:!0})},If=async e=>{await(0,Sh.finished)(e,{cleanup:!0,readable:!0,writable:!1})},jf=async(e,t)=>{if(await e,t)throw t},Bf=(e,t,r)=>{r&&!yf(r)?e.destroy(r):t&&e.destroy()},Pf=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:i=!0,preserveNewlines:s=!0}={})=>{const o=i||ia.has(r),{subprocessStdout:a,waitReadableDestroy:u}=Rf(e,n,t),{readableEncoding:l,readableObjectMode:c,readableHighWaterMark:h}=$f(a,o),{read:d,onStdoutDataDone:f}=Nf({subprocessStdout:a,subprocess:e,binary:o,encoding:r,preserveNewlines:s}),p=new zl.Readable({read:d,destroy:(0,fn.callbackify)(Wf.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:u})),highWaterMark:h,objectMode:c,encoding:l});return Uf({subprocessStdout:a,onStdoutDataDone:f,readable:p,subprocess:e}),p},Rf=(e,t,r)=>{const n=to(e,t);return{subprocessStdout:n,waitReadableDestroy:Af(r,n,"readableDestroy")}},$f=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:tf},Nf=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:i})=>{const s=Xs(),o=Jd({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:i});return{read(){Lf(this,o,s)},onStdoutDataDone:s}},Lf=async(e,t,r)=>{try{const{value:n,done:i}=await t.next();i?r.resolve():e.push(n)}catch{}},Uf=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:i})=>{try{await If(e),await n,await Mf(i),await t,r.readable&&r.push(null)}catch(e){await Mf(i),Gf(r,e)}},Wf=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await Tf(r,t)&&(Gf(e,n),await jf(t,n))},Gf=(e,t)=>{Bf(e,e.readable,t)},Hf=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:i,waitWritableDestroy:s}=zf(e,r,t),o=new zl.Writable({...Vf(n,e,i),destroy:(0,fn.callbackify)(Jf.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:i,waitWritableDestroy:s})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return Kf(n,o),o},zf=(e,t,r)=>{const n=eo(e,t);return{subprocessStdin:n,waitWritableFinal:Af(r,n,"writableFinal"),waitWritableDestroy:Af(r,n,"writableDestroy")}},Vf=(e,t,r)=>({write:qf.bind(void 0,e),final:(0,fn.callbackify)(Yf.bind(void 0,e,t,r))}),qf=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},Yf=async(e,t,r)=>{await Tf(r,t)&&(e.writable&&e.end(),await t)},Kf=async(e,t,r)=>{try{await kf(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await If(e)}catch{}})(r),Zf(t,e)}},Jf=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},i)=>{await Tf(r,t),await Tf(n,t)&&(Zf(e,i),await jf(t,i))},Zf=(e,t)=>{Bf(e,e.writable,t)},Qf=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:i,binary:s=!0,preserveNewlines:o=!0}={})=>{const a=s||ia.has(r),{subprocessStdout:u,waitReadableDestroy:l}=Rf(e,n,t),{subprocessStdin:c,waitWritableFinal:h,waitWritableDestroy:d}=zf(e,i,t),{readableEncoding:f,readableObjectMode:p,readableHighWaterMark:m}=$f(u,a),{read:g,onStdoutDataDone:b}=Nf({subprocessStdout:u,subprocess:e,binary:a,encoding:r,preserveNewlines:o}),y=new zl.Duplex({read:g,...Vf(c,e,h),destroy:(0,fn.callbackify)(Xf.bind(void 0,{subprocessStdout:u,subprocessStdin:c,subprocess:e,waitReadableDestroy:l,waitWritableFinal:h,waitWritableDestroy:d})),readableHighWaterMark:m,writableHighWaterMark:c.writableHighWaterMark,readableObjectMode:p,writableObjectMode:c.writableObjectMode,encoding:f});return Uf({subprocessStdout:u,onStdoutDataDone:b,readable:y,subprocess:e,subprocessStdin:c}),Kf(c,y,u),y},Xf=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:i,waitWritableDestroy:s},o)=>{await Promise.all([Wf({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},o),Jf({subprocessStdin:t,subprocess:r,waitWritableFinal:i,waitWritableDestroy:s},o)])},ep=(e,t,{from:r,binary:n=!1,preserveNewlines:i=!1}={})=>{const s=n||ia.has(t),o=to(e,r),a=Jd({subprocessStdout:o,subprocess:e,binary:s,shouldEncode:!0,encoding:t,preserveNewlines:i});return tp(a,o,e)},tp=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},rp=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=Pf.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=Hf.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=Qf.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=ep.bind(void 0,e,t),e[Symbol.asyncIterator]=ep.bind(void 0,e,t,{})},np=(async()=>{})().constructor.prototype,ip=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(np,e)])),sp=(e,t,r,n)=>{const{file:i,commandArguments:s,command:o,escapedCommand:a,startTime:u,verboseInfo:l,options:c,fileDescriptors:h}=op(e,t,r),{subprocess:d,promise:f}=up({file:i,commandArguments:s,options:c,startTime:u,verboseInfo:l,command:o,escapedCommand:a,fileDescriptors:h});return d.pipe=Td.bind(void 0,{source:d,sourcePromise:f,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of ip){const i=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}})(d,f),ro.set(d,{options:c,fileDescriptors:h}),d},op=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=es(e,t,r);try{const{file:a,commandArguments:u,options:l}=ca(e,t,r),c=ap(l),h=((e,t)=>Sl(Ch,e,0,!1))(c);return{file:a,commandArguments:u,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}}catch(e){throw uu(e,s,o),e}},ap=({timeout:e,signal:t,...r})=>{if(void 0!==t)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...r,timeoutDuration:e}},up=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:i,command:s,escapedCommand:o,fileDescriptors:a})=>{let u;try{u=(0,Kr.spawn)(e,t,r)}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,verboseInfo:o})=>{Rl(n);const a=new Kr.ChildProcess;gh(a,n),Object.assign(a,{readable:yh,writable:Dh,duplex:wh});const u=eu({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:!1});return{subprocess:a,promise:vh(u,o,i)}})({error:e,command:s,escapedCommand:o,fileDescriptors:a,options:r,startTime:n,verboseInfo:i})}const l=new AbortController;(0,$s.setMaxListeners)(Number.POSITIVE_INFINITY,l.signal);const c=[...u.stdio];((e,t,r)=>{const n=new Map;for(const[i,{stdioItems:s,direction:o}]of Object.entries(t)){for(const{stream:t}of s.filter((({type:e})=>Pu.has(e))))Zh(e,t,o,i);for(const{stream:t}of s.filter((({type:e})=>!Pu.has(e))))Xh({subprocess:e,stream:t,direction:o,fdNumber:i,pipeGroups:n,controller:r})}for(const[e,t]of n.entries()){const r=1===t.length?t[0]:xh(t);Vh(r,e)}})(u,a,l),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const i=cd((()=>{e.kill()}));(0,$s.addAbortListener)(n,(()=>{i()}))})(u,r,l);const h={},d=Xs();u.kill=Is.bind(void 0,{kill:u.kill.bind(u),options:r,onInternalError:d,context:h,controller:l}),u.all=(({stdout:e,stderr:t},{all:r})=>r&&(e||t)?xh([e,t].filter(Boolean)):void 0)(u,r),rp(u,r),((e,{ipc:t})=>{Object.assign(e,mh(e,!1,t))})(u,r);return{subprocess:u,promise:lp({subprocess:u,options:r,startTime:n,verboseInfo:i,fileDescriptors:a,originalStreams:c,command:s,escapedCommand:o,context:h,onInternalError:d,controller:l})}},lp=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:i,originalStreams:s,command:o,escapedCommand:a,context:u,onInternalError:l,controller:c})=>{const[h,[d,f],p,m,g]=await Sf({subprocess:e,options:t,context:u,verboseInfo:n,fileDescriptors:i,originalStreams:s,onInternalError:l,controller:c});c.abort(),l.resolve();const b=p.map(((e,r)=>Gl(e,t,r))),y=Gl(m,t,"all"),D=cp({errorInfo:h,exitCode:d,signal:f,stdio:b,all:y,ipcOutput:g,context:u,options:t,command:o,escapedCommand:a,startTime:r});return du(D,n,t)},cp=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,context:o,options:a,command:u,escapedCommand:l,startTime:c})=>"error"in e?tu({error:e.error,command:u,escapedCommand:l,timedOut:"timeout"===o.terminationReason,isCanceled:"cancel"===o.terminationReason||"gracefulCancel"===o.terminationReason,isGracefullyCanceled:"gracefulCancel"===o.terminationReason,isMaxBuffer:e.error instanceof Wa,isForcefullyTerminated:o.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,options:a,startTime:c,isSync:!1}):Xa({command:u,escapedCommand:l,stdio:n,all:i,ipcOutput:s,options:a,startTime:c}),hp=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map((([t,r])=>[t,dp(t,e[t],r)])));return{...e,...r}},dp=(e,t,r)=>fp.has(e)&&Tn(t)&&Tn(r)?{...t,...r}:r,fp=new Set(["env",...Xi]),pp=(e,t,r,n)=>{const i=(e,t,n)=>pp(e,t,r,n),s=(...s)=>mp({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:i},...s);return void 0!==n&&n(s,i,t),s},mp=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:i},s,...o)=>{if(Tn(s))return i(e,hp(r,s),n);const{file:a,commandArguments:u,options:l,isSync:c}=gp({mapArguments:e,firstArgument:s,nextArguments:o,deepOptions:t,boundOptions:r});return c?((e,t,r)=>{const{file:n,commandArguments:i,command:s,escapedCommand:o,startTime:a,verboseInfo:u,options:l,fileDescriptors:c}=Jc(e,t,r),h=eh({file:n,commandArguments:i,options:l,command:s,escapedCommand:o,verboseInfo:u,fileDescriptors:c,startTime:a});return du(h,u,l)})(a,u,l):sp(a,u,l,i)},gp=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:i})=>{const s=(o=t,Array.isArray(o)&&Array.isArray(o.raw)?((e,t)=>{let r=[];for(const[n,i]of e.entries())r=Yn({templates:e,expressions:t,tokens:r,index:n,template:i});if(0===r.length)throw new TypeError("Template script must not be empty");const[n,...i]=r;return[n,i,{}]})(t,r):[t,...r]);var o;const[a,u,l]=jn(...s),c=hp(hp(n,i),l),{file:h=a,commandArguments:d=u,options:f=c,isSync:p=!1}=e({file:a,commandArguments:u,options:c});return{file:h,commandArguments:d,options:f,isSync:p}},bp=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);const[r,...n]=yp(e);return{file:r,commandArguments:n}},yp=e=>{if("string"!=typeof e)throw new TypeError(`The command must be a string: ${String(e)}.`);const t=e.trim();if(""===t)return[];const r=[];for(const e of t.split(Dp)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},Dp=/ +/g,wp=({options:e})=>({...vp(e),isSync:!0}),vp=e=>({options:{...Ep(e),...e}}),Ep=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},Fp=pp((()=>({}))),{sendMessage:Cp,getOneMessage:Sp,getEachMessage:xp,getCancelSignal:Op}=(pp((()=>({isSync:!0}))),pp((({file:e,commandArguments:t})=>bp(e,t))),pp((({file:e,commandArguments:t})=>({...bp(e,t),isSync:!0}))),pp((({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}})),pp((({options:e})=>vp(e)),{},{preferLocal:!0},((e,t,r)=>{e.sync=t(wp,r),e.s=e.sync})),(()=>{const e=Yt,t=!0,r=void 0!==Yt.channel;return{...mh(e,t,r),getCancelSignal:Wo.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}})());var _p=n(5600);function Ap({vue:e,react:t}){const r=t&&e||!t&&!e?"base":t?"react":"vue";return{eslintConfig:{extends:`@nice-move/eslint-config-${r}`},devDependencies:{[`@nice-move/eslint-config-${r}`]:xn["eslint-config-base"],eslint:xn.eslint}}}const Tp="Add/Reset project dependencies";function Mp(){const{dependencies:e={},devDependencies:t={}}=nn();return{instructions:!1,optionsPerPage:20,message:Tp,name:"Dependencies",type:e=>!1===e?null:"multiselect",choices:["tailwindcss","react","vue","typescript","commitlint","eslint","stylelint","prettier","syncpack","garou","ava","playwright","@bring-it/sftp","@bring-it/npm","best-shot"].map((r=>({title:r,value:r,selected:r in e||r in t}))),format:e=>{if(e.length>0)return t=>function(e,t={}){return(new Ut.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:u="garou"in n,prettier:l="prettier"in n,react:c="react"in i,stylelint:h="stylelint"in n,syncpack:d="syncpack"in n,typescript:f="typescript"in n,vue:p="vue"in i,tailwindcss:m="tailwindcss"in i||"tailwindcss"in n,playwright:g,"@bring-it/sftp":b="@bring-it/sftp"in n,"@bring-it/npm":y="@bring-it/npm"in n,"best-shot":D="best-shot"in n}=t,w=a||h||l||u,v=[w?"npm run lint:staged":void 0,f?"npm run lint:type":void 0,s?"npm test":void 0].filter(Boolean);return v.length>0&&await(new Ut.Text).onDone((()=>["#!/bin/sh","",...v,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new Ut.Text).onDone((()=>["#!/bin/sh","","npx --no-install nice-move lint commit",""].join("\n"))).output(".githooks/commit-msg"),d&&await(new Ut.Text).onDone((()=>["// @ts-check","","import defineConfig from '@nice-move/syncpack-config';","","export default defineConfig(import.meta.url, {});"].join("\n"))).output("syncpack.config.mjs"),f&&await(new Ut.Json).config({pretty:!0}).onDone((()=>({extends:"@nice-move/tsconfig/base.json",include:["./"]}))).output("tsconfig.json"),hn.all([r,e&&(w||s||o||g||f)?{scripts:{prepare:"nice-move git hooks"}}:void 0,u?{devDependencies:{garou:xn.garou},"nice-move":{"import-groups":["nice-move-preset"]}}:void 0,f?{devDependencies:{typescript:xn.typescript,"@nice-move/tsconfig":xn.tsconfig},scripts:{"lint:type":"tsc --noEmit"}}:void 0,w||o?{devDependencies:{"@nice-move/cli":xn.cli}}:void 0,w?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,s?{devDependencies:{ava:xn.ava,...a?{"eslint-plugin-ava":xn["eslint-plugin-ava"]}:void 0},scripts:{prepublishOnly:r.private?void 0:v.join(" && ")||void 0,test:"ava --fail-fast",snapshot:"ava --fail-fast -u"}}:void 0,a?Ap({react:c,vue:p}):void 0,h?{devDependencies:{"@nice-move/stylelint-config":xn["stylelint-config"],stylelint:xn.stylelint},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,d?{devDependencies:{"@nice-move/syncpack-config":xn["syncpack-config"],syncpack:xn.syncpack},scripts:{"lint:version":"syncpack lint","version:pin":"syncpack fix-mismatches"}}:void 0,l?{devDependencies:{"@nice-move/prettier-config":xn["prettier-config"],prettier:xn.prettier},prettier:"@nice-move/prettier-config"}:void 0,c?{dependencies:{react:xn.react,"react-dom":xn["react-dom"]},peerDependencies:{"@types/react":xn["@types/react"]}}:void 0,p?{dependencies:{vue:xn.vue}}:void 0,m?{dependencies:{tailwindcss:xn.tailwindcss},devDependencies:{"prettier-plugin-tailwindcss":l?xn["prettier-plugin-tailwindcss"]:void 0}}:void 0,g?{scripts:{"pretest:e2e":"npm link @playwright/test","test:e2e":"playwright test"}}:void 0,b?{devDependencies:{"@bring-it/sftp":xn["@bring-it/sftp"]}}:void 0,y?{devDependencies:{"@bring-it/npm":xn["@bring-it/npm"]}}:void 0,D?{devDependencies:{"best-shot":xn["best-shot"]},"nice-move":{globals:{BEST_SHOT:"readonly"}},scripts:{build:"best-shot prod"}}:void 0].filter(Boolean))})).output().logger(Tp).catch(console.warn)}(t,Object.fromEntries(e.map((e=>[e,!0]))))}}}const kp="Initialize as git repository";function Ip(){return Fp("git",["init"]).then((e=>(console.log(Fr("\u221a"),kp),e)),(e=>{throw console.log(Er("\xd7"),kp),e}))}function jp({gitSupported:e,isRoot:t}){return{message:kp,name:"GitInit",initial:!0,type:r=>!1===r||!e||t?null:"confirm",format(e){if(!0===e)return Ip}}}var Bp=n(1416);var Pp=n(6756);const Rp=/(?<=^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 $p({cwd:e,pkg:{author:t,description:r,license:n,name:i,private:s,version:o,workspaces:a}={}}){return[{format:tn,initial:(0,Zr.parse)(e).base,message:"package.json \xbb name",name:"name",type:e=>!1===e||i?null:"text",validate:e=>Pp(tn(e)||"").validForNewPackages},{format:tn,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:e=>!1===e||o?null:"text",validate:e=>Rp.test(tn(e)||"")},{format:tn,message:"package.json \xbb description",name:"description",type:e=>!1===e||r?null:"text"},{active:"MIT",format:e=>e?"MIT":"UNLICENSED",inactive:"UNLICENSED",initial:!0,message:"package.json \xbb license",name:"license",type:e=>!1===e||n?null:"toggle"},{type:e=>!1===e||("string"==typeof t?t:t&&t.name)?null:"text",format:Bp,initial:await rn(t),message:"package.json \xbb author",name:"author"},{active:"true",inactive:"false",initial:!1,message:"package.json \xbb private",name:"private",format:e=>!1===e?void 0:e,type:e=>!1===e||void 0!==s?null:"toggle"},{active:"recommend",inactive:"false",initial:!1,message:"package.json \xbb workspaces",name:"workspaces",format:e=>e?["packages/*","tools/*"]:void 0,type:(e,t)=>{return!1===e||!1===s||!1===t.private||(r=a&&a.packages?a.packages:a,Array.isArray(r)&&r.length>0)?null:"toggle";var r}}]}async function Np(){const e=await Fp("git",["--version"]).then((({stdout:e})=>Boolean(e))),t=e&&await Fp("git",["rev-parse","--git-dir"]).then((({stdout:e})=>".git"===e)).catch((()=>!1)),r=!!t&&await Fp("git",["status","--short"]).then((({stdout:e})=>e.length>0)),n=0===(0,Jr.readdirSync)(process.cwd()).filter((e=>".git"!==e)).length,i=nn(),s=process.cwd(),o={gitSupported:e,isRoot:t,isDirty:r,isEmpty:n,pkg:i,cwd:s},a=await $p(o);return _p([{active:"do it",inactive:"cancel",message:!0===r?"Repository not clean":"Workspace not empty",name:"okay",type:()=>n||!1===r?null:"toggle"},jp(o),...a,Mp()],{onCancel(){throw new Error("cancel")}}).then((({okay:e,...t})=>{if(!1===e)throw new Error("cancel");return Object.entries(t)})).then((e=>{const t=a.map((({name:e})=>e)),r=Object.fromEntries(e.filter((([e])=>t.includes(e))));return{...Object.fromEntries(e.filter((([e])=>!t.includes(e)))),info:r,options:o}}))}process.on("SIGINT",(()=>{})),new class{constructor(e,r){this.root=r;const{bin:n,homepage:i,name:s="cheetor",repository:{url:o=""}={},version:a}="string"==typeof e?JSON.parse((0,t.readFileSync)(new URL(e,r))):e;this.homepage=i,this.repository=o.includes("github.com")?o.replace(/\.git$/,""):"";const u=$t(process.argv.slice(2)).strict().alias("help","h").alias("version","v").hide("help").version(a).hide("version").detectLocale(!1),l=function(e,t){if("string"==typeof e||!e)return t;const r=Object.keys(e);return 1===r.length&&r[0]}(n,s);l&&u.scriptName(l),this.cli=Promise.resolve(u)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then((t=>t.command(...e))),this}commandFrom(e){return this.cli=this.cli.then((async t=>{const r=await Nt(e,this.root);return t.command(r)})),this}commandSafe(e){return this.cli=this.cli.then((t=>function(e,t){return Nt(e,t).catch((e=>{if("ERR_MODULE_NOT_FOUND"===e.code&&e.message.endsWith(` imported from ${(0,p.fileURLToPath)(import.meta.url)}`))return!1;throw e}))}(e,this.root).then((e=>e&&e.command?t.command(e):t)))),this}commandSmart(e){return this.cli=this.cli.then((async t=>{const r=e();return r&&r.command?t.command(r):t})),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then((t=>t.middleware(...e))),this}setup(e){return this.cli.then((e=>Lt(e,this))).then((t=>"function"==typeof e?e(t.parse()):t.parse()))}}("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").setup((()=>{(async function(){const{Dependencies:e,GitInit:t,Install:r,info:n,options:{isRoot:i}={}}=await Np();console.log("-".repeat(32));const s=[t,()=>_n(n),An,cn,Sr,()=>t||i?an():void 0,()=>e?e(t||i):void 0,r].filter((e=>"function"==typeof e));for(const e of s){const t=await e();t&&t.catch&&t.catch((e=>{console.warn(e.message)}))}})().catch((e=>{if("cancel"!==e.message)throw e}))}))})();
|
|
2
|
+
import{createRequire as e}from"module";var t={2701:(e,t,r)=>{e=r.nmd(e);const n=(e,t)=>(...r)=>`\x1b[${e(...r)+t}m`,i=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};5;${n}m`},s=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};2;${n[0]};${n[1]};${n[2]}m`},o=e=>e,a=(e,t,r)=>[e,t,r],u=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let l;const c=(e,t,n,i)=>{void 0===l&&(l=r(9307));const s=i?10:0,o={};for(const[r,i]of Object.entries(l)){const a="ansi16"===r?"ansi":r;r===t?o[a]=e(n,s):"object"==typeof i&&(o[a]=e(i[t],s))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n))t[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",u(t.color,"ansi",(()=>c(n,"ansi16",o,!1))),u(t.color,"ansi256",(()=>c(i,"ansi256",o,!1))),u(t.color,"ansi16m",(()=>c(s,"rgb",a,!1))),u(t.bgColor,"ansi",(()=>c(n,"ansi16",o,!0))),u(t.bgColor,"ansi256",(()=>c(i,"ansi256",o,!0))),u(t.bgColor,"ansi16m",(()=>c(s,"rgb",a,!0))),t}})},1813:e=>{e.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},1364:(e,t,r)=>{const n=r(3027);e.exports=(e,t)=>new n(e,t)},3027:(e,t,r)=>{const n=r(6928),i=r(8611),s=r(5692),o=r(6173),a=r(3480),u=r(3106),{URL:l}=r(7016),c=r(5495),h=["gzip","deflate","br"];e.exports=class{constructor(e,t="GET"){return this.url="string"==typeof e?new l(e):e,this.method=t,this.data=null,this.sendDataAs=null,this.reqHeaders={},this.streamEnabled=!1,this.compressionEnabled=!1,this.timeoutTime=null,this.coreOptions={},this.maxRedirects=0,this.resOptions={maxBuffer:5e7},this}followRedirects(e){return this.maxRedirects=e,this}query(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.url.searchParams.append(t,e[t])})):this.url.searchParams.append(e,t),this}path(e){return this.url.pathname=n.join(this.url.pathname,e),this}body(e,t){return this.sendDataAs="object"!=typeof e||t||Buffer.isBuffer(e)?t?t.toLowerCase():"buffer":"json",this.data="form"===this.sendDataAs?a.stringify(e):"json"===this.sendDataAs?JSON.stringify(e):e,this}header(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.reqHeaders[t.toLowerCase()]=e[t]})):this.reqHeaders[e.toLowerCase()]=t,this}timeout(e){return this.timeoutTime=e,this}option(e,t){return this.coreOptions[e]=t,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(((e,t)=>{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.replace("[","").replace("]",""),port:this.url.port,path:this.url.pathname+(null===this.url.search?"":this.url.search),method:this.method,headers:this.reqHeaders,maxRedirects:this.maxRedirects},this.coreOptions);let n;const a=((e,t)=>{let r,n;if(t<=0?(r=i.request,n=s.request):(r=o.http.request,n=o.https.request),"http:"===e)return r;if("https:"===e)return n;throw new Error("Bad URL protocol: "+e)})(this.url.protocol,this.maxRedirects);n=a(r,(r=>{let n,i=r;this.compressionEnabled&&("gzip"===r.headers["content-encoding"]?i=r.pipe(u.createGunzip()):"deflate"===r.headers["content-encoding"]?i=r.pipe(u.createInflate()):"br"===r.headers["content-encoding"]&&(i=r.pipe(u.createBrotliDecompress()))),this.streamEnabled?e(i):(n=new c(r,this.resOptions),i.on("error",(e=>{t(e)})),i.on("aborted",(()=>{t(new Error("Server aborted request"))})),i.on("data",(e=>{n._addChunk(e),null!==this.resOptions.maxBuffer&&n.body.length>this.resOptions.maxBuffer&&(i.destroy(),t("Received a response which was longer than acceptable when buffering. ("+this.body.length+" bytes)"))})),i.on("end",(()=>{e(n)})))})),this.timeoutTime&&n.setTimeout(this.timeoutTime,(()=>{n.abort(),this.streamEnabled||t(new Error("Timeout reached"))})),n.on("error",(e=>{t(e)})),this.data&&n.write(this.data),n.end()}))}}},5495:e=>{e.exports=class{constructor(e,t){this.coreRes=e,this.resOptions=t,this.body=Buffer.alloc(0),this.headers=e.headers,this.statusCode=e.statusCode}_addChunk(e){this.body=Buffer.concat([this.body,e])}async json(){return 204===this.statusCode?null:JSON.parse(this.body)}async text(){return this.body.toString()}}},6181:(e,t,r)=>{const n=r(2701),{stdout:i,stderr:s}=r(5421),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(2597),{isArray:u}=Array,l=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null);class h{constructor(e){return d(e)}}const d=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;e.level=void 0===t.level?r:t.level})(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=h,t.template};function f(e){return d(e)}for(const[e,t]of Object.entries(n))c[e]={get(){const r=b(this,g(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};c.visible={get(){const e=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p)c[e]={get(){const{level:t}=this;return function(...r){const i=g(n.color[l[t]][e](...r),n.color.close,this._styler);return b(this,i,this._isEmpty)}}};for(const e of p){c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const i=g(n.bgColor[l[t]][e](...r),n.bgColor.close,this._styler);return b(this,i,this._isEmpty)}}}}const m=Object.defineProperties((()=>{}),{...c,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),g=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},b=(e,t,r)=>{const n=(...e)=>u(e[0])&&u(e[0].raw)?y(n,w(n,...e)):y(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,m),n._generator=e,n._styler=t,n._isEmpty=r,n},y=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(-1!==t.indexOf("\x1b"))for(;void 0!==r;)t=o(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=a(t,i,n,s)),n+t+i};let D;const w=(e,...t)=>{const[n]=t;if(!u(n)||!u(n.raw))return t.join(" ");const i=t.slice(1),s=[n.raw[0]];for(let e=1;e<n.length;e++)s.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===D&&(D=r(826)),D(e,s.join(""))};Object.defineProperties(f.prototype,c);const v=f();v.supportsColor=i,v.stderr=f({level:s?s.level:0}),v.stderr.supportsColor=s,e.exports=v},826:e=>{const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,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(e){const t="u"===e[0],r="{"===e[1];return t&&!r&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):s.get(e)||e}function a(e,t){const r=[],s=t.trim().split(/\s*,\s*/g);let a;for(const t of s){const s=Number(t);if(Number.isNaN(s)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(a[2].replace(i,((e,t,r)=>t?o(t):r)))}else r.push(s)}return r}function u(e){r.lastIndex=0;const t=[];let n;for(;null!==(n=r.exec(e));){const e=n[1];if(n[2]){const r=a(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function l(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const[e,t]of Object.entries(r))if(Array.isArray(t)){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,r)=>{const n=[],i=[];let s=[];if(r.replace(t,((t,r,a,c,h,d)=>{if(r)s.push(o(r));else if(c){const t=s.join("");s=[],i.push(0===n.length?t:l(e,n)(t)),n.push({inverse:a,styles:u(c)})}else if(h){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(l(e,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},2597:e=>{e.exports={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.substr(s),o},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let i=0,s="";do{const o="\r"===e[n-1];s+=e.substr(i,(o?n-1:n)-i)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.substr(i),s}}},1473:(e,t,r)=>{const n=Object.assign({},r(7256)),i=Object.keys(n);Object.defineProperty(n,"random",{get(){const e=Math.floor(Math.random()*i.length),t=i[e];return n[t]}}),e.exports=n},8138:(e,t,r)=>{const n=r(9878),i={};for(const e of Object.keys(n))i[n[e]]=e;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"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e]))throw new Error("missing channels property: "+e);if(!("labels"in s[e]))throw new Error("missing channel labels property: "+e);if(s[e].labels.length!==s[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=s[e];delete s[e].channels,delete s[e].labels,Object.defineProperty(s[e],"channels",{value:t}),Object.defineProperty(s[e],"labels",{value:r})}s.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i;let a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+s)/2;return u=s===i?0:l<=.5?o/(s+i):o/(2-s-i),[a,100*u,100*l]},s.rgb.hsv=function(e){let t,r,n,i,s;const o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),h=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,s=0):(s=c/l,t=h(o),r=h(a),n=h(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*l]},s.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=s.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n);return[100*((1-t-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(e){const t=i[e];if(t)return t;let r,s=1/0;for(const t of Object.keys(n)){const i=n[t],u=(a=i,((o=e)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);u<s&&(s=u,r=t)}var o,a;return r},s.keyword.rgb=function(e){return n[e]},s.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/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*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){const t=s.rgb.xyz(e);let r=t[0],n=t[1],i=t[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(e){const t=e[0]/360,r=e[1]/100,n=e[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,u=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-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,u[e]=255*o;return u},s.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[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[t,100*(0===n?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[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,[t,100*s,100*o]},s.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),a=1-n;s=6*t-o,1&o&&(s=1-s);const u=r+s*(a-r);let l,c,h;switch(o){default:case 6:case 0:l=a,c=u,h=r;break;case 1:l=u,c=a,h=r;break;case 2:l=r,c=a,h=u;break;case 3:l=r,c=u,h=a;break;case 4:l=u,c=r,h=a;break;case 5:l=a,c=r,h=u}return[255*l,255*c,255*h]},s.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(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(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,s,o;return i=3.2406*t+-1.5372*r+-.4986*n,s=-.9689*t+1.8758*r+.0415*n,o=.0557*t+-.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(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+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*(t-r),200*(r-n)]},s.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const i=r**3,s=t**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},s.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=null===t?s.rgb.hsv(e)[2]:t;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(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s;let a,u;return a=o<1?s/(1-o):0,u=o<=0?0:i===t?(r-n)/o%6:i===r?2+(n-t)/o:4+(t-r)/o,u/=6,u%=1,[360*u,100*o,100*a]},s.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},s.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=t%1*6,o=s%1,a=1-o;let u=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 u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},s.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},s.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},s.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},s.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=function(e){return[0,0,e[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},9307:(e,t,r)=>{const n=r(8138),i=r(5214),s={};Object.keys(n).forEach((e=>{s[e]={},Object.defineProperty(s[e],"channels",{value:n[e].channels}),Object.defineProperty(s[e],"labels",{value:n[e].labels});const t=i(e);Object.keys(t).forEach((r=>{const n=t[r];s[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),s[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=s},5214:(e,t,r)=>{const n=r(8138);function i(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),i=Object.keys(n[e]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=t[n];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,r.unshift(n))}}return t}function s(e,t){return function(r){return t(e(r))}}function o(e,t){const r=[t[e].parent,e];let i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=s(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}e.exports=function(e){const t=i(e),r={},n=Object.keys(t);for(let e=n.length,i=0;i<e;i++){const e=n[i];null!==t[e].parent&&(r[e]=o(e,t))}return r}},9878:e=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},526:(e,t,r)=>{const n=r(5317),i=r(4705),s=r(2369);function o(e,t,r){const o=i(e,t,r),a=n.spawn(o.command,o.args,o.options);return s.hookChildProcess(a,o),a}e.exports=o,e.exports.spawn=o,e.exports.sync=function(e,t,r){const o=i(e,t,r),a=n.spawnSync(o.command,o.args,o.options);return a.error=a.error||s.verifyENOENTSync(a.status,o),a},e.exports._parse=i,e.exports._enoent=s},2369:e=>{const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return t&&1===e&&!n.file?r(n.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const i=e.emit;e.emit=function(t,s){if("exit"===t){const t=n(s,r);if(t)return i.call(e,"error",t)}return i.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},4705:(e,t,r)=>{const n=r(6928),i=r(6694),s=r(1192),o=r(3179),a="win32"===process.platform,u=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(e){if(!a)return e;const t=function(e){e.file=i(e);const t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}(e),r=!u.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=n.normalize(e.command),e.command=s.command(e.command),e.args=e.args.map((e=>s.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}e.exports=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:c(n)}},1192:e=>{const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e=e.replace(t,"^$1")},e.exports.argument=function(e,r){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),r&&(e=e.replace(t,"^$1")),e}},3179:(e,t,r)=>{const n=r(9896),i=r(600);e.exports=function(e){const t=Buffer.alloc(150);let r;try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return i(t.toString())}},6694:(e,t,r)=>{const n=r(6928),i=r(1905),s=r(9695);function o(e,t){const r=e.options.env||process.env,o=process.cwd(),a=null!=e.options.cwd,u=a&&void 0!==process.chdir&&!process.chdir.disabled;if(u)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=i.sync(e.command,{path:r[s({env:r})],pathExt:t?n.delimiter:void 0})}catch(e){}finally{u&&process.chdir(o)}return l&&(l=n.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return o(e)||o(e,!0)}},6800:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(415)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},415:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,s,o=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];r=s.call(n,t),e.splice(o,1),o--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(7821),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},7124:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(6800):e.exports=r(7698)},7698:(e,t,r)=>{const n=r(2018),i=r(9023);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="\x1b[3"+(t<8?t:"8;5;"+t),s=` ${i};1m${n} \x1b[0m`;r[0]=s+r[0].split("\n").join("\n"+s),r.push(i+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(1754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(415)(t);const{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},4579:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var i={};return r.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&r.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(s,r)(e[s],t[s],r):i[s]=n(t[s],r))})),i}function u(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?s.arrayMerge(e,r,s):a(e,r,s):n(r,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var l=u;e.exports=l},1698:(e,t,r)=>{var n;e.exports=function(){if(!n){try{n=r(7124)("follow-redirects")}catch(e){}"function"!=typeof n&&(n=function(){})}n.apply(null,arguments)}},6173:(e,t,r)=>{var n=r(7016),i=n.URL,s=r(8611),o=r(5692),a=r(2203).Writable,u=r(2613),l=r(1698),c=!1;try{u(new i)}catch(e){c="ERR_INVALID_URL"===e.code}var h=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],d=["abort","aborted","connect","error","socket","timeout"],f=Object.create(null);d.forEach((function(e){f[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var p=O("ERR_INVALID_URL","Invalid URL",TypeError),m=O("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),g=O("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",m),b=O("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=O("ERR_STREAM_WRITE_AFTER_END","write after end"),D=a.prototype.destroy||E;function w(e,t){a.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof m?e:new m({cause:e}))}},this._performRequest()}function v(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var s=n+":",o=r[s]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){var a;return a=e,i&&a instanceof i?e=S(e):A(e)?e=S(F(e)):(o=n,n=C(e),e={protocol:s}),T(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,A(n.host)||A(n.hostname)||(n.hostname="::1"),u.equal(n.protocol,s,"protocol mismatch"),l("options",n),new w(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function E(){}function F(e){var t;if(c)t=new i(e);else if(!A((t=C(n.parse(e))).protocol))throw new p({input:e});return t}function C(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new p({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new p({input:e.href||e});return e}function S(e,t){var r=t||{};for(var n of h)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function x(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function O(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function _(e,t){for(var r of d)e.removeListener(r,f[r]);e.on("error",E),e.destroy(t)}function A(e){return"string"==typeof e||e instanceof String}function T(e){return"function"==typeof e}w.prototype=Object.create(a.prototype),w.prototype.abort=function(){_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},w.prototype.destroy=function(e){return _(this._currentRequest,e),D.call(this,e),this},w.prototype.write=function(e,t,r){if(this._ending)throw new y;if(!A(e)&&("object"!=typeof(n=e)||!("length"in n)))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;T(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new b),this.abort()):r&&r()},w.prototype.end=function(e,t,r){if(T(e)?(r=e,e=t=null):T(t)&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},w.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},w.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},w.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),s()}),e),n(t)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){w.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(w.prototype,e,{get:function(){return this._currentRequest[e]}})})),w.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},w.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var s of(i._redirectable=this,d))i.on(s,f[s]);if(this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,u=this._requestBodyBuffers;!function e(t){if(i===a._currentRequest)if(t)a.emit("error",t);else if(o<u.length){var r=u[o++];i.finished||i.write(r.data,r.encoding,e)}else a._ended&&i.end()}()}},w.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,s=e.headers.location;if(!s||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(_(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new g;var o=this._options.beforeRedirect;o&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],x(/^content-/i,this._options.headers));var h,d,f=x(/^host$/i,this._options.headers),p=F(this._currentUrl),m=f||p.host,b=/^\w+:/.test(s)?this._currentUrl:n.format(Object.assign(p,{host:m})),y=(h=s,d=b,c?new i(h,d):F(n.resolve(d,h)));if(l("redirecting to",y.href),this._isRedirect=!0,S(y,this._options),(y.protocol!==p.protocol&&"https:"!==y.protocol||y.host!==m&&!function(e,t){u(A(e)&&A(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(y.host,m))&&x(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),T(o)){var D={headers:e.headers,statusCode:t},w={url:b,method:a,headers:r};o(this._options,D,w),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=v({http:s,https:o}),e.exports.wrap=v},7657:(e,t,r)=>{const n=r(627),i=r(6928),s=r(9823).mkdirsSync,o=r(2292).utimesMillisSync,a=r(8549);function u(e,t,r,s){const o=(s.dereference?n.statSync:n.lstatSync)(t);if(o.isDirectory())return function(e,t,r,i,s){return t?h(r,i,s):function(e,t,r,i){return n.mkdirSync(r),h(t,r,i),c(r,e)}(e.mode,r,i,s)}(o,e,t,r,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(e,t,r,i,s){return t?function(e,t,r,i){if(i.overwrite)return n.unlinkSync(r),l(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,i,s):l(e,r,i,s)}(o,e,t,r,s);if(o.isSymbolicLink())return function(e,t,r,s){let o=n.readlinkSync(t);s.dereference&&(o=i.resolve(process.cwd(),o));if(e){let e;try{e=n.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlinkSync(o,r);throw e}if(s.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(a.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return n.unlinkSync(t),n.symlinkSync(e,t)}(o,r)}return n.symlinkSync(o,r)}(e,t,r,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,r,i){return n.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){c(e,128|t)}(r,e);(function(e,t){const r=n.statSync(e);o(t,r.atime,r.mtime)})(t,r)}(e.mode,t,r),c(r,e.mode)}function c(e,t){return n.chmodSync(e,t)}function h(e,t,r){n.readdirSync(e).forEach((n=>function(e,t,r,n){const s=i.join(t,e),o=i.join(r,e);if(n.filter&&!n.filter(s,o))return;const{destStat:l}=a.checkPathsSync(s,o,"copy",n);return u(l,s,o,n)}(n,e,t,r)))}e.exports=function(e,t,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:l}=a.checkPathsSync(e,t,"copy",r);if(a.checkParentPathsSync(e,o,t,"copy"),r.filter&&!r.filter(e,t))return;const c=i.dirname(t);return n.existsSync(c)||s(c),u(l,e,t,r)}},9945:(e,t,r)=>{const n=r(1692),i=r(6928),{mkdirs:s}=r(9823),{pathExists:o}=r(303),{utimesMillis:a}=r(2292),u=r(8549);async function l(e,t,r){return!r.filter||r.filter(e,t)}async function c(e,t,r,s){const o=s.dereference?n.stat:n.lstat,a=await o(t);if(a.isDirectory())return async function(e,t,r,s,o){t||await n.mkdir(s);const a=await n.readdir(r);await Promise.all(a.map((async e=>{const t=i.join(r,e),n=i.join(s,e);if(!await l(t,n,o))return;const{destStat:a}=await u.checkPaths(t,n,"copy",o);return c(a,t,n,o)}))),t||await n.chmod(s,e.mode)}(a,e,t,r,s);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return async function(e,t,r,i,s){if(!t)return h(e,r,i,s);if(s.overwrite)return await n.unlink(i),h(e,r,i,s);if(s.errorOnExist)throw new Error(`'${i}' already exists`)}(a,e,t,r,s);if(a.isSymbolicLink())return async function(e,t,r,s){let o=await n.readlink(t);s.dereference&&(o=i.resolve(process.cwd(),o));if(!e)return n.symlink(o,r);let a=null;try{a=await n.readlink(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlink(o,r);throw e}s.dereference&&(a=i.resolve(process.cwd(),a));if(u.isSrcSubdir(o,a))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${a}'.`);if(u.isSrcSubdir(a,o))throw new Error(`Cannot overwrite '${a}' with '${o}'.`);return await n.unlink(r),n.symlink(o,r)}(e,t,r,s);if(a.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(a.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function h(e,t,r,i){if(await n.copyFile(t,r),i.preserveTimestamps){128&e.mode||await function(e,t){return n.chmod(e,128|t)}(r,e.mode);const i=await n.stat(t);await a(r,i.atime,i.mtime)}return n.chmod(r,e.mode)}e.exports=async function(e,t,r={}){"function"==typeof r&&(r={filter: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");const{srcStat:n,destStat:a}=await u.checkPaths(e,t,"copy",r);if(await u.checkParentPaths(e,n,t,"copy"),!await l(e,t,r))return;const h=i.dirname(t);await o(h)||await s(h),await c(a,e,t,r)}},718:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={copy:n(r(9945)),copySync:r(7657)}},2456:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(5483),u=n((async function(e){let t;try{t=await i.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>a.remove(s.join(e,t)))))}));function l(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:u,emptydir:u}},4355:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823);e.exports={createFile:n((async function(e){let t;try{t=await s.stat(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);let n=null;try{n=await s.stat(r)}catch(t){if("ENOENT"===t.code)return await o.mkdirs(r),void await s.writeFile(e,"");throw t}n.isDirectory()?await s.writeFile(e,""):await s.readdir(r)})),createFileSync:function(e){let t;try{t=s.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{s.statSync(r).isDirectory()||s.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;o.mkdirsSync(r)}s.writeFileSync(e,"")}}},4177:(e,t,r)=>{const{createFile:n,createFileSync:i}=r(4355),{createLink:s,createLinkSync:o}=r(445),{createSymlink:a,createSymlinkSync:u}=r(4014);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:s,createLinkSync:o,ensureLink:s,ensureLinkSync:o,createSymlink:a,createSymlinkSync:u,ensureSymlink:a,ensureSymlinkSync:u}},445:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823),{pathExists:a}=r(303),{areIdentical:u}=r(8549);e.exports={createLink:n((async function(e,t){let r,n;try{r=await s.lstat(t)}catch{}try{n=await s.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(r&&u(n,r))return;const l=i.dirname(t);await a(l)||await o.mkdirs(l),await s.link(e,t)})),createLinkSync:function(e,t){let r;try{r=s.lstatSync(t)}catch{}try{const t=s.lstatSync(e);if(r&&u(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return s.existsSync(n)||o.mkdirsSync(n),s.linkSync(e,t)}}},9475:(e,t,r)=>{const n=r(6928),i=r(1692),{pathExists:s}=r(303),o=r(4635).fromPromise;e.exports={symlinkPaths:o((async function(e,t){if(n.isAbsolute(e)){try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const r=n.dirname(t),o=n.join(r,e);if(await s(o))return{toCwd:o,toDst:e};try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:n.relative(r,e)}})),symlinkPathsSync:function(e,t){if(n.isAbsolute(e)){if(!i.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const r=n.dirname(t),s=n.join(r,e);if(i.existsSync(s))return{toCwd:s,toDst:e};if(!i.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(r,e)}}}},3607:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={symlinkType:i((async function(e,t){if(t)return t;let r;try{r=await n.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(e,t){if(t)return t;let r;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},4014:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),{mkdirs:o,mkdirsSync:a}=r(9823),{symlinkPaths:u,symlinkPathsSync:l}=r(9475),{symlinkType:c,symlinkTypeSync:h}=r(3607),{pathExists:d}=r(303),{areIdentical:f}=r(8549);e.exports={createSymlink:n((async function(e,t,r){let n;try{n=await s.lstat(t)}catch{}if(n&&n.isSymbolicLink()){const[r,n]=await Promise.all([s.stat(e),s.stat(t)]);if(f(r,n))return}const a=await u(e,t);e=a.toDst;const l=await c(a.toCwd,r),h=i.dirname(t);return await d(h)||await o(h),s.symlink(e,t,l)})),createSymlinkSync:function(e,t,r){let n;try{n=s.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=s.statSync(e),n=s.statSync(t);if(f(r,n))return}const o=l(e,t);e=o.toDst,r=h(o.toCwd,r);const u=i.dirname(t);return s.existsSync(u)||a(u),s.symlinkSync(e,t,r)}}},1692:(e,t,r)=>{const n=r(4635).fromCallback,i=r(627),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((e=>"function"==typeof i[e]));Object.assign(t,i),s.forEach((e=>{t[e]=n(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,r,n,s,o){return"function"==typeof o?i.read(e,t,r,n,s,o):new Promise(((o,a)=>{i.read(e,t,r,n,s,((e,t,r)=>{if(e)return a(e);o({bytesRead:t,buffer:r})}))}))},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?i.write(e,t,...r):new Promise(((n,s)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})}))}))},t.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?i.readv(e,t,...r):new Promise(((n,s)=>{i.readv(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesRead:t,buffers:r})}))}))},t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?i.writev(e,t,...r):new Promise(((n,s)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffers:r})}))}))},"function"==typeof i.realpath.native?t.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},738:(e,t,r)=>{e.exports={...r(1692),...r(718),...r(2456),...r(4177),...r(6185),...r(9823),...r(1254),...r(2227),...r(303),...r(5483)}},6185:(e,t,r)=>{const n=r(4635).fromPromise,i=r(509);i.outputJson=n(r(3291)),i.outputJsonSync=r(8235),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},509:(e,t,r)=>{const n=r(8843);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},8235:(e,t,r)=>{const{stringify:n}=r(374),{outputFileSync:i}=r(2227);e.exports=function(e,t,r){const s=n(t,r);i(e,s,r)}},3291:(e,t,r)=>{const{stringify:n}=r(374),{outputFile:i}=r(2227);e.exports=async function(e,t,r={}){const s=n(t,r);await i(e,s,r)}},9823:(e,t,r)=>{const n=r(4635).fromPromise,{makeDir:i,makeDirSync:s}=r(5639),o=n(i);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},5639:(e,t,r)=>{const n=r(1692),{checkPath:i}=r(9242),s=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:s(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:s(t),recursive:!0}))},9242:(e,t,r)=>{const n=r(6928);e.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}},1254:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={move:n(r(5553)),moveSync:r(7473)}},7473:(e,t,r)=>{const n=r(627),i=r(6928),s=r(718).copySync,o=r(5483).removeSync,a=r(9823).mkdirpSync,u=r(8549);function l(e,t,r){try{n.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return s(e,t,n),o(e)}(e,t,r)}}e.exports=function(e,t,r){const s=(r=r||{}).overwrite||r.clobber||!1,{srcStat:c,isChangingCase:h=!1}=u.checkPathsSync(e,t,"move",r);return u.checkParentPathsSync(e,c,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||a(i.dirname(t)),function(e,t,r,i){if(i)return l(e,t,r);if(r)return o(t),l(e,t,r);if(n.existsSync(t))throw new Error("dest already exists.");return l(e,t,r)}(e,t,s,h)}},5553:(e,t,r)=>{const n=r(1692),i=r(6928),{copy:s}=r(718),{remove:o}=r(5483),{mkdirp:a}=r(9823),{pathExists:u}=r(303),l=r(8549);e.exports=async function(e,t,r={}){const c=r.overwrite||r.clobber||!1,{srcStat:h,isChangingCase:d=!1}=await l.checkPaths(e,t,"move",r);await l.checkParentPaths(e,h,t,"move");const f=i.dirname(t);return i.parse(f).root!==f&&await a(f),async function(e,t,r,i){if(!i)if(r)await o(t);else if(await u(t))throw new Error("dest already exists.");try{await n.rename(e,t)}catch(n){if("EXDEV"!==n.code)throw n;await async function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await s(e,t,n),o(e)}(e,t,r)}}(e,t,c,d)}},2227:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(303).pathExists;e.exports={outputFile:n((async function(e,t,r="utf-8"){const n=s.dirname(e);return await a(n)||await o.mkdirs(n),i.writeFile(e,t,r)})),outputFileSync:function(e,...t){const r=s.dirname(e);i.existsSync(r)||o.mkdirsSync(r),i.writeFileSync(e,...t)}}},303:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692);e.exports={pathExists:n((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},5483:(e,t,r)=>{const n=r(627),i=r(4635).fromCallback;e.exports={remove:i((function(e,t){n.rm(e,{recursive:!0,force:!0},t)})),removeSync:function(e){n.rmSync(e,{recursive:!0,force:!0})}}},8549:(e,t,r)=>{const n=r(1692),i=r(6928),s=r(4635).fromPromise;function o(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function a(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e)),n=i.resolve(t).split(i.sep).filter((e=>e));return r.every(((e,t)=>n[t]===e))}function u(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:s((async function(e,t,r,s){const{srcStat:l,destStat:c}=await function(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:!0}):e=>n.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}})),checkPathsSync:function(e,t,r,s){const{srcStat:l,destStat:c}=function(e,t,r){let i;const s=r.dereference?e=>n.statSync(e,{bigint:!0}):e=>n.lstatSync(e,{bigint:!0}),o=s(e);try{i=s(t)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}},checkParentPaths:s((async function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=await n.stat(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)})),checkParentPathsSync:function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=n.statSync(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)},isSrcSubdir:a,areIdentical:o}},2292:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={utimesMillis:i((async function(e,t,r){const i=await n.open(e,"r+");let s=null;try{await n.futimes(i,t,r)}finally{try{await n.close(i)}catch(e){s=e}}if(s)throw s})),utimesMillisSync:function(e,t,r){const i=n.openSync(e,"r+");return n.futimesSync(i,t,r),n.closeSync(i)}}},8359:e=>{e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else r=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r};var t=Object.getPrototypeOf||function(e){return e.__proto__}},627:(e,t,r)=>{var n,i,s=r(9896),o=r(8254),a=r(111),u=r(8359),l=r(9023);function c(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"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 h,d=function(){};if(l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!s[n]){var f=global[n]||[];c(s,f),s.close=function(e){function t(t,r){return e.call(s,t,(function(e){e||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(s.close),s.closeSync=function(e){function t(t){e.apply(s,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(2613).equal(s[n].length,0)}))}function p(e){o(e),e.gracefulify=p,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,s){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[r,n,i],t,s||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,s,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,n,i,s],r,o||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,s,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,i,s],n,o||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,s,o){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,n,s],i,o||Date.now(),Date.now()])}))}(e,t,r,n)});var s=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=u.test(process.version)?function(e,t,r,n){return s(e,i(e,t,r,n))}:function(e,t,r,n){return s(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,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,[e,t,r],s,i||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,b=l.WriteStream}var c=e.ReadStream;c&&(g.prototype=Object.create(c.prototype),g.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var h=e.WriteStream;h&&(b.prototype=Object.create(h.prototype),b.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var f=b;function g(e,t){return this instanceof g?(c.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function b(e,t){return this instanceof b?(h.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var y=e.open;function D(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,s){return y(t,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,r,n,i],o,s||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=D,e}function m(e){d("ENQUEUE",e[0].name,e[1]),s[n].push(e),b()}function g(){for(var e=Date.now(),t=0;t<s[n].length;++t)s[n][t].length>2&&(s[n][t][3]=e,s[n][t][4]=e);b()}function b(){if(clearTimeout(h),h=void 0,0!==s[n].length){var e=s[n].shift(),t=e[0],r=e[1],i=e[2],o=e[3],a=e[4];if(void 0===o)d("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",t.name,r);var u=r.pop();"function"==typeof u&&u.call(null,i)}else{var l=Date.now()-a,c=Math.max(a-o,1);l>=Math.min(1.2*c,100)?(d("RETRY",t.name,r),t.apply(null,r.concat([o]))):s[n].push(e)}void 0===h&&(h=setTimeout(b,0))}}global[n]||c(global,s[n]),e.exports=p(u(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=p(s),s.__patched=!0)},111:(e,t,r)=>{var n=r(2203).Stream;e.exports=function(e){return{ReadStream:function t(r,i){if(!(this instanceof t))return new t(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,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}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()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return s.emit("error",e),void(s.readable=!1);s.fd=t,s.emit("open",t),s._read()}))},WriteStream:function t(r,i){if(!(this instanceof t))return new t(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 u=s[o];this[u]=i[u]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},8254:(e,t,r)=>{var n=r(9140),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(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,s=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=e.fchmodSync(s,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,(function(t,n){t?s&&s(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){s&&s(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var s,o=e.openSync(t,n.O_SYMLINK),a=!0;try{s=e.futimesSync(o,r,i),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return s}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===o&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var s=Date.now(),o=0;t(r,n,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-s<6e4)return setTimeout((function(){e.stat(n,(function(e,s){e&&"ENOENT"===e.code?t(r,n,a):i(u)}))}),o),void(o<100&&(o+=10));i&&i(u)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(r,n,i,s){return t.call(e,r,n,i,(function(e){l(e)&&(e=null),s&&s.apply(this,arguments)}))}:t}function s(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(r,n,i){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,s):t.call(e,r,s)}:t}function u(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function l(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,s,o,a){var u;if(a&&"function"==typeof a){var l=0;u=function(c,h,d){if(c&&"EAGAIN"===c.code&&l<10)return l++,t.call(e,r,n,i,s,o,u);a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,u)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,s){for(var o=0;;)try{return c.call(e,t,r,n,i,s)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var c}},4891:e=>{e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},910:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},4140:e=>{e.exports=e=>{if("object"!=typeof e||null===e)throw new TypeError("Expected an object");const t={};for(const[r,n]of Object.entries(e))t[n]=r;for(const r of Object.getOwnPropertySymbols(e)){t[e[r]]=r}return t}},9344:(e,t,r)=>{var n;r(9896);function i(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(e,t||{},(function(e,t){e?n(e):r(t)}))}))}n(e,t||{},(function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}n="win32"===process.platform||global.TESTING_WINDOWS?r(8541):r(709),e.exports=i,i.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},709:(e,t,r)=>{e.exports=i,i.sync=function(e,t){return s(n.statSync(e),t)};var n=r(9896);function i(e,t,r){n.stat(e,(function(e,n){r(e,!e&&s(n,t))}))}function s(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,i=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,h=r&l||r&u&&i===o||r&a&&n===s||r&c&&0===s;return h}(e,t)}},8541:(e,t,r)=>{e.exports=s,s.sync=function(e,t){return i(n.statSync(e),e,t)};var n=r(9896);function i(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.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&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,r)}function s(e,t,r){n.stat(e,(function(n,s){r(n,!n&&i(s,e,t))}))}},8843:(e,t,r)=>{let n;try{n=r(627)}catch(e){n=r(9896)}const i=r(4635),{stringify:s,stripBom:o}=r(374);const a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,s=!("throws"in t)||t.throws;let a,u=await i.fromCallback(r.readFile)(e,t);u=o(u);try{a=JSON.parse(u,t?t.reviver:null)}catch(t){if(s)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,i=!("throws"in t)||t.throws;try{let n=r.readFileSync(e,t);return n=o(n),JSON.parse(n,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,r={}){const o=r.fs||n,a=s(t,r);await i.fromCallback(o.writeFile)(e,a,r)})),writeFileSync:function(e,t,r={}){const i=r.fs||n,o=s(t,r);return i.writeFileSync(e,o,r)}};e.exports=a},374:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},8888:e=>{const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==t,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(e,t){let r,n=0,i="",s="";for(;n<e.length;n++)r=e[n],i+=r.open,s+=r.close,t.includes(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+s}function o(e,t){let r={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){return void 0!==this&&void 0!==this.has?(this.has.includes(e)||(this.has.push(e),this.keys.push(r)),void 0===t?this:i.enabled?s(this.keys,t+""):t+""):void 0===t?function(e,t){let r={has:e,keys:t};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}([e],[r]):i.enabled?s([r],t+""):t+""}}e.exports=i},323:(e,t,r)=>{const n=r(4140),i=r(8360),s=n(i);t.from=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return i[e]},t.to=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");if(s[e])return Number(s[e])},t.all=new Proxy(s,{get(e,t){const r=e[t];if(r)return Number(r)}})},6283:e=>{const t=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};e.exports=t,e.exports.default=t},7821:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,s=7*i,o=365.25*i;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,u){u=u||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===l&&isFinite(e))return u.long?function(e){var s=Math.abs(e);if(s>=i)return a(e,s,i,"day");if(s>=n)return a(e,s,n,"hour");if(s>=r)return a(e,s,r,"minute");if(s>=t)return a(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=i)return Math.round(e/i)+"d";if(s>=n)return Math.round(e/n)+"h";if(s>=r)return Math.round(e/r)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7862:(e,t,r)=>{const n=r(6283),i=new WeakMap,s=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const o=e.displayName||e.name||"<anonymous>",a=function(...n){if(i.set(a,++s),1===s)r=e.apply(this,n),e=null;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return r};return n(a,e),i.set(a,s),a};e.exports=s,e.exports.default=s,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},1416:(e,t,r)=>{var n=r(1813);e.exports=function(e){if("string"!=typeof e)throw new TypeError("expected author to be a string");if(!e||!/\w/.test(e))return{};var t=[].concat.apply([],n().exec(e)),r={};t[1]&&(r.name=t[1]);for(var i=2;i<t.length;i++){var s=t[i];i%2==0&&s&&t[i+1]&&("<"===s.charAt(0)?(r.email=t[i+1],i++):"("===s.charAt(0)&&(r.url=t[i+1],i++))}return r}},9695:e=>{const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},8459:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},5882:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(e=>1==(e%=10)?"st":2===e?"nd":3===e?"rd":"th")(e):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e}}},2583:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},9180:(e,t,r)=>{e.exports={DatePart:r(8459),Meridiem:r(4356),Day:r(5882),Hours:r(2583),Milliseconds:r(1516),Minutes:r(3317),Month:r(5058),Seconds:r(249),Year:r(5599)}},4356:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1516:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},3317:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},5058:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},249:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},5599:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},9111:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}const i=r(8888),s=r(7261),o=r(4347),a=o.erase,u=o.cursor,l=r(8482),c=l.style,h=l.clear,d=l.figures,f=l.wrap,p=l.entriesToDisplay,m=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),g=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=c.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=h("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=m(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var t,r=this;return(t=function*(){const t=r.completing=r.suggest(r.input,r.choices),n=yield t;if(r.completing!==t)return;r.suggestions=n.map(((e,t,r)=>({title:g(r,t),value:m(r,t),description:e.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),e&&e()},function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}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()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.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(e,t,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=t?i.cyan().underline(e.title):e.title;return o=(t?i.cyan(d.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+f(e.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(u.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();let e=p(this.select,this.choices.length,this.limit),t=e.startIndex,r=e.endIndex;if(this.outputText=[c.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),c.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 e=this.suggestions.slice(t,r).map(((e,n)=>this.renderOption(e,this.select===n+t,0===n&&t>0,n+t===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(e||i.gray(this.fallback.title))}this.out.write(a.line+u.to(0)+this.outputText)}}},5518:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(538),o=r(8482),a=o.clear,u=o.style,l=o.figures;e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),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((e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}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(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},539:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.erase,c=u.cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}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.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(l.line+c.to(0)+this.outputText))}}},7191:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(8482),u=a.style,l=a.clear,c=a.figures,h=r(4347),d=h.erase,f=h.cursor,p=r(9180),m=p.DatePart,g=p.Meridiem,b=p.Day,y=p.Hours,D=p.Milliseconds,w=p.Minutes,v=p.Month,E=p.Seconds,F=p.Year,C=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,S={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new b(e),3:e=>new v(e),4:e=>new F(e),5:e=>new g(e),6:e=>new y(e),7:e=>new w(e),8:e=>new E(e),9:e=>new D(e)},x={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(",")};e.exports=class extends o{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(x,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=l("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=C.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in S?S[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof m))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof m))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(f.hide):this.out.write(l(this.outputText,this.out.columns)),super.render(),this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:s.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(d.line+f.to(0)+this.outputText))}}},271:(e,t,r)=>{e.exports={TextPrompt:r(3392),SelectPrompt:r(4003),TogglePrompt:r(5807),DatePrompt:r(7191),NumberPrompt:r(1270),MultiselectPrompt:r(538),AutocompletePrompt:r(9111),AutocompleteMultiselectPrompt:r(5518),ConfirmPrompt:r(539)}},538:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(7261),o=r(8482),a=o.clear,u=o.figures,l=o.style,c=o.wrap,h=o.entriesToDisplay;e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=a("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.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((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(e,t,r,i){const s=(t.selected?n.green(u.radioOn):u.radioOff)+" "+i+" ";let o,a;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(a=` - ${t.description}`,(s.length+o.length+a.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(a="\n"+c(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,r=h(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)t=r===i&&i>0?u.arrowUp:r===s-1&&s<e.length?u.arrowDown:" ",o.push(this.renderOption(this.cursor,e[r],r,t));return"\n"+o.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},1270:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.cursor,l=a.erase,c=r(8482),h=c.style,d=c.figures,f=c.clear,p=c.lines,m=/[0-9]/,g=e=>void 0!==e,b=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.msg=e.message,this.initial=g(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=g(e.min)?e.min:-1/0,this.max=g(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${b(e,this.round)}`),this._value=b(e,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||m.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();let t=e.value;e.value=""!==t?t:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write("\n"),e.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 e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.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()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)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(u.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=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.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(((e,t,r)=>e+`\n${r?" ":d.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore))}}},7261:(e,t,r)=>{const n=r(3785),i=r(8482).action,s=r(4434),o=r(4347),a=o.beep,u=o.cursor,l=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(u.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.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(l),this.firstRender&&(this.firstRender=!1)}}},4003:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=s.figures,l=s.wrap,c=s.entriesToDisplay,h=r(4347).cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].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()}_(e,t){if(" "===e)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(a(this.outputText,this.out.columns)),super.render();let e=c(this.cursor,this.choices.length,this.optionsPerPage),t=e.startIndex,r=e.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 e=t;e<r;e++){let i,s,o="",a=this.choices[e];s=e===t&&t>0?u.arrowUp:e===r-1&&r<this.choices.length?u.arrowDown:" ",a.disabled?(i=this.cursor===e?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===e?n.bold().gray(u.pointer)+" ":" ")+s):(i=this.cursor===e?n.cyan().underline(a.title):a.title,s=(this.cursor===e?n.cyan(u.pointer)+" ":" ")+s,a.description&&this.cursor===e&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+l(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},3392:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.erase,l=a.cursor,c=r(8482),h=c.style,d=c.clear,f=c.lines,p=c.figures;e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.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 e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error)return e.red=!0,e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,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 e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,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(l.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=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":p.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0)))}}},5807:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.cursor,c=u.erase;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(l.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(c.line+l.to(0)+this.outputText))}}},2481:(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,s=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw s}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function o(e){u(s,n,i,o,a,"next",e)}function a(e){u(s,n,i,o,a,"throw",e)}o(void 0)}))}}const c=r(3682),h=["suggest","format","onState","validate","onRender","type"],d=()=>{};function f(){return p.apply(this,arguments)}function p(){return p=l((function*(e=[],{onSubmit:t=d,onCancel:r=d}={}){const n={},s=f._override||{};let a,u,p,g,b,y;e=[].concat(e);const D=function(){var e=l((function*(e,t,r=!1){if(r||!e.validate||!0===e.validate(t))return e.format?yield e.format(t,n):t}));return function(t,r){return e.apply(this,arguments)}}();var w,v=o(e);try{for(v.s();!(w=v.n()).done;){u=w.value;var E=u;if(g=E.name,b=E.type,"function"==typeof b&&(b=yield b(a,i({},n),u),u.type=b),b){for(let e in u){if(h.includes(e))continue;let t=u[e];u[e]="function"==typeof t?yield t(a,i({},n),y):t}if(y=u,"string"!=typeof u.message)throw new Error("prompt message is required");var F=u;if(g=F.name,b=F.type,void 0===c[b])throw new Error(`prompt type (${b}) is not defined`);if(void 0===s[u.name]||(a=yield D(u,s[u.name]),void 0===a)){try{a=f._injected?m(f._injected,u.initial):yield c[b](u),n[g]=a=yield D(u,a,!0),p=yield t(u,a,n)}catch(e){p=!(yield r(u,n))}if(p)return n}else n[g]=a}}}catch(e){v.e(e)}finally{v.f()}return n})),p.apply(this,arguments)}function m(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(f,{prompt:f,prompts:c,inject:function(e){f._injected=(f._injected||[]).concat(e)},override:function(e){f._override=Object.assign({},e)}})},3682:(e,t,r)=>{const n=t,i=r(271),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},8386:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},6203:(e,t,r)=>{function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const s=r(9440),o=r(4347),a=o.erase,u=o.cursor;e.exports=function(e,t){if(!t)return a.line+u.to(0);let r=0;var i,o=n(e.split(/\r?\n/));try{for(o.s();!(i=o.n()).done;){let e=i.value;r+=1+Math.floor(Math.max([...s(e)].length-1,0)/t)}}catch(e){o.e(e)}finally{o.f()}return a.lines(r)}},4409:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},6135:e=>{const t={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:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},8482:(e,t,r)=>{e.exports={action:r(8386),clear:r(6203),style:r(6187),strip:r(9440),figures:r(6135),lines:r(6905),wrap:r(3424),entriesToDisplay:r(4409)}},6905:(e,t,r)=>{const n=r(9440);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},9440:e=>{e.exports=e=>{const t=["[\\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(t,"g");return"string"==typeof e?e.replace(r,""):e}},6187:(e,t,r)=>{const n=r(8888),i=r(6135),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},3424:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},5600:(e,t,r)=>{e.exports=function(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return!1;if(e[t]>r[t])return!0}return!1}("8.6.0")?r(2481):r(8332)},4264:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},8171:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(e=>1==(e%=10)?"st":2===e?"nd":3===e?"rd":"th")(e):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e}}},9518:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},1693:(e,t,r)=>{e.exports={DatePart:r(4264),Meridiem:r(6551),Day:r(8171),Hours:r(9518),Milliseconds:r(1271),Minutes:r(136),Month:r(2103),Seconds:r(6272),Year:r(2968)}},6551:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1271:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},136:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},2103:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},6272:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},2968:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},8590:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,figures:l,wrap:c,entriesToDisplay:h}=r(7933),d=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),f=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=a.render(e.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(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=d(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices),r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:f(r,t),value:d(r,t),description:e.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),e&&e()}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()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.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(e,t,r,i){let s,o=r?l.arrowUp:i?l.arrowDown:" ",a=t?n.cyan().underline(e.title):e.title;return o=(t?n.cyan(l.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+c(e.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(u(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=h(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(e,t).map(((r,n)=>this.renderOption(r,this.select===n+e,0===n&&e>0,n+e===t-1&&t<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},4349:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(3725),{clear:o,style:a,figures:u}=r(7933);e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),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((e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},3756:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{erase:a,cursor:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(u.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+u.to(0)+this.outputText))}}},8626:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a}=r(7933),{erase:u,cursor:l}=r(4347),{DatePart:c,Meridiem:h,Day:d,Hours:f,Milliseconds:p,Minutes:m,Month:g,Seconds:b,Year:y}=r(1693),D=/\\(.)|"((?:\\["\\]|[^"])+)"|(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:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new g(e),4:e=>new y(e),5:e=>new h(e),6:e=>new f(e),7:e=>new m(e),8:e=>new b(e),9:e=>new p(e)},v={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(",")};e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(v,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.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(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=D.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in w?w[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof c))),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 e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}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 e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof c))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}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(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:n.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":a.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText))}}},5864:(e,t,r)=>{e.exports={TextPrompt:r(1433),SelectPrompt:r(406),TogglePrompt:r(1582),DatePrompt:r(8626),NumberPrompt:r(9927),MultiselectPrompt:r(3725),AutocompletePrompt:r(8590),AutocompleteMultiselectPrompt:r(4349),ConfirmPrompt:r(3756)}},3725:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(8544),{clear:o,figures:a,style:u,wrap:l,entriesToDisplay:c}=r(7933);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=o("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.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((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)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(e,t,r,i){const s=(t.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,u;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(u=` - ${t.description}`,(s.length+o.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(u="\n"+l(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(u||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,{startIndex:r,endIndex:i}=c(this.cursor,e.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)t=n===r&&r>0?a.arrowUp:n===i-1&&i<e.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,e[n],n,t));return"\n"+s.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},9927:(e,t,r)=>{const n=r(8888),i=r(8544),{cursor:s,erase:o}=r(4347),{style:a,figures:u,clear:l,lines:c}=r(7933),h=/[0-9]/,d=e=>void 0!==e,f=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.msg=e.message,this.initial=d(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=d(e.min)?e.min:-1/0,this.max=d(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${f(e,this.round)}`),this._value=f(e,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||h.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let e=this.value;this.value=""!==e?e: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 e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.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()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)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(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.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},8544:(e,t,r)=>{const n=r(3785),{action:i}=r(7933),s=r(4434),{beep:o,cursor:a}=r(4347),u=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.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(u),this.firstRender&&(this.firstRender=!1)}}},406:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a,wrap:u,entriesToDisplay:l}=r(7933),{cursor:c}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].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()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=l(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=e;r<t;r++){let i,s,o="",l=this.choices[r];s=r===e&&e>0?a.arrowUp:r===t-1&&t<this.choices.length?a.arrowDown:" ",l.disabled?(i=this.cursor===r?n.gray().underline(l.title):n.strikethrough().gray(l.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(l.title):l.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,l.description&&this.cursor===r&&(o=` - ${l.description}`,(s.length+i.length+o.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(o="\n"+u(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},1433:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,lines:l,figures:c}=r(7933);e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=u("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.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 e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}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(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,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 e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,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(l(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(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(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},1582:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{cursor:a,erase:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}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()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)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(u.line+a.to(0)+this.outputText))}}},8332:(e,t,r)=>{const n=r(3683),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(e=[],{onSubmit:t=s,onCancel:r=s}={}){const u={},l=o._override||{};let c,h,d,f,p,m;e=[].concat(e);const g=async(e,t,r=!1)=>{if(r||!e.validate||!0===e.validate(t))return e.format?await e.format(t,u):t};for(h of e)if(({name:f,type:p}=h),"function"==typeof p&&(p=await p(c,{...u},h),h.type=p),p){for(let e in h){if(i.includes(e))continue;let t=h[e];h[e]="function"==typeof t?await t(c,{...u},m):t}if(m=h,"string"!=typeof h.message)throw new Error("prompt message is required");if(({name:f,type:p}=h),void 0===n[p])throw new Error(`prompt type (${p}) is not defined`);if(void 0===l[h.name]||(c=await g(h,l[h.name]),void 0===c)){try{c=o._injected?a(o._injected,h.initial):await n[p](h),u[f]=c=await g(h,c,!0),d=await t(h,c,u)}catch(e){d=!await r(h,u)}if(d)return u}else u[f]=c}return u}function a(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(e){o._injected=(o._injected||[]).concat(e)},override:function(e){o._override=Object.assign({},e)}})},3683:(e,t,r)=>{const n=t,i=r(5864),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},1787:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},7676:(e,t,r)=>{const n=r(7135),{erase:i,cursor:s}=r(4347);e.exports=function(e,t){if(!t)return i.line+s.to(0);let r=0;const o=e.split(/\r?\n/);for(let e of o)r+=1+Math.floor(Math.max([...n(e)].length-1,0)/t);return i.lines(r)}},4640:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},3248:e=>{const t={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:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},7933:(e,t,r)=>{e.exports={action:r(1787),clear:r(7676),style:r(7456),strip:r(7135),figures:r(3248),lines:r(334),wrap:r(1485),entriesToDisplay:r(4640)}},334:(e,t,r)=>{const n=r(7135);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},7135:e=>{e.exports=e=>{const t=["[\\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(t,"g");return"string"==typeof e?e.replace(r,""):e}},7456:(e,t,r)=>{const n=r(8888),i=r(3248),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},1485:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},600:(e,t,r)=>{const n=r(7257);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?i:i?`${s} ${i}`:s}},7257:e=>{e.exports=/^#!(.*)/},112:(e,t,r)=>{var n=global.process;const i=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(i(n)){var s,o=r(2613),a=r(7401),u=/^win/i.test(n.platform),l=r(4434);"function"!=typeof l&&(l=l.EventEmitter),n.__signal_exit_emitter__?s=n.__signal_exit_emitter__:((s=n.__signal_exit_emitter__=new l).count=0,s.emitted={}),s.infinite||(s.setMaxListeners(1/0),s.infinite=!0),e.exports=function(e,t){if(!i(global.process))return function(){};o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===f&&p();var r="exit";t&&t.alwaysLast&&(r="afterexit");return s.on(r,e),function(){s.removeListener(r,e),0===s.listeners("exit").length&&0===s.listeners("afterexit").length&&c()}};var c=function(){f&&i(global.process)&&(f=!1,a.forEach((function(e){try{n.removeListener(e,d[e])}catch(e){}})),n.emit=b,n.reallyExit=m,s.count-=1)};e.exports.unload=c;var h=function(e,t,r){s.emitted[e]||(s.emitted[e]=!0,s.emit(e,t,r))},d={};a.forEach((function(e){d[e]=function(){i(global.process)&&(n.listeners(e).length===s.count&&(c(),h("exit",null,e),h("afterexit",null,e),u&&"SIGHUP"===e&&(e="SIGINT"),n.kill(n.pid,e)))}})),e.exports.signals=function(){return a};var f=!1,p=function(){!f&&i(global.process)&&(f=!0,s.count+=1,a=a.filter((function(e){try{return n.on(e,d[e]),!0}catch(e){return!1}})),n.emit=y,n.reallyExit=g)};e.exports.load=p;var m=n.reallyExit,g=function(e){i(global.process)&&(n.exitCode=e||0,h("exit",n.exitCode,null),h("afterexit",n.exitCode,null),m.call(n,n.exitCode))},b=n.emit,y=function(e,t){if("exit"===e&&i(global.process)){void 0!==t&&(n.exitCode=t);var r=b.apply(this,arguments);return h("exit",n.exitCode,null),h("afterexit",n.exitCode,null),r}return b.apply(this,arguments)}}else e.exports=function(){return function(){}}},7401:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},4347:e=>{const t="\x1b[",r={to:(e,r)=>r?`${t}${r+1};${e+1}H`:`${t}${e+1}G`,move(e,r){let n="";return e<0?n+=`${t}${-e}D`:e>0&&(n+=`${t}${e}C`),r<0?n+=`${t}${-r}A`:r>0&&(n+=`${t}${r}B`),n},up:(e=1)=>`${t}${e}A`,down:(e=1)=>`${t}${e}B`,forward:(e=1)=>`${t}${e}C`,backward:(e=1)=>`${t}${e}D`,nextLine:(e=1)=>`${t}E`.repeat(e),prevLine:(e=1)=>`${t}F`.repeat(e),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:"\x1b7",restore:"\x1b8"},n={up:(e=1)=>`${t}S`.repeat(e),down:(e=1)=>`${t}T`.repeat(e)},i={screen:`${t}2J`,up:(e=1)=>`${t}1J`.repeat(e),down:(e=1)=>`${t}J`.repeat(e),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?r.up():"");return e&&(t+=r.left),t}};e.exports={cursor:r,scroll:n,erase:i,beep:"\x07"}},3396:e=>{e.exports=function(e){if("object"!=typeof e)throw new Error("expected an author to be an object");var t={name:["",""],email:["<",">"],url:["(",")"]},r="";for(var n in e.url&&(e.url=function(e){return e.replace(/\/$/,"")}(e.url)),t)e[n]&&(r+=t[n][0]+e[n]+t[n][1]+" ");return r.trim()}},1754:(e,t,r)=>{const n=r(857),i=r(4891),s=process.env;let o;function a(e){const t=function(e){if(!1===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;const t=o?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in s))||"codeship"===s.CI_NAME?1:t;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:(s.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?o=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=!0),"FORCE_COLOR"in s&&(o=0===s.FORCE_COLOR.length||0!==parseInt(s.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},5421:(e,t,r)=>{const n=r(857),i=r(2018),s=r(910),{env:o}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e 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 e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=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)),e.exports={supportsColor:function(e){return u(l(e,e&&e.isTTY))},stdout:u(l(!0,i.isatty(1))),stderr:u(l(!0,i.isatty(2)))}},4635:(e,t)=>{t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{t.push(((e,t)=>null!=e?n(e):r(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>r(null,e)),r)}),"name",{value:e.name})}},6756:(e,t,r)=>{const{builtinModules:n}=r(3339);var i=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),s=["node_modules","favicon.ico"];var o=function(e,t){var r={validForNewPackages:0===t.length&&0===e.length,validForOldPackages:0===t.length,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};e.exports=function(e){var t=[],r=[];if(null===e)return r.push("name cannot be null"),o(t,r);if(void 0===e)return r.push("name cannot be undefined"),o(t,r);if("string"!=typeof e)return r.push("name must be a string"),o(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),s.forEach((function(t){e.toLowerCase()===t&&r.push(t+" is a blacklisted name")})),n.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(e)!==e){var a=e.match(i);if(a){var u=a[1],l=a[2];if(encodeURIComponent(u)===u&&encodeURIComponent(l)===l)return o(t,r)}r.push("name can only contain URL-friendly characters")}return o(t,r)}},1905:(e,t,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(6928),s=n?";":":",o=r(9344),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),u=(e,t)=>{const r=t.colon||s,i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?o.split(r):[""];return n&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:o}},l=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:s,pathExtExe:l}=u(e,t),c=[],h=r=>new Promise(((s,o)=>{if(r===n.length)return t.all&&c.length?s(c):o(a(e));const u=n[r],l=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(l,e),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;s(d(f,r,0))})),d=(e,r,n)=>new Promise(((i,a)=>{if(n===s.length)return i(h(r+1));const u=s[n];o(e+u,{pathExt:l},((s,o)=>{if(!s&&o){if(!t.all)return i(e+u);c.push(e+u)}return i(d(e,r,n+1))}))}));return r?h(0).then((e=>r(null,e)),r):h(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=u(e,t),l=[];for(let a=0;a<r.length;a++){const u=r[a],c=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;for(let e=0;e<n.length;e++){const r=d+n[e];try{if(o.sync(r,{pathExt:s})){if(!t.all)return r;l.push(r)}}catch(e){}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw a(e)}},2613:t=>{t.exports=e(import.meta.url)("assert")},5317:t=>{t.exports=e(import.meta.url)("child_process")},9140:t=>{t.exports=e(import.meta.url)("constants")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},3339:t=>{t.exports=e(import.meta.url)("module")},8995:t=>{t.exports=e(import.meta.url)("node:module")},6760:t=>{t.exports=e(import.meta.url)("node:path")},3136:t=>{t.exports=e(import.meta.url)("node:url")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},3480:t=>{t.exports=e(import.meta.url)("querystring")},3785:t=>{t.exports=e(import.meta.url)("readline")},2203:t=>{t.exports=e(import.meta.url)("stream")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3106:t=>{t.exports=e(import.meta.url)("zlib")},9523:(e,t,r)=>{const n=r(738),{resolver:i}=r(776),{Creator:s}=r(7391),{readFile:o,readJson:a,outputFile:u,outputJson:l}=n,c={spaces:2,replacer:null};function h(e){return o(e,{encoding:"utf8"})}function d(e,t){return u(e,t,{encoding:"utf8"})}function f(e,t,{pretty:r=!1}={}){return l(e,t,r?c:void 0)}const p=s({read:h,write:d}),m=s({read:a,write:f}),g=s({read:h,write:f}),b=s({read:a,write:d});e.exports={Creator:s,Json:m,JsonToText:b,Text:p,TextToJson:g,resolver:i,fs:n}},7391:(e,t,r)=>{const{resolver:n,Base:i,logger:s}=r(776);e.exports={Creator:function({read:e,write:t}){return class extends i{constructor(e){super(),e&&(this.root=e)}config(e){return void 0!==e&&(this.option=e),this}source(t,r=this.root){if(!t)throw new Error("path cannot be empty");return this.action=this.action.then((()=>{this.source=n(t,r)})).then((()=>e(this.source))),this}output(e,r=this.root){return this.action=this.action.then((i=>{const s=n(void 0===e?this.source:e,r);if(!s)throw new Error("path cannot be empty");return this.source=s,t(s,i,this.option).then((()=>i))})),this}logger(...e){if(0===e.length)throw new Error("message cannot be empty");return this.action=this.action.then((t=>(s.okay(...e),t)),(t=>{throw s.fail(...e),t})),this}}}}},776:(e,t,r)=>{const{createRequire:n}=r(8995),{isAbsolute:i,resolve:s}=r(6760),{fileURLToPath:o}=r(3136),{green:a,red:u}=r(6181),l=n(`${process.cwd()}/`);function c(e){return e.startsWith("file:")?o(e):e}const h=new class{okay(...e){console.log(a("\u2714"),...e)}fail(...e){console.log(u("\u2718"),...e)}};e.exports={logger:h,resolver:function(e,t=process.cwd()){if(e.startsWith("~"))return l.resolve(e.replace(/^~/,""));const r=c(e);if(i(r))return r;const n=c(t);return s(n,r)},Base:class{constructor(){this.action=Promise.resolve()}onDone(e=(e=>e)){return this.action=this.action.then((e=>(this.temp=e,e))).then(e),this}onFail(e=(()=>this.temp)){return this.action=this.action.then((e=>(this.temp=e,e))).catch(e),this}then(e){return this.action.then(e)}catch(e){return this.action.catch(e)}finally(e){return this.action.finally(e)}}}},7256:e=>{e.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"]},"dots13":{"interval":80,"frames":["\u28fc","\u28f9","\u28bb","\u283f","\u285f","\u28cf","\u28e7","\u28f6"]},"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"]},"sand":{"interval":80,"frames":["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28c0","\u28c1","\u28c2","\u28c4","\u28cc","\u28d4","\u28e4","\u28e5","\u28e6","\u28ee","\u28f6","\u28f7","\u28ff","\u287f","\u283f","\u289f","\u281f","\u285b","\u281b","\u282b","\u288b","\u280b","\u280d","\u2849","\u2809","\u2811","\u2821","\u2881"]},"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"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"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"]},"dwarfFortress":{"interval":80,"frames":[" \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a \u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a \xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a \xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\u2593\xa3 "," \u263a\u2593\xa3 "," \u263a\u2592\xa3 "," \u263a\u2592\xa3 "," \u263a\u2591\xa3 "," \u263a\u2591\xa3 "," \u263a \xa3 "," \u263a\xa3 "," \u263a\xa3 "," \u263a\u2593 "," \u263a\u2593 "," \u263a\u2592 "," \u263a\u2592 "," \u263a\u2591 "," \u263a\u2591 "," \u263a "," \u263a &"," \u263a \u263c&"," \u263a \u263c &"," \u263a\u263c &"," \u263a\u263c & "," \u203c & "," \u263a & "," \u203c & "," \u263a & "," \u203c & "," \u263a & ","\u203c & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xa3 "," & \u2591\xa3 "," & \u2592\xa3 "," & \u2593\xa3 "," & \xa3\xa3 "," & \u2591\xa3\xa3 "," & \u2592\xa3\xa3 ","& \u2593\xa3\xa3 ","& \xa3\xa3\xa3 "," \u2591\xa3\xa3\xa3 "," \u2592\xa3\xa3\xa3 "," \u2593\xa3\xa3\xa3 "," \u2588\xa3\xa3\xa3 "," \u2591\u2588\xa3\xa3\xa3 "," \u2592\u2588\xa3\xa3\xa3 "," \u2593\u2588\xa3\xa3\xa3 "," \u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "]}}')},8360:e=>{e.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(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return t[e](s,s.exports,n),s.loaded=!0,s.exports}n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i=n(9896),s=n(2613);const o={right:function(e,t){e=e.trim();const r=l.stringWidth(e);if(r<t)return" ".repeat(t-r)+e;return e},center:function(e,t){e=e.trim();const r=l.stringWidth(e);if(r>=t)return e;return" ".repeat(t-r>>1)+e}};class a{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let r=0;return t.forEach((e=>{e.length>1&&l.stringWidth(e[0])>r&&(r=Math.min(Math.floor(.5*this.width),l.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,n)=>({text:t.trim(),padding:this.measurePadding(t),width:0===n&&e.length>1?r:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=l.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((r,n)=>{let i="";r.forEach(((r,s)=>{const{width:a}=e[s],c=this.negatePadding(e[s]);let h=r;if(c>l.stringWidth(r)&&(h+=" ".repeat(c-l.stringWidth(r))),e[s].align&&"left"!==e[s].align&&this.wrap){h=(0,o[e[s].align])(h,c),l.stringWidth(h)<c&&(h+=" ".repeat((a||0)-l.stringWidth(h)-1))}const d=e[s].padding||[0,0,0,0];d[3]&&(i+=" ".repeat(d[3])),i+=u(e[s],h,"| "),i+=h,i+=u(e[s],h," |"),d[1]&&(i+=" ".repeat(d[1])),0===n&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))})),t.push({text:i.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const r=e.match(/^ */),n=r?r[0].length:0,i=t.text,s=l.stringWidth(i.trimRight());return t.span?this.wrap?n<s?e:(t.hidden=!0,i.trimRight()+" ".repeat(n-s)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){const t=[],r=this.columnWidths(e);let n;return e.forEach(((e,i)=>{e.width=r[i],n=this.wrap?l.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(n.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),n.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(n.unshift(...new Array(e.padding[0]||0).fill("")),n.push(...new Array(e.padding[2]||0).fill(""))),n.forEach(((e,r)=>{t[r]||t.push([]);const n=t[r];for(let e=0;e<i;e++)void 0===n[e]&&n.push("");n.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||l.stringWidth(e.text)));let t=e.length,r=this.width;const n=e.map((e=>{if(e.width)return t--,r-=e.width,e.width})),i=t?Math.floor(r/t):0;return n.map(((t,r)=>void 0===t?Math.max(i,function(e){const t=e.padding||[],r=1+(t[3]||0)+(t[1]||0);if(e.border)return r+4;return r}(e[r])):t))}}function u(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?r:" ":""}let l;const c=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function h(e){return e.replace(c,"")}function d(e,t){const[r,n]=e.match(c)||["",""];e=h(e);let i="";for(let r=0;r<e.length;r++)0!==r&&r%t==0&&(i+="\n"),i+=e.charAt(r);return r&&n&&(i=`${r}${i}${n}`),i}var f=n(6928);var p,m=n(9023),g=n(7016);function b(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",r=!1;const n=e.match(/^-+/);for(let i=n?n[0].length:0;i<e.length;i++){let n=e.charAt(i);r&&(r=!1,n=n.toUpperCase()),0===i||"-"!==n&&"_"!==n?"-"!==n&&"_"!==n&&(t+=n):r=!0}return t}}function y(e,t){const r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){const s=r.charAt(i),o=e.charAt(i);n+=s!==o&&i>0?`${t}${r.charAt(i)}`:o}return n}function D(e){return null!=e&&("number"==typeof e||(!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)))}let w;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(p||(p={}));function v(e){return void 0!==e?e+1:1}function E(e){return"__proto__"===e?"___proto___":e}var F,C,S;const x=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,O=null!==(C=null===(F=null===process||void 0===process?void 0:process.versions)||void 0===F?void 0:F.node)&&void 0!==C?C:null===(S=null===process||void 0===process?void 0:process.version)||void 0===S?void 0:S.slice(1);if(O){if(Number(O.match(/^([^.]+)/)[1])<x)throw Error(`yargs parser supports a minimum Node.js version of ${x}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}const _=process?process.env:{},A=new class{constructor(e){w=e}parse(e,t){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},t),n=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,r=null,n=null,i=null;const s=[];for(let o=0;o<e.length;o++)r=n,n=e.charAt(o)," "!==n||i?(n===i?i=null:"'"!==n&&'"'!==n||i||(i=n),s[t]||(s[t]=""),s[t]+=n):" "!==r&&t++;return s}(e),i="string"==typeof e,s=function(e){const t=[],r=Object.create(null);let n=!0;Object.keys(e).forEach((function(r){t.push([].concat(e[r],r))}));for(;n;){n=!1;for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){if(t[e].filter((function(e){return-1!==t[r].indexOf(e)})).length){t[e]=t[e].concat(t[r]),t.splice(r,1),n=!0;break}}}return t.forEach((function(e){e=e.filter((function(e,t,r){return r.indexOf(e)===t}));const t=e.pop();void 0!==t&&"string"==typeof t&&(r[t]=e)})),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),u=r.configObjects||[],l=r.envPrefix,c=o["populate--"],h=c?"--":"_",d=Object.create(null),f=Object.create(null),m=r.__||w.format,g={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:[]},F=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,C=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,r=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();r&&(g[r][t]=!0),g.arrays[t]=!0,g.keys.push(t)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(e){g.bools[e]=!0,g.keys.push(e)})),[].concat(r.string||[]).filter(Boolean).forEach((function(e){g.strings[e]=!0,g.keys.push(e)})),[].concat(r.number||[]).filter(Boolean).forEach((function(e){g.numbers[e]=!0,g.keys.push(e)})),[].concat(r.count||[]).filter(Boolean).forEach((function(e){g.counts[e]=!0,g.keys.push(e)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(e){g.normalize[e]=!0,g.keys.push(e)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([e,t])=>{"number"==typeof t&&(g.nargs[e]=t,g.keys.push(e))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([e,t])=>{"function"==typeof t&&(g.coercions[e]=t,g.keys.push(e))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(e){g.configs[e]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(g.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){g.aliases[e]||(g.aliases[e]=[].concat(s[e]||[]),g.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&o["camel-case-expansion"]){const r=b(t);r!==e&&-1===g.aliases[e].indexOf(r)&&(g.aliases[e].push(r),d[r]=!0)}})),g.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&o["camel-case-expansion"]){const r=y(t,"-");r!==e&&-1===g.aliases[e].indexOf(r)&&(g.aliases[e].push(r),d[r]=!0)}})),g.aliases[e].forEach((function(t){g.aliases[t]=[e].concat(g.aliases[e].filter((function(e){return t!==e})))})))}))}))}(r.key,s,r.default,g.arrays),Object.keys(a).forEach((function(e){(g.aliases[e]||[]).forEach((function(t){a[t]=a[e]}))}));let S=null;Object.keys(g.counts).find((e=>U(e,g.arrays)?(S=Error(m("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!U(e,g.nargs)&&(S=Error(m("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let x=[];const O=Object.assign(Object.create(null),{_:[]}),_={};for(let e=0;e<n.length;e++){const t=n[e],r=t.replace(/^-{3,}/,"---");let i,s,a,u,l,c;if("--"!==t&&/^-/.test(t)&&G(t))A(t);else{if(r.match(/^---+(=|$)/)){A(t);continue}if(t.match(/^--.+=/)||!o["short-option-groups"]&&t.match(/^-.+=/))u=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&(U(u[1],g.arrays)?e=M(e,u[1],n,u[2]):!1!==U(u[1],g.nargs)?e=T(e,u[1],n,u[2]):k(u[1],u[2],!0));else if(t.match(C)&&o["boolean-negation"])u=t.match(C),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],k(s,!!U(s,g.arrays)&&[!1]));else if(t.match(/^--.+/)||!o["short-option-groups"]&&t.match(/^-[^-]+/))u=t.match(/^--?(.+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],U(s,g.arrays)?e=M(e,s,n):!1!==U(s,g.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||l.match(/^-/)&&!l.match(F)||U(s,g.bools)||U(s,g.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,H(s)):(k(s,l),e++)));else if(t.match(/^-.\..+=/))u=t.match(/^-([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&k(u[1],u[2]);else if(t.match(/^-.\..+/)&&!t.match(F))l=n[e+1],u=t.match(/^-(.\..+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],void 0===l||l.match(/^-/)||U(s,g.bools)||U(s,g.counts)?k(s,H(s)):(k(s,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(F)){a=t.slice(1,-1).split(""),i=!1;for(let r=0;r<a.length;r++){if(l=t.slice(r+2),a[r+1]&&"="===a[r+1]){c=t.slice(r+3),s=a[r],U(s,g.arrays)?e=M(e,s,n,c):!1!==U(s,g.nargs)?e=T(e,s,n,c):k(s,c),i=!0;break}if("-"!==l){if(/[A-Za-z]/.test(a[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===U(l,g.bools)){k(a[r],l),i=!0;break}if(a[r+1]&&a[r+1].match(/\W/)){k(a[r],l),i=!0;break}k(a[r],H(a[r]))}else k(a[r],l)}s=t.slice(-1)[0],i||"-"===s||(U(s,g.arrays)?e=M(e,s,n):!1!==U(s,g.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(F)||U(s,g.bools)||U(s,g.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,H(s)):(k(s,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(F)&&U(t.slice(1),g.bools))s=t.slice(1),k(s,H(s));else{if("--"===t){x=n.slice(e+1);break}if(o["halt-at-non-option"]){x=n.slice(e);break}A(t)}}}function A(e){const t=B("_",e);"string"!=typeof t&&"number"!=typeof t||O._.push(t)}function T(e,t,r,n){let i,s=U(t,g.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return z(n)||(S=Error(m("Argument unexpected for: %s",t))),k(t,H(t)),e;let a=z(n)?0:1;if(o["nargs-eats-options"])r.length-(e+1)+a<s&&(S=Error(m("Not enough arguments following: %s",t))),a=s;else{for(i=e+1;i<r.length&&(!r[i].match(/^-[^0-9]/)||r[i].match(F)||G(r[i]));i++)a++;a<s&&(S=Error(m("Not enough arguments following: %s",t)))}let u=Math.min(a,s);for(!z(n)&&u>0&&(k(t,n),u--),i=e+1;i<u+e+1;i++)k(t,r[i]);return e+u}function M(e,t,r,n){let s=[],u=n||r[e+1];const l=U(t,g.nargs);if(U(t,g.bools)&&!/^(true|false)$/.test(u))s.push(!0);else if(z(u)||z(n)&&/^-/.test(u)&&!F.test(u)&&!G(u)){if(void 0!==a[t]){const e=a[t];s=Array.isArray(e)?e:[e]}}else{z(n)||s.push(j(t,n,!0));for(let n=e+1;n<r.length&&!(!o["greedy-arrays"]&&s.length>0||l&&"number"==typeof l&&s.length>=l)&&(u=r[n],!/^-/.test(u)||F.test(u)||G(u));n++)e=n,s.push(j(t,u,i))}return"number"==typeof l&&(l&&s.length<l||isNaN(l)&&0===s.length)&&(S=Error(m("Not enough arguments following: %s",t))),k(t,s),e}function k(e,t,r=i){if(/-/.test(e)&&o["camel-case-expansion"]){const t=e.split(".").map((function(e){return b(e)})).join(".");I(e,t)}const n=j(e,t,r),s=e.split(".");if(L(O,s,n),g.aliases[e]&&g.aliases[e].forEach((function(e){const t=e.split(".");L(O,t,n)})),s.length>1&&o["dot-notation"]&&(g.aliases[s[0]]||[]).forEach((function(t){let r=t.split(".");const i=[].concat(s);i.shift(),r=r.concat(i),(g.aliases[e]||[]).includes(r.join("."))||L(O,r,n)})),U(e,g.normalize)&&!U(e,g.arrays)){[e].concat(g.aliases[e]||[]).forEach((function(e){Object.defineProperty(_,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?w.normalize(e):e}})}))}}function I(e,t){g.aliases[e]&&g.aliases[e].length||(g.aliases[e]=[t],d[t]=!0),g.aliases[t]&&g.aliases[t].length||I(t,e)}function j(e,t,r){r&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(U(e,g.bools)||U(e,g.counts))&&"string"==typeof t&&(t="true"===t);let n=Array.isArray(t)?t.map((function(t){return B(e,t)})):B(e,t);return U(e,g.counts)&&(z(n)||"boolean"==typeof n)&&(n=v()),U(e,g.normalize)&&U(e,g.arrays)&&(n=Array.isArray(t)?t.map((e=>w.normalize(e))):w.normalize(t)),n}function B(e,t){if(!o["parse-positional-numbers"]&&"_"===e)return t;if(!U(e,g.strings)&&!U(e,g.bools)&&!Array.isArray(t)){(D(t)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!z(t)&&U(e,g.numbers))&&(t=Number(t))}return t}function P(e,t){Object.keys(e).forEach((function(r){const n=e[r],i=t?t+"."+r:r;"object"==typeof n&&null!==n&&!Array.isArray(n)&&o["dot-notation"]?P(n,i):(!N(O,i.split("."))||U(i,g.arrays)&&o["combine-arrays"])&&k(i,n)}))}function R(e,t){if(void 0===l)return;const r="string"==typeof l?l:"",n=w.env();Object.keys(n).forEach((function(i){if(""===r||0===i.lastIndexOf(r,0)){const s=i.split("__").map((function(e,t){return 0===t&&(e=e.substring(r.length)),b(e)}));(t&&g.configs[s.join(".")]||!t)&&!N(e,s)&&k(s.join("."),n[i])}}))}function $(e,t,r,n=!1){Object.keys(r).forEach((function(i){N(e,i.split("."))||(L(e,i.split("."),r[i]),n&&(f[i]=!0),(t[i]||[]).forEach((function(t){N(e,t.split("."))||L(e,t.split("."),r[i])})))}))}function N(e,t){let r=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){r=r[e]||{}}));const n=t[t.length-1];return"object"==typeof r&&n in r}function L(e,t,r){let n=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=E(e),"object"==typeof n&&void 0===n[e]&&(n[e]={}),"object"!=typeof n[e]||Array.isArray(n[e])?(Array.isArray(n[e])?n[e].push({}):n[e]=[n[e],{}],n=n[e][n[e].length-1]):n=n[e]}));const i=E(t[t.length-1]),s=U(t.join("."),g.arrays),a=Array.isArray(r);let u=o["duplicate-arguments-array"];!u&&U(i,g.nargs)&&(u=!0,(!z(n[i])&&1===g.nargs[i]||Array.isArray(n[i])&&n[i].length===g.nargs[i])&&(n[i]=void 0)),r===v()?n[i]=v(n[i]):Array.isArray(n[i])?u&&s&&a?n[i]=o["flatten-duplicate-arrays"]?n[i].concat(r):(Array.isArray(n[i][0])?n[i]:[n[i]]).concat([r]):u||Boolean(s)!==Boolean(a)?n[i]=n[i].concat([r]):n[i]=r:void 0===n[i]&&s?n[i]=a?r:[r]:!u||void 0===n[i]||U(i,g.counts)||U(i,g.bools)?n[i]=r:n[i]=[n[i],r]}function U(e,t){const r=[].concat(g.aliases[e]||[],e),n=Object.keys(t),i=r.find((e=>n.includes(e)));return!!i&&t[i]}function W(e){const t=Object.keys(g);return[].concat(t.map((e=>g[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function G(e){return o["unknown-options-as-args"]&&function(e){if(e=e.replace(/^-{3,}/,"--"),e.match(F))return!1;if(function(e){if(e.match(F)||!e.match(/^-[^-]+/))return!1;let t,r=!0;const n=e.slice(1).split("");for(let i=0;i<n.length;i++){if(t=e.slice(i+2),!W(n[i])){r=!1;break}if(n[i+1]&&"="===n[i+1]||"-"===t||/[A-Za-z]/.test(n[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||n[i+1]&&n[i+1].match(/\W/))break}return r}(e))return!1;return!function(e,...t){return[].concat(...t).some((function(t){const r=e.match(t);return r&&W(r[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,C,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}(e)}function H(e){return U(e,g.bools)||U(e,g.counts)||!(`${e}`in a)?(t=function(e){let t=p.BOOLEAN;return U(e,g.strings)?t=p.STRING:U(e,g.numbers)?t=p.NUMBER:U(e,g.bools)?t=p.BOOLEAN:U(e,g.arrays)&&(t=p.ARRAY),t}(e),{[p.BOOLEAN]:!0,[p.STRING]:"",[p.NUMBER]:void 0,[p.ARRAY]:[]}[t]):a[e];var t}function z(e){return void 0===e}return R(O,!0),R(O,!1),function(e){const t=Object.create(null);$(t,g.aliases,a),Object.keys(g.configs).forEach((function(r){const n=e[r]||t[r];if(n)try{let e=null;const t=w.resolve(w.cwd(),n),i=g.configs[r];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(S=e)}else e=w.require(t);P(e)}catch(t){"PermissionDenied"===t.name?S=t:e[r]&&(S=Error(m("Invalid JSON config file: %s",n)))}}))}(O),void 0!==u&&u.forEach((function(e){P(e)})),$(O,g.aliases,a,!0),function(e){let t;const r=new Set;Object.keys(e).forEach((function(n){if(!r.has(n)&&(t=U(n,g.coercions),"function"==typeof t))try{const i=B(n,t(e[n]));[].concat(g.aliases[n]||[],n).forEach((t=>{r.add(t),e[t]=i}))}catch(e){S=e}}))}(O),o["set-placeholder-key"]&&function(e){g.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(O),Object.keys(g.counts).forEach((function(e){N(O,e.split("."))||k(e,0)})),c&&x.length&&(O[h]=[]),x.forEach((function(e){O[h].push(e)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(O).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete O[e]})),o["strip-aliased"]&&[].concat(...Object.keys(s).map((e=>s[e]))).forEach((e=>{o["camel-case-expansion"]&&e.includes("-")&&delete O[e.split(".").map((e=>b(e))).join(".")],delete O[e]})),{aliases:Object.assign({},g.aliases),argv:Object.assign(_,O),configuration:o,defaulted:Object.assign({},f),error:S,newAliases:Object.assign({},d)}}}({cwd:process.cwd,env:()=>_,format:m.format,normalize:f.normalize,resolve:f.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,i.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),T=function(e,t){return A.parse(e.slice(),t).argv};T.detailed=function(e,t){return A.parse(e.slice(),t)},T.camelCase=b,T.decamelize=y,T.looksLikeNumber=D;const M=T;function k(){return process.versions.electron&&!process.defaultApp?0:1}class I extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,I)}}const j={fs:{readFileSync:i.readFileSync,writeFile:i.writeFile},format:m.format,resolve:f.resolve,exists:e=>{try{return(0,i.statSync)(e).isFile()}catch(e){return!1}}};let B;class P{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let r=function(){};return"function"==typeof e[e.length-1]&&(r=e.pop()),r=r||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:r})):r(),B.format.apply(B.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),r=e.shift(),n=e.shift();let i=function(){};"function"==typeof e[e.length-1]&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let s=1===n?t:r;if(this.cache[this.locale][t]){s=this.cache[this.locale][t][1===n?"one":"other"]}!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const o=[s];return~s.indexOf("%d")&&o.push(n),B.format.apply(B.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let r="";return e.forEach((function(e,n){const i=t[n+1];r+=e,void 0!==i&&(r+="%s")})),this.__.apply(this,[r].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],r=t.directory,n=t.locale,i=t.cb,s=this._resolveLocaleFile(r,n),o=JSON.stringify(this.cache[n],null,2);B.fs.writeFile(s,o,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{B.fs.readFileSync&&(e=JSON.parse(B.fs.readFileSync(t,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+t),"ENOENT"!==r.code)throw r;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let r=B.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~t.lastIndexOf("_")){const n=B.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(n)&&(r=n)}return r}_fileExistsSync(e){return B.exists(e)}}const R=e=>function(e,t){B=t;const r=new P(e);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}}(e,j),$="loading a directory of commands is not supported yet for ESM";let N;try{N=(0,g.fileURLToPath)(import.meta.url)}catch(e){N=process.cwd()}const L=N.substring(0,N.lastIndexOf("node_modules")),U={assert:{notStrictEqual:s.notStrictEqual,strictEqual:s.strictEqual},cliui:function(e){return function(e,t){return l=t,new a({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:e=>[...e].length,stripAnsi:h,wrap:d})},findUp:function(e,t){let r,n=(0,f.resolve)(".",e);for((0,i.statSync)(n).isDirectory()||(n=(0,f.dirname)(n));;){if(r=t(n,(0,i.readdirSync)(n)),r)return(0,f.resolve)(n,r);if(n=(0,f.dirname)(r=n),r===n)break}},getEnv:e=>process.env[e],inspect:m.inspect,getCallerFile:()=>{throw new I($)},getProcessArgvBin:function(){return process.argv[k()]},mainFilename:L||process.cwd(),Parser:M,path:{basename:f.basename,dirname:f.dirname,extname:f.extname,relative:f.relative,resolve:f.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:i.readFileSync,require:()=>{throw new I("require is not supported by ESM")},requireDirectory:()=>{throw new I($)},stringWidth:e=>[...e].length,y18n:R({directory:(0,f.resolve)(N,"../../../locales"),updateFiles:!1})};function W(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function G(e,t){t.assert.strictEqual(typeof e,"string")}function H(e){return Object.keys(e)}function z(e){return!!e&&!!e.then&&"function"==typeof e.then}function V(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,n=t.shift();if(!n)throw new Error(`No command found in: ${e}`);const i={cmd:n.replace(r,""),demanded:[],optional:[]};return t.forEach(((e,n)=>{let s=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&n===t.length-1&&(s=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(r,"").split("|"),variadic:s}):i.demanded.push({cmd:e.replace(r,"").split("|"),variadic:s})})),i}const q=["first","second","third","fourth","fifth","sixth"];function Y(e,t,r){try{let n=0;const[i,s,o]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[V(`cmd ${e}`),t,r],a=[].slice.call(s);for(;a.length&&void 0===a[a.length-1];)a.pop();const u=o||a.length;if(u<i.demanded.length)throw new I(`Not enough arguments provided. Expected ${i.demanded.length} but received ${a.length}.`);const l=i.demanded.length+i.optional.length;if(u>l)throw new I(`Too many arguments provided. Expected max ${l} but received ${u}.`);i.demanded.forEach((e=>{const t=K(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&J(t,e.cmd,n),n+=1})),i.optional.forEach((e=>{if(0===a.length)return;const t=K(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&J(t,e.cmd,n),n+=1}))}catch(e){console.warn(e.stack)}}function K(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function J(e,t,r){throw new I(`Invalid ${q[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}class Z{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,r=!0,n=!1){if(Y("<array|function> [boolean] [boolean] [boolean]",[e,t,r],arguments.length),Array.isArray(e)){for(let n=0;n<e.length;n++){if("function"!=typeof e[n])throw Error("middleware must be a function");const i=e[n];i.applyBeforeValidation=t,i.global=r}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const i=e;i.applyBeforeValidation=t,i.global=r,i.mutates=n,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const n=[...r[t]||[],t];return!e.option||!n.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function Q(e,t,r,n){return r.reduce(((e,r)=>{if(r.applyBeforeValidation!==n)return e;if(r.mutates){if(r.applied)return e;r.applied=!0}if(z(e))return e.then((e=>Promise.all([e,r(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const n=r(e,t);return z(n)?n.then((t=>Object.assign(e,t))):Object.assign(e,n)}}),e)}function X(e,t,r=(e=>{throw e})){try{const r="function"==typeof e?e():e;return z(r)?r.then((e=>t(e))):t(r)}catch(e){return r(e)}}const ee=/(^\*)|(^\$0)/;class te{constructor(e,t,r,n){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=n,this.usage=e,this.globalMiddleware=r,this.validation=t}addDirectory(e,t,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:e=>e;n.visit=(e,t,r)=>{const n=i(e,t,r);if(n){if(this.requireCache.has(t))return n;this.requireCache.add(t),this.addHandler(n)}return n},this.shim.requireDirectory({require:t,filename:r},e,n)}addHandler(e,t,r,n,i,s){let o=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(i);if(n=n||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...o]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(re(r))return void this.addHandler([e].concat(o),t,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof e){const i=V(e);o=o.map((e=>V(e).cmd));let u=!1;const l=[i.cmd].concat(o).filter((e=>!ee.test(e)||(u=!0,!1)));0===l.length&&u&&l.push("$0"),u&&(i.cmd=l[0],o=l.slice(1),e=e.replace(ee,i.cmd)),o.forEach((e=>{this.aliasMap[e]=i.cmd})),!1!==t&&this.usage.command(e,t,u,o,s),this.handlers[i.cmd]={original:e,description:t,handler:n,builder:r||{},middlewares:a,deprecated:s,demanded:i.demanded,optional:i.optional},u&&(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(e,t,r,n,i,s){const o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),u=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(o.original));const c=this.applyBuilderUpdateUsageAndParse(l,o,t,r.aliases,u,n,i,s);return z(c)?c.then((e=>this.applyMiddlewareAndGetResult(l,o,e.innerArgv,a,i,e.aliases,t))):this.applyMiddlewareAndGetResult(l,o,c.innerArgv,a,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,r,n,i,s,o,a){const u=t.builder;let l=r;if(ne(u)){r.getInternalMethods().getUsageInstance().freeze();const c=u(r.getInternalMethods().reset(n),a);if(z(c))return c.then((n=>{var a;return l=(a=n)&&"function"==typeof a.getInternalMethods?n:r,this.parseAndUpdateUsage(e,t,l,i,s,o)}))}else(function(e){return"object"==typeof e})(u)&&(r.getInternalMethods().getUsageInstance().freeze(),l=r.getInternalMethods().reset(n),Object.keys(t.builder).forEach((e=>{l.option(e,u[e])})));return this.parseAndUpdateUsage(e,t,l,i,s,o)}parseAndUpdateUsage(e,t,r,n,i,s){e&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n,t),t.description);const o=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return z(o)?o.then((e=>({aliases:r.parsed.aliases,innerArgv:e}))):{aliases:r.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const r=ee.test(t.original)?t.original.replace(ee,"").trim():t.original,n=e.filter((e=>!ee.test(e)));return n.push(r),`$0 ${n.join(" ")}`}handleValidationAndGetResult(e,t,r,n,i,s,o,a){if(!s.getInternalMethods().getHasOutput()){const t=s.getInternalMethods().runValidation(i,a,s.parsed.error,e);r=X(r,(e=>(t(e),e)))}if(t.handler&&!s.getInternalMethods().getHasOutput()){s.getInternalMethods().setHasOutput();const n=!!s.getOptions().configuration["populate--"];s.getInternalMethods().postProcess(r,n,!1,!1),r=X(r=Q(r,s,o,!1),(e=>{const r=t.handler(e);return z(r)?r.then((()=>e)):e})),e||s.getInternalMethods().getUsageInstance().cacheHelpMessage(),z(r)&&!s.getInternalMethods().hasParseCallback()&&r.catch((e=>{try{s.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(n.commands.pop(),n.fullCommands.pop()),r}applyMiddlewareAndGetResult(e,t,r,n,i,s,o){let a={};if(i)return r;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,r,n,o));const u=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=Q(r,o,u,!0);return z(l)?l.then((r=>this.handleValidationAndGetResult(e,t,r,n,s,o,u,a))):this.handleValidationAndGetResult(e,t,l,n,s,o,u,a)}populatePositionals(e,t,r,n){t._=t._.slice(r.commands.length);const i=e.demanded.slice(0),s=e.optional.slice(0),o={};for(this.validation.positionalCount(i.length,t._.length);i.length;){const e=i.shift();this.populatePositional(e,t,o)}for(;s.length;){const e=s.shift();this.populatePositional(e,t,o)}return t._=r.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),n),o}populatePositional(e,t,r){const n=e.cmd[0];e.variadic?r[n]=t._.splice(0).map(String):t._.length&&(r[n]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},r=V(e);return r.demanded.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n,t.demand[r]=!0})),r.optional.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n})),t}postProcessPositionals(e,t,r,n){const i=Object.assign({},n.getOptions());i.default=Object.assign(r.default,i.default);for(const e of Object.keys(r.alias))i.alias[e]=(i.alias[e]||[]).concat(r.alias[e]);i.array=i.array.concat(r.array),i.config={};const s=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),s.push(`--${e}`),s.push(t)}))})),!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(t);Object.keys(t).forEach((e=>{r.push(...a.aliases[e])})),Object.keys(a.argv).forEach((i=>{r.includes(i)&&(t[i]||(t[i]=a.argv[i]),!this.isInConfigs(n,i)&&!this.isDefaulted(n,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(a.argv,i)&&(Array.isArray(e[i])||Array.isArray(a.argv[i]))?e[i]=[].concat(e[i],a.argv[i]):e[i]=a.argv[i])}))}}isDefaulted(e,t){const{default:r}=e.getOptions();return Object.prototype.hasOwnProperty.call(r,t)||Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:r}=e.getOptions();return r.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||r.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=ee.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(ne(t))return t(e,!0);re(t)||Object.keys(t).forEach((r=>{e.option(r,t[r])}))}moduleName(e){const t=function(e){if("undefined"==typeof require)return null;for(let t,r=0,n=Object.keys(require.cache);r<n.length;r++)if(t=require.cache[n[r]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:r}){for(const n of[e,t,r]){if("string"==typeof n||!1===n)return n;W(n,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();W(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function re(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function ne(e){return"function"==typeof e}function ie(e={},t=(()=>!0)){const r={};return H(e).forEach((n=>{t(n,e[n])&&(r[n]=e[n])})),r}function se(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const r=t;r._handle&&r.isTTY&&"function"==typeof r._handle.setBlocking&&r._handle.setBlocking(e)}))}function oe(e){return"boolean"==typeof e}function ae(e,t){const r=t.y18n.__,n={},i=[];n.failFn=function(e){i.push(e)};let s=null,o=null,a=!0;n.showHelpOnFail=function(t=!0,r){const[i,u]="string"==typeof t?[!0,t]:[t,r];return e.getInternalMethods().isGlobalContext()&&(o=u),s=u,a=i,n};let u=!1;n.fail=function(t,r){const l=e.getInternalMethods().getLoggerInstance();if(!i.length){if(e.getExitProcess()&&se(!0),!u){u=!0,a&&(e.showHelp("error"),l.error()),(t||r)&&l.error(t||r);const n=s||o;n&&((t||r)&&l.error(""),l.error(n))}if(r=r||new I(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,r);throw r}for(let e=i.length-1;e>=0;--e){const s=i[e];if(oe(s)){if(r)throw r;if(t)throw Error(t)}else s(t,r,n)}};let l=[],c=!1;n.usage=(e,t)=>null===e?(c=!0,l=[],n):(c=!1,l.push([e,t||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let h=[];n.example=(e,t)=>{h.push([e,t||""])};let d=[];n.command=function(e,t,r,n,i=!1){r&&(d=d.map((e=>(e[2]=!1,e)))),d.push([e,t||"",r,n,i])},n.getCommands=()=>d;let f={};n.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{n.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{n.describe(t,e[t])})):f[e]=t},n.getDescriptions=()=>f;let p=[];n.epilog=e=>{p.push(e)};let m,g=!1;n.wrap=e=>{g=!0,m=e},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=function(){const e=80;return t.process.stdColumns?Math.min(e,t.process.stdColumns):e}(),g=!0),m);const b="__yargsString__:";function y(e,r,n){let i=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{i=Math.max(t.stringWidth(n?`${n} ${ce(e[0])}`:ce(e[0]))+le(e[0]),i)})),r&&(i=Math.min(i,parseInt((.5*r).toString(),10))),i}let D;function w(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function v(e,t){let n=`[${r("default:")} `;if(void 0===e&&!t)return null;if(t)n+=t;else switch(typeof e){case"string":n+=`"${e}"`;break;case"object":n+=JSON.stringify(e);break;default:n+=e}return`${n}]`}n.deferY18nLookup=e=>b+e,n.help=function(){if(D)return D;!function(){const t=e.getDemandedOptions(),r=e.getOptions();(Object.keys(r.alias)||[]).forEach((i=>{r.alias[i].forEach((s=>{f[s]&&n.describe(i,f[s]),s in t&&e.demandOption(i,t[s]),r.boolean.includes(s)&&e.boolean(i),r.count.includes(s)&&e.count(i),r.string.includes(s)&&e.string(i),r.normalize.includes(s)&&e.normalize(i),r.array.includes(s)&&e.array(i),r.number.includes(s)&&e.number(i)}))}))}();const i=e.customScriptName?e.$0:t.path.basename(e.$0),s=e.getDemandedOptions(),o=e.getDemandedCommands(),a=e.getDeprecatedOptions(),u=e.getGroups(),m=e.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(w),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const E=n.getWrap(),F=t.cliui({width:E,wrap:!!E});if(!c)if(l.length)l.forEach((e=>{F.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&F.div({text:`${e[1]}`,padding:[1,0,0,0]})})),F.div();else if(d.length){let e=null;e=o._?`${i} <${r("command")}>\n`:`${i} [${r("command")}]\n`,F.div(`${e}`)}if(d.length>1||1===d.length&&!d[0][2]){F.div(r("Commands:"));const t=e.getInternalMethods().getContext(),n=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((e,t)=>e[0].localeCompare(t[0]))));const s=i?`${i} `:"";d.forEach((e=>{const t=`${s}${n}${e[0].replace(/^\$0 ?/,"")}`;F.span({text:t,padding:[0,2,0,2],width:y(d,E,`${i}${n}`)+4},{text:e[1]});const o=[];e[2]&&o.push(`[${r("default")}]`),e[3]&&e[3].length&&o.push(`[${r("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?o.push(`[${r("deprecated: %s",e[4])}]`):o.push(`[${r("deprecated")}]`)),o.length?F.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):F.div()})),F.div()}const C=(Object.keys(m.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&C.every((e=>-1===(m.alias[e]||[]).indexOf(t)))));const S=r("Options:");u[S]||(u[S]=[]),function(e,t,r,n){let i=[],s=null;Object.keys(r).forEach((e=>{i=i.concat(r[e])})),e.forEach((e=>{s=[e].concat(t[e]),s.some((e=>-1!==i.indexOf(e)))||r[n].push(e)}))}(g,m.alias,u,S);const x=e=>/^--/.test(ce(e)),O=Object.keys(u).filter((e=>u[e].length>0)).map((e=>{const t=u[e].filter(w).map((e=>{if(C.includes(e))return e;for(let t,r=0;void 0!==(t=C[r]);r++)if((m.alias[t]||[]).includes(e))return t;return e}));return{groupName:e,normalizedKeys:t}})).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const r=t.reduce(((t,r)=>(t[r]=[r].concat(m.alias[r]||[]).map((t=>e===n.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?m.boolean.includes(r)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>x(e)===x(t)?0:x(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:r}}));if(O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>x(t[e])))))&&O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var r,n;x(t[e])&&(t[e]=(r=t[e],n=4,ue(r)?{text:r.text,indentation:r.indentation+n}:{text:r,indentation:n}))}))})),O.forEach((({groupName:t,normalizedKeys:i,switches:o})=>{F.div(t),i.forEach((t=>{const i=o[t];let u=f[t]||"",l=null;u.includes(b)&&(u=r(u.substring(16))),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,v(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var h;F.span({text:ce(i),padding:[0,2,0,2+le(i)],width:y(o,E)+4},u);const d=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];c&&!d?F.div({text:c,padding:[0,0,0,2],align:"right"}):F.div()})),F.div()})),h.length&&(F.div(r("Examples:")),h.forEach((e=>{e[0]=e[0].replace(/\$0/g,i)})),h.forEach((e=>{""===e[1]?F.div({text:e[0],padding:[0,2,0,2]}):F.div({text:e[0],padding:[0,2,0,2],width:y(h,E)+4},{text:e[1]})})),F.div()),p.length>0){const e=p.map((e=>e.replace(/\$0/g,i))).join("\n");F.div(`${e}\n`)}return F.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){D=this.help()},n.clearCachedHelpMessage=function(){D=void 0},n.hasCachedHelpMessage=function(){return!!D},n.showHelp=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error");("function"==typeof t?t:r[t])(n.help())},n.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(e,t){let r="";const n=t||", ",i=[].concat(e);return e&&i.length?(i.forEach((e=>{r.length&&(r+=n),r+=JSON.stringify(e)})),r):r};let E=null;n.version=e=>{E=e},n.showVersion=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error");("function"==typeof t?t:r[t])(E)},n.reset=function(e){return s=null,u=!1,l=[],c=!1,p=[],h=[],d=[],f=ie(f,(t=>!e[t])),n};const F=[];return n.freeze=function(){F.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:p,examples:h,commands:d,descriptions:f})},n.unfreeze=function(e=!1){const t=F.pop();t&&(e?(f={...t.descriptions,...f},d=[...t.commands,...d],l=[...t.usages,...l],h=[...t.examples,...h],p=[...t.epilogs,...p]):({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:p,examples:h,commands:d,descriptions:f}=t))},n}function ue(e){return"object"==typeof e}function le(e){return ue(e)?e.indentation:0}function ce(e){return ue(e)?e.text:e}class he{constructor(e,t,r,n){var i,s,o;this.yargs=e,this.usage=t,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(e,t,r,n){const i=this.command.getCommandHandlers();for(let t=0,r=e.length;t<r;++t)if(i[e[t]]&&i[e[t]].builder){const r=i[e[t]].builder;if(ne(r)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return r(e,!0),e.argv}}const s=[];this.commandCompletions(s,e,r),this.optionCompletions(s,e,t,r),this.choicesFromOptionsCompletions(s,e,t,r),this.choicesFromPositionalsCompletions(s,e,t,r),n(null,s)}commandCompletions(e,t,r){const n=this.yargs.getInternalMethods().getContext().commands;r.match(/^-/)||n[n.length-1]===r||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((r=>{const n=V(r[0]).cmd;if(-1===t.indexOf(n))if(this.zshShell){const t=r[1]||"";e.push(n.replace(/:/g,"\\:")+":"+t)}else e.push(n)}))}optionCompletions(e,t,r,n){if((n.match(/^-/)||""===n&&0===e.length)&&!this.previousArgHasChoices(t)){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(t,s,o)||this.completeOptionKey(s,e,n,o&&!!r.default[s])}))}}choicesFromOptionsCompletions(e,t,r,n){if(this.previousArgHasChoices(t)){const r=this.getPreviousArgChoices(t);r&&r.length>0&&e.push(...r.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,r,n){if(""===n&&e.length>0&&this.previousArgHasChoices(t))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 t of a)t.startsWith(n)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],r="";if(!t.startsWith("-")&&e.length>1&&(r=t,t=e[e.length-2]),!t.startsWith("-"))return;const n=t.replace(/^-+/,""),i=this.yargs.getOptions(),s=[n,...this.yargs.getAliases()[n]||[]];let o;for(const e of s)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){o=i.choices[e];break}return o?o.filter((e=>!r||e.startsWith(r))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,r){const n=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(n(t))return!0;if(r&&n(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(n(e))return!0;return!1}completeOptionKey(e,t,r,n){var i,s,o,a;let u=e;if(this.zshShell){const t=this.usage.getDescriptions(),r=null===(s=null===(i=null==this?void 0:this.aliases)||void 0===i?void 0:i[e])||void 0===s?void 0:s.find((e=>{const r=t[e];return"string"==typeof r&&r.length>0})),n=r?t[r]:void 0,l=null!==(a=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==a?a:"";u=`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(r)&&(e=>/^[^0-9]$/.test(e))(e)?"-":"--";t.push(l+u),n&&t.push(l+"no-"+u)}customCompletion(e,t,r,n){if(W(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(r,t);return z(e)?e.then((e=>{this.shim.process.nextTick((()=>{n(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{n(e,void 0)}))})):n(null,e)}return function(e){return e.length>3}(this.customCompletionFunction)?this.customCompletionFunction(r,t,((i=n)=>this.defaultCompletion(e,t,r,i)),(e=>{n(null,e)})):this.customCompletionFunction(r,t,(e=>{n(null,e)}))}getCompletion(e,t){const r=e.length?e[e.length-1]:"",n=this.yargs.parse(e,!0),i=this.customCompletionFunction?n=>this.customCompletion(e,n,r,t):n=>this.defaultCompletion(e,n,r,t);return z(n)?n.then(i):i(n)}generateCompletionScript(e,t){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(e);return e.match(/\.js$/)&&(e=`./${e}`),r=r.replace(/{{app_name}}/g,n),r=r.replace(/{{completion_command}}/g,t),r.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function de(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const r=[];let n,i;for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.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[t.length][e.length]}const fe=["$0","--","_"];let pe,me=[];function ge(e,t,r,n){pe=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return i;const n=/\.json|\..*rc$/.test(e.extends);let s=null;if(n)s=function(e,t){return pe.path.resolve(e,t)}(t,e.extends);else try{s=require.resolve(e.extends)}catch(t){return e}!function(e){if(me.indexOf(e)>-1)throw new I(`Circular extended configurations: '${e}'.`)}(s),me.push(s),i=n?JSON.parse(pe.readFileSync(s,"utf8")):require(e.extends),delete e.extends,i=ge(i,pe.path.dirname(s),r,pe)}return me=[],r?be(i,e):Object.assign({},i,e)}function be(e,t){const r={};function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(r,e);for(const i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=be(e[i],t[i]):r[i]=t[i];return r}var ye,De,we,ve,Ee,Fe,Ce,Se,xe,Oe,_e,Ae,Te,Me,ke,Ie,je,Be,Pe,Re,$e,Ne,Le,Ue,We,Ge,He,ze,Ve,qe,Ye,Ke,Je,Ze,Qe,Xe=function(e,t,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 t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},et=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const tt=Symbol("copyDoubleDash"),rt=Symbol("copyDoubleDash"),nt=Symbol("deleteFromParserHintObject"),it=Symbol("emitWarning"),st=Symbol("freeze"),ot=Symbol("getDollarZero"),at=Symbol("getParserConfiguration"),ut=Symbol("getUsageConfiguration"),lt=Symbol("guessLocale"),ct=Symbol("guessVersion"),ht=Symbol("parsePositionalNumbers"),dt=Symbol("pkgUp"),ft=Symbol("populateParserHintArray"),pt=Symbol("populateParserHintSingleValueDictionary"),mt=Symbol("populateParserHintArrayDictionary"),gt=Symbol("populateParserHintDictionary"),bt=Symbol("sanitizeKey"),yt=Symbol("setKey"),Dt=Symbol("unfreeze"),wt=Symbol("validateAsync"),vt=Symbol("getCommandInstance"),Et=Symbol("getContext"),Ft=Symbol("getHasOutput"),Ct=Symbol("getLoggerInstance"),St=Symbol("getParseContext"),xt=Symbol("getUsageInstance"),Ot=Symbol("getValidationInstance"),_t=Symbol("hasParseCallback"),At=Symbol("isGlobalContext"),Tt=Symbol("postProcess"),Mt=Symbol("rebase"),kt=Symbol("reset"),It=Symbol("runYargsParserAndExecuteCommands"),jt=Symbol("runValidation"),Bt=Symbol("setHasOutput"),Pt=Symbol("kTrackManuallySetKeys");class Rt{constructor(e=[],t,r,n){this.customScriptName=!1,this.parsed=!1,ye.set(this,void 0),De.set(this,void 0),we.set(this,{commands:[],fullCommands:[]}),ve.set(this,null),Ee.set(this,null),Fe.set(this,"show-hidden"),Ce.set(this,null),Se.set(this,!0),xe.set(this,{}),Oe.set(this,!0),_e.set(this,[]),Ae.set(this,void 0),Te.set(this,{}),Me.set(this,!1),ke.set(this,null),Ie.set(this,!0),je.set(this,void 0),Be.set(this,""),Pe.set(this,void 0),Re.set(this,void 0),$e.set(this,{}),Ne.set(this,null),Le.set(this,null),Ue.set(this,{}),We.set(this,{}),Ge.set(this,void 0),He.set(this,!1),ze.set(this,void 0),Ve.set(this,!1),qe.set(this,!1),Ye.set(this,!1),Ke.set(this,void 0),Je.set(this,{}),Ze.set(this,null),Qe.set(this,void 0),Xe(this,ze,n,"f"),Xe(this,Ge,e,"f"),Xe(this,De,t,"f"),Xe(this,Re,r,"f"),Xe(this,Ae,new Z(this),"f"),this.$0=this[ot](),this[kt](),Xe(this,ye,et(this,ye,"f"),"f"),Xe(this,Ke,et(this,Ke,"f"),"f"),Xe(this,Qe,et(this,Qe,"f"),"f"),Xe(this,Pe,et(this,Pe,"f"),"f"),et(this,Pe,"f").showHiddenOpt=et(this,Fe,"f"),Xe(this,je,this[rt](),"f")}addHelpOpt(e,t){return Y("[string|boolean] [string]",[e,t],arguments.length),et(this,ke,"f")&&(this[nt](et(this,ke,"f")),Xe(this,ke,null,"f")),!1===e&&void 0===t||(Xe(this,ke,"string"==typeof e?e:"help","f"),this.boolean(et(this,ke,"f")),this.describe(et(this,ke,"f"),t||et(this,Ke,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(Y("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const r="string"==typeof e?e:et(this,Fe,"f");return this.boolean(r),this.describe(r,t||et(this,Ke,"f").deferY18nLookup("Show hidden options")),et(this,Pe,"f").showHiddenOpt=r,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return Y("<object|string|array> [string|array]",[e,t],arguments.length),this[mt](this.alias.bind(this),"alias",e,t),this}array(e){return Y("<array|string>",[e],arguments.length),this[ft]("array",e),this[Pt](e),this}boolean(e){return Y("<array|string>",[e],arguments.length),this[ft]("boolean",e),this[Pt](e),this}check(e,t){return Y("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,r)=>X((()=>e(t,r.getOptions())),(r=>(r?("string"==typeof r||r instanceof Error)&&et(this,Ke,"f").fail(r.toString(),r):et(this,Ke,"f").fail(et(this,ze,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(et(this,Ke,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return Y("<object|string|array> [string|array]",[e,t],arguments.length),this[mt](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(Y("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new I("coerce callback must be provided");for(const r of e)this.coerce(r,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new I("coerce callback must be provided");return et(this,Pe,"f").key[e]=!0,et(this,Ae,"f").addCoerceMiddleware(((r,n)=>{let i;return Object.prototype.hasOwnProperty.call(r,e)?X((()=>(i=n.getAliases(),t(r[e]))),(t=>{r[e]=t;const s=n.getInternalMethods().getParserConfiguration()["strip-aliased"];if(i[e]&&!0!==s)for(const n of i[e])r[n]=t;return r}),(e=>{throw new I(e.message)})):r}),e),this}conflicts(e,t){return Y("<string|object> [string|array]",[e,t],arguments.length),et(this,Qe,"f").conflicts(e,t),this}config(e="config",t,r){return Y("[object|string] [string|function] [function]",[e,t,r],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(r=t,t=void 0),this.describe(e,t||et(this,Ke,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{et(this,Pe,"f").config[e]=r||!0})),this):(e=ge(e,et(this,De,"f"),this[at]()["deep-merge-config"]||!1,et(this,ze,"f")),et(this,Pe,"f").configObjects=(et(this,Pe,"f").configObjects||[]).concat(e),this)}completion(e,t,r){return Y("[string] [string|boolean|function] [function]",[e,t,r],arguments.length),"function"==typeof t&&(r=t,t=void 0),Xe(this,Ee,e||et(this,Ee,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(et(this,Ee,"f"),t),r&&et(this,ve,"f").registerFunction(r),this}command(e,t,r,n,i,s){return Y("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,r,n,i,s],arguments.length),et(this,ye,"f").addHandler(e,t,r,n,i,s),this}commands(e,t,r,n,i,s){return this.command(e,t,r,n,i,s)}commandDir(e,t){Y("<string> [object]",[e,t],arguments.length);const r=et(this,Re,"f")||et(this,ze,"f").require;return et(this,ye,"f").addDirectory(e,r,et(this,ze,"f").getCallerFile(),t),this}count(e){return Y("<array|string>",[e],arguments.length),this[ft]("count",e),this[Pt](e),this}default(e,t,r){return Y("<object|string|array> [*] [string]",[e,t,r],arguments.length),r&&(G(e,et(this,ze,"f")),et(this,Pe,"f").defaultDescription[e]=r),"function"==typeof t&&(G(e,et(this,ze,"f")),et(this,Pe,"f").defaultDescription[e]||(et(this,Pe,"f").defaultDescription[e]=et(this,Ke,"f").functionDescription(t)),t=t.call()),this[pt](this.default.bind(this),"default",e,t),this}defaults(e,t,r){return this.default(e,t,r)}demandCommand(e=1,t,r,n){return Y("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,r,n],arguments.length),"number"!=typeof t&&(r=t,t=1/0),this.global("_",!1),et(this,Pe,"f").demandedCommands._={min:e,max:t,minMsg:r,maxMsg:n},this}demand(e,t,r){return Array.isArray(t)?(t.forEach((e=>{W(r,!0,et(this,ze,"f")),this.demandOption(e,r)})),t=1/0):"number"!=typeof t&&(r=t,t=1/0),"number"==typeof e?(W(r,!0,et(this,ze,"f")),this.demandCommand(e,t,r,r)):Array.isArray(e)?e.forEach((e=>{W(r,!0,et(this,ze,"f")),this.demandOption(e,r)})):"string"==typeof r?this.demandOption(e,r):!0!==r&&void 0!==r||this.demandOption(e),this}demandOption(e,t){return Y("<object|string|array> [string]",[e,t],arguments.length),this[pt](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return Y("<string> [string|boolean]",[e,t],arguments.length),et(this,Pe,"f").deprecatedOptions[e]=t,this}describe(e,t){return Y("<object|string|array> [string]",[e,t],arguments.length),this[yt](e,!0),et(this,Ke,"f").describe(e,t),this}detectLocale(e){return Y("<boolean>",[e],arguments.length),Xe(this,Se,e,"f"),this}env(e){return Y("[string|boolean]",[e],arguments.length),!1===e?delete et(this,Pe,"f").envPrefix:et(this,Pe,"f").envPrefix=e||"",this}epilogue(e){return Y("<string>",[e],arguments.length),et(this,Ke,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return Y("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):et(this,Ke,"f").example(e,t),this}exit(e,t){Xe(this,Me,!0,"f"),Xe(this,Ce,t,"f"),et(this,Oe,"f")&&et(this,ze,"f").process.exit(e)}exitProcess(e=!0){return Y("[boolean]",[e],arguments.length),Xe(this,Oe,e,"f"),this}fail(e){if(Y("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new I("Invalid first argument. Expected function or boolean 'false'");return et(this,Ke,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return Y("<array> [function]",[e,t],arguments.length),t?et(this,ve,"f").getCompletion(e,t):new Promise(((t,r)=>{et(this,ve,"f").getCompletion(e,((e,n)=>{e?r(e):t(n)}))}))}getDemandedOptions(){return Y([],0),et(this,Pe,"f").demandedOptions}getDemandedCommands(){return Y([],0),et(this,Pe,"f").demandedCommands}getDeprecatedOptions(){return Y([],0),et(this,Pe,"f").deprecatedOptions}getDetectLocale(){return et(this,Se,"f")}getExitProcess(){return et(this,Oe,"f")}getGroups(){return Object.assign({},et(this,Te,"f"),et(this,We,"f"))}getHelp(){if(Xe(this,Me,!0,"f"),!et(this,Ke,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[It](et(this,Ge,"f"),void 0,void 0,0,!0);if(z(e))return e.then((()=>et(this,Ke,"f").help()))}const e=et(this,ye,"f").runDefaultBuilderOn(this);if(z(e))return e.then((()=>et(this,Ke,"f").help()))}return Promise.resolve(et(this,Ke,"f").help())}getOptions(){return et(this,Pe,"f")}getStrict(){return et(this,Ve,"f")}getStrictCommands(){return et(this,qe,"f")}getStrictOptions(){return et(this,Ye,"f")}global(e,t){return Y("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?et(this,Pe,"f").local=et(this,Pe,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{et(this,Pe,"f").local.includes(e)||et(this,Pe,"f").local.push(e)})),this}group(e,t){Y("<string|array> <string>",[e,t],arguments.length);const r=et(this,We,"f")[t]||et(this,Te,"f")[t];et(this,We,"f")[t]&&delete et(this,We,"f")[t];const n={};return et(this,Te,"f")[t]=(r||[]).concat(e).filter((e=>!n[e]&&(n[e]=!0))),this}hide(e){return Y("<string>",[e],arguments.length),et(this,Pe,"f").hiddenOptions.push(e),this}implies(e,t){return Y("<string|object> [number|string|array]",[e,t],arguments.length),et(this,Qe,"f").implies(e,t),this}locale(e){return Y("[string]",[e],arguments.length),void 0===e?(this[lt](),et(this,ze,"f").y18n.getLocale()):(Xe(this,Se,!1,"f"),et(this,ze,"f").y18n.setLocale(e),this)}middleware(e,t,r){return et(this,Ae,"f").addMiddleware(e,!!t,r)}nargs(e,t){return Y("<string|object|array> [number]",[e,t],arguments.length),this[pt](this.nargs.bind(this),"narg",e,t),this}normalize(e){return Y("<array|string>",[e],arguments.length),this[ft]("normalize",e),this}number(e){return Y("<array|string>",[e],arguments.length),this[ft]("number",e),this[Pt](e),this}option(e,t){if(Y("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[Pt](e),!et(this,Ze,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[it](['"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"),et(this,Pe,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const r=t.deprecate||t.deprecated;r&&this.deprecateOption(e,r);const n=t.demand||t.required||t.require;n&&this.demand(e,n),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(et(this,Pe,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const i=t.describe||t.description||t.desc,s=et(this,Ke,"f").getDescriptions();Object.prototype.hasOwnProperty.call(s,e)&&"string"!=typeof i||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,r){Y("[string|array] [function|boolean|object] [function]",[e,t,r],arguments.length),this[st](),void 0===e&&(e=et(this,Ge,"f")),"object"==typeof t&&(Xe(this,Le,t,"f"),t=r),"function"==typeof t&&(Xe(this,Ne,t,"f"),t=!1),t||Xe(this,Ge,e,"f"),et(this,Ne,"f")&&Xe(this,Oe,!1,"f");const n=this[It](e,!!t),i=this.parsed;return et(this,ve,"f").setParsed(this.parsed),z(n)?n.then((e=>(et(this,Ne,"f")&&et(this,Ne,"f").call(this,et(this,Ce,"f"),e,et(this,Be,"f")),e))).catch((e=>{throw et(this,Ne,"f")&&et(this,Ne,"f")(e,this.parsed.argv,et(this,Be,"f")),e})).finally((()=>{this[Dt](),this.parsed=i})):(et(this,Ne,"f")&&et(this,Ne,"f").call(this,et(this,Ce,"f"),n,et(this,Be,"f")),this[Dt](),this.parsed=i,n)}parseAsync(e,t,r){const n=this.parse(e,t,r);return z(n)?n:Promise.resolve(n)}parseSync(e,t,r){const n=this.parse(e,t,r);if(z(n))throw new I(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(e){return Y("<object>",[e],arguments.length),Xe(this,$e,e,"f"),this}pkgConf(e,t){Y("<string> [string]",[e,t],arguments.length);let r=null;const n=this[dt](t||et(this,De,"f"));return n[e]&&"object"==typeof n[e]&&(r=ge(n[e],t||et(this,De,"f"),this[at]()["deep-merge-config"]||!1,et(this,ze,"f")),et(this,Pe,"f").configObjects=(et(this,Pe,"f").configObjects||[]).concat(r)),this}positional(e,t){Y("<string> <object>",[e,t],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=ie(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&r.includes(e)));const n=et(this,we,"f").fullCommands[et(this,we,"f").fullCommands.length-1],i=n?et(this,ye,"f").cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};return H(i).forEach((r=>{const n=i[r];Array.isArray(n)?-1!==n.indexOf(e)&&(t[r]=!0):n[e]&&!(r in t)&&(t[r]=n[e])})),this.group(e,et(this,Ke,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return Y("[boolean]",[e],arguments.length),Xe(this,He,e,"f"),this}required(e,t,r){return this.demand(e,t,r)}require(e,t,r){return this.demand(e,t,r)}requiresArg(e){return Y("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&et(this,Pe,"f").narg[e]||this[pt](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return Y("[string] [string]",[e,t],arguments.length),e=e||this.$0,et(this,je,"f").log(et(this,ve,"f").generateCompletionScript(e,t||et(this,Ee,"f")||"completion")),this}showHelp(e){if(Y("[string|function]",[e],arguments.length),Xe(this,Me,!0,"f"),!et(this,Ke,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[It](et(this,Ge,"f"),void 0,void 0,0,!0);if(z(t))return t.then((()=>{et(this,Ke,"f").showHelp(e)})),this}const t=et(this,ye,"f").runDefaultBuilderOn(this);if(z(t))return t.then((()=>{et(this,Ke,"f").showHelp(e)})),this}return et(this,Ke,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return Y("[boolean|string] [string]",[e,t],arguments.length),et(this,Ke,"f").showHelpOnFail(e,t),this}showVersion(e){return Y("[string|function]",[e],arguments.length),et(this,Ke,"f").showVersion(e),this}skipValidation(e){return Y("<array|string>",[e],arguments.length),this[ft]("skipValidation",e),this}strict(e){return Y("[boolean]",[e],arguments.length),Xe(this,Ve,!1!==e,"f"),this}strictCommands(e){return Y("[boolean]",[e],arguments.length),Xe(this,qe,!1!==e,"f"),this}strictOptions(e){return Y("[boolean]",[e],arguments.length),Xe(this,Ye,!1!==e,"f"),this}string(e){return Y("<array|string>",[e],arguments.length),this[ft]("string",e),this[Pt](e),this}terminalWidth(){return Y([],0),et(this,ze,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return Y("<object>",[e],arguments.length),Xe(this,Se,!1,"f"),et(this,ze,"f").y18n.updateLocale(e),this}usage(e,t,r,n){if(Y("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,r,n],arguments.length),void 0!==t){if(W(e,null,et(this,ze,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,r,n);throw new I(".usage() description must start with $0 if being used as alias for .command()")}return et(this,Ke,"f").usage(e),this}usageConfiguration(e){return Y("<object>",[e],arguments.length),Xe(this,Je,e,"f"),this}version(e,t,r){const n="version";if(Y("[boolean|string] [string] [string]",[e,t,r],arguments.length),et(this,Ze,"f")&&(this[nt](et(this,Ze,"f")),et(this,Ke,"f").version(void 0),Xe(this,Ze,null,"f")),0===arguments.length)r=this[ct](),e=n;else if(1===arguments.length){if(!1===e)return this;r=e,e=n}else 2===arguments.length&&(r=t,t=void 0);return Xe(this,Ze,"string"==typeof e?e:n,"f"),t=t||et(this,Ke,"f").deferY18nLookup("Show version number"),et(this,Ke,"f").version(r||void 0),this.boolean(et(this,Ze,"f")),this.describe(et(this,Ze,"f"),t),this}wrap(e){return Y("<number|null|undefined>",[e],arguments.length),et(this,Ke,"f").wrap(e),this}[(ye=new WeakMap,De=new WeakMap,we=new WeakMap,ve=new WeakMap,Ee=new WeakMap,Fe=new WeakMap,Ce=new WeakMap,Se=new WeakMap,xe=new WeakMap,Oe=new WeakMap,_e=new WeakMap,Ae=new WeakMap,Te=new WeakMap,Me=new WeakMap,ke=new WeakMap,Ie=new WeakMap,je=new WeakMap,Be=new WeakMap,Pe=new WeakMap,Re=new WeakMap,$e=new WeakMap,Ne=new WeakMap,Le=new WeakMap,Ue=new WeakMap,We=new WeakMap,Ge=new WeakMap,He=new WeakMap,ze=new WeakMap,Ve=new WeakMap,qe=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Je=new WeakMap,Ze=new WeakMap,Qe=new WeakMap,tt)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[rt](){return{log:(...e)=>{this[_t]()||console.log(...e),Xe(this,Me,!0,"f"),et(this,Be,"f").length&&Xe(this,Be,et(this,Be,"f")+"\n","f"),Xe(this,Be,et(this,Be,"f")+e.join(" "),"f")},error:(...e)=>{this[_t]()||console.error(...e),Xe(this,Me,!0,"f"),et(this,Be,"f").length&&Xe(this,Be,et(this,Be,"f")+"\n","f"),Xe(this,Be,et(this,Be,"f")+e.join(" "),"f")}}}[nt](e){H(et(this,Pe,"f")).forEach((t=>{if("configObjects"===t)return;const r=et(this,Pe,"f")[t];Array.isArray(r)?r.includes(e)&&r.splice(r.indexOf(e),1):"object"==typeof r&&delete r[e]})),delete et(this,Ke,"f").getDescriptions()[e]}[it](e,t,r){et(this,xe,"f")[r]||(et(this,ze,"f").process.emitWarning(e,t),et(this,xe,"f")[r]=!0)}[st](){et(this,_e,"f").push({options:et(this,Pe,"f"),configObjects:et(this,Pe,"f").configObjects.slice(0),exitProcess:et(this,Oe,"f"),groups:et(this,Te,"f"),strict:et(this,Ve,"f"),strictCommands:et(this,qe,"f"),strictOptions:et(this,Ye,"f"),completionCommand:et(this,Ee,"f"),output:et(this,Be,"f"),exitError:et(this,Ce,"f"),hasOutput:et(this,Me,"f"),parsed:this.parsed,parseFn:et(this,Ne,"f"),parseContext:et(this,Le,"f")}),et(this,Ke,"f").freeze(),et(this,Qe,"f").freeze(),et(this,ye,"f").freeze(),et(this,Ae,"f").freeze()}[ot](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(et(this,ze,"f").process.argv()[0])?et(this,ze,"f").process.argv().slice(1,2):et(this,ze,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[Mt](et(this,De,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),et(this,ze,"f").getEnv("_")&&et(this,ze,"f").getProcessArgvBin()===et(this,ze,"f").getEnv("_")&&(t=et(this,ze,"f").getEnv("_").replace(`${et(this,ze,"f").path.dirname(et(this,ze,"f").process.execPath())}/`,"")),t}[at](){return et(this,$e,"f")}[ut](){return et(this,Je,"f")}[lt](){if(!et(this,Se,"f"))return;const e=et(this,ze,"f").getEnv("LC_ALL")||et(this,ze,"f").getEnv("LC_MESSAGES")||et(this,ze,"f").getEnv("LANG")||et(this,ze,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[ct](){return this[dt]().version||"unknown"}[ht](e){const t=e["--"]?e["--"]:e._;for(let e,r=0;void 0!==(e=t[r]);r++)et(this,ze,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[r]=Number(e));return e}[dt](e){const t=e||"*";if(et(this,Ue,"f")[t])return et(this,Ue,"f")[t];let r={};try{let t=e||et(this,ze,"f").mainFilename;!e&&et(this,ze,"f").path.extname(t)&&(t=et(this,ze,"f").path.dirname(t));const n=et(this,ze,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));W(n,void 0,et(this,ze,"f")),r=JSON.parse(et(this,ze,"f").readFileSync(n,"utf8"))}catch(e){}return et(this,Ue,"f")[t]=r||{},et(this,Ue,"f")[t]}[ft](e,t){(t=[].concat(t)).forEach((t=>{t=this[bt](t),et(this,Pe,"f")[e].push(t)}))}[pt](e,t,r,n){this[gt](e,t,r,n,((e,t,r)=>{et(this,Pe,"f")[e][t]=r}))}[mt](e,t,r,n){this[gt](e,t,r,n,((e,t,r)=>{et(this,Pe,"f")[e][t]=(et(this,Pe,"f")[e][t]||[]).concat(r)}))}[gt](e,t,r,n,i){if(Array.isArray(r))r.forEach((t=>{e(t,n)}));else if((e=>"object"==typeof e)(r))for(const t of H(r))e(t,r[t]);else i(t,this[bt](r),n)}[bt](e){return"__proto__"===e?"___proto___":e}[yt](e,t){return this[pt](this[yt].bind(this),"key",e,t),this}[Dt](){var e,t,r,n,i,s,o,a,u,l,c,h;const d=et(this,_e,"f").pop();let f;W(d,void 0,et(this,ze,"f")),e=this,t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,l=this,c=this,h=this,({options:{set value(t){Xe(e,Pe,t,"f")}}.value,configObjects:f,exitProcess:{set value(e){Xe(t,Oe,e,"f")}}.value,groups:{set value(e){Xe(r,Te,e,"f")}}.value,output:{set value(e){Xe(n,Be,e,"f")}}.value,exitError:{set value(e){Xe(i,Ce,e,"f")}}.value,hasOutput:{set value(e){Xe(s,Me,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){Xe(o,Ve,e,"f")}}.value,strictCommands:{set value(e){Xe(a,qe,e,"f")}}.value,strictOptions:{set value(e){Xe(u,Ye,e,"f")}}.value,completionCommand:{set value(e){Xe(l,Ee,e,"f")}}.value,parseFn:{set value(e){Xe(c,Ne,e,"f")}}.value,parseContext:{set value(e){Xe(h,Le,e,"f")}}.value}=d),et(this,Pe,"f").configObjects=f,et(this,Ke,"f").unfreeze(),et(this,Qe,"f").unfreeze(),et(this,ye,"f").unfreeze(),et(this,Ae,"f").unfreeze()}[wt](e,t){return X(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[vt].bind(this),getContext:this[Et].bind(this),getHasOutput:this[Ft].bind(this),getLoggerInstance:this[Ct].bind(this),getParseContext:this[St].bind(this),getParserConfiguration:this[at].bind(this),getUsageConfiguration:this[ut].bind(this),getUsageInstance:this[xt].bind(this),getValidationInstance:this[Ot].bind(this),hasParseCallback:this[_t].bind(this),isGlobalContext:this[At].bind(this),postProcess:this[Tt].bind(this),reset:this[kt].bind(this),runValidation:this[jt].bind(this),runYargsParserAndExecuteCommands:this[It].bind(this),setHasOutput:this[Bt].bind(this)}}[vt](){return et(this,ye,"f")}[Et](){return et(this,we,"f")}[Ft](){return et(this,Me,"f")}[Ct](){return et(this,je,"f")}[St](){return et(this,Le,"f")||{}}[xt](){return et(this,Ke,"f")}[Ot](){return et(this,Qe,"f")}[_t](){return!!et(this,Ne,"f")}[At](){return et(this,Ie,"f")}[Tt](e,t,r,n){if(r)return e;if(z(e))return e;t||(e=this[tt](e));return(this[at]()["parse-positional-numbers"]||void 0===this[at]()["parse-positional-numbers"])&&(e=this[ht](e)),n&&(e=Q(e,this,et(this,Ae,"f").getMiddleware(),!1)),e}[kt](e={}){Xe(this,Pe,et(this,Pe,"f")||{},"f");const t={};t.local=et(this,Pe,"f").local||[],t.configObjects=et(this,Pe,"f").configObjects||[];const r={};t.local.forEach((t=>{r[t]=!0,(e[t]||[]).forEach((e=>{r[e]=!0}))})),Object.assign(et(this,We,"f"),Object.keys(et(this,Te,"f")).reduce(((e,t)=>{const n=et(this,Te,"f")[t].filter((e=>!(e in r)));return n.length>0&&(e[t]=n),e}),{})),Xe(this,Te,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(et(this,Pe,"f")[e]||[]).filter((e=>!r[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=ie(et(this,Pe,"f")[e],(e=>!r[e]))})),t.envPrefix=et(this,Pe,"f").envPrefix,Xe(this,Pe,t,"f"),Xe(this,Ke,et(this,Ke,"f")?et(this,Ke,"f").reset(r):ae(this,et(this,ze,"f")),"f"),Xe(this,Qe,et(this,Qe,"f")?et(this,Qe,"f").reset(r):function(e,t,r){const n=r.y18n.__,i=r.y18n.__n,s={nonOptionCount:function(r){const n=e.getDemandedCommands(),s=r._.length+(r["--"]?r["--"].length:0)-e.getInternalMethods().getContext().commands.length;n._&&(s<n._.min||s>n._.max)&&(s<n._.min?void 0!==n._.minMsg?t.fail(n._.minMsg?n._.minMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.min.toString()):null):t.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?t.fail(n._.maxMsg?n._.maxMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.max.toString()):null):t.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(e,r){r<e&&t.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+"",e+""))},requiredArguments:function(e,r){let n=null;for(const t of Object.keys(r))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(n=n||{},n[t]=r[t]);if(n){const e=[];for(const t of Object.keys(n)){const r=n[t];r&&e.indexOf(r)<0&&e.push(r)}const r=e.length?`\n${e.join("\n")}`:"";t.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,u=!0){var l;const c=e.getInternalMethods().getCommandInstance().getCommands(),h=[],d=e.getInternalMethods().getContext();if(Object.keys(r).forEach((t=>{fe.includes(t)||Object.prototype.hasOwnProperty.call(o,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||s.isValidAndSomeAliasIsNotNew(t,n)||h.push(t)})),u&&(d.commands.length>0||c.length>0||a)&&r._.slice(d.commands.length).forEach((e=>{c.includes(""+e)||h.push(""+e)})),u){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,n=d.commands.length+t;n<r._.length&&r._.slice(n).forEach((e=>{e=String(e),d.commands.includes(e)||h.includes(e)||h.push(e)}))}h.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",h.length,h.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(r){const n=e.getInternalMethods().getCommandInstance().getCommands(),s=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||n.length>0)&&r._.slice(o.commands.length).forEach((e=>{n.includes(""+e)||s.push(""+e)})),s.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",s.length,s.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,r){if(!Object.prototype.hasOwnProperty.call(r,t))return!1;const n=e.parsed.newAliases;return[t,...r[t]].some((e=>!Object.prototype.hasOwnProperty.call(n,e)||!n[t]))},limitedChoices:function(r){const i=e.getOptions(),s={};if(!Object.keys(i.choices).length)return;Object.keys(r).forEach((e=>{-1===fe.indexOf(e)&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(r[e]).forEach((t=>{-1===i.choices[e].indexOf(t)&&void 0!==t&&(s[e]=(s[e]||[]).concat(t))}))}));const o=Object.keys(s);if(!o.length)return;let a=n("Invalid values:");o.forEach((e=>{a+=`\n ${n("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(s[e]),t.stringifiedValues(i.choices[e]))}`})),t.fail(a)}};let o={};function a(e,t){const r=Number(t);return"number"==typeof(t=isNaN(r)?t:r)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}s.implies=function(t,n){Y("<string|object> [array|number|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.implies(e,t[e])})):(e.global(t),o[t]||(o[t]=[]),Array.isArray(n)?n.forEach((e=>s.implies(t,e))):(W(n,void 0,r),o[t].push(n)))},s.getImplied=function(){return o},s.implications=function(e){const r=[];if(Object.keys(o).forEach((t=>{const n=t;(o[t]||[]).forEach((t=>{let i=n;const s=t;i=a(e,i),t=a(e,t),i&&!t&&r.push(` ${n} -> ${s}`)}))})),r.length){let e=`${n("Implications failed:")}\n`;r.forEach((t=>{e+=t})),t.fail(e)}};let u={};s.conflicts=function(t,r){Y("<string|object> [array|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.conflicts(e,t[e])})):(e.global(t),u[t]||(u[t]=[]),Array.isArray(r)?r.forEach((e=>s.conflicts(t,e))):u[t].push(r))},s.getConflicting=()=>u,s.conflicting=function(i){Object.keys(i).forEach((e=>{u[e]&&u[e].forEach((r=>{r&&void 0!==i[e]&&void 0!==i[r]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,r))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach((e=>{u[e].forEach((s=>{s&&void 0!==i[r.Parser.camelCase(e)]&&void 0!==i[r.Parser.camelCase(s)]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,s))}))}))},s.recommendCommands=function(e,r){r=r.sort(((e,t)=>t.length-e.length));let i=null,s=1/0;for(let t,n=0;void 0!==(t=r[n]);n++){const r=de(e,t);r<=3&&r<s&&(s=r,i=t)}i&&t.fail(n("Did you mean %s?",i))},s.reset=function(e){return o=ie(o,(t=>!e[t])),u=ie(u,(t=>!e[t])),s};const l=[];return s.freeze=function(){l.push({implied:o,conflicting:u})},s.unfreeze=function(){const e=l.pop();W(e,void 0,r),({implied:o,conflicting:u}=e)},s}(this,et(this,Ke,"f"),et(this,ze,"f")),"f"),Xe(this,ye,et(this,ye,"f")?et(this,ye,"f").reset():function(e,t,r,n){return new te(e,t,r,n)}(et(this,Ke,"f"),et(this,Qe,"f"),et(this,Ae,"f"),et(this,ze,"f")),"f"),et(this,ve,"f")||Xe(this,ve,function(e,t,r,n){return new he(e,t,r,n)}(this,et(this,Ke,"f"),et(this,ye,"f"),et(this,ze,"f")),"f"),et(this,Ae,"f").reset(),Xe(this,Ee,null,"f"),Xe(this,Be,"","f"),Xe(this,Ce,null,"f"),Xe(this,Me,!1,"f"),this.parsed=!1,this}[Mt](e,t){return et(this,ze,"f").path.relative(e,t)}[It](e,t,r,n=0,i=!1){let s=!!r||i;e=e||et(this,Ge,"f"),et(this,Pe,"f").__=et(this,ze,"f").y18n.__,et(this,Pe,"f").configuration=this[at]();const o=!!et(this,Pe,"f").configuration["populate--"],a=Object.assign({},et(this,Pe,"f").configuration,{"populate--":!0}),u=et(this,ze,"f").Parser.detailed(e,Object.assign({},et(this,Pe,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),l=Object.assign(u.argv,et(this,Le,"f"));let c;const h=u.aliases;let d=!1,f=!1;Object.keys(l).forEach((e=>{e===et(this,ke,"f")&&l[e]?d=!0:e===et(this,Ze,"f")&&l[e]&&(f=!0)})),l.$0=this.$0,this.parsed=u,0===n&&et(this,Ke,"f").clearCachedHelpMessage();try{if(this[lt](),t)return this[Tt](l,o,!!r,!1);if(et(this,ke,"f")){[et(this,ke,"f")].concat(h[et(this,ke,"f")]||[]).filter((e=>e.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),d=!0)}Xe(this,Ie,!1,"f");const a=et(this,ye,"f").getCommands(),p=et(this,ve,"f").completionKey in l,m=d||p||i;if(l._.length){if(a.length){let e;for(let t,s=n||0;void 0!==l._[s];s++){if(t=String(l._[s]),a.includes(t)&&t!==et(this,Ee,"f")){const e=et(this,ye,"f").runCommand(t,this,u,s+1,i,d||f||i);return this[Tt](e,o,!!r,!1)}if(!e&&t!==et(this,Ee,"f")){e=t;break}}!et(this,ye,"f").hasDefaultCommand()&&et(this,He,"f")&&e&&!m&&et(this,Qe,"f").recommendCommands(e,a)}et(this,Ee,"f")&&l._.includes(et(this,Ee,"f"))&&!p&&(et(this,Oe,"f")&&se(!0),this.showCompletionScript(),this.exit(0))}if(et(this,ye,"f").hasDefaultCommand()&&!m){const e=et(this,ye,"f").runCommand(null,this,u,0,i,d||f||i);return this[Tt](e,o,!!r,!1)}if(p){et(this,Oe,"f")&&se(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${et(this,ve,"f").completionKey}`)+1);return et(this,ve,"f").getCompletion(t,((e,t)=>{if(e)throw new I(e.message);(t||[]).forEach((e=>{et(this,je,"f").log(e)})),this.exit(0)})),this[Tt](l,!o,!!r,!1)}if(et(this,Me,"f")||(d?(et(this,Oe,"f")&&se(!0),s=!0,this.showHelp("log"),this.exit(0)):f&&(et(this,Oe,"f")&&se(!0),s=!0,et(this,Ke,"f").showVersion("log"),this.exit(0))),!s&&et(this,Pe,"f").skipValidation.length>0&&(s=Object.keys(l).some((e=>et(this,Pe,"f").skipValidation.indexOf(e)>=0&&!0===l[e]))),!s){if(u.error)throw new I(u.error.message);if(!p){const e=this[jt](h,{},u.error);r||(c=Q(l,this,et(this,Ae,"f").getMiddleware(),!0)),c=this[wt](e,null!=c?c:l),z(c)&&!r&&(c=c.then((()=>Q(l,this,et(this,Ae,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof I))throw e;et(this,Ke,"f").fail(e.message,e)}return this[Tt](null!=c?c:l,o,!!r,!0)}[jt](e,t,r,n){const i={...this.getDemandedOptions()};return s=>{if(r)throw new I(r.message);et(this,Qe,"f").nonOptionCount(s),et(this,Qe,"f").requiredArguments(s,i);let o=!1;et(this,qe,"f")&&(o=et(this,Qe,"f").unknownCommands(s)),et(this,Ve,"f")&&!o?et(this,Qe,"f").unknownArguments(s,e,t,!!n):et(this,Ye,"f")&&et(this,Qe,"f").unknownArguments(s,e,{},!1,!1),et(this,Qe,"f").limitedChoices(s),et(this,Qe,"f").implications(s),et(this,Qe,"f").conflicting(s)}}[Bt](){Xe(this,Me,!0,"f")}[Pt](e){if("string"==typeof e)et(this,Pe,"f").key[e]=!0;else for(const t of e)et(this,Pe,"f").key[t]=!0}}const $t=(Nt=U,(e=[],t=Nt.process.cwd(),r)=>{const n=new Rt(e,t,r,Nt);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:!0}),n.help(),n.version(),n});var Nt;const Lt=$t;function Ut(e,t){const r=e.startsWith(".")?(0,f.join)(t,e):e;return import(r)}function Wt(e,t){const{homepage:r,site:n=r,repository:i}=t,s=n&&n!==i,o=e.getInternalMethods(),a=(u=o.getCommandInstance().handlers,Object.keys(u).some((e=>e&&"$0"!==e)));var u;return 0===o.getUsageInstance().getUsage().length&&(a?e.usage("Usage: $0 <command>"):e.usage("Usage: $0")),a&&e.demandCommand(1,"Won't work without a command"),s&&e.epilogue(`Website: ${n}`),i&&e.epilogue(`Repository: ${i}`),e}var Gt=n(9523);const Ht=(e=0)=>t=>`\x1b[${t+e}m`,zt=(e=0)=>t=>`\x1b[${38+e};5;${t}m`,Vt=(e=0)=>(t,r,n)=>`\x1b[${38+e};2;${t};${r};${n}m`,qt={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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(qt.modifier),Object.keys(qt.color),Object.keys(qt.bgColor);const Yt=function(){const e=new Map;for(const[t,r]of Object.entries(qt)){for(const[t,n]of Object.entries(r))qt[t]={open:`\x1b[${n[0]}m`,close:`\x1b[${n[1]}m`},r[t]=qt[t],e.set(n[0],n[1]);Object.defineProperty(qt,t,{value:r,enumerable:!1})}return Object.defineProperty(qt,"codes",{value:e,enumerable:!1}),qt.color.close="\x1b[39m",qt.bgColor.close="\x1b[49m",qt.color.ansi=Ht(),qt.color.ansi256=zt(),qt.color.ansi16m=Vt(),qt.bgColor.ansi=Ht(10),qt.bgColor.ansi256=zt(10),qt.bgColor.ansi16m=Vt(10),Object.defineProperties(qt,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map((e=>e+e)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>qt.rgbToAnsi256(...qt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,n;if(e>=232)t=(10*(e-232)+8)/255,r=t,n=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(t,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>qt.ansi256ToAnsi(qt.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>qt.ansi256ToAnsi(qt.hexToAnsi256(e)),enumerable:!1}}),qt}(),Kt=Yt,Jt=e(import.meta.url)("node:process"),Zt=e(import.meta.url)("node:os"),Qt=e(import.meta.url)("node:tty");function Xt(e,t=(globalThis.Deno?globalThis.Deno.args:Jt.argv)){const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:er}=Jt;let tr;function rr(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in er)return"true"===er.FORCE_COLOR?1:"false"===er.FORCE_COLOR?0:0===er.FORCE_COLOR.length?1:Math.min(Number.parseInt(er.FORCE_COLOR,10),3)}();void 0!==n&&(tr=n);const i=r?tr:n;if(0===i)return 0;if(r){if(Xt("color=16m")||Xt("color=full")||Xt("color=truecolor"))return 3;if(Xt("color=256"))return 2}if("TF_BUILD"in er&&"AGENT_NAME"in er)return 1;if(e&&!t&&void 0===i)return 0;const s=i||0;if("dumb"===er.TERM)return s;if("win32"===Jt.platform){const e=Zt.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in er)return"GITHUB_ACTIONS"in er||"GITEA_ACTIONS"in er?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in er))||"codeship"===er.CI_NAME?1:s;if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(er.TEAMCITY_VERSION)?1:0;if("truecolor"===er.COLORTERM)return 3;if("xterm-kitty"===er.TERM)return 3;if("TERM_PROGRAM"in er){const e=Number.parseInt((er.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(er.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(er.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(er.TERM)||"COLORTERM"in er?1:s}function nr(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(rr(e,{streamIsTTY:e&&e.isTTY,...t}))}Xt("no-color")||Xt("no-colors")||Xt("color=false")||Xt("color=never")?tr=0:(Xt("color")||Xt("colors")||Xt("color=true")||Xt("color=always"))&&(tr=1);const ir={stdout:nr({isTTY:Qt.isatty(1)}),stderr:nr({isTTY:Qt.isatty(2)})};function sr(e,t,r){let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.slice(s),o}const{stdout:or,stderr:ar}=ir,ur=Symbol("GENERATOR"),lr=Symbol("STYLER"),cr=Symbol("IS_EMPTY"),hr=["ansi","ansi","ansi256","ansi16m"],dr=Object.create(null);const fr=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=or?or.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,pr.prototype),t};function pr(e){return fr(e)}Object.setPrototypeOf(pr.prototype,Function.prototype);for(const[e,t]of Object.entries(Kt))dr[e]={get(){const r=Dr(this,yr(t.open,t.close,this[lr]),this[cr]);return Object.defineProperty(this,e,{value:r}),r}};dr.visible={get(){const e=Dr(this,this[lr],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const mr=(e,t,r,...n)=>"rgb"===e?"ansi16m"===t?Kt[r].ansi16m(...n):"ansi256"===t?Kt[r].ansi256(Kt.rgbToAnsi256(...n)):Kt[r].ansi(Kt.rgbToAnsi(...n)):"hex"===e?mr("rgb",t,r,...Kt.hexToRgb(...n)):Kt[r][e](...n),gr=["rgb","hex","ansi256"];for(const e of gr){dr[e]={get(){const{level:t}=this;return function(...r){const n=yr(mr(e,hr[t],"color",...r),Kt.color.close,this[lr]);return Dr(this,n,this[cr])}}};dr["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const n=yr(mr(e,hr[t],"bgColor",...r),Kt.bgColor.close,this[lr]);return Dr(this,n,this[cr])}}}}const br=Object.defineProperties((()=>{}),{...dr,level:{enumerable:!0,get(){return this[ur].level},set(e){this[ur].level=e}}}),yr=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Dr=(e,t,r)=>{const n=(...e)=>wr(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,br),n[ur]=e,n[lr]=t,n[cr]=r,n},wr=(e,t)=>{if(e.level<=0||!t)return e[cr]?"":t;let r=e[lr];if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(t.includes("\x1b"))for(;void 0!==r;)t=sr(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=function(e,t,r,n){let i=0,s="";do{const o="\r"===e[n-1];s+=e.slice(i,o?n-1:n)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.slice(i),s}(t,i,n,s)),n+t+i};Object.defineProperties(pr.prototype,dr);const vr=pr(),Er=(pr({level:ar?ar.level:0}),vr),{cyan:Fr,red:Cr,green:Sr}=Er,xr="# 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";function Or(){return(new Gt.Text).onDone((()=>xr)).output(".editorconfig").logger("Create/Overwrite",Fr(".editorconfig")).catch(console.warn)}var _r=n(7862),Ar=n(112);const Tr=_r((()=>{Ar((()=>{Jt.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let Mr=!1;const kr={show:(e=Jt.stderr)=>{e.isTTY&&(Mr=!1,e.write("\x1b[?25h"))},hide:(e=Jt.stderr)=>{e.isTTY&&(Tr(),Mr=!0,e.write("\x1b[?25l"))},toggle:(e,t)=>{void 0!==e&&(Mr=e),Mr?kr.show(t):kr.hide(t)}},Ir=kr;var jr=n(1473);const Br={info:Er.blue("\u2139"),success:Er.green("\u2714"),warning:Er.yellow("\u26a0"),error:Er.red("\u2716")},Pr={info:Er.blue("i"),success:Er.green("\u221a"),warning:Er.yellow("\u203c"),error:Er.red("\xd7")},Rr=("win32"!==Jt.platform?"linux"!==Jt.env.TERM:Boolean(Jt.env.CI)||Boolean(Jt.env.WT_SESSION)||Boolean(Jt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Jt.env.ConEmuTask||"Terminus-Sublime"===Jt.env.TERM_PROGRAM||"vscode"===Jt.env.TERM_PROGRAM||"xterm-256color"===Jt.env.TERM||"alacritty"===Jt.env.TERM||"JetBrains-JediTerm"===Jt.env.TERMINAL_EMULATOR)?Br:Pr;const $r=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function Nr(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace($r,"")}function Lr(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Ur(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function Wr(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Gr(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Hr(e,{ambiguousAsWide:t=!1}={}){return Gr(e),Ur(e)||Wr(e)||t&&Lr(e)?2:1}const zr=new Intl.Segmenter;function Vr(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Nr(e)),0===e.length)return 0;let i=0;const s={ambiguousAsWide:!r};for(const{segment:t}of zr.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=768&&e<=879||(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g.test(t)?i+=2:i+=Hr(e,s)))}return i}function qr(){return"win32"!==Jt.platform?"linux"!==Jt.env.TERM:Boolean(Jt.env.WT_SESSION)||Boolean(Jt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Jt.env.ConEmuTask||"Terminus-Sublime"===Jt.env.TERM_PROGRAM||"vscode"===Jt.env.TERM_PROGRAM||"xterm-256color"===Jt.env.TERM||"alacritty"===Jt.env.TERM||"JetBrains-JediTerm"===Jt.env.TERMINAL_EMULATOR}const Yr=new class{#e=0;start(){this.#e++,1===this.#e&&this.#t()}stop(){if(this.#e<=0)throw new Error("`stop` called more times than `start`");this.#e--,0===this.#e&&this.#r()}#t(){"win32"!==Jt.platform&&Jt.stdin.isTTY&&(Jt.stdin.setRawMode(!0),Jt.stdin.on("data",this.#n),Jt.stdin.resume())}#r(){Jt.stdin.isTTY&&(Jt.stdin.off("data",this.#n),Jt.stdin.pause(),Jt.stdin.setRawMode(!1))}#n(e){3===e[0]&&Jt.emit("SIGINT")}};class Kr{#i=0;#s=!1;#o=0;#a=0;#u;#l;#c;#h;#d;#f;#p;#m;#g;#b;#y;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#u={color:"cyan",stream:Jt.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#u.color,this.spinner=this.#u.spinner,this.#d=this.#u.interval,this.#c=this.#u.stream,this.#f="boolean"==typeof this.#u.isEnabled?this.#u.isEnabled:function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#c}),this.#p="boolean"==typeof this.#u.isSilent&&this.#u.isSilent,this.text=this.#u.text,this.prefixText=this.#u.prefixText,this.suffixText=this.#u.suffixText,this.indent=this.#u.indent,"test"===Jt.env.NODE_ENV&&(this._stream=this.#c,this._isEnabled=this.#f,Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(e){this.#i=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#a}}),Object.defineProperty(this,"_lineCount",{get(){return this.#o}}))}get indent(){return this.#m}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#m=e,this.#D()}get interval(){return this.#d??this.#l.interval??100}get spinner(){return this.#l}set spinner(e){if(this.#a=0,this.#d=void 0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this.#l=e}else if(qr())if(void 0===e)this.#l=jr.dots;else{if("default"===e||!jr[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#l=jr[e]}else this.#l=jr.line}get text(){return this.#g}set text(e=""){this.#g=e,this.#D()}get prefixText(){return this.#b}set prefixText(e=""){this.#b=e,this.#D()}get suffixText(){return this.#y}set suffixText(e=""){this.#y=e,this.#D()}get isSpinning(){return void 0!==this.#h}#w(e=this.#b,t=" "){return"string"==typeof e&&""!==e?e+t:"function"==typeof e?e()+t:""}#v(e=this.#y,t=" "){return"string"==typeof e&&""!==e?t+e:"function"==typeof e?t+e():""}#D(){const e=this.#c.columns??80,t=this.#w(this.#b,"-"),r=this.#v(this.#y,"-"),n=" ".repeat(this.#m)+t+"--"+this.#g+"--"+r;this.#o=0;for(const t of Nr(n).split("\n"))this.#o+=Math.max(1,Math.ceil(Vr(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#f&&!this.#p}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#f=e}get isSilent(){return this.#p}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#p=e}frame(){const{frames:e}=this.#l;let t=e[this.#a];this.color&&(t=Er[this.color](t)),this.#a=++this.#a%e.length;return("string"==typeof this.#b&&""!==this.#b?this.#b+" ":"")+t+("string"==typeof this.text?" "+this.text:"")+("string"==typeof this.#y&&""!==this.#y?" "+this.#y:"")}clear(){if(!this.#f||!this.#c.isTTY)return this;this.#c.cursorTo(0);for(let e=0;e<this.#i;e++)e>0&&this.#c.moveCursor(0,-1),this.#c.clearLine(1);return(this.#m||this.lastIndent!==this.#m)&&this.#c.cursorTo(this.#m),this.lastIndent=this.#m,this.#i=0,this}render(){return this.#p||(this.clear(),this.#c.write(this.frame()),this.#i=this.#o),this}start(e){return e&&(this.text=e),this.#p?this:this.#f?(this.isSpinning||(this.#u.hideCursor&&Ir.hide(this.#c),this.#u.discardStdin&&Jt.stdin.isTTY&&(this.#s=!0,Yr.start()),this.render(),this.#h=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#c.write(`- ${this.text}\n`),this)}stop(){return this.#f?(clearInterval(this.#h),this.#h=void 0,this.#a=0,this.clear(),this.#u.hideCursor&&Ir.show(this.#c),this.#u.discardStdin&&Jt.stdin.isTTY&&this.#s&&(Yr.stop(),this.#s=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Rr.success,text:e})}fail(e){return this.stopAndPersist({symbol:Rr.error,text:e})}warn(e){return this.stopAndPersist({symbol:Rr.warning,text:e})}info(e){return this.stopAndPersist({symbol:Rr.info,text:e})}stopAndPersist(e={}){if(this.#p)return this;const t=e.prefixText??this.#b,r=this.#w(t," "),n=e.symbol??" ",i=e.text??this.text,s="string"==typeof i?" "+i:"",o=e.suffixText??this.#y,a=r+n+s+this.#v(o," ")+"\n";return this.stop(),this.#c.write(a),this}}function Jr(e){return new Kr(e)}const Zr=e(import.meta.url)("node:child_process"),Qr=e(import.meta.url)("node:fs");var Xr=n(6760),en=n(1364),tn=n(3396);function rn(e){return en(e).timeout(5e3).send().then((e=>301===e.statusCode?rn(e.headers.location):e.text())).then((e=>{const t=e.trim();if(t)return t;throw new Error("template download fail")}))}function nn(e){return e?e.trim():void 0}async function sn(e){if(e)return e;const t=function(){try{return{name:(0,Zr.execSync)("git config user.name").toString().trim(),email:(0,Zr.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return t.name?tn(t):"Unknown"}function on(){try{return JSON.parse((0,Qr.readFileSync)((0,Xr.join)(process.cwd(),"package.json")))}catch{return{}}}const an="# Created by nice-move\n\n* text=auto eol=lf\n",un={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function ln(){await(new Gt.Text).onDone((()=>an)).output(".gitattributes").logger("Create/Overwrite",Fr(".gitattributes"));const e=Jr({text:"Downloading template from `gitignore.io`"}).start(),t=`Create/Overwrite ${Fr(".gitignore")}`;return(new Gt.Text).source(".gitignore").onFail().onDone(((e="")=>rn(`https://gitignore.io/api/ssh,certificates,node,${un[(0,Zt.type)()]}`).then((e=>`${e.replaceAll(/(www\.)?toptal\.com\/developers\/gitignore/g,"gitignore.io").trim()}\n`)).catch((()=>e||"node_modules\n")))).output().then((()=>{e.stopAndPersist({symbol:Sr("\u221a"),text:t})})).catch((r=>{e.stopAndPersist({symbol:Cr("\xd7"),text:`${t} - ${r.message}`})}))}const cn='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',hn='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';async function dn(){const{license:e,author:t=""}=on(),r="MIT"===e;if(r||"Unlicense"===e){const e=await async function(e){return(await sn(e)).name||"Unknown"}(t);return(new Gt.Text).onDone((()=>r?cn.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",e):hn)).output("LICENSE").logger("Create/Overwrite",Fr("LICENSE")).catch(console.warn)}}var fn=n(4579),pn=n(323);const mn=e(import.meta.url)("node:util"),gn=(0,mn.promisify)(Zr.execFile);const bn={spawn:!0},yn="en-US";async function Dn(e,t){return(await async function(e,t){const r=await gn(e,t,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(e,t)).stdout}function wn(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function vn(e){const t={};for(const r of e.split("\n")){const[e,n]=r.split("=");t[e]=n.replace(/^"|"$/g,"")}return wn(t)}function En(e){return e&&e.replace(/[.:].*/,"")}async function Fn(){return Dn("locale",["-a"])}function Cn(e,t=""){return t.includes(e)?e:yn}function Sn(e){return e.replace(/_/,"-")}const xn=new Map;async function On(e=bn){if(xn.has(e.spawn))return xn.get(e.spawn);let t;try{const r=wn();t=r||!1===e.spawn?En(r):"win32"===process.platform?await async function(){const e=await Dn("wmic",["os","get","locale"]),t=Number.parseInt(e.replace("Locale",""),16);return pn.from(t)}():"darwin"===process.platform?await async function(){const e=await Promise.all([Dn("defaults",["read","-globalDomain","AppleLocale"]),Fn()]);return Cn(e[0],e[1])}():await async function(){return En(vn(await Dn("locale")))}()}catch{}const r=Sn(t||yn);return xn.set(e.spawn,r),r}const _n={"@bring-it/npm":"^0.5.4","@cospaia/prettier-plugin-clojure":"^0.0.2",ava:"^6.1.3","best-shot":"^0.5.8",eslint:"^8.57.0","eslint-plugin-ava":"^14.0.0",garou:"^0.7.5",postcss:"^8.4.38",prettier:"^3.3.2","prettier-plugin-tailwindcss":"^0.6.4",sass:"^1.77.6",stylelint:"^16.6.1",syncpack:"^12.3.2",typescript:"~5.4.5","@bring-it/sftp":"^0.3.1","@playwright/test":"^1.44.0","@types/react":"~18.2.79",react:"~18.2.0","react-dom":"~18.2.0",tailwindcss:"^3.4.3",vue:"^3.4.27","eslint-config-base":"^0.11.9","stylelint-config":"^0.10.6","prettier-config":"^0.12.4","syncpack-config":"^0.2.2",tsconfig:"^0.2.3",cli:"^0.11.13",lts:"^18.12.0 || ^20.0.0"},An="package.json";function Tn(e){return(new Gt.Json).config({pretty:!0}).source(An).onFail().onDone(((t={})=>fn.all([{engines:{node:_n.lts},publishConfig:e.private||t.private?void 0:{access:"public",registry:"https://registry.npmjs.org/"}},t,e]))).onDone((e=>(!0===e.private&&async function(){"zh-CN"===await On()&&(new Gt.Text).source(".npmrc").onFail().onDone(((e="")=>e.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(e)?e:`registry = https://mirrors.tencent.com/npm/\r${e}`)).output().logger("Set registry to China mirror in",Fr(".npmrc")).catch(console.warn)}(),e))).output().logger("Add project info to",Fr(An)).catch(console.warn)}async function Mn(){const{name:e,description:t}=on();(new Gt.Text).source("README.md").onFail().onDone((r=>r||[`# ${e}`,t?`${t}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",Fr("README.md")).catch(console.warn)}function kn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var In=n(3136);const jn=(e,t)=>{const r=Bn(e);if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},Bn=e=>e instanceof URL?(0,In.fileURLToPath)(e):e,Pn=(e,t=[],r={})=>{const n=jn(e,"First argument"),[i,s]=kn(t)?[[],t]:[t,r];if(!Array.isArray(i))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some((e=>"object"==typeof e&&null!==e)))throw new TypeError(`Second argument must be an array of strings: ${i}`);const o=i.map(String),a=o.find((e=>e.includes("\0")));if(void 0!==a)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!kn(s))throw new TypeError(`Last argument must be an options object: ${s}`);return[n,o,s]},Rn=e(import.meta.url)("node:string_decoder"),{toString:$n}=Object.prototype,Nn=e=>"[object Uint8Array]"===$n.call(e),Ln=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Un=new TextEncoder,Wn=e=>Un.encode(e),Gn=new TextDecoder,Hn=e=>Gn.decode(e),zn=(e,t)=>{if("utf8"===t&&e.every((e=>"string"==typeof e)))return e;const r=new Rn.StringDecoder(t),n=e.map((e=>"string"==typeof e?Wn(e):e)).map((e=>r.write(e))),i=r.end();return""===i?n:[...n,i]},Vn=e=>1===e.length&&Nn(e[0])?e[0]:Yn(qn(e)),qn=e=>e.map((e=>"string"==typeof e?Wn(e):e)),Yn=e=>{const t=new Uint8Array(Kn(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},Kn=e=>{let t=0;for(const r of e)t+=r.length;return t},Jn=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{if(void 0===i)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);const{nextTokens:s,leadingWhitespaces:o,trailingWhitespaces:a}=Zn(i,e.raw[n]),u=ei(r,s,o);if(n===t.length)return u;const l=t[n],c=Array.isArray(l)?l.map((e=>ti(e))):[ti(l)];return ei(u,c,a)},Zn=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const i=Qn.has(t[0]);for(let i=0,s=0;i<e.length;i+=1,s+=1){const o=t[s];if(Qn.has(o))n!==i&&r.push(e.slice(n,i)),n=i+1;else if("\\"===o){const e=t[s+1];"u"===e&&"{"===t[s+2]?s=t.indexOf("}",s+3):s+=Xn[e]??1}}const s=n===e.length;return s||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:i,trailingWhitespaces:s}},Qn=new Set([" ","\t","\r","\n"]),Xn={x:3,u:5},ei=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],ti=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(kn(e)&&("stdout"in e||"isMaxBuffer"in e))return ri(e);if(e instanceof Zr.ChildProcess||"[object Promise]"===Object.prototype.toString.call(e))throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw new TypeError(`Unexpected "${t}" in template expression`)},ri=({stdout:e})=>{if("string"==typeof e)return e;if(Nn(e))return Hn(e);if(void 0===e)throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');throw new TypeError(`Unexpected "${typeof e}" stdout in template expression`)},ni=Qt.WriteStream.prototype.hasColors(),ii=(e,t)=>{if(!ni)return e=>e;const r=`\x1b[${e}m`,n=`\x1b[${t}m`;return e=>{const t=e+"";let i=t.indexOf(n);if(-1===i)return r+t+n;let s=r,o=0;for(;-1!==i;)s+=t.slice(o,i)+r,o=i+n.length,i=t.indexOf(n,o);return s+=t.slice(o)+n,s}},si=(ii(0,0),ii(1,22)),oi=(ii(2,22),ii(3,23),ii(4,24),ii(53,55),ii(7,27),ii(8,28),ii(9,29),ii(30,39),ii(31,39),ii(32,39),ii(33,39),ii(34,39),ii(35,39),ii(36,39),ii(37,39),ii(90,39)),ai=(ii(40,49),ii(41,49),ii(42,49),ii(43,49),ii(44,49),ii(45,49),ii(46,49),ii(47,49),ii(100,49),ii(91,39)),ui=(ii(92,39),ii(93,39)),li=(ii(94,39),ii(95,39),ii(96,39),ii(97,39),ii(101,49),ii(102,49),ii(103,49),ii(104,49),ii(105,49),ii(106,49),ii(107,49),(0,mn.debuglog)("execa").enabled?"full":"none");let ci=0n;const hi=e=>e.some((e=>"none"!==e)),di=e=>{for(const t of e){if(!1===t)throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".');if(!0===t)throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".');if(!fi.has(t)){const e=[...fi].map((e=>`'${e}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e}.`)}}},fi=new Set(["none","short","full"]),pi={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258c",squareRight:"\u2590",squareCenter:"\u25a0",bullet:"\u25cf",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203a",triangleUp:"\u25b2",triangleUpSmall:"\u25b4",triangleDown:"\u25bc",triangleDownSmall:"\u25be",triangleLeftSmall:"\u25c2",triangleRightSmall:"\u25b8",home:"\u2302",heart:"\u2665",musicNote:"\u266a",musicNoteBeamed:"\u266b",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221e",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xbd",oneThird:"\u2153",oneQuarter:"\xbc",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215b",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xbe",threeFifths:"\u2157",threeEighths:"\u215c",fourFifths:"\u2158",fiveSixths:"\u215a",fiveEighths:"\u215d",sevenEighths:"\u215e",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254c",lineDashed5:"\u254d",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257a",lineDashed10:"\u257c",lineDashed11:"\u257e",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250a",lineVerticalDashed3:"\u250b",lineVerticalDashed4:"\u254e",lineVerticalDashed5:"\u254f",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257b",lineVerticalDashed10:"\u257d",lineVerticalDashed11:"\u257f",lineDownLeft:"\u2510",lineDownLeftArc:"\u256e",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250c",lineDownRightArc:"\u256d",lineDownBoldRightBold:"\u250f",lineDownBoldRight:"\u250e",lineDownRightBold:"\u250d",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256f",lineUpBoldLeftBold:"\u251b",lineUpBoldLeft:"\u251a",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255d",lineUpDoubleLeft:"\u255c",lineUpLeftDouble:"\u255b",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255a",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252b",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252a",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251c",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251d",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251f",lineUpBoldDownRight:"\u251e",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255f",lineUpDownRightDouble:"\u255e",lineDownLeftRight:"\u252c",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252f",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252e",lineDownLeftBoldRight:"\u252d",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253b",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253a",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253c",lineUpBoldDownBoldLeftBoldRightBold:"\u254b",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254a",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253d",lineUpDownLeftRightBold:"\u253e",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253f",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256c",lineUpDoubleDownDoubleLeftRight:"\u256b",lineUpDownLeftDoubleRightDouble:"\u256a",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},mi={tick:"\u2714",info:"\u2139",warning:"\u26a0",cross:"\u2718",squareSmall:"\u25fb",squareSmallFilled:"\u25fc",circle:"\u25ef",circleFilled:"\u25c9",circleDotted:"\u25cc",circleDouble:"\u25ce",circleCircle:"\u24de",circleCross:"\u24e7",circlePipe:"\u24be",radioOn:"\u25c9",radioOff:"\u25ef",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24e7",checkboxCircleOff:"\u24be",pointer:"\u276f",triangleUpOutline:"\u25b3",triangleLeft:"\u25c0",triangleRight:"\u25b6",lozenge:"\u25c6",lozengeOutline:"\u25c7",hamburger:"\u2630",smiley:"\u32e1",mustache:"\u0df4",star:"\u2605",play:"\u25b6",nodejs:"\u2b22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},gi={...pi,...mi},bi={...pi,tick:"\u221a",info:"i",warning:"\u203c",cross:"\xd7",squareSmall:"\u25a1",squareSmallFilled:"\u25a0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25cb)",circleCross:"(\xd7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25c4",triangleRight:"\u25ba",lozenge:"\u2666",lozengeOutline:"\u25ca",hamburger:"\u2261",smiley:"\u263a",mustache:"\u250c\u2500\u2510",star:"\u2736",play:"\u25ba",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},yi=qr(),Di=yi?gi:bi,wi=(Object.entries(mi),e=>(0,mn.stripVTControlCharacters)(e).split("\n").map((e=>vi(e))).join("\n")),vi=e=>e.replaceAll(Fi,(e=>Ei(e))),Ei=e=>{const t=Ci[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=Si?`\\u${n.padStart(4,"0")}`:`\\U${n}`},Fi=/\p{Separator}|\p{Other}/gu,Ci={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Si=65535,xi=e=>Oi.test(e)?e:"win32"===Jt.platform?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,Oi=/^[\w./-]+$/,_i=(e,t,r,n)=>{const i=Ti(e,t,r,n);(0,Qr.writeFileSync)(Ai,`${i}\n`)},Ai=2,Ti=(e,t,r,n)=>e.includes("\n")?e.split("\n").map((e=>Mi(e,t,r,n))).join("\n"):Mi(e,t,r,n),Mi=(e,t,r,n=ki)=>[oi(`[${Ii()}]`),oi(`[${t}]`),n(Bi[r]),n(e)].join(" "),ki=e=>e,Ii=()=>{const e=new Date;return`${ji(e.getHours(),2)}:${ji(e.getMinutes(),2)}:${ji(e.getSeconds(),2)}.${ji(e.getMilliseconds(),3)}`},ji=(e,t)=>String(e).padStart(t,"0"),Bi={command:"$",pipedCommand:"|",output:" ",ipc:"*",error:Di.cross,warning:Di.warning,success:Di.tick},Pi=e=>{const t="string"==typeof e?e:(0,mn.inspect)(e);return wi(t).replaceAll("\t"," ".repeat(Ri))},Ri=2,$i=()=>Jt.hrtime.bigint(),Ni=e=>Number(Jt.hrtime.bigint()-e)/1e6,Li=e=>Ui.includes(e),Ui=[Jt.stdin,Jt.stdout,Jt.stderr],Wi=["stdin","stdout","stderr"],Gi=e=>Wi[e]??`stdio[${e}]`,Hi=(e,t)=>{const r=Array.from({length:zi(e)+1}),n=Vi(e[t],r,t);return Xi(n,t)},zi=({stdio:e})=>Array.isArray(e)?Math.max(e.length,Wi.length):Wi.length,Vi=(e,t,r)=>kn(e)?qi(e,t,r):t.fill(e),qi=(e,t,r)=>{for(const n of Object.keys(e).sort(Yi))for(const i of Ji(n,r,t))t[i]=e[n];return t},Yi=(e,t)=>Ki(e)<Ki(t)?1:-1,Ki=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,Ji=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=Zi(e);if(void 0===n||0===n)throw new TypeError(`"${t}.${e}" is invalid.\nIt must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(n>=r.length)throw new TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);return"all"===n?[1,2]:[n]},Zi=e=>{if("all"===e)return e;if(Wi.includes(e))return Wi.indexOf(e);const t=Qi.exec(e);return null!==t?Number(t[1]):void 0},Qi=/^fd(\d+)$/,Xi=(e,t)=>e.map((e=>void 0===e?es[t]:e)),es={lines:!1,buffer:!0,maxBuffer:1e8,verbose:li,stripFinalNewline:!0},ts=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],rs=(e,t,r)=>{const n=$i(),{command:i,escapedCommand:s}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map((e=>xi(vi(e)))).join(" ")}})(e,t),o=(e=>{const t=hi(e)?ci++:void 0;return di(e),{verbose:e,verboseId:t}})(Hi(r,"verbose"));return((e,{verbose:t,verboseId:r},{piped:n=!1})=>{if(!hi(t))return;_i(e,r,n?"pipedCommand":"command",si)})(s,o,r),{command:i,escapedCommand:s,startTime:n,verboseInfo:o}};var ns=n(526);function is(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}const ss=(e,t)=>{let r;for(;r!==t;)e.push(Xr.join(t,"node_modules/.bin")),r=t,t=Xr.resolve(t,"..")},os=(e,t,r)=>{const n=t instanceof URL?(0,In.fileURLToPath)(t):t;e.push(Xr.resolve(r,n,".."))},as=({env:e=Jt.env,...t}={})=>{const r=is({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=Jt.cwd(),path:t=Jt.env[is()],preferLocal:r=!0,execPath:n=Jt.execPath,addExecPath:i=!0}={})=>{const s=e instanceof URL?(0,In.fileURLToPath)(e):e,o=Xr.resolve(s),a=[];return r&&ss(a,o),i&&os(a,n,o),[...a,t].join(Xr.delimiter)})(t),e},us=e(import.meta.url)("node:timers/promises");class ls extends Error{}const cs=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,hs,{value:!0,writable:!1,enumerable:!1,configurable:!1})},hs=Symbol("isExecaError"),ds=e=>"[object Error]"===Object.prototype.toString.call(e);class fs extends Error{}cs(fs,fs.name);class ps extends Error{}cs(ps,ps.name);const ms=(e,t)=>({name:`SIGRT${t+1}`,number:gs+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),gs=34,bs=64,ys=[{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"}],Ds=()=>{const e=(()=>{const e=bs-gs+1;return Array.from({length:e},ms)})();return[...ys,...e].map(ws)},ws=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{const{signals:{[e]:o}}=Zt.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}},vs=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o}],Es=(()=>{const e=Ds();return Object.fromEntries(e.map(vs))})(),Fs=(e,t)=>{const r=Cs(e,t);if(void 0===r)return{};const{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:a,standard:u}}},Cs=(e,t)=>{const r=t.find((({name:t})=>Zt.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},Ss=((()=>{const e=Ds(),t=bs+1,r=Array.from({length:t},((t,r)=>Fs(r,e)));Object.assign({},...r)})(),e=>0===e?e:xs(e,"`subprocess.kill()`'s argument")),xs=(e,t)=>{if(Number.isInteger(e))return Os(e,t);if("string"==typeof e)return As(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${Ts()}`)},Os=(e,t)=>{if(_s.has(e))return _s.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${Ts()}`)},_s=new Map(Object.entries(Zt.constants.signals).reverse().map((([e,t])=>[t,e]))),As=(e,t)=>{if(e in Zt.constants.signals)return e;if(e.toUpperCase()in Zt.constants.signals)throw new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`);throw new TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${Ts()}`)},Ts=()=>`Available signal names: ${Ms()}.\nAvailable signal numbers: ${ks()}.`,Ms=()=>Object.keys(Zt.constants.signals).sort().map((e=>`'${e}'`)).join(", "),ks=()=>[...new Set(Object.values(Zt.constants.signals).sort(((e,t)=>e-t)))].join(", "),Is=e=>Es[e].description,js=5e3,Bs=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:i,controller:s},o,a)=>{const{signal:u,error:l}=Ps(o,a,r);Rs(l,n);const c=e(u);return $s({kill:e,signal:u,forceKillAfterDelay:t,killSignal:r,killResult:c,context:i,controller:s}),c},Ps=(e,t,r)=>{const[n=r,i]=ds(e)?[void 0,e]:[e,t];if("string"!=typeof n&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(void 0!==i&&!ds(i))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${i}`);return{signal:Ss(n),error:i}},Rs=(e,t)=>{void 0!==e&&t.reject(e)},$s=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:i,context:s,controller:o})=>{t===n&&i&&Ns({kill:e,forceKillAfterDelay:r,context:s,controllerSignal:o.signal})},Ns=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await(0,us.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},Ls=e(import.meta.url)("node:events"),Us=async(e,t)=>{e.aborted||await(0,Ls.once)(e,"abort",{signal:t})},Ws=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:i})=>void 0===t||r?[]:[Gs(e,t,n,i)],Gs=async(e,t,r,{signal:n})=>{throw await Us(t,n),r.terminationReason??="cancel",e.kill(),t.reason},Hs=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{zs(e,t,r),Vs(e,t,n)},zs=(e,t,r)=>{if(!r)throw new Error(`${Zs(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Vs=(e,t,r)=>{if(!r)throw new Error(`${Zs(e,t)} cannot be used: the ${Xs(t)} has already exited or disconnected.`)},qs=(e,t)=>new Error(`${Zs("sendMessage",t)} failed when sending an acknowledgment response to the ${Xs(t)}.`,{cause:e}),Ys=({code:e,message:t})=>Ks.has(e)||Js.some((e=>t.includes(e))),Ks=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Js=["could not be cloned","circular structure","call stack size exceeded"],Zs=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${Qs(t)}${e}(${r})`,Qs=e=>e?"":"subprocess.",Xs=e=>e?"parent process":"subprocess",eo=e=>{e.connected&&e.disconnect()},to=()=>{const e={},t=new Promise(((t,r)=>{Object.assign(e,{resolve:t,reject:r})}));return Object.assign(t,e)},ro=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:i}=io.get(e),s=so(i,t,r),o=e.stdio[s];if(null===o)throw new TypeError(uo(s,t,n,r));return o},no=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:i}=io.get(e),s=so(i,t,r),o="all"===s?e.all:e.stdio[s];if(null==o)throw new TypeError(uo(s,t,n,r));return o},io=new WeakMap,so=(e,t,r)=>{const n=oo(t,r);return ao(n,t,r,e),n},oo=(e,t)=>{const r=Zi(e);if(void 0!==r)return r;const{validOptions:n,defaultValue:i}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${ho(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${i}".`)},ao=(e,t,r,n)=>{const i=n[co(e)];if(void 0===i)throw new TypeError(`"${ho(r)}" must not be ${t}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);if("input"===i.direction&&!r)throw new TypeError(`"${ho(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==i.direction&&r)throw new TypeError(`"${ho(r)}" must not be ${t}. It must be a writable stream, not readable.`)},uo=(e,t,r,n)=>{if("all"===e&&!r.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:i,optionValue:s}=lo(e,r);return`The "${i}: ${fo(s)}" option is incompatible with using "${ho(n)}: ${fo(t)}".\nPlease set this option with "pipe" instead.`},lo=(e,{stdin:t,stdout:r,stderr:n,stdio:i})=>{const s=co(e);return 0===s&&void 0!==t?{optionName:"stdin",optionValue:t}:1===s&&void 0!==r?{optionName:"stdout",optionValue:r}:2===s&&void 0!==n?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${s}]`,optionValue:i[s]}},co=e=>"all"===e?1:e,ho=e=>e?"to":"from",fo=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",po=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),(0,Ls.addAbortListener)(r,(()=>{e.setMaxListeners(e.getMaxListeners()-t)})))},mo=(e,t)=>{t&&go(e)},go=e=>{e.refCounted()},bo=(e,t)=>{t&&yo(e)},yo=e=>{e.unrefCounted()},Do=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},i)=>{if(Ao(i)||qo(i))return;vo.has(e)||vo.set(e,[]);const s=vo.get(e);if(s.push(i),!(s.length>1))for(;s.length>0;){await Bo(e,n,i),await us.scheduler.yield();const o=await _o({wrappedMessage:s[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});s.shift(),n.emit("message",o),n.emit("message:done")}},wo=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:i})=>{Ko();const s=vo.get(e);for(;s?.length>0;)await(0,Ls.once)(n,"message:done");e.removeListener("message",i),((e,t)=>{t&&(go(e),go(e))})(t,r),n.connected=!1,n.emit("disconnect")},vo=new WeakMap,Eo=(e,t,r)=>{if(Fo.has(e))return Fo.get(e);const n=new Ls.EventEmitter;return n.connected=!0,Fo.set(e,n),Co({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},Fo=new WeakMap,Co=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const i=Do.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",i),t.once("disconnect",wo.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:i})),((e,t)=>{t&&(yo(e),yo(e))})(r,n)},So=e=>{const t=Fo.get(e);return void 0===t?null!==e.channel:t.connected};let xo=0n;const Oo=(e,t)=>{if(t?.type===Io&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&Mo[t].resolve({isDeadlock:!0,hasListeners:!1})},_o=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:i})=>{if(e?.type!==Io||!t.connected)return e;const{id:s,message:o}=e,a={id:s,type:jo,message:Ro(t,i)};try{await No({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){i.emit("strict:error",e)}return o},Ao=e=>{if(e?.type!==jo)return!1;const{id:t,message:r}=e;return Mo[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},To=async(e,t,r)=>{if(e?.type!==Io)return;const n=to();Mo[e.id]=n;const i=new AbortController;try{const{isDeadlock:e,hasListeners:s}=await Promise.race([n,ko(t,r,i)]);e&&(e=>{throw new Error(`${Zs("sendMessage",e)} failed: the ${Xs(e)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${Zs("getOneMessage",e)},\n\t${Zs("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),s||(e=>{throw new Error(`${Zs("sendMessage",e)} failed: the ${Xs(e)} is not listening to incoming messages.`)})(r)}finally{i.abort(),delete Mo[e.id]}},Mo={},ko=async(e,t,{signal:r})=>{po(e,1,r),await(0,Ls.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Zs("sendMessage",e)} failed: the ${Xs(e)} exited without listening to incoming messages.`)})(t)},Io="execa:ipc:request",jo="execa:ipc:response",Bo=async(e,t,r)=>{for(;!Ro(e,t)&&Po.get(e)?.size>0;){const t=[...Po.get(e)];Oo(t,r),await Promise.all(t.map((({onMessageSent:e})=>e)))}},Po=new WeakMap,Ro=(e,t)=>t.listenerCount("message")>$o(e),$o=e=>io.has(e)&&!io.get(e).options.buffer.at(-1)?1:0,No=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},i,{strict:s=!1}={})=>{const o="sendMessage";return Hs({methodName:o,isSubprocess:r,ipc:n,isConnected:e.connected}),Lo({anyProcess:e,channel:t,methodName:o,isSubprocess:r,message:i,strict:s})},Lo=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:i,strict:s})=>{const o=(({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:i})=>{if(!i)return n;const s=Eo(e,t,r),o=Ro(e,s);return{id:xo++,type:Io,message:n,hasListeners:o}})({anyProcess:e,channel:t,isSubprocess:n,message:i,strict:s}),a=((e,t,r)=>{Po.has(e)||Po.set(e,new Set);const n=Po.get(e),i={onMessageSent:to(),id:r?t.id:void 0};return n.add(i),{outgoingMessages:n,outgoingMessage:i}})(e,o,s);try{await Uo({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:o,message:i})}catch(t){throw eo(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},Uo=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:i})=>{const s=Wo(e);try{await Promise.all([To(n,e,r),s(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${Zs(t,r)} cannot be used: the ${Xs(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if(Ys(e))throw new Error(`${Zs(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:r,message:i}),e}},Wo=e=>{if(Go.has(e))return Go.get(e);const t=(0,mn.promisify)(e.send.bind(e));return Go.set(e,t),t},Go=new WeakMap,Ho=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await zo({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),Jo.signal),zo=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{Vo||(Vo=!0,n?null!==t?(Eo(e,t,r),await us.scheduler.yield()):Ko():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let Vo=!1;const qo=e=>e?.type===Yo&&(Jo.abort(e.message),!0),Yo="execa:ipc:cancel",Ko=()=>{Jo.abort(new Error(`\`cancelSignal\` aborted: the ${Xs(!0)} disconnected.`))},Jo=new AbortController,Zo=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:i,controller:s})=>r?[Qo({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:i,controller:s})]:[],Qo=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:i}})=>{await Us(t,i);const s=Xo(t);throw await((e,t)=>{const r="cancelSignal";return Vs(r,!1,e.connected),Uo({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:Yo,message:t},message:t})})(e,s),Ns({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:i}),n.terminationReason??="gracefulCancel",t.reason},Xo=({reason:e})=>{if(!(e instanceof DOMException))return e;const t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t},ea=(e,t,r,n)=>0===t||void 0===t?[]:[ta(e,t,r,n)],ta=async(e,t,r,{signal:n})=>{throw await(0,us.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new ls},ra=e(import.meta.url)("node:v8"),na={advanced:e=>{try{(0,ra.serialize)(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},json:e=>{try{JSON.stringify(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}}},ia=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},sa=new Set(["utf8","utf16le"]),oa=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),aa=new Set([...sa,...oa]),ua=e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in la?la[t]:aa.has(t)?t:void 0},la={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},ca=e=>"string"==typeof e?`"${e}"`:String(e),ha=()=>{try{return Jt.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},da=(e,t,r)=>{r.cwd=((e=ha())=>{const t=jn(e,'The "cwd" option');return(0,Xr.resolve)(t)})(r.cwd);const[n,i,s]=((e,t,{node:r=!1,nodePath:n=Jt.execPath,nodeOptions:i=Jt.execArgv.filter((e=>!e.startsWith("--inspect"))),cwd:s,execPath:o,...a})=>{if(void 0!==o)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const u=jn(n,'The "nodePath" option'),l=(0,Xr.resolve)(s,u),c={...a,nodePath:l,node:r,cwd:s};if(!r)return[e,t,c];if("node"===(0,Xr.basename)(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[l,[...i,e,...t],{ipc:!0,...c,shell:!1}]})(e,t,r),{command:o,args:a,options:u}=ns._parse(n,i,s),l=(e=>{const t={...e};for(const r of ts)t[r]=Hi(e,r);return t})(u),c=fa(l);return(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(c),(({encoding:e})=>{if(aa.has(e))return;const t=ua(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${ca(e)}\`.\nPlease rename it to ${ca(t)}.`);const r=[...aa].map((e=>ca(e))).join(", ");throw new TypeError(`Invalid option \`encoding: ${ca(e)}\`.\nPlease rename it to one of: ${r}.`)})(c),(({ipcInput:e,ipc:t,serialization:r})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");na[r](e)}})(c),(({cancelSignal:e})=>{if(void 0!==e&&"[object AbortSignal]"!==Object.prototype.toString.call(e))throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)})(c),(({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(void 0===t)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!r)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if("json"===n)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(c),c.shell=Bn(c.shell),c.env=pa(c),c.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return xs(e,t)})(c.killSignal),c.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return js;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(c.forceKillAfterDelay),c.lines=c.lines.map(((e,t)=>e&&!oa.has(c.encoding)&&c.buffer[t])),"win32"===Jt.platform&&"cmd"===(0,Xr.basename)(o,".exe")&&a.unshift("/q"),{file:o,commandArguments:a,options:c}},fa=({extendEnv:e=!0,preferLocal:t=!1,cwd:r,localDir:n=r,encoding:i="utf8",reject:s=!0,cleanup:o=!0,all:a=!1,windowsHide:u=!0,killSignal:l="SIGTERM",forceKillAfterDelay:c=!0,gracefulCancel:h=!1,ipcInput:d,ipc:f=void 0!==d||h,serialization:p="advanced",...m})=>({...m,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:i,reject:s,cleanup:o,all:a,windowsHide:u,killSignal:l,forceKillAfterDelay:c,gracefulCancel:h,ipcInput:d,ipc:f,serialization:p}),pa=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:i,nodePath:s})=>{const o=t?{...Jt.env,...e}:e;return r||n?as({env:o,cwd:i,execPath:s,preferLocal:r,addExecPath:n}):o};function ma(e){if("string"==typeof e)return ga(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return ba(e)}const ga=e=>e.at(-1)===ya?e.slice(0,e.at(-2)===wa?-2:-1):e,ba=e=>e.at(-1)===Da?e.subarray(0,e.at(-2)===va?-2:-1):e,ya="\n",Da=ya.codePointAt(0),wa="\r",va=wa.codePointAt(0);function Ea(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function Fa(e,{checkOpen:t=!0}={}){return Ea(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Ca(e,{checkOpen:t=!0}={}){return Ea(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Sa(e,t){return Fa(e,t)&&Ca(e,t)}const xa=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class Oa{#E;#F;#C=!1;#S=void 0;constructor(e,t){this.#E=e,this.#F=t}next(){const e=()=>this.#x();return this.#S=this.#S?this.#S.then(e,e):e(),this.#S}return(e){const t=()=>this.#O(e);return this.#S?this.#S.then(t,t):t()}async#x(){if(this.#C)return{done:!0,value:void 0};let e;try{e=await this.#E.read()}catch(e){throw this.#S=void 0,this.#C=!0,this.#E.releaseLock(),e}return e.done&&(this.#S=void 0,this.#C=!0,this.#E.releaseLock()),e}async#O(e){if(this.#C)return{done:!0,value:e};if(this.#C=!0,!this.#F){const t=this.#E.cancel(e);return this.#E.releaseLock(),await t,{done:!0,value:e}}return this.#E.releaseLock(),{done:!0,value:e}}}const _a=Symbol();function Aa(){return this[_a].next()}function Ta(e){return this[_a].return(e)}Object.defineProperty(Aa,"name",{value:"next"}),Object.defineProperty(Ta,"name",{value:"return"});const Ma=Object.create(xa,{next:{enumerable:!0,configurable:!0,writable:!0,value:Aa},return:{enumerable:!0,configurable:!0,writable:!0,value:Ta}});function ka({preventCancel:e=!1}={}){const t=this.getReader(),r=new Oa(t,e),n=Object.create(Ma);return n[_a]=r,n}const Ia=e=>{if(Ca(e,{checkOpen:!1})&&void 0!==Ra.on)return Ba(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===ja.call(e))return ka.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:ja}=Object.prototype,Ba=async function*(e){const t=new AbortController,r={};Pa(e,t,r);try{for await(const[r]of Ra.on(e,"data",{signal:t.signal}))yield r}catch(e){if(void 0!==r.error)throw r.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},Pa=async(e,t,r)=>{try{await Ra.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},Ra={},$a=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{const l=Ia(e),c=t();c.length=0;try{for await(const e of l){const t=r[Wa(e)](e,c);La({convertedChunk:t,state:c,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:u})}return Na({state:c,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,maxBuffer:u}),a(c)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(c),t}},Na=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:s})=>{const o=i(e);void 0!==o&&La({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:s})},La=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:s})=>{const o=r(e),a=t.length+o;if(a<=s)return void Ua(e,t,i,a);const u=n(e,s-t.length);throw void 0!==u&&Ua(u,t,i,s),new Ha},Ua=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},Wa=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const r=Ga.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===Ga.call(e.buffer)?"typedArray":"others"},{toString:Ga}=Object.prototype;class Ha extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const za=(e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters",Va=(e,t,r)=>{if(t.length!==r)return;const n=new Ha;throw n.maxBufferInfo={fdNumber:"ipc"},n},qa=(e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:r,unit:n}}=e;return delete e.maxBufferInfo,"ipc"===r?{streamName:"IPC output",threshold:t.at(-1),unit:"messages"}:{streamName:Gi(r),threshold:t[r],unit:n}},Ya=([,e])=>e,Ka=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:i,errorCode:s,signal:o,signalDescription:a,exitCode:u,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:h,forceKillAfterDelay:d,killSignal:f})=>{const p=Ja(h,d);return t?`Command timed out after ${r} milliseconds${p}`:c?void 0===o?`Command was gracefully canceled with exit code ${u}`:h?`Command was gracefully canceled${p}`:`Command was gracefully canceled with ${o} (${a})`:l?`Command was canceled${p}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:i}=qa(e,t);return`Command's ${r} was larger than ${n} ${i}`})(e,i)}${p}`:void 0!==s?`Command failed with ${s}${p}`:h?`Command was killed with ${f} (${Is(f)})${p}`:void 0!==o?`Command was killed with ${o} (${a})`:void 0!==u?`Command failed with exit code ${u}`:"Command failed"},Ja=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",Za=(e,t)=>{if(e instanceof ls)return;const r=ds(n=e)&&hs in n?e.originalMessage:String(e?.message??e);var n;const i=wi(((e,t)=>{if(t===ha())return e;let r;try{r=(0,Qr.statSync)(t)}catch(r){return`The "cwd" option is invalid: ${t}.\n${r.message}\n${e}`}return r.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(r,t));return""===i?void 0:i},Qa=e=>"string"==typeof e?e:(0,mn.inspect)(e),Xa=e=>Array.isArray(e)?e.map((e=>ma(eu(e)))).filter(Boolean).join("\n"):eu(e),eu=e=>"string"==typeof e?e:Nn(e)?Hn(e):"",tu=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:i,options:{cwd:s},startTime:o})=>su({command:e,escapedCommand:t,cwd:s,durationMs:Ni(o),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:i,pipedFrom:[]}),ru=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:o})=>nu({error:e,command:t,escapedCommand:r,startTime:s,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:i,isSync:o}),nu=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,stdio:h,all:d,ipcOutput:f,options:{timeoutDuration:p,timeout:m=p,forceKillAfterDelay:g,killSignal:b,cwd:y,maxBuffer:D},isSync:w})=>{const{exitCode:v,signal:E,signalDescription:F}=ou(l,c),{originalMessage:C,shortMessage:S,message:x}=(({stdio:e,all:t,ipcOutput:r,originalError:n,signal:i,signalDescription:s,exitCode:o,escapedCommand:a,timedOut:u,isCanceled:l,isGracefullyCanceled:c,isMaxBuffer:h,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p,maxBuffer:m,timeout:g,cwd:b})=>{const y=n?.code,D=Ka({originalError:n,timedOut:u,timeout:g,isMaxBuffer:h,maxBuffer:m,errorCode:y,signal:i,signalDescription:s,exitCode:o,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p}),w=Za(n,b),v=`${D}: ${a}${void 0===w?"":`\n${w}`}`,E=[v,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),r.map((e=>Qa(e))).join("\n")].map((e=>wi(ma(Xa(e))))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:v,message:E}})({stdio:h,all:d,ipcOutput:f,originalError:e,signal:E,signalDescription:F,exitCode:v,escapedCommand:r,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,forceKillAfterDelay:g,killSignal:b,maxBuffer:D,timeout:m,cwd:y}),O=((e,t,r)=>new(r?ps:fs)(t,e instanceof ls?{}:{cause:e}))(e,x,w);return Object.assign(O,iu({error:O,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:v,signal:E,signalDescription:F,stdio:h,all:d,ipcOutput:f,cwd:y,originalMessage:C,shortMessage:S})),O},iu=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,stdio:d,all:f,ipcOutput:p,cwd:m,originalMessage:g,shortMessage:b})=>su({shortMessage:b,originalMessage:g,command:t,escapedCommand:r,cwd:m,durationMs:Ni(n),failed:!0,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isTerminated:void 0!==c,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,code:e.cause?.code,stdout:d[1],stderr:d[2],all:f,stdio:d,ipcOutput:p,pipedFrom:[]}),su=e=>Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e))),ou=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:Is(t)}},au=e=>Number.isFinite(e)?e:0;function uu(e){switch(typeof e){case"number":if(Number.isFinite(e))return function(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(au(1e3*e)%1e3),nanoseconds:Math.trunc(au(1e6*e)%1e3)}}(e);break;case"bigint":return function(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}(e)}throw new TypeError("Expected a finite number or bigint")}function lu(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");(t={...t}).colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let n=[];const i=(e,r,i,s)=>{if(0!==n.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===i){if(s=s??String(e),t.colonNotation){const e=s.includes(".")?s.split(".")[0].length:s.length,t=n.length>0?2:1;s="0".repeat(Math.max(0,t-e))+s}else s+=t.verbose?" "+((e,t)=>1===t||1n===t?e:`${e}s`)(r,e):i;n.push(s)}},s=uu(e),o=BigInt(s.days);if(i(o/365n,"year","y"),i(o%365n,"day","d"),i(Number(s.hours),"hour","h"),i(Number(s.minutes),"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(s.seconds),r=Number(s.milliseconds),n=Number(s.microseconds),o=Number(s.nanoseconds);if(i(e,"second","s"),t.formatSubMilliseconds)i(r,"millisecond","ms"),i(n,"microsecond","\xb5s"),i(o,"nanosecond","ns");else{const e=r+n/1e3+o/1e6,s="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),u=s?e.toFixed(s):a;i(Number.parseFloat(u),"millisecond","ms",u)}}else{const n=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})((r?Number(e%86400000n):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),s=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");i(Number.parseFloat(s),"second","s",s)}if(0===n.length)return"0"+(t.verbose?" milliseconds":"ms");const a=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(n=n.slice(0,Math.max(t.unitCount,1))),n.join(a)}const cu=(e,t,r)=>{hu({message:wi(String(e)),failed:!0,reject:!0,durationMs:Ni(t),verboseInfo:r})},hu=({message:e,failed:t,reject:r,durationMs:n,verboseInfo:{verbose:i,verboseId:s}})=>{if(!hi(i))return;const o=fu(t,r);(({message:e,failed:t,reject:r,verboseId:n,icon:i})=>{if(!t)return;_i(e,n,i,r?ai:ui)})({message:e,failed:t,reject:r,verboseId:s,icon:o}),du(n,s,o)},du=(e,t,r)=>{const n=`(done in ${lu(e)})`;_i(n,t,r,oi)},fu=(e,t)=>e?t?"error":"warning":"success",pu=(e,t,{reject:r})=>{if((({shortMessage:e,failed:t,durationMs:r},n,i)=>{hu({message:e,failed:t,reject:n,durationMs:r,verboseInfo:i})})(e,r,t),e.failed&&r)throw e;return e},mu=(e,t)=>Cu(e)?"asyncGenerator":Su(e)?"generator":Ou(e)?"fileUrl":_u(e)?"filePath":Iu(e)?"webStream":Ea(e,{checkOpen:!1})?"native":Nn(e)?"uint8Array":Bu(e)?"asyncIterable":Pu(e)?"iterable":ju(e)?yu({transform:e},t):xu(e)?gu(e,t):"native",gu=(e,t)=>Sa(e.transform,{checkOpen:!1})?bu(e,t):ju(e.transform)?yu(e,t):vu(e,t),bu=(e,t)=>(Du(e,t,"Duplex stream"),"duplex"),yu=(e,t)=>(Du(e,t,"web TransformStream"),"webTransform"),Du=({final:e,binary:t,objectMode:r},n,i)=>{wu(e,`${n}.final`,i),wu(t,`${n}.binary`,i),Eu(r,`${n}.objectMode`)},wu=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},vu=({transform:e,final:t,binary:r,objectMode:n},i)=>{if(void 0!==e&&!Fu(e))throw new TypeError(`The \`${i}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(Sa(t,{checkOpen:!1}))throw new TypeError(`The \`${i}.final\` option must not be a Duplex stream.`);if(ju(t))throw new TypeError(`The \`${i}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!Fu(t))throw new TypeError(`The \`${i}.final\` option must be a generator.`);return Eu(r,`${i}.binary`),Eu(n,`${i}.objectMode`),Cu(e)||Cu(t)?"asyncGenerator":"generator"},Eu=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},Fu=e=>Cu(e)||Su(e),Cu=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),Su=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),xu=e=>kn(e)&&(void 0!==e.transform||void 0!==e.final),Ou=e=>"[object URL]"===Object.prototype.toString.call(e),_u=e=>kn(e)&&1===Object.keys(e).length&&Au(e.file),Au=e=>"string"==typeof e,Tu=new Set(["ipc","ignore","inherit","overlapped","pipe"]),Mu=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),ku=e=>"[object WritableStream]"===Object.prototype.toString.call(e),Iu=e=>Mu(e)||ku(e),ju=e=>Mu(e?.readable)&&ku(e?.writable),Bu=e=>Ru(e)&&"function"==typeof e[Symbol.asyncIterator],Pu=e=>Ru(e)&&"function"==typeof e[Symbol.iterator],Ru=e=>"object"==typeof e&&null!==e,$u=new Set(["generator","asyncGenerator","duplex","webTransform"]),Nu=new Set(["fileUrl","filePath","fileNumber"]),Lu=new Set(["fileUrl","filePath"]),Uu=new Set([...Lu,"webStream","nodeStream"]),Wu=new Set(["webTransform","duplex"]),Gu={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"},Hu=(e,t,r,n)=>"output"===n?zu(e,t,r):Vu(e,t,r),zu=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},Vu=(e,t,r)=>{const n=0===t?!0===e:r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:t!==r.length-1&&(e??n)}},qu=(e,t,r,{encoding:n})=>{const i=e.filter((({type:e})=>$u.has(e))),s=Array.from({length:i.length});for(const[e,o]of Object.entries(i))s[e]=Yu({stdioItem:o,index:Number(e),newTransforms:s,optionName:t,direction:r,encoding:n});return Qu(s,r)},Yu=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:i,direction:s,encoding:o})=>"duplex"===t?Ku({stdioItem:e,optionName:i}):"webTransform"===t?Ju({stdioItem:e,index:r,newTransforms:n,direction:s}):Zu({stdioItem:e,index:r,newTransforms:n,direction:s,encoding:o}),Ku=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:i=n}},optionName:s})=>{if(i&&!n)throw new TypeError(`The \`${s}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!i&&n)throw new TypeError(`The \`${s}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:r,readableObjectMode:n}}},Ju=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i})=>{const{transform:s,objectMode:o}=kn(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:u}=Hu(o,r,n,i);return{...e,value:{transform:s,writableObjectMode:a,readableObjectMode:u}}},Zu=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i,encoding:s})=>{const{transform:o,final:a,binary:u=!1,preserveNewlines:l=!1,objectMode:c}=kn(t)?t:{transform:t},h=u||oa.has(s),{writableObjectMode:d,readableObjectMode:f}=Hu(c,r,n,i);return{...e,value:{transform:o,final:a,binary:h,preserveNewlines:l,writableObjectMode:d,readableObjectMode:f}}},Qu=(e,t)=>"input"===t?e.reverse():e,Xu=({type:e,value:t},r)=>el[r]??nl[e](t),el=["input","output","output"],tl=()=>{},rl=()=>"input",nl={generator:tl,asyncGenerator:tl,fileUrl:tl,filePath:tl,iterable:rl,asyncIterable:rl,uint8Array:rl,webStream:e=>ku(e)?"output":"input",nodeStream:e=>Ca(e,{checkOpen:!1})?Fa(e,{checkOpen:!1})?void 0:"input":"output",webTransform:tl,duplex:tl,native(e){const t=il(e);return void 0!==t?t:Ea(e,{checkOpen:!1})?nl.nodeStream(e):void 0}},il=e=>[0,Jt.stdin].includes(e)?"input":[1,2,Jt.stdout,Jt.stderr].includes(e)?"output":void 0,sl="output",ol=(e,t)=>{if(void 0===e)return Wi.map((e=>t[e]));if(al(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Wi.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e)return[e,e,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,Wi.length);return Array.from({length:r},((t,r)=>e[r]))},al=e=>Wi.some((t=>void 0!==e[t])),ul=(e,t)=>Array.isArray(e)?e.map((e=>ul(e,t))):null==e?t>=Wi.length?"ignore":"pipe":e,ll=(e,t,r)=>e.map(((e,n)=>!t[n]&&0!==n&&"full"!==r[n]&&cl(e)?"ignore":e)),cl=e=>"pipe"===e||Array.isArray(e)&&e.every((e=>"pipe"===e)),hl=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:i})=>{const s=dl({value:t,optionName:r,fdNumber:n,direction:i});if(void 0!==s)return s;if(Ea(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},dl=({value:e,optionName:t,fdNumber:r,direction:n})=>{const i=fl(e,r);if(void 0!==i){if("output"===n)return{type:"fileNumber",value:i,optionName:t};if(Qt.isatty(i))throw new TypeError(`The \`${t}: ${fo(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:Ln((0,Qr.readFileSync)(i)),optionName:t}}},fl=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=Ui.indexOf(e);return-1!==r?r:void 0},pl=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:ml(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:ml(t,t,r),optionName:r}:Ea(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,ml=(e,t,r)=>{const n=Ui[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},gl=({input:e,inputFile:t},r)=>0===r?[...bl(e),...Dl(t)]:[],bl=e=>void 0===e?[]:[{type:yl(e),value:e,optionName:"input"}],yl=e=>{if(Ca(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(Nn(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},Dl=e=>void 0===e?[]:[{...wl(e),optionName:"inputFile"}],wl=e=>{if(Ou(e))return{type:"fileUrl",value:e};if(Au(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},vl=(e,t)=>e.flatMap((({direction:e,stdioItems:r})=>r.filter((e=>e.type===t)).map((t=>({...t,direction:e}))))),El=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{Lu.has(t)&&Fl({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})},Fl=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{const s=e.filter((e=>Cl(e,r)));if(0===s.length)return;const o=s.find((e=>e.direction!==i));return xl(o,n,t),"output"===i?s[0].stream:void 0},Cl=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,Sl=({otherStdioItems:e,type:t,value:r,optionName:n})=>{const i=e.find((({value:{transform:e}})=>e===r.transform));xl(i,n,t)},xl=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Gu[r]} that is the same.`)},Ol=(e,t,r,n)=>{const i=(({stdio:e,ipc:t,buffer:r,verbose:n,...i},s)=>{const o=ol(e,i).map(((e,t)=>ul(e,t)));return s?ll(o,r,n):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(o,t)})(t,n),s=i.map(((e,r)=>_l({stdioOption:e,fdNumber:r,options:t,isSync:n}))),o=Pl({initialFileDescriptors:s,addProperties:e,options:t,isSync:n});return t.stdio=o.map((({stdioItems:e})=>Ll(e))),o},_l=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const i=Gi(t),{stdioItems:s,isStdioArray:o}=Al({stdioOption:e,fdNumber:t,options:r,optionName:i}),a=((e,t,r)=>{const n=e.map((e=>Xu(e,t)));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??sl})(s,t,i),u=s.map((e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:i,isSync:s})=>r&&"native"===t?s?hl({stdioItem:e,fdNumber:n,direction:i}):pl({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:o,fdNumber:t,direction:a,isSync:n}))),l=((e,t,r,n)=>[...e.filter((({type:e})=>!$u.has(e))),...qu(e,t,r,n)])(u,i,a,r),c=((e,t)=>{const r=e.findLast((({type:e})=>$u.has(e)));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(l,a);return Bl(l,c),{direction:a,objectMode:c,stdioItems:l}},Al=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{const i=(e=>e.filter(((t,r)=>e.every(((e,n)=>t.value!==e.value||r>=n||"generator"===t.type||"asyncGenerator"===t.type)))))([...(Array.isArray(e)?e:[e]).map((e=>Tl(e,n))),...gl(r,t)]),s=i.length>1;return Ml(i,s,n),Il(i),{stdioItems:i,isStdioArray:s}},Tl=(e,t)=>({type:mu(e,t),value:e,optionName:t}),Ml=(e,t,r)=>{if(0===e.length)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t)for(const{value:t,optionName:r}of e)if(kl.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},kl=new Set(["ignore","ipc"]),Il=e=>{for(const t of e)jl(t)},jl=({type:e,value:t,optionName:r})=>{if((e=>Ou(e)&&"file:"!==e.protocol)(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(((e,t)=>"native"===e&&"string"==typeof t&&!Tu.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},Bl=(e,t)=>{if(!t)return;const r=e.find((({type:e})=>Nu.has(e)));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},Pl=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const i=[];try{for(const s of e)i.push(Rl({fileDescriptor:s,fileDescriptors:i,addProperties:t,options:r,isSync:n}));return i}catch(e){throw Nl(i),e}},Rl=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:i,options:s,isSync:o})=>{const a=r.map((t=>$l({stdioItem:t,addProperties:i,direction:e,options:s,fileDescriptors:n,isSync:o})));return{direction:e,objectMode:t,stdioItems:a}},$l=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:i,isSync:s})=>{const o=(({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:i,isSync:s})=>{const o=vl(i,e);if(0!==o.length){if(!s)return Uu.has(e)?Fl({otherStdioItems:o,type:e,value:t,optionName:r,direction:n}):void(Wu.has(e)&&Sl({otherStdioItems:o,type:e,value:t,optionName:r}));El({otherStdioItems:o,type:e,value:t,optionName:r,direction:n})}})({stdioItem:e,direction:r,fileDescriptors:i,isSync:s});return void 0!==o?{...e,stream:o}:{...e,...t[r][e.type](e,n)}},Nl=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||Li(e)||e.destroy()},Ll=e=>{if(e.length>1)return e.some((({value:e})=>"overlapped"===e))?"overlapped":"pipe";const[{type:t,value:r}]=e;return"native"===t?r:"pipe"},Ul=({type:e,optionName:t})=>{Wl(t,Gu[e])},Wl=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},Gl={generator(){},asyncGenerator:Ul,webStream:Ul,nodeStream:Ul,webTransform:Ul,duplex:Ul,asyncIterable:Ul,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||Wl(e,`"${t}"`),{})},Hl={input:{...Gl,fileUrl:({value:e})=>({contents:[Ln((0,Qr.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[Ln((0,Qr.readFileSync)(e))]}),fileNumber:Ul,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...Gl,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e}})=>({path:e}),fileNumber:({value:e})=>({path:e}),iterable:Ul,string:Ul,uint8Array:Ul}},zl=(e,{stripFinalNewline:t},r)=>Vl(t,r)&&void 0!==e&&!Array.isArray(e)?ma(e):e,Vl=(e,t)=>"all"===t?e[1]||e[2]:e[t],ql=e(import.meta.url)("node:stream"),Yl=(e,t,r,n)=>e||r?void 0:Zl(t,n),Kl=(e,t,r)=>r?e.flatMap((e=>Jl(e,t))):Jl(e,t),Jl=(e,t)=>{const{transform:r,final:n}=Zl(t,{});return[...r(e),...n()]},Zl=(e,t)=>(t.previousChunks="",{transform:Ql.bind(void 0,t,e),final:ec.bind(void 0,t)}),Ql=function*(e,t,r){if("string"!=typeof r)return void(yield r);let{previousChunks:n}=e,i=-1;for(let s=0;s<r.length;s+=1)if("\n"===r[s]){const o=Xl(r,s,t,e);let a=r.slice(i+1,s+1-o);n.length>0&&(a=nc(n,a),n=""),yield a,i=s}i!==r.length-1&&(n=nc(n,r.slice(i+1))),e.previousChunks=n},Xl=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),ec=function*({previousChunks:e}){e.length>0&&(yield e)},tc=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:rc.bind(void 0,n)},rc=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:i,concatBytes:s}="string"==typeof t?ic:sc;if(t.at(-1)===i)return void(yield t);const o=e?n:r;yield s(t,o)},nc=(e,t)=>`${e}${t}`,ic={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:nc},sc={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}},oc=e(import.meta.url)("node:buffer"),ac=(e,t)=>e?void 0:uc.bind(void 0,t),uc=function*(e,t){if("string"!=typeof t&&!Nn(t)&&!oc.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},lc=(e,t)=>e?cc.bind(void 0,t):hc.bind(void 0,t),cc=function*(e,t){dc(e,t),yield t},hc=function*(e,t){if(dc(e,t),"string"!=typeof t&&!Nn(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},dc=(e,t)=>{if(null==t)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)},fc=(e,t,r)=>{if(r)return;if(e)return{transform:pc.bind(void 0,new TextEncoder)};const n=new Rn.StringDecoder(t);return{transform:mc.bind(void 0,n),final:gc.bind(void 0,n)}},pc=function*(e,t){oc.Buffer.isBuffer(t)?yield Ln(t):"string"==typeof t?yield e.encode(t):yield t},mc=function*(e,t){yield Nn(t)?e.write(t):t},gc=function*(e){const t=e.end();""!==t&&(yield t)},bc=(0,mn.callbackify)((async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(const e of t.currentIterable)n.push(e)}finally{delete t.currentIterable}})),yc=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=Ec}=t[r];for await(const i of n(e))yield*yc(i,t,r+1)},Dc=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*wc(r,Number(t),e)},wc=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*yc(n,r,t+1)},vc=(0,mn.callbackify)((async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())})),Ec=function*(e){yield e},Fc=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},Cc=(e,t)=>[...t.flatMap((t=>[...Sc(t,e,0)])),...xc(e)],Sc=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=_c}=t[r];for(const i of n(e))yield*Sc(i,t,r+1)},xc=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Oc(r,Number(t),e)},Oc=function*(e,t,r){if(void 0!==e)for(const n of e())yield*Sc(n,r,t+1)},_c=function*(e){yield e},Ac=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:i},optionName:s},{encoding:o})=>{const a={},u=Mc(e,o,s),l=Cu(t),c=Cu(r),h=l?bc.bind(void 0,yc,a):Fc.bind(void 0,Sc),d=l||c?bc.bind(void 0,Dc,a):Fc.bind(void 0,xc),f=l||c?vc.bind(void 0,a):void 0;return{stream:new ql.Transform({writableObjectMode:n,writableHighWaterMark:(0,ql.getDefaultHighWaterMark)(n),readableObjectMode:i,readableHighWaterMark:(0,ql.getDefaultHighWaterMark)(i),transform(e,t,r){h([e,u,0],this,r)},flush(e){d([u],this,e)},destroy:f})}},Tc=(e,t,r,n)=>{const i=t.filter((({type:e})=>"generator"===e)),s=n?i.reverse():i;for(const{value:t,optionName:n}of s){const i=Mc(t,r,n);e=Cc(i,e)}return e},Mc=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:i,preserveNewlines:s},o,a)=>{const u={};return[{transform:ac(n,a)},fc(r,o,n),Yl(r,s,n,u),{transform:e,final:t},{transform:lc(i,a)},tc({binary:r,preserveNewlines:s,readableObjectMode:i,state:u})].filter(Boolean)},kc=e=>new Set(Object.entries(e).filter((([,{direction:e}])=>"input"===e)).map((([e])=>Number(e)))),Ic=(e,t,r)=>{const{stdioItems:n}=e[t],i=n.filter((({contents:e})=>void 0!==e));if(0===i.length)return;if(0!==t){const[{type:e,optionName:t}]=i;throw new TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${Gu[e]} with synchronous methods.`)}const s=i.map((({contents:e})=>e)).map((e=>jc(e,n)));r.input=Vn(s)},jc=(e,t)=>{const r=Tc(e,t,"utf8",!0);return Bc(r),Vn(r)},Bc=e=>{const t=e.find((e=>"string"!=typeof e&&!Nn(e)));if(void 0!==t)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)},Pc=({stdioItems:e,encoding:t,verboseInfo:{verbose:r},fdNumber:n})=>"all"!==n&&"full"===r[n]&&!oa.has(t)&&Rc(n)&&(e.some((({type:e,value:t})=>"native"===e&&$c.has(t)))||e.every((({type:e})=>$u.has(e)))),Rc=e=>1===e||2===e,$c=new Set(["pipe","overlapped"]),Nc=e=>e._readableState.pipes.length>0,Lc=(e,{verboseId:t})=>{_i(Pi(e),t,"output")},Uc=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:i,isMaxBuffer:s,verboseInfo:o},{buffer:a,encoding:u,lines:l,stripFinalNewline:c,maxBuffer:h})=>{if(null===e)return;const d=((e,t,r)=>{if(!t)return e;const n=Ya(r);return e.length>n?e.slice(0,n):e})(e,s,h),f=Ln(d),{stdioItems:p,objectMode:m}=t[r],g=Wc([f],p,u,n),{serializedResult:b,finalResult:y=b}=Gc({chunks:g,objectMode:m,encoding:u,lines:l,stripFinalNewline:c,fdNumber:r});if(Pc({stdioItems:p,encoding:u,verboseInfo:o,fdNumber:r})){((e,t)=>{for(const r of e)Lc(r,t)})(Kl(b,!1,m),o)}const D=a[r]?y:void 0;try{return void 0===n.error&&Hc(b,p,i),D}catch(e){return n.error=e,D}},Wc=(e,t,r,n)=>{try{return Tc(e,t,r,!1)}catch(t){return n.error=t,e}},Gc=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:i,fdNumber:s})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:Vn(e)};const o=((e,t)=>zn(e,t).join(""))(e,r);return n[s]?{serializedResult:o,finalResult:Kl(o,!i[s],t)}:{serializedResult:o}},Hc=(e,t,r)=>{for(const{path:n}of t.filter((({type:e})=>Nu.has(e)))){const t="string"==typeof n?n:n.toString();r.has(t)?(0,Qr.appendFileSync)(n,e):(r.add(t),(0,Qr.writeFileSync)(n,e))}},zc=async e=>{const[t,r]=await Promise.allSettled([(0,Ls.once)(e,"spawn"),(0,Ls.once)(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?Vc(e):r.value},Vc=async e=>{try{return await(0,Ls.once)(e,"exit")}catch{return Vc(e)}},qc=async e=>{const[t,r]=await e;if(!Yc(t,r)&&Kc(t,r))throw new ls;return[t,r]},Yc=(e,t)=>void 0===e&&void 0===t,Kc=(e,t)=>0!==e||null!==t,Jc=({error:e,status:t,signal:r,output:n},{maxBuffer:i})=>{const s=Zc(e,t,r),o="ETIMEDOUT"===s?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some((e=>null!==e&&e.length>Ya(r))))(s,n,i);return{resultError:s,exitCode:t,signal:r,timedOut:o,isMaxBuffer:a}},Zc=(e,t,r)=>void 0!==e?e:Kc(t,r)?new ls:void 0,Qc=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=rs(e,t,r);try{const a=Xc(r),{file:u,commandArguments:l,options:c}=da(e,t,a);eh(c);const h=((e,t)=>Ol(Hl,e,0,!0))(c);return{file:u,commandArguments:l,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}}catch(e){throw cu(e,s,o),e}},Xc=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,eh=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&th("ipcInput"),e&&th("ipc: true"),r&&th("detached: true"),n&&th("cancelSignal")},th=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},rh=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,verboseInfo:s,fileDescriptors:o,startTime:a})=>{const u=nh({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:o,startTime:a});if(u.failed)return u;const{resultError:l,exitCode:c,signal:h,timedOut:d,isMaxBuffer:f}=Jc(u,r),{output:p,error:m=l}=(({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:i})=>{if(null===t)return{output:Array.from({length:3})};const s={},o=new Set([]);return{output:t.map(((t,a)=>Uc({result:t,fileDescriptors:e,fdNumber:a,state:s,outputFiles:o,isMaxBuffer:n,verboseInfo:i},r))),...s}})({fileDescriptors:o,syncResult:u,options:r,isMaxBuffer:f,verboseInfo:s}),g=p.map(((e,t)=>zl(e,r,t))),b=zl((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,zl(t,r,"all")]:Array.isArray(t)?[zl(e,r,"all"),...t]:Nn(e)&&Nn(t)?Yn([e,t]):`${e}${t}`})(p,r),r,"all");return sh({error:m,exitCode:c,signal:h,timedOut:d,isMaxBuffer:f,stdio:g,all:b,options:r,command:n,escapedCommand:i,startTime:a})},nh=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:s,startTime:o})=>{try{((e,t)=>{for(const r of kc(e))Ic(e,r,t)})(s,r);const n=ih(r);return(0,Zr.spawnSync)(e,t,n)}catch(e){return ru({error:e,command:n,escapedCommand:i,fileDescriptors:s,options:r,startTime:o,isSync:!0})}},ih=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:Ya(t)}),sh=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:i,stdio:s,all:o,options:a,command:u,escapedCommand:l,startTime:c})=>void 0===e?tu({command:u,escapedCommand:l,stdio:s,all:o,ipcOutput:[],options:a,startTime:c}):nu({error:e,command:u,escapedCommand:l,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:i,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:s,all:o,ipcOutput:[],options:a,startTime:c,isSync:!0}),oh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0,filter:s}={})=>(Hs({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:So(e)}),ah({anyProcess:e,channel:t,isSubprocess:r,filter:s,reference:i})),ah=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:i})=>{mo(t,i);const s=Eo(e,t,r),o=new AbortController;try{return await Promise.race([uh(s,n,o),lh(s,r,o),ch(s,r,o)])}catch(t){throw eo(e),t}finally{o.abort(),bo(t,i)}},uh=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await(0,Ls.once)(e,"message",{signal:r});return t}for await(const[n]of(0,Ls.on)(e,"message",{signal:r}))if(t(n))return n},lh=async(e,t,{signal:r})=>{await(0,Ls.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Zs("getOneMessage",e)} could not complete: the ${Xs(e)} exited or disconnected.`)})(t)},ch=async(e,t,{signal:r})=>{const[n]=await(0,Ls.once)(e,"strict:error",{signal:r});throw qs(n,t)},hh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0}={})=>dh({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:i}),dh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:i,reference:s})=>{Hs({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:So(e)}),mo(t,s);const o=Eo(e,t,r),a=new AbortController,u={};return fh(e,o,a),ph({ipcEmitter:o,isSubprocess:r,controller:a,state:u}),mh({anyProcess:e,channel:t,ipcEmitter:o,isSubprocess:r,shouldAwait:i,controller:a,state:u,reference:s})},fh=async(e,t,r)=>{try{await(0,Ls.once)(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},ph=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[i]=await(0,Ls.once)(e,"strict:error",{signal:r.signal});n.error=qs(i,t),r.abort()}catch{}},mh=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:i,controller:s,state:o,reference:a}){try{for await(const[e]of(0,Ls.on)(r,"message",{signal:s.signal}))gh(o),yield e}catch{gh(o)}finally{s.abort(),bo(t,a),n||eo(e),i&&await e}},gh=({error:e})=>{if(e)throw e},bh=(e,t,r)=>({sendMessage:No.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:oh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:hh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),yh=(e,t)=>{const r=Dh(),n=Dh(),i=Dh(),s=Array.from({length:t.length-3},Dh),o=Dh(),a=[r,n,i,...s];Object.assign(e,{stdin:r,stdout:n,stderr:i,all:o,stdio:a})},Dh=()=>{const e=new ql.PassThrough;return e.end(),e},wh=()=>new ql.Readable({read(){}}),vh=()=>new ql.Writable({write(){}}),Eh=()=>new ql.Duplex({read(){},write(){}}),Fh=async(e,t,r)=>pu(e,t,r),Ch=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${Gu[e]}.`)},Sh={fileNumber:Ch,generator:Ac,asyncGenerator:Ac,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:ql.Duplex.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},xh={input:{...Sh,fileUrl:({value:e})=>({stream:(0,Qr.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Qr.createReadStream)(e)}),webStream:({value:e})=>({stream:ql.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:ql.Readable.from(e)}),asyncIterable:({value:e})=>({stream:ql.Readable.from(e)}),string:({value:e})=>({stream:ql.Readable.from(e)}),uint8Array:({value:e})=>({stream:ql.Readable.from(oc.Buffer.from(e))})},output:{...Sh,fileUrl:({value:e})=>({stream:(0,Qr.createWriteStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Qr.createWriteStream)(e)}),webStream:({value:e})=>({stream:ql.Writable.fromWeb(e)}),iterable:Ch,asyncIterable:Ch,string:Ch,uint8Array:Ch}},Oh=e(import.meta.url)("node:stream/promises");function _h(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)jh(t);const t=e.some((({readableObjectMode:e})=>e)),r=Ah(e,t),n=new Th({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const Ah=(e,t)=>{if(0===e.length)return(0,ql.getDefaultHighWaterMark)(t);const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class Th extends ql.PassThrough{#_=new Set([]);#A=new Set([]);#T=new Set([]);#M;#k=Symbol("unpipe");#I=new WeakMap;add(e){if(jh(e),this.#_.has(e))return;this.#_.add(e),this.#M??=Mh(this,this.#_,this.#k);const t=Bh({passThroughStream:this,stream:e,streams:this.#_,ended:this.#A,aborted:this.#T,onFinished:this.#M,unpipeEvent:this.#k});this.#I.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(jh(e),!this.#_.has(e))return!1;const t=this.#I.get(e);return void 0!==t&&(this.#I.delete(e),e.unpipe(this),await t,!0)}}const Mh=async(e,t,r)=>{zh(e,Vh);const n=new AbortController;try{await Promise.race([kh(e,n),Ih(e,t,r,n)])}finally{n.abort(),zh(e,-Vh)}},kh=async(e,{signal:t})=>{try{await(0,Oh.finished)(e,{signal:t,cleanup:!0})}catch(t){throw Lh(e,t),t}},Ih=async(e,t,r,{signal:n})=>{for await(const[i]of(0,Ls.on)(e,"unpipe",{signal:n}))t.has(i)&&i.emit(r)},jh=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Bh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,onFinished:s,unpipeEvent:o})=>{zh(e,qh);const a=new AbortController;try{await Promise.race([Ph(s,t,a),Rh({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:a}),$h({stream:t,streams:r,ended:n,aborted:i,unpipeEvent:o,controller:a})])}finally{a.abort(),zh(e,-qh)}r.size>0&&r.size===n.size+i.size&&(0===n.size&&i.size>0?Wh(e):Nh(e))},Ph=async(e,t,{signal:r})=>{try{await e,r.aborted||Wh(t)}catch(e){r.aborted||Lh(t,e)}},Rh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:{signal:s}})=>{try{await(0,Oh.finished)(t,{signal:s,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(n){if(s.aborted||!r.has(t))return;Uh(n)?i.add(t):Gh(e,n)}},$h=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:i,controller:{signal:s}})=>{if(await(0,Ls.once)(e,i,{signal:s}),!e.readable)return(0,Ls.once)(s,"abort",{signal:s});t.delete(e),r.delete(e),n.delete(e)},Nh=e=>{e.writable&&e.end()},Lh=(e,t)=>{Uh(t)?Wh(e):Gh(e,t)},Uh=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Wh=e=>{(e.readable||e.writable)&&e.destroy()},Gh=(e,t)=>{e.destroyed||(e.once("error",Hh),e.destroy(t))},Hh=()=>{},zh=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},Vh=2,qh=1,Yh=(e,t)=>{e.pipe(t),Kh(e,t),Zh(e,t)},Kh=async(e,t)=>{if(!Li(e)&&!Li(t)){try{await(0,Oh.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Jh(t)}},Jh=e=>{e.writable&&e.end()},Zh=async(e,t)=>{if(!Li(e)&&!Li(t)){try{await(0,Oh.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}Qh(e)}},Qh=e=>{e.readable&&e.destroy()},Xh=(e,t,r,n)=>{"output"===r?Yh(e.stdio[n],t):Yh(t,e.stdio[n]);const i=ed[n];void 0!==i&&(e[i]=t),e.stdio[n]=t},ed=["stdin","stdout","stderr"],td=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:i,controller:s})=>{if(void 0===t)return;rd(t,s);const[o,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],u=i.get(o)??[];i.set(o,[...u,a])},rd=(e,{signal:t})=>{Li(e)&&po(e,nd,t)},nd=2,id=[];id.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&id.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&id.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const sd=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,od=Symbol.for("signal-exit emitter"),ad=globalThis,ud=Object.defineProperty.bind(Object);class ld{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(ad[od])return ad[od];ud(ad,od,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const i of this.listeners[e])n=!0===i(t,r)||n;return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class cd{}const hd=globalThis.process,{onExit:dd,load:fd,unload:pd}=(md=sd(hd)?new class extends cd{#j="win32"===hd.platform?"SIGINT":"SIGHUP";#B=new ld;#P;#R;#$;#N={};#L=!1;constructor(e){super(),this.#P=e,this.#N={};for(const t of id)this.#N[t]=()=>{const r=this.#P.listeners(t);let{count:n}=this.#B;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(n+=i.__signal_exit_emitter__.count),r.length===n){this.unload();const r=this.#B.emit("exit",null,t),n="SIGHUP"===t?this.#j:t;r||e.kill(e.pid,n)}};this.#$=e.reallyExit,this.#R=e.emit}onExit(e,t){if(!sd(this.#P))return()=>{};!1===this.#L&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#B.on(r,e),()=>{this.#B.removeListener(r,e),0===this.#B.listeners.exit.length&&0===this.#B.listeners.afterExit.length&&this.unload()}}load(){if(!this.#L){this.#L=!0,this.#B.count+=1;for(const e of id)try{const t=this.#N[e];t&&this.#P.on(e,t)}catch(e){}this.#P.emit=(e,...t)=>this.#U(e,...t),this.#P.reallyExit=e=>this.#W(e)}}unload(){this.#L&&(this.#L=!1,id.forEach((e=>{const t=this.#N[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#P.removeListener(e,t)}catch(e){}})),this.#P.emit=this.#R,this.#P.reallyExit=this.#$,this.#B.count-=1)}#W(e){return sd(this.#P)?(this.#P.exitCode=e||0,this.#B.emit("exit",this.#P.exitCode,null),this.#$.call(this.#P,this.#P.exitCode)):0}#U(e,...t){const r=this.#R;if("exit"===e&&sd(this.#P)){"number"==typeof t[0]&&(this.#P.exitCode=t[0]);const n=r.call(this.#P,e,...t);return this.#B.emit("exit",this.#P.exitCode,null),n}return r.call(this.#P,e,...t)}}(hd):new class extends cd{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>md.onExit(e,t),load:()=>md.load(),unload:()=>md.unload()});var md;const gd=(e,t,r)=>{try{const{destination:n,pipeOptions:{from:i,to:s,unpipeSignal:o}={}}=bd(e,t,...r);return{destination:n,destinationStream:ro(n,s),from:i,unpipeSignal:o}}catch(e){return{destinationError:e}}},bd=(e,t,r,...n)=>{if(Array.isArray(r)){return{destination:t(yd,e)(r,...n),pipeOptions:e}}if("string"==typeof r||r instanceof URL){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');const[i,s,o]=Pn(r,...n);return{destination:t(yd)(i,s,o),pipeOptions:o}}if(io.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},yd=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),Dd=(e,t)=>{try{return{sourceStream:no(e,t)}}catch(e){return{sourceError:e}}},wd=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(Qh(e),n):void 0!==t?(Jh(r),t):void 0,vd=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>ru({error:e,command:Ed,escapedCommand:Ed,fileDescriptors:t,options:r,startTime:n,isSync:!1}),Ed="source.pipe(destination)",Fd=async e=>{const[{status:t,reason:r,value:n=r},{status:i,reason:s,value:o=s}]=await e;if(o.pipedFrom.includes(n)||o.pipedFrom.push(n),"rejected"===i)throw o;if("rejected"===t)throw n;return o},Cd=(e,t)=>{const r=_h([e]);return Yh(r,t),Od.set(t,r),r},Sd=(e,t)=>{const r=Od.get(t);return r.add(e),r},xd=async e=>{try{await(0,Oh.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Od.delete(e)},Od=new WeakMap,_d=2,Ad=1,Td=(e,t)=>void 0===e?[]:[Md(e,t)],Md=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:i,startTime:s})=>{await(0,mn.aborted)(e,t),await r.remove(t);const o=new Error("Pipe canceled by `unpipeSignal` option.");throw vd({error:o,fileDescriptors:n,sourceOptions:i,startTime:s})},kd=(e,...t)=>{if(kn(t[0]))return kd.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:r,...n}=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...i)=>{const s=$i(),{destination:o,destinationStream:a,destinationError:u,from:l,unpipeSignal:c}=gd(r,n,i),{sourceStream:h,sourceError:d}=Dd(e,l),{options:f,fileDescriptors:p}=io.get(e);return{sourcePromise:t,sourceStream:h,sourceOptions:f,sourceError:d,destination:o,destinationStream:a,destinationError:u,unpipeSignal:c,fileDescriptors:p,startTime:s}})(e,...t),i=Id({...n,destination:r});return i.pipe=kd.bind(void 0,{...e,source:r,sourcePromise:i,boundOptions:{}}),i},Id=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:i,destinationStream:s,destinationError:o,unpipeSignal:a,fileDescriptors:u,startTime:l})=>{const c=jd(e,i);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:i,sourceOptions:s,startTime:o})=>{const a=wd({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw vd({error:a,fileDescriptors:i,sourceOptions:s,startTime:o})})({sourceStream:t,sourceError:n,destinationStream:s,destinationError:o,fileDescriptors:u,sourceOptions:r,startTime:l});const h=new AbortController;try{const e=((e,t,r)=>{const n=Od.has(t)?Sd(e,t):Cd(e,t);return po(e,_d,r.signal),po(t,Ad,r.signal),xd(t),n})(t,s,h);return await Promise.race([Fd(c),...Td(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:u,startTime:l})])}finally{h.abort()}},jd=(e,t)=>Promise.allSettled([e,t]),Bd=e=>e,Pd=()=>{},Rd=({contents:e})=>e,$d=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Nd=e=>e.length;const Ld={init:()=>({contents:[]}),convertChunk:{string:Bd,buffer:Bd,arrayBuffer:Bd,dataView:Bd,typedArray:Bd,others:Bd},getSize:()=>1,truncateChunk:Pd,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:Pd,finalize:Rd};const Ud=new TextEncoder,Wd=e=>new Uint8Array(e),Gd=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Hd=(e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(Vd(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},zd=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:Vd(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},Vd=e=>qd**Math.ceil(Math.log(e)/Math.log(qd)),qd=2,Yd=()=>"resize"in ArrayBuffer.prototype,Kd={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>Ud.encode(e),buffer:Wd,arrayBuffer:Wd,dataView:Gd,typedArray:Gd,others:$d},getSize:Nd,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const i=Yd()?zd(t,n):Hd(t,n);return new Uint8Array(i).set(e,r),i},getFinalChunk:Pd,finalize:({contents:e,length:t})=>Yd()?e:e.slice(0,t)};const Jd=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Zd={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:Bd,buffer:Jd,arrayBuffer:Jd,dataView:Jd,typedArray:Jd,others:$d},getSize:Nd,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:Rd},Qd=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:i,preserveNewlines:s})=>{const o=new AbortController;return Xd(t,o),rf({stream:e,controller:o,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:i,shouldSplit:!e.readableObjectMode,preserveNewlines:s})},Xd=async(e,t)=>{try{await e}catch{}finally{t.abort()}},ef=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:i,allMixed:s})=>{const o=new AbortController;tf(t,o,e);const a=e.readableObjectMode&&!s;return rf({stream:e,controller:o,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!i})},tf=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},rf=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})=>{const a=(0,Ls.on)(e,"data",{signal:t.signal,highWaterMark:sf,highWatermark:sf});return of({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})},nf=(0,ql.getDefaultHighWaterMark)(!0),sf=nf,of=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o}){const a=af({binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o});try{for await(const[t]of e)yield*Sc(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*xc(a)}},af=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:i})=>[fc(e,r,!t),Yl(e,i,!n,{})].filter(Boolean),uf=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:i,maxBuffer:s,lines:o,allMixed:a,stripFinalNewline:u,verboseInfo:l,streamInfo:{fileDescriptors:c}})=>{if(Pc({stdioItems:c[r]?.stdioItems,encoding:n,verboseInfo:l,fdNumber:r})){(async(e,t,r)=>{for await(const n of e)Nc(t)||Lc(n,r)})(ef({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:a}),e,l)}if(!i)return void await lf(e);const h=Vl(u,r),d=ef({stream:e,onStreamEnd:t,lines:o,encoding:n,stripFinalNewline:h,allMixed:a});return cf({stream:e,iterable:d,fdNumber:r,encoding:n,maxBuffer:s,lines:o})},lf=async e=>{await(0,us.setImmediate)(),null===e.readableFlowing&&e.resume()},cf=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:i,maxBuffer:s,lines:o})=>{try{return t||o?await async function(e,t){return $a(e,Ld,t)}(r,{maxBuffer:s}):"buffer"===i?new Uint8Array(await async function(e,t){return $a(e,Kd,t)}(r,{maxBuffer:s})):await async function(e,t){return $a(e,Zd,t)}(r,{maxBuffer:s})}catch(r){return df((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:i,fdNumber:s})=>{if(!(e instanceof Ha))throw e;if("all"===s)return e;const o=za(r,n,i);throw e.maxBufferInfo={fdNumber:s,unit:o},t.destroy(),e})({error:r,stream:e,readableObjectMode:t,lines:o,encoding:i,fdNumber:n}))}},hf=async e=>{try{return await e}catch(e){return df(e)}},df=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===$n.call(t)?new Uint8Array(e):e;var t},ff=async(e,t,r,{isSameDirection:n,stopOnExit:i=!1}={})=>{const s=pf(e,r),o=new AbortController;try{await Promise.race([...i?[r.exitPromise]:[],(0,Oh.finished)(e,{cleanup:!0,signal:o.signal})])}catch(e){s.stdinCleanedUp||bf(e,t,r,n)}finally{o.abort()}},pf=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&mf(e,r,n),n},mf=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...i)=>{gf(t,r),n.call(e,...i)}},gf=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},bf=(e,t,r,n)=>{if(!yf(e,t,r,n))throw e},yf=(e,t,r,n=!0)=>r.propagating?vf(e)||wf(e):(r.propagating=!0,Df(r,t)===n?vf(e):wf(e)),Df=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,wf=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,vf=e=>"EPIPE"===e?.code,Ef=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l})=>{if(!e)return;const c=ff(e,t,l);if(Df(l,t))return void await c;const[h]=await Promise.all([uf({stream:e,onStreamEnd:c,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l}),c]);return h},Ff=({stdout:e,stderr:t,all:r},[,n,i])=>{const s=n||i;return s?n?i?{stream:r,buffer:s}:{stream:e,buffer:s}:{stream:t,buffer:s}:{stream:r,buffer:s}},Cf=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,Sf=(e,{verboseId:t})=>{_i(Pi(e),t,"ipc")},xf=async(e,t)=>(await Promise.allSettled([e]),t),Of=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:i,timeoutDuration:s,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,stripFinalNewline:l,ipc:c,ipcInput:h},context:d,verboseInfo:f,fileDescriptors:p,originalStreams:m,onInternalError:g,controller:b})=>{const y=(async(e,t)=>{const[r,n]=await zc(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,d),D={originalStreams:m,fileDescriptors:p,subprocess:e,exitPromise:y,propagating:!1},w=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>e.stdio.map(((e,u)=>Ef({stream:e,fdNumber:u,encoding:t,buffer:r[u],maxBuffer:n[u],lines:i[u],allMixed:!1,stripFinalNewline:s,verboseInfo:o,streamInfo:a}))))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:f,streamInfo:D}),v=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>Ef({...Ff(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:i[1]||i[2],allMixed:Cf(e),stripFinalNewline:s,verboseInfo:o,streamInfo:a}))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:f,streamInfo:D}),E=[],F=(async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:i,verboseInfo:s})=>{if(!n)return i;const o=(({verbose:e})=>"full"===e.at(-1))(s),a=t.at(-1),u=r.at(-1);for await(const t of dh({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(Va(0,i,u),i.push(t)),o&&Sf(t,s);return i})({subprocess:e,buffer:r,maxBuffer:n,ipc:c,ipcOutput:E,verboseInfo:f}),C=_f(m,e,D),S=Af(p,D);try{return await Promise.race([Promise.all([{},qc(y),Promise.all(w),v,F,ia(e,h),...C,...S]),g,Tf(e,b),...ea(e,s,d,b),...Ws({subprocess:e,cancelSignal:o,gracefulCancel:a,context:d,controller:b}),...Zo({subprocess:e,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,context:d,controller:b})])}catch(e){return d.terminationReason??="other",Promise.all([{error:e},y,Promise.all(w.map((e=>hf(e)))),hf(v),xf(F,E),Promise.allSettled(C),Promise.allSettled(S)])}},_f=(e,t,r)=>e.map(((e,n)=>e===t.stdio[n]?void 0:ff(e,n,r))),Af=(e,t)=>e.flatMap((({stdioItems:e},r)=>e.filter((({value:e,stream:t=e})=>Ea(t,{checkOpen:!1})&&!Li(t))).map((({type:e,value:n,stream:i=n})=>ff(i,r,t,{isSameDirection:$u.has(e),stopOnExit:"native"===e}))))),Tf=async(e,{signal:t})=>{const[r]=await(0,Ls.once)(e,"error",{signal:t});throw r},Mf=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const i=n.get(t),s=to();i.push(s);return{resolve:s.resolve.bind(s),promises:i}},kf=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},If=async e=>{if(void 0!==e)try{await jf(e)}catch{}},jf=async e=>{await(0,Oh.finished)(e,{cleanup:!0,readable:!1,writable:!0})},Bf=async e=>{await(0,Oh.finished)(e,{cleanup:!0,readable:!0,writable:!1})},Pf=async(e,t)=>{if(await e,t)throw t},Rf=(e,t,r)=>{r&&!wf(r)?e.destroy(r):t&&e.destroy()},$f=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:i=!0,preserveNewlines:s=!0}={})=>{const o=i||oa.has(r),{subprocessStdout:a,waitReadableDestroy:u}=Nf(e,n,t),{readableEncoding:l,readableObjectMode:c,readableHighWaterMark:h}=Lf(a,o),{read:d,onStdoutDataDone:f}=Uf({subprocessStdout:a,subprocess:e,binary:o,encoding:r,preserveNewlines:s}),p=new ql.Readable({read:d,destroy:(0,mn.callbackify)(Hf.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:u})),highWaterMark:h,objectMode:c,encoding:l});return Gf({subprocessStdout:a,onStdoutDataDone:f,readable:p,subprocess:e}),p},Nf=(e,t,r)=>{const n=no(e,t);return{subprocessStdout:n,waitReadableDestroy:Mf(r,n,"readableDestroy")}},Lf=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:nf},Uf=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:i})=>{const s=to(),o=Qd({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:i});return{read(){Wf(this,o,s)},onStdoutDataDone:s}},Wf=async(e,t,r)=>{try{const{value:n,done:i}=await t.next();i?r.resolve():e.push(n)}catch{}},Gf=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:i})=>{try{await Bf(e),await n,await If(i),await t,r.readable&&r.push(null)}catch(e){await If(i),zf(r,e)}},Hf=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await kf(r,t)&&(zf(e,n),await Pf(t,n))},zf=(e,t)=>{Rf(e,e.readable,t)},Vf=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:i,waitWritableDestroy:s}=qf(e,r,t),o=new ql.Writable({...Yf(n,e,i),destroy:(0,mn.callbackify)(Qf.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:i,waitWritableDestroy:s})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return Zf(n,o),o},qf=(e,t,r)=>{const n=ro(e,t);return{subprocessStdin:n,waitWritableFinal:Mf(r,n,"writableFinal"),waitWritableDestroy:Mf(r,n,"writableDestroy")}},Yf=(e,t,r)=>({write:Kf.bind(void 0,e),final:(0,mn.callbackify)(Jf.bind(void 0,e,t,r))}),Kf=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},Jf=async(e,t,r)=>{await kf(r,t)&&(e.writable&&e.end(),await t)},Zf=async(e,t,r)=>{try{await jf(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await Bf(e)}catch{}})(r),Xf(t,e)}},Qf=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},i)=>{await kf(r,t),await kf(n,t)&&(Xf(e,i),await Pf(t,i))},Xf=(e,t)=>{Rf(e,e.writable,t)},ep=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:i,binary:s=!0,preserveNewlines:o=!0}={})=>{const a=s||oa.has(r),{subprocessStdout:u,waitReadableDestroy:l}=Nf(e,n,t),{subprocessStdin:c,waitWritableFinal:h,waitWritableDestroy:d}=qf(e,i,t),{readableEncoding:f,readableObjectMode:p,readableHighWaterMark:m}=Lf(u,a),{read:g,onStdoutDataDone:b}=Uf({subprocessStdout:u,subprocess:e,binary:a,encoding:r,preserveNewlines:o}),y=new ql.Duplex({read:g,...Yf(c,e,h),destroy:(0,mn.callbackify)(tp.bind(void 0,{subprocessStdout:u,subprocessStdin:c,subprocess:e,waitReadableDestroy:l,waitWritableFinal:h,waitWritableDestroy:d})),readableHighWaterMark:m,writableHighWaterMark:c.writableHighWaterMark,readableObjectMode:p,writableObjectMode:c.writableObjectMode,encoding:f});return Gf({subprocessStdout:u,onStdoutDataDone:b,readable:y,subprocess:e,subprocessStdin:c}),Zf(c,y,u),y},tp=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:i,waitWritableDestroy:s},o)=>{await Promise.all([Hf({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},o),Qf({subprocessStdin:t,subprocess:r,waitWritableFinal:i,waitWritableDestroy:s},o)])},rp=(e,t,{from:r,binary:n=!1,preserveNewlines:i=!1}={})=>{const s=n||oa.has(t),o=no(e,r),a=Qd({subprocessStdout:o,subprocess:e,binary:s,shouldEncode:!0,encoding:t,preserveNewlines:i});return np(a,o,e)},np=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},ip=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=$f.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=Vf.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=ep.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=rp.bind(void 0,e,t),e[Symbol.asyncIterator]=rp.bind(void 0,e,t,{})},sp=(async()=>{})().constructor.prototype,op=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(sp,e)])),ap=(e,t,r,n)=>{const{file:i,commandArguments:s,command:o,escapedCommand:a,startTime:u,verboseInfo:l,options:c,fileDescriptors:h}=up(e,t,r),{subprocess:d,promise:f}=cp({file:i,commandArguments:s,options:c,startTime:u,verboseInfo:l,command:o,escapedCommand:a,fileDescriptors:h});return d.pipe=kd.bind(void 0,{source:d,sourcePromise:f,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of op){const i=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}})(d,f),io.set(d,{options:c,fileDescriptors:h}),d},up=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=rs(e,t,r);try{const{file:a,commandArguments:u,options:l}=da(e,t,r),c=lp(l),h=((e,t)=>Ol(xh,e,0,!1))(c);return{file:a,commandArguments:u,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}}catch(e){throw cu(e,s,o),e}},lp=({timeout:e,signal:t,...r})=>{if(void 0!==t)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...r,timeoutDuration:e}},cp=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:i,command:s,escapedCommand:o,fileDescriptors:a})=>{let u;try{u=(0,Zr.spawn)(e,t,r)}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,verboseInfo:o})=>{Nl(n);const a=new Zr.ChildProcess;yh(a,n),Object.assign(a,{readable:wh,writable:vh,duplex:Eh});const u=ru({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:!1});return{subprocess:a,promise:Fh(u,o,i)}})({error:e,command:s,escapedCommand:o,fileDescriptors:a,options:r,startTime:n,verboseInfo:i})}const l=new AbortController;(0,Ls.setMaxListeners)(Number.POSITIVE_INFINITY,l.signal);const c=[...u.stdio];((e,t,r)=>{const n=new Map;for(const[i,{stdioItems:s,direction:o}]of Object.entries(t)){for(const{stream:t}of s.filter((({type:e})=>$u.has(e))))Xh(e,t,o,i);for(const{stream:t}of s.filter((({type:e})=>!$u.has(e))))td({subprocess:e,stream:t,direction:o,fdNumber:i,pipeGroups:n,controller:r})}for(const[e,t]of n.entries()){const r=1===t.length?t[0]:_h(t);Yh(r,e)}})(u,a,l),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const i=dd((()=>{e.kill()}));(0,Ls.addAbortListener)(n,(()=>{i()}))})(u,r,l);const h={},d=to();u.kill=Bs.bind(void 0,{kill:u.kill.bind(u),options:r,onInternalError:d,context:h,controller:l}),u.all=(({stdout:e,stderr:t},{all:r})=>r&&(e||t)?_h([e,t].filter(Boolean)):void 0)(u,r),ip(u,r),((e,{ipc:t})=>{Object.assign(e,bh(e,!1,t))})(u,r);return{subprocess:u,promise:hp({subprocess:u,options:r,startTime:n,verboseInfo:i,fileDescriptors:a,originalStreams:c,command:s,escapedCommand:o,context:h,onInternalError:d,controller:l})}},hp=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:i,originalStreams:s,command:o,escapedCommand:a,context:u,onInternalError:l,controller:c})=>{const[h,[d,f],p,m,g]=await Of({subprocess:e,options:t,context:u,verboseInfo:n,fileDescriptors:i,originalStreams:s,onInternalError:l,controller:c});c.abort(),l.resolve();const b=p.map(((e,r)=>zl(e,t,r))),y=zl(m,t,"all"),D=dp({errorInfo:h,exitCode:d,signal:f,stdio:b,all:y,ipcOutput:g,context:u,options:t,command:o,escapedCommand:a,startTime:r});return pu(D,n,t)},dp=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,context:o,options:a,command:u,escapedCommand:l,startTime:c})=>"error"in e?nu({error:e.error,command:u,escapedCommand:l,timedOut:"timeout"===o.terminationReason,isCanceled:"cancel"===o.terminationReason||"gracefulCancel"===o.terminationReason,isGracefullyCanceled:"gracefulCancel"===o.terminationReason,isMaxBuffer:e.error instanceof Ha,isForcefullyTerminated:o.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,options:a,startTime:c,isSync:!1}):tu({command:u,escapedCommand:l,stdio:n,all:i,ipcOutput:s,options:a,startTime:c}),fp=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map((([t,r])=>[t,pp(t,e[t],r)])));return{...e,...r}},pp=(e,t,r)=>mp.has(e)&&kn(t)&&kn(r)?{...t,...r}:r,mp=new Set(["env",...ts]),gp=(e,t,r,n)=>{const i=(e,t,n)=>gp(e,t,r,n),s=(...s)=>bp({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:i},...s);return void 0!==n&&n(s,i,t),s},bp=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:i},s,...o)=>{if(kn(s))return i(e,fp(r,s),n);const{file:a,commandArguments:u,options:l,isSync:c}=yp({mapArguments:e,firstArgument:s,nextArguments:o,deepOptions:t,boundOptions:r});return c?((e,t,r)=>{const{file:n,commandArguments:i,command:s,escapedCommand:o,startTime:a,verboseInfo:u,options:l,fileDescriptors:c}=Qc(e,t,r),h=rh({file:n,commandArguments:i,options:l,command:s,escapedCommand:o,verboseInfo:u,fileDescriptors:c,startTime:a});return pu(h,u,l)})(a,u,l):ap(a,u,l,i)},yp=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:i})=>{const s=(o=t,Array.isArray(o)&&Array.isArray(o.raw)?((e,t)=>{let r=[];for(const[n,i]of e.entries())r=Jn({templates:e,expressions:t,tokens:r,index:n,template:i});if(0===r.length)throw new TypeError("Template script must not be empty");const[n,...i]=r;return[n,i,{}]})(t,r):[t,...r]);var o;const[a,u,l]=Pn(...s),c=fp(fp(n,i),l),{file:h=a,commandArguments:d=u,options:f=c,isSync:p=!1}=e({file:a,commandArguments:u,options:c});return{file:h,commandArguments:d,options:f,isSync:p}},Dp=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);const[r,...n]=wp(e);return{file:r,commandArguments:n}},wp=e=>{if("string"!=typeof e)throw new TypeError(`The command must be a string: ${String(e)}.`);const t=e.trim();if(""===t)return[];const r=[];for(const e of t.split(vp)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},vp=/ +/g,Ep=({options:e})=>({...Fp(e),isSync:!0}),Fp=e=>({options:{...Cp(e),...e}}),Cp=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},Sp=gp((()=>({}))),{sendMessage:xp,getOneMessage:Op,getEachMessage:_p,getCancelSignal:Ap}=(gp((()=>({isSync:!0}))),gp((({file:e,commandArguments:t})=>Dp(e,t))),gp((({file:e,commandArguments:t})=>({...Dp(e,t),isSync:!0}))),gp((({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}})),gp((({options:e})=>Fp(e)),{},{preferLocal:!0},((e,t,r)=>{e.sync=t(Ep,r),e.s=e.sync})),(()=>{const e=Jt,t=!0,r=void 0!==Jt.channel;return{...bh(e,t,r),getCancelSignal:Ho.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}})());var Tp=n(5600);function Mp({vue:e,react:t}){const r=t&&e||!t&&!e?"base":t?"react":"vue";return{eslintConfig:{extends:`@nice-move/eslint-config-${r}`},devDependencies:{[`@nice-move/eslint-config-${r}`]:_n["eslint-config-base"],eslint:_n.eslint}}}const kp="Add/Reset project dependencies";function Ip(){const{dependencies:e={},devDependencies:t={}}=on();return{instructions:!1,optionsPerPage:20,message:kp,name:"Dependencies",type:e=>!1===e?null:"multiselect",choices:["tailwindcss","react","vue","typescript","commitlint","eslint","stylelint","prettier","syncpack","garou","ava","playwright","@bring-it/sftp","@bring-it/npm","best-shot"].map((r=>({title:r,value:r,selected:r in e||r in t}))),format:e=>{if(e.length>0)return t=>function(e,t={}){return(new Gt.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:u="garou"in n,prettier:l="prettier"in n,react:c="react"in i,stylelint:h="stylelint"in n,syncpack:d="syncpack"in n,typescript:f="typescript"in n,vue:p="vue"in i,tailwindcss:m="tailwindcss"in i||"tailwindcss"in n,playwright:g,"@bring-it/sftp":b="@bring-it/sftp"in n,"@bring-it/npm":y="@bring-it/npm"in n,"best-shot":D="best-shot"in n}=t,w=a||h||l||u,v=[w?"npm run lint:staged":void 0,f?"npm run lint:type":void 0,s?"npm test":void 0].filter(Boolean);return v.length>0&&await(new Gt.Text).onDone((()=>["#!/bin/sh","",...v,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new Gt.Text).onDone((()=>["#!/bin/sh","","npx --no-install nice-move lint commit",""].join("\n"))).output(".githooks/commit-msg"),d&&await(new Gt.Text).onDone((()=>["// @ts-check","","import defineConfig from '@nice-move/syncpack-config';","","export default defineConfig(import.meta.url, {});"].join("\n"))).output("syncpack.config.mjs"),f&&await(new Gt.Json).config({pretty:!0}).onDone((()=>({extends:"@nice-move/tsconfig/base.json",include:["./"]}))).output("tsconfig.json"),fn.all([r,e&&(w||s||o||g||f)?{scripts:{prepare:"nice-move git hooks"}}:void 0,u?{devDependencies:{garou:_n.garou},"nice-move":{"import-groups":["nice-move-preset"]}}:void 0,f?{devDependencies:{typescript:_n.typescript,"@nice-move/tsconfig":_n.tsconfig},scripts:{"lint:type":"tsc --noEmit"}}:void 0,w||o?{devDependencies:{"@nice-move/cli":_n.cli}}:void 0,w?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,s?{devDependencies:{ava:_n.ava,...a?{"eslint-plugin-ava":_n["eslint-plugin-ava"]}:void 0},scripts:{prepublishOnly:r.private?void 0:v.join(" && ")||void 0,test:"ava --fail-fast",snapshot:"ava --fail-fast -u"}}:void 0,a?Mp({react:c,vue:p}):void 0,h?{devDependencies:{"@nice-move/stylelint-config":_n["stylelint-config"],stylelint:_n.stylelint},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,d?{devDependencies:{"@nice-move/syncpack-config":_n["syncpack-config"],syncpack:_n.syncpack},scripts:{"lint:version":"syncpack lint","version:pin":"syncpack fix-mismatches"}}:void 0,l?{devDependencies:{"@nice-move/prettier-config":_n["prettier-config"],prettier:_n.prettier},prettier:"@nice-move/prettier-config"}:void 0,c?{dependencies:{react:_n.react,"react-dom":_n["react-dom"]},peerDependencies:{"@types/react":_n["@types/react"]}}:void 0,p?{dependencies:{vue:_n.vue}}:void 0,m?{dependencies:{tailwindcss:_n.tailwindcss},devDependencies:{"prettier-plugin-tailwindcss":l?_n["prettier-plugin-tailwindcss"]:void 0}}:void 0,g?{scripts:{"pretest:e2e":"npm link @playwright/test","test:e2e":"playwright test"}}:void 0,b?{devDependencies:{"@bring-it/sftp":_n["@bring-it/sftp"]}}:void 0,y?{devDependencies:{"@bring-it/npm":_n["@bring-it/npm"]}}:void 0,D?{devDependencies:{"best-shot":_n["best-shot"]},"nice-move":{globals:{BEST_SHOT:"readonly"}},scripts:{build:"best-shot prod"}}:void 0].filter(Boolean))})).output().logger(kp).catch(console.warn)}(t,Object.fromEntries(e.map((e=>[e,!0]))))}}}const jp="Initialize as git repository";function Bp(){return Sp("git",["init"]).then((e=>(console.log(Sr("\u221a"),jp),e)),(e=>{throw console.log(Cr("\xd7"),jp),e}))}function Pp({gitSupported:e,isRoot:t}){return{message:jp,name:"GitInit",initial:!0,type:r=>!1===r||!e||t?null:"confirm",format(e){if(!0===e)return Bp}}}var Rp=n(1416);var $p=n(6756);const Np=/(?<=^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 Lp({cwd:e,pkg:{author:t,description:r,license:n,name:i,private:s,version:o,workspaces:a}={}}){return[{format:nn,initial:(0,Xr.parse)(e).base,message:"package.json \xbb name",name:"name",type:e=>!1===e||i?null:"text",validate:e=>$p(nn(e)||"").validForNewPackages},{format:nn,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:e=>!1===e||o?null:"text",validate:e=>Np.test(nn(e)||"")},{format:nn,message:"package.json \xbb description",name:"description",type:e=>!1===e||r?null:"text"},{active:"MIT",format:e=>e?"MIT":"UNLICENSED",inactive:"UNLICENSED",initial:!0,message:"package.json \xbb license",name:"license",type:e=>!1===e||n?null:"toggle"},{type:e=>!1===e||("string"==typeof t?t:t&&t.name)?null:"text",format:Rp,initial:await sn(t),message:"package.json \xbb author",name:"author"},{active:"true",inactive:"false",initial:!1,message:"package.json \xbb private",name:"private",format:e=>!1===e?void 0:e,type:e=>!1===e||void 0!==s?null:"toggle"},{active:"recommend",inactive:"false",initial:!1,message:"package.json \xbb workspaces",name:"workspaces",format:e=>e?["packages/*","tools/*"]:void 0,type:(e,t)=>{return!1===e||!1===s||!1===t.private||(r=a&&a.packages?a.packages:a,Array.isArray(r)&&r.length>0)?null:"toggle";var r}}]}async function Up(){const e=await Sp("git",["--version"]).then((({stdout:e})=>Boolean(e))),t=e&&await Sp("git",["rev-parse","--git-dir"]).then((({stdout:e})=>".git"===e)).catch((()=>!1)),r=!!t&&await Sp("git",["status","--short"]).then((({stdout:e})=>e.length>0)),n=0===(0,Qr.readdirSync)(process.cwd()).filter((e=>".git"!==e)).length,i=on(),s=process.cwd(),o={gitSupported:e,isRoot:t,isDirty:r,isEmpty:n,pkg:i,cwd:s},a=await Lp(o);return Tp([{active:"do it",inactive:"cancel",message:!0===r?"Repository not clean":"Workspace not empty",name:"okay",type:()=>n||!1===r?null:"toggle"},Pp(o),...a,Ip()],{onCancel(){throw new Error("cancel")}}).then((({okay:e,...t})=>{if(!1===e)throw new Error("cancel");return Object.entries(t)})).then((e=>{const t=a.map((({name:e})=>e)),r=Object.fromEntries(e.filter((([e])=>t.includes(e))));return{...Object.fromEntries(e.filter((([e])=>!t.includes(e)))),info:r,options:o}}))}process.on("SIGINT",(()=>{})),new class{constructor(e,t){this.root=t;const{bin:r,homepage:n,name:s="cheetor",repository:{url:o=""}={},version:a}="string"==typeof e?JSON.parse((0,i.readFileSync)(new URL(e,t))):e;this.homepage=n,this.repository=o.includes("github.com")?o.replace(/\.git$/,""):"";const u=Lt(process.argv.slice(2)).strict().alias("help","h").alias("version","v").hide("help").version(a).hide("version").detectLocale(!1),l=function(e,t){if("string"==typeof e||!e)return t;const r=Object.keys(e);return 1===r.length&&r[0]}(r,s);l&&u.scriptName(l),this.cli=Promise.resolve(u)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then((t=>t.command(...e))),this}commandFrom(e){return this.cli=this.cli.then((async t=>{const r=await Ut(e,this.root);return t.command(r)})),this}commandSafe(e){return this.cli=this.cli.then((t=>function(e,t){return Ut(e,t).catch((e=>{if("ERR_MODULE_NOT_FOUND"===e.code&&e.message.endsWith(` imported from ${(0,g.fileURLToPath)(import.meta.url)}`))return!1;throw e}))}(e,this.root).then((e=>e&&e.command?t.command(e):t)))),this}commandSmart(e){return this.cli=this.cli.then((async t=>{const r=e();return r&&r.command?t.command(r):t})),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then((t=>t.middleware(...e))),this}setup(e){return this.cli.then((e=>Wt(e,this))).then((t=>"function"==typeof e?e(t.parse()):t.parse()))}}("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").setup((()=>{(async function(){const{Dependencies:e,GitInit:t,Install:r,info:n,options:{isRoot:i}={}}=await Up();console.log("-".repeat(32));const s=[t,()=>Tn(n),Mn,dn,Or,()=>t||i?ln():void 0,()=>e?e(t||i):void 0,r].filter((e=>"function"==typeof e));for(const e of s){const t=await e();t&&t.catch&&t.catch((e=>{console.warn(e.message)}))}})().catch((e=>{if("cancel"!==e.message)throw e}))}));
|