UNPKG

jest-spin-reporter

Version:

Test reporter for jest with progress spinner

4 lines 41.9 kB
exports.Reporter=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=5)}([function(e,r,t){"use strict";const n=t(6),o=t(7),s=t(12).stdout,a=t(14),i="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),u=Object.create(null);function f(e,r){r=r||{};const t=s?s.level:0;e.level=void 0===r.level?t:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function p(e){if(!this||!(this instanceof p)||this.template){const r={};return f(r,e),r.template=function(){const e=[].slice.call(arguments);return m.apply(null,[r.template].concat(e))},Object.setPrototypeOf(r,p.prototype),Object.setPrototypeOf(r.template,r),r.template.constructor=p,r.template}f(this,e)}i&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(n(o[e].close),"g"),u[e]={get(){const r=o[e];return _.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}};u.visible={get(){return _.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))c.has(e)||(u[e]={get(){const r=this.level;return function(){const t=o.color[l[r]][e].apply(null,arguments),n={open:t,close:o.color.close,closeRe:o.color.closeRe};return _.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(c.has(e))continue;u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const r=this.level;return function(){const t=o.bgColor[l[r]][e].apply(null,arguments),n={open:t,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return _.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties(()=>{},u);function _(e,r,t){const n=function(){return g.apply(n,arguments)};n._styles=e,n._empty=r;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"===t||"grey"===t,n.__proto__=h,n}function g(){const e=arguments,r=e.length;let t=String(arguments[0]);if(0===r)return"";if(r>1)for(let n=1;n<r;n++)t+=" "+e[n];if(!this.enabled||this.level<=0||!t)return this._empty?"":t;const n=o.dim.open;i&&this.hasGrey&&(o.dim.open="");for(const e of this._styles.slice().reverse())t=(t=e.open+t.replace(e.closeRe,e.open)+e.close).replace(/\r?\n/g,`${e.close}$&${e.open}`);return o.dim.open=n,t}function m(e,r){if(!Array.isArray(r))return[].slice.call(arguments,1).join(" ");const t=[].slice.call(arguments,2),n=[r.raw[0]];for(let e=1;e<r.length;e++)n.push(String(t[e-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(r.raw[e]));return a(e,n.join(""))}Object.defineProperties(p.prototype,u),e.exports=p(),e.exports.supportsColor=s,e.exports.default=e.exports},function(e,r,t){var n=t(10),o={};for(var s in n)n.hasOwnProperty(s)&&(o[n[s]]=s);var a=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 i in a)if(a.hasOwnProperty(i)){if(!("channels"in a[i]))throw new Error("missing channels property: "+i);if(!("labels"in a[i]))throw new Error("missing channel labels property: "+i);if(a[i].labels.length!==a[i].channels)throw new Error("channel and label counts mismatch: "+i);var l=a[i].channels,c=a[i].labels;delete a[i].channels,delete a[i].labels,Object.defineProperty(a[i],"channels",{value:l}),Object.defineProperty(a[i],"labels",{value:c})}a.rgb.hsl=function(e){var r,t,n=e[0]/255,o=e[1]/255,s=e[2]/255,a=Math.min(n,o,s),i=Math.max(n,o,s),l=i-a;return i===a?r=0:n===i?r=(o-s)/l:o===i?r=2+(s-n)/l:s===i&&(r=4+(n-o)/l),(r=Math.min(60*r,360))<0&&(r+=360),t=(a+i)/2,[r,100*(i===a?0:t<=.5?l/(i+a):l/(2-i-a)),100*t]},a.rgb.hsv=function(e){var r,t,n,o,s,a=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(a,i,l),u=c-Math.min(a,i,l),f=function(e){return(c-e)/6/u+.5};return 0===u?o=s=0:(s=u/c,r=f(a),t=f(i),n=f(l),a===c?o=n-t:i===c?o=1/3+r-n:l===c&&(o=2/3+t-r),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},a.rgb.hwb=function(e){var r=e[0],t=e[1],n=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(r,Math.min(t,n))),100*(n=1-1/255*Math.max(r,Math.max(t,n)))]},a.rgb.cmyk=function(e){var r,t=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*((1-t-(r=Math.min(1-t,1-n,1-o)))/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-o-r)/(1-r)||0),100*r]},a.rgb.keyword=function(e){var r=o[e];if(r)return r;var t,s,a,i=1/0;for(var l in n)if(n.hasOwnProperty(l)){var c=n[l],u=(s=e,a=c,Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)+Math.pow(s[2]-a[2],2));u<i&&(i=u,t=l)}return t},a.keyword.rgb=function(e){return n[e]},a.rgb.xyz=function(e){var r=e[0]/255,t=e[1]/255,n=e[2]/255;return[100*(.4124*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*r+.7152*t+.0722*n),100*(.0193*r+.1192*t+.9505*n)]},a.rgb.lab=function(e){var r=a.rgb.xyz(e),t=r[0],n=r[1],o=r[2];return n/=100,o/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var r,t,n,o,s,a=e[0]/360,i=e[1]/100,l=e[2]/100;if(0===i)return[s=255*l,s,s];r=2*l-(t=l<.5?l*(1+i):l+i-l*i),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,s=6*n<1?r+6*(t-r)*n:2*n<1?t:3*n<2?r+(t-r)*(2/3-n)*6:r,o[c]=255*s;return o},a.hsl.hsv=function(e){var r=e[0],t=e[1]/100,n=e[2]/100,o=t,s=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,o*=s<=1?s:2-s,[r,100*(0===n?2*o/(s+o):2*t/(n+t)),100*((n+t)/2)]},a.hsv.rgb=function(e){var r=e[0]/60,t=e[1]/100,n=e[2]/100,o=Math.floor(r)%6,s=r-Math.floor(r),a=255*n*(1-t),i=255*n*(1-t*s),l=255*n*(1-t*(1-s));switch(n*=255,o){case 0:return[n,l,a];case 1:return[i,n,a];case 2:return[a,n,l];case 3:return[a,i,n];case 4:return[l,a,n];case 5:return[n,a,i]}},a.hsv.hsl=function(e){var r,t,n,o=e[0],s=e[1]/100,a=e[2]/100,i=Math.max(a,.01);return n=(2-s)*a,t=s*i,[o,100*(t=(t/=(r=(2-s)*i)<=1?r:2-r)||0),100*(n/=2)]},a.hwb.rgb=function(e){var r,t,n,o,s,a,i,l=e[0]/360,c=e[1]/100,u=e[2]/100,f=c+u;switch(f>1&&(c/=f,u/=f),n=6*l-(r=Math.floor(6*l)),0!=(1&r)&&(n=1-n),o=c+n*((t=1-u)-c),r){default:case 6:case 0:s=t,a=o,i=c;break;case 1:s=o,a=t,i=c;break;case 2:s=c,a=t,i=o;break;case 3:s=c,a=o,i=t;break;case 4:s=o,a=c,i=t;break;case 5:s=t,a=c,i=o}return[255*s,255*a,255*i]},a.cmyk.rgb=function(e){var r=e[0]/100,t=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(e){var r,t,n,o=e[0]/100,s=e[1]/100,a=e[2]/100;return t=-.9689*o+1.8758*s+.0415*a,n=.0557*o+-.204*s+1.057*a,r=(r=3.2406*o+-1.5372*s+-.4986*a)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(r=Math.min(Math.max(0,r),1)),255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(e){var r=e[0],t=e[1],n=e[2];return t/=100,n/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(r-t),200*(t-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(e){var r,t,n,o=e[0];r=e[1]/500+(t=(o+16)/116),n=t-e[2]/200;var s=Math.pow(t,3),a=Math.pow(r,3),i=Math.pow(n,3);return t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,[r*=95.047,t*=100,n*=108.883]},a.lab.lch=function(e){var r,t=e[0],n=e[1],o=e[2];return(r=360*Math.atan2(o,n)/2/Math.PI)<0&&(r+=360),[t,Math.sqrt(n*n+o*o),r]},a.lch.lab=function(e){var r,t=e[0],n=e[1];return r=e[2]/360*2*Math.PI,[t,n*Math.cos(r),n*Math.sin(r)]},a.rgb.ansi16=function(e){var r=e[0],t=e[1],n=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(r/255));return 2===o&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(e){var r=e%10;if(0===r||7===r)return e>50&&(r+=3.5),[r=r/10.5*255,r,r];var t=.5*(1+~~(e>50));return[(1&r)*t*255,(r>>1&1)*t*255,(r>>2&1)*t*255]},a.ansi256.rgb=function(e){if(e>=232){var r=10*(e-232)+8;return[r,r,r]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},a.rgb.hex=function(e){var r=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.hex.rgb=function(e){var r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];var t=r[0];3===r[0].length&&(t=t.split("").map(function(e){return e+e}).join(""));var n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(e){var r,t=e[0]/255,n=e[1]/255,o=e[2]/255,s=Math.max(Math.max(t,n),o),a=Math.min(Math.min(t,n),o),i=s-a;return r=i<=0?0:s===t?(n-o)/i%6:s===n?2+(o-t)/i:4+(t-n)/i+4,r/=6,[360*(r%=1),100*i,100*(i<1?a/(1-i):0)]},a.hsl.hcg=function(e){var r=e[1]/100,t=e[2]/100,n=1,o=0;return(n=t<.5?2*r*t:2*r*(1-t))<1&&(o=(t-.5*n)/(1-n)),[e[0],100*n,100*o]},a.hsv.hcg=function(e){var r=e[1]/100,t=e[2]/100,n=r*t,o=0;return n<1&&(o=(t-n)/(1-n)),[e[0],100*n,100*o]},a.hcg.rgb=function(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];var o,s=[0,0,0],a=r%1*6,i=a%1,l=1-i;switch(Math.floor(a)){case 0:s[0]=1,s[1]=i,s[2]=0;break;case 1:s[0]=l,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=i;break;case 3:s[0]=0,s[1]=l,s[2]=1;break;case 4:s[0]=i,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=l}return o=(1-t)*n,[255*(t*s[0]+o),255*(t*s[1]+o),255*(t*s[2]+o)]},a.hcg.hsv=function(e){var r=e[1]/100,t=r+e[2]/100*(1-r),n=0;return t>0&&(n=r/t),[e[0],100*n,100*t]},a.hcg.hsl=function(e){var r=e[1]/100,t=e[2]/100*(1-r)+.5*r,n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[e[0],100*n,100*t]},a.hcg.hwb=function(e){var r=e[1]/100,t=r+e[2]/100*(1-r);return[e[0],100*(t-r),100*(1-t)]},a.hwb.hcg=function(e){var r=e[1]/100,t=1-e[2]/100,n=t-r,o=0;return n<1&&(o=(t-n)/(1-n)),[e[0],100*n,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var r=255&Math.round(e[0]/100*255),t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,r){e.exports=require("os")},function(e,r,t){"use strict";e.exports=t(15)},function(e,r,t){"use strict";const n=t(31);e.exports=e=>"string"==typeof e?e.replace(n(),""):e},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=t(0),o=t(3),s=t(16),a=t(18);class i{constructor(e,r){this.testCount=0;const t=Object.keys(o),n=t[Math.floor(Math.random()*t.length)];this.spinner=a.create("Preparing …",[n])}onRunComplete(e,r){const{numFailedTests:t,numPassedTests:n,numPendingTests:o,testResults:a,numTotalTests:l,startTime:c}=r,u=s(Date.now()-c);return new Promise(e=>{a.map(({failureMessage:e})=>e).filter(e=>!!e).forEach(e=>console.log(e));const r=[n?`${i.charMap.pass} ${n}`:null,o?`${i.charMap.skip} ${o}`:null,t?`${i.charMap.fail} ${t}`:null].filter(e=>!!e);this.spinner(!t,`${r.join(", ")} / ${l}, ${u}`),e()})}onTestResult(e,r,t){const{numTotalTestSuites:n}=t;this.testCount+=1,this.spinner(`${this.testCount}/${n}`)}}i.charMap={pass:n.default.green("✔"),skip:n.default.cyan("-"),fail:n.default.red("✘")},e.exports=i},function(e,r,t){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},function(e,r,t){"use strict";(function(e){const r=t(9),n=(e,t)=>(function(){const n=e.apply(r,arguments);return`[${n+t}m`}),o=(e,t)=>(function(){const n=e.apply(r,arguments);return`[${38+t};5;${n}m`}),s=(e,t)=>(function(){const n=e.apply(r,arguments);return`[${38+t};2;${n[0]};${n[1]};${n[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 a=e=>e,i=(e,r,t)=>[e,r,t];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:n(a,0)},t.color.ansi256={ansi256:o(a,0)},t.color.ansi16m={rgb:s(i,0)},t.bgColor.ansi={ansi:n(a,10)},t.bgColor.ansi256={ansi256:o(a,10)},t.bgColor.ansi16m={rgb:s(i,10)};for(let e of Object.keys(r)){if("object"!=typeof r[e])continue;const a=r[e];"ansi16"===e&&(e="ansi"),"ansi16"in a&&(t.color.ansi[e]=n(a.ansi16,0),t.bgColor.ansi[e]=n(a.ansi16,10)),"ansi256"in a&&(t.color.ansi256[e]=o(a.ansi256,0),t.bgColor.ansi256[e]=o(a.ansi256,10)),"rgb"in a&&(t.color.ansi16m[e]=s(a.rgb,0),t.bgColor.ansi16m[e]=s(a.rgb,10))}return t}})}).call(this,t(8)(e))},function(e,r){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,r,t){var n=t(1),o=t(11),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 r=o(e);Object.keys(r).forEach(function(t){var n=r[t];s[e][t]=function(e){var r=function(r){if(null==r)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var t=e(r);if("object"==typeof t)for(var n=t.length,o=0;o<n;o++)t[o]=Math.round(t[o]);return t};return"conversion"in e&&(r.conversion=e.conversion),r}(n),s[e][t].raw=function(e){var r=function(r){return null==r?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(r.conversion=e.conversion),r}(n)})}),e.exports=s},function(e,r){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]}},function(e,r,t){var n=t(1);function o(e){var r=function(){for(var e={},r=Object.keys(n),t=r.length,o=0;o<t;o++)e[r[o]]={distance:-1,parent:null};return e}(),t=[e];for(r[e].distance=0;t.length;)for(var o=t.pop(),s=Object.keys(n[o]),a=s.length,i=0;i<a;i++){var l=s[i],c=r[l];-1===c.distance&&(c.distance=r[o].distance+1,c.parent=o,t.unshift(l))}return r}function s(e,r){return function(t){return r(e(t))}}function a(e,r){for(var t=[r[e].parent,e],o=n[r[e].parent][e],a=r[e].parent;r[a].parent;)t.unshift(r[a].parent),o=s(n[r[a].parent][a],o),a=r[a].parent;return o.conversion=t,o}e.exports=function(e){for(var r=o(e),t={},n=Object.keys(r),s=n.length,i=0;i<s;i++){var l=n[i];null!==r[l].parent&&(t[l]=a(l,r))}return t}},function(e,r,t){"use strict";const n=t(2),o=t(13),s=process.env;let a;function i(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===a)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!==a)return 0;const r=a?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:r;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)?1:"COLORTERM"in s?1:(s.TERM,r)}(e))}o("no-color")||o("no-colors")||o("color=false")?a=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=!0),"FORCE_COLOR"in s&&(a=0===s.FORCE_COLOR.length||0!==parseInt(s.FORCE_COLOR,10)),e.exports={supportsColor:i,stdout:i(process.stdout),stderr:i(process.stderr)}},function(e,r,t){"use strict";e.exports=(e,r)=>{r=r||process.argv;const t=e.startsWith("-")?"":1===e.length?"-":"--",n=r.indexOf(t+e),o=r.indexOf("--");return-1!==n&&(-1===o||n<o)}},function(e,r,t){"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function l(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i.get(e)||e}function c(e,r){const t=[],n=r.trim().split(/\s*,\s*/g);let o;for(const r of n)if(isNaN(r)){if(!(o=r.match(s)))throw new Error(`Invalid Chalk template style argument: ${r} (in style '${e}')`);t.push(o[2].replace(a,(e,r,t)=>r?l(r):t))}else t.push(Number(r));return t}function u(e){o.lastIndex=0;const r=[];let t;for(;null!==(t=o.exec(e));){const e=t[1];if(t[2]){const n=c(e,t[2]);r.push([e].concat(n))}else r.push([e])}return r}function f(e,r){const t={};for(const e of r)for(const r of e.styles)t[r[0]]=e.inverse?null:r.slice(1);let n=e;for(const e of Object.keys(t))if(Array.isArray(t[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=t[e].length>0?n[e].apply(n,t[e]):n[e]}return n}e.exports=(e,r)=>{const t=[],o=[];let s=[];if(r.replace(n,(r,n,a,i,c,p)=>{if(n)s.push(l(n));else if(i){const r=s.join("");s=[],o.push(0===t.length?r:f(e,t)(r)),t.push({inverse:a,styles:u(i)})}else if(c){if(0===t.length)throw new Error("Found extraneous } in Chalk template literal");o.push(f(e,t)(s.join(""))),s=[],t.pop()}else s.push(p)}),o.push(s.join("")),t.length>0){const e=`Chalk template literal is missing ${t.length} closing bracket${1===t.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},function(e){e.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]}}')},function(e,r,t){"use strict";const n=t(17);e.exports=(e,r={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");r.compact&&(r.secondsDecimalDigits=0,r.millisecondsDecimalDigits=0);const t=[],o=(e,n,o,s)=>{if(0===e)return;const a=r.verbose?" "+((e,r)=>1===r?e:e+"s")(n,e):o;t.push((s||e)+a)};if(("number"==typeof r.secondsDecimalDigits?r.secondsDecimalDigits:1)<1){const r=1e3-e%1e3;r<500&&(e+=r)}const s=n(e);if(o(Math.trunc(s.days/365),"year","y"),o(s.days%365,"day","d"),o(s.hours,"hour","h"),o(s.minutes,"minute","m"),r.separateMilliseconds||r.formatSubMilliseconds||e<1e3)if(o(s.seconds,"second","s"),r.formatSubMilliseconds)o(s.milliseconds,"millisecond","ms"),o(s.microseconds,"microsecond","µs"),o(s.nanoseconds,"nanosecond","ns");else{const e=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,t="number"==typeof r.millisecondsDecimalDigits?r.millisecondsDecimalDigits:0,n=t?e.toFixed(t):Math.ceil(e);o(parseFloat(n,10),"millisecond","ms",n)}else{const t=e/1e3%60,n="number"==typeof r.secondsDecimalDigits?r.secondsDecimalDigits:1,s=t.toFixed(n),a=r.keepDecimalsOnWholeSeconds?s:s.replace(/\.0+$/,"");o(parseFloat(a,10),"second","s",a)}return 0===t.length?"0"+(r.verbose?" milliseconds":"ms"):r.compact?"~"+t[0]:"number"==typeof r.unitCount?"~"+t.slice(0,Math.max(r.unitCount,1)).join(" "):t.join(" ")}},function(e,r,t){"use strict";e.exports=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");const r=e>0?Math.floor:Math.ceil;return{days:r(e/864e5),hours:r(e/36e5)%24,minutes:r(e/6e4)%60,seconds:r(e/1e3)%60,milliseconds:r(e)%1e3,microseconds:r(1e3*e)%1e3,nanoseconds:r(1e6*e)%1e3}}},function(e,r,t){"use strict"; // @license: GPL const n=t(19),o=t(3),s=t(33),a=t(34)(),i=t(0),l={ok:i.green(a?"✓":"[Ok]"),error:i.red(a?"✗":"[Error]"),arrow:i.yellow(a?"→":"->")};function c(e,r=["dots"]){var t,a=!1;let i,c=0,u=0,f=s.isatty(process.stdout.fd);function p(){const e=o[r[u]].frames;n(e[c++%e.length]+" "+t(!0))}function h(e,r){if(a)return!1;if("boolean"!=typeof e&&(r=e,e=void 0),void 0!==r&&(t="function"==typeof r?r:()=>r,f||(void 0!==e?e||process.stdout.write("\n"):console.log(l.arrow+" "+t(!1)))),void 0!==e){clearInterval(i),a=!0;let r=l[e?"ok":"error"];n(r+" "+t(!0)),f&&process.stdout.write("\n")}return!0}if(h(e),f){"demo"==r&&(_=t,t=e=>"["+r[u]+"] "+_(e),r="all"),"all"==r?r=Object.keys(o):"string"==typeof r&&(r=[r]);const e=()=>{i&&(clearInterval(i),u++),u>=r.length&&(u=0);const t=o[r[u]];a||(i=setInterval(p,t.interval),setTimeout(e,Math.max(t.interval*t.frames.length,1e3)))};e()}var _;return h}"x"!=i.yellow("x")&&function(e){for(let r in e)for(let t in e[r].frames)e[r].frames[t]=i.yellow(e[r].frames[t])}(o),e.exports={list:function(){const e=Object.keys(o);console.log(e.length+" spinners\n"),e.map(e=>console.log(" * "+e))},create:c,demo:function(e){return console.log("Smart Spinner DEMO"),e||(e="Call me with some string or callback function"),c(e,"demo")}}},function(e,r,t){"use strict";const n=t(20),o=t(21),s=t(29),a=e=>{const r=e.columns;return r?"win32"===process.platform?r-1:r:80},i=(e,r)=>{r=Object.assign({showCursor:!1},r);let t=0;const i=function(){r.showCursor||o.hide();let i=[].join.call(arguments," ")+"\n";i=s(i,a(e),{trim:!1,hard:!0,wordWrap:!1}),e.write(n.eraseLines(t)+i),t=i.split("\n").length};return i.clear=()=>{e.write(n.eraseLines(t)),t=0},i.done=()=>{t=0,r.showCursor||o.show()},i};e.exports=i(process.stdout),e.exports.stderr=i(process.stderr),e.exports.create=i},function(e,r,t){"use strict";const n=e.exports,o="[",s="]",a="",i=";",l="Apple_Terminal"===process.env.TERM_PROGRAM;n.cursorTo=(e,r)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");return"number"!=typeof r?o+(e+1)+"G":o+(r+1)+";"+(e+1)+"H"},n.cursorMove=(e,r)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");let t="";return e<0?t+=o+-e+"D":e>0&&(t+=o+e+"C"),r<0?t+=o+-r+"A":r>0&&(t+=o+r+"B"),t},n.cursorUp=e=>o+("number"==typeof e?e:1)+"A",n.cursorDown=e=>o+("number"==typeof e?e:1)+"B",n.cursorForward=e=>o+("number"==typeof e?e:1)+"C",n.cursorBackward=e=>o+("number"==typeof e?e:1)+"D",n.cursorLeft="",n.cursorSavePosition=o+(l?"7":"s"),n.cursorRestorePosition=o+(l?"8":"u"),n.cursorGetPosition="",n.cursorNextLine="",n.cursorPrevLine="",n.cursorHide="[?25l",n.cursorShow="[?25h",n.eraseLines=e=>{let r="";for(let t=0;t<e;t++)r+=n.eraseLine+(t<e-1?n.cursorUp():"");return e&&(r+=n.cursorLeft),r},n.eraseEndLine="",n.eraseStartLine="",n.eraseLine="",n.eraseDown="",n.eraseUp="",n.eraseScreen="",n.scrollUp="",n.scrollDown="",n.clearScreen="c",n.beep=a,n.link=(e,r)=>[s,"8",i,i,r,a,e,s,"8",i,i,a].join(""),n.image=(e,r)=>{let t=s+"1337;File=inline=1";return(r=r||{}).width&&(t+=`;width=${r.width}`),r.height&&(t+=`;height=${r.height}`),!1===r.preserveAspectRatio&&(t+=";preserveAspectRatio=0"),t+":"+e.toString("base64")+a},n.iTerm={},n.iTerm.setCwd=e=>s+"50;CurrentDir="+(e||process.cwd())+a},function(e,r,t){"use strict";const n=t(22);let o=!1;r.show=e=>{const r=e||process.stderr;r.isTTY&&(o=!1,r.write("[?25h"))},r.hide=e=>{const r=e||process.stderr;r.isTTY&&(n(),o=!0,r.write("[?25l"))},r.toggle=(e,t)=>{void 0!==e&&(o=e),o?r.show(t):r.hide(t)}},function(e,r,t){"use strict";const n=t(23),o=t(25);e.exports=n(()=>{o(()=>{process.stderr.write("[?25h")},{alwaysLast:!0})})},function(e,r,t){"use strict";const n=t(24);e.exports=(e,r)=>{if(!0===r)throw new TypeError("The second argument is now an options object");if("function"!=typeof e)throw new TypeError("Expected a function");let t;r=r||{};let o=!1;const s=e.displayName||e.name||"<anonymous>",a=function(){if(o){if(!0===r.throw)throw new Error(`Function \`${s}\` can only be called once`);return t}return o=!0,t=e.apply(this,arguments),e=null,t};return n(a,e),a}},function(e,r,t){"use strict";e.exports=(e,r)=>{for(const t of Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r)))Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));return e}},function(e,r,t){var n,o=t(26),s=t(27),a=t(28);function i(){u&&(u=!1,s.forEach(function(e){try{process.removeListener(e,c[e])}catch(e){}}),process.emit=_,process.reallyExit=p,n.count-=1)}function l(e,r,t){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,r,t))}"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,r){o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===u&&f();var t="exit";r&&r.alwaysLast&&(t="afterexit");return n.on(t,e),function(){n.removeListener(t,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&i()}},e.exports.unload=i;var c={};s.forEach(function(e){c[e]=function(){process.listeners(e).length===n.count&&(i(),l("exit",null,e),l("afterexit",null,e),process.kill(process.pid,e))}}),e.exports.signals=function(){return s},e.exports.load=f;var u=!1;function f(){u||(u=!0,n.count+=1,s=s.filter(function(e){try{return process.on(e,c[e]),!0}catch(e){return!1}}),process.emit=g,process.reallyExit=h)}var p=process.reallyExit;function h(e){process.exitCode=e||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),p.call(process,process.exitCode)}var _=process.emit;function g(e,r){if("exit"===e){void 0!==r&&(process.exitCode=r);var t=_.apply(this,arguments);return l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),t}return _.apply(this,arguments)}},function(e,r){e.exports=require("assert")},function(e,r){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")},function(e,r){e.exports=require("events")},function(e,r,t){"use strict";const n=t(30),o=t(4),s=new Set(["","›"]),a=new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[90,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49]]),i=e=>`${s.values().next().value}[${e}m`,l=(e,r,t)=>{const a=Array.from(r);let i=!1,l=n(o(e[e.length-1]));for(const r of a.entries()){const o=r[0],c=r[1],u=n(c);if(l+u<=t?e[e.length-1]+=c:(e.push(c),l=0),s.has(c))i=!0;else if(i&&"m"===c){i=!1;continue}i||(l+=u)===t&&o<a.length-1&&(e.push(""),l=0)}!l&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},c=(e,r,t)=>{const o=t||{};if(""===e.trim())return!1===o.trim?e:e.trim();let c,u="",f="";const p=(e=>e.split(" ").map(e=>n(e)))(e),h=e.split(" "),_=[""];for(const e of Array.from(h).entries()){const t=e[0],s=e[1];_[_.length-1]=!1===o.trim?_[_.length-1]:_[_.length-1].trim();let a=n(_[_.length-1]);if((a||""===s)&&(a===r&&!1===o.wordWrap&&(_.push(""),a=0),_[_.length-1]+=" ",a++),p[t]>r&&o.hard)a&&_.push(""),l(_,s,r);else{if(a+p[t]>r&&a>0){if(!1===o.wordWrap&&a<r){l(_,s,r);continue}_.push("")}a+p[t]>r&&!1===o.wordWrap?l(_,s,r):_[_.length-1]+=s}}u=_.map(e=>!1===o.trim?e:e.trim()).join("\n");for(const e of Array.from(u).entries()){const r=e[0],t=e[1];if(f+=t,s.has(t)){const e=parseFloat(/\d[^m]*/.exec(u.slice(r,r+4)));c=39===e?null:e}const n=a.get(Number(c));c&&n&&("\n"===u[r+1]?f+=i(n):"\n"===t&&(f+=i(c)))}return f};e.exports=(e,r,t)=>String(e).normalize().split("\n").map(e=>c(e,r,t)).join("\n")},function(e,r,t){"use strict";const n=t(4),o=t(32);e.exports=e=>{if("string"!=typeof e||0===e.length)return 0;e=n(e);let r=0;for(let t=0;t<e.length;t++){const n=e.codePointAt(t);n<=31||n>=127&&n<=159||(n>=768&&n<=879||(n>65535&&t++,r+=o(n)?2:1))}return r}},function(e,r,t){"use strict";e.exports=()=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(e,"g")}},function(e,r,t){"use strict";e.exports=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141))},function(e,r){e.exports=require("tty")},function(e,r,t){"use strict";var n=t(2);e.exports=function(){if("Windows_NT"==n.type())return!1;var e=process.env.LC_ALL||process.env.LC_CTYPE||process.env.LANG;return/UTF-?8$/i.test(e)}}]); //# sourceMappingURL=index.bundle.js.map