@tsmodule/tsmodule 31.0.0 → 31.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,18 @@
1
- import{TS_CONFIG as m}from"../../normalize/lib/typescriptApi.js";import a from"chalk";import{createDebugLogger as g}from"create-debug-logger";import t from"typescript";const f=o=>{const r=g(f),s=t.createProgram(o,{...m,declaration:!0,noEmit:!1,emitDeclarationOnly:!0}),i=s.emit();t.getPreEmitDiagnostics(s).concat(i.diagnostics).forEach(e=>{if(e.file){const{line:n,character:l}=t.getLineAndCharacterOfPosition(e.file,e.start??0),c=t.flattenDiagnosticMessageText(e.messageText,`
2
- `);r.log(a.red(`${e.file.fileName} (${n+1},${l+1}): ${c}`))}else r.log(a.red(t.flattenDiagnosticMessageText(e.messageText,`
3
- `)))})};export{f as emitTsDeclarations};
1
+
2
+ await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
+
4
+ var q={NODE_ENV:"production"};try{let{env:r}=await import("process");r.NODE_ENV&&(q.NODE_ENV=r.NODE_ENV)}catch{}var j=q.NODE_ENV==="development";import{Console as xe}from"console";var H=(r=0)=>e=>`\x1B[${e+r}m`,J=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,Q=(r=0)=>(e,t,o)=>`\x1B[${38+r};2;${e};${t};${o}m`;function be(){let r=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,o]of Object.entries(e)){for(let[n,l]of Object.entries(o))e[n]={open:`\x1B[${l[0]}m`,close:`\x1B[${l[1]}m`},o[n]=e[n],r.set(l[0],l[1]);Object.defineProperty(e,t,{value:o,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=H(),e.color.ansi256=J(),e.color.ansi16m=Q(),e.bgColor.ansi=H(10),e.bgColor.ansi256=J(10),e.bgColor.ansi16m=Q(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,o,n)=>t===o&&o===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let o=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!o)return[0,0,0];let{colorString:n}=o.groups;n.length===3&&(n=[...n].map(i=>i+i).join(""));let l=Number.parseInt(n,16);return[l>>16&255,l>>8&255,l&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let o,n,l;if(t>=232)o=((t-232)*10+8)/255,n=o,l=o;else{t-=16;let u=t%36;o=Math.floor(t/36)/5,n=Math.floor(u/6)/5,l=u%6/5}let i=Math.max(o,n,l)*2;if(i===0)return 30;let c=30+(Math.round(l)<<2|Math.round(n)<<1|Math.round(o));return i===2&&(c+=60),c},enumerable:!1},rgbToAnsi:{value:(t,o,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,o,n)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}var he=be(),b=he;import F from"node:process";import me from"node:os";import z from"node:tty";function f(r,e=F.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",o=e.indexOf(t+r),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}var{env:s}=F,N;f("no-color")||f("no-colors")||f("color=false")||f("color=never")?N=0:(f("color")||f("colors")||f("color=true")||f("color=always"))&&(N=1);function de(){if("FORCE_COLOR"in s)return s.FORCE_COLOR==="true"?1:s.FORCE_COLOR==="false"?0:s.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(s.FORCE_COLOR,10),3)}function Oe(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function Te(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let o=de();o!==void 0&&(N=o);let n=t?N:o;if(n===0)return 0;if(t){if(f("color=16m")||f("color=full")||f("color=truecolor"))return 3;if(f("color=256"))return 2}if(r&&!e&&n===void 0)return 0;let l=n||0;if(s.TERM==="dumb")return l;if(F.platform==="win32"){let i=me.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(i=>i in s)||s.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in s&&"AGENT_NAME"in s)return 1;if(s.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in s){let i=Number.parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:l}function X(r,e={}){let t=Te(r,{streamIsTTY:r&&r.isTTY,...e});return Oe(t)}var Ee={stdout:X({isTTY:z.isatty(1)}),stderr:X({isTTY:z.isatty(2)})},Z=Ee;function ee(r,e,t){let o=r.indexOf(e);if(o===-1)return r;let n=e.length,l=0,i="";do i+=r.substr(l,o-l)+e+t,l=o+n,o=r.indexOf(e,l);while(o!==-1);return i+=r.slice(l),i}function re(r,e,t,o){let n=0,l="";do{let i=r[o-1]==="\r";l+=r.substr(n,(i?o-1:o)-n)+e+(i?`\r
5
+ `:`
6
+ `)+t,n=o+1,o=r.indexOf(`
7
+ `,n)}while(o!==-1);return l+=r.slice(n),l}var{stdout:te,stderr:oe}=Z,L=Symbol("GENERATOR"),R=Symbol("STYLER"),A=Symbol("IS_EMPTY"),ne=["ansi","ansi","ansi256","ansi16m"],C=Object.create(null),ve=(r,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=te?te.level:0;r.level=e.level===void 0?t:e.level};var Re=r=>{let e=(...t)=>t.join(" ");return ve(e,r),Object.setPrototypeOf(e,x.prototype),e};function x(r){return Re(r)}Object.setPrototypeOf(x.prototype,Function.prototype);for(let[r,e]of Object.entries(b))C[r]={get(){let t=w(this,$(e.open,e.close,this[R]),this[A]);return Object.defineProperty(this,r,{value:t}),t}};C.visible={get(){let r=w(this,this[R],!0);return Object.defineProperty(this,"visible",{value:r}),r}};var P=(r,e,t,...o)=>r==="rgb"?e==="ansi16m"?b[t].ansi16m(...o):e==="ansi256"?b[t].ansi256(b.rgbToAnsi256(...o)):b[t].ansi(b.rgbToAnsi(...o)):r==="hex"?P("rgb",e,t,...b.hexToRgb(...o)):b[t][r](...o),Ce=["rgb","hex","ansi256"];for(let r of Ce){C[r]={get(){let{level:t}=this;return function(...o){let n=$(P(r,ne[t],"color",...o),b.color.close,this[R]);return w(this,n,this[A])}}};let e="bg"+r[0].toUpperCase()+r.slice(1);C[e]={get(){let{level:t}=this;return function(...o){let n=$(P(r,ne[t],"bgColor",...o),b.bgColor.close,this[R]);return w(this,n,this[A])}}}}var Be=Object.defineProperties(()=>{},{...C,level:{enumerable:!0,get(){return this[L].level},set(r){this[L].level=r}}}),$=(r,e,t)=>{let o,n;return t===void 0?(o=r,n=e):(o=t.openAll+r,n=e+t.closeAll),{open:r,close:e,openAll:o,closeAll:n,parent:t}},w=(r,e,t)=>{let o=(...n)=>ye(o,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(o,Be),o[L]=r,o[R]=e,o[A]=t,o},ye=(r,e)=>{if(r.level<=0||!e)return r[A]?"":e;let t=r[R];if(t===void 0)return e;let{openAll:o,closeAll:n}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=ee(e,t.close,t.open),t=t.parent;let l=e.indexOf(`
8
+ `);return l!==-1&&(e=re(e,n,o,l)),o+e+n};Object.defineProperties(x.prototype,C);var Ae=x(),fr=x({level:oe?oe.level:0});var k=Ae;var O=new xe({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),G=r=>{if(j){let{name:e}=r;return{log(...t){let o=k.bgBlue.white(` [${e}] `);O.log(`${o}`,`
9
+
10
+ `,...t),O.log()},group(){O.log();let t=k.bgBlue.white(` [${e}] `);O.group(t),O.log()},groupEnd(){O.log(`
11
+ `,"-".repeat(20),`
12
+ `),O.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};import{spawn as Me,execSync as Ie}from"child_process";import W from"node:process";import _e from"node:os";import ae from"node:tty";await(async()=>{let{dirname:r}=await import("path"),{fileURLToPath:e}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=e(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=r(globalThis.__filename)),typeof globalThis.require>"u"){let{default:t}=await import("module");globalThis.require=t.createRequire(import.meta.url)}})();var le=(r=0)=>e=>`\x1B[${e+r}m`,ie=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,se=(r=0)=>(e,t,o)=>`\x1B[${38+r};2;${e};${t};${o}m`;function Ne(){let r=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,o]of Object.entries(e)){for(let[n,l]of Object.entries(o))e[n]={open:`\x1B[${l[0]}m`,close:`\x1B[${l[1]}m`},o[n]=e[n],r.set(l[0],l[1]);Object.defineProperty(e,t,{value:o,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=le(),e.color.ansi256=ie(),e.color.ansi16m=se(),e.bgColor.ansi=le(10),e.bgColor.ansi256=ie(10),e.bgColor.ansi16m=se(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,o,n)=>t===o&&o===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let o=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!o)return[0,0,0];let{colorString:n}=o.groups;n.length===3&&(n=[...n].map(i=>i+i).join(""));let l=Number.parseInt(n,16);return[l>>16&255,l>>8&255,l&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let o,n,l;if(t>=232)o=((t-232)*10+8)/255,n=o,l=o;else{t-=16;let u=t%36;o=Math.floor(t/36)/5,n=Math.floor(u/6)/5,l=u%6/5}let i=Math.max(o,n,l)*2;if(i===0)return 30;let c=30+(Math.round(l)<<2|Math.round(n)<<1|Math.round(o));return i===2&&(c+=60),c},enumerable:!1},rgbToAnsi:{value:(t,o,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,o,n)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}var we=Ne(),h=we;function g(r,e=W.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",o=e.indexOf(t+r),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}var{env:a}=W,_;g("no-color")||g("no-colors")||g("color=false")||g("color=never")?_=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(_=1);function Se(){if("FORCE_COLOR"in a)return a.FORCE_COLOR==="true"?1:a.FORCE_COLOR==="false"?0:a.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a.FORCE_COLOR,10),3)}function je(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function Fe(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let o=Se();o!==void 0&&(_=o);let n=t?_:o;if(n===0)return 0;if(t){if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2}if(r&&!e&&n===void 0)return 0;let l=n||0;if(a.TERM==="dumb")return l;if(W.platform==="win32"){let i=_e.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(i=>i in a)||a.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in a&&"AGENT_NAME"in a)return 1;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){let i=Number.parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:l}function ce(r,e={}){let t=Fe(r,{streamIsTTY:r&&r.isTTY,...e});return je(t)}var Le={stdout:ce({isTTY:ae.isatty(1)}),stderr:ce({isTTY:ae.isatty(2)})},Pe=Le;function $e(r,e,t){let o=r.indexOf(e);if(o===-1)return r;let n=e.length,l=0,i="";do i+=r.substr(l,o-l)+e+t,l=o+n,o=r.indexOf(e,l);while(o!==-1);return i+=r.slice(l),i}function ke(r,e,t,o){let n=0,l="";do{let i=r[o-1]==="\r";l+=r.substr(n,(i?o-1:o)-n)+e+(i?`\r
13
+ `:`
14
+ `)+t,n=o+1,o=r.indexOf(`
15
+ `,n)}while(o!==-1);return l+=r.slice(n),l}var{stdout:ue,stderr:fe}=Pe,D=Symbol("GENERATOR"),B=Symbol("STYLER"),M=Symbol("IS_EMPTY"),ge=["ansi","ansi","ansi256","ansi16m"],y=Object.create(null),Ge=(r,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=ue?ue.level:0;r.level=e.level===void 0?t:e.level},De=r=>{let e=(...t)=>t.join(" ");return Ge(e,r),Object.setPrototypeOf(e,I.prototype),e};function I(r){return De(r)}Object.setPrototypeOf(I.prototype,Function.prototype);for(let[r,e]of Object.entries(h))y[r]={get(){let t=S(this,V(e.open,e.close,this[B]),this[M]);return Object.defineProperty(this,r,{value:t}),t}};y.visible={get(){let r=S(this,this[B],!0);return Object.defineProperty(this,"visible",{value:r}),r}};var Y=(r,e,t,...o)=>r==="rgb"?e==="ansi16m"?h[t].ansi16m(...o):e==="ansi256"?h[t].ansi256(h.rgbToAnsi256(...o)):h[t].ansi(h.rgbToAnsi(...o)):r==="hex"?Y("rgb",e,t,...h.hexToRgb(...o)):h[t][r](...o),Ye=["rgb","hex","ansi256"];for(let r of Ye){y[r]={get(){let{level:t}=this;return function(...o){let n=V(Y(r,ge[t],"color",...o),h.color.close,this[B]);return S(this,n,this[M])}}};let e="bg"+r[0].toUpperCase()+r.slice(1);y[e]={get(){let{level:t}=this;return function(...o){let n=V(Y(r,ge[t],"bgColor",...o),h.bgColor.close,this[B]);return S(this,n,this[M])}}}}var Ve=Object.defineProperties(()=>{},{...y,level:{enumerable:!0,get(){return this[D].level},set(r){this[D].level=r}}}),V=(r,e,t)=>{let o,n;return t===void 0?(o=r,n=e):(o=t.openAll+r,n=e+t.closeAll),{open:r,close:e,openAll:o,closeAll:n,parent:t}},S=(r,e,t)=>{let o=(...n)=>Ue(o,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(o,Ve),o[D]=r,o[B]=e,o[M]=t,o},Ue=(r,e)=>{if(r.level<=0||!e)return r[M]?"":e;let t=r[B];if(t===void 0)return e;let{openAll:o,closeAll:n}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=$e(e,t.close,t.open),t=t.parent;let l=e.indexOf(`
16
+ `);return l!==-1&&(e=ke(e,n,o,l)),o+e+n};Object.defineProperties(I.prototype,y);var We=I(),yr=I({level:fe?fe.level:0}),Ke=We,qe={win32:r=>({cmd:"cmd.exe",args:["/d","/s","/c",r]})},He={"cp -rf":{win32:r=>{let e="xcopy /E /S /G /Q /Y",t=r.map(o=>o.endsWith("\\")?o:`${o}\\`);return`${e} ${t.join(" ")}`}},ln:{win32:r=>`mklink /D ${r.join(" ")}`},pkill:{win32:r=>`taskkill /T /F /pid ${r.join(" ")}`}},Je=(r,e,t)=>{let o={...qe,...e},n={...He,...t},l=c=>{let u=process.platform,p=o[u];if(p)return p(c);let[T,...E]=c.split(" ");return{cmd:T,args:E}},i=(c=>{let u=Object.entries(n);for(let[p,T]of u)if(c.startsWith(p)){let E=process.platform,v=T[E];if(!v)break;let m=c.slice(p.length).split(" ");return`${v(m)} ${c.slice(p.length)}`}return c})(r);return l(i)},Qe=process.platform==="linux"||process.platform==="darwin",U=process.platform==="win32",ze={stdio:"pipe",shell:!0,detached:!U,env:process.env},Xe={log:!0,commandTranslations:{},shellTranslations:{},...ze},pe=({log:r=!0,commandTranslations:e={},shellTranslations:t={},...o}=Xe)=>{let n=null;return{childProcess:n,async run(l){if(n)throw new Error("Only one command per shell.");if(typeof l=="object"){let u=process.platform;l.posix&&Qe&&(u="posix");let p=l[u];if(!p)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:l}));l=p}let{cmd:i,args:c}=Je(l,t,e);return r&&console.log(Ke.dim(`
17
+ $ ${l}
18
+ `)),await new Promise((u,p)=>{n=Me(i,c,o);let T="",E="";if(!n)throw new Error("Child process was not set.");let v=m=>{n=null;let K={code:m,stdout:T,stderr:E};m===0||m===1&&!U?u(K):p(K)};n.stdout?.on("data",m=>{T+=m.toString()}),n.stderr?.on("data",m=>{E+=m.toString()}),n.on("close",v),n.on("exit",v),n.on("error",v),n.stdout?.pipe(process.stdout),n.stderr?.pipe(process.stderr)})},kill(l="SIGKILL"){if(n?.pid)if(U)Ie(`taskkill /t /f /pid ${n.pid}`);else return process.kill(-n.pid,l);return!0}}};var Ze={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},er=async()=>{let r=G(er),e=pe({log:!1}),t=Object.entries(Ze).map(([n,l])=>`--${n} ${l}`).join(" "),o=`tsc -p tsconfig.json ${t}`;r.log(`Calling: ${o}`),await e.run(`tsc -p tsconfig.json ${t}`)};export{Ze as D_TS_CONFIG,er as emitTsDeclarations};
@@ -1 +1,24 @@
1
- import c from"chalk";import{createShell as l}from"await-shell";import d from"ora";import{dependencies as p,devDependencies as n}from"../../constants.js";import{copyTemplate as a}from"./lib/createTemplate.js";import{rewritePkgJson as u}from"./lib/rewritePkgJson.js";globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};const D=async(e,{react:o=!1})=>{const i=l(),r=d(`Creating new module ${c.blueBright(e)}.`).start();await a("default",e),o&&await a("react",e),await u(e),r.succeed("Project created."),process.chdir(e);const s=[],t=["@tsmodule/tsmodule"];o?(s.push(...p.react),t.push(...n.react)):t.push(...n.default),s.length&&await i.run(`yarn add ${s.join(" ")}`),t.length&&await i.run(`yarn add -D ${t.join(" ")}`),r.succeed("Dependencies installed."),await i.run("git init"),r.succeed("Git initialized.")};export{D as create};
1
+
2
+ await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
+
4
+ var iu=Object.create;var br=Object.defineProperty;var ou=Object.getOwnPropertyDescriptor;var su=Object.getOwnPropertyNames;var au=Object.getPrototypeOf,uu=Object.prototype.hasOwnProperty;var lu=e=>br(e,"__esModule",{value:!0});var S=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var fu=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var cu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of su(t))!uu.call(e,i)&&(r||i!=="default")&&br(e,i,{get:()=>t[i],enumerable:!(n=ou(t,i))||n.enumerable});return e},qe=(e,t)=>cu(lu(br(e!=null?iu(au(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var u=fu(()=>{});var si=m((Vd,Br)=>{"use strict";u();var oi=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Br.exports=oi;Br.exports.default=oi});var ui=m((Jd,Nt)=>{"use strict";u();var Xu=si(),Pt=new WeakMap,ai=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(Pt.set(o,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Xu(o,e),Pt.set(o,n),o};Nt.exports=ai;Nt.exports.default=ai;Nt.exports.callCount=e=>{if(!Pt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Pt.get(e)}});var li=m((Kd,It)=>{u();It.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&It.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&It.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var pi=m((Xd,Ye)=>{u();var F=global.process,Re=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Re(F)?(fi=S("assert"),We=li(),ci=/^win/i.test(F.platform),ot=S("events"),typeof ot!="function"&&(ot=ot.EventEmitter),F.__signal_exit_emitter__?q=F.__signal_exit_emitter__:(q=F.__signal_exit_emitter__=new ot,q.count=0,q.emitted={}),q.infinite||(q.setMaxListeners(1/0),q.infinite=!0),Ye.exports=function(e,t){if(!Re(global.process))return function(){};fi.equal(typeof e,"function","a callback must be provided for exit handler"),Ge===!1&&Pr();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){q.removeListener(r,e),q.listeners("exit").length===0&&q.listeners("afterexit").length===0&&Mt()};return q.on(r,e),n},Mt=function(){!Ge||!Re(global.process)||(Ge=!1,We.forEach(function(t){try{F.removeListener(t,kt[t])}catch{}}),F.emit=qt,F.reallyExit=Nr,q.count-=1)},Ye.exports.unload=Mt,Oe=function(t,r,n){q.emitted[t]||(q.emitted[t]=!0,q.emit(t,r,n))},kt={},We.forEach(function(e){kt[e]=function(){if(!!Re(global.process)){var r=F.listeners(e);r.length===q.count&&(Mt(),Oe("exit",null,e),Oe("afterexit",null,e),ci&&e==="SIGHUP"&&(e="SIGINT"),F.kill(F.pid,e))}}}),Ye.exports.signals=function(){return We},Ge=!1,Pr=function(){Ge||!Re(global.process)||(Ge=!0,q.count+=1,We=We.filter(function(t){try{return F.on(t,kt[t]),!0}catch{return!1}}),F.emit=di,F.reallyExit=hi)},Ye.exports.load=Pr,Nr=F.reallyExit,hi=function(t){!Re(global.process)||(F.exitCode=t||0,Oe("exit",F.exitCode,null),Oe("afterexit",F.exitCode,null),Nr.call(F,F.exitCode))},qt=F.emit,di=function(t,r){if(t==="exit"&&Re(global.process)){r!==void 0&&(F.exitCode=r);var n=qt.apply(this,arguments);return Oe("exit",F.exitCode,null),Oe("afterexit",F.exitCode,null),n}else return qt.apply(this,arguments)}):Ye.exports=function(){return function(){}};var fi,We,ci,ot,q,Mt,Oe,kt,Ge,Pr,Nr,hi,qt,di});var vi=m((r0,zu)=>{zu.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var bi=m((n0,wi)=>{"use strict";u();var jt=Object.assign({},vi()),xi=Object.keys(jt);Object.defineProperty(jt,"random",{get(){let e=Math.floor(Math.random()*xi.length),t=xi[e];return jt[t]}});wi.exports=jt});var Si=m((c0,$t)=>{u();var nl=function(){"use strict";function e(s,a,l,p){var f;typeof a=="object"&&(l=a.depth,p=a.prototype,f=a.filter,a=a.circular);var h=[],y=[],d=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(g,x){if(g===null)return null;if(x==0)return g;var w,D;if(typeof g!="object")return g;if(e.__isArray(g))w=[];else if(e.__isRegExp(g))w=new RegExp(g.source,o(g)),g.lastIndex&&(w.lastIndex=g.lastIndex);else if(e.__isDate(g))w=new Date(g.getTime());else{if(d&&Buffer.isBuffer(g))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(g.length):w=new Buffer(g.length),g.copy(w),w;typeof p>"u"?(D=Object.getPrototypeOf(g),w=Object.create(D)):(w=Object.create(p),D=p)}if(a){var de=h.indexOf(g);if(de!=-1)return y[de];h.push(g),y.push(w)}for(var pe in g){var ke;D&&(ke=Object.getOwnPropertyDescriptor(D,pe)),!(ke&&ke.set==null)&&(w[pe]=_(g[pe],x-1))}return w}return _(s,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(s){return Object.prototype.toString.call(s)}e.__objToStr=t;function r(s){return typeof s=="object"&&t(s)==="[object Date]"}e.__isDate=r;function n(s){return typeof s=="object"&&t(s)==="[object Array]"}e.__isArray=n;function i(s){return typeof s=="object"&&t(s)==="[object RegExp]"}e.__isRegExp=i;function o(s){var a="";return s.global&&(a+="g"),s.ignoreCase&&(a+="i"),s.multiline&&(a+="m"),a}return e.__getRegExpFlags=o,e}();typeof $t=="object"&&$t.exports&&($t.exports=nl)});var Ti=m((h0,Ei)=>{u();var il=Si();Ei.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=il(t[r]))}),e}});var Oi=m((d0,Ri)=>{u();Ri.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Fi=m((p0,qr)=>{"use strict";u();var ol=Ti(),ut=Oi(),Ai={nul:0,control:0};qr.exports=function(t){return Di(t,Ai)};qr.exports.config=function(e){return e=ol(e||{},Ai),function(r){return Di(r,e)}};function Di(e,t){if(typeof e!="string")return Ci(e,t);for(var r=0,n=0;n<e.length;n++){var i=Ci(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Ci(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:sl(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function sl(e){var t=0,r=ut.length-1,n;if(e<ut[0][0]||e>ut[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>ut[n][1])t=n+1;else if(e<ut[n][0])r=n-1;else return!0;return!1}});var jr=m((m0,Bi)=>{u();Bi.exports=S("stream")});var Mi=m((_0,Ii)=>{"use strict";u();function Pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pi(Object(r),!0).forEach(function(n){ul(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ul(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fl(e,t,r){return t&&Ni(e.prototype,t),r&&Ni(e,r),e}var cl=S("buffer"),Ut=cl.Buffer,hl=S("util"),$r=hl.inspect,dl=$r&&$r.custom||"inspect";function pl(e,t,r){Ut.prototype.copy.call(e,t,r)}Ii.exports=function(){function e(){ll(this,e),this.head=null,this.tail=null,this.length=0}return fl(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Ut.alloc(0);for(var n=Ut.allocUnsafe(r>>>0),i=this.head,o=0;i;)pl(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Ut.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:dl,value:function(r,n){return $r(this,al({},n,{depth:0,customInspect:!1}))}}]),e}()});var Wr=m((g0,qi)=>{"use strict";u();function yl(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ur,this,e)):process.nextTick(Ur,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Wt,r):(r._writableState.errorEmitted=!0,process.nextTick(ki,r,o)):process.nextTick(ki,r,o):t?(process.nextTick(Wt,r),t(o)):process.nextTick(Wt,r)}),this)}function ki(e,t){Ur(e,t),Wt(e)}function Wt(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function ml(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ur(e,t){e.emit("error",t)}function _l(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}qi.exports={destroy:yl,undestroy:ml,errorOrDestroy:_l}});var ye=m((v0,$i)=>{"use strict";u();var ji={};function re(e,t,r){r||(r=Error);function n(o,s,a){return typeof t=="string"?t:t(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=e,ji[e]=i}function Li(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function gl(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function vl(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function xl(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}re("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);re("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&gl(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(vl(e," argument"))i=`The ${e} ${n} ${Li(t,"type")}`;else{let o=xl(e,".")?"property":"argument";i=`The "${e}" ${o} ${n} ${Li(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);re("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");re("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});re("ERR_STREAM_PREMATURE_CLOSE","Premature close");re("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});re("ERR_MULTIPLE_CALLBACK","Callback called multiple times");re("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");re("ERR_STREAM_WRITE_AFTER_END","write after end");re("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);re("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);re("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");$i.exports.codes=ji});var Gr=m((x0,Ui)=>{"use strict";u();var wl=ye().codes.ERR_INVALID_OPT_VALUE;function bl(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Sl(e,t,r,n){var i=bl(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new wl(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Ui.exports={getHighWaterMark:Sl}});var Wi=m((w0,Yr)=>{u();typeof Object.create=="function"?Yr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Ce=m((b0,Vr)=>{u();try{if(Hr=S("util"),typeof Hr.inherits!="function")throw"";Vr.exports=Hr.inherits}catch{Vr.exports=Wi()}var Hr});var Yi=m((S0,Gi)=>{u();Gi.exports=S("util").deprecate});var Xr=m((E0,Qi)=>{"use strict";u();Qi.exports=P;function Vi(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Xl(t,e)}}var Ve;P.WritableState=ft;var El={deprecate:Yi()},Ji=jr(),Yt=S("buffer").Buffer,Tl=global.Uint8Array||function(){};function Rl(e){return Yt.from(e)}function Ol(e){return Yt.isBuffer(e)||e instanceof Tl}var Kr=Wr(),Cl=Gr(),Al=Cl.getHighWaterMark,me=ye().codes,Dl=me.ERR_INVALID_ARG_TYPE,Fl=me.ERR_METHOD_NOT_IMPLEMENTED,Bl=me.ERR_MULTIPLE_CALLBACK,Pl=me.ERR_STREAM_CANNOT_PIPE,Nl=me.ERR_STREAM_DESTROYED,Il=me.ERR_STREAM_NULL_VALUES,Ml=me.ERR_STREAM_WRITE_AFTER_END,kl=me.ERR_UNKNOWN_ENCODING,Je=Kr.errorOrDestroy;Ce()(P,Ji);function ql(){}function ft(e,t,r){Ve=Ve||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ve),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Al(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Yl(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Vi(this)}ft.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ft.prototype,"buffer",{get:El.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Gt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Gt=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(t){return Gt.call(this,t)?!0:this!==P?!1:t&&t._writableState instanceof ft}})):Gt=function(t){return t instanceof this};function P(e){Ve=Ve||Ae();var t=this instanceof Ve;if(!t&&!Gt.call(P,this))return new P(e);this._writableState=new ft(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ji.call(this)}P.prototype.pipe=function(){Je(this,new Pl)};function Ll(e,t){var r=new Ml;Je(e,r),process.nextTick(t,r)}function jl(e,t,r,n){var i;return r===null?i=new Il:typeof r!="string"&&!t.objectMode&&(i=new Dl("chunk",["string","Buffer"],r)),i?(Je(e,i),process.nextTick(n,i),!1):!0}P.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&Ol(e);return o&&!Yt.isBuffer(e)&&(e=Rl(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=ql),n.ending?Ll(this,r):(o||jl(this,n,e,r))&&(n.pendingcb++,i=Ul(this,n,o,e,t,r)),i};P.prototype.cork=function(){this._writableState.corked++};P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ki(this,e))};P.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new kl(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $l(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Yt.from(t,r)),t}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ul(e,t,r,n,i,o){if(!r){var s=$l(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Jr(e,t,!1,a,n,i,o);return l}function Jr(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Nl("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function Wl(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(lt,e,t),e._writableState.errorEmitted=!0,Je(e,n)):(i(n),e._writableState.errorEmitted=!0,Je(e,n),lt(e,t))}function Gl(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Yl(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Bl;if(Gl(r),t)Wl(e,r,n,t,i);else{var o=Xi(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ki(e,r),n?process.nextTick(Hi,e,r,o,i):Hi(e,r,o,i)}}function Hi(e,t,r,n){r||Hl(e,t),t.pendingcb--,n(),lt(e,t)}function Hl(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ki(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Jr(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Vi(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,p=r.encoding,f=r.callback,h=t.objectMode?1:l.length;if(Jr(e,t,!1,h,l,p,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}P.prototype._write=function(e,t,r){r(new Fl("_write()"))};P.prototype._writev=null;P.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Kl(this,n,r),this};Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Xi(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Vl(e,t){e._final(function(r){t.pendingcb--,r&&Je(e,r),t.prefinished=!0,e.emit("prefinish"),lt(e,t)})}function Jl(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Vl,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function lt(e,t){var r=Xi(t);if(r&&(Jl(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Kl(e,t,r){t.ending=!0,lt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Xl(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});P.prototype.destroy=Kr.destroy;P.prototype._undestroy=Kr.undestroy;P.prototype._destroy=function(e,t){t(e)}});var Ae=m((T0,zi)=>{"use strict";u();var Ql=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};zi.exports=fe;var Zi=zr(),Zr=Xr();Ce()(fe,Zi);for(Qr=Ql(Zr.prototype),Ht=0;Ht<Qr.length;Ht++)Vt=Qr[Ht],fe.prototype[Vt]||(fe.prototype[Vt]=Zr.prototype[Vt]);var Qr,Vt,Ht;function fe(e){if(!(this instanceof fe))return new fe(e);Zi.call(this,e),Zr.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Zl)))}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(fe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(fe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Zl(){this._writableState.ended||process.nextTick(zl,this)}function zl(e){e.end()}Object.defineProperty(fe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var ro=m((en,to)=>{u();var Jt=S("buffer"),ce=Jt.Buffer;function eo(e,t){for(var r in e)t[r]=e[r]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?to.exports=Jt:(eo(Jt,en),en.Buffer=De);function De(e,t,r){return ce(e,t,r)}De.prototype=Object.create(ce.prototype);eo(ce,De);De.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ce(e,t,r)};De.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ce(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};De.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ce(e)};De.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Jt.SlowBuffer(e)}});var nn=m(io=>{"use strict";u();var rn=ro().Buffer,no=rn.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ef(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function tf(e){var t=ef(e);if(typeof t!="string"&&(rn.isEncoding===no||!no(e)))throw new Error("Unknown encoding: "+e);return t||e}io.StringDecoder=ct;function ct(e){this.encoding=tf(e);var t;switch(this.encoding){case"utf16le":this.text=uf,this.end=lf,t=4;break;case"utf8":this.fillLast=of,t=4;break;case"base64":this.text=ff,this.end=cf,t=3;break;default:this.write=hf,this.end=df;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rn.allocUnsafe(t)}ct.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};ct.prototype.end=af;ct.prototype.text=sf;ct.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function tn(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function rf(e,t,r){var n=t.length-1;if(n<r)return 0;var i=tn(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=tn(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=tn(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function nf(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function of(e){var t=this.lastTotal-this.lastNeed,r=nf(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function sf(e,t){var r=rf(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function af(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function uf(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function lf(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function ff(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function cf(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function hf(e){return e.toString(this.encoding)}function df(e){return e&&e.length?this.write(e):""}});var Kt=m((O0,ao)=>{"use strict";u();var oo=ye().codes.ERR_STREAM_PREMATURE_CLOSE;function pf(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function yf(){}function mf(e){return e.setHeader&&typeof e.abort=="function"}function so(e,t,r){if(typeof t=="function")return so(e,null,t);t||(t={}),r=pf(r||yf);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||a()},s=e._writableState&&e._writableState.finished,a=function(){i=!1,s=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,p=function(){n=!1,l=!0,i||r.call(e)},f=function(_){r.call(e,_)},h=function(){var _;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(_=new oo),r.call(e,_);if(i&&!s)return(!e._writableState||!e._writableState.ended)&&(_=new oo),r.call(e,_)},y=function(){e.req.on("finish",a)};return mf(e)?(e.on("complete",a),e.on("abort",h),e.req?y():e.on("request",y)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",p),e.on("finish",a),t.error!==!1&&e.on("error",f),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",y),e.req&&e.req.removeListener("finish",a),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",a),e.removeListener("end",p),e.removeListener("error",f),e.removeListener("close",h)}}ao.exports=so});var lo=m((C0,uo)=>{"use strict";u();var Xt;function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _f=Kt(),ge=Symbol("lastResolve"),Fe=Symbol("lastReject"),ht=Symbol("error"),Qt=Symbol("ended"),Be=Symbol("lastPromise"),on=Symbol("handlePromise"),Pe=Symbol("stream");function ve(e,t){return{value:e,done:t}}function gf(e){var t=e[ge];if(t!==null){var r=e[Pe].read();r!==null&&(e[Be]=null,e[ge]=null,e[Fe]=null,t(ve(r,!1)))}}function vf(e){process.nextTick(gf,e)}function xf(e,t){return function(r,n){e.then(function(){if(t[Qt]){r(ve(void 0,!0));return}t[on](r,n)},n)}}var wf=Object.getPrototypeOf(function(){}),bf=Object.setPrototypeOf((Xt={get stream(){return this[Pe]},next:function(){var t=this,r=this[ht];if(r!==null)return Promise.reject(r);if(this[Qt])return Promise.resolve(ve(void 0,!0));if(this[Pe].destroyed)return new Promise(function(s,a){process.nextTick(function(){t[ht]?a(t[ht]):s(ve(void 0,!0))})});var n=this[Be],i;if(n)i=new Promise(xf(n,this));else{var o=this[Pe].read();if(o!==null)return Promise.resolve(ve(o,!1));i=new Promise(this[on])}return this[Be]=i,i}},_e(Xt,Symbol.asyncIterator,function(){return this}),_e(Xt,"return",function(){var t=this;return new Promise(function(r,n){t[Pe].destroy(null,function(i){if(i){n(i);return}r(ve(void 0,!0))})})}),Xt),wf),Sf=function(t){var r,n=Object.create(bf,(r={},_e(r,Pe,{value:t,writable:!0}),_e(r,ge,{value:null,writable:!0}),_e(r,Fe,{value:null,writable:!0}),_e(r,ht,{value:null,writable:!0}),_e(r,Qt,{value:t._readableState.endEmitted,writable:!0}),_e(r,on,{value:function(o,s){var a=n[Pe].read();a?(n[Be]=null,n[ge]=null,n[Fe]=null,o(ve(a,!1))):(n[ge]=o,n[Fe]=s)},writable:!0}),r));return n[Be]=null,_f(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Fe];o!==null&&(n[Be]=null,n[ge]=null,n[Fe]=null,o(i)),n[ht]=i;return}var s=n[ge];s!==null&&(n[Be]=null,n[ge]=null,n[Fe]=null,s(ve(void 0,!0))),n[Qt]=!0}),t.on("readable",vf.bind(null,n)),n};uo.exports=Sf});var po=m((A0,ho)=>{"use strict";u();function fo(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(p){r(p);return}a.done?t(l):Promise.resolve(l).then(n,i)}function Ef(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(l){fo(o,n,i,s,a,"next",l)}function a(l){fo(o,n,i,s,a,"throw",l)}s(void 0)})}}function co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?co(Object(r),!0).forEach(function(n){Rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):co(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Of=ye().codes.ERR_INVALID_ARG_TYPE;function Cf(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new Of("iterable",["Iterable"],t);var i=new e(Tf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Ef(function*(){try{var l=yield n.next(),p=l.value,f=l.done;f?i.push(null):i.push(yield p)?s():o=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}ho.exports=Cf});var zr=m((F0,Eo)=>{"use strict";u();Eo.exports=E;var Ke;E.ReadableState=go;var D0=S("events").EventEmitter,_o=function(t,r){return t.listeners(r).length},pt=jr(),Zt=S("buffer").Buffer,Af=global.Uint8Array||function(){};function Df(e){return Zt.from(e)}function Ff(e){return Zt.isBuffer(e)||e instanceof Af}var sn=S("util"),b;sn&&sn.debuglog?b=sn.debuglog("stream"):b=function(){};var Bf=Mi(),dn=Wr(),Pf=Gr(),Nf=Pf.getHighWaterMark,zt=ye().codes,If=zt.ERR_INVALID_ARG_TYPE,Mf=zt.ERR_STREAM_PUSH_AFTER_EOF,kf=zt.ERR_METHOD_NOT_IMPLEMENTED,qf=zt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Xe,an,un;Ce()(E,pt);var dt=dn.errorOrDestroy,ln=["error","close","destroy","pause","resume"];function Lf(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function go(e,t,r){Ke=Ke||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ke),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Nf(this,e,"readableHighWaterMark",r),this.buffer=new Bf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Xe||(Xe=nn().StringDecoder),this.decoder=new Xe(e.encoding),this.encoding=e.encoding)}function E(e){if(Ke=Ke||Ae(),!(this instanceof E))return new E(e);var t=this instanceof Ke;this._readableState=new go(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),pt.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});E.prototype.destroy=dn.destroy;E.prototype._undestroy=dn.undestroy;E.prototype._destroy=function(e,t){t(e)};E.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Zt.from(e,t),t=""),n=!0),vo(this,e,t,!1,n)};E.prototype.unshift=function(e){return vo(this,e,null,!0,!1)};function vo(e,t,r,n,i){b("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,Uf(e,o);else{var s;if(i||(s=jf(o,t)),s)dt(e,s);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Zt.prototype&&(t=Df(t)),n)o.endEmitted?dt(e,new qf):fn(e,o,t,!0);else if(o.ended)dt(e,new Mf);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?fn(e,o,t,!1):hn(e,o)):fn(e,o,t,!1)}else n||(o.reading=!1,hn(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function fn(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&er(e)),hn(e,t)}function jf(e,t){var r;return!Ff(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new If("chunk",["string","Buffer","Uint8Array"],t)),r}E.prototype.isPaused=function(){return this._readableState.flowing===!1};E.prototype.setEncoding=function(e){Xe||(Xe=nn().StringDecoder);var t=new Xe(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var yo=1073741824;function $f(e){return e>=yo?e=yo:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function mo(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=$f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}E.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return b("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?cn(this):er(this),null;if(e=mo(e,t),e===0&&t.ended)return t.length===0&&cn(this),null;var n=t.needReadable;b("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,b("length less than watermark",n)),t.ended||t.reading?(n=!1,b("reading or ended",n)):n&&(b("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=mo(r,t)));var i;return e>0?i=bo(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&cn(this)),i!==null&&this.emit("data",i),i};function Uf(e,t){if(b("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?er(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,xo(e)))}}function er(e){var t=e._readableState;b("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(xo,e))}function xo(e){var t=e._readableState;b("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,pn(e)}function hn(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Wf,e,t))}function Wf(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(b("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}E.prototype._read=function(e){dt(this,new kf("_read()"))};E.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,b("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?a:g;n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(x,w){b("onunpipe"),x===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,f())}function a(){b("onend"),e.end()}var l=Gf(r);e.on("drain",l);var p=!1;function f(){b("cleanup"),e.removeListener("close",d),e.removeListener("finish",_),e.removeListener("drain",l),e.removeListener("error",y),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",h),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(x){b("ondata");var w=e.write(x);b("dest.write",w),w===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&So(n.pipes,e)!==-1)&&!p&&(b("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(x){b("onerror",x),g(),e.removeListener("error",y),_o(e,"error")===0&&dt(e,x)}Lf(e,"error",y);function d(){e.removeListener("finish",_),g()}e.once("close",d);function _(){b("onfinish"),e.removeListener("close",d),g()}e.once("finish",_);function g(){b("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(b("pipe resume"),r.resume()),e};function Gf(e){return function(){var r=e._readableState;b("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&_o(e,"data")&&(r.flowing=!0,pn(e))}}E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=So(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};E.prototype.on=function(e,t){var r=pt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,b("on readable",n.length,n.reading),n.length?er(this):n.reading||process.nextTick(Yf,this)),r};E.prototype.addListener=E.prototype.on;E.prototype.removeListener=function(e,t){var r=pt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(wo,this),r};E.prototype.removeAllListeners=function(e){var t=pt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(wo,this),t};function wo(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Yf(e){b("readable nexttick read 0"),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(b("resume"),e.flowing=!e.readableListening,Hf(this,e)),e.paused=!1,this};function Hf(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Vf,e,t))}function Vf(e,t){b("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),pn(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pn(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(b("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(b("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=t.push(s);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var o=0;o<ln.length;o++)e.on(ln[o],this.emit.bind(this,ln[o]));return this._read=function(s){b("wrapped _read",s),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return an===void 0&&(an=lo()),an(this)});Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});E._fromList=bo;Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function bo(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function cn(e){var t=e._readableState;b("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Jf,t,e))}function Jf(e,t){if(b("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(E.from=function(e,t){return un===void 0&&(un=po()),un(E,e,t)});function So(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var yn=m((B0,Ro)=>{"use strict";u();Ro.exports=he;var tr=ye().codes,Kf=tr.ERR_METHOD_NOT_IMPLEMENTED,Xf=tr.ERR_MULTIPLE_CALLBACK,Qf=tr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Zf=tr.ERR_TRANSFORM_WITH_LENGTH_0,rr=Ae();Ce()(he,rr);function zf(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Xf);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function he(e){if(!(this instanceof he))return new he(e);rr.call(this,e),this._transformState={afterTransform:zf.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ec)}function ec(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){To(e,t,r)}):To(this,null,null)}he.prototype.push=function(e,t){return this._transformState.needTransform=!1,rr.prototype.push.call(this,e,t)};he.prototype._transform=function(e,t,r){r(new Kf("_transform()"))};he.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};he.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};he.prototype._destroy=function(e,t){rr.prototype._destroy.call(this,e,function(r){t(r)})};function To(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Zf;if(e._transformState.transforming)throw new Qf;return e.push(null)}});var Ao=m((P0,Co)=>{"use strict";u();Co.exports=yt;var Oo=yn();Ce()(yt,Oo);function yt(e){if(!(this instanceof yt))return new yt(e);Oo.call(this,e)}yt.prototype._transform=function(e,t,r){r(null,e)}});var No=m((N0,Po)=>{"use strict";u();var mn;function tc(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Bo=ye().codes,rc=Bo.ERR_MISSING_ARGS,nc=Bo.ERR_STREAM_DESTROYED;function Do(e){if(e)throw e}function ic(e){return e.setHeader&&typeof e.abort=="function"}function oc(e,t,r,n){n=tc(n);var i=!1;e.on("close",function(){i=!0}),mn===void 0&&(mn=Kt()),mn(e,{readable:t,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,ic(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(s||new nc("pipe"))}}}function Fo(e){e()}function sc(e,t){return e.pipe(t)}function ac(e){return!e.length||typeof e[e.length-1]!="function"?Do:e.pop()}function uc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ac(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new rc("streams");var i,o=t.map(function(s,a){var l=a<t.length-1,p=a>0;return oc(s,l,p,function(f){i||(i=f),f&&o.forEach(Fo),!l&&(o.forEach(Fo),n(i))})});return t.reduce(sc)}Po.exports=uc});var Io=m((ne,_t)=>{u();var mt=S("stream");process.env.READABLE_STREAM==="disable"&&mt?(_t.exports=mt.Readable,Object.assign(_t.exports,mt),_t.exports.Stream=mt):(ne=_t.exports=zr(),ne.Stream=mt||ne,ne.Readable=ne,ne.Writable=Xr(),ne.Duplex=Ae(),ne.Transform=yn(),ne.PassThrough=Ao(),ne.finished=Kt(),ne.pipeline=No())});var qo=m((I0,ko)=>{"use strict";u();var{Buffer:oe}=S("buffer"),Mo=Symbol.for("BufferList");function A(e){if(!(this instanceof A))return new A(e);A._init.call(this,e)}A._init=function(t){Object.defineProperty(this,Mo,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};A.prototype._new=function(t){return new A(t)};A.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};A.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};A.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};A.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};A.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||oe.alloc(0);let o=!!t,s=this._offset(n),a=i-n,l=a,p=o&&r||0,f=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:oe.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,p),p+=this._bufs[h].length;return t}if(l<=this._bufs[s[0]].length-f)return o?this._bufs[s[0]].copy(t,r,f,f+l):this._bufs[s[0]].slice(f,f+l);o||(t=oe.allocUnsafe(a));for(let h=s[0];h<this._bufs.length;h++){let y=this._bufs[h].length-f;if(l>y)this._bufs[h].copy(t,p,f),p+=y;else{this._bufs[h].copy(t,p,f,f+l),p+=y;break}l-=y,f&&(f=0)}return t.length>p?t.slice(0,p):t};A.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};A.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};A.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};A.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};A.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(oe.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(oe.from(t));return this};A.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};A.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=oe.from([e]):typeof e=="string"?e=oe.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=oe.from(e.buffer,e.byteOffset,e.byteLength):oe.isBuffer(e)||(e=oe.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=e.length){let l=s.indexOf(e,o);if(l!==-1)return this._reverseOffset([i,l]);o=s.length-e.length+1}else{let l=this._reverseOffset([i,o]);if(this._match(l,e))return l;o++}o=0}return-1};A.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?A.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:A.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();A.prototype._isBufferList=function(t){return t instanceof A||A.isBufferList(t)};A.isBufferList=function(t){return t!=null&&t[Mo]};ko.exports=A});var Lo=m((M0,nr)=>{"use strict";u();var _n=Io().Duplex,lc=Ce(),gt=qo();function G(e){if(!(this instanceof G))return new G(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}gt._init.call(this,e),_n.call(this)}lc(G,_n);Object.assign(G.prototype,gt.prototype);G.prototype._new=function(t){return new G(t)};G.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};G.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};G.prototype.end=function(t){_n.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};G.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};G.prototype._isBufferList=function(t){return t instanceof G||t instanceof gt||G.isBufferList(t)};G.isBufferList=gt.isBufferList;nr.exports=G;nr.exports.BufferListStream=G;nr.exports.BufferList=gt});var K=m(wn=>{"use strict";u();wn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};wn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ho=m((z0,Yo)=>{u();var xe=S("constants"),yc=process.cwd,sr=null,mc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return sr||(sr=yc.call(process)),sr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(bn=process.chdir,process.chdir=function(e){sr=null,bn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,bn));var bn;Yo.exports=_c;function _c(e){xe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(f,h,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(f,h,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),mc==="win32"&&(e.rename=function(f){return function(h,y,d){var _=Date.now(),g=0;f(h,y,function x(w){if(w&&(w.code==="EACCES"||w.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(y,function(D,de){D&&D.code==="ENOENT"?f(h,y,x):d(w)})},g),g<100&&(g+=10);return}d&&d(w)})}}(e.rename)),e.read=function(f){function h(y,d,_,g,x,w){var D;if(w&&typeof w=="function"){var de=0;D=function(pe,ke,qn){if(pe&&pe.code==="EAGAIN"&&de<10)return de++,f.call(e,y,d,_,g,x,D);w.apply(this,arguments)}}return f.call(e,y,d,_,g,x,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.read),e.readSync=function(f){return function(h,y,d,_,g){for(var x=0;;)try{return f.call(e,h,y,d,_,g)}catch(w){if(w.code==="EAGAIN"&&x<10){x++;continue}throw w}}}(e.readSync);function t(f){f.lchmod=function(h,y,d){f.open(h,xe.O_WRONLY|xe.O_SYMLINK,y,function(_,g){if(_){d&&d(_);return}f.fchmod(g,y,function(x){f.close(g,function(w){d&&d(x||w)})})})},f.lchmodSync=function(h,y){var d=f.openSync(h,xe.O_WRONLY|xe.O_SYMLINK,y),_=!0,g;try{g=f.fchmodSync(d,y),_=!1}finally{if(_)try{f.closeSync(d)}catch{}else f.closeSync(d)}return g}}function r(f){xe.hasOwnProperty("O_SYMLINK")?(f.lutimes=function(h,y,d,_){f.open(h,xe.O_SYMLINK,function(g,x){if(g){_&&_(g);return}f.futimes(x,y,d,function(w){f.close(x,function(D){_&&_(w||D)})})})},f.lutimesSync=function(h,y,d){var _=f.openSync(h,xe.O_SYMLINK),g,x=!0;try{g=f.futimesSync(_,y,d),x=!1}finally{if(x)try{f.closeSync(_)}catch{}else f.closeSync(_)}return g}):(f.lutimes=function(h,y,d,_){_&&process.nextTick(_)},f.lutimesSync=function(){})}function n(f){return f&&function(h,y,d){return f.call(e,h,y,function(_){p(_)&&(_=null),d&&d.apply(this,arguments)})}}function i(f){return f&&function(h,y){try{return f.call(e,h,y)}catch(d){if(!p(d))throw d}}}function o(f){return f&&function(h,y,d,_){return f.call(e,h,y,d,function(g){p(g)&&(g=null),_&&_.apply(this,arguments)})}}function s(f){return f&&function(h,y,d){try{return f.call(e,h,y,d)}catch(_){if(!p(_))throw _}}}function a(f){return f&&function(h,y,d){typeof y=="function"&&(d=y,y=null);function _(g,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),d&&d.apply(this,arguments)}return y?f.call(e,h,y,_):f.call(e,h,_)}}function l(f){return f&&function(h,y){var d=y?f.call(e,h,y):f.call(e,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Ko=m((ep,Jo)=>{u();var Vo=S("stream").Stream;Jo.exports=gc;function gc(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Vo.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;a<l;a++){var p=s[a];this[p]=i[p]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,h){if(f){o.emit("error",f),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Vo.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=i[l]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Qo=m((tp,Xo)=>{"use strict";u();Xo.exports=xc;var vc=Object.getPrototypeOf||function(e){return e.__proto__};function xc(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:vc(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var V=m((rp,Tn)=>{u();var B=S("fs"),wc=Ho(),bc=Ko(),Sc=Qo(),ar=S("util"),W,lr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(W=Symbol.for("graceful-fs.queue"),lr=Symbol.for("graceful-fs.previous")):(W="___graceful-fs.queue",lr="___graceful-fs.previous");function Ec(){}function es(e,t){Object.defineProperty(e,W,{get:function(){return t}})}var Ne=Ec;ar.debuglog?Ne=ar.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ne=function(){var e=ar.format.apply(ar,arguments);e="GFS4: "+e.split(/\n/).join(`
5
+ GFS4: `),console.error(e)});B[W]||(Zo=global[W]||[],es(B,Zo),B.close=function(e){function t(r,n){return e.call(B,r,function(i){i||zo(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,lr,{value:e}),t}(B.close),B.closeSync=function(e){function t(r){e.apply(B,arguments),zo()}return Object.defineProperty(t,lr,{value:e}),t}(B.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ne(B[W]),S("assert").equal(B[W].length,0)}));var Zo;global[W]||es(global,B[W]);Tn.exports=Sn(Sc(B));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!B.__patched&&(Tn.exports=Sn(B),B.__patched=!0);function Sn(e){wc(e),e.gracefulify=Sn,e.createReadStream=pe,e.createWriteStream=ke;var t=e.readFile;e.readFile=r;function r(v,R,T){return typeof R=="function"&&(T=R,R=null),j(v,R,T);function j($,U,M,H){return t($,U,function(C){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Qe([j,[$,U,M],C,H||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return n(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return o(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=l);function l(v,R,T,j){return typeof T=="function"&&(j=T,T=0),$(v,R,T,j);function $(U,M,H,C,z){return a(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var p=e.readdir;e.readdir=f;function f(v,R,T){return typeof R=="function"&&(T=R,R=null),j(v,R,T);function j($,U,M,H){return p($,U,function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Qe([j,[$,U,M],C,H||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof M=="function"&&M.call(this,C,z))})}}if(process.version.substr(0,4)==="v0.8"){var h=bc(e);x=h.ReadStream,D=h.WriteStream}var y=e.ReadStream;y&&(x.prototype=Object.create(y.prototype),x.prototype.open=w);var d=e.WriteStream;d&&(D.prototype=Object.create(d.prototype),D.prototype.open=de),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(v){x=v},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(v){D=v},enumerable:!0,configurable:!0});var _=x;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(v){_=v},enumerable:!0,configurable:!0});var g=D;Object.defineProperty(e,"FileWriteStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});function x(v,R){return this instanceof x?(y.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function w(){var v=this;wr(v.path,v.flags,v.mode,function(R,T){R?(v.autoClose&&v.destroy(),v.emit("error",R)):(v.fd=T,v.emit("open",T),v.read())})}function D(v,R){return this instanceof D?(d.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function de(){var v=this;wr(v.path,v.flags,v.mode,function(R,T){R?(v.destroy(),v.emit("error",R)):(v.fd=T,v.emit("open",T))})}function pe(v,R){return new e.ReadStream(v,R)}function ke(v,R){return new e.WriteStream(v,R)}var qn=e.open;e.open=wr;function wr(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return qn(U,M,H,function(k,Rd){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}return e}function Qe(e){Ne("ENQUEUE",e[0].name,e[1]),B[W].push(e),En()}var ur;function zo(){for(var e=Date.now(),t=0;t<B[W].length;++t)B[W][t].length>2&&(B[W][t][3]=e,B[W][t][4]=e);En()}function En(){if(clearTimeout(ur),ur=void 0,B[W].length!==0){var e=B[W].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ne("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ne("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,l=Math.max(o-i,1),p=Math.min(l*1.2,100);a>=p?(Ne("RETRY",t.name,r),t.apply(null,r.concat([i]))):B[W].push(e)}ur===void 0&&(ur=setTimeout(En,0))}}});var Ie=m(we=>{"use strict";u();var ts=K().fromCallback,Z=V(),Tc=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof Z[e]=="function");Object.assign(we,Z);Tc.forEach(e=>{we[e]=ts(Z[e])});we.realpath.native=ts(Z.realpath.native);we.exists=function(e,t){return typeof t=="function"?Z.exists(e,t):new Promise(r=>Z.exists(e,r))};we.read=function(e,t,r,n,i,o){return typeof o=="function"?Z.read(e,t,r,n,i,o):new Promise((s,a)=>{Z.read(e,t,r,n,i,(l,p,f)=>{if(l)return a(l);s({bytesRead:p,buffer:f})})})};we.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Z.write(e,t,...r):new Promise((n,i)=>{Z.write(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};typeof Z.writev=="function"&&(we.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Z.writev(e,t,...r):new Promise((n,i)=>{Z.writev(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})})});var ns=m((ip,rs)=>{"use strict";u();var Rc=S("path");rs.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Rc.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var as=m((op,Rn)=>{"use strict";u();var is=Ie(),{checkPath:os}=ns(),ss=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Rn.exports.makeDir=async(e,t)=>(os(e),is.mkdir(e,{mode:ss(t),recursive:!0}));Rn.exports.makeDirSync=(e,t)=>(os(e),is.mkdirSync(e,{mode:ss(t),recursive:!0}))});var ae=m((sp,us)=>{"use strict";u();var Oc=K().fromPromise,{makeDir:Cc,makeDirSync:On}=as(),Cn=Oc(Cc);us.exports={mkdirs:Cn,mkdirsSync:On,mkdirp:Cn,mkdirpSync:On,ensureDir:Cn,ensureDirSync:On}});var be=m((ap,fs)=>{"use strict";u();var Ac=K().fromPromise,ls=Ie();function Dc(e){return ls.access(e).then(()=>!0).catch(()=>!1)}fs.exports={pathExists:Ac(Dc),pathExistsSync:ls.existsSync}});var An=m((up,cs)=>{"use strict";u();var Ze=V();function Fc(e,t,r,n){Ze.open(e,"r+",(i,o)=>{if(i)return n(i);Ze.futimes(o,t,r,s=>{Ze.close(o,a=>{n&&n(s||a)})})})}function Bc(e,t,r){let n=Ze.openSync(e,"r+");return Ze.futimesSync(n,t,r),Ze.closeSync(n)}cs.exports={utimesMillis:Fc,utimesMillisSync:Bc}});var Me=m((lp,ps)=>{"use strict";u();var ze=Ie(),L=S("path"),Pc=S("util");function Nc(e,t,r){let n=r.dereference?i=>ze.stat(i,{bigint:!0}):i=>ze.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function Ic(e,t,r){let n,i=r.dereference?s=>ze.statSync(s,{bigint:!0}):s=>ze.lstatSync(s,{bigint:!0}),o=i(e);try{n=i(t)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:n}}function Mc(e,t,r,n,i){Pc.callbackify(Nc)(e,t,n,(o,s)=>{if(o)return i(o);let{srcStat:a,destStat:l}=s;if(l){if(xt(a,l)){let p=L.basename(e),f=L.basename(t);return r==="move"&&p!==f&&p.toLowerCase()===f.toLowerCase()?i(null,{srcStat:a,destStat:l,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!a.isDirectory()&&l.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return a.isDirectory()&&Dn(e,t)?i(new Error(fr(e,t,r))):i(null,{srcStat:a,destStat:l})})}function kc(e,t,r,n){let{srcStat:i,destStat:o}=Ic(e,t,n);if(o){if(xt(i,o)){let s=L.basename(e),a=L.basename(t);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Dn(e,t))throw new Error(fr(e,t,r));return{srcStat:i,destStat:o}}function hs(e,t,r,n,i){let o=L.resolve(L.dirname(e)),s=L.resolve(L.dirname(r));if(s===o||s===L.parse(s).root)return i();ze.stat(s,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?i():i(a):xt(t,l)?i(new Error(fr(e,r,n))):hs(e,t,s,n,i))}function ds(e,t,r,n){let i=L.resolve(L.dirname(e)),o=L.resolve(L.dirname(r));if(o===i||o===L.parse(o).root)return;let s;try{s=ze.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(xt(t,s))throw new Error(fr(e,r,n));return ds(e,t,o,n)}function xt(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Dn(e,t){let r=L.resolve(e).split(L.sep).filter(i=>i),n=L.resolve(t).split(L.sep).filter(i=>i);return r.reduce((i,o,s)=>i&&n[s]===o,!0)}function fr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ps.exports={checkPaths:Mc,checkPathsSync:kc,checkParentPaths:hs,checkParentPathsSync:ds,isSrcSubdir:Dn,areIdentical:xt}});var bs=m((fp,ws)=>{"use strict";u();var X=V(),wt=S("path"),qc=ae().mkdirs,Lc=be().pathExists,jc=An().utimesMillis,bt=Me();function $c(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
6
+
7
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),bt.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;bt.checkParentPaths(e,s,t,"copy",l=>l?n(l):r.filter?_s(ys,a,e,t,r,n):ys(a,e,t,r,n))})}function ys(e,t,r,n,i){let o=wt.dirname(r);Lc(o,(s,a)=>{if(s)return i(s);if(a)return cr(e,t,r,n,i);qc(o,l=>l?i(l):cr(e,t,r,n,i))})}function _s(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),s=>o(s))}function Uc(e,t,r,n,i){return n.filter?_s(cr,e,t,r,n,i):cr(e,t,r,n,i)}function cr(e,t,r,n,i){(n.dereference?X.stat:X.lstat)(t,(s,a)=>s?i(s):a.isDirectory()?Kc(a,e,t,r,n,i):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?Wc(a,e,t,r,n,i):a.isSymbolicLink()?Zc(e,t,r,n,i):a.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):a.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function Wc(e,t,r,n,i,o){return t?Gc(e,r,n,i,o):gs(e,r,n,i,o)}function Gc(e,t,r,n,i){if(n.overwrite)X.unlink(r,o=>o?i(o):gs(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function gs(e,t,r,n,i){X.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?Yc(e.mode,t,r,i):hr(r,e.mode,i))}function Yc(e,t,r,n){return Hc(e)?Vc(r,e,i=>i?n(i):ms(e,t,r,n)):ms(e,t,r,n)}function Hc(e){return(e&128)===0}function Vc(e,t,r){return hr(e,t|128,r)}function ms(e,t,r,n){Jc(t,r,i=>i?n(i):hr(r,e,n))}function hr(e,t,r){return X.chmod(e,t,r)}function Jc(e,t,r){X.stat(e,(n,i)=>n?r(n):jc(t,i.atime,i.mtime,r))}function Kc(e,t,r,n,i,o){return t?vs(r,n,i,o):Xc(e.mode,r,n,i,o)}function Xc(e,t,r,n,i){X.mkdir(r,o=>{if(o)return i(o);vs(t,r,n,s=>s?i(s):hr(r,e,i))})}function vs(e,t,r,n){X.readdir(e,(i,o)=>i?n(i):xs(o,e,t,r,n))}function xs(e,t,r,n,i){let o=e.pop();return o?Qc(e,o,t,r,n,i):i()}function Qc(e,t,r,n,i,o){let s=wt.join(r,t),a=wt.join(n,t);bt.checkPaths(s,a,"copy",i,(l,p)=>{if(l)return o(l);let{destStat:f}=p;Uc(f,s,a,i,h=>h?o(h):xs(e,r,n,i,o))})}function Zc(e,t,r,n,i){X.readlink(t,(o,s)=>{if(o)return i(o);if(n.dereference&&(s=wt.resolve(process.cwd(),s)),e)X.readlink(r,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?X.symlink(s,r,i):i(a):(n.dereference&&(l=wt.resolve(process.cwd(),l)),bt.isSrcSubdir(s,l)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&bt.isSrcSubdir(l,s)?i(new Error(`Cannot overwrite '${l}' with '${s}'.`)):zc(s,r,i)));else return X.symlink(s,r,i)})}function zc(e,t,r){X.unlink(t,n=>n?r(n):X.symlink(e,t,r))}ws.exports=$c});var Os=m((cp,Rs)=>{"use strict";u();var Y=V(),St=S("path"),eh=ae().mkdirsSync,th=An().utimesMillisSync,Et=Me();function rh(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
8
+
9
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Et.checkPathsSync(e,t,"copy",r);return Et.checkParentPathsSync(e,n,t,"copy"),nh(i,e,t,r)}function nh(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=St.dirname(r);return Y.existsSync(i)||eh(i),Ss(e,t,r,n)}function ih(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Ss(e,t,r,n)}function Ss(e,t,r,n){let o=(n.dereference?Y.statSync:Y.lstatSync)(t);if(o.isDirectory())return ch(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return oh(o,e,t,r,n);if(o.isSymbolicLink())return ph(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function oh(e,t,r,n,i){return t?sh(e,r,n,i):Es(e,r,n,i)}function sh(e,t,r,n){if(n.overwrite)return Y.unlinkSync(r),Es(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Es(e,t,r,n){return Y.copyFileSync(t,r),n.preserveTimestamps&&ah(e.mode,t,r),Fn(r,e.mode)}function ah(e,t,r){return uh(e)&&lh(r,e),fh(t,r)}function uh(e){return(e&128)===0}function lh(e,t){return Fn(e,t|128)}function Fn(e,t){return Y.chmodSync(e,t)}function fh(e,t){let r=Y.statSync(e);return th(t,r.atime,r.mtime)}function ch(e,t,r,n,i){return t?Ts(r,n,i):hh(e.mode,r,n,i)}function hh(e,t,r,n){return Y.mkdirSync(r),Ts(t,r,n),Fn(r,e)}function Ts(e,t,r){Y.readdirSync(e).forEach(n=>dh(n,e,t,r))}function dh(e,t,r,n){let i=St.join(t,e),o=St.join(r,e),{destStat:s}=Et.checkPathsSync(i,o,"copy",n);return ih(s,i,o,n)}function ph(e,t,r,n){let i=Y.readlinkSync(t);if(n.dereference&&(i=St.resolve(process.cwd(),i)),e){let o;try{o=Y.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Y.symlinkSync(i,r);throw s}if(n.dereference&&(o=St.resolve(process.cwd(),o)),Et.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Y.statSync(r).isDirectory()&&Et.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return yh(i,r)}else return Y.symlinkSync(i,r)}function yh(e,t){return Y.unlinkSync(t),Y.symlinkSync(e,t)}Rs.exports=rh});var dr=m((hp,Cs)=>{"use strict";u();var mh=K().fromCallback;Cs.exports={copy:mh(bs()),copySync:Os()}});var ks=m((dp,Ms)=>{"use strict";u();var As=V(),Ps=S("path"),O=S("assert"),Tt=process.platform==="win32";function Ns(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||As[r],r=r+"Sync",e[r]=e[r]||As[r]}),e.maxBusyTries=e.maxBusyTries||3}function Bn(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),O(e,"rimraf: missing path"),O.strictEqual(typeof e,"string","rimraf: path should be a string"),O.strictEqual(typeof r,"function","rimraf: callback function required"),O(t,"rimraf: invalid options argument provided"),O.strictEqual(typeof t,"object","rimraf: options should be object"),Ns(t),Ds(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let s=n*100;return setTimeout(()=>Ds(e,t,i),s)}o.code==="ENOENT"&&(o=null)}r(o)})}function Ds(e,t,r){O(e),O(t),O(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Tt)return Fs(e,t,n,r);if(i&&i.isDirectory())return pr(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return Tt?Fs(e,t,o,r):pr(e,t,o,r);if(o.code==="EISDIR")return pr(e,t,o,r)}return r(o)})})}function Fs(e,t,r,n){O(e),O(t),O(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,s)=>{o?n(o.code==="ENOENT"?null:r):s.isDirectory()?pr(e,t,r,n):t.unlink(e,n)})})}function Bs(e,t,r){let n;O(e),O(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?yr(e,t,r):t.unlinkSync(e)}function pr(e,t,r,n){O(e),O(t),O(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?_h(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function _h(e,t,r){O(e),O(t),O(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,s;if(o===0)return t.rmdir(e,r);i.forEach(a=>{Bn(Ps.join(e,a),t,l=>{if(!s){if(l)return r(s=l);--o===0&&t.rmdir(e,r)}})})})}function Is(e,t){let r;t=t||{},Ns(t),O(e,"rimraf: missing path"),O.strictEqual(typeof e,"string","rimraf: path should be a string"),O(t,"rimraf: missing options"),O.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Tt&&Bs(e,t,n)}try{r&&r.isDirectory()?yr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Tt?Bs(e,t,n):yr(e,t,n);if(n.code!=="EISDIR")throw n;yr(e,t,n)}}function yr(e,t,r){O(e),O(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")gh(e,t);else if(n.code!=="ENOENT")throw n}}function gh(e,t){if(O(e),O(t),t.readdirSync(e).forEach(r=>Is(Ps.join(e,r),t)),Tt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Ms.exports=Bn;Bn.sync=Is});var Rt=m((pp,Ls)=>{"use strict";u();var mr=V(),vh=K().fromCallback,qs=ks();function xh(e,t){if(mr.rm)return mr.rm(e,{recursive:!0,force:!0},t);qs(e,t)}function wh(e){if(mr.rmSync)return mr.rmSync(e,{recursive:!0,force:!0});qs.sync(e)}Ls.exports={remove:vh(xh),removeSync:wh}});var Vs=m((yp,Hs)=>{"use strict";u();var bh=K().fromPromise,Us=Ie(),Ws=S("path"),Gs=ae(),Ys=Rt(),js=bh(async function(t){let r;try{r=await Us.readdir(t)}catch{return Gs.mkdirs(t)}return Promise.all(r.map(n=>Ys.remove(Ws.join(t,n))))});function $s(e){let t;try{t=Us.readdirSync(e)}catch{return Gs.mkdirsSync(e)}t.forEach(r=>{r=Ws.join(e,r),Ys.removeSync(r)})}Hs.exports={emptyDirSync:$s,emptydirSync:$s,emptyDir:js,emptydir:js}});var Qs=m((mp,Xs)=>{"use strict";u();var Sh=K().fromCallback,Js=S("path"),Se=V(),Ks=ae();function Eh(e,t){function r(){Se.writeFile(e,"",n=>{if(n)return t(n);t()})}Se.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=Js.dirname(e);Se.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?Ks.mkdirs(o,l=>{if(l)return t(l);r()}):t(s);a.isDirectory()?r():Se.readdir(o,l=>{if(l)return t(l)})})})}function Th(e){let t;try{t=Se.statSync(e)}catch{}if(t&&t.isFile())return;let r=Js.dirname(e);try{Se.statSync(r).isDirectory()||Se.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Ks.mkdirsSync(r);else throw n}Se.writeFileSync(e,"")}Xs.exports={createFile:Sh(Eh),createFileSync:Th}});var ra=m((_p,ta)=>{"use strict";u();var Rh=K().fromCallback,Zs=S("path"),Ee=V(),zs=ae(),Oh=be().pathExists,{areIdentical:ea}=Me();function Ch(e,t,r){function n(i,o){Ee.link(i,o,s=>{if(s)return r(s);r(null)})}Ee.lstat(t,(i,o)=>{Ee.lstat(e,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);if(o&&ea(a,o))return r(null);let l=Zs.dirname(t);Oh(l,(p,f)=>{if(p)return r(p);if(f)return n(e,t);zs.mkdirs(l,h=>{if(h)return r(h);n(e,t)})})})})}function Ah(e,t){let r;try{r=Ee.lstatSync(t)}catch{}try{let o=Ee.lstatSync(e);if(r&&ea(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=Zs.dirname(t);return Ee.existsSync(n)||zs.mkdirsSync(n),Ee.linkSync(e,t)}ta.exports={createLink:Rh(Ch),createLinkSync:Ah}});var ia=m((gp,na)=>{"use strict";u();var Te=S("path"),Ot=V(),Dh=be().pathExists;function Fh(e,t,r){if(Te.isAbsolute(e))return Ot.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Te.dirname(t),i=Te.join(n,e);return Dh(i,(o,s)=>o?r(o):s?r(null,{toCwd:i,toDst:e}):Ot.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Te.relative(n,e)})))}}function Bh(e,t){let r;if(Te.isAbsolute(e)){if(r=Ot.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Te.dirname(t),i=Te.join(n,e);if(r=Ot.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Ot.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Te.relative(n,e)}}}na.exports={symlinkPaths:Fh,symlinkPathsSync:Bh}});var aa=m((vp,sa)=>{"use strict";u();var oa=V();function Ph(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);oa.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Nh(e,t){let r;if(t)return t;try{r=oa.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}sa.exports={symlinkType:Ph,symlinkTypeSync:Nh}});var ya=m((xp,pa)=>{"use strict";u();var Ih=K().fromCallback,la=S("path"),ue=Ie(),fa=ae(),Mh=fa.mkdirs,kh=fa.mkdirsSync,ca=ia(),qh=ca.symlinkPaths,Lh=ca.symlinkPathsSync,ha=aa(),jh=ha.symlinkType,$h=ha.symlinkTypeSync,Uh=be().pathExists,{areIdentical:da}=Me();function Wh(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ue.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([ue.stat(e),ue.stat(t)]).then(([s,a])=>{if(da(s,a))return n(null);ua(e,t,r,n)}):ua(e,t,r,n)})}function ua(e,t,r,n){qh(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,jh(o.toCwd,r,(s,a)=>{if(s)return n(s);let l=la.dirname(t);Uh(l,(p,f)=>{if(p)return n(p);if(f)return ue.symlink(e,t,a,n);Mh(l,h=>{if(h)return n(h);ue.symlink(e,t,a,n)})})})})}function Gh(e,t,r){let n;try{n=ue.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let a=ue.statSync(e),l=ue.statSync(t);if(da(a,l))return}let i=Lh(e,t);e=i.toDst,r=$h(i.toCwd,r);let o=la.dirname(t);return ue.existsSync(o)||kh(o),ue.symlinkSync(e,t,r)}pa.exports={createSymlink:Ih(Wh),createSymlinkSync:Gh}});var Sa=m((wp,ba)=>{"use strict";u();var{createFile:ma,createFileSync:_a}=Qs(),{createLink:ga,createLinkSync:va}=ra(),{createSymlink:xa,createSymlinkSync:wa}=ya();ba.exports={createFile:ma,createFileSync:_a,ensureFile:ma,ensureFileSync:_a,createLink:ga,createLinkSync:va,ensureLink:ga,ensureLinkSync:va,createSymlink:xa,createSymlinkSync:wa,ensureSymlink:xa,ensureSymlinkSync:wa}});var _r=m((bp,Ea)=>{u();function Yh(e,{EOL:t=`
10
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function Hh(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Ea.exports={stringify:Yh,stripBom:Hh}});var Ca=m((Sp,Oa)=>{u();var et;try{et=V()}catch{et=S("fs")}var gr=K(),{stringify:Ta,stripBom:Ra}=_r();async function Vh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0,i=await gr.fromCallback(r.readFile)(e,t);i=Ra(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return o}var Jh=gr.fromPromise(Vh);function Kh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Ra(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Xh(e,t,r={}){let n=r.fs||et,i=Ta(t,r);await gr.fromCallback(n.writeFile)(e,i,r)}var Qh=gr.fromPromise(Xh);function Zh(e,t,r={}){let n=r.fs||et,i=Ta(t,r);return n.writeFileSync(e,i,r)}var zh={readFile:Jh,readFileSync:Kh,writeFile:Qh,writeFileSync:Zh};Oa.exports=zh});var Da=m((Ep,Aa)=>{"use strict";u();var vr=Ca();Aa.exports={readJson:vr.readFile,readJsonSync:vr.readFileSync,writeJson:vr.writeFile,writeJsonSync:vr.writeFileSync}});var xr=m((Tp,Pa)=>{"use strict";u();var ed=K().fromCallback,Ct=V(),Fa=S("path"),Ba=ae(),td=be().pathExists;function rd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Fa.dirname(e);td(i,(o,s)=>{if(o)return n(o);if(s)return Ct.writeFile(e,t,r,n);Ba.mkdirs(i,a=>{if(a)return n(a);Ct.writeFile(e,t,r,n)})})}function nd(e,...t){let r=Fa.dirname(e);if(Ct.existsSync(r))return Ct.writeFileSync(e,...t);Ba.mkdirsSync(r),Ct.writeFileSync(e,...t)}Pa.exports={outputFile:ed(rd),outputFileSync:nd}});var Ia=m((Rp,Na)=>{"use strict";u();var{stringify:id}=_r(),{outputFile:od}=xr();async function sd(e,t,r={}){let n=id(t,r);await od(e,n,r)}Na.exports=sd});var ka=m((Op,Ma)=>{"use strict";u();var{stringify:ad}=_r(),{outputFileSync:ud}=xr();function ld(e,t,r){let n=ad(t,r);ud(e,n,r)}Ma.exports=ld});var La=m((Cp,qa)=>{"use strict";u();var fd=K().fromPromise,J=Da();J.outputJson=fd(Ia());J.outputJsonSync=ka();J.outputJSON=J.outputJson;J.outputJSONSync=J.outputJsonSync;J.writeJSON=J.writeJson;J.writeJSONSync=J.writeJsonSync;J.readJSON=J.readJson;J.readJSONSync=J.readJsonSync;qa.exports=J});var Ga=m((Ap,Wa)=>{"use strict";u();var cd=V(),Nn=S("path"),hd=dr().copy,Ua=Rt().remove,dd=ae().mkdirp,pd=be().pathExists,ja=Me();function yd(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ja.checkPaths(e,t,"move",r,(o,s)=>{if(o)return n(o);let{srcStat:a,isChangingCase:l=!1}=s;ja.checkParentPaths(e,a,t,"move",p=>{if(p)return n(p);if(md(t))return $a(e,t,i,l,n);dd(Nn.dirname(t),f=>f?n(f):$a(e,t,i,l,n))})})}function md(e){let t=Nn.dirname(e);return Nn.parse(t).root===t}function $a(e,t,r,n,i){if(n)return Pn(e,t,r,i);if(r)return Ua(t,o=>o?i(o):Pn(e,t,r,i));pd(t,(o,s)=>o?i(o):s?i(new Error("dest already exists.")):Pn(e,t,r,i))}function Pn(e,t,r,n){cd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):_d(e,t,r,n):n())}function _d(e,t,r,n){hd(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):Ua(e,n))}Wa.exports=yd});var Ka=m((Dp,Ja)=>{"use strict";u();var Ha=V(),Mn=S("path"),gd=dr().copySync,Va=Rt().removeSync,vd=ae().mkdirpSync,Ya=Me();function xd(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=Ya.checkPathsSync(e,t,"move",r);return Ya.checkParentPathsSync(e,i,t,"move"),wd(t)||vd(Mn.dirname(t)),bd(e,t,n,o)}function wd(e){let t=Mn.dirname(e);return Mn.parse(t).root===t}function bd(e,t,r,n){if(n)return In(e,t,r);if(r)return Va(t),In(e,t,r);if(Ha.existsSync(t))throw new Error("dest already exists.");return In(e,t,r)}function In(e,t,r){try{Ha.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Sd(e,t,r)}}function Sd(e,t,r){return gd(e,t,{overwrite:r,errorOnExist:!0}),Va(e)}Ja.exports=xd});var Qa=m((Fp,Xa)=>{"use strict";u();var Ed=K().fromCallback;Xa.exports={move:Ed(Ga()),moveSync:Ka()}});var za=m((Bp,Za)=>{"use strict";u();Za.exports={...Ie(),...dr(),...Vs(),...Sa(),...La(),...ae(),...Qa(),...xr(),...be(),...Rt()}});u();u();u();var Ln=(e=0)=>t=>`\x1B[${t+e}m`,jn=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,$n=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function hu(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Ln(),t.color.ansi256=jn(),t.color.ansi16m=$n(),t.bgColor.ansi=Ln(10),t.bgColor.ansi256=jn(10),t.bgColor.ansi16m=$n(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(s=>s+s).join(""));let o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,o;if(r>=232)n=((r-232)*10+8)/255,i=n,o=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,o=l%6/5}let s=Math.max(n,i,o)*2;if(s===0)return 30;let a=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(n));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var du=hu(),ie=du;u();import Sr from"node:process";import pu from"node:os";import Un from"node:tty";function ee(e,t=Sr.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:N}=Sr,At;ee("no-color")||ee("no-colors")||ee("color=false")||ee("color=never")?At=0:(ee("color")||ee("colors")||ee("color=true")||ee("color=always"))&&(At=1);function yu(){if("FORCE_COLOR"in N)return N.FORCE_COLOR==="true"?1:N.FORCE_COLOR==="false"?0:N.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(N.FORCE_COLOR,10),3)}function mu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _u(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=yu();n!==void 0&&(At=n);let i=r?At:n;if(i===0)return 0;if(r){if(ee("color=16m")||ee("color=full")||ee("color=truecolor"))return 3;if(ee("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let o=i||0;if(N.TERM==="dumb")return o;if(Sr.platform==="win32"){let s=pu.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in N)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in N)||N.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in N)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(N.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in N&&"AGENT_NAME"in N)return 1;if(N.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in N){let s=Number.parseInt((N.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(N.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(N.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(N.TERM)||"COLORTERM"in N?1:o}function Wn(e,t={}){let r=_u(e,{streamIsTTY:e&&e.isTTY,...t});return mu(r)}var gu={stdout:Wn({isTTY:Un.isatty(1)}),stderr:Wn({isTTY:Un.isatty(2)})},Gn=gu;u();function Yn(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.slice(o),s}function Hn(e,t,r,n){let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
11
+ `:`
12
+ `)+r,i=n+1,n=e.indexOf(`
13
+ `,i)}while(n!==-1);return o+=e.slice(i),o}var{stdout:Vn,stderr:Jn}=Gn,Er=Symbol("GENERATOR"),Le=Symbol("STYLER"),tt=Symbol("IS_EMPTY"),Kn=["ansi","ansi","ansi256","ansi16m"],je=Object.create(null),vu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Vn?Vn.level:0;e.level=t.level===void 0?r:t.level};var xu=e=>{let t=(...r)=>r.join(" ");return vu(t,e),Object.setPrototypeOf(t,rt.prototype),t};function rt(e){return xu(e)}Object.setPrototypeOf(rt.prototype,Function.prototype);for(let[e,t]of Object.entries(ie))je[e]={get(){let r=Dt(this,Rr(t.open,t.close,this[Le]),this[tt]);return Object.defineProperty(this,e,{value:r}),r}};je.visible={get(){let e=Dt(this,this[Le],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Tr=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ie[r].ansi16m(...n):t==="ansi256"?ie[r].ansi256(ie.rgbToAnsi256(...n)):ie[r].ansi(ie.rgbToAnsi(...n)):e==="hex"?Tr("rgb",t,r,...ie.hexToRgb(...n)):ie[r][e](...n),wu=["rgb","hex","ansi256"];for(let e of wu){je[e]={get(){let{level:r}=this;return function(...n){let i=Rr(Tr(e,Kn[r],"color",...n),ie.color.close,this[Le]);return Dt(this,i,this[tt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);je[t]={get(){let{level:r}=this;return function(...n){let i=Rr(Tr(e,Kn[r],"bgColor",...n),ie.bgColor.close,this[Le]);return Dt(this,i,this[tt])}}}}var bu=Object.defineProperties(()=>{},{...je,level:{enumerable:!0,get(){return this[Er].level},set(e){this[Er].level=e}}}),Rr=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Dt=(e,t,r)=>{let n=(...i)=>Su(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,bu),n[Er]=e,n[Le]=t,n[tt]=r,n},Su=(e,t)=>{if(e.level<=0||!t)return e[tt]?"":t;let r=e[Le];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Yn(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
14
+ `);return o!==-1&&(t=Hn(t,i,n,o)),n+t+i};Object.defineProperties(rt.prototype,je);var Eu=rt(),Ld=rt({level:Jn?Jn.level:0});var Q=Eu;u();import{spawn as Tu,execSync as Ru}from"child_process";import Fr from"node:process";import Au from"node:os";import zn from"node:tty";await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=t(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var Xn=(e=0)=>t=>`\x1B[${t+e}m`,Qn=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Zn=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function Ou(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Xn(),t.color.ansi256=Qn(),t.color.ansi16m=Zn(),t.bgColor.ansi=Xn(10),t.bgColor.ansi256=Qn(10),t.bgColor.ansi16m=Zn(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(s=>s+s).join(""));let o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,o;if(r>=232)n=((r-232)*10+8)/255,i=n,o=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,o=l%6/5}let s=Math.max(n,i,o)*2;if(s===0)return 30;let a=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(n));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var Cu=Ou(),le=Cu;function te(e,t=Fr.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:I}=Fr,Ft;te("no-color")||te("no-colors")||te("color=false")||te("color=never")?Ft=0:(te("color")||te("colors")||te("color=true")||te("color=always"))&&(Ft=1);function Du(){if("FORCE_COLOR"in I)return I.FORCE_COLOR==="true"?1:I.FORCE_COLOR==="false"?0:I.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(I.FORCE_COLOR,10),3)}function Fu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Bu(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Du();n!==void 0&&(Ft=n);let i=r?Ft:n;if(i===0)return 0;if(r){if(te("color=16m")||te("color=full")||te("color=truecolor"))return 3;if(te("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let o=i||0;if(I.TERM==="dumb")return o;if(Fr.platform==="win32"){let s=Au.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in I)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in I)||I.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in I)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(I.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in I&&"AGENT_NAME"in I)return 1;if(I.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in I){let s=Number.parseInt((I.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(I.TERM_PROGRAM){case"iTerm.app":return s>=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:o}function ei(e,t={}){let r=Bu(e,{streamIsTTY:e&&e.isTTY,...t});return Fu(r)}var Pu={stdout:ei({isTTY:zn.isatty(1)}),stderr:ei({isTTY:zn.isatty(2)})},Nu=Pu;function Iu(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.slice(o),s}function Mu(e,t,r,n){let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
15
+ `:`
16
+ `)+r,i=n+1,n=e.indexOf(`
17
+ `,i)}while(n!==-1);return o+=e.slice(i),o}var{stdout:ti,stderr:ri}=Nu,Or=Symbol("GENERATOR"),$e=Symbol("STYLER"),nt=Symbol("IS_EMPTY"),ni=["ansi","ansi","ansi256","ansi16m"],Ue=Object.create(null),ku=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ti?ti.level:0;e.level=t.level===void 0?r:t.level},qu=e=>{let t=(...r)=>r.join(" ");return ku(t,e),Object.setPrototypeOf(t,it.prototype),t};function it(e){return qu(e)}Object.setPrototypeOf(it.prototype,Function.prototype);for(let[e,t]of Object.entries(le))Ue[e]={get(){let r=Bt(this,Ar(t.open,t.close,this[$e]),this[nt]);return Object.defineProperty(this,e,{value:r}),r}};Ue.visible={get(){let e=Bt(this,this[$e],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Cr=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?le[r].ansi16m(...n):t==="ansi256"?le[r].ansi256(le.rgbToAnsi256(...n)):le[r].ansi(le.rgbToAnsi(...n)):e==="hex"?Cr("rgb",t,r,...le.hexToRgb(...n)):le[r][e](...n),Lu=["rgb","hex","ansi256"];for(let e of Lu){Ue[e]={get(){let{level:r}=this;return function(...n){let i=Ar(Cr(e,ni[r],"color",...n),le.color.close,this[$e]);return Bt(this,i,this[nt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Ue[t]={get(){let{level:r}=this;return function(...n){let i=Ar(Cr(e,ni[r],"bgColor",...n),le.bgColor.close,this[$e]);return Bt(this,i,this[nt])}}}}var ju=Object.defineProperties(()=>{},{...Ue,level:{enumerable:!0,get(){return this[Or].level},set(e){this[Or].level=e}}}),Ar=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Bt=(e,t,r)=>{let n=(...i)=>$u(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ju),n[Or]=e,n[$e]=t,n[nt]=r,n},$u=(e,t)=>{if(e.level<=0||!t)return e[nt]?"":t;let r=e[$e];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Iu(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
18
+ `);return o!==-1&&(t=Mu(t,i,n,o)),n+t+i};Object.defineProperties(it.prototype,Ue);var Uu=it(),Yd=it({level:ri?ri.level:0}),Wu=Uu,Gu={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},Yu={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`);return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},Hu=(e,t,r)=>{let n={...Gu,...t},i={...Yu,...r},o=a=>{let l=process.platform,p=n[l];if(p)return p(a);let[f,...h]=a.split(" ");return{cmd:f,args:h}},s=(a=>{let l=Object.entries(i);for(let[p,f]of l)if(a.startsWith(p)){let h=process.platform,y=f[h];if(!y)break;let d=a.slice(p.length).split(" ");return`${y(d)} ${a.slice(p.length)}`}return a})(e);return o(s)},Vu=process.platform==="linux"||process.platform==="darwin",Dr=process.platform==="win32",Ju={stdio:"pipe",shell:!0,detached:!Dr,env:process.env},Ku={log:!0,commandTranslations:{},shellTranslations:{},...Ju},ii=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=Ku)=>{let i=null;return{childProcess:i,async run(o){if(i)throw new Error("Only one command per shell.");if(typeof o=="object"){let l=process.platform;o.posix&&Vu&&(l="posix");let p=o[l];if(!p)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:o}));o=p}let{cmd:s,args:a}=Hu(o,r,t);return e&&console.log(Wu.dim(`
19
+ $ ${o}
20
+ `)),await new Promise((l,p)=>{i=Tu(s,a,n);let f="",h="";if(!i)throw new Error("Child process was not set.");let y=d=>{i=null;let _={code:d,stdout:f,stderr:h};d===0||d===1&&!Dr?l(_):p(_)};i.stdout?.on("data",d=>{f+=d.toString()}),i.stderr?.on("data",d=>{h+=d.toString()}),i.on("close",y),i.on("exit",y),i.on("error",y),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(o="SIGKILL"){if(i?.pid)if(Dr)Ru(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,o);return!0}}};u();import ir from"node:process";u();import gi from"node:process";u();var yi=qe(ui(),1),mi=qe(pi(),1);import Qu from"node:process";var Zu=(0,yi.default)(()=>{(0,mi.default)(()=>{Qu.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),_i=Zu;var Lt=!1,He={};He.show=(e=gi.stderr)=>{!e.isTTY||(Lt=!1,e.write("\x1B[?25h"))};He.hide=(e=gi.stderr)=>{!e.isTTY||(_i(),Lt=!0,e.write("\x1B[?25l"))};He.toggle=(e,t)=>{e!==void 0&&(Lt=e),Lt?He.show(t):He.hide(t)};var Ir=He;var vt=qe(bi(),1);u();u();function st(){return process.platform!=="win32"?process.env.TERM!=="linux":Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"}var el={info:Q.blue("ℹ"),success:Q.green("✔"),warning:Q.yellow("⚠"),error:Q.red("✖")},tl={info:Q.blue("i"),success:Q.green("√"),warning:Q.yellow("‼"),error:Q.red("×")},rl=st()?el:tl,at=rl;u();u();function Mr({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function kr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Mr(),"")}var $o=qe(Fi(),1);u();function Lr({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}u();var jo=qe(Lo(),1);import se from"node:process";import fc from"node:readline";var cc=3,gn=class{#r=0;#f=new jo.BufferListStream;#i;#n;constructor(){this.#f.pipe(se.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:o}=se;if(t.#r>0||o.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(cc)&&se.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(se.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){se.platform!=="win32"&&(this.#n=fc.createInterface({input:se.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{se.listenerCount("SIGINT")===0?se.emit("SIGINT"):(this.#n.close(),se.kill(se.pid,"SIGINT"))}))}_realStop(){se.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var or,Uo=class{#r=0;#f=!1;#i=0;#n=0;#e;#s;#t;#c;#h;#a;#u;#l;#d;#o;color;constructor(t){or||(or=new gn),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:ir.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Lr({stream:this.#t}),this.#u=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,ir.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#l}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#l=t,this.updateLineCount()}get interval(){return this.#h||this.#s.interval||100}get spinner(){return this.#s}set spinner(t){if(this.#n=0,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#s=t}else if(!st())this.#s=vt.default.line;else if(t===void 0)this.#s=vt.default.dots;else if(t!=="default"&&vt.default[t])this.#s=vt.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#d}set text(t){this.#d=t||"",this.updateLineCount()}get prefixText(){return this.#o}set prefixText(t){this.#o=t||"",this.updateLineCount()}get isSpinning(){return this.#c!==void 0}getFullPrefixText(t=this.#o,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#o,"-");this.#i=0;for(let n of kr(" ".repeat(this.#l)+r+"--"+this.#d).split(`
21
+ `))this.#i+=Math.max(1,Math.ceil((0,$o.default)(n)/t))}get isEnabled(){return this.#a&&!this.#u}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#u}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#u=t}frame(){let{frames:t}=this.#s,r=t[this.#n];this.color&&(r=Q[this.color](r)),this.#n=++this.#n%t.length;let n=typeof this.#o=="string"&&this.#o!==""?this.#o+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let t=0;t<this.#r;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#l||this.lastIndent!==this.#l)&&this.#t.cursorTo(this.#l),this.lastIndent=this.#l,this.#r=0,this}render(){return this.#u?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#u?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Ir.hide(this.#t),this.#e.discardStdin&&ir.stdin.isTTY&&(this.#f=!0,or.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
22
+ `),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Ir.show(this.#t),this.#e.discardStdin&&ir.stdin.isTTY&&this.#f&&(or.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:at.success,text:t})}fail(t){return this.stopAndPersist({symbol:at.error,text:t})}warn(t){return this.stopAndPersist({symbol:at.warning,text:t})}info(t){return this.stopAndPersist({symbol:at.info,text:t})}stopAndPersist(t={}){if(this.#u)return this;let r=t.prefixText||this.#o,n=t.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${i}
23
+ `),this}};function vn(e){return new Uo(e)}u();import{dirname as hc,resolve as dc}from"path";import{fileURLToPath as pc}from"url";var Wo={default:[],react:["@tsmodule/react","react","react-dom"]},xn={default:["@types/node"],react:["next","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},Go=dc(hc(pc(import.meta.url)),"..");u();var tu=qe(za(),1);import{resolve as eu}from"path";var kn=async(e,t)=>{let r=eu(Go,`./templates/${e}`),n=eu(t);await(0,tu.copy)(r,n,{overwrite:!0,recursive:!0})};u();import ru from"fs/promises";import{resolve as Td}from"path";var nu=async e=>{let t=Td(process.cwd(),e,"package.json"),r=await ru.readFile(t,"utf-8"),n=JSON.parse(r);n.name=e,await ru.writeFile(t,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Yp=async(e,{react:t=!1})=>{let r=ii(),n=vn(`Creating new module ${Q.blueBright(e)}.`).start();await kn("default",e),t&&await kn("react",e),await nu(e),n.succeed("Project created."),process.chdir(e);let i=[],o=["@tsmodule/tsmodule"];t?(i.push(...Wo.react),o.push(...xn.react)):o.push(...xn.default),i.length&&await r.run(`yarn add ${i.join(" ")}`),o.length&&await r.run(`yarn add -D ${o.join(" ")}`),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Git initialized.")};export{Yp as create};
24
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -1 +1,10 @@
1
- import{PACKAGE_ROOT as m}from"../../../constants.js";import{copy as s}from"fs-extra";import{resolve as t}from"path";const l=async(r,e)=>{const o=t(m,`./templates/${r}`),p=t(e);await s(o,p,{overwrite:!0,recursive:!0})};export{l as copyTemplate};
1
+
2
+ await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
+
4
+ var an=Object.create;var _e=Object.defineProperty;var ln=Object.getOwnPropertyDescriptor;var yn=Object.getOwnPropertyNames;var mn=Object.getPrototypeOf,dn=Object.prototype.hasOwnProperty;var hn=e=>_e(e,"__esModule",{value:!0});var P=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Sn=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yn(t))!dn.call(e,i)&&(r||i!=="default")&&_e(e,i,{get:()=>t[i],enumerable:!(n=ln(t,i))||n.enumerable});return e},pn=(e,t)=>wn(hn(_e(e!=null?an(mn(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var f=Sn(()=>{});var W=w(Le=>{"use strict";f();Le.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};Le.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var be=w((Jo,Ze)=>{f();var K=P("constants"),qn=process.cwd,Se=null,Fn=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Se||(Se=qn.call(process)),Se};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ie=process.chdir,process.chdir=function(e){Se=null,Ie.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ie));var Ie;Ze.exports=xn;function xn(e){K.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=u(e.chownSync),e.fchownSync=u(e.fchownSync),e.lchownSync=u(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=a(e.statSync),e.fstatSync=a(e.fstatSync),e.lstatSync=a(e.lstatSync),e.lchmod||(e.lchmod=function(s,y,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(s,y,m,l){l&&process.nextTick(l)},e.lchownSync=function(){}),Fn==="win32"&&(e.rename=function(s){return function(y,m,l){var h=Date.now(),q=0;s(y,m,function p(O){if(O&&(O.code==="EACCES"||O.code==="EPERM")&&Date.now()-h<6e4){setTimeout(function(){e.stat(m,function(T,oe){T&&T.code==="ENOENT"?s(y,m,p):l(O)})},q),q<100&&(q+=10);return}l&&l(O)})}}(e.rename)),e.read=function(s){function y(m,l,h,q,p,O){var T;if(O&&typeof O=="function"){var oe=0;T=function(he,Xe,He){if(he&&he.code==="EAGAIN"&&oe<10)return oe++,s.call(e,m,l,h,q,p,T);O.apply(this,arguments)}}return s.call(e,m,l,h,q,p,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(y,s),y}(e.read),e.readSync=function(s){return function(y,m,l,h,q){for(var p=0;;)try{return s.call(e,y,m,l,h,q)}catch(O){if(O.code==="EAGAIN"&&p<10){p++;continue}throw O}}}(e.readSync);function t(s){s.lchmod=function(y,m,l){s.open(y,K.O_WRONLY|K.O_SYMLINK,m,function(h,q){if(h){l&&l(h);return}s.fchmod(q,m,function(p){s.close(q,function(O){l&&l(p||O)})})})},s.lchmodSync=function(y,m){var l=s.openSync(y,K.O_WRONLY|K.O_SYMLINK,m),h=!0,q;try{q=s.fchmodSync(l,m),h=!1}finally{if(h)try{s.closeSync(l)}catch{}else s.closeSync(l)}return q}}function r(s){K.hasOwnProperty("O_SYMLINK")?(s.lutimes=function(y,m,l,h){s.open(y,K.O_SYMLINK,function(q,p){if(q){h&&h(q);return}s.futimes(p,m,l,function(O){s.close(p,function(T){h&&h(O||T)})})})},s.lutimesSync=function(y,m,l){var h=s.openSync(y,K.O_SYMLINK),q,p=!0;try{q=s.futimesSync(h,m,l),p=!1}finally{if(p)try{s.closeSync(h)}catch{}else s.closeSync(h)}return q}):(s.lutimes=function(y,m,l,h){h&&process.nextTick(h)},s.lutimesSync=function(){})}function n(s){return s&&function(y,m,l){return s.call(e,y,m,function(h){k(h)&&(h=null),l&&l.apply(this,arguments)})}}function i(s){return s&&function(y,m){try{return s.call(e,y,m)}catch(l){if(!k(l))throw l}}}function o(s){return s&&function(y,m,l,h){return s.call(e,y,m,l,function(q){k(q)&&(q=null),h&&h.apply(this,arguments)})}}function u(s){return s&&function(y,m,l){try{return s.call(e,y,m,l)}catch(h){if(!k(h))throw h}}}function c(s){return s&&function(y,m,l){typeof m=="function"&&(l=m,m=null);function h(q,p){p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),l&&l.apply(this,arguments)}return m?s.call(e,y,m,h):s.call(e,y,h)}}function a(s){return s&&function(y,m){var l=m?s.call(e,y,m):s.call(e,y);return l&&(l.uid<0&&(l.uid+=4294967296),l.gid<0&&(l.gid+=4294967296)),l}}function k(s){if(!s||s.code==="ENOSYS")return!0;var y=!process.getuid||process.getuid()!==0;return!!(y&&(s.code==="EINVAL"||s.code==="EPERM"))}}});var rt=w((Bo,tt)=>{f();var et=P("stream").Stream;tt.exports=gn;function gn(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);et.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var u=Object.keys(i),c=0,a=u.length;c<a;c++){var k=u[c];this[k]=i[k]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(s,y){if(s){o.emit("error",s),o.readable=!1;return}o.fd=y,o.emit("open",y),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);et.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),u=0,c=o.length;u<c;u++){var a=o[u];this[a]=i[a]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var it=w((Uo,nt)=>{"use strict";f();nt.exports=On;var Pn=Object.getPrototypeOf||function(e){return e.__proto__};function On(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Pn(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var M=w((Yo,je)=>{f();var g=P("fs"),Dn=be(),Nn=rt(),Tn=it(),we=P("util"),R,Ee;typeof Symbol=="function"&&typeof Symbol.for=="function"?(R=Symbol.for("graceful-fs.queue"),Ee=Symbol.for("graceful-fs.previous")):(R="___graceful-fs.queue",Ee="___graceful-fs.previous");function Cn(){}function ct(e,t){Object.defineProperty(e,R,{get:function(){return t}})}var Z=Cn;we.debuglog?Z=we.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Z=function(){var e=we.format.apply(we,arguments);e="GFS4: "+e.split(/\n/).join(`
5
+ GFS4: `),console.error(e)});g[R]||(ot=global[R]||[],ct(g,ot),g.close=function(e){function t(r,n){return e.call(g,r,function(i){i||ut(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Ee,{value:e}),t}(g.close),g.closeSync=function(e){function t(r){e.apply(g,arguments),ut()}return Object.defineProperty(t,Ee,{value:e}),t}(g.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Z(g[R]),P("assert").equal(g[R].length,0)}));var ot;global[R]||ct(global,g[R]);je.exports=Re(Tn(g));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!g.__patched&&(je.exports=Re(g),g.__patched=!0);function Re(e){Dn(e),e.gracefulify=Re,e.createReadStream=he,e.createWriteStream=Xe;var t=e.readFile;e.readFile=r;function r(d,v,E){return typeof v=="function"&&(E=v,v=null),_(d,v,E);function _(L,I,D,j){return t(L,I,function(x){x&&(x.code==="EMFILE"||x.code==="ENFILE")?te([_,[L,I,D],x,j||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(d,v,E,_){return typeof E=="function"&&(_=E,E=null),L(d,v,E,_);function L(I,D,j,x,U){return n(I,D,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?te([L,[I,D,j,x],N,U||Date.now(),Date.now()]):typeof x=="function"&&x.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=u);function u(d,v,E,_){return typeof E=="function"&&(_=E,E=null),L(d,v,E,_);function L(I,D,j,x,U){return o(I,D,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?te([L,[I,D,j,x],N,U||Date.now(),Date.now()]):typeof x=="function"&&x.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=a);function a(d,v,E,_){return typeof E=="function"&&(_=E,E=0),L(d,v,E,_);function L(I,D,j,x,U){return c(I,D,j,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?te([L,[I,D,j,x],N,U||Date.now(),Date.now()]):typeof x=="function"&&x.apply(this,arguments)})}}var k=e.readdir;e.readdir=s;function s(d,v,E){return typeof v=="function"&&(E=v,v=null),_(d,v,E);function _(L,I,D,j){return k(L,I,function(x,U){x&&(x.code==="EMFILE"||x.code==="ENFILE")?te([_,[L,I,D],x,j||Date.now(),Date.now()]):(U&&U.sort&&U.sort(),typeof D=="function"&&D.call(this,x,U))})}}if(process.version.substr(0,4)==="v0.8"){var y=Nn(e);p=y.ReadStream,T=y.WriteStream}var m=e.ReadStream;m&&(p.prototype=Object.create(m.prototype),p.prototype.open=O);var l=e.WriteStream;l&&(T.prototype=Object.create(l.prototype),T.prototype.open=oe),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(d){p=d},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return T},set:function(d){T=d},enumerable:!0,configurable:!0});var h=p;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(d){h=d},enumerable:!0,configurable:!0});var q=T;Object.defineProperty(e,"FileWriteStream",{get:function(){return q},set:function(d){q=d},enumerable:!0,configurable:!0});function p(d,v){return this instanceof p?(m.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function O(){var d=this;Ce(d.path,d.flags,d.mode,function(v,E){v?(d.autoClose&&d.destroy(),d.emit("error",v)):(d.fd=E,d.emit("open",E),d.read())})}function T(d,v){return this instanceof T?(l.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function oe(){var d=this;Ce(d.path,d.flags,d.mode,function(v,E){v?(d.destroy(),d.emit("error",v)):(d.fd=E,d.emit("open",E))})}function he(d,v){return new e.ReadStream(d,v)}function Xe(d,v){return new e.WriteStream(d,v)}var He=e.open;e.open=Ce;function Ce(d,v,E,_){return typeof E=="function"&&(_=E,E=null),L(d,v,E,_);function L(I,D,j,x,U){return He(I,D,j,function(N,Lo){N&&(N.code==="EMFILE"||N.code==="ENFILE")?te([L,[I,D,j,x],N,U||Date.now(),Date.now()]):typeof x=="function"&&x.apply(this,arguments)})}}return e}function te(e){Z("ENQUEUE",e[0].name,e[1]),g[R].push(e),$e()}var pe;function ut(){for(var e=Date.now(),t=0;t<g[R].length;++t)g[R][t].length>2&&(g[R][t][3]=e,g[R][t][4]=e);$e()}function $e(){if(clearTimeout(pe),pe=void 0,g[R].length!==0){var e=g[R].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Z("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Z("TIMEOUT",t.name,r);var u=r.pop();typeof u=="function"&&u.call(null,n)}else{var c=Date.now()-o,a=Math.max(o-i,1),k=Math.min(a*1.2,100);c>=k?(Z("RETRY",t.name,r),t.apply(null,r.concat([i]))):g[R].push(e)}pe===void 0&&(pe=setTimeout($e,0))}}});var b=w(V=>{"use strict";f();var st=W().fromCallback,B=M(),_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(e=>typeof B[e]=="function");Object.assign(V,B);_n.forEach(e=>{V[e]=st(B[e])});V.realpath.native=st(B.realpath.native);V.exists=function(e,t){return typeof t=="function"?B.exists(e,t):new Promise(r=>B.exists(e,r))};V.read=function(e,t,r,n,i,o){return typeof o=="function"?B.read(e,t,r,n,i,o):new Promise((u,c)=>{B.read(e,t,r,n,i,(a,k,s)=>{if(a)return c(a);u({bytesRead:k,buffer:s})})})};V.write=function(e,t,...r){return typeof r[r.length-1]=="function"?B.write(e,t,...r):new Promise((n,i)=>{B.write(e,t,...r,(o,u,c)=>{if(o)return i(o);n({bytesWritten:u,buffer:c})})})};typeof B.writev=="function"&&(V.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?B.writev(e,t,...r):new Promise((n,i)=>{B.writev(e,t,...r,(o,u,c)=>{if(o)return i(o);n({bytesWritten:u,buffers:c})})})})});var at=w((Ko,ft)=>{"use strict";f();var Ln=P("path");ft.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ln.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var dt=w((Vo,Me)=>{"use strict";f();var lt=b(),{checkPath:yt}=at(),mt=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Me.exports.makeDir=async(e,t)=>(yt(e),lt.mkdir(e,{mode:mt(t),recursive:!0}));Me.exports.makeDirSync=(e,t)=>(yt(e),lt.mkdirSync(e,{mode:mt(t),recursive:!0}))});var Y=w((Qo,ht)=>{"use strict";f();var In=W().fromPromise,{makeDir:Rn,makeDirSync:Ae}=dt(),We=In(Rn);ht.exports={mkdirs:We,mkdirsSync:Ae,mkdirp:We,mkdirpSync:Ae,ensureDir:We,ensureDirSync:Ae}});var Q=w((Xo,wt)=>{"use strict";f();var $n=W().fromPromise,St=b();function jn(e){return St.access(e).then(()=>!0).catch(()=>!1)}wt.exports={pathExists:$n(jn),pathExistsSync:St.existsSync}});var Je=w((Ho,pt)=>{"use strict";f();var re=M();function Mn(e,t,r,n){re.open(e,"r+",(i,o)=>{if(i)return n(i);re.futimes(o,t,r,u=>{re.close(o,c=>{n&&n(u||c)})})})}function An(e,t,r){let n=re.openSync(e,"r+");return re.futimesSync(n,t,r),re.closeSync(n)}pt.exports={utimesMillis:Mn,utimesMillisSync:An}});var ee=w((zo,kt)=>{"use strict";f();var ne=b(),C=P("path"),Wn=P("util");function Jn(e,t,r){let n=r.dereference?i=>ne.stat(i,{bigint:!0}):i=>ne.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function Bn(e,t,r){let n,i=r.dereference?u=>ne.statSync(u,{bigint:!0}):u=>ne.lstatSync(u,{bigint:!0}),o=i(e);try{n=i(t)}catch(u){if(u.code==="ENOENT")return{srcStat:o,destStat:null};throw u}return{srcStat:o,destStat:n}}function Un(e,t,r,n,i){Wn.callbackify(Jn)(e,t,n,(o,u)=>{if(o)return i(o);let{srcStat:c,destStat:a}=u;if(a){if(ue(c,a)){let k=C.basename(e),s=C.basename(t);return r==="move"&&k!==s&&k.toLowerCase()===s.toLowerCase()?i(null,{srcStat:c,destStat:a,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&!a.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!c.isDirectory()&&a.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return c.isDirectory()&&Be(e,t)?i(new Error(ve(e,t,r))):i(null,{srcStat:c,destStat:a})})}function Yn(e,t,r,n){let{srcStat:i,destStat:o}=Bn(e,t,n);if(o){if(ue(i,o)){let u=C.basename(e),c=C.basename(t);if(r==="move"&&u!==c&&u.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Be(e,t))throw new Error(ve(e,t,r));return{srcStat:i,destStat:o}}function Et(e,t,r,n,i){let o=C.resolve(C.dirname(e)),u=C.resolve(C.dirname(r));if(u===o||u===C.parse(u).root)return i();ne.stat(u,{bigint:!0},(c,a)=>c?c.code==="ENOENT"?i():i(c):ue(t,a)?i(new Error(ve(e,r,n))):Et(e,t,u,n,i))}function vt(e,t,r,n){let i=C.resolve(C.dirname(e)),o=C.resolve(C.dirname(r));if(o===i||o===C.parse(o).root)return;let u;try{u=ne.statSync(o,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(ue(t,u))throw new Error(ve(e,r,n));return vt(e,t,o,n)}function ue(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Be(e,t){let r=C.resolve(e).split(C.sep).filter(i=>i),n=C.resolve(t).split(C.sep).filter(i=>i);return r.reduce((i,o,u)=>i&&n[u]===o,!0)}function ve(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}kt.exports={checkPaths:Un,checkPathsSync:Yn,checkParentPaths:Et,checkParentPathsSync:vt,isSrcSubdir:Be,areIdentical:ue}});var Nt=w((Zo,Dt)=>{"use strict";f();var J=M(),ce=P("path"),Gn=Y().mkdirs,Kn=Q().pathExists,Vn=Je().utimesMillis,se=ee();function Qn(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
6
+
7
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),se.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:u,destStat:c}=o;se.checkParentPaths(e,u,t,"copy",a=>a?n(a):r.filter?xt(qt,c,e,t,r,n):qt(c,e,t,r,n))})}function qt(e,t,r,n,i){let o=ce.dirname(r);Kn(o,(u,c)=>{if(u)return i(u);if(c)return ke(e,t,r,n,i);Gn(o,a=>a?i(a):ke(e,t,r,n,i))})}function xt(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(u=>u?e(t,r,n,i,o):o(),u=>o(u))}function Xn(e,t,r,n,i){return n.filter?xt(ke,e,t,r,n,i):ke(e,t,r,n,i)}function ke(e,t,r,n,i){(n.dereference?J.stat:J.lstat)(t,(u,c)=>u?i(u):c.isDirectory()?ri(c,e,t,r,n,i):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?Hn(c,e,t,r,n,i):c.isSymbolicLink()?oi(e,t,r,n,i):c.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):c.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function Hn(e,t,r,n,i,o){return t?zn(e,r,n,i,o):gt(e,r,n,i,o)}function zn(e,t,r,n,i){if(n.overwrite)J.unlink(r,o=>o?i(o):gt(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function gt(e,t,r,n,i){J.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?Zn(e.mode,t,r,i):qe(r,e.mode,i))}function Zn(e,t,r,n){return bn(e)?ei(r,e,i=>i?n(i):Ft(e,t,r,n)):Ft(e,t,r,n)}function bn(e){return(e&128)===0}function ei(e,t,r){return qe(e,t|128,r)}function Ft(e,t,r,n){ti(t,r,i=>i?n(i):qe(r,e,n))}function qe(e,t,r){return J.chmod(e,t,r)}function ti(e,t,r){J.stat(e,(n,i)=>n?r(n):Vn(t,i.atime,i.mtime,r))}function ri(e,t,r,n,i,o){return t?Pt(r,n,i,o):ni(e.mode,r,n,i,o)}function ni(e,t,r,n,i){J.mkdir(r,o=>{if(o)return i(o);Pt(t,r,n,u=>u?i(u):qe(r,e,i))})}function Pt(e,t,r,n){J.readdir(e,(i,o)=>i?n(i):Ot(o,e,t,r,n))}function Ot(e,t,r,n,i){let o=e.pop();return o?ii(e,o,t,r,n,i):i()}function ii(e,t,r,n,i,o){let u=ce.join(r,t),c=ce.join(n,t);se.checkPaths(u,c,"copy",i,(a,k)=>{if(a)return o(a);let{destStat:s}=k;Xn(s,u,c,i,y=>y?o(y):Ot(e,r,n,i,o))})}function oi(e,t,r,n,i){J.readlink(t,(o,u)=>{if(o)return i(o);if(n.dereference&&(u=ce.resolve(process.cwd(),u)),e)J.readlink(r,(c,a)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?J.symlink(u,r,i):i(c):(n.dereference&&(a=ce.resolve(process.cwd(),a)),se.isSrcSubdir(u,a)?i(new Error(`Cannot copy '${u}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&se.isSrcSubdir(a,u)?i(new Error(`Cannot overwrite '${a}' with '${u}'.`)):ui(u,r,i)));else return J.symlink(u,r,i)})}function ui(e,t,r){J.unlink(t,n=>n?r(n):J.symlink(e,t,r))}Dt.exports=Qn});var It=w((bo,Lt)=>{"use strict";f();var $=M(),fe=P("path"),ci=Y().mkdirsSync,si=Je().utimesMillisSync,ae=ee();function fi(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
8
+
9
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=ae.checkPathsSync(e,t,"copy",r);return ae.checkParentPathsSync(e,n,t,"copy"),ai(i,e,t,r)}function ai(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=fe.dirname(r);return $.existsSync(i)||ci(i),Tt(e,t,r,n)}function li(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Tt(e,t,r,n)}function Tt(e,t,r,n){let o=(n.dereference?$.statSync:$.lstatSync)(t);if(o.isDirectory())return pi(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return yi(o,e,t,r,n);if(o.isSymbolicLink())return ki(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function yi(e,t,r,n,i){return t?mi(e,r,n,i):Ct(e,r,n,i)}function mi(e,t,r,n){if(n.overwrite)return $.unlinkSync(r),Ct(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Ct(e,t,r,n){return $.copyFileSync(t,r),n.preserveTimestamps&&di(e.mode,t,r),Ue(r,e.mode)}function di(e,t,r){return hi(e)&&Si(r,e),wi(t,r)}function hi(e){return(e&128)===0}function Si(e,t){return Ue(e,t|128)}function Ue(e,t){return $.chmodSync(e,t)}function wi(e,t){let r=$.statSync(e);return si(t,r.atime,r.mtime)}function pi(e,t,r,n,i){return t?_t(r,n,i):Ei(e.mode,r,n,i)}function Ei(e,t,r,n){return $.mkdirSync(r),_t(t,r,n),Ue(r,e)}function _t(e,t,r){$.readdirSync(e).forEach(n=>vi(n,e,t,r))}function vi(e,t,r,n){let i=fe.join(t,e),o=fe.join(r,e),{destStat:u}=ae.checkPathsSync(i,o,"copy",n);return li(u,i,o,n)}function ki(e,t,r,n){let i=$.readlinkSync(t);if(n.dereference&&(i=fe.resolve(process.cwd(),i)),e){let o;try{o=$.readlinkSync(r)}catch(u){if(u.code==="EINVAL"||u.code==="UNKNOWN")return $.symlinkSync(i,r);throw u}if(n.dereference&&(o=fe.resolve(process.cwd(),o)),ae.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if($.statSync(r).isDirectory()&&ae.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return qi(i,r)}else return $.symlinkSync(i,r)}function qi(e,t){return $.unlinkSync(t),$.symlinkSync(e,t)}Lt.exports=fi});var Fe=w((eu,Rt)=>{"use strict";f();var Fi=W().fromCallback;Rt.exports={copy:Fi(Nt()),copySync:It()}});var Yt=w((tu,Ut)=>{"use strict";f();var $t=M(),Wt=P("path"),F=P("assert"),le=process.platform==="win32";function Jt(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||$t[r],r=r+"Sync",e[r]=e[r]||$t[r]}),e.maxBusyTries=e.maxBusyTries||3}function Ye(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),F(e,"rimraf: missing path"),F.strictEqual(typeof e,"string","rimraf: path should be a string"),F.strictEqual(typeof r,"function","rimraf: callback function required"),F(t,"rimraf: invalid options argument provided"),F.strictEqual(typeof t,"object","rimraf: options should be object"),Jt(t),jt(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let u=n*100;return setTimeout(()=>jt(e,t,i),u)}o.code==="ENOENT"&&(o=null)}r(o)})}function jt(e,t,r){F(e),F(t),F(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&le)return Mt(e,t,n,r);if(i&&i.isDirectory())return xe(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return le?Mt(e,t,o,r):xe(e,t,o,r);if(o.code==="EISDIR")return xe(e,t,o,r)}return r(o)})})}function Mt(e,t,r,n){F(e),F(t),F(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,u)=>{o?n(o.code==="ENOENT"?null:r):u.isDirectory()?xe(e,t,r,n):t.unlink(e,n)})})}function At(e,t,r){let n;F(e),F(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?ge(e,t,r):t.unlinkSync(e)}function xe(e,t,r,n){F(e),F(t),F(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?xi(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function xi(e,t,r){F(e),F(t),F(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,u;if(o===0)return t.rmdir(e,r);i.forEach(c=>{Ye(Wt.join(e,c),t,a=>{if(!u){if(a)return r(u=a);--o===0&&t.rmdir(e,r)}})})})}function Bt(e,t){let r;t=t||{},Jt(t),F(e,"rimraf: missing path"),F.strictEqual(typeof e,"string","rimraf: path should be a string"),F(t,"rimraf: missing options"),F.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&le&&At(e,t,n)}try{r&&r.isDirectory()?ge(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return le?At(e,t,n):ge(e,t,n);if(n.code!=="EISDIR")throw n;ge(e,t,n)}}function ge(e,t,r){F(e),F(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")gi(e,t);else if(n.code!=="ENOENT")throw n}}function gi(e,t){if(F(e),F(t),t.readdirSync(e).forEach(r=>Bt(Wt.join(e,r),t)),le){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Ut.exports=Ye;Ye.sync=Bt});var ye=w((ru,Kt)=>{"use strict";f();var Pe=M(),Pi=W().fromCallback,Gt=Yt();function Oi(e,t){if(Pe.rm)return Pe.rm(e,{recursive:!0,force:!0},t);Gt(e,t)}function Di(e){if(Pe.rmSync)return Pe.rmSync(e,{recursive:!0,force:!0});Gt.sync(e)}Kt.exports={remove:Pi(Oi),removeSync:Di}});var er=w((nu,bt)=>{"use strict";f();var Ni=W().fromPromise,Xt=b(),Ht=P("path"),zt=Y(),Zt=ye(),Vt=Ni(async function(t){let r;try{r=await Xt.readdir(t)}catch{return zt.mkdirs(t)}return Promise.all(r.map(n=>Zt.remove(Ht.join(t,n))))});function Qt(e){let t;try{t=Xt.readdirSync(e)}catch{return zt.mkdirsSync(e)}t.forEach(r=>{r=Ht.join(e,r),Zt.removeSync(r)})}bt.exports={emptyDirSync:Qt,emptydirSync:Qt,emptyDir:Vt,emptydir:Vt}});var ir=w((iu,nr)=>{"use strict";f();var Ti=W().fromCallback,tr=P("path"),X=M(),rr=Y();function Ci(e,t){function r(){X.writeFile(e,"",n=>{if(n)return t(n);t()})}X.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=tr.dirname(e);X.stat(o,(u,c)=>{if(u)return u.code==="ENOENT"?rr.mkdirs(o,a=>{if(a)return t(a);r()}):t(u);c.isDirectory()?r():X.readdir(o,a=>{if(a)return t(a)})})})}function _i(e){let t;try{t=X.statSync(e)}catch{}if(t&&t.isFile())return;let r=tr.dirname(e);try{X.statSync(r).isDirectory()||X.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")rr.mkdirsSync(r);else throw n}X.writeFileSync(e,"")}nr.exports={createFile:Ti(Ci),createFileSync:_i}});var fr=w((ou,sr)=>{"use strict";f();var Li=W().fromCallback,or=P("path"),H=M(),ur=Y(),Ii=Q().pathExists,{areIdentical:cr}=ee();function Ri(e,t,r){function n(i,o){H.link(i,o,u=>{if(u)return r(u);r(null)})}H.lstat(t,(i,o)=>{H.lstat(e,(u,c)=>{if(u)return u.message=u.message.replace("lstat","ensureLink"),r(u);if(o&&cr(c,o))return r(null);let a=or.dirname(t);Ii(a,(k,s)=>{if(k)return r(k);if(s)return n(e,t);ur.mkdirs(a,y=>{if(y)return r(y);n(e,t)})})})})}function $i(e,t){let r;try{r=H.lstatSync(t)}catch{}try{let o=H.lstatSync(e);if(r&&cr(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=or.dirname(t);return H.existsSync(n)||ur.mkdirsSync(n),H.linkSync(e,t)}sr.exports={createLink:Li(Ri),createLinkSync:$i}});var lr=w((uu,ar)=>{"use strict";f();var z=P("path"),me=M(),ji=Q().pathExists;function Mi(e,t,r){if(z.isAbsolute(e))return me.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=z.dirname(t),i=z.join(n,e);return ji(i,(o,u)=>o?r(o):u?r(null,{toCwd:i,toDst:e}):me.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),r(c)):r(null,{toCwd:e,toDst:z.relative(n,e)})))}}function Ai(e,t){let r;if(z.isAbsolute(e)){if(r=me.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=z.dirname(t),i=z.join(n,e);if(r=me.existsSync(i),r)return{toCwd:i,toDst:e};if(r=me.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:z.relative(n,e)}}}ar.exports={symlinkPaths:Mi,symlinkPathsSync:Ai}});var dr=w((cu,mr)=>{"use strict";f();var yr=M();function Wi(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);yr.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Ji(e,t){let r;if(t)return t;try{r=yr.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}mr.exports={symlinkType:Wi,symlinkTypeSync:Ji}});var qr=w((su,kr)=>{"use strict";f();var Bi=W().fromCallback,Sr=P("path"),G=b(),wr=Y(),Ui=wr.mkdirs,Yi=wr.mkdirsSync,pr=lr(),Gi=pr.symlinkPaths,Ki=pr.symlinkPathsSync,Er=dr(),Vi=Er.symlinkType,Qi=Er.symlinkTypeSync,Xi=Q().pathExists,{areIdentical:vr}=ee();function Hi(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,G.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([G.stat(e),G.stat(t)]).then(([u,c])=>{if(vr(u,c))return n(null);hr(e,t,r,n)}):hr(e,t,r,n)})}function hr(e,t,r,n){Gi(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,Vi(o.toCwd,r,(u,c)=>{if(u)return n(u);let a=Sr.dirname(t);Xi(a,(k,s)=>{if(k)return n(k);if(s)return G.symlink(e,t,c,n);Ui(a,y=>{if(y)return n(y);G.symlink(e,t,c,n)})})})})}function zi(e,t,r){let n;try{n=G.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let c=G.statSync(e),a=G.statSync(t);if(vr(c,a))return}let i=Ki(e,t);e=i.toDst,r=Qi(i.toCwd,r);let o=Sr.dirname(t);return G.existsSync(o)||Yi(o),G.symlinkSync(e,t,r)}kr.exports={createSymlink:Bi(Hi),createSymlinkSync:zi}});var Tr=w((fu,Nr)=>{"use strict";f();var{createFile:Fr,createFileSync:xr}=ir(),{createLink:gr,createLinkSync:Pr}=fr(),{createSymlink:Or,createSymlinkSync:Dr}=qr();Nr.exports={createFile:Fr,createFileSync:xr,ensureFile:Fr,ensureFileSync:xr,createLink:gr,createLinkSync:Pr,ensureLink:gr,ensureLinkSync:Pr,createSymlink:Or,createSymlinkSync:Dr,ensureSymlink:Or,ensureSymlinkSync:Dr}});var Oe=w((au,Cr)=>{f();function Zi(e,{EOL:t=`
10
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function bi(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Cr.exports={stringify:Zi,stripBom:bi}});var Rr=w((lu,Ir)=>{f();var ie;try{ie=M()}catch{ie=P("fs")}var De=W(),{stringify:_r,stripBom:Lr}=Oe();async function eo(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ie,n="throws"in t?t.throws:!0,i=await De.fromCallback(r.readFile)(e,t);i=Lr(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(u){if(n)throw u.message=`${e}: ${u.message}`,u;return null}return o}var to=De.fromPromise(eo);function ro(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ie,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Lr(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function no(e,t,r={}){let n=r.fs||ie,i=_r(t,r);await De.fromCallback(n.writeFile)(e,i,r)}var io=De.fromPromise(no);function oo(e,t,r={}){let n=r.fs||ie,i=_r(t,r);return n.writeFileSync(e,i,r)}var uo={readFile:to,readFileSync:ro,writeFile:io,writeFileSync:oo};Ir.exports=uo});var jr=w((yu,$r)=>{"use strict";f();var Ne=Rr();$r.exports={readJson:Ne.readFile,readJsonSync:Ne.readFileSync,writeJson:Ne.writeFile,writeJsonSync:Ne.writeFileSync}});var Te=w((mu,Wr)=>{"use strict";f();var co=W().fromCallback,de=M(),Mr=P("path"),Ar=Y(),so=Q().pathExists;function fo(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Mr.dirname(e);so(i,(o,u)=>{if(o)return n(o);if(u)return de.writeFile(e,t,r,n);Ar.mkdirs(i,c=>{if(c)return n(c);de.writeFile(e,t,r,n)})})}function ao(e,...t){let r=Mr.dirname(e);if(de.existsSync(r))return de.writeFileSync(e,...t);Ar.mkdirsSync(r),de.writeFileSync(e,...t)}Wr.exports={outputFile:co(fo),outputFileSync:ao}});var Br=w((du,Jr)=>{"use strict";f();var{stringify:lo}=Oe(),{outputFile:yo}=Te();async function mo(e,t,r={}){let n=lo(t,r);await yo(e,n,r)}Jr.exports=mo});var Yr=w((hu,Ur)=>{"use strict";f();var{stringify:ho}=Oe(),{outputFileSync:So}=Te();function wo(e,t,r){let n=ho(t,r);So(e,n,r)}Ur.exports=wo});var Kr=w((Su,Gr)=>{"use strict";f();var po=W().fromPromise,A=jr();A.outputJson=po(Br());A.outputJsonSync=Yr();A.outputJSON=A.outputJson;A.outputJSONSync=A.outputJsonSync;A.writeJSON=A.writeJson;A.writeJSONSync=A.writeJsonSync;A.readJSON=A.readJson;A.readJSONSync=A.readJsonSync;Gr.exports=A});var zr=w((wu,Hr)=>{"use strict";f();var Eo=M(),Ke=P("path"),vo=Fe().copy,Xr=ye().remove,ko=Y().mkdirp,qo=Q().pathExists,Vr=ee();function Fo(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Vr.checkPaths(e,t,"move",r,(o,u)=>{if(o)return n(o);let{srcStat:c,isChangingCase:a=!1}=u;Vr.checkParentPaths(e,c,t,"move",k=>{if(k)return n(k);if(xo(t))return Qr(e,t,i,a,n);ko(Ke.dirname(t),s=>s?n(s):Qr(e,t,i,a,n))})})}function xo(e){let t=Ke.dirname(e);return Ke.parse(t).root===t}function Qr(e,t,r,n,i){if(n)return Ge(e,t,r,i);if(r)return Xr(t,o=>o?i(o):Ge(e,t,r,i));qo(t,(o,u)=>o?i(o):u?i(new Error("dest already exists.")):Ge(e,t,r,i))}function Ge(e,t,r,n){Eo.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):go(e,t,r,n):n())}function go(e,t,r,n){vo(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):Xr(e,n))}Hr.exports=Fo});var rn=w((pu,tn)=>{"use strict";f();var br=M(),Qe=P("path"),Po=Fe().copySync,en=ye().removeSync,Oo=Y().mkdirpSync,Zr=ee();function Do(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=Zr.checkPathsSync(e,t,"move",r);return Zr.checkParentPathsSync(e,i,t,"move"),No(t)||Oo(Qe.dirname(t)),To(e,t,n,o)}function No(e){let t=Qe.dirname(e);return Qe.parse(t).root===t}function To(e,t,r,n){if(n)return Ve(e,t,r);if(r)return en(t),Ve(e,t,r);if(br.existsSync(t))throw new Error("dest already exists.");return Ve(e,t,r)}function Ve(e,t,r){try{br.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Co(e,t,r)}}function Co(e,t,r){return Po(e,t,{overwrite:r,errorOnExist:!0}),en(e)}tn.exports=Do});var on=w((Eu,nn)=>{"use strict";f();var _o=W().fromCallback;nn.exports={move:_o(zr()),moveSync:rn()}});var cn=w((vu,un)=>{"use strict";f();un.exports={...b(),...Fe(),...er(),...Tr(),...Kr(),...Y(),...on(),...Te(),...Q(),...ye()}});f();f();import{dirname as En,resolve as vn}from"path";import{fileURLToPath as kn}from"url";var ze=vn(En(kn(import.meta.url)),"..");var fn=pn(cn(),1);import{resolve as sn}from"path";var Fu=async(e,t)=>{let r=sn(ze,`./templates/${e}`),n=sn(t);await(0,fn.copy)(r,n,{overwrite:!0,recursive:!0})};export{Fu as copyTemplate};
@@ -1 +1,4 @@
1
- import o from"fs/promises";import{resolve as t}from"path";const p=async s=>{const a=t(process.cwd(),s,"package.json"),n=await o.readFile(a,"utf-8"),e=JSON.parse(n);e.name=s,await o.writeFile(a,JSON.stringify(e,null,2))};export{p as rewritePkgJson};
1
+
2
+ await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
+
4
+ import o from"fs/promises";import{resolve as t}from"path";var p=async s=>{let a=t(process.cwd(),s,"package.json"),n=await o.readFile(a,"utf-8"),e=JSON.parse(n);e.name=s,await o.writeFile(a,JSON.stringify(e,null,2))};export{p as rewritePkgJson};