create-turbo 1.10.16-canary.1 → 1.10.16

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -10,4 +10,4 @@ npx create-turbo@latest
10
10
 
11
11
  Then follow the prompts you see in your terminal.
12
12
 
13
- For more information about Turborepo, [visit turbo.build/repo](https://turbo.build/repo) and follow us on Twitter ([@turborepo](https://twitter.com/turborepo))!
13
+ For more information about Turborepo, [visit turbo.build/repo](https://turbo.build/repo) and follow us on X ([@turborepo](https://x.com/turborepo))!
package/dist/cli.js CHANGED
@@ -14,7 +14,7 @@ ${n.message}`:y,g=[_,r,e].filter(Boolean).join(`
14
14
  `.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),p5=re((e,r)=>{"use strict";Z();var t=he("path"),n=eh(),i=l=>{l={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...l};let a,o=t.resolve(l.cwd),s=[];for(;a!==o;)s.push(t.join(o,"node_modules/.bin")),a=o,o=t.resolve(o,"..");let f=t.resolve(l.cwd,l.execPath,"..");return s.push(f),s.concat(l.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=l=>{l={env:process.env,...l};let a={...l.env},o=n({env:a});return l.path=a[o],a[o]=r.exports(l),a}}),d5=re(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),th=re(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let l=i-n+1;return Array.from({length:l},t)};e.getRealtimeSignals=r;var t=function(l,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),m5=re(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=he("os"),t=d5(),n=th(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(l)};e.getSignals=i;var l=function({name:a,number:o,description:s,action:f,forced:c=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:o,description:s,supported:d,action:f,forced:c,standard:h}}}),y5=re(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=he("os"),t=m5(),n=th(),i=function(){return(0,t.getSignals)().reduce(l,{})},l=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var o=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>s(y,h));return Object.assign({},...d)},s=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},c=o();e.signalsByNumber=c}),g5=re((e,r)=>{"use strict";Z();var{signalsByName:t}=y5(),n=({timedOut:l,timeout:a,errorCode:o,signal:s,signalDescription:f,exitCode:c,isCanceled:h})=>l?`timed out after ${a} milliseconds`:h?"was canceled":o!==void 0?`failed with ${o}`:s!==void 0?`was killed with ${s} (${f})`:c!==void 0?`failed with exit code ${c}`:"failed",i=({stdout:l,stderr:a,all:o,error:s,signal:f,exitCode:c,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{c=c===null?void 0:c,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=s&&s.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:c,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(s)==="[object Error]",v=E?`${S}
15
15
  ${s.message}`:S,m=[v,a,l].filter(Boolean).join(`
16
16
  `);return E?(s.originalMessage=s.message,s.message=m):s=new Error(m),s.shortMessage=v,s.command=h,s.escapedCommand=u,s.exitCode=c,s.signal=f,s.signalDescription=_,s.stdout=l,s.stderr=a,o!==void 0&&(s.all=o),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=!!d,s.isCanceled=p,s.killed=y&&!d,s};r.exports=i}),b5=re((e,r)=>{"use strict";Z();var t=["stdin","stdout","stderr"],n=l=>t.some(a=>l[a]!==void 0),i=l=>{if(!l)return;let{stdio:a}=l;if(a===void 0)return t.map(s=>l[s]);if(n(l))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(s=>`\`${s}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let o=Math.max(a.length,t.length);return Array.from({length:o},(s,f)=>a[f])};r.exports=i,r.exports.node=l=>{let a=i(l);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),v5=re((e,r)=>{"use strict";Z();var t=he("os"),n=ji(),i=1e3*5,l=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!o(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},o=(y,{forceKillAfterTimeout:b},_)=>s(y)&&b!==!1&&_,s=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},c=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:l,spawnedCancel:c,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),_5=re((e,r)=>{"use strict";Z();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),w5=re((e,r)=>{"use strict";Z();var{PassThrough:t}=he("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:l}=n,a=l==="buffer",o=!1;i?o=!(l||a):l=l||"utf8",a&&(l=null);let s=new t({objectMode:o});l&&s.setEncoding(l);let f=0,c=[];return s.on("data",h=>{c.push(h),o?f=c.length:f+=h.length}),s.getBufferedValue=()=>i?c:a?Buffer.concat(c,f):c.join(""),s.getBufferedLength=()=>f,s}}),E5=re((e,r)=>{"use strict";Z();var{constants:t}=he("buffer"),n=he("stream"),{promisify:i}=he("util"),l=w5(),a=i(n.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function s(f,c){if(!f)throw new Error("Expected a stream");c={maxBuffer:1/0,...c};let{maxBuffer:h}=c,u=l(c);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new o)})}),u.getBufferedValue()}r.exports=s,r.exports.buffer=(f,c)=>s(f,{...c,encoding:"buffer"}),r.exports.array=(f,c)=>s(f,{...c,array:!0}),r.exports.MaxBufferError=o}),S5=re((e,r)=>{"use strict";Z();var{PassThrough:t}=he("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=l,i.isEmpty=a,i.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(l),i;function l(s){return Array.isArray(s)?(s.forEach(l),this):(n.push(s),s.once("end",o.bind(null,s)),s.once("error",i.emit.bind(i,"error")),s.pipe(i,{end:!1}),this)}function a(){return n.length==0}function o(s){n=n.filter(function(f){return f!==s}),!n.length&&i.readable&&i.end()}}}),x5=re((e,r)=>{"use strict";Z();var t=_5(),n=E5(),i=S5(),l=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},o=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},s=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=s(h,{encoding:p,buffer:y,maxBuffer:b}),S=s(u,{encoding:p,buffer:y,maxBuffer:b}),E=s(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},o(h,g),o(u,S),o(d,E)])}},c=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:l,makeAllStream:a,getSpawnedResult:f,validateInputSync:c}}),A5=re((e,r)=>{"use strict";Z();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,o)=>{for(let[s,f]of n){let c=typeof o=="function"?(...h)=>Reflect.apply(f.value,o(),h):f.value.bind(o);Reflect.defineProperty(a,s,{...f,value:c})}return a},l=a=>new Promise((o,s)=>{a.on("exit",(f,c)=>{o({exitCode:f,signal:c})}),a.on("error",f=>{s(f)}),a.stdin&&a.stdin.on("error",f=>{s(f)})});r.exports={mergePromise:i,getSpawnedPromise:l}}),k5=re((e,r)=>{"use strict";Z();var t=(c,h=[])=>Array.isArray(h)?[c,...h]:[c],n=/^[\w.-]+$/,i=/"/g,l=c=>typeof c!="string"||n.test(c)?c:`"${c.replace(i,'\\"')}"`,a=(c,h)=>t(c,h).join(" "),o=(c,h)=>t(c,h).map(u=>l(u)).join(" "),s=/ +/g,f=c=>{let h=[];for(let u of c.trim().split(s)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:o,parseCommand:f}}),C5=re((e,r)=>{"use strict";Z();var t=he("path"),n=he("child_process"),i=h5(),l=f5(),a=p5(),o=Ni(),s=g5(),f=b5(),{spawnedKill:c,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=v5(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=x5(),{mergePromise:S,getSpawnedPromise:E}=A5(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=k5(),x=1e3*1e3*100,A=({env:D,extendEnv:T,preferLocal:B,localDir:M,execPath:L})=>{let H=T?{...process.env,...D}:D;return B?a.env({env:H,cwd:M,execPath:L}):H},C=(D,T,B={})=>{let M=i._parse(D,T,B);return D=M.command,T=M.args,B=M.options,B={maxBuffer:x,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:B.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...B},B.env=A(B),B.stdio=f(B),process.platform==="win32"&&t.basename(D,".exe")==="cmd"&&T.unshift("/q"),{file:D,args:T,options:B,parsed:M}},P=(D,T,B)=>typeof T!="string"&&!Buffer.isBuffer(T)?B===void 0?void 0:"":D.stripFinalNewline?l(T):T,F=(D,T,B)=>{let M=C(D,T,B),L=v(D,T),H=w(D,T);d(M.options);let z;try{z=n.spawn(M.file,M.args,M.options)}catch(U){let Q=new n.ChildProcess,j=Promise.reject(s({error:U,stdout:"",stderr:"",all:"",command:L,escapedCommand:H,parsed:M,timedOut:!1,isCanceled:!1,killed:!1}));return S(Q,j)}let ee=E(z),I=u(z,M.options,ee),N=p(z,M.options,I),O={isCanceled:!1};z.kill=c.bind(null,z.kill.bind(z)),z.cancel=h.bind(null,z,O);let V=o(async()=>{let[{error:U,exitCode:Q,signal:j,timedOut:W},te,le,ue]=await b(z,M.options,N),Y=P(M.options,te),ie=P(M.options,le),R=P(M.options,ue);if(U||Q!==0||j!==null){let G=s({error:U,exitCode:Q,signal:j,stdout:Y,stderr:ie,all:R,command:L,escapedCommand:H,parsed:M,timedOut:W,isCanceled:O.isCanceled,killed:z.killed});if(!M.options.reject)return G;throw G}return{command:L,escapedCommand:H,exitCode:0,stdout:Y,stderr:ie,all:R,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(z,M.options.input),z.all=_(z,M.options),S(z,V)};r.exports=F,r.exports.sync=(D,T,B)=>{let M=C(D,T,B),L=v(D,T),H=w(D,T);g(M.options);let z;try{z=n.spawnSync(M.file,M.args,M.options)}catch(N){throw s({error:N,stdout:"",stderr:"",all:"",command:L,escapedCommand:H,parsed:M,timedOut:!1,isCanceled:!1,killed:!1})}let ee=P(M.options,z.stdout,z.error),I=P(M.options,z.stderr,z.error);if(z.error||z.status!==0||z.signal!==null){let N=s({stdout:ee,stderr:I,error:z.error,signal:z.signal,exitCode:z.status,command:L,escapedCommand:H,parsed:M,timedOut:z.error&&z.error.code==="ETIMEDOUT",isCanceled:!1,killed:z.signal!==null});if(!M.options.reject)return N;throw N}return{command:L,escapedCommand:H,exitCode:0,stdout:ee,stderr:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(D,T)=>{let[B,...M]=m(D);return F(B,M,T)},r.exports.commandSync=(D,T)=>{let[B,...M]=m(D);return F.sync(B,M,T)},r.exports.node=(D,T,B={})=>{T&&!Array.isArray(T)&&typeof T=="object"&&(B=T,T=[]);let M=f.node(B),L=process.execArgv.filter(ee=>!ee.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:z=L}=B;return F(H,[...z,D,...Array.isArray(T)?T:[]],{...B,stdin:void 0,stdout:void 0,stderr:void 0,stdio:M,shell:!1})}});Z();var D5=$e(C5());async function $i(e,r=[],t){let n={cwd:rh.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...t};try{let{stdout:i}=await(0,D5.default)(e,r,n);return i.trim()}catch{return}}async function qn(){let[e,r,t,n]=await Promise.all([$i("yarnpkg",["--version"]),$i("npm",["--version"]),$i("pnpm",["--version"]),$i("bun",["--version"])]);return{yarn:e,pnpm:t,npm:r,bun:n}}Z();var R5=re((e,r)=>{"use strict";Z();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),O5=re((e,r)=>{"use strict";Z(),r.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]}}),nh=re((e,r)=>{Z();var t=O5(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,l=r.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(s in l)if(l.hasOwnProperty(s)){if(!("channels"in l[s]))throw new Error("missing channels property: "+s);if(!("labels"in l[s]))throw new Error("missing channel labels property: "+s);if(l[s].labels.length!==l[s].channels)throw new Error("channel and label counts mismatch: "+s);a=l[s].channels,o=l[s].labels,delete l[s].channels,delete l[s].labels,Object.defineProperty(l[s],"channels",{value:a}),Object.defineProperty(l[s],"labels",{value:o})}var a,o,s;l.rgb.hsl=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},l.rgb.hsv=function(c){var h,u,d,p,y,b=c[0]/255,_=c[1]/255,g=c[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},l.rgb.hwb=function(c){var h=c[0],u=c[1],d=c[2],p=l.rgb.hsl(c)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},l.rgb.cmyk=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(c,h){return Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)+Math.pow(c[2]-h[2],2)}l.rgb.keyword=function(c){var h=n[c];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(c,y);b<u&&(u=b,d=p)}return d},l.keyword.rgb=function(c){return t[c]},l.rgb.xyz=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},l.rgb.lab=function(c){var h=l.rgb.xyz(c),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},l.hsl.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},l.hsl.hsv=function(c){var h=c[0],u=c[1]/100,d=c[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},l.hsv.rgb=function(c){var h=c[0]/60,u=c[1]/100,d=c[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},l.hsv.hsl=function(c){var h=c[0],u=c[1]/100,d=c[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},l.hwb.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},l.cmyk.rgb=function(c){var h=c[0]/100,u=c[1]/100,d=c[2]/100,p=c[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},l.xyz.rgb=function(c){var h=c[0]/100,u=c[1]/100,d=c[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},l.xyz.lab=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},l.lab.xyz=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},l.lab.lch=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},l.lch.lab=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},l.rgb.ansi16=function(c){var h=c[0],u=c[1],d=c[2],p=1 in arguments?arguments[1]:l.rgb.hsv(c)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},l.hsv.ansi16=function(c){return l.rgb.ansi16(l.hsv.rgb(c),c[2])},l.rgb.ansi256=function(c){var h=c[0],u=c[1],d=c[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},l.ansi16.rgb=function(c){var h=c%10;if(h===0||h===7)return c>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(c>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},l.ansi256.rgb=function(c){if(c>=232){var h=(c-232)*10+8;return[h,h,h]}c-=16;var u,d=Math.floor(c/36)/5*255,p=Math.floor((u=c%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},l.rgb.hex=function(c){var h=((Math.round(c[0])&255)<<16)+((Math.round(c[1])&255)<<8)+(Math.round(c[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},l.hex.rgb=function(c){var h=c.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},l.rgb.hcg=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},l.hsl.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[c[0],d*100,p*100]},l.hsv.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[c[0],d*100,p*100]},l.hcg.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},l.hcg.hsv=function(c){var h=c[1]/100,u=c[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[c[0],p*100,d*100]},l.hcg.hsl=function(c){var h=c[1]/100,u=c[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[c[0],p*100,d*100]},l.hcg.hwb=function(c){var h=c[1]/100,u=c[2]/100,d=h+u*(1-h);return[c[0],(d-h)*100,(1-d)*100]},l.hwb.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[c[0],p*100,y*100]},l.apple.rgb=function(c){return[c[0]/65535*255,c[1]/65535*255,c[2]/65535*255]},l.rgb.apple=function(c){return[c[0]/255*65535,c[1]/255*65535,c[2]/255*65535]},l.gray.rgb=function(c){return[c[0]/100*255,c[0]/100*255,c[0]/100*255]},l.gray.hsl=l.gray.hsv=function(c){return[0,0,c[0]]},l.gray.hwb=function(c){return[0,100,c[0]]},l.gray.cmyk=function(c){return[0,0,0,c[0]]},l.gray.lab=function(c){return[c[0],0,0]},l.gray.hex=function(c){var h=Math.round(c[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},l.rgb.gray=function(c){var h=(c[0]+c[1]+c[2])/3;return[h/255*100]}}),T5=re((e,r)=>{Z();var t=nh();function n(){for(var o={},s=Object.keys(t),f=s.length,c=0;c<f;c++)o[s[c]]={distance:-1,parent:null};return o}function i(o){var s=n(),f=[o];for(s[o].distance=0;f.length;)for(var c=f.pop(),h=Object.keys(t[c]),u=h.length,d=0;d<u;d++){var p=h[d],y=s[p];y.distance===-1&&(y.distance=s[c].distance+1,y.parent=c,f.unshift(p))}return s}function l(o,s){return function(f){return s(o(f))}}function a(o,s){for(var f=[s[o].parent,o],c=t[s[o].parent][o],h=s[o].parent;s[h].parent;)f.unshift(s[h].parent),c=l(t[s[h].parent][h],c),h=s[h].parent;return c.conversion=f,c}r.exports=function(o){for(var s=i(o),f={},c=Object.keys(s),h=c.length,u=0;u<h;u++){var d=c[u],p=s[d];p.parent!==null&&(f[d]=a(d,s))}return f}}),F5=re((e,r)=>{Z();var t=nh(),n=T5(),i={},l=Object.keys(t);function a(s){var f=function(c){return c==null?c:(arguments.length>1&&(c=Array.prototype.slice.call(arguments)),s(c))};return"conversion"in s&&(f.conversion=s.conversion),f}function o(s){var f=function(c){if(c==null)return c;arguments.length>1&&(c=Array.prototype.slice.call(arguments));var h=s(c);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in s&&(f.conversion=s.conversion),f}l.forEach(function(s){i[s]={},Object.defineProperty(i[s],"channels",{value:t[s].channels}),Object.defineProperty(i[s],"labels",{value:t[s].labels});var f=n(s),c=Object.keys(f);c.forEach(function(h){var u=f[h];i[s][h]=o(u),i[s][h].raw=a(u)})}),r.exports=i}),P5=re((e,r)=>{"use strict";Z();var t=F5(),n=(o,s)=>function(){return`\x1B[${o.apply(t,arguments)+s}m`},i=(o,s)=>function(){let f=o.apply(t,arguments);return`\x1B[${38+s};5;${f}m`},l=(o,s)=>function(){let f=o.apply(t,arguments);return`\x1B[${38+s};2;${f[0]};${f[1]};${f[2]}m`};function a(){let o=new Map,s={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]}};s.color.grey=s.color.gray;for(let h of Object.keys(s)){let u=s[h];for(let d of Object.keys(u)){let p=u[d];s[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=s[d],o.set(p[0],p[1])}Object.defineProperty(s,h,{value:u,enumerable:!1}),Object.defineProperty(s,"codes",{value:o,enumerable:!1})}let f=h=>h,c=(h,u,d)=>[h,u,d];s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi={ansi:n(f,0)},s.color.ansi256={ansi256:i(f,0)},s.color.ansi16m={rgb:l(c,0)},s.bgColor.ansi={ansi:n(f,10)},s.bgColor.ansi256={ansi256:i(f,10)},s.bgColor.ansi16m={rgb:l(c,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(s.color.ansi[h]=n(u.ansi16,0),s.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(s.color.ansi256[h]=i(u.ansi256,0),s.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(s.color.ansi16m[h]=l(u.rgb,0),s.bgColor.ansi16m[h]=l(u.rgb,10))}return s}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),B5=re((e,r)=>{"use strict";Z(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",l=n.indexOf(i+t),a=n.indexOf("--");return l!==-1&&(a===-1?!0:l<a)}}),L5=re((e,r)=>{"use strict";Z();var t=he("os"),n=B5(),i=process.env,l;n("no-color")||n("no-colors")||n("color=false")?l=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(l=!0),"FORCE_COLOR"in i&&(l=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function o(f){if(l===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&l!==!0)return 0;let c=l?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:c;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,c)}function s(f){let c=o(f);return a(c)}r.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}}),I5=re((e,r)=>{"use strict";Z();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,l=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
17
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(l,(_,g,S)=>g?o(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Rr=re((e,r)=>{"use strict";Z();var t=R5(),n=P5(),i=L5().stdout,l=I5(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),f=Object.create(null);function c(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return c(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}c(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))s.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[o[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(s.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[o[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return l(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports});var M5=re((e,r)=>{Z();var t=he("constants"),n=process.cwd,i=null,l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(s){i=null,a.call(process,s)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=o;function o(s){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(s),s.lutimes||c(s),s.chown=d(s.chown),s.fchown=d(s.fchown),s.lchown=d(s.lchown),s.chmod=h(s.chmod),s.fchmod=h(s.fchmod),s.lchmod=h(s.lchmod),s.chownSync=p(s.chownSync),s.fchownSync=p(s.fchownSync),s.lchownSync=p(s.lchownSync),s.chmodSync=u(s.chmodSync),s.fchmodSync=u(s.fchmodSync),s.lchmodSync=u(s.lchmodSync),s.stat=y(s.stat),s.fstat=y(s.fstat),s.lstat=y(s.lstat),s.statSync=b(s.statSync),s.fstatSync=b(s.fstatSync),s.lstatSync=b(s.lstatSync),s.chmod&&!s.lchmod&&(s.lchmod=function(g,S,E){E&&process.nextTick(E)},s.lchmodSync=function(){}),s.chown&&!s.lchown&&(s.lchown=function(g,S,E,v){v&&process.nextTick(v)},s.lchownSync=function(){}),l==="win32"&&(s.rename=typeof s.rename!="function"?s.rename:function(g){function S(E,v,m){var w=Date.now(),x=0;g(E,v,function A(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-w<6e4){setTimeout(function(){s.stat(v,function(P,F){P&&P.code==="ENOENT"?g(E,v,A):m(C)})},x),x<100&&(x+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.rename)),s.read=typeof s.read!="function"?s.read:function(g){function S(E,v,m,w,x,A){var C;if(A&&typeof A=="function"){var P=0;C=function(F,D,T){if(F&&F.code==="EAGAIN"&&P<10)return P++,g.call(s,E,v,m,w,x,C);A.apply(this,arguments)}}return g.call(s,E,v,m,w,x,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.read),s.readSync=typeof s.readSync!="function"?s.readSync:function(g){return function(S,E,v,m,w){for(var x=0;;)try{return g.call(s,S,E,v,m,w)}catch(A){if(A.code==="EAGAIN"&&x<10){x++;continue}throw A}}}(s.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(x){g.close(w,function(A){v&&v(x||A)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function c(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,x){if(w){m&&m(w);return}g.futimes(x,E,v,function(A){g.close(x,function(C){m&&m(A||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,x=!0;try{w=g.futimesSync(m,E,v),x=!1}finally{if(x)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(s,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(s,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(s,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(s,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(s,S,E,m):g.call(s,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(s,S,E):g.call(s,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),N5=re((e,r)=>{Z();var t=he("stream").Stream;r.exports=n;function n(i){return{ReadStream:l,WriteStream:a};function l(o,s){if(!(this instanceof l))return new l(o,s);t.call(this);var f=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var c=Object.keys(s),h=0,u=c.length;h<u;h++){var d=c[h];this[d]=s[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(o,s){if(!(this instanceof a))return new a(o,s);t.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var f=Object.keys(s),c=0,h=f.length;c<h;c++){var u=f[c];this[u]=s[u]}if(this.start!==void 0){if(typeof this.start!="number")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=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),j5=re((e,r)=>{"use strict";Z(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var l={__proto__:t(i)};else var l=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(l,a,Object.getOwnPropertyDescriptor(i,a))}),l}}),Me=re((e,r)=>{Z();var t=he("fs"),n=M5(),i=N5(),l=j5(),a=he("util"),o,s;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");function f(){}function c(g,S){Object.defineProperty(g,o,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
17
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(l,(_,g,S)=>g?o(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Rr=re((e,r)=>{"use strict";Z();var t=R5(),n=P5(),i=L5().stdout,l=I5(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),f=Object.create(null);function c(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return c(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}c(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))s.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[o[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(s.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[o[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return l(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports});var M5=re((e,r)=>{Z();var t=he("constants"),n=process.cwd,i=null,l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(s){i=null,a.call(process,s)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=o;function o(s){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(s),s.lutimes||c(s),s.chown=d(s.chown),s.fchown=d(s.fchown),s.lchown=d(s.lchown),s.chmod=h(s.chmod),s.fchmod=h(s.fchmod),s.lchmod=h(s.lchmod),s.chownSync=p(s.chownSync),s.fchownSync=p(s.fchownSync),s.lchownSync=p(s.lchownSync),s.chmodSync=u(s.chmodSync),s.fchmodSync=u(s.fchmodSync),s.lchmodSync=u(s.lchmodSync),s.stat=y(s.stat),s.fstat=y(s.fstat),s.lstat=y(s.lstat),s.statSync=b(s.statSync),s.fstatSync=b(s.fstatSync),s.lstatSync=b(s.lstatSync),s.chmod&&!s.lchmod&&(s.lchmod=function(g,S,E){E&&process.nextTick(E)},s.lchmodSync=function(){}),s.chown&&!s.lchown&&(s.lchown=function(g,S,E,v){v&&process.nextTick(v)},s.lchownSync=function(){}),l==="win32"&&(s.rename=typeof s.rename!="function"?s.rename:function(g){function S(E,v,m){var w=Date.now(),x=0;g(E,v,function A(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){s.stat(v,function(P,F){P&&P.code==="ENOENT"?g(E,v,A):m(C)})},x),x<100&&(x+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.rename)),s.read=typeof s.read!="function"?s.read:function(g){function S(E,v,m,w,x,A){var C;if(A&&typeof A=="function"){var P=0;C=function(F,D,T){if(F&&F.code==="EAGAIN"&&P<10)return P++,g.call(s,E,v,m,w,x,C);A.apply(this,arguments)}}return g.call(s,E,v,m,w,x,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.read),s.readSync=typeof s.readSync!="function"?s.readSync:function(g){return function(S,E,v,m,w){for(var x=0;;)try{return g.call(s,S,E,v,m,w)}catch(A){if(A.code==="EAGAIN"&&x<10){x++;continue}throw A}}}(s.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(x){g.close(w,function(A){v&&v(x||A)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function c(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,x){if(w){m&&m(w);return}g.futimes(x,E,v,function(A){g.close(x,function(C){m&&m(A||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,x=!0;try{w=g.futimesSync(m,E,v),x=!1}finally{if(x)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(s,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(s,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(s,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(s,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(s,S,E,m):g.call(s,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(s,S,E):g.call(s,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),N5=re((e,r)=>{Z();var t=he("stream").Stream;r.exports=n;function n(i){return{ReadStream:l,WriteStream:a};function l(o,s){if(!(this instanceof l))return new l(o,s);t.call(this);var f=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var c=Object.keys(s),h=0,u=c.length;h<u;h++){var d=c[h];this[d]=s[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(o,s){if(!(this instanceof a))return new a(o,s);t.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var f=Object.keys(s),c=0,h=f.length;c<h;c++){var u=f[c];this[u]=s[u]}if(this.start!==void 0){if(typeof this.start!="number")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=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),j5=re((e,r)=>{"use strict";Z(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var l={__proto__:t(i)};else var l=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(l,a,Object.getOwnPropertyDescriptor(i,a))}),l}}),Me=re((e,r)=>{Z();var t=he("fs"),n=M5(),i=N5(),l=j5(),a=he("util"),o,s;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");function f(){}function c(g,S){Object.defineProperty(g,o,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
18
18
  GFS4: `),console.error(g)}),t[o]||(u=global[o]||[],c(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,s,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,s,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[o]),he("assert").equal(t[o].length,0)}));var u;global[o]||c(global,t[o]),r.exports=d(l(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=O,g.createWriteStream=V;var S=g.readFile;g.readFile=E;function E(j,W,te){return typeof W=="function"&&(te=W,W=null),le(j,W,te);function le(ue,Y,ie,R){return S(ue,Y,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?p([le,[ue,Y,ie],G,R||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(j,W,te,le){return typeof te=="function"&&(le=te,te=null),ue(j,W,te,le);function ue(Y,ie,R,G,k){return v(Y,ie,R,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=x);function x(j,W,te,le){return typeof te=="function"&&(le=te,te=null),ue(j,W,te,le);function ue(Y,ie,R,G,k){return w(Y,ie,R,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=C);function C(j,W,te,le){return typeof te=="function"&&(le=te,te=0),ue(j,W,te,le);function ue(Y,ie,R,G,k){return A(Y,ie,R,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var P=g.readdir;g.readdir=D;var F=/^v[0-5]\./;function D(j,W,te){typeof W=="function"&&(te=W,W=null);var le=F.test(process.version)?function(Y,ie,R,G){return P(Y,ue(Y,ie,R,G))}:function(Y,ie,R,G){return P(Y,ie,ue(Y,ie,R,G))};return le(j,W,te);function ue(Y,ie,R,G){return function(k,q){k&&(k.code==="EMFILE"||k.code==="ENFILE")?p([le,[Y,ie,R],k,G||Date.now(),Date.now()]):(q&&q.sort&&q.sort(),typeof R=="function"&&R.call(this,k,q))}}}if(process.version.substr(0,4)==="v0.8"){var T=i(g);z=T.ReadStream,I=T.WriteStream}var B=g.ReadStream;B&&(z.prototype=Object.create(B.prototype),z.prototype.open=ee);var M=g.WriteStream;M&&(I.prototype=Object.create(M.prototype),I.prototype.open=N),Object.defineProperty(g,"ReadStream",{get:function(){return z},set:function(j){z=j},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return I},set:function(j){I=j},enumerable:!0,configurable:!0});var L=z;Object.defineProperty(g,"FileReadStream",{get:function(){return L},set:function(j){L=j},enumerable:!0,configurable:!0});var H=I;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(j){H=j},enumerable:!0,configurable:!0});function z(j,W){return this instanceof z?(B.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function ee(){var j=this;Q(j.path,j.flags,j.mode,function(W,te){W?(j.autoClose&&j.destroy(),j.emit("error",W)):(j.fd=te,j.emit("open",te),j.read())})}function I(j,W){return this instanceof I?(M.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function N(){var j=this;Q(j.path,j.flags,j.mode,function(W,te){W?(j.destroy(),j.emit("error",W)):(j.fd=te,j.emit("open",te))})}function O(j,W){return new g.ReadStream(j,W)}function V(j,W){return new g.WriteStream(j,W)}var U=g.open;g.open=Q;function Q(j,W,te,le){return typeof te=="function"&&(le=te,te=null),ue(j,W,te,le);function ue(Y,ie,R,G,k){return U(Y,ie,R,function(q,X){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[o].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[o].length;++S)t[o][S].length>2&&(t[o][S][3]=g,t[o][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[o].length!==0){var g=t[o].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var x=E.pop();typeof x=="function"&&x.call(null,v)}else{var A=Date.now()-w,C=Math.max(w-m,1),P=Math.min(C*1.2,100);A>=P?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[o].push(g)}y===void 0&&(y=setTimeout(_,0))}}});var bt=re(e=>{"use strict";Z(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(l,a)=>l!=null?i(l):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),Vr=re(e=>{"use strict";Z();var r=bt().fromCallback,t=Me(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,l){return typeof l=="function"?t.exists(i,l):new Promise(a=>t.exists(i,a))},e.read=function(i,l,a,o,s,f){return typeof f=="function"?t.read(i,l,a,o,s,f):new Promise((c,h)=>{t.read(i,l,a,o,s,(u,d,p)=>{if(u)return h(u);c({bytesRead:d,buffer:p})})})},e.write=function(i,l,...a){return typeof a[a.length-1]=="function"?t.write(i,l,...a):new Promise((o,s)=>{t.write(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffer:h})})})},e.readv=function(i,l,...a){return typeof a[a.length-1]=="function"?t.readv(i,l,...a):new Promise((o,s)=>{t.readv(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesRead:c,buffers:h})})})},e.writev=function(i,l,...a){return typeof a[a.length-1]=="function"?t.writev(i,l,...a):new Promise((o,s)=>{t.writev(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),$5=re((e,r)=>{"use strict";Z();var t=he("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),H5=re((e,r)=>{"use strict";Z();var t=Vr(),{checkPath:n}=$5(),i=l=>typeof l=="number"?l:{...{mode:511},...l}.mode;r.exports.makeDir=async(l,a)=>(n(l),t.mkdir(l,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(l,a)=>(n(l),t.mkdirSync(l,{mode:i(a),recursive:!0}))}),Ft=re((e,r)=>{"use strict";Z();var t=bt().fromPromise,{makeDir:n,makeDirSync:i}=H5(),l=t(n);r.exports={mkdirs:l,mkdirsSync:i,mkdirp:l,mkdirpSync:i,ensureDir:l,ensureDirSync:i}}),Or=re((e,r)=>{"use strict";Z();var t=bt().fromPromise,n=Vr();function i(l){return n.access(l).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),ih=re((e,r)=>{"use strict";Z();var t=Me();function n(l,a,o,s){t.open(l,"r+",(f,c)=>{if(f)return s(f);t.futimes(c,a,o,h=>{t.close(c,u=>{s&&s(h||u)})})})}function i(l,a,o){let s=t.openSync(l,"r+");return t.futimesSync(s,a,o),t.closeSync(s)}r.exports={utimesMillis:n,utimesMillisSync:i}}),Kr=re((e,r)=>{"use strict";Z();var t=Vr(),n=he("path"),i=he("util");function l(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function o(p,y,b,_,g){i.callbackify(l)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),x=n.basename(y);return b==="move"&&w!==x&&w.toLowerCase()===x.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function s(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function c(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return c(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:o,checkPathsSync:s,checkParentPaths:f,checkParentPathsSync:c,isSrcSubdir:u,areIdentical:h}}),q5=re((e,r)=>{"use strict";Z();var t=Me(),n=he("path"),i=Ft().mkdirs,l=Or().pathExists,a=ih().utimesMillis,o=Kr();function s(F,D,T,B){typeof T=="function"&&!B?(B=T,T={}):typeof T=="function"&&(T={filter:T}),B=B||function(){},T=T||{},T.clobber="clobber"in T?!!T.clobber:!0,T.overwrite="overwrite"in T?!!T.overwrite:T.clobber,T.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
19
19
 
20
20
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),o.checkPaths(F,D,"copy",T,(M,L)=>{if(M)return B(M);let{srcStat:H,destStat:z}=L;o.checkParentPaths(F,H,D,"copy",ee=>{if(ee)return B(ee);c(F,D,T,(I,N)=>{if(I)return B(I);if(!N)return B();f(z,F,D,T,B)})})})}function f(F,D,T,B,M){let L=n.dirname(T);l(L,(H,z)=>{if(H)return M(H);if(z)return h(F,D,T,B,M);i(L,ee=>ee?M(ee):h(F,D,T,B,M))})}function c(F,D,T,B){if(!T.filter)return B(null,!0);Promise.resolve(T.filter(F,D)).then(M=>B(null,M),M=>B(M))}function h(F,D,T,B,M){(B.dereference?t.stat:t.lstat)(D,(L,H)=>L?M(L):H.isDirectory()?v(H,F,D,T,B,M):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,F,D,T,B,M):H.isSymbolicLink()?C(F,D,T,B,M):H.isSocket()?M(new Error(`Cannot copy a socket file: ${D}`)):H.isFIFO()?M(new Error(`Cannot copy a FIFO pipe: ${D}`)):M(new Error(`Unknown file: ${D}`)))}function u(F,D,T,B,M,L){return D?d(F,T,B,M,L):p(F,T,B,M,L)}function d(F,D,T,B,M){if(B.overwrite)t.unlink(T,L=>L?M(L):p(F,D,T,B,M));else return B.errorOnExist?M(new Error(`'${T}' already exists`)):M()}function p(F,D,T,B,M){t.copyFile(D,T,L=>L?M(L):B.preserveTimestamps?y(F.mode,D,T,M):S(T,F.mode,M))}function y(F,D,T,B){return b(F)?_(T,F,M=>M?B(M):g(F,D,T,B)):g(F,D,T,B)}function b(F){return(F&128)===0}function _(F,D,T){return S(F,D|128,T)}function g(F,D,T,B){E(D,T,M=>M?B(M):S(T,F,B))}function S(F,D,T){return t.chmod(F,D,T)}function E(F,D,T){t.stat(F,(B,M)=>B?T(B):a(D,M.atime,M.mtime,T))}function v(F,D,T,B,M,L){return D?w(T,B,M,L):m(F.mode,T,B,M,L)}function m(F,D,T,B,M){t.mkdir(T,L=>{if(L)return M(L);w(D,T,B,H=>H?M(H):S(T,F,M))})}function w(F,D,T,B){t.readdir(F,(M,L)=>M?B(M):x(L,F,D,T,B))}function x(F,D,T,B,M){let L=F.pop();return L?A(F,L,D,T,B,M):M()}function A(F,D,T,B,M,L){let H=n.join(T,D),z=n.join(B,D);c(H,z,M,(ee,I)=>{if(ee)return L(ee);if(!I)return x(F,T,B,M,L);o.checkPaths(H,z,"copy",M,(N,O)=>{if(N)return L(N);let{destStat:V}=O;h(V,H,z,M,U=>U?L(U):x(F,T,B,M,L))})})}function C(F,D,T,B,M){t.readlink(D,(L,H)=>{if(L)return M(L);if(B.dereference&&(H=n.resolve(process.cwd(),H)),F)t.readlink(T,(z,ee)=>z?z.code==="EINVAL"||z.code==="UNKNOWN"?t.symlink(H,T,M):M(z):(B.dereference&&(ee=n.resolve(process.cwd(),ee)),o.isSrcSubdir(H,ee)?M(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${ee}'.`)):o.isSrcSubdir(ee,H)?M(new Error(`Cannot overwrite '${ee}' with '${H}'.`)):P(H,T,M)));else return t.symlink(H,T,M)})}function P(F,D,T){t.unlink(D,B=>B?T(B):t.symlink(F,D,T))}r.exports=s}),G5=re((e,r)=>{"use strict";Z();var t=Me(),n=he("path"),i=Ft().mkdirsSync,l=ih().utimesMillisSync,a=Kr();function o(w,x,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -83,7 +83,7 @@ Downloading files${t?"":` for example ${ar.default.cyan(r)}`}. This might take a
83
83
  `+e.slice(i,l),i=l+1),a=o;return s+=`
84
84
  `,e.length-i>r&&a>i?s+=e.slice(i,a)+`
85
85
  `+e.slice(a+1):s+=e.slice(i),s.slice(1)}function tx(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=Qn(e,i),n=nt[t],!n&&ri(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||WS(t);return r}function rx(e,r,t){var n="",i=e.tag,l,a,o;for(l=0,a=t.length;l<a;l+=1)o=t[l],e.replacer&&(o=e.replacer.call(t,String(l),o)),(Xt(e,r,o,!1,!1)||typeof o>"u"&&Xt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function pf(e,r,t,n){var i="",l=e.tag,a,o,s;for(a=0,o=t.length;a<o;a+=1)s=t[a],e.replacer&&(s=e.replacer.call(t,String(a),s)),(Xt(e,r+1,s,!0,!0,!1,!0)||typeof s>"u"&&Xt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ya(e,r)),e.dump&&ei===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function nx(e,r,t){var n="",i=e.tag,l=Object.keys(t),a,o,s,f,c;for(a=0,o=l.length;a<o;a+=1)c="",n!==""&&(c+=", "),e.condenseFlow&&(c+='"'),s=l[a],f=t[s],e.replacer&&(f=e.replacer.call(t,s,f)),Xt(e,r,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Xt(e,r,f,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function ix(e,r,t,n){var i="",l=e.tag,a=Object.keys(t),o,s,f,c,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ht("sortKeys must be a boolean or a function");for(o=0,s=a.length;o<s;o+=1)u="",(!n||i!=="")&&(u+=ya(e,r)),f=a[o],c=t[f],e.replacer&&(c=e.replacer.call(t,f,c)),Xt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&ei===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=ya(e,r)),Xt(e,r+1,c,!0,h)&&(e.dump&&ei===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=l,e.dump=i||"{}"}function df(e,r,t){var n,i,l,a,o,s;for(i=t?e.explicitTypes:e.implicitTypes,l=0,a=i.length;l<a;l+=1)if(o=i[l],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof r=="object"&&r instanceof o.instanceOf)&&(!o.predicate||o.predicate(r))){if(t?o.multi&&o.representName?e.tag=o.representName(r):e.tag=o.tag:e.tag="?",o.represent){if(s=e.styleMap[o.tag]||o.defaultStyle,If.call(o.represent)==="[object Function]")n=o.represent(r,s);else if(Mf.call(o.represent,s))n=o.represent[s](r,s);else throw new ht("!<"+o.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function Xt(e,r,t,n,i,l,a){e.tag=null,e.dump=t,df(e,t,!1)||df(e,t,!0);var o=If.call(e.dump),s=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var c=o==="[object Object]"||o==="[object Array]",h,u;if(c&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(c&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(ix(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(nx(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?pf(e,r-1,e.dump,i):pf(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(rx(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&JS(e,e.dump,r,l,s);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new ht("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function sx(e,r){var t=[],n=[],i,l;for(ba(e,t,n),i=0,l=n.length;i<l;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(l)}function ba(e,r,t){var n,i,l;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)ba(e[i],r,t);else for(n=Object.keys(e),i=0,l=n.length;i<l;i+=1)ba(e[n[i]],r,t)}function ox(e,r){r=r||{};var t=new KS(r);t.noRefs||sx(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Xt(t,0,n,!0,!0)?t.dump+`
86
- `:""}var ax=ox,ux={dump:ax};function Oa(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var _j=Lf.load,wj=Lf.loadAll,Ej=ux.dump;var Sj=Oa("safeLoad","load"),xj=Oa("safeLoadAll","loadAll"),Aj=Oa("safeDump","dump");var kj=$e($w());Z();var I8=require("proxy-agent");var rn={name:"create-turbo",version:"1.10.16-canary.1",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]};var Vf=Ie(require("chalk")),Kf=Ie(require("update-check"));var cx=(0,Kf.default)(rn).catch(()=>null);async function Ta(){try{let e=await cx;e!=null&&e.latest&&(Pe.log(),Pe.log(Vf.default.yellow.bold("A new version of `create-turbo` is available!")),Pe.log()),process.exit()}catch{}}var Ii=Ie(require("path")),tt=Ie(require("chalk"));var ky=Ie(require("os"),1),jy=require("stream"),$y=require("util"),Ur=Ie(require("path"),1),ct=require("fs-extra"),Kg=Ie(bs(),1),Yg=Ie(require("path"),1),Xg=require("fs-extra"),Zg=Ie(require("chalk"),1),nr=Ie(require("path"),1),Qg=Ie(bs(),1),At=require("fs-extra"),Jg=Ie(m1(),1);function T1(e){return typeof e=="undefined"||e===null}function oO(e){return typeof e=="object"&&e!==null}function aO(e){return Array.isArray(e)?e:T1(e)?[]:[e]}function uO(e,r){var t,n,i,l;if(r)for(l=Object.keys(r),t=0,n=l.length;t<n;t+=1)i=l[t],e[i]=r[i];return e}function lO(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function cO(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var hO=T1,fO=oO,pO=aO,dO=lO,mO=cO,yO=uO,Ye={isNothing:hO,isObject:fO,toArray:pO,repeat:dO,isNegativeZero:mO,extend:yO};function F1(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
86
+ `:""}var ax=ox,ux={dump:ax};function Oa(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var _j=Lf.load,wj=Lf.loadAll,Ej=ux.dump;var Sj=Oa("safeLoad","load"),xj=Oa("safeLoadAll","loadAll"),Aj=Oa("safeDump","dump");var kj=$e($w());Z();var I8=require("proxy-agent");var rn={name:"create-turbo",version:"1.10.16",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]};var Vf=Ie(require("chalk")),Kf=Ie(require("update-check"));var cx=(0,Kf.default)(rn).catch(()=>null);async function Ta(){try{let e=await cx;e!=null&&e.latest&&(Pe.log(),Pe.log(Vf.default.yellow.bold("A new version of `create-turbo` is available!")),Pe.log()),process.exit()}catch{}}var Ii=Ie(require("path")),tt=Ie(require("chalk"));var ky=Ie(require("os"),1),jy=require("stream"),$y=require("util"),Ur=Ie(require("path"),1),ct=require("fs-extra"),Kg=Ie(bs(),1),Yg=Ie(require("path"),1),Xg=require("fs-extra"),Zg=Ie(require("chalk"),1),nr=Ie(require("path"),1),Qg=Ie(bs(),1),At=require("fs-extra"),Jg=Ie(m1(),1);function T1(e){return typeof e=="undefined"||e===null}function oO(e){return typeof e=="object"&&e!==null}function aO(e){return Array.isArray(e)?e:T1(e)?[]:[e]}function uO(e,r){var t,n,i,l;if(r)for(l=Object.keys(r),t=0,n=l.length;t<n;t+=1)i=l[t],e[i]=r[i];return e}function lO(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function cO(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var hO=T1,fO=oO,pO=aO,dO=lO,mO=cO,yO=uO,Ye={isNothing:hO,isObject:fO,toArray:pO,repeat:dO,isNegativeZero:mO,extend:yO};function F1(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
87
87
 
88
88
  `+e.mark.snippet),n+" "+t):n}function pi(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=F1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pi.prototype=Object.create(Error.prototype);pi.prototype.constructor=pi;pi.prototype.toString=function(r){return this.name+": "+F1(this,r)};var lt=pi;function Bl(e,r,t,n,i){var l="",a="",o=Math.floor(i/2)-1;return n-r>o&&(l=" ... ",r=n-o+l.length),t-n>o&&(a=" ...",t=n+o-a.length),{str:l+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+l.length}}function Ll(e,r){return Ye.repeat(" ",r-e.length)+e}function gO(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],l,a=-1;l=t.exec(e.buffer);)i.push(l.index),n.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",s,f,c=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+c+3);for(s=1;s<=r.linesBefore&&!(a-s<0);s++)f=Bl(e.buffer,n[a-s],i[a-s],e.position-(n[a]-n[a-s]),h),o=Ye.repeat(" ",r.indent)+Ll((e.line-s+1).toString(),c)+" | "+f.str+`
89
89
  `+o;for(f=Bl(e.buffer,n[a],i[a],e.position,h),o+=Ye.repeat(" ",r.indent)+Ll((e.line+1).toString(),c)+" | "+f.str+`
@@ -134,7 +134,7 @@ ${s.message}`:S,m=[v,a,l].filter(Boolean).join(`
134
134
  `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(l,(g,S,E)=>S?o(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),dP=ne((e,r)=>{"use strict";J();var t=Fy(),{stdout:n,stderr:i}=Py(),{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:a}=fP(),{isArray:o}=Array,s=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),c=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let x=n?n.level:0;m.level=w.level===void 0?x:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return c(w,m),w.template=(...x)=>E(w.template,...x),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let x=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:x}),x}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...x){let A=b(t.color[s[w]][m](...x),t.color.close,this._styler);return _(this,A,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:x}=this;return function(...A){let C=b(t.bgColor[s[x]][m](...A),t.bgColor.close,this._styler);return _(this,C,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,x)=>{let A,C;return x===void 0?(A=m,C=w):(A=x.openAll+m,C=w+x.closeAll),{open:m,close:w,openAll:A,closeAll:C,parent:x}},_=(m,w,x)=>{let A=(...C)=>o(C[0])&&o(C[0].raw)?g(A,E(A,...C)):g(A,C.length===1?""+C[0]:C.join(" "));return Object.setPrototypeOf(A,y),A._generator=m,A._styler=w,A._isEmpty=x,A},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let x=m._styler;if(x===void 0)return w;let{openAll:A,closeAll:C}=x;if(w.indexOf("\x1B")!==-1)for(;x!==void 0;)w=l(w,x.close,x.open),x=x.parent;let P=w.indexOf(`
135
135
  `);return P!==-1&&(w=a(w,C,A,P)),A+w+C},S,E=(m,...w)=>{let[x]=w;if(!o(x)||!o(x.raw))return w.join(" ");let A=w.slice(1),C=[x.raw[0]];for(let P=1;P<x.length;P++)C.push(String(A[P-1]).replace(/[{}\\]/g,"\\$&"),String(x.raw[P]));return S===void 0&&(S=pP()),S(m,C.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),mP=ne((e,r)=>{J(),function(t){var n=/^\s+/,i=/\s+$/,l=0,a=t.round,o=t.min,s=t.max,f=t.random;function c(R,G){if(R=R||"",G=G||{},R instanceof c)return R;if(!(this instanceof c))return new c(R,G);var k=h(R);this._originalInput=R,this._r=k.r,this._g=k.g,this._b=k.b,this._a=k.a,this._roundA=a(100*this._a)/100,this._format=G.format||k.format,this._gradientType=G.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=k.ok,this._tc_id=l++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var R=this.toRgb();return(R.r*299+R.g*587+R.b*114)/1e3},getLuminance:function(){var R=this.toRgb(),G,k,q,X,se,me;return G=R.r/255,k=R.g/255,q=R.b/255,G<=.03928?X=G/12.92:X=t.pow((G+.055)/1.055,2.4),k<=.03928?se=k/12.92:se=t.pow((k+.055)/1.055,2.4),q<=.03928?me=q/12.92:me=t.pow((q+.055)/1.055,2.4),.2126*X+.7152*se+.0722*me},setAlpha:function(R){return this._a=ee(R),this._roundA=a(100*this._a)/100,this},toHsv:function(){var R=y(this._r,this._g,this._b);return{h:R.h*360,s:R.s,v:R.v,a:this._a}},toHsvString:function(){var R=y(this._r,this._g,this._b),G=a(R.h*360),k=a(R.s*100),q=a(R.v*100);return this._a==1?"hsv("+G+", "+k+"%, "+q+"%)":"hsva("+G+", "+k+"%, "+q+"%, "+this._roundA+")"},toHsl:function(){var R=d(this._r,this._g,this._b);return{h:R.h*360,s:R.s,l:R.l,a:this._a}},toHslString:function(){var R=d(this._r,this._g,this._b),G=a(R.h*360),k=a(R.s*100),q=a(R.l*100);return this._a==1?"hsl("+G+", "+k+"%, "+q+"%)":"hsla("+G+", "+k+"%, "+q+"%, "+this._roundA+")"},toHex:function(R){return _(this._r,this._g,this._b,R)},toHexString:function(R){return"#"+this.toHex(R)},toHex8:function(R){return g(this._r,this._g,this._b,this._a,R)},toHex8String:function(R){return"#"+this.toHex8(R)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(I(this._r,255)*100)+"%",g:a(I(this._g,255)*100)+"%",b:a(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(I(this._r,255)*100)+"%, "+a(I(this._g,255)*100)+"%, "+a(I(this._b,255)*100)+"%)":"rgba("+a(I(this._r,255)*100)+"%, "+a(I(this._g,255)*100)+"%, "+a(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(R){var G="#"+S(this._r,this._g,this._b,this._a),k=G,q=this._gradientType?"GradientType = 1, ":"";if(R){var X=c(R);k="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+q+"startColorstr="+G+",endColorstr="+k+")"},toString:function(R){var G=!!R;R=R||this._format;var k=!1,q=this._a<1&&this._a>=0,X=!G&&q&&(R==="hex"||R==="hex6"||R==="hex3"||R==="hex4"||R==="hex8"||R==="name");return X?R==="name"&&this._a===0?this.toName():this.toRgbString():(R==="rgb"&&(k=this.toRgbString()),R==="prgb"&&(k=this.toPercentageRgbString()),(R==="hex"||R==="hex6")&&(k=this.toHexString()),R==="hex3"&&(k=this.toHexString(!0)),R==="hex4"&&(k=this.toHex8String(!0)),R==="hex8"&&(k=this.toHex8String()),R==="name"&&(k=this.toName()),R==="hsl"&&(k=this.toHslString()),R==="hsv"&&(k=this.toHsvString()),k||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(R,G){var k=R.apply(null,[this].concat([].slice.call(G)));return this._r=k._r,this._g=k._g,this._b=k._b,this.setAlpha(k._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(R,G){return R.apply(null,[this].concat([].slice.call(G)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},c.fromRatio=function(R,G){if(typeof R=="object"){var k={};for(var q in R)R.hasOwnProperty(q)&&(q==="a"?k[q]=R[q]:k[q]=j(R[q]));R=k}return c(R,G)};function h(R){var G={r:0,g:0,b:0},k=1,q=null,X=null,se=null,me=!1,ae=!1;return typeof R=="string"&&(R=Y(R)),typeof R=="object"&&(ue(R.r)&&ue(R.g)&&ue(R.b)?(G=u(R.r,R.g,R.b),me=!0,ae=String(R.r).substr(-1)==="%"?"prgb":"rgb"):ue(R.h)&&ue(R.s)&&ue(R.v)?(q=j(R.s),X=j(R.v),G=b(R.h,q,X),me=!0,ae="hsv"):ue(R.h)&&ue(R.s)&&ue(R.l)&&(q=j(R.s),se=j(R.l),G=p(R.h,q,se),me=!0,ae="hsl"),R.hasOwnProperty("a")&&(k=R.a)),k=ee(k),{ok:me,format:R.format||ae,r:o(255,s(G.r,0)),g:o(255,s(G.g,0)),b:o(255,s(G.b,0)),a:k}}function u(R,G,k){return{r:I(R,255)*255,g:I(G,255)*255,b:I(k,255)*255}}function d(R,G,k){R=I(R,255),G=I(G,255),k=I(k,255);var q=s(R,G,k),X=o(R,G,k),se,me,ae=(q+X)/2;if(q==X)se=me=0;else{var pe=q-X;switch(me=ae>.5?pe/(2-q-X):pe/(q+X),q){case R:se=(G-k)/pe+(G<k?6:0);break;case G:se=(k-R)/pe+2;break;case k:se=(R-G)/pe+4;break}se/=6}return{h:se,s:me,l:ae}}function p(R,G,k){var q,X,se;R=I(R,360),G=I(G,100),k=I(k,100);function me(oe,ye,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?oe+(ye-oe)*6*we:we<1/2?ye:we<2/3?oe+(ye-oe)*(2/3-we)*6:oe}if(G===0)q=X=se=k;else{var ae=k<.5?k*(1+G):k+G-k*G,pe=2*k-ae;q=me(pe,ae,R+1/3),X=me(pe,ae,R),se=me(pe,ae,R-1/3)}return{r:q*255,g:X*255,b:se*255}}function y(R,G,k){R=I(R,255),G=I(G,255),k=I(k,255);var q=s(R,G,k),X=o(R,G,k),se,me,ae=q,pe=q-X;if(me=q===0?0:pe/q,q==X)se=0;else{switch(q){case R:se=(G-k)/pe+(G<k?6:0);break;case G:se=(k-R)/pe+2;break;case k:se=(R-G)/pe+4;break}se/=6}return{h:se,s:me,v:ae}}function b(R,G,k){R=I(R,360)*6,G=I(G,100),k=I(k,100);var q=t.floor(R),X=R-q,se=k*(1-G),me=k*(1-X*G),ae=k*(1-(1-X)*G),pe=q%6,oe=[k,me,se,se,ae,k][pe],ye=[ae,k,k,me,se,se][pe],we=[se,se,ae,k,k,me][pe];return{r:oe*255,g:ye*255,b:we*255}}function _(R,G,k,q){var X=[Q(a(R).toString(16)),Q(a(G).toString(16)),Q(a(k).toString(16))];return q&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(R,G,k,q,X){var se=[Q(a(R).toString(16)),Q(a(G).toString(16)),Q(a(k).toString(16)),Q(W(q))];return X&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}function S(R,G,k,q){var X=[Q(W(q)),Q(a(R).toString(16)),Q(a(G).toString(16)),Q(a(k).toString(16))];return X.join("")}c.equals=function(R,G){return!R||!G?!1:c(R).toRgbString()==c(G).toRgbString()},c.random=function(){return c.fromRatio({r:f(),g:f(),b:f()})};function E(R,G){G=G===0?0:G||10;var k=c(R).toHsl();return k.s-=G/100,k.s=N(k.s),c(k)}function v(R,G){G=G===0?0:G||10;var k=c(R).toHsl();return k.s+=G/100,k.s=N(k.s),c(k)}function m(R){return c(R).desaturate(100)}function w(R,G){G=G===0?0:G||10;var k=c(R).toHsl();return k.l+=G/100,k.l=N(k.l),c(k)}function x(R,G){G=G===0?0:G||10;var k=c(R).toRgb();return k.r=s(0,o(255,k.r-a(255*-(G/100)))),k.g=s(0,o(255,k.g-a(255*-(G/100)))),k.b=s(0,o(255,k.b-a(255*-(G/100)))),c(k)}function A(R,G){G=G===0?0:G||10;var k=c(R).toHsl();return k.l-=G/100,k.l=N(k.l),c(k)}function C(R,G){var k=c(R).toHsl(),q=(k.h+G)%360;return k.h=q<0?360+q:q,c(k)}function P(R){var G=c(R).toHsl();return G.h=(G.h+180)%360,c(G)}function F(R){var G=c(R).toHsl(),k=G.h;return[c(R),c({h:(k+120)%360,s:G.s,l:G.l}),c({h:(k+240)%360,s:G.s,l:G.l})]}function D(R){var G=c(R).toHsl(),k=G.h;return[c(R),c({h:(k+90)%360,s:G.s,l:G.l}),c({h:(k+180)%360,s:G.s,l:G.l}),c({h:(k+270)%360,s:G.s,l:G.l})]}function T(R){var G=c(R).toHsl(),k=G.h;return[c(R),c({h:(k+72)%360,s:G.s,l:G.l}),c({h:(k+216)%360,s:G.s,l:G.l})]}function B(R,G,k){G=G||6,k=k||30;var q=c(R).toHsl(),X=360/k,se=[c(R)];for(q.h=(q.h-(X*G>>1)+720)%360;--G;)q.h=(q.h+X)%360,se.push(c(q));return se}function M(R,G){G=G||6;for(var k=c(R).toHsv(),q=k.h,X=k.s,se=k.v,me=[],ae=1/G;G--;)me.push(c({h:q,s:X,v:se})),se=(se+ae)%1;return me}c.mix=function(R,G,k){k=k===0?0:k||50;var q=c(R).toRgb(),X=c(G).toRgb(),se=k/100,me={r:(X.r-q.r)*se+q.r,g:(X.g-q.g)*se+q.g,b:(X.b-q.b)*se+q.b,a:(X.a-q.a)*se+q.a};return c(me)},c.readability=function(R,G){var k=c(R),q=c(G);return(t.max(k.getLuminance(),q.getLuminance())+.05)/(t.min(k.getLuminance(),q.getLuminance())+.05)},c.isReadable=function(R,G,k){var q=c.readability(R,G),X,se;switch(se=!1,X=ie(k),X.level+X.size){case"AAsmall":case"AAAlarge":se=q>=4.5;break;case"AAlarge":se=q>=3;break;case"AAAsmall":se=q>=7;break}return se},c.mostReadable=function(R,G,k){var q=null,X=0,se,me,ae,pe;k=k||{},me=k.includeFallbackColors,ae=k.level,pe=k.size;for(var oe=0;oe<G.length;oe++)se=c.readability(R,G[oe]),se>X&&(X=se,q=c(G[oe]));return c.isReadable(R,q,{level:ae,size:pe})||!me?q:(k.includeFallbackColors=!1,c.mostReadable(R,["#fff","#000"],k))};var L=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=c.hexNames=z(L);function z(R){var G={};for(var k in R)R.hasOwnProperty(k)&&(G[R[k]]=k);return G}function ee(R){return R=parseFloat(R),(isNaN(R)||R<0||R>1)&&(R=1),R}function I(R,G){V(R)&&(R="100%");var k=U(R);return R=o(G,s(0,parseFloat(R))),k&&(R=parseInt(R*G,10)/100),t.abs(R-G)<1e-6?1:R%G/parseFloat(G)}function N(R){return o(1,s(0,R))}function O(R){return parseInt(R,16)}function V(R){return typeof R=="string"&&R.indexOf(".")!=-1&&parseFloat(R)===1}function U(R){return typeof R=="string"&&R.indexOf("%")!=-1}function Q(R){return R.length==1?"0"+R:""+R}function j(R){return R<=1&&(R=R*100+"%"),R}function W(R){return t.round(parseFloat(R)*255).toString(16)}function te(R){return O(R)/255}var le=function(){var R="[-\\+]?\\d+%?",G="[-\\+]?\\d*\\.\\d+%?",k="(?:"+G+")|(?:"+R+")",q="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",X="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?";return{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ue(R){return!!le.CSS_UNIT.exec(R)}function Y(R){R=R.replace(n,"").replace(i,"").toLowerCase();var G=!1;if(L[R])R=L[R],G=!0;else if(R=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var k;return(k=le.rgb.exec(R))?{r:k[1],g:k[2],b:k[3]}:(k=le.rgba.exec(R))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=le.hsl.exec(R))?{h:k[1],s:k[2],l:k[3]}:(k=le.hsla.exec(R))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=le.hsv.exec(R))?{h:k[1],s:k[2],v:k[3]}:(k=le.hsva.exec(R))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=le.hex8.exec(R))?{r:O(k[1]),g:O(k[2]),b:O(k[3]),a:te(k[4]),format:G?"name":"hex8"}:(k=le.hex6.exec(R))?{r:O(k[1]),g:O(k[2]),b:O(k[3]),format:G?"name":"hex"}:(k=le.hex4.exec(R))?{r:O(k[1]+""+k[1]),g:O(k[2]+""+k[2]),b:O(k[3]+""+k[3]),a:te(k[4]+""+k[4]),format:G?"name":"hex8"}:(k=le.hex3.exec(R))?{r:O(k[1]+""+k[1]),g:O(k[2]+""+k[2]),b:O(k[3]+""+k[3]),format:G?"name":"hex"}:!1}function ie(R){var G,k;return R=R||{level:"AA",size:"small"},G=(R.level||"AA").toUpperCase(),k=(R.size||"small").toLowerCase(),G!=="AA"&&G!=="AAA"&&(G="AA"),k!=="small"&&k!=="large"&&(k="small"),{level:G,size:k}}typeof r<"u"&&r.exports?r.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c}(Math)}),yP=ne((e,r)=>{J();var t=mP(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function l(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function o(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=l(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function s(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return o(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=l(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function c(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=l(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=o(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=o(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=s(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=s(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return c(this.stops,u,"toRgb",n)}hsvAt(u){return c(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),gP=ne((e,r)=>{"use strict";J();var t=dP(),n=yP(),i=/\s/g;function l(...h){let u=n.apply(this,h),d=(p,y)=>o(p?p.toString():"",u,y);return d.multiline=(p,y)=>s(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function o(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function s(h,u,d){let p=f(d),y=h.split(`
136
136
  `),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
137
- `)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var c={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=l;for(let h in c)r.exports[h]=u=>new l(c[h].colors)(u,c[h].options),r.exports[h].multiline=u=>new l(c[h].colors).multiline(u,c[h].options)}),bP={};iF(bP,{bold:()=>AP,dimmed:()=>kP,error:()=>RP,info:()=>xP,item:()=>CP,log:()=>Ri,turboBlue:()=>Bn,turboGradient:()=>EP,turboLoader:()=>SP,turboRed:()=>Iy,warn:()=>DP,yellow:()=>My});J();var Di=et(_o()),vP=et(hP()),_P=et(gP()),By="#0099F7",Ly="#F11712",wP="#FFFF00",EP=(0,_P.default)(By,Ly),Bn=Di.default.hex(By),Iy=Di.default.hex(Ly),My=Di.default.hex(wP),SP=e=>(0,vP.default)({text:e,spinner:{frames:[" ",Bn("> "),Bn(">> "),Bn(">>>")]}}),xP=(...e)=>{Ri(Bn.bold(">>>"),...e)},AP=(...e)=>{Ri(Di.default.bold(...e))},kP=(...e)=>{Ri(Di.default.dim(...e))},CP=(...e)=>{Ri(Bn.bold(" \u2022"),...e)},Ri=(...e)=>{console.log(...e)},DP=(...e)=>{console.error(My.bold(">>>"),...e)},RP=(...e)=>{console.error(Iy.bold(">>>"),...e)};J();var OP=ne((e,r)=>{J();var t=fe("constants"),n=process.cwd,i=null,l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(s){i=null,a.call(process,s)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=o;function o(s){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(s),s.lutimes||c(s),s.chown=d(s.chown),s.fchown=d(s.fchown),s.lchown=d(s.lchown),s.chmod=h(s.chmod),s.fchmod=h(s.fchmod),s.lchmod=h(s.lchmod),s.chownSync=p(s.chownSync),s.fchownSync=p(s.fchownSync),s.lchownSync=p(s.lchownSync),s.chmodSync=u(s.chmodSync),s.fchmodSync=u(s.fchmodSync),s.lchmodSync=u(s.lchmodSync),s.stat=y(s.stat),s.fstat=y(s.fstat),s.lstat=y(s.lstat),s.statSync=b(s.statSync),s.fstatSync=b(s.fstatSync),s.lstatSync=b(s.lstatSync),s.chmod&&!s.lchmod&&(s.lchmod=function(g,S,E){E&&process.nextTick(E)},s.lchmodSync=function(){}),s.chown&&!s.lchown&&(s.lchown=function(g,S,E,v){v&&process.nextTick(v)},s.lchownSync=function(){}),l==="win32"&&(s.rename=typeof s.rename!="function"?s.rename:function(g){function S(E,v,m){var w=Date.now(),x=0;g(E,v,function A(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-w<6e4){setTimeout(function(){s.stat(v,function(P,F){P&&P.code==="ENOENT"?g(E,v,A):m(C)})},x),x<100&&(x+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.rename)),s.read=typeof s.read!="function"?s.read:function(g){function S(E,v,m,w,x,A){var C;if(A&&typeof A=="function"){var P=0;C=function(F,D,T){if(F&&F.code==="EAGAIN"&&P<10)return P++,g.call(s,E,v,m,w,x,C);A.apply(this,arguments)}}return g.call(s,E,v,m,w,x,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.read),s.readSync=typeof s.readSync!="function"?s.readSync:function(g){return function(S,E,v,m,w){for(var x=0;;)try{return g.call(s,S,E,v,m,w)}catch(A){if(A.code==="EAGAIN"&&x<10){x++;continue}throw A}}}(s.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(x){g.close(w,function(A){v&&v(x||A)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function c(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,x){if(w){m&&m(w);return}g.futimes(x,E,v,function(A){g.close(x,function(C){m&&m(A||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,x=!0;try{w=g.futimesSync(m,E,v),x=!1}finally{if(x)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(s,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(s,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(s,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(s,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(s,S,E,m):g.call(s,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(s,S,E):g.call(s,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),TP=ne((e,r)=>{J();var t=fe("stream").Stream;r.exports=n;function n(i){return{ReadStream:l,WriteStream:a};function l(o,s){if(!(this instanceof l))return new l(o,s);t.call(this);var f=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var c=Object.keys(s),h=0,u=c.length;h<u;h++){var d=c[h];this[d]=s[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(o,s){if(!(this instanceof a))return new a(o,s);t.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var f=Object.keys(s),c=0,h=f.length;c<h;c++){var u=f[c];this[u]=s[u]}if(this.start!==void 0){if(typeof this.start!="number")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=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),FP=ne((e,r)=>{"use strict";J(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var l={__proto__:t(i)};else var l=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(l,a,Object.getOwnPropertyDescriptor(i,a))}),l}}),je=ne((e,r)=>{J();var t=fe("fs"),n=OP(),i=TP(),l=FP(),a=fe("util"),o,s;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");function f(){}function c(g,S){Object.defineProperty(g,o,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
137
+ `)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var c={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=l;for(let h in c)r.exports[h]=u=>new l(c[h].colors)(u,c[h].options),r.exports[h].multiline=u=>new l(c[h].colors).multiline(u,c[h].options)}),bP={};iF(bP,{bold:()=>AP,dimmed:()=>kP,error:()=>RP,info:()=>xP,item:()=>CP,log:()=>Ri,turboBlue:()=>Bn,turboGradient:()=>EP,turboLoader:()=>SP,turboRed:()=>Iy,warn:()=>DP,yellow:()=>My});J();var Di=et(_o()),vP=et(hP()),_P=et(gP()),By="#0099F7",Ly="#F11712",wP="#FFFF00",EP=(0,_P.default)(By,Ly),Bn=Di.default.hex(By),Iy=Di.default.hex(Ly),My=Di.default.hex(wP),SP=e=>(0,vP.default)({text:e,spinner:{frames:[" ",Bn("> "),Bn(">> "),Bn(">>>")]}}),xP=(...e)=>{Ri(Bn.bold(">>>"),...e)},AP=(...e)=>{Ri(Di.default.bold(...e))},kP=(...e)=>{Ri(Di.default.dim(...e))},CP=(...e)=>{Ri(Bn.bold(" \u2022"),...e)},Ri=(...e)=>{console.log(...e)},DP=(...e)=>{console.error(My.bold(">>>"),...e)},RP=(...e)=>{console.error(Iy.bold(">>>"),...e)};J();var OP=ne((e,r)=>{J();var t=fe("constants"),n=process.cwd,i=null,l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(s){i=null,a.call(process,s)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=o;function o(s){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(s),s.lutimes||c(s),s.chown=d(s.chown),s.fchown=d(s.fchown),s.lchown=d(s.lchown),s.chmod=h(s.chmod),s.fchmod=h(s.fchmod),s.lchmod=h(s.lchmod),s.chownSync=p(s.chownSync),s.fchownSync=p(s.fchownSync),s.lchownSync=p(s.lchownSync),s.chmodSync=u(s.chmodSync),s.fchmodSync=u(s.fchmodSync),s.lchmodSync=u(s.lchmodSync),s.stat=y(s.stat),s.fstat=y(s.fstat),s.lstat=y(s.lstat),s.statSync=b(s.statSync),s.fstatSync=b(s.fstatSync),s.lstatSync=b(s.lstatSync),s.chmod&&!s.lchmod&&(s.lchmod=function(g,S,E){E&&process.nextTick(E)},s.lchmodSync=function(){}),s.chown&&!s.lchown&&(s.lchown=function(g,S,E,v){v&&process.nextTick(v)},s.lchownSync=function(){}),l==="win32"&&(s.rename=typeof s.rename!="function"?s.rename:function(g){function S(E,v,m){var w=Date.now(),x=0;g(E,v,function A(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){s.stat(v,function(P,F){P&&P.code==="ENOENT"?g(E,v,A):m(C)})},x),x<100&&(x+=10);return}m&&m(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.rename)),s.read=typeof s.read!="function"?s.read:function(g){function S(E,v,m,w,x,A){var C;if(A&&typeof A=="function"){var P=0;C=function(F,D,T){if(F&&F.code==="EAGAIN"&&P<10)return P++,g.call(s,E,v,m,w,x,C);A.apply(this,arguments)}}return g.call(s,E,v,m,w,x,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.read),s.readSync=typeof s.readSync!="function"?s.readSync:function(g){return function(S,E,v,m,w){for(var x=0;;)try{return g.call(s,S,E,v,m,w)}catch(A){if(A.code==="EAGAIN"&&x<10){x++;continue}throw A}}}(s.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(x){g.close(w,function(A){v&&v(x||A)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function c(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,x){if(w){m&&m(w);return}g.futimes(x,E,v,function(A){g.close(x,function(C){m&&m(A||C)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,x=!0;try{w=g.futimesSync(m,E,v),x=!1}finally{if(x)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(s,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(s,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(s,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(s,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(s,S,E,m):g.call(s,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(s,S,E):g.call(s,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),TP=ne((e,r)=>{J();var t=fe("stream").Stream;r.exports=n;function n(i){return{ReadStream:l,WriteStream:a};function l(o,s){if(!(this instanceof l))return new l(o,s);t.call(this);var f=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var c=Object.keys(s),h=0,u=c.length;h<u;h++){var d=c[h];this[d]=s[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(o,s){if(!(this instanceof a))return new a(o,s);t.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var f=Object.keys(s),c=0,h=f.length;c<h;c++){var u=f[c];this[u]=s[u]}if(this.start!==void 0){if(typeof this.start!="number")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=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),FP=ne((e,r)=>{"use strict";J(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var l={__proto__:t(i)};else var l=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(l,a,Object.getOwnPropertyDescriptor(i,a))}),l}}),je=ne((e,r)=>{J();var t=fe("fs"),n=OP(),i=TP(),l=FP(),a=fe("util"),o,s;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");function f(){}function c(g,S){Object.defineProperty(g,o,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
138
138
  GFS4: `),console.error(g)}),t[o]||(u=global[o]||[],c(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,s,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,s,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[o]),fe("assert").equal(t[o].length,0)}));var u;global[o]||c(global,t[o]),r.exports=d(l(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=O,g.createWriteStream=V;var S=g.readFile;g.readFile=E;function E(j,W,te){return typeof W=="function"&&(te=W,W=null),le(j,W,te);function le(ue,Y,ie,R){return S(ue,Y,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?p([le,[ue,Y,ie],G,R||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(j,W,te,le){return typeof te=="function"&&(le=te,te=null),ue(j,W,te,le);function ue(Y,ie,R,G,k){return v(Y,ie,R,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=x);function x(j,W,te,le){return typeof te=="function"&&(le=te,te=null),ue(j,W,te,le);function ue(Y,ie,R,G,k){return w(Y,ie,R,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=C);function C(j,W,te,le){return typeof te=="function"&&(le=te,te=0),ue(j,W,te,le);function ue(Y,ie,R,G,k){return A(Y,ie,R,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var P=g.readdir;g.readdir=D;var F=/^v[0-5]\./;function D(j,W,te){typeof W=="function"&&(te=W,W=null);var le=F.test(process.version)?function(Y,ie,R,G){return P(Y,ue(Y,ie,R,G))}:function(Y,ie,R,G){return P(Y,ie,ue(Y,ie,R,G))};return le(j,W,te);function ue(Y,ie,R,G){return function(k,q){k&&(k.code==="EMFILE"||k.code==="ENFILE")?p([le,[Y,ie,R],k,G||Date.now(),Date.now()]):(q&&q.sort&&q.sort(),typeof R=="function"&&R.call(this,k,q))}}}if(process.version.substr(0,4)==="v0.8"){var T=i(g);z=T.ReadStream,I=T.WriteStream}var B=g.ReadStream;B&&(z.prototype=Object.create(B.prototype),z.prototype.open=ee);var M=g.WriteStream;M&&(I.prototype=Object.create(M.prototype),I.prototype.open=N),Object.defineProperty(g,"ReadStream",{get:function(){return z},set:function(j){z=j},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return I},set:function(j){I=j},enumerable:!0,configurable:!0});var L=z;Object.defineProperty(g,"FileReadStream",{get:function(){return L},set:function(j){L=j},enumerable:!0,configurable:!0});var H=I;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(j){H=j},enumerable:!0,configurable:!0});function z(j,W){return this instanceof z?(B.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function ee(){var j=this;Q(j.path,j.flags,j.mode,function(W,te){W?(j.autoClose&&j.destroy(),j.emit("error",W)):(j.fd=te,j.emit("open",te),j.read())})}function I(j,W){return this instanceof I?(M.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function N(){var j=this;Q(j.path,j.flags,j.mode,function(W,te){W?(j.destroy(),j.emit("error",W)):(j.fd=te,j.emit("open",te))})}function O(j,W){return new g.ReadStream(j,W)}function V(j,W){return new g.WriteStream(j,W)}var U=g.open;g.open=Q;function Q(j,W,te,le){return typeof te=="function"&&(le=te,te=null),ue(j,W,te,le);function ue(Y,ie,R,G,k){return U(Y,ie,R,function(q,X){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([ue,[Y,ie,R,G],q,k||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[o].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[o].length;++S)t[o][S].length>2&&(t[o][S][3]=g,t[o][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[o].length!==0){var g=t[o].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var x=E.pop();typeof x=="function"&&x.call(null,v)}else{var A=Date.now()-w,C=Math.max(w-m,1),P=Math.min(C*1.2,100);A>=P?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[o].push(g)}y===void 0&&(y=setTimeout(_,0))}}}),St=ne(e=>{"use strict";J(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(l,a)=>l!=null?i(l):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),jn=ne(e=>{"use strict";J();var r=St().fromCallback,t=je(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,l){return typeof l=="function"?t.exists(i,l):new Promise(a=>t.exists(i,a))},e.read=function(i,l,a,o,s,f){return typeof f=="function"?t.read(i,l,a,o,s,f):new Promise((c,h)=>{t.read(i,l,a,o,s,(u,d,p)=>{if(u)return h(u);c({bytesRead:d,buffer:p})})})},e.write=function(i,l,...a){return typeof a[a.length-1]=="function"?t.write(i,l,...a):new Promise((o,s)=>{t.write(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffer:h})})})},e.readv=function(i,l,...a){return typeof a[a.length-1]=="function"?t.readv(i,l,...a):new Promise((o,s)=>{t.readv(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesRead:c,buffers:h})})})},e.writev=function(i,l,...a){return typeof a[a.length-1]=="function"?t.writev(i,l,...a):new Promise((o,s)=>{t.writev(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),PP=ne((e,r)=>{"use strict";J();var t=fe("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),BP=ne((e,r)=>{"use strict";J();var t=jn(),{checkPath:n}=PP(),i=l=>typeof l=="number"?l:{mode:511,...l}.mode;r.exports.makeDir=async(l,a)=>(n(l),t.mkdir(l,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(l,a)=>(n(l),t.mkdirSync(l,{mode:i(a),recursive:!0}))}),Wt=ne((e,r)=>{"use strict";J();var t=St().fromPromise,{makeDir:n,makeDirSync:i}=BP(),l=t(n);r.exports={mkdirs:l,mkdirsSync:i,mkdirp:l,mkdirpSync:i,ensureDir:l,ensureDirSync:i}}),Wr=ne((e,r)=>{"use strict";J();var t=St().fromPromise,n=jn();function i(l){return n.access(l).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),Ny=ne((e,r)=>{"use strict";J();var t=je();function n(l,a,o,s){t.open(l,"r+",(f,c)=>{if(f)return s(f);t.futimes(c,a,o,h=>{t.close(c,u=>{s&&s(h||u)})})})}function i(l,a,o){let s=t.openSync(l,"r+");return t.futimesSync(s,a,o),t.closeSync(s)}r.exports={utimesMillis:n,utimesMillisSync:i}}),$n=ne((e,r)=>{"use strict";J();var t=jn(),n=fe("path"),i=fe("util");function l(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function o(p,y,b,_,g){i.callbackify(l)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),x=n.basename(y);return b==="move"&&w!==x&&w.toLowerCase()===x.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function s(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function c(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return c(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:o,checkPathsSync:s,checkParentPaths:f,checkParentPathsSync:c,isSrcSubdir:u,areIdentical:h}}),LP=ne((e,r)=>{"use strict";J();var t=je(),n=fe("path"),i=Wt().mkdirs,l=Wr().pathExists,a=Ny().utimesMillis,o=$n();function s(F,D,T,B){typeof T=="function"&&!B?(B=T,T={}):typeof T=="function"&&(T={filter:T}),B=B||function(){},T=T||{},T.clobber="clobber"in T?!!T.clobber:!0,T.overwrite="overwrite"in T?!!T.overwrite:T.clobber,T.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
139
139
 
140
140
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),o.checkPaths(F,D,"copy",T,(M,L)=>{if(M)return B(M);let{srcStat:H,destStat:z}=L;o.checkParentPaths(F,H,D,"copy",ee=>{if(ee)return B(ee);c(F,D,T,(I,N)=>{if(I)return B(I);if(!N)return B();f(z,F,D,T,B)})})})}function f(F,D,T,B,M){let L=n.dirname(T);l(L,(H,z)=>{if(H)return M(H);if(z)return h(F,D,T,B,M);i(L,ee=>ee?M(ee):h(F,D,T,B,M))})}function c(F,D,T,B){if(!T.filter)return B(null,!0);Promise.resolve(T.filter(F,D)).then(M=>B(null,M),M=>B(M))}function h(F,D,T,B,M){(B.dereference?t.stat:t.lstat)(D,(L,H)=>L?M(L):H.isDirectory()?v(H,F,D,T,B,M):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,F,D,T,B,M):H.isSymbolicLink()?C(F,D,T,B,M):H.isSocket()?M(new Error(`Cannot copy a socket file: ${D}`)):H.isFIFO()?M(new Error(`Cannot copy a FIFO pipe: ${D}`)):M(new Error(`Unknown file: ${D}`)))}function u(F,D,T,B,M,L){return D?d(F,T,B,M,L):p(F,T,B,M,L)}function d(F,D,T,B,M){if(B.overwrite)t.unlink(T,L=>L?M(L):p(F,D,T,B,M));else return B.errorOnExist?M(new Error(`'${T}' already exists`)):M()}function p(F,D,T,B,M){t.copyFile(D,T,L=>L?M(L):B.preserveTimestamps?y(F.mode,D,T,M):S(T,F.mode,M))}function y(F,D,T,B){return b(F)?_(T,F,M=>M?B(M):g(F,D,T,B)):g(F,D,T,B)}function b(F){return(F&128)===0}function _(F,D,T){return S(F,D|128,T)}function g(F,D,T,B){E(D,T,M=>M?B(M):S(T,F,B))}function S(F,D,T){return t.chmod(F,D,T)}function E(F,D,T){t.stat(F,(B,M)=>B?T(B):a(D,M.atime,M.mtime,T))}function v(F,D,T,B,M,L){return D?w(T,B,M,L):m(F.mode,T,B,M,L)}function m(F,D,T,B,M){t.mkdir(T,L=>{if(L)return M(L);w(D,T,B,H=>H?M(H):S(T,F,M))})}function w(F,D,T,B){t.readdir(F,(M,L)=>M?B(M):x(L,F,D,T,B))}function x(F,D,T,B,M){let L=F.pop();return L?A(F,L,D,T,B,M):M()}function A(F,D,T,B,M,L){let H=n.join(T,D),z=n.join(B,D);c(H,z,M,(ee,I)=>{if(ee)return L(ee);if(!I)return x(F,T,B,M,L);o.checkPaths(H,z,"copy",M,(N,O)=>{if(N)return L(N);let{destStat:V}=O;h(V,H,z,M,U=>U?L(U):x(F,T,B,M,L))})})}function C(F,D,T,B,M){t.readlink(D,(L,H)=>{if(L)return M(L);if(B.dereference&&(H=n.resolve(process.cwd(),H)),F)t.readlink(T,(z,ee)=>z?z.code==="EINVAL"||z.code==="UNKNOWN"?t.symlink(H,T,M):M(z):(B.dereference&&(ee=n.resolve(process.cwd(),ee)),o.isSrcSubdir(H,ee)?M(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${ee}'.`)):o.isSrcSubdir(ee,H)?M(new Error(`Cannot overwrite '${ee}' with '${H}'.`)):P(H,T,M)));else return t.symlink(H,T,M)})}function P(F,D,T){t.unlink(D,B=>B?T(B):t.symlink(F,D,T))}r.exports=s}),IP=ne((e,r)=>{"use strict";J();var t=je(),n=fe("path"),i=Wt().mkdirsSync,l=Ny().utimesMillisSync,a=$n();function o(w,x,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-turbo",
3
- "version": "1.10.16-canary.1",
3
+ "version": "1.10.16",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turbo.build/repo",
6
6
  "license": "MPL-2.0",
@@ -37,10 +37,10 @@
37
37
  "tsup": "^6.7.0",
38
38
  "typescript": "^5.2.2",
39
39
  "@turbo/eslint-config": "0.0.0",
40
- "@turbo/test-utils": "0.0.0",
41
40
  "@turbo/tsconfig": "0.0.0",
42
41
  "@turbo/utils": "0.0.0",
43
- "@turbo/workspaces": "1.10.16-canary.1"
42
+ "@turbo/workspaces": "1.10.16",
43
+ "@turbo/test-utils": "0.0.0"
44
44
  },
45
45
  "files": [
46
46
  "dist"