gh-action-bump-version/dist/main.js

1 line
76 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e={6434:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(2085),o=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`},s=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`},i=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};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],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const o=n[r];t[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=t[r],e.set(o[0],o[1])}Object.defineProperty(t,r,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const r=e=>e,a=(e,t,r)=>[e,t,r];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:o(r,0)},t.color.ansi256={ansi256:s(r,0)},t.color.ansi16m={rgb:i(a,0)},t.bgColor.ansi={ansi:o(r,10)},t.bgColor.ansi256={ansi256:s(r,10)},t.bgColor.ansi16m={rgb:i(a,10)};for(let e of Object.keys(n)){if("object"!=typeof n[e])continue;const r=n[e];"ansi16"===e&&(e="ansi"),"ansi16"in r&&(t.color.ansi[e]=o(r.ansi16,0),t.bgColor.ansi[e]=o(r.ansi16,10)),"ansi256"in r&&(t.color.ansi256[e]=s(r.ansi256,0),t.bgColor.ansi256[e]=s(r.ansi256,10)),"rgb"in r&&(t.color.ansi16m[e]=i(r.rgb,0),t.bgColor.ansi16m[e]=i(r.rgb,10))}return t}})},2589:(e,t,r)=>{"use strict";const n=r(3150),o=r(6434),s=r(8470).stdout,i=r(6864),a="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],l=new Set(["gray"]),u=Object.create(null);function p(e,t){t=t||{};const r=s?s.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const t={};return p(t,e),t.template=function(){const e=[].slice.call(arguments);return g.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}p(this,e)}a&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(n(o[e].close),"g"),u[e]={get(){const t=o[e];return h.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};u.visible={get(){return h.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const e of Object.keys(o.color.ansi))l.has(e)||(u[e]={get(){const t=this.level;return function(){const r=o.color[c[t]][e].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const e of Object.keys(o.bgColor.ansi)){if(l.has(e))continue;u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=o.bgColor[c[t]][e].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const f=Object.defineProperties((()=>{}),u);function h(e,t,r){const n=function(){return m.apply(n,arguments)};n._styles=e,n._empty=t;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=f,n}function m(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;a&&this.hasGrey&&(o.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return o.dim.open=n,r}function g(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[t.raw[0]];for(let e=1;e<t.length;e++)n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[e]));return i(e,n.join(""))}Object.defineProperties(d.prototype,u),e.exports=d(),e.exports.supportsColor=s,e.exports.default=e.exports},8470:(e,t,r)=>{"use strict";const n=r(2087),o=r(6560),s=process.env;let i;function a(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===i)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==i)return 0;const t=i?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))}o("no-color")||o("no-colors")||o("color=false")?i=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(i=!0),"FORCE_COLOR"in s&&(i=0===s.FORCE_COLOR.length||0!==parseInt(s.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},6864:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function i(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(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)if(isNaN(t)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(a[2].replace(o,((e,t,r)=>t?i(t):r)))}else r.push(Number(t));return r}function c(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 of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}e.exports=(e,r)=>{const n=[],o=[];let s=[];if(r.replace(t,((t,r,a,u,p,d)=>{if(r)s.push(i(r));else if(u){const t=s.join("");s=[],o.push(0===n.length?t:l(e,n)(t)),n.push({inverse:a,styles:c(u)})}else if(p){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(e,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),o.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 o.join("")}},8168:(e,t,r)=>{var n=r(8874),o={};for(var s in n)n.hasOwnProperty(s)&&(o[n[s]]=s);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in i)if(i.hasOwnProperty(a)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);var c=i[a].channels,l=i[a].labels;delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:c}),Object.defineProperty(i[a],"labels",{value:l})}i.rgb.hsl=function(e){var t,r,n=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(n,o,s),a=Math.max(n,o,s),c=a-i;return a===i?t=0:n===a?t=(o-s)/c:o===a?t=2+(s-n)/c:s===a&&(t=4+(n-o)/c),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+a)/2,[t,100*(a===i?0:r<=.5?c/(a+i):c/(2-a-i)),100*r]},i.rgb.hsv=function(e){var t,r,n,o,s,i=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(i,a,c),u=l-Math.min(i,a,c),p=function(e){return(l-e)/6/u+.5};return 0===u?o=s=0:(s=u/l,t=p(i),r=p(a),n=p(c),i===l?o=n-r:a===l?o=1/3+t-n:c===l&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*l]},i.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[i.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},i.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-o)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var t=o[e];if(t)return t;var r,s,i,a=1/0;for(var c in n)if(n.hasOwnProperty(c)){var l=n[c],u=(s=e,i=l,Math.pow(s[0]-i[0],2)+Math.pow(s[1]-i[1],2)+Math.pow(s[2]-i[2],2));u<a&&(a=u,r=c)}return r},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),r=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},i.hsl.rgb=function(e){var t,r,n,o,s,i=e[0]/360,a=e[1]/100,c=e[2]/100;if(0===a)return[s=255*c,s,s];t=2*c-(r=c<.5?c*(1+a):c+a-c*a),o=[0,0,0];for(var l=0;l<3;l++)(n=i+1/3*-(l-1))<0&&n++,n>1&&n--,s=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,o[l]=255*s;return o},i.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,s=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=s<=1?s:2-s,[t,100*(0===n?2*o/(s+o):2*r/(n+r)),100*((n+r)/2)]},i.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,c,i];case 1:return[a,n,i];case 2:return[i,n,c];case 3:return[i,a,n];case 4:return[c,i,n];case 5:return[n,i,a]}},i.hsv.hsl=function(e){var t,r,n,o=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return n=(2-s)*i,r=s*a,[o,100*(r=(r/=(t=(2-s)*a)<=1?t:2-t)||0),100*(n/=2)]},i.hwb.rgb=function(e){var t,r,n,o,s,i,a,c=e[0]/360,l=e[1]/100,u=e[2]/100,p=l+u;switch(p>1&&(l/=p,u/=p),n=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(n=1-n),o=l+n*((r=1-u)-l),t){default:case 6:case 0:s=r,i=o,a=l;break;case 1:s=o,i=r,a=l;break;case 2:s=l,i=r,a=o;break;case 3:s=l,i=o,a=r;break;case 4:s=o,i=l,a=r;break;case 5:s=r,i=l,a=o}return[255*s,255*i,255*a]},i.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},i.xyz.rgb=function(e){var t,r,n,o=e[0]/100,s=e[1]/100,i=e[2]/100;return r=-.9689*o+1.8758*s+.0415*i,n=.0557*o+-.204*s+1.057*i,t=(t=3.2406*o+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},i.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},i.lab.xyz=function(e){var t,r,n,o=e[0];t=e[1]/500+(r=(o+16)/116),n=r-e[2]/200;var s=Math.pow(r,3),i=Math.pow(t,3),a=Math.pow(n,3);return r=s>.008856?s:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},i.lab.lch=function(e){var t,r=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+o*o),t]},i.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},i.rgb.hex=function(e){var 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},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255,s=Math.max(Math.max(r,n),o),i=Math.min(Math.min(r,n),o),a=s-i;return t=a<=0?0:s===r?(n-o)/a%6:s===n?2+(o-r)/a:4+(r-n)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},i.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,o=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},i.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var o,s=[0,0,0],i=t%1*6,a=i%1,c=1-a;switch(Math.floor(i)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=c,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=c,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=c}return o=(1-r)*n,[255*(r*s[0]+o),255*(r*s[1]+o),255*(r*s[2]+o)]},i.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,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]},i.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},2085:(e,t,r)=>{var n=r(8168),o=r(4111),s={};Object.keys(n).forEach((function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:n[e].channels}),Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=o(e);Object.keys(t).forEach((function(r){var n=t[r];s[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),s[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=s},4111:(e,t,r)=>{var n=r(8168);function o(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var o=r.pop(),s=Object.keys(n[o]),i=s.length,a=0;a<i;a++){var c=s[a],l=t[c];-1===l.distance&&(l.distance=t[o].distance+1,l.parent=o,r.unshift(c))}return t}function s(e,t){return function(r){return t(e(r))}}function i(e,t){for(var r=[t[e].parent,e],o=n[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),o=s(n[t[i].parent][i],o),i=t[i].parent;return o.conversion=r,o}e.exports=function(e){for(var t=o(e),r={},n=Object.keys(t),s=n.length,a=0;a<s;a++){var c=n[a];null!==t[c].parent&&(r[c]=i(c,t))}return r}},8874:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5864:(e,t,r)=>{"use strict";var n=r(1669),o=r(5171),s=function(e,t){e&&e.constructor===String||(t=e||{},e=Error.name);var r=function n(s){if(!this)return new n(s);s=s instanceof Error?s.message:s||this.message,Error.call(this,s),Error.captureStackTrace(this,r),this.name=e,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var e=s.split(/\r?\n/g);for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];"message"in n&&(e=n.message(this[r],e)||e,o(e)||(e=[e]))}return e.join("\n")},set:function(e){s=e}});var i=null,a=Object.getOwnPropertyDescriptor(this,"stack"),c=a.get,l=a.value;delete a.value,delete a.writable,a.set=function(e){i=e},a.get=function(){var e=(i||(c?c.call(this):l)).split(/\r?\n+/g);i||(e[0]=this.name+": "+this.message);var r=1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];if("line"in o){var s=o.line(this[n]);s&&e.splice(r++,0," "+s)}"stack"in o&&o.stack(this[n],e)}return e.join("\n")},Object.defineProperty(this,"stack",a)};return Object.setPrototypeOf?(Object.setPrototypeOf(r.prototype,Error.prototype),Object.setPrototypeOf(r,Error)):n.inherits(r,Error),r};s.append=function(e,t){return{message:function(r,n){return(r=r||t)&&(n[0]+=" "+e.replace("%s",r.toString())),n}}},s.line=function(e,t){return{line:function(r){return(r=r||t)?e.replace("%s",r.toString()):null}}},e.exports=s},3150:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},8468:(e,t,r)=>{"use strict";const n=r(5622),o=r(3129),s=r(7350),i=r(8150),a=r(6147),c=r(35),l=r(4353),u=r(3111),{spawnedKill:p,spawnedCancel:d,setupTimeout:f,validateTimeout:h,setExitHandler:m}=r(3820),{handleInput:g,getSpawnedResult:b,makeAllStream:y,validateInputSync:v}=r(4994),{mergePromise:w,getSpawnedPromise:x}=r(1708),{joinCommand:_,parseCommand:S,getEscapedCommand:E}=r(4077),O=(e,t,r={})=>{const o=s._parse(e,t,r);return e=o.command,t=o.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=o.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{const s=t?{...process.env,...e}:e;return r?a.env({env:s,cwd:n,execPath:o}):s})(r),r.stdio=u(r),"win32"===process.platform&&"cmd"===n.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:o}},T=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?i(t):t:void 0===r?void 0:"",I=(e,t,r)=>{const n=O(e,t,r),s=_(e,t),i=E(e,t);let a;h(n.options);try{a=o.spawn(n.file,n.args,n.options)}catch(e){const t=new o.ChildProcess,r=Promise.reject(l({error:e,stdout:"",stderr:"",all:"",command:s,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return w(t,r)}const u=x(a),v=f(a,n.options,u),S=m(a,n.options,v),I={isCanceled:!1};a.kill=p.bind(null,a.kill.bind(a)),a.cancel=d.bind(null,a,I);const k=c((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:o},c,u,p]=await b(a,n.options,S),d=T(n.options,c),f=T(n.options,u),h=T(n.options,p);if(e||0!==t||null!==r){const c=l({error:e,exitCode:t,signal:r,stdout:d,stderr:f,all:h,command:s,escapedCommand:i,parsed:n,timedOut:o,isCanceled:I.isCanceled,killed:a.killed});if(!n.options.reject)return c;throw c}return{command:s,escapedCommand:i,exitCode:0,stdout:d,stderr:f,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return g(a,n.options.input),a.all=y(a,n.options),w(a,k)};e.exports=I,e.exports.sync=(e,t,r)=>{const n=O(e,t,r),s=_(e,t),i=E(e,t);let a;v(n.options);try{a=o.spawnSync(n.file,n.args,n.options)}catch(e){throw l({error:e,stdout:"",stderr:"",all:"",command:s,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const c=T(n.options,a.stdout,a.error),u=T(n.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=l({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:s,escapedCommand:i,parsed:n,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!n.options.reject)return e;throw e}return{command:s,escapedCommand:i,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(e,t)=>{const[r,...n]=S(e);return I(r,n,t)},e.exports.commandSync=(e,t)=>{const[r,...n]=S(e);return I.sync(r,n,t)},e.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=u.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=o}=r;return I(s,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}},4077:e=>{"use strict";const t=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],r=/^[\w.-]+$/,n=/"/g,o=/ +/g;e.exports={joinCommand:(e,r)=>t(e,r).join(" "),getEscapedCommand:(e,o)=>t(e,o).map((e=>(e=>"string"!=typeof e||r.test(e)?e:`"${e.replace(n,'\\"')}"`)(e))).join(" "),parseCommand:e=>{const t=[];for(const r of e.trim().split(o)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}},4353:(e,t,r)=>{"use strict";const{signalsByName:n}=r(5518);e.exports=({stdout:e,stderr:t,all:r,error:o,signal:s,exitCode:i,command:a,escapedCommand:c,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d}}})=>{i=null===i?void 0:i;const f=void 0===(s=null===s?void 0:s)?void 0:n[s].description,h=`Command ${(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${o})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:l,timeout:d,errorCode:o&&o.code,signal:s,signalDescription:f,exitCode:i,isCanceled:u})}: ${a}`,m="[object Error]"===Object.prototype.toString.call(o),g=m?`${h}\n${o.message}`:h,b=[g,t,e].filter(Boolean).join("\n");return m?(o.originalMessage=o.message,o.message=b):o=new Error(b),o.shortMessage=g,o.command=a,o.escapedCommand=c,o.exitCode=i,o.signal=s,o.signalDescription=f,o.stdout=e,o.stderr=t,void 0!==r&&(o.all=r),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=Boolean(l),o.isCanceled=u,o.killed=p&&!l,o}},3820:(e,t,r)=>{"use strict";const n=r(2087),o=r(6741),s=(e,t,r,n)=>{if(!i(t,r,n))return;const o=c(r),s=setTimeout((()=>{e("SIGKILL")}),o);s.unref&&s.unref()},i=(e,{forceKillAfterTimeout:t},r)=>a(e)&&!1!==t&&r,a=e=>e===n.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),c=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};e.exports={spawnedKill:(e,t="SIGTERM",r={})=>{const n=e(t);return s(e,t,r,n),n},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(0===t||void 0===t)return n;let o;const s=new Promise(((n,s)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=n.finally((()=>{clearTimeout(o)}));return Promise.race([s,i])},validateTimeout:({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})`)},setExitHandler:async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;const s=o((()=>{e.kill()}));return n.finally((()=>{s()}))}}},1708:e=>{"use strict";const t=(async()=>{})().constructor.prototype,r=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(t,e)]));e.exports={mergePromise:(e,t)=>{for(const[n,o]of r){const r="function"==typeof t?(...e)=>Reflect.apply(o.value,t(),e):o.value.bind(t);Reflect.defineProperty(e,n,{...o,value:r})}return e},getSpawnedPromise:e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}},3111:e=>{"use strict";const t=["stdin","stdout","stderr"],r=e=>{if(!e)return;const{stdio:r}=e;if(void 0===r)return t.map((t=>e[t]));if((e=>t.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof r)return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);const n=Math.max(r.length,t.length);return Array.from({length:n},((e,t)=>r[t]))};e.exports=r,e.exports.node=e=>{const t=r(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}},4994:(e,t,r)=>{"use strict";const n=r(4970),o=r(31),s=r(4034),i=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},a=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?o(e,{encoding:t,maxBuffer:n}):o.buffer(e,{maxBuffer:n})};e.exports={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(n(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const r=s();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},getSpawnedResult:async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:s},c)=>{const l=a(e,{encoding:n,buffer:o,maxBuffer:s}),u=a(t,{encoding:n,buffer:o,maxBuffer:s}),p=a(r,{encoding:n,buffer:o,maxBuffer:2*s});try{return await Promise.all([c,l,u,p])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},i(e,l),i(t,u),i(r,p)])}},validateInputSync:({input:e})=>{if(n(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}},7350:(e,t,r)=>{"use strict";const n=r(3129),o=r(6855),s=r(6785);function i(e,t,r){const i=o(e,t,r),a=n.spawn(i.command,i.args,i.options);return s.hookChildProcess(a,i),a}e.exports=i,e.exports.spawn=i,e.exports.sync=function(e,t,r){const i=o(e,t,r),a=n.spawnSync(i.command,i.args,i.options);return a.error=a.error||s.verifyENOENTSync(a.status,i),a},e.exports._parse=o,e.exports._enoent=s},6785:e=>{"use strict";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 o=e.emit;e.emit=function(t,s){if("exit"===t){const t=n(s,r);if(t)return o.call(e,"error",t)}return o.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},6855:(e,t,r)=>{"use strict";const n=r(5622),o=r(2487),s=r(2052),i=r(4204),a="win32"===process.platform,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){if(!a)return e;const t=function(e){e.file=o(e);const t=e.file&&i(e.file);return t?(e.args.unshift(e.file),e.command=t,o(e)):e.file}(e),r=!c.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 o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],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:u(n)}},2052:e=>{"use strict";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}},4204:(e,t,r)=>{"use strict";const n=r(5747),o=r(4650);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 o(t.toString())}},2487:(e,t,r)=>{"use strict";const n=r(5622),o=r(8326),s=r(7834);function i(e,t){const r=e.options.env||process.env,i=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=o.sync(e.command,{path:r[s({env:r})],pathExt:t?n.delimiter:void 0})}catch(e){}finally{c&&process.chdir(i)}return l&&(l=n.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return i(e)||i(e,!0)}},635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;t.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]},5518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var n=r(2087),o=r(2121),s=r(6627);const i=function(e,{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a}}},a=(0,o.getSignals)().reduce(i,{});t.signalsByName=a;const c=function(e,t){const r=l(e,t);if(void 0===r)return{};const{name:n,description:o,supported:s,action:i,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:s,action:i,forced:a,standard:c}}},l=function(e,t){const r=t.find((({name:t})=>n.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},u=function(){const e=(0,o.getSignals)(),t=s.SIGRTMAX+1,r=Array.from({length:t},((t,r)=>c(r,e)));return Object.assign({},...r)}();t.signalsByNumber=u},6627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;t.getRealtimeSignals=function(){const e=o-n+1;return Array.from({length:e},r)};const r=function(e,t){return{name:`SIGRT${t+1}`,number:n+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,o=64;t.SIGRTMAX=o},2121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var n=r(2087),o=r(635),s=r(6627);t.getSignals=function(){const e=(0,s.getRealtimeSignals)();return[...o.SIGNALS,...e].map(i)};const i=function({name:e,number:t,description:r,action:o,forced:s=!1,standard:i}){const{signals:{[e]:a}}=n.constants,c=void 0!==a;return{name:e,number:c?a:t,description:r,supported:c,action:o,forced:s,standard:i}}},35:(e,t,r)=>{"use strict";const n=r(4341),o=new WeakMap,s=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const i=e.displayName||e.name||"<anonymous>",a=function(...n){if(o.set(a,++s),1===s)r=e.apply(this,n),e=null;else if(!0===t.throw)throw new Error(`Function \`${i}\` can only be called once`);return r};return n(a,e),o.set(a,s),a};e.exports=s,e.exports.default=s,e.exports.callCount=e=>{if(!o.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return o.get(e)}},7834:e=>{"use strict";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},4650:(e,t,r)=>{"use strict";const n=r(7571);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,o]=t[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?o:o?`${s} ${o}`:s}},7571:e=>{"use strict";e.exports=/^#!(.*)/},6741:(e,t,r)=>{var n,o=r(2357),s=r(8238),i=/^win/i.test(process.platform),a=r(8614);function c(){p&&(p=!1,s.forEach((function(e){try{process.removeListener(e,u[e])}catch(e){}})),process.emit=m,process.reallyExit=f,n.count-=1)}function l(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))}"function"!=typeof a&&(a=a.EventEmitter),process.__signal_exit_emitter__?n=process.__signal_exit_emitter__:((n=process.__signal_exit_emitter__=new a).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),e.exports=function(e,t){o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===p&&d();var r="exit";t&&t.alwaysLast&&(r="afterexit");return n.on(r,e),function(){n.removeListener(r,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&c()}},e.exports.unload=c;var u={};s.forEach((function(e){u[e]=function(){process.listeners(e).length===n.count&&(c(),l("exit",null,e),l("afterexit",null,e),i&&"SIGHUP"===e&&(e="SIGINT"),process.kill(process.pid,e))}})),e.exports.signals=function(){return s},e.exports.load=d;var p=!1;function d(){p||(p=!0,n.count+=1,s=s.filter((function(e){try{return process.on(e,u[e]),!0}catch(e){return!1}})),process.emit=g,process.reallyExit=h)}var f=process.reallyExit;function h(e){process.exitCode=e||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),f.call(process,process.exitCode)}var m=process.emit;function g(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=m.apply(this,arguments);return l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),r}return m.apply(this,arguments)}},8238: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")},8326:(e,t,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,o=r(5622),s=n?";":":",i=r(1959),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),c=(e,t)=>{const r=t.colon||s,o=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?i.split(r):[""];return n&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:i}},l=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:s,pathExtExe:l}=c(e,t),u=[],p=r=>new Promise(((s,i)=>{if(r===n.length)return t.all&&u.length?s(u):i(a(e));const c=n[r],l=/^".*"$/.test(c)?c.slice(1,-1):c,p=o.join(l,e),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;s(d(f,r,0))})),d=(e,r,n)=>new Promise(((o,a)=>{if(n===s.length)return o(p(r+1));const c=s[n];i(e+c,{pathExt:l},((s,i)=>{if(!s&&i){if(!t.all)return o(e+c);u.push(e+c)}return o(d(e,r,n+1))}))}));return r?p(0).then((e=>r(null,e)),r):p(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=c(e,t),l=[];for(let a=0;a<r.length;a++){const c=r[a],u=/^".*"$/.test(c)?c.slice(1,-1):c,p=o.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;e<n.length;e++){const r=d+n[e];try{if(i.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)}},1254:(e,t,r)=>{"use strict";const n=r(3150),o=process.platform,s={tick:"✔",cross:"✖",star:"★",square:"▇",squareSmall:"◻",squareSmallFilled:"◼",play:"▶",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",circleQuestionMark:"?⃝",bullet:"●",dot:"",line:"─",ellipsis:"…",pointer:"",pointerSmall:"",info:"",warning:"⚠",hamburger:"☰",smiley:"㋡",mustache:"෴",heart:"♥",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",questionMarkPrefix:"?⃝",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneSeventh:"⅐",oneEighth:"⅛",oneNinth:"⅑",oneTenth:"⅒",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞"},i={tick:"√",cross:"×",star:"*",square:"█",squareSmall:"[ ]",squareSmallFilled:"[█]",play:"►",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"─",ellipsis:"...",pointer:">",pointerSmall:"»",info:"i",warning:"‼",hamburger:"≡",smiley:"☺",mustache:"┌─┐",heart:s.heart,arrowUp:s.arrowUp,arrowDown:s.arrowDown,arrowLeft:s.arrowLeft,arrowRight:s.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",questionMarkPrefix:"",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};"linux"===o&&(s.questionMarkPrefix="?");const a="win32"===o?i:s;e.exports=Object.assign((e=>(a===s||Object.keys(s).forEach((t=>{s[t]!==a[t]&&(e=e.replace(new RegExp(n(s[t]),"g"),a[t]))})),e)),a)},5105:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const o="buffer"===r;let s=!1;t?s=!(r||o):r=r||"utf8",o&&(r=null);const i=new n({objectMode:s});r&&i.setEncoding(r);let a=0;const c=[];return i.on("data",(e=>{c.push(e),s?a=c.length:a+=e.length})),i.getBufferedValue=()=>t?c:o?Buffer.concat(c,a):c.join(""),i.getBufferedLength=()=>a,i}},31:(e,t,r)=>{"use strict";const{constants:n}=r(4293),o=r(2413),{promisify:s}=r(1669),i=r(5105),a=s(o.pipeline);class c extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function l(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=i(t);return await new Promise(((t,s)=>{const i=e=>{e&&o.getBufferedLength()<=n.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),s(e)};(async()=>{try{await a(e,o),t()}catch(e){i(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&i(new c)}))})),o.getBufferedValue()}e.exports=l,e.exports.buffer=(e,t)=>l(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>l(e,{...t,array:!0}),e.exports.MaxBufferError=c},6458:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:e.__proto__};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t}},77:(e,t,r)=>{var n,o,s=r(5747),i=r(2161),a=r(8520),c=r(6458),l=r(1669);"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",o="___graceful-fs.previous");var u=function(){};if(l.debuglog?u=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(u=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!global[n]){var p=[];Object.defineProperty(global,n,{get:function(){return p}}),s.close=function(e){function t(t,r){return e.call(s,t,(function(e){e||h(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,o,{value:e}),t}(s.close),s.closeSync=function(e){function t(t){e.apply(s,arguments),h()}return Object.defineProperty(t,o,{value:e}),t}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){u(global[n]),r(2357).equal(global[n].length,0)}))}function d(e){i(e),e.gracefulify=d,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,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof o&&o.apply(this,arguments),h()):f([e,[r,n,o]])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,o){"function"==typeof n&&(o=n,n=null);return function e(t,n,o,s){return r(t,n,o,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof s&&s.apply(this,arguments),h()):f([e,[t,n,o,s]])}))}(e,t,n,o)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,o){"function"==typeof r&&(o=r,r=null);return function e(t,r,o,s){return n(t,r,o,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof s&&s.apply(this,arguments),h()):f([e,[t,r,o,s]])}))}(e,t,r,o)});var o=e.readdir;function s(t){return o.apply(e,t)}if(e.readdir=function(e,t,r){var n=[e];"function"!=typeof t?n.push(t):r=t;return n.push((function(e,t){t&&t.sort&&t.sort();!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof r&&r.apply(this,arguments),h()):f([s,[n]])})),s(n)},"v0.8"===process.version.substr(0,4)){var c=a(e);g=c.ReadStream,b=c.WriteStream}var l=e.ReadStream;l&&(g.prototype=Object.create(l.prototype),g.prototype.open=function(){var e=this;v(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 u=e.WriteStream;u&&(b.prototype=Object.create(u.prototype),b.prototype.open=function(){var e=this;v(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 p=g;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var m=b;function g(e,t){return this instanceof g?(l.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function b(e,t){return this instanceof b?(u.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var y=e.open;function v(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,o){return y(t,r,n,(function(s,i){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?("function"==typeof o&&o.apply(this,arguments),h()):f([e,[t,r,n,o]])}))}(e,t,r,n)}return e.open=v,e}function f(e){u("ENQUEUE",e[0].name,e[1]),global[n].push(e)}function h(){var e=global[n].shift();e&&(u("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}e.exports=d(c(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=d(s),s.__patched=!0)},8520:(e,t,r)=>{var n=r(2413).Stream;e.exports=function(e){return{ReadStream:function t(r,o){if(!(this instanceof t))return new t(r,o);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,o=o||{};for(var i=Object.keys(o),a=0,c=i.length;a<c;a++){var l=i[a];this[l]=o[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,o){if(!(this instanceof t))return new t(r,o);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var s=Object.keys(o),i=0,a=s.length;i<a;i++){var c=s[i];this[c]=o[c]}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())}}}},2161:(e,t,r)=>{var n=r(7619),o=process.cwd,s=null,i=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=o.call(process)),s};try{process.cwd()}catch(e){}var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},e.exports=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,o){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?o&&o(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){o&&o(t||e)}))}))}))},e.lchmodSync=function(t,r){var o,s=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),i=!0;try{o=e.fchmodSync(s,r),i=!1}finally{if(i)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,o,s){e.open(t,n.O_SYMLINK,(function(t,n){t?s&&s(t):e.futimes(n,r,o,(function(t){e.close(n,(function(e){s&&s(t||e)}))}))}))},e.lutimesSync=function(t,r,o){var s,i=e.openSync(t,n.O_SYMLINK),a=!0;try{s=e.futimesSync(i,r,o),a=!1}finally{if(a)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return s}):(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===i&&(e.rename=(t=e.rename,function(r,n,o){var s=Date.now(),i=0;t(r,n,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-s<6e4)return setTimeout((function(){e.stat(n,(function(e,s){e&&"ENOENT"===e.code?t(r,n,a):o(c)}))}),i),void(i<100&&(i+=10));o&&o(c)}))}));var t;function r(t){return t?function(r,n,o){return t.call(e,r,n,(function(e){u(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function o(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!u(e))throw e}}:t}function s(t){return t?function(r,n,o,s){return t.call(e,r,n,o,(function(e){u(e)&&(e=null),s&&s.apply(this,arguments)}))}:t}function a(t){return t?function(r,n,o){try{return t.call(e,r,n,o)}catch(e){if(!u(e))throw e}}:t}function c(t){return t?function(r,n,o){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof n&&(o=n,n=null),n?t.call(e,r,n,s):t.call(e,r,s)}:t}function l(t){return t?function(r,n){var o=n?t.call(e,r,n):t.call(e,r);return o.uid<0&&(o.uid+=4294967296),o.gid<0&&(o.gid+=4294967296),o}:t}function u(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read=function(t){function r(r,n,o,s,i,a){var c;if(a&&"function"==typeof a){var l=0;c=function(u,p,d){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,r,n,o,s,i,c);a.apply(this,arguments)}}return t.call(e,r,n,o,s,i,c)}return r.__proto__=t,r}(e.read),e.readSync=(p=e.readSync,function(t,r,n,o,s){for(var i=0;;)try{return p.call(e,t,r,n,o,s)}catch(e){if("EAGAIN"===e.code&&i<10){i++;continue}throw e}});var p}},6560:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return-1!==n&&(-1===o||n<o)}},5171:e=>{"use strict";e.exports=function(e){return!!e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function)}},4970:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},1959:(e,t,r)=>{var n;r(5747);function o(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){o(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(1429):r(4601),e.exports=o,o.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},4601:(e,t,r)=>{e.exports=o,o.sync=function(e,t){return s(n.statSync(e),t)};var n=r(5747);function o(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,o=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=a|c;return r&l||r&c&&o===i||r&a&&n===s||r&u&&0===s}(e,t)}},1429:(e,t,r)=>{e.exports=s,s.sync=function(e,t){return o(n.statSync(e),e,t)};var n=r(5747);function o(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 o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,r)}function s(e,t,r){n.stat(e,(function(n,s){r(n,!n&&o(s,e,t))}))}},1438:e=>{"use strict";e.exports=function(e,t,r){r=r||20;try{return JSON.parse(e,t)}catch(t){if("string"!=typeof e){const t="Cannot parse "+(Array.isArray(e)&&0===e.length?"an empty array":String(e));throw new TypeError(t)}const n=t.message.match(/^Unexpected token.*position\s+(\d+)/i),o=n?+n[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(null!=o){const n=o<=r?0:o-r,s=o+r>=e.length?e.length:o+r;t.message+=` while parsing near '${0===n?"":"..."}${e.slice(n,s)}${s===e.length?"":"..."}'`}else t.message+=` while parsing '${e.slice(0,2*r)}'`;throw t}}},8543:(e,t,r)=>{"use strict";const n=r(5622),o=r(77),s=r(8403),i=r(6097),a=r(2352),c=(e,t)=>i(s(e),n.relative(".",t));e.exports=e=>a(o.readFile)(e,"utf8").then((t=>c(t,e))),e.exports.sync=e=>c(o.readFileSync(e,"utf8"),e)},4034:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=function(){var e=[],t=new n({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=o,t.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(r),t;function r(n){return Array.isArray(n)?(n.forEach(r),this):(e.push(n),n.once("end",s.bind(null,n)),n.once("error",t.emit.bind(t,"error")),n.pipe(t,{end:!1}),this)}function o(){return 0==e.length}function s(r){!(e=e.filter((function(e){return e!==r}))).length&&t.readable&&t.end()}}},4341:e=>{"use strict";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},6147:(e,t,r)=>{"use strict";const n=r(5622),o=r(7856),s=e=>{let t;e={cwd:process.cwd(),path:process.env[o()],execPath:process.execPath,...e};let r=n.resolve(e.cwd);const s=[];for(;t!==r;)s.push(n.join(r,"node_modules/.bin")),t=r,r=n.resolve(r,"..");const i=n.resolve(e.cwd,e.execPath,"..");return s.push(i),s.concat(e.path).join(n.delimiter)};e.exports=s,e.exports.default=s,e.exports.env=t=>{const r={...(t={env:process.env,...t}).env},n=o({env:r});return t.path=r[n],r[n]=e.exports(t),r}},7856:e=>{"use strict";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},6097:(e,t,r)=>{"use strict";const n=r(5864),o=r(1438),s=n("JSONError",{fileName:n.append("in %s")});e.exports=(e,t,r)=>{"string"==typeof t&&(r=t,t=null);try{try{return JSON.parse(e,t)}catch(r){throw o(e,t),r}}catch(e){e.message=e.message.replace(/\n/g,"");const t=new s(e);throw r&&(t.fileName=r),t}}},7835:(e,t,r)=>{"use strict";const n=r(5747);e.exports=e=>new Promise((t=>{n.access(e,(e=>{t(!e)}))})),e.exports.sync=e=>{try{return n.accessSync(e),!0}catch(e){return!1}}},2352:e=>{"use strict";const t=(e,t)=>function(){const r=t.promiseModule,n=new Array(arguments.length);for(let e=0;e<arguments.length;e++)n[e]=arguments[e];return new r(((r,o)=>{t.errorFirst?n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),o(t)):r(t)}else e?o(e):r(n)})):n.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];r(e)}else r(e)})),e.apply(this,n)}))};e.exports=(e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=e=>{const t=t=>"string"==typeof t?e===t:t.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let o;o="function"==typeof e?function(){return r.excludeMain?e.apply(this,arguments):t(e,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const s in e){const i=e[s];o[s]="function"==typeof i&&n(s)?t(i,r):i}return o}},9438:(e,t,r)=>{"use strict";const n=r(5622),o=r(5551),s=r(8543),i=new WeakMap,a=e=>n.resolve(n.dirname(e),".."),c=(e,t)=>(i.set(e,t),e),l=(e,t)=>e?o("package.json",(t=t||{}).cwd?{cwd:t.cwd}:{}).then((r=>r?s(r).then((n=>{if(t.skipOnFalse&&!1===n[e]){const n=Object.assign({},t,{cwd:a(r)});return l(e,n)}return c(Object.assign({},t.defaults,n[e]),r)})):c(Object.assign({},t.defaults),r))):Promise.reject(new TypeError("Expected a namespace")),u=(e,t)=>{if(!e)throw new TypeError("Expected a namespace");t=t||{};const r=o.sync("package.json",t.cwd?{cwd:t.cwd}:{});if(!r)return c(Object.assign({},t.defaults),r);const n=s.sync(r);if(t.skipOnFalse&&!1===n[e]){const n=Object.assign({},t,{cwd:a(r)});return u(e,n)}return c(Object.assign({},t.defaults,n[e]),r)};e.exports=l,e.exports.filepath=e=>i.get(e),e.exports.sync=u},5551:(e,t,r)=>{"use strict";const n=r(5622),o=r(640);e.exports=(e,t)=>{t=t||{};const r=n.resolve(t.cwd||""),s=n.parse(r).root,i=[].concat(e);return new Promise((e=>{!function t(r){o(i,{cwd:r}).then((o=>{o?e(n.join(r,o)):r===s?e(null):t(n.dirname(r))}))}(r)}))},e.exports.sync=(e,t)=>{t=t||{};let r=n.resolve(t.cwd||"");const s=n.parse(r).root,i=[].concat(e);for(;;){const e=o.sync(i,{cwd:r});if(e)return n.join(r,e);if(r===s)return null;r=n.dirname(r)}}},640:(e,t,r)=>{"use strict";const n=r(5622),o=r(7835),s=r(7006);e.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),s(e,(e=>o(n.resolve(t.cwd,e))),t)),e.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if(o.sync(n.resolve(t.cwd,r)))return r}},9193:(e,t,r)=>{"use strict";const n=r(4040);e.exports=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=[];let r=0;const o=()=>{r--,t.length>0&&t.shift()()};return s=>new Promise(((i,a)=>{const c=()=>{r++,n(s).then((e=>{i(e),o()}),(e=>{a(e),o()}))};r<e?c():t.push(c)}))}},7006:(e,t,r)=>{"use strict";const n=r(9193);class o extends Error{constructor(e){super(),this.value=e}}e.exports=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const s=n(r.concurrency),i=Array.from(e).map((e=>[e,s((()=>Promise.resolve(e).then(t)))])),a=n(r.preserveOrder?1:1/0);return Promise.all(i.map((e=>a((()=>(e=>Promise.all(e).then((e=>!0===e[1]&&Promise.reject(new o(e[0])))))(e)))))).then((()=>{})).catch((e=>e instanceof o?e.value:Promise.reject(e)))}},4040:e=>{"use strict";e.exports=e=>new Promise((t=>{t(e())}))},5617:(e,t,r)=>{"use strict";const n=r(4239);e.exports=Object.assign(new n,{Signale:n})},4239:(e,t,r)=>{"use strict";const n=r(1669),o=r(5622),s=r(1058),i=r(2589),a=r(1254),c=r(9438),l=r(6998),u=r(7456),{green:p,grey:d,red:f,underline:h,yellow:m}=i;let g=!1;const b=l.options.default,y=l.name;class v{constructor(e={}){this._interactive=e.interactive||!1,this._config=Object.assign(this.packageConfiguration,e.config),this._customTypes=Object.assign({},e.types),this._disabled=e.disabled||!1,this._scopeName=e.scope||"",this._timers=e.timers||new Map,this._types=this._mergeTypes(u,this._customTypes),this._stream=e.stream||process.stdout,this._longestLabel=this._getLongestLabel(),this._secrets=e.secrets||[],this._generalLogLevel=this._validateLogLevel(e.logLevel),Object.keys(this._types).forEach((e=>{this[e]=this._logger.bind(this,e)}))}get _now(){return Date.now()}get scopeName(){return this._scopeName}get currentOptions(){return Object.assign({},{config:this._config,disabled:this._disabled,types:this._customTypes,interactive:this._interactive,timers:this._timers,stream:this._stream,secrets:this._secrets,logLevel:this._generalLogLevel})}get date(){return(new Date).toLocaleDateString()}get timestamp(){return(new Date).toLocaleTimeString()}get filename(){const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const{stack:t}=new Error;Error.prepareStackTrace=e;const r=t.map((e=>e.getFileName())),n=r.find((e=>e!==r[0]));return n?o.basename(n):"anonymous"}get packageConfiguration(){return c.sync(y,{defaults:b})}get _longestUnderlinedLabel(){return h(this._longestLabel)}get _logLevels(){return{info:0,timer:1,debug:2,warn:3,error:4}}set configuration(e){this._config=Object.assign(this.packageConfiguration,e)}_arrayify(e){return Array.isArray(e)?e:[e]}_timeSpan(e){return this._now-e}_getLongestLabel(){const{_types:e}=this;return Object.keys(e).map((t=>e[t].label)).reduce(((e,t)=>e.length>t.length?e:t))}_validateLogLevel(e){return Object.keys(this._logLevels).includes(e)?e:"info"}_mergeTypes(e,t){const r=Object.assign({},e);return Object.keys(t).forEach((e=>{r[e]=Object.assign({},r[e],t[e])})),r}_filterSecrets(e){const{_secrets:t}=this;if(0===t.length)return e;let r=e;return t.forEach((e=>{r=r.replace(new RegExp(e,"g"),"[secure]")})),r}_formatStream(e){return this._arrayify(e)}_formatDate(){return`[${this.date}]`}_formatFilename(){return`[${this.filename}]`}_formatScopeName(){if(Array.isArray(this._scopeName)){return`${this._scopeName.filter((e=>0!==e.length)).map((e=>`[${e.trim()}]`)).join(" ")}`}return`[${this._scopeName}]`}_formatTimestamp(){return`[${this.timestamp}]`}_formatMessage(e){return n.format(...this._arrayify(e))}_meta(){const e=[];return this._config.displayDate&&e.push(this._formatDate()),this._config.displayTimestamp&&e.push(this._formatTimestamp()),this._config.displayFilename&&e.push(this._formatFilename()),0!==this._scopeName.length&&this._config.displayScope&&e.push(this._formatScopeName()),0!==e.length?(e.push(`${a.pointerSmall}`),e.map((e=>d(e)))):e}_hasAdditional({suffix:e,prefix:t},r){return e||t?"":this._formatMessage(r)}_buildSignale(e,...t){let[r,n]=[{},{}];if(1===t.length&&"object"==typeof t[0]&&null!==t[0])if(t[0]instanceof Error)[r]=t;else{const[{prefix:e,message:o,suffix:s}]=t;n=Object.assign({},{suffix:s,prefix:e}),r=o?this._formatMessage(o):this._hasAdditional(n,t)}else r=this._formatMessage(t);const o=this._meta();if(n.prefix&&(this._config.underlinePrefix?o.push(h(n.prefix)):o.push(n.prefix)),this._config.displayBadge&&e.badge&&o.push(i[e.color](this._padEnd(e.badge,e.badge.length+1))),this._config.displayLabel&&e.label){const t=this._config.uppercaseLabel?e.label.toUpperCase():e.label;this._config.underlineLabel?o.push(i[e.color](this._padEnd(h(t),this._longestUnderlinedLabel.length+1))):o.push(i[e.color](this._padEnd(t,this._longestLabel.length+1)))}if(r instanceof Error&&r.stack){const[e,...t]=r.stack.split("\n");return this._config.underlineMessage?o.push(h(e)):o.push(e),o.push(d(t.map((e=>e.replace(/^/,"\n"))).join(""))),o.join(" ")}return this._config.underlineMessage?o.push(h(r)):o.push(r),n.suffix&&(this._config.underlineSuffix?o.push(h(n.suffix)):o.push(n.suffix)),o.join(" ")}_write(e,t){this._interactive&&e.isTTY&&g&&(s.moveCursor(e,0,-1),s.clearLine(e),s.cursorTo(e,0)),e.write(t+"\n"),g=this._interactive}_log(e,t=this._stream,r){this.isEnabled()&&this._logLevels[r]>=this._logLevels[this._generalLogLevel]&&this._formatStream(t).forEach((t=>{this._write(t,e)}))}_logger(e,...t){const{stream:r,logLevel:n}=this._types[e],o=this._buildSignale(this._types[e],...t);this._log(this._filterSecrets(o),r,this._validateLogLevel(n))}_padEnd(e,t){return e=String(e),t=parseInt(t,10)||0,e.length>=t?e:String.prototype.padEnd?e.padEnd(t):(t-=e.length,e+" ".repeat(t))}addSecrets(e){if(!Array.isArray(e))throw new TypeError("Argument must be an array.");this._secrets.push(...e)}clearSecrets(){this._secrets=[]}config(e){this.configuration=e}disable(){this._disabled=!0}enable(){this._disabled=!1}isEnabled(){return!this._disabled}scope(...e){if(0===e.length)throw new Error("No scope name was defined.");return new v(Object.assign(this.currentOptions,{scope:e}))}unscope(){this._scopeName=""}time(e){e||(e=`timer_${this._timers.size}`),this._timers.set(e,this._now);const t=this._meta();return t.push(p(this._padEnd(this._types.start.badge,2))),this._config.underlineLabel?t.push(p(this._padEnd(h(e),this._longestUnderlinedLabel.length+1))):t.push(p(this._padEnd(e,this._longestLabel.length+1))),t.push("Initialized timer..."),this._log(t.join(" "),this._stream,"timer"),e}timeEnd(e){if(!e&&this._timers.size){const t=e=>e.includes("timer_");e=[...this._timers.keys()].reduceRight(((e,r)=>t(e)?e:t(r)?r:null))}if(this._timers.has(e)){const t=this._timeSpan(this._timers.get(e));this._timers.delete(e);const r=this._meta();return r.push(f(this._padEnd(this._types.pause.badge,2))),this._config.underlineLabel?r.push(f(this._padEnd(h(e),this._longestUnderlinedLabel.length+1))):r.push(f(this._padEnd(e,this._longestLabel.length+1))),r.push("Timer run for:"),r.push(m(t<1e3?t+"ms":(t/1e3).toFixed(2)+"s")),this._log(r.join(" "),this._stream,"timer"),{label:e,span:t}}}}e.exports=v},7456:(e,t,r)=>{"use strict";const n=r(1254);e.exports={error:{badge:n.cross,color:"red",label:"error",logLevel:"error"},fatal:{badge:n.cross,color:"red",label:"fatal",logLevel:"error"},fav:{badge:n("❤"),color:"magenta",label:"favorite",logLevel:"info"},info:{badge:n.info,color:"blue",label:"info",logLevel:"info"},star:{badge:n.star,color:"yellow",label:"star",logLevel:"info"},success:{badge:n.tick,color:"green",label:"success",logLevel:"info"},wait:{badge:n.ellipsis,color:"blue",label:"waiting",logLevel:"info"},warn:{badge:n.warning,color:"yellow",label:"warning",logLevel:"warn"},complete:{badge:n.checkboxOn,color:"cyan",label:"complete",logLevel:"info"},pending:{badge:n.checkboxOff,color:"magenta",label:"pending",logLevel:"info"},note:{badge:n.bullet,color:"blue",label:"note",logLevel:"info"},start:{badge:n.play,color:"green",label:"start",logLevel:"info"},pause:{badge:n.squareSmallFilled,color:"yellow",label:"pause",logLevel:"info"},debug:{badge:n("⬤"),color:"red",label:"debug",logLevel:"debug"},await:{badge:n.ellipsis,color:"blue",label:"awaiting",logLevel:"info"},watch:{badge:n.ellipsis,color:"yellow",label:"watching",logLevel:"info"},log:{badge:"",color:"",label:"",logLevel:"info"}}},8403:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return 65279===e.charCodeAt(0)?e.slice(1):e}},8150:e=>{"use strict";e.exports=e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1058:e=>{"use strict";e.exports=require("readline")},2413:e=>{"use strict";e.exports=require("stream")},1669:e=>{"use strict";e.exports=require("util")},6998:e=>{"use strict";e.exports=JSON.parse('{"name":"signale","version":"1.4.0","description":"👋 Hackable console logger","license":"MIT","repository":"klaussinani/signale","author":{"name":"Klaus Sinani","email":"klaussinani@gmail.com","url":"https://klaussinani.github.io"},"maintainers":[{"name":"Mario Sinani","email":"mariosinani@protonmail.ch","url":"https://mariocfhq.github.io"}],"engines":{"node":">=6"},"files":["index.js","signale.js","types.js"],"keywords":["hackable","colorful","console","logger"],"scripts":{"test":"xo"},"dependencies":{"chalk":"^2.3.2","figures":"^2.0.0","pkg-conf":"^2.1.0"},"devDependencies":{"xo":"*"},"options":{"default":{"displayScope":true,"displayBadge":true,"displayDate":false,"displayFilename":false,"displayLabel":true,"displayTimestamp":false,"underlineLabel":true,"underlineMessage":false,"underlinePrefix":false,"underlineSuffix":false,"uppercaseLabel":false}},"xo":{"space":2},"_resolved":"https://registry.npmjs.org/signale/-/signale-1.4.0.tgz","_integrity":"sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==","_from":"signale@1.4.0"}')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,r),s.loaded=!0,s.exports}r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{const{execSync:e}=r(3129),t=r(8468),{existsSync:n}=r(5747),{Signale:o}=r(5617),s=r(5622);process.env.PACKAGEJSON_DIR&&(process.env.GITHUB_WORKSPACE=`${process.env.GITHUB_WORKSPACE}/${process.env.PACKAGEJSON_DIR}`,process.chdir(process.env.GITHUB_WORKSPACE));const i=process.env.GITHUB_WORKSPACE,a=new o({config:{underlineLabel:!1}});function c(e){a.success(e),process.exit(0)}function l(e,r){return t(e,r,{cwd:i})}(async()=>{const t=function(){const e=s.join(i,"package.json");if(!n(e))throw new Error("package.json could not be found in your project's root.");return require(e)}(),r=process.env.GITHUB_EVENT_PATH?require(process.env.GITHUB_EVENT_PATH):{};r.commits||console.log("Couldn't find any commits in this event, incrementing patch version...");const o=process.env["INPUT_TAG-PREFIX"]||"",u=r.commits?r.commits.map((e=>e.message+"\n"+e.body)):[],p=process.env["INPUT_COMMIT-MESSAGE"]||"ci: version bump to {{version}}";console.log("commit messages:",u);const d=new RegExp(p.replace(/{{version}}/g,`${o}\\d+\\.\\d+\\.\\d+`),"ig");if(void 0!==u.find((e=>d.test(e))))return void c("No action necessary because we found a previous bump!");const f=process.env["INPUT_MAJOR-WORDING"].split(","),h=process.env["INPUT_MINOR-WORDING"].split(","),m=process.env["INPUT_PATCH-WORDING"]?process.env["INPUT_PATCH-WORDING"].split(","):null,g=process.env["INPUT_RC-WORDING"].split(",");console.log("config words:",{majorWords:f,minorWords:h,patchWords:m,preReleaseWords:g});let b=process.env.INPUT_DEFAULT,y=null,v=process.env.INPUT_PREID;if(u.some((e=>/^([a-zA-Z]+)(\(.+\))?(\!)\:/.test(e)||f.some((t=>e.includes(t)))))?b="major":u.some((e=>h.some((t=>e.includes(t)))))?b="minor":m&&u.some((e=>m.some((t=>e.includes(t)))))?b="patch":u.some((e=>g.some((t=>!!e.includes(t)&&(y=t,!0)))))&&(v=y.split("-")[1],b="prerelease"),console.log("version action after first waterfall:",b),"prerelease"!==b||""===g||u.some((e=>g.some((t=>e.includes(t)))))||(b=null),"prerelease"===b&&v&&(b="prerelease",b=`${b} --preid=${v}`),console.log("version action after final decision:",b),null===b)return void c("No version keywords found, skipping bump.");const w=process.env.INPUT_PUSH;if("false"!==w&&!1!==w){try{const r=t.version.toString();await l("git",["config","user.name",`"${process.env.GITHUB_USER||"Automated Version Bump"}"`]),await l("git",["config","user.email",`"${process.env.GITHUB_EMAIL||"gh-action-bump-version@users.noreply.github.com"}"`]);let n=/refs\/[a-zA-Z]+\/(.*)/.exec(process.env.GITHUB_REF)[1],s=!1;process.env.GITHUB_HEAD_REF&&(n=process.env.GITHUB_HEAD_REF,s=!0),process.env["INPUT_TARGET-BRANCH"]&&(n=process.env["INPUT_TARGET-BRANCH"]),console.log("currentBranch:",n),await l("npm",["version","--allow-same-version=true","--git-tag-version=false",r]),console.log("current:",r,"/","version:",b);let i=e(`npm version --git-tag-version=false ${b}`).toString().trim().replace(/^v/,"");i=`${o}${i}`,await l("git",["commit","-a","-m",p.replace(/{{version}}/g,i)]),s&&await l("git",["fetch"]),await l("git",["checkout",n]),await l("npm",["version","--allow-same-version=true","--git-tag-version=false",r]),console.log("current:",r,"/","version:",b),i=e(`npm version --git-tag-version=false ${b}`).toString().trim().replace(/^v/,""),i=`${o}${i}`,console.log(`::set-output name=newTag::${i}`);try{await l("git",["commit","-a","-m",p.replace(/{{version}}/g,i)])}catch(e){console.warn('git commit failed because you are using "actions/checkout@v2"; but that doesnt matter because you dont need that git commit, thats only for "actions/checkout@v1"')}const a=`https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`;"true"!==process.env["INPUT_SKIP-TAG"]?(await l("git",["tag",i]),await l("git",["push",a,"--follow-tags"]),await l("git",["push",a,"--tags"])):await l("git",["push",a])}catch(e){return a.fatal(e),x="Failed to bump version",a.fatal(x),void process.exit(1)}var x;c("Version bumped!")}else c("User requested to skip pushing new tag and package.json. Finished.")})()})()})();