@dz-web/esboot-plugin-docs 3.1.2 → 3.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,49 +1,49 @@
1
- "use strict";var qh=Object.create;var nr=Object.defineProperty;var Wh=Object.getOwnPropertyDescriptor;var zh=Object.getOwnPropertyNames;var Vh=Object.getPrototypeOf,Yh=Object.prototype.hasOwnProperty;var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ps=(e,t)=>{for(var r in t)nr(e,r,{get:t[r],enumerable:!0})},rr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zh(t))!Yh.call(e,o)&&o!==r&&nr(e,o,{get:()=>t[o],enumerable:!(n=Wh(t,o))||n.enumerable});return e},Cs=(e,t,r)=>(rr(e,t,"default"),r&&rr(r,t,"default")),G=(e,t,r)=>(r=e!=null?qh(Vh(e)):{},rr(t||!e||!e.__esModule?nr(r,"default",{value:e,enumerable:!0}):r,e)),Hh=e=>rr(nr({},"__esModule",{value:!0}),e);function M(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var ye=f(()=>{"use strict"});var Fs,et,Jh,Xn,Qn,tt=f(()=>{"use strict";Fs=require("url"),et=(e,t)=>{let r=Qn(Jh(e));if(typeof r!="string")throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},Jh=e=>Xn(e)?e.toString():e,Xn=e=>typeof e!="string"&&e&&Object.getPrototypeOf(e)===String.prototype,Qn=e=>e instanceof URL?(0,Fs.fileURLToPath)(e):e});var or,Zn=f(()=>{"use strict";ye();tt();or=(e,t=[],r={})=>{let n=et(e,"First argument"),[o,i]=M(t)?[[],t]:[t,r];if(!Array.isArray(o))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${o}`);if(o.some(c=>typeof c=="object"&&c!==null))throw new TypeError(`Second argument must be an array of strings: ${o}`);let s=o.map(String),a=s.find(c=>c.includes("\0"));if(a!==void 0)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!M(i))throw new TypeError(`Last argument must be an options object: ${i}`);return[n,s,i]}});var Ms,Ls,ks,L,ge,Kh,$s,Xh,ir,Bs,Qh,At,Zh,eo,ey,K=f(()=>{"use strict";Ms=require("string_decoder"),{toString:Ls}=Object.prototype,ks=e=>Ls.call(e)==="[object ArrayBuffer]",L=e=>Ls.call(e)==="[object Uint8Array]",ge=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Kh=new TextEncoder,$s=e=>Kh.encode(e),Xh=new TextDecoder,ir=e=>Xh.decode(e),Bs=(e,t)=>Qh(e,t).join(""),Qh=(e,t)=>{if(t==="utf8"&&e.every(i=>typeof i=="string"))return e;let r=new Ms.StringDecoder(t),n=e.map(i=>typeof i=="string"?$s(i):i).map(i=>r.write(i)),o=r.end();return o===""?n:[...n,o]},At=e=>e.length===1&&L(e[0])?e[0]:eo(Zh(e)),Zh=e=>e.map(t=>typeof t=="string"?$s(t):t),eo=e=>{let t=new Uint8Array(ey(e)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t},ey=e=>{let t=0;for(let r of e)t+=r.length;return t}});var js,Gs,qs,ty,ry,_s,ny,Ns,Us,oy,Ws=f(()=>{"use strict";js=require("child_process");ye();K();Gs=e=>Array.isArray(e)&&Array.isArray(e.raw),qs=(e,t)=>{let r=[];for(let[i,s]of e.entries())r=ty({templates:e,expressions:t,tokens:r,index:i,template:s});if(r.length===0)throw new TypeError("Template script must not be empty");let[n,...o]=r;return[n,o,{}]},ty=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{if(o===void 0)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);let{nextTokens:i,leadingWhitespaces:s,trailingWhitespaces:a}=ry(o,e.raw[n]),c=Ns(r,i,s);if(n===t.length)return c;let u=t[n],l=Array.isArray(u)?u.map(d=>Us(d)):[Us(u)];return Ns(c,l,a)},ry=(e,t)=>{if(t.length===0)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};let r=[],n=0,o=_s.has(t[0]);for(let s=0,a=0;s<e.length;s+=1,a+=1){let c=t[a];if(_s.has(c))n!==s&&r.push(e.slice(n,s)),n=s+1;else if(c==="\\"){let u=t[a+1];u===`
2
- `?(s-=1,a+=1):u==="u"&&t[a+2]==="{"?a=t.indexOf("}",a+3):a+=ny[u]??1}}let i=n===e.length;return i||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:o,trailingWhitespaces:i}},_s=new Set([" "," ","\r",`
3
- `]),ny={x:3,u:5},Ns=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Us=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(M(e)&&("stdout"in e||"isMaxBuffer"in e))return oy(e);throw e instanceof js.ChildProcess||Object.prototype.toString.call(e)==="[object Promise]"?new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}."):new TypeError(`Unexpected "${t}" in template expression`)},oy=({stdout:e})=>{if(typeof e=="string")return e;if(L(e))return ir(e);throw e===void 0?new TypeError(`Missing result.stdout in template expression. This is probably due to the previous subprocess' "stdout" option.`):new TypeError(`Unexpected "${typeof e}" stdout in template expression`)}});var sr,re,ar,Z,cr,Se=f(()=>{"use strict";sr=G(require("process"),1),re=e=>ar.includes(e),ar=[sr.default.stdin,sr.default.stdout,sr.default.stderr],Z=["stdin","stdout","stderr"],cr=e=>Z[e]??`stdio[${e}]`});var Vs,Ys,to,iy,sy,ay,cy,zs,ly,ro,uy,fy,dy,my,no,we,be=f(()=>{"use strict";Vs=require("util");ye();Se();Ys=e=>{let t={...e};for(let r of no)t[r]=to(e,r);return t},to=(e,t)=>{let r=Array.from({length:iy(e)+1}),n=sy(e[t],r,t);return fy(n,t)},iy=({stdio:e})=>Array.isArray(e)?Math.max(e.length,Z.length):Z.length,sy=(e,t,r)=>M(e)?ay(e,t,r):t.fill(e),ay=(e,t,r)=>{for(let n of Object.keys(e).sort(cy))for(let o of ly(n,r,t))t[o]=e[n];return t},cy=(e,t)=>zs(e)<zs(t)?1:-1,zs=e=>e==="stdout"||e==="stderr"?0:e==="all"?2:1,ly=(e,t,r)=>{if(e==="ipc")return[r.length-1];let n=ro(e);if(n===void 0||n===0)throw new TypeError(`"${t}.${e}" is invalid.
1
+ "use strict";var zh=Object.create;var or=Object.defineProperty;var Vh=Object.getOwnPropertyDescriptor;var Yh=Object.getOwnPropertyNames;var Hh=Object.getPrototypeOf,Jh=Object.prototype.hasOwnProperty;var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cs=(e,t)=>{for(var r in t)or(e,r,{get:t[r],enumerable:!0})},nr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Yh(t))!Jh.call(e,o)&&o!==r&&or(e,o,{get:()=>t[o],enumerable:!(n=Vh(t,o))||n.enumerable});return e},Fs=(e,t,r)=>(nr(e,t,"default"),r&&nr(r,t,"default")),L=(e,t,r)=>(r=e!=null?zh(Hh(e)):{},nr(t||!e||!e.__esModule?or(r,"default",{value:e,enumerable:!0}):r,e)),Kh=e=>nr(or({},"__esModule",{value:!0}),e);function M(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var ye=f(()=>{"use strict"});var Ms,tt,Xh,Qn,Zn,rt=f(()=>{"use strict";Ms=require("url"),tt=(e,t)=>{let r=Zn(Xh(e));if(typeof r!="string")throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},Xh=e=>Qn(e)?e.toString():e,Qn=e=>typeof e!="string"&&e&&Object.getPrototypeOf(e)===String.prototype,Zn=e=>e instanceof URL?(0,Ms.fileURLToPath)(e):e});var ir,eo=f(()=>{"use strict";ye();rt();ir=(e,t=[],r={})=>{let n=tt(e,"First argument"),[o,i]=M(t)?[[],t]:[t,r];if(!Array.isArray(o))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${o}`);if(o.some(l=>typeof l=="object"&&l!==null))throw new TypeError(`Second argument must be an array of strings: ${o}`);let s=o.map(String),a=s.find(l=>l.includes("\0"));if(a!==void 0)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!M(i))throw new TypeError(`Last argument must be an options object: ${i}`);return[n,s,i]}});var Ls,$s,ks,$,ge,Qh,Bs,Zh,sr,_s,ey,At,ty,to,ry,X=f(()=>{"use strict";Ls=require("string_decoder"),{toString:$s}=Object.prototype,ks=e=>$s.call(e)==="[object ArrayBuffer]",$=e=>$s.call(e)==="[object Uint8Array]",ge=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Qh=new TextEncoder,Bs=e=>Qh.encode(e),Zh=new TextDecoder,sr=e=>Zh.decode(e),_s=(e,t)=>ey(e,t).join(""),ey=(e,t)=>{if(t==="utf8"&&e.every(i=>typeof i=="string"))return e;let r=new Ls.StringDecoder(t),n=e.map(i=>typeof i=="string"?Bs(i):i).map(i=>r.write(i)),o=r.end();return o===""?n:[...n,o]},At=e=>e.length===1&&$(e[0])?e[0]:to(ty(e)),ty=e=>e.map(t=>typeof t=="string"?Bs(t):t),to=e=>{let t=new Uint8Array(ry(e)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t},ry=e=>{let t=0;for(let r of e)t+=r.length;return t}});var Gs,qs,Ws,ny,oy,Ns,iy,Us,js,sy,zs=f(()=>{"use strict";Gs=require("child_process");ye();X();qs=e=>Array.isArray(e)&&Array.isArray(e.raw),Ws=(e,t)=>{let r=[];for(let[i,s]of e.entries())r=ny({templates:e,expressions:t,tokens:r,index:i,template:s});if(r.length===0)throw new TypeError("Template script must not be empty");let[n,...o]=r;return[n,o,{}]},ny=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{if(o===void 0)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);let{nextTokens:i,leadingWhitespaces:s,trailingWhitespaces:a}=oy(o,e.raw[n]),l=Us(r,i,s);if(n===t.length)return l;let u=t[n],c=Array.isArray(u)?u.map(d=>js(d)):[js(u)];return Us(l,c,a)},oy=(e,t)=>{if(t.length===0)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};let r=[],n=0,o=Ns.has(t[0]);for(let s=0,a=0;s<e.length;s+=1,a+=1){let l=t[a];if(Ns.has(l))n!==s&&r.push(e.slice(n,s)),n=s+1;else if(l==="\\"){let u=t[a+1];u===`
2
+ `?(s-=1,a+=1):u==="u"&&t[a+2]==="{"?a=t.indexOf("}",a+3):a+=iy[u]??1}}let i=n===e.length;return i||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:o,trailingWhitespaces:i}},Ns=new Set([" "," ","\r",`
3
+ `]),iy={x:3,u:5},Us=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],js=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(M(e)&&("stdout"in e||"isMaxBuffer"in e))return sy(e);throw e instanceof Gs.ChildProcess||Object.prototype.toString.call(e)==="[object Promise]"?new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}."):new TypeError(`Unexpected "${t}" in template expression`)},sy=({stdout:e})=>{if(typeof e=="string")return e;if($(e))return sr(e);throw e===void 0?new TypeError(`Missing result.stdout in template expression. This is probably due to the previous subprocess' "stdout" option.`):new TypeError(`Unexpected "${typeof e}" stdout in template expression`)}});var ar,ne,cr,ee,lr,Se=f(()=>{"use strict";ar=L(require("process"),1),ne=e=>cr.includes(e),cr=[ar.default.stdin,ar.default.stdout,ar.default.stderr],ee=["stdin","stdout","stderr"],lr=e=>ee[e]??`stdio[${e}]`});var Ys,Hs,ro,ay,cy,ly,uy,Vs,fy,no,dy,my,py,hy,oo,we,be=f(()=>{"use strict";Ys=require("util");ye();Se();Hs=e=>{let t={...e};for(let r of oo)t[r]=ro(e,r);return t},ro=(e,t)=>{let r=Array.from({length:ay(e)+1}),n=cy(e[t],r,t);return my(n,t)},ay=({stdio:e})=>Array.isArray(e)?Math.max(e.length,ee.length):ee.length,cy=(e,t,r)=>M(e)?ly(e,t,r):t.fill(e),ly=(e,t,r)=>{for(let n of Object.keys(e).sort(uy))for(let o of fy(n,r,t))t[o]=e[n];return t},uy=(e,t)=>Vs(e)<Vs(t)?1:-1,Vs=e=>e==="stdout"||e==="stderr"?0:e==="all"?2:1,fy=(e,t,r)=>{if(e==="ipc")return[r.length-1];let n=no(e);if(n===void 0||n===0)throw new TypeError(`"${t}.${e}" is invalid.
4
4
  It must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(n>=r.length)throw new TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.
5
- Please set the "stdio" option to ensure that file descriptor exists.`);return n==="all"?[1,2]:[n]},ro=e=>{if(e==="all")return e;if(Z.includes(e))return Z.indexOf(e);let t=uy.exec(e);if(t!==null)return Number(t[1])},uy=/^fd(\d+)$/,fy=(e,t)=>e.map(r=>r===void 0?my[t]:r),dy=(0,Vs.debuglog)("execa").enabled?"full":"none",my={lines:!1,buffer:!0,maxBuffer:1e3*1e3*100,verbose:dy,stripFinalNewline:!0},no=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],we=(e,t)=>t==="ipc"?e.at(-1):e[t]});var rt,nt,Hs,oo,py,lr,ur,De=f(()=>{"use strict";be();rt=({verbose:e},t)=>oo(e,t)!=="none",nt=({verbose:e},t)=>!["none","short"].includes(oo(e,t)),Hs=({verbose:e},t)=>{let r=oo(e,t);return lr(r)?r:void 0},oo=(e,t)=>t===void 0?py(e):we(e,t),py=e=>e.find(t=>lr(t))??ur.findLast(t=>e.includes(t)),lr=e=>typeof e=="function",ur=["none","short","full"]});var Js,Ks,Xs,vt,Qs,hy,yy,gy,Sy,wy,by,xy,fr=f(()=>{"use strict";Js=require("process"),Ks=require("util"),Xs=(e,t)=>{let r=[e,...t],n=r.join(" "),o=r.map(i=>by(Qs(i))).join(" ");return{command:n,escapedCommand:o}},vt=e=>(0,Ks.stripVTControlCharacters)(e).split(`
6
- `).map(t=>Qs(t)).join(`
7
- `),Qs=e=>e.replaceAll(gy,t=>hy(t)),hy=e=>{let t=Sy[e];if(t!==void 0)return t;let r=e.codePointAt(0),n=r.toString(16);return r<=wy?`\\u${n.padStart(4,"0")}`:`\\U${n}`},yy=()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}},gy=yy(),Sy={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},wy=65535,by=e=>xy.test(e)?e:Js.platform==="win32"?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,xy=/^[\w./-]+$/});function so(){let{env:e}=io.default,{TERM:t,TERM_PROGRAM:r}=e;return io.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var io,Zs=f(()=>{"use strict";io=G(require("process"),1)});var ea,ta,Ey,Ty,Oy,Dy,Iy,dr,qO,ra=f(()=>{"use strict";Zs();ea={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},ta={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Ey={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ty={...ea,...ta},Oy={...ea,...Ey},Dy=so(),Iy=Dy?Ty:Oy,dr=Iy,qO=Object.entries(ta)});var na,Ay,x,zO,oa,VO,YO,HO,JO,KO,XO,QO,ZO,eD,tD,rD,nD,oD,iD,sD,mr,aD,cD,lD,uD,fD,dD,mD,pD,hD,ia,yD,sa,gD,SD,wD,bD,xD,ED,TD,OD,DD,ID,AD,ao=f(()=>{"use strict";na=G(require("tty"),1),Ay=na.default?.WriteStream?.prototype?.hasColors?.()??!1,x=(e,t)=>{if(!Ay)return o=>o;let r=`\x1B[${e}m`,n=`\x1B[${t}m`;return o=>{let i=o+"",s=i.indexOf(n);if(s===-1)return r+i+n;let a=r,c=0;for(;s!==-1;)a+=i.slice(c,s)+r,c=s+n.length,s=i.indexOf(n,c);return a+=i.slice(c)+n,a}},zO=x(0,0),oa=x(1,22),VO=x(2,22),YO=x(3,23),HO=x(4,24),JO=x(53,55),KO=x(7,27),XO=x(8,28),QO=x(9,29),ZO=x(30,39),eD=x(31,39),tD=x(32,39),rD=x(33,39),nD=x(34,39),oD=x(35,39),iD=x(36,39),sD=x(37,39),mr=x(90,39),aD=x(40,49),cD=x(41,49),lD=x(42,49),uD=x(43,49),fD=x(44,49),dD=x(45,49),mD=x(46,49),pD=x(47,49),hD=x(100,49),ia=x(91,39),yD=x(92,39),sa=x(93,39),gD=x(94,39),SD=x(95,39),wD=x(96,39),bD=x(97,39),xD=x(101,49),ED=x(102,49),TD=x(103,49),OD=x(104,49),DD=x(105,49),ID=x(106,49),AD=x(107,49)});var aa=f(()=>{"use strict";ao();ao()});var ua,Ry,pr,ca,Py,la,Cy,fa=f(()=>{"use strict";ra();aa();ua=({type:e,message:t,timestamp:r,piped:n,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{let a=Ry(r),c=Py[e]({failed:i,reject:s,piped:n}),u=Cy[e]({reject:s});return`${mr(`[${a}]`)} ${mr(`[${o}]`)} ${u(c)} ${u(t)}`},Ry=e=>`${pr(e.getHours(),2)}:${pr(e.getMinutes(),2)}:${pr(e.getSeconds(),2)}.${pr(e.getMilliseconds(),3)}`,pr=(e,t)=>String(e).padStart(t,"0"),ca=({failed:e,reject:t})=>e?t?dr.cross:dr.warning:dr.tick,Py={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:ca,duration:ca},la=e=>e,Cy={command:()=>oa,output:()=>la,ipc:()=>la,error:({reject:e})=>e?ia:sa,duration:()=>mr}});var da,Fy,My,ma=f(()=>{"use strict";De();da=(e,t,r)=>{let n=Hs(t,r);return e.map(({verboseLine:o,verboseObject:i})=>Fy(o,i,n)).filter(o=>o!==void 0).map(o=>My(o)).join("")},Fy=(e,t,r)=>{if(r===void 0)return e;let n=r(e,t);if(typeof n=="string")return n},My=e=>e.endsWith(`
5
+ Please set the "stdio" option to ensure that file descriptor exists.`);return n==="all"?[1,2]:[n]},no=e=>{if(e==="all")return e;if(ee.includes(e))return ee.indexOf(e);let t=dy.exec(e);if(t!==null)return Number(t[1])},dy=/^fd(\d+)$/,my=(e,t)=>e.map(r=>r===void 0?hy[t]:r),py=(0,Ys.debuglog)("execa").enabled?"full":"none",hy={lines:!1,buffer:!0,maxBuffer:1e3*1e3*100,verbose:py,stripFinalNewline:!0},oo=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],we=(e,t)=>t==="ipc"?e.at(-1):e[t]});var nt,ot,Js,io,yy,ur,fr,De=f(()=>{"use strict";be();nt=({verbose:e},t)=>io(e,t)!=="none",ot=({verbose:e},t)=>!["none","short"].includes(io(e,t)),Js=({verbose:e},t)=>{let r=io(e,t);return ur(r)?r:void 0},io=(e,t)=>t===void 0?yy(e):we(e,t),yy=e=>e.find(t=>ur(t))??fr.findLast(t=>e.includes(t)),ur=e=>typeof e=="function",fr=["none","short","full"]});var Ks,Xs,Qs,Rt,Zs,gy,Sy,wy,by,xy,Ey,Ty,dr=f(()=>{"use strict";Ks=require("process"),Xs=require("util"),Qs=(e,t)=>{let r=[e,...t],n=r.join(" "),o=r.map(i=>Ey(Zs(i))).join(" ");return{command:n,escapedCommand:o}},Rt=e=>(0,Xs.stripVTControlCharacters)(e).split(`
6
+ `).map(t=>Zs(t)).join(`
7
+ `),Zs=e=>e.replaceAll(wy,t=>gy(t)),gy=e=>{let t=by[e];if(t!==void 0)return t;let r=e.codePointAt(0),n=r.toString(16);return r<=xy?`\\u${n.padStart(4,"0")}`:`\\U${n}`},Sy=()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}},wy=Sy(),by={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},xy=65535,Ey=e=>Ty.test(e)?e:Ks.platform==="win32"?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,Ty=/^[\w./-]+$/});function ao(){let{env:e}=so.default,{TERM:t,TERM_PROGRAM:r}=e;return so.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var so,ea=f(()=>{"use strict";so=L(require("process"),1)});var ta,ra,Oy,Dy,Iy,vy,Ay,mr,JO,na=f(()=>{"use strict";ea();ta={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},ra={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Oy={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Dy={...ta,...ra},Iy={...ta,...Oy},vy=ao(),Ay=vy?Dy:Iy,mr=Ay,JO=Object.entries(ra)});var oa,Ry,x,XO,ia,QO,ZO,eD,tD,rD,nD,oD,iD,sD,aD,cD,lD,uD,fD,dD,pr,mD,pD,hD,yD,gD,SD,wD,bD,xD,sa,ED,aa,TD,OD,DD,ID,vD,AD,RD,PD,CD,FD,MD,co=f(()=>{"use strict";oa=L(require("tty"),1),Ry=oa.default?.WriteStream?.prototype?.hasColors?.()??!1,x=(e,t)=>{if(!Ry)return o=>o;let r=`\x1B[${e}m`,n=`\x1B[${t}m`;return o=>{let i=o+"",s=i.indexOf(n);if(s===-1)return r+i+n;let a=r,l=0,c=(t===22?n:"")+r;for(;s!==-1;)a+=i.slice(l,s)+c,l=s+n.length,s=i.indexOf(n,l);return a+=i.slice(l)+n,a}},XO=x(0,0),ia=x(1,22),QO=x(2,22),ZO=x(3,23),eD=x(4,24),tD=x(53,55),rD=x(7,27),nD=x(8,28),oD=x(9,29),iD=x(30,39),sD=x(31,39),aD=x(32,39),cD=x(33,39),lD=x(34,39),uD=x(35,39),fD=x(36,39),dD=x(37,39),pr=x(90,39),mD=x(40,49),pD=x(41,49),hD=x(42,49),yD=x(43,49),gD=x(44,49),SD=x(45,49),wD=x(46,49),bD=x(47,49),xD=x(100,49),sa=x(91,39),ED=x(92,39),aa=x(93,39),TD=x(94,39),OD=x(95,39),DD=x(96,39),ID=x(97,39),vD=x(101,49),AD=x(102,49),RD=x(103,49),PD=x(104,49),CD=x(105,49),FD=x(106,49),MD=x(107,49)});var ca=f(()=>{"use strict";co();co()});var fa,Cy,hr,la,Fy,ua,My,da=f(()=>{"use strict";na();ca();fa=({type:e,message:t,timestamp:r,piped:n,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{let a=Cy(r),l=Fy[e]({failed:i,reject:s,piped:n}),u=My[e]({reject:s});return`${pr(`[${a}]`)} ${pr(`[${o}]`)} ${u(l)} ${u(t)}`},Cy=e=>`${hr(e.getHours(),2)}:${hr(e.getMinutes(),2)}:${hr(e.getSeconds(),2)}.${hr(e.getMilliseconds(),3)}`,hr=(e,t)=>String(e).padStart(t,"0"),la=({failed:e,reject:t})=>e?t?mr.cross:mr.warning:mr.tick,Fy={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:la,duration:la},ua=e=>e,My={command:()=>ia,output:()=>ua,ipc:()=>ua,error:({reject:e})=>e?sa:aa,duration:()=>pr}});var ma,Ly,$y,pa=f(()=>{"use strict";De();ma=(e,t,r)=>{let n=Js(t,r);return e.map(({verboseLine:o,verboseObject:i})=>Ly(o,i,n)).filter(o=>o!==void 0).map(o=>$y(o)).join("")},Ly=(e,t,r)=>{if(r===void 0)return e;let n=r(e,t);if(typeof n=="string")return n},$y=e=>e.endsWith(`
8
8
  `)?e:`${e}
9
- `});var pa,ce,Ly,ky,$y,hr,By,ot=f(()=>{"use strict";pa=require("util");fr();fa();ma();ce=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:o})=>{let i=Ly({type:e,result:o,verboseInfo:n}),s=ky(t,i),a=da(s,n,r);a!==""&&console.warn(a.slice(0,-1))},Ly=({type:e,result:t,verboseInfo:{escapedCommand:r,commandId:n,rawOptions:{piped:o=!1,...i}}})=>({type:e,escapedCommand:r,commandId:`${n}`,timestamp:new Date,piped:o,result:t,options:i}),ky=(e,t)=>e.split(`
10
- `).map(r=>$y({...t,message:r})),$y=e=>({verboseLine:ua(e),verboseObject:e}),hr=e=>{let t=typeof e=="string"?e:(0,pa.inspect)(e);return vt(t).replaceAll(" "," ".repeat(By))},By=2});var ha,ya=f(()=>{"use strict";De();ot();ha=(e,t)=>{rt(t)&&ce({type:"command",verboseMessage:e,verboseInfo:t})}});var ga,_y,Ny,Uy,Sa=f(()=>{"use strict";De();ga=(e,t,r)=>{Uy(e);let n=_y(e);return{verbose:e,escapedCommand:t,commandId:n,rawOptions:r}},_y=e=>rt({verbose:e})?Ny++:void 0,Ny=0n,Uy=e=>{for(let t of e){if(t===!1)throw new TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);if(t===!0)throw new TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);if(!ur.includes(t)&&!lr(t)){let r=ur.map(n=>`'${n}'`).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${r} or a function.`)}}}});var co,yr,lo,gr=f(()=>{"use strict";co=require("process"),yr=()=>co.hrtime.bigint(),lo=e=>Number(co.hrtime.bigint()-e)/1e6});var Sr,uo=f(()=>{"use strict";ya();Sa();gr();fr();be();Sr=(e,t,r)=>{let n=yr(),{command:o,escapedCommand:i}=Xs(e,t),s=to(r,"verbose"),a=ga(s,i,{...r});return ha(i,a),{command:o,escapedCommand:i,startTime:n,verboseInfo:a}}});var Ta=b((XD,Ea)=>{"use strict";Ea.exports=xa;xa.sync=Gy;var wa=require("fs");function jy(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function ba(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:jy(t,r)}function xa(e,t,r){wa.stat(e,function(n,o){r(n,n?!1:ba(o,e,t))})}function Gy(e,t){return ba(wa.statSync(e),e,t)}});var va=b((QD,Aa)=>{"use strict";Aa.exports=Da;Da.sync=qy;var Oa=require("fs");function Da(e,t,r){Oa.stat(e,function(n,o){r(n,n?!1:Ia(o,t))})}function qy(e,t){return Ia(Oa.statSync(e),t)}function Ia(e,t){return e.isFile()&&Wy(e,t)}function Wy(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),l=a|c,d=r&u||r&c&&o===s||r&a&&n===i||r&l&&i===0;return d}});var Pa=b((eI,Ra)=>{"use strict";var ZD=require("fs"),wr;process.platform==="win32"||global.TESTING_WINDOWS?wr=Ta():wr=va();Ra.exports=fo;fo.sync=zy;function fo(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){fo(e,t||{},function(i,s){i?o(i):n(s)})})}wr(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function zy(e,t){try{return wr.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Ba=b((tI,$a)=>{"use strict";var it=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ca=require("path"),Vy=it?";":":",Fa=Pa(),Ma=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),La=(e,t)=>{let r=t.colon||Vy,n=e.match(/\//)||it&&e.match(/\\/)?[""]:[...it?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=it?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=it?o.split(r):[""];return it&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},ka=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=La(e,t),s=[],a=u=>new Promise((l,d)=>{if(u===n.length)return t.all&&s.length?l(s):d(Ma(e));let m=n[u],p=/^".*"$/.test(m)?m.slice(1,-1):m,h=Ca.join(p,e),y=!p&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;l(c(y,u,0))}),c=(u,l,d)=>new Promise((m,p)=>{if(d===o.length)return m(a(l+1));let h=o[d];Fa(u+h,{pathExt:i},(y,w)=>{if(!y&&w)if(t.all)s.push(u+h);else return m(u+h);return m(c(u,l,d+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},Yy=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=La(e,t),i=[];for(let s=0;s<r.length;s++){let a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=Ca.join(c,e),l=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let d=0;d<n.length;d++){let m=l+n[d];try{if(Fa.sync(m,{pathExt:o}))if(t.all)i.push(m);else return m}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Ma(e)};$a.exports=ka;ka.sync=Yy});var Na=b((rI,mo)=>{"use strict";var _a=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};mo.exports=_a;mo.exports.default=_a});var qa=b((nI,Ga)=>{"use strict";var Ua=require("path"),Hy=Ba(),Jy=Na();function ja(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=Hy.sync(e.command,{path:r[Jy({env:r})],pathExt:t?Ua.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=Ua.resolve(o?e.options.cwd:"",s)),s}function Ky(e){return ja(e)||ja(e,!0)}Ga.exports=Ky});var Wa=b((oI,ho)=>{"use strict";var po=/([()\][%!^"`<>&|;, *?])/g;function Xy(e){return e=e.replace(po,"^$1"),e}function Qy(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(po,"^$1"),t&&(e=e.replace(po,"^$1")),e}ho.exports.command=Xy;ho.exports.argument=Qy});var Va=b((iI,za)=>{"use strict";za.exports=/^#!(.*)/});var Ha=b((sI,Ya)=>{"use strict";var Zy=Va();Ya.exports=(e="")=>{let t=e.match(Zy);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var Ka=b((aI,Ja)=>{"use strict";var yo=require("fs"),eg=Ha();function tg(e){let r=Buffer.alloc(150),n;try{n=yo.openSync(e,"r"),yo.readSync(n,r,0,150,0),yo.closeSync(n)}catch{}return eg(r.toString())}Ja.exports=tg});var ec=b((cI,Za)=>{"use strict";var rg=require("path"),Xa=qa(),Qa=Wa(),ng=Ka(),og=process.platform==="win32",ig=/\.(?:com|exe)$/i,sg=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ag(e){e.file=Xa(e);let t=e.file&&ng(e.file);return t?(e.args.unshift(e.file),e.command=t,Xa(e)):e.file}function cg(e){if(!og)return e;let t=ag(e),r=!ig.test(t);if(e.options.forceShell||r){let n=sg.test(t);e.command=rg.normalize(e.command),e.command=Qa.command(e.command),e.args=e.args.map(i=>Qa.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function lg(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:cg(n)}Za.exports=lg});var nc=b((lI,rc)=>{"use strict";var go=process.platform==="win32";function So(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function ug(e,t){if(!go)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=tc(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function tc(e,t){return go&&e===1&&!t.file?So(t.original,"spawn"):null}function fg(e,t){return go&&e===1&&!t.file?So(t.original,"spawnSync"):null}rc.exports={hookChildProcess:ug,verifyENOENT:tc,verifyENOENTSync:fg,notFoundError:So}});var sc=b((uI,st)=>{"use strict";var oc=require("child_process"),wo=ec(),bo=nc();function ic(e,t,r){let n=wo(e,t,r),o=oc.spawn(n.command,n.args,n.options);return bo.hookChildProcess(o,n),o}function dg(e,t,r){let n=wo(e,t,r),o=oc.spawnSync(n.command,n.args,n.options);return o.error=o.error||bo.verifyENOENTSync(o.status,n),o}st.exports=ic;st.exports.spawn=ic;st.exports.sync=dg;st.exports._parse=wo;st.exports._enoent=bo});function br(e={}){let{env:t=process.env,platform:r=process.platform}=e;return r!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}var ac=f(()=>{"use strict"});var cc=f(()=>{"use strict"});function xr(e){return e instanceof URL?(0,uc.fileURLToPath)(e):e}function fc(e){return{*[Symbol.iterator](){let t=xo.default.resolve(xr(e)),r;for(;r!==t;)yield t,r=t,t=xo.default.resolve(t,"..")}}}var lc,Eo,xo,uc,mI,pI,dc=f(()=>{"use strict";lc=require("util"),Eo=require("child_process"),xo=G(require("path"),1),uc=require("url");cc();mI=(0,lc.promisify)(Eo.execFile);pI=10*1024*1024});var Rt,Ie,mg,pg,hg,mc,pc=f(()=>{"use strict";Rt=G(require("process"),1),Ie=G(require("path"),1);ac();dc();mg=({cwd:e=Rt.default.cwd(),path:t=Rt.default.env[br()],preferLocal:r=!0,execPath:n=Rt.default.execPath,addExecPath:o=!0}={})=>{let i=Ie.default.resolve(xr(e)),s=[],a=t.split(Ie.default.delimiter);return r&&pg(s,a,i),o&&hg(s,a,n,i),t===""||t===Ie.default.delimiter?`${s.join(Ie.default.delimiter)}${t}`:[...s,t].join(Ie.default.delimiter)},pg=(e,t,r)=>{for(let n of fc(r)){let o=Ie.default.join(n,"node_modules/.bin");t.includes(o)||e.push(o)}},hg=(e,t,r,n)=>{let o=Ie.default.resolve(n,xr(r),"..");t.includes(o)||e.push(o)},mc=({env:e=Rt.default.env,...t}={})=>{e={...e};let r=br({env:e});return t.path=e[r],e[r]=mg(t),e}});var hc,ne,yc,gc,Sc,Er,Ue,je,Ae=f(()=>{"use strict";hc=(e,t,r)=>{let n=r?je:Ue,o=e instanceof ne?{}:{cause:e};return new n(t,o)},ne=class extends Error{},yc=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Sc,{value:!0,writable:!1,enumerable:!1,configurable:!1})},gc=e=>Er(e)&&Sc in e,Sc=Symbol("isExecaError"),Er=e=>Object.prototype.toString.call(e)==="[object Error]",Ue=class extends Error{};yc(Ue,Ue.name);je=class extends Error{};yc(je,je.name)});var wc,yg,bc,xc,Ec=f(()=>{"use strict";wc=()=>{let e=xc-bc+1;return Array.from({length:e},yg)},yg=(e,t)=>({name:`SIGRT${t+1}`,number:bc+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),bc=34,xc=64});var Tc,Oc=f(()=>{"use strict";Tc=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]});var Dc,To,gg,Ic=f(()=>{"use strict";Dc=require("os");Oc();Ec();To=()=>{let e=wc();return[...Tc,...e].map(gg)},gg=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=Dc.constants,a=s!==void 0;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}}});var Ac,Sg,wg,vc,bg,xg,Eg,AI,Rc=f(()=>{"use strict";Ac=require("os");Ic();Sg=()=>{let e=To();return Object.fromEntries(e.map(wg))},wg=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],vc=Sg(),bg=()=>{let e=To(),t=65,r=Array.from({length:t},(n,o)=>xg(o,e));return Object.assign({},...r)},xg=(e,t)=>{let r=Eg(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:a,standard:c}}},Eg=(e,t)=>{let r=t.find(({name:n})=>Ac.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},AI=bg()});var at,Cc,Fc,Mc,Tg,Og,Pc,Dg,Oo,Ig,Ag,Tr,Pt=f(()=>{"use strict";at=require("os");Rc();Cc=e=>{let t="option `killSignal`";if(e===0)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return Mc(e,t)},Fc=e=>e===0?e:Mc(e,"`subprocess.kill()`'s argument"),Mc=(e,t)=>{if(Number.isInteger(e))return Tg(e,t);if(typeof e=="string")return Dg(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.
11
- ${Oo()}`)},Tg=(e,t)=>{if(Pc.has(e))return Pc.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.
12
- ${Oo()}`)},Og=()=>new Map(Object.entries(at.constants.signals).reverse().map(([e,t])=>[t,e])),Pc=Og(),Dg=(e,t)=>{if(e in at.constants.signals)return e;throw e.toUpperCase()in at.constants.signals?new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`):new TypeError(`Invalid ${t} '${e}': this signal name does not exist.
13
- ${Oo()}`)},Oo=()=>`Available signal names: ${Ig()}.
14
- Available signal numbers: ${Ag()}.`,Ig=()=>Object.keys(at.constants.signals).sort().map(e=>`'${e}'`).join(", "),Ag=()=>[...new Set(Object.values(at.constants.signals).sort((e,t)=>e-t))].join(", "),Tr=e=>vc[e].description});var Lc,kc,vg,$c,Rg,Pg,Cg,Do,Or=f(()=>{"use strict";Lc=require("timers/promises");Ae();Pt();kc=e=>{if(e===!1)return e;if(e===!0)return vg;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},vg=1e3*5,$c=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:o,controller:i},s,a)=>{let{signal:c,error:u}=Rg(s,a,r);Pg(u,n);let l=e(c);return Cg({kill:e,signal:c,forceKillAfterDelay:t,killSignal:r,killResult:l,context:o,controller:i}),l},Rg=(e,t,r)=>{let[n=r,o]=Er(e)?[void 0,e]:[e,t];if(typeof n!="string"&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(o!==void 0&&!Er(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:Fc(n),error:o}},Pg=(e,t)=>{e!==void 0&&t.reject(e)},Cg=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:o,context:i,controller:s})=>{t===n&&o&&Do({kill:e,forceKillAfterDelay:r,context:i,controllerSignal:s.signal})},Do=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(t!==!1)try{await(0,Lc.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}}});var Bc,Dr,Io=f(()=>{"use strict";Bc=require("events"),Dr=async(e,t)=>{e.aborted||await(0,Bc.once)(e,"abort",{signal:t})}});var _c,Nc,Fg,Ao=f(()=>{"use strict";Io();_c=({cancelSignal:e})=>{if(e!==void 0&&Object.prototype.toString.call(e)!=="[object AbortSignal]")throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)},Nc=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:o})=>t===void 0||r?[]:[Fg(e,t,n,o)],Fg=async(e,t,r,{signal:n})=>{throw await Dr(t,n),r.terminationReason??="cancel",e.kill(),t.reason}});var ct,Mg,vo,Uc,jc,Ir,Gc,qc,Wc,zc,Vc,Yc,Lg,kg,$g,oe,Bg,ve,lt,ut=f(()=>{"use strict";ct=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{Mg(e,t,r),vo(e,t,n)},Mg=(e,t,r)=>{if(!r)throw new Error(`${oe(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},vo=(e,t,r)=>{if(!r)throw new Error(`${oe(e,t)} cannot be used: the ${ve(t)} has already exited or disconnected.`)},Uc=e=>{throw new Error(`${oe("getOneMessage",e)} could not complete: the ${ve(e)} exited or disconnected.`)},jc=e=>{throw new Error(`${oe("sendMessage",e)} failed: the ${ve(e)} is sending a message too, instead of listening to incoming messages.
9
+ `});var ha,le,ky,By,_y,yr,Ny,it=f(()=>{"use strict";ha=require("util");dr();da();pa();le=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:o})=>{let i=ky({type:e,result:o,verboseInfo:n}),s=By(t,i),a=ma(s,n,r);a!==""&&console.warn(a.slice(0,-1))},ky=({type:e,result:t,verboseInfo:{escapedCommand:r,commandId:n,rawOptions:{piped:o=!1,...i}}})=>({type:e,escapedCommand:r,commandId:`${n}`,timestamp:new Date,piped:o,result:t,options:i}),By=(e,t)=>e.split(`
10
+ `).map(r=>_y({...t,message:r})),_y=e=>({verboseLine:fa(e),verboseObject:e}),yr=e=>{let t=typeof e=="string"?e:(0,ha.inspect)(e);return Rt(t).replaceAll(" "," ".repeat(Ny))},Ny=2});var ya,ga=f(()=>{"use strict";De();it();ya=(e,t)=>{nt(t)&&le({type:"command",verboseMessage:e,verboseInfo:t})}});var Sa,Uy,jy,Gy,wa=f(()=>{"use strict";De();Sa=(e,t,r)=>{Gy(e);let n=Uy(e);return{verbose:e,escapedCommand:t,commandId:n,rawOptions:r}},Uy=e=>nt({verbose:e})?jy++:void 0,jy=0n,Gy=e=>{for(let t of e){if(t===!1)throw new TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);if(t===!0)throw new TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);if(!fr.includes(t)&&!ur(t)){let r=fr.map(n=>`'${n}'`).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${r} or a function.`)}}}});var lo,gr,uo,Sr=f(()=>{"use strict";lo=require("process"),gr=()=>lo.hrtime.bigint(),uo=e=>Number(lo.hrtime.bigint()-e)/1e6});var wr,fo=f(()=>{"use strict";ga();wa();Sr();dr();be();wr=(e,t,r)=>{let n=gr(),{command:o,escapedCommand:i}=Qs(e,t),s=ro(r,"verbose"),a=Sa(s,i,{...r});return ya(i,a),{command:o,escapedCommand:i,startTime:n,verboseInfo:a}}});var Oa=b((nI,Ta)=>{"use strict";Ta.exports=Ea;Ea.sync=Wy;var ba=require("fs");function qy(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function xa(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:qy(t,r)}function Ea(e,t,r){ba.stat(e,function(n,o){r(n,n?!1:xa(o,e,t))})}function Wy(e,t){return xa(ba.statSync(e),e,t)}});var Ra=b((oI,Aa)=>{"use strict";Aa.exports=Ia;Ia.sync=zy;var Da=require("fs");function Ia(e,t,r){Da.stat(e,function(n,o){r(n,n?!1:va(o,t))})}function zy(e,t){return va(Da.statSync(e),t)}function va(e,t){return e.isFile()&&Vy(e,t)}function Vy(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),c=a|l,d=r&u||r&l&&o===s||r&a&&n===i||r&c&&i===0;return d}});var Ca=b((sI,Pa)=>{"use strict";var iI=require("fs"),br;process.platform==="win32"||global.TESTING_WINDOWS?br=Oa():br=Ra();Pa.exports=mo;mo.sync=Yy;function mo(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){mo(e,t||{},function(i,s){i?o(i):n(s)})})}br(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Yy(e,t){try{return br.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var _a=b((aI,Ba)=>{"use strict";var st=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fa=require("path"),Hy=st?";":":",Ma=Ca(),La=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),$a=(e,t)=>{let r=t.colon||Hy,n=e.match(/\//)||st&&e.match(/\\/)?[""]:[...st?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=st?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=st?o.split(r):[""];return st&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},ka=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=$a(e,t),s=[],a=u=>new Promise((c,d)=>{if(u===n.length)return t.all&&s.length?c(s):d(La(e));let m=n[u],p=/^".*"$/.test(m)?m.slice(1,-1):m,h=Fa.join(p,e),y=!p&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;c(l(y,u,0))}),l=(u,c,d)=>new Promise((m,p)=>{if(d===o.length)return m(a(c+1));let h=o[d];Ma(u+h,{pathExt:i},(y,w)=>{if(!y&&w)if(t.all)s.push(u+h);else return m(u+h);return m(l(u,c,d+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},Jy=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=$a(e,t),i=[];for(let s=0;s<r.length;s++){let a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Fa.join(l,e),c=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let d=0;d<n.length;d++){let m=c+n[d];try{if(Ma.sync(m,{pathExt:o}))if(t.all)i.push(m);else return m}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw La(e)};Ba.exports=ka;ka.sync=Jy});var Ua=b((cI,po)=>{"use strict";var Na=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};po.exports=Na;po.exports.default=Na});var Wa=b((lI,qa)=>{"use strict";var ja=require("path"),Ky=_a(),Xy=Ua();function Ga(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=Ky.sync(e.command,{path:r[Xy({env:r})],pathExt:t?ja.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=ja.resolve(o?e.options.cwd:"",s)),s}function Qy(e){return Ga(e)||Ga(e,!0)}qa.exports=Qy});var za=b((uI,yo)=>{"use strict";var ho=/([()\][%!^"`<>&|;, *?])/g;function Zy(e){return e=e.replace(ho,"^$1"),e}function eg(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ho,"^$1"),t&&(e=e.replace(ho,"^$1")),e}yo.exports.command=Zy;yo.exports.argument=eg});var Ya=b((fI,Va)=>{"use strict";Va.exports=/^#!(.*)/});var Ja=b((dI,Ha)=>{"use strict";var tg=Ya();Ha.exports=(e="")=>{let t=e.match(tg);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var Xa=b((mI,Ka)=>{"use strict";var go=require("fs"),rg=Ja();function ng(e){let r=Buffer.alloc(150),n;try{n=go.openSync(e,"r"),go.readSync(n,r,0,150,0),go.closeSync(n)}catch{}return rg(r.toString())}Ka.exports=ng});var tc=b((pI,ec)=>{"use strict";var og=require("path"),Qa=Wa(),Za=za(),ig=Xa(),sg=process.platform==="win32",ag=/\.(?:com|exe)$/i,cg=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function lg(e){e.file=Qa(e);let t=e.file&&ig(e.file);return t?(e.args.unshift(e.file),e.command=t,Qa(e)):e.file}function ug(e){if(!sg)return e;let t=lg(e),r=!ag.test(t);if(e.options.forceShell||r){let n=cg.test(t);e.command=og.normalize(e.command),e.command=Za.command(e.command),e.args=e.args.map(i=>Za.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function fg(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:ug(n)}ec.exports=fg});var oc=b((hI,nc)=>{"use strict";var So=process.platform==="win32";function wo(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function dg(e,t){if(!So)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=rc(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function rc(e,t){return So&&e===1&&!t.file?wo(t.original,"spawn"):null}function mg(e,t){return So&&e===1&&!t.file?wo(t.original,"spawnSync"):null}nc.exports={hookChildProcess:dg,verifyENOENT:rc,verifyENOENTSync:mg,notFoundError:wo}});var ac=b((yI,at)=>{"use strict";var ic=require("child_process"),bo=tc(),xo=oc();function sc(e,t,r){let n=bo(e,t,r),o=ic.spawn(n.command,n.args,n.options);return xo.hookChildProcess(o,n),o}function pg(e,t,r){let n=bo(e,t,r),o=ic.spawnSync(n.command,n.args,n.options);return o.error=o.error||xo.verifyENOENTSync(o.status,n),o}at.exports=sc;at.exports.spawn=sc;at.exports.sync=pg;at.exports._parse=bo;at.exports._enoent=xo});function xr(e={}){let{env:t=process.env,platform:r=process.platform}=e;return r!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}var cc=f(()=>{"use strict"});var lc=f(()=>{"use strict"});function Er(e){return e instanceof URL?(0,fc.fileURLToPath)(e):e}function dc(e){return{*[Symbol.iterator](){let t=Eo.default.resolve(Er(e)),r;for(;r!==t;)yield t,r=t,t=Eo.default.resolve(t,"..")}}}var uc,To,Eo,fc,wI,bI,mc=f(()=>{"use strict";uc=require("util"),To=require("child_process"),Eo=L(require("path"),1),fc=require("url");lc();wI=(0,uc.promisify)(To.execFile);bI=10*1024*1024});var Pt,Ie,hg,yg,gg,pc,hc=f(()=>{"use strict";Pt=L(require("process"),1),Ie=L(require("path"),1);cc();mc();hg=({cwd:e=Pt.default.cwd(),path:t=Pt.default.env[xr()],preferLocal:r=!0,execPath:n=Pt.default.execPath,addExecPath:o=!0}={})=>{let i=Ie.default.resolve(Er(e)),s=[],a=t.split(Ie.default.delimiter);return r&&yg(s,a,i),o&&gg(s,a,n,i),t===""||t===Ie.default.delimiter?`${s.join(Ie.default.delimiter)}${t}`:[...s,t].join(Ie.default.delimiter)},yg=(e,t,r)=>{for(let n of dc(r)){let o=Ie.default.join(n,"node_modules/.bin");t.includes(o)||e.push(o)}},gg=(e,t,r,n)=>{let o=Ie.default.resolve(n,Er(r),"..");t.includes(o)||e.push(o)},pc=({env:e=Pt.default.env,...t}={})=>{e={...e};let r=xr({env:e});return t.path=e[r],e[r]=hg(t),e}});var yc,oe,gc,Sc,wc,Tr,je,Ge,ve=f(()=>{"use strict";yc=(e,t,r)=>{let n=r?Ge:je,o=e instanceof oe?{}:{cause:e};return new n(t,o)},oe=class extends Error{},gc=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,wc,{value:!0,writable:!1,enumerable:!1,configurable:!1})},Sc=e=>Tr(e)&&wc in e,wc=Symbol("isExecaError"),Tr=e=>Object.prototype.toString.call(e)==="[object Error]",je=class extends Error{};gc(je,je.name);Ge=class extends Error{};gc(Ge,Ge.name)});var bc,Sg,xc,Ec,Tc=f(()=>{"use strict";bc=()=>{let e=Ec-xc+1;return Array.from({length:e},Sg)},Sg=(e,t)=>({name:`SIGRT${t+1}`,number:xc+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),xc=34,Ec=64});var Oc,Dc=f(()=>{"use strict";Oc=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]});var Ic,Oo,wg,vc=f(()=>{"use strict";Ic=require("os");Dc();Tc();Oo=()=>{let e=bc();return[...Oc,...e].map(wg)},wg=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=Ic.constants,a=s!==void 0;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}}});var Ac,bg,xg,Rc,Eg,Tg,Og,MI,Pc=f(()=>{"use strict";Ac=require("os");vc();bg=()=>{let e=Oo();return Object.fromEntries(e.map(xg))},xg=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],Rc=bg(),Eg=()=>{let e=Oo(),t=65,r=Array.from({length:t},(n,o)=>Tg(o,e));return Object.assign({},...r)},Tg=(e,t)=>{let r=Og(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:a,standard:l}}},Og=(e,t)=>{let r=t.find(({name:n})=>Ac.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},MI=Eg()});var ct,Fc,Mc,Lc,Dg,Ig,Cc,vg,Do,Ag,Rg,Or,Ct=f(()=>{"use strict";ct=require("os");Pc();Fc=e=>{let t="option `killSignal`";if(e===0)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return Lc(e,t)},Mc=e=>e===0?e:Lc(e,"`subprocess.kill()`'s argument"),Lc=(e,t)=>{if(Number.isInteger(e))return Dg(e,t);if(typeof e=="string")return vg(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.
11
+ ${Do()}`)},Dg=(e,t)=>{if(Cc.has(e))return Cc.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.
12
+ ${Do()}`)},Ig=()=>new Map(Object.entries(ct.constants.signals).reverse().map(([e,t])=>[t,e])),Cc=Ig(),vg=(e,t)=>{if(e in ct.constants.signals)return e;throw e.toUpperCase()in ct.constants.signals?new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`):new TypeError(`Invalid ${t} '${e}': this signal name does not exist.
13
+ ${Do()}`)},Do=()=>`Available signal names: ${Ag()}.
14
+ Available signal numbers: ${Rg()}.`,Ag=()=>Object.keys(ct.constants.signals).sort().map(e=>`'${e}'`).join(", "),Rg=()=>[...new Set(Object.values(ct.constants.signals).sort((e,t)=>e-t))].join(", "),Or=e=>Rc[e].description});var $c,kc,Pg,Bc,Cg,Fg,Mg,Io,Dr=f(()=>{"use strict";$c=require("timers/promises");ve();Ct();kc=e=>{if(e===!1)return e;if(e===!0)return Pg;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Pg=1e3*5,Bc=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:o,controller:i},s,a)=>{let{signal:l,error:u}=Cg(s,a,r);Fg(u,n);let c=e(l);return Mg({kill:e,signal:l,forceKillAfterDelay:t,killSignal:r,killResult:c,context:o,controller:i}),c},Cg=(e,t,r)=>{let[n=r,o]=Tr(e)?[void 0,e]:[e,t];if(typeof n!="string"&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(o!==void 0&&!Tr(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:Mc(n),error:o}},Fg=(e,t)=>{e!==void 0&&t.reject(e)},Mg=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:o,context:i,controller:s})=>{t===n&&o&&Io({kill:e,forceKillAfterDelay:r,context:i,controllerSignal:s.signal})},Io=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(t!==!1)try{await(0,$c.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}}});var _c,Ir,vo=f(()=>{"use strict";_c=require("events"),Ir=async(e,t)=>{e.aborted||await(0,_c.once)(e,"abort",{signal:t})}});var Nc,Uc,Lg,Ao=f(()=>{"use strict";vo();Nc=({cancelSignal:e})=>{if(e!==void 0&&Object.prototype.toString.call(e)!=="[object AbortSignal]")throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)},Uc=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:o})=>t===void 0||r?[]:[Lg(e,t,n,o)],Lg=async(e,t,r,{signal:n})=>{throw await Ir(t,n),r.terminationReason??="cancel",e.kill(),t.reason}});var lt,$g,Ro,jc,Gc,vr,qc,Wc,zc,Vc,Yc,Hc,kg,Bg,_g,ie,Ng,Ae,ut,ft=f(()=>{"use strict";lt=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{$g(e,t,r),Ro(e,t,n)},$g=(e,t,r)=>{if(!r)throw new Error(`${ie(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Ro=(e,t,r)=>{if(!r)throw new Error(`${ie(e,t)} cannot be used: the ${Ae(t)} has already exited or disconnected.`)},jc=e=>{throw new Error(`${ie("getOneMessage",e)} could not complete: the ${Ae(e)} exited or disconnected.`)},Gc=e=>{throw new Error(`${ie("sendMessage",e)} failed: the ${Ae(e)} is sending a message too, instead of listening to incoming messages.
15
15
  This can be fixed by both sending a message and listening to incoming messages at the same time:
16
16
 
17
17
  const [receivedMessage] = await Promise.all([
18
- ${oe("getOneMessage",e)},
19
- ${oe("sendMessage",e,"message, {strict: true}")},
20
- ]);`)},Ir=(e,t)=>new Error(`${oe("sendMessage",t)} failed when sending an acknowledgment response to the ${ve(t)}.`,{cause:e}),Gc=e=>{throw new Error(`${oe("sendMessage",e)} failed: the ${ve(e)} is not listening to incoming messages.`)},qc=e=>{throw new Error(`${oe("sendMessage",e)} failed: the ${ve(e)} exited without listening to incoming messages.`)},Wc=()=>new Error(`\`cancelSignal\` aborted: the ${ve(!0)} disconnected.`),zc=()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")},Vc=({error:e,methodName:t,isSubprocess:r})=>{if(e.code==="EPIPE")throw new Error(`${oe(t,r)} cannot be used: the ${ve(r)} is disconnecting.`,{cause:e})},Yc=({error:e,methodName:t,isSubprocess:r,message:n})=>{if(Lg(e))throw new Error(`${oe(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})},Lg=({code:e,message:t})=>kg.has(e)||$g.some(r=>t.includes(r)),kg=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),$g=["could not be cloned","circular structure","call stack size exceeded"],oe=(e,t,r="")=>e==="cancelSignal"?"`cancelSignal`'s `controller.abort()`":`${Bg(t)}${e}(${r})`,Bg=e=>e?"":"subprocess.",ve=e=>e?"parent process":"subprocess",lt=e=>{e.connected&&e.disconnect()}});var le,ft=f(()=>{"use strict";le=()=>{let e={},t=new Promise((r,n)=>{Object.assign(e,{resolve:r,reject:n})});return Object.assign(t,e)}});var vr,dt,ue,Hc,_g,Ng,Jc,Ug,Kc,Ct,Ar,Re=f(()=>{"use strict";be();vr=(e,t="stdin")=>{let{options:n,fileDescriptors:o}=ue.get(e),i=Hc(o,t,!0),s=e.stdio[i];if(s===null)throw new TypeError(Jc(i,t,n,!0));return s},dt=(e,t="stdout")=>{let{options:n,fileDescriptors:o}=ue.get(e),i=Hc(o,t,!1),s=i==="all"?e.all:e.stdio[i];if(s==null)throw new TypeError(Jc(i,t,n,!1));return s},ue=new WeakMap,Hc=(e,t,r)=>{let n=_g(t,r);return Ng(n,t,r,e),n},_g=(e,t)=>{let r=ro(e);if(r!==void 0)return r;let{validOptions:n,defaultValue:o}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${Ct(t)}" must not be "${e}".
18
+ ${ie("getOneMessage",e)},
19
+ ${ie("sendMessage",e,"message, {strict: true}")},
20
+ ]);`)},vr=(e,t)=>new Error(`${ie("sendMessage",t)} failed when sending an acknowledgment response to the ${Ae(t)}.`,{cause:e}),qc=e=>{throw new Error(`${ie("sendMessage",e)} failed: the ${Ae(e)} is not listening to incoming messages.`)},Wc=e=>{throw new Error(`${ie("sendMessage",e)} failed: the ${Ae(e)} exited without listening to incoming messages.`)},zc=()=>new Error(`\`cancelSignal\` aborted: the ${Ae(!0)} disconnected.`),Vc=()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")},Yc=({error:e,methodName:t,isSubprocess:r})=>{if(e.code==="EPIPE")throw new Error(`${ie(t,r)} cannot be used: the ${Ae(r)} is disconnecting.`,{cause:e})},Hc=({error:e,methodName:t,isSubprocess:r,message:n})=>{if(kg(e))throw new Error(`${ie(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})},kg=({code:e,message:t})=>Bg.has(e)||_g.some(r=>t.includes(r)),Bg=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),_g=["could not be cloned","circular structure","call stack size exceeded"],ie=(e,t,r="")=>e==="cancelSignal"?"`cancelSignal`'s `controller.abort()`":`${Ng(t)}${e}(${r})`,Ng=e=>e?"":"subprocess.",Ae=e=>e?"parent process":"subprocess",ut=e=>{e.connected&&e.disconnect()}});var ue,dt=f(()=>{"use strict";ue=()=>{let e={},t=new Promise((r,n)=>{Object.assign(e,{resolve:r,reject:n})});return Object.assign(t,e)}});var Rr,mt,fe,Jc,Ug,jg,Kc,Gg,Xc,Ft,Ar,Re=f(()=>{"use strict";be();Rr=(e,t="stdin")=>{let{options:n,fileDescriptors:o}=fe.get(e),i=Jc(o,t,!0),s=e.stdio[i];if(s===null)throw new TypeError(Kc(i,t,n,!0));return s},mt=(e,t="stdout")=>{let{options:n,fileDescriptors:o}=fe.get(e),i=Jc(o,t,!1),s=i==="all"?e.all:e.stdio[i];if(s==null)throw new TypeError(Kc(i,t,n,!1));return s},fe=new WeakMap,Jc=(e,t,r)=>{let n=Ug(t,r);return jg(n,t,r,e),n},Ug=(e,t)=>{let r=no(e);if(r!==void 0)return r;let{validOptions:n,defaultValue:o}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${Ft(t)}" must not be "${e}".
21
21
  It must be ${n} or "fd3", "fd4" (and so on).
22
- It is optional and defaults to "${o}".`)},Ng=(e,t,r,n)=>{let o=n[Kc(e)];if(o===void 0)throw new TypeError(`"${Ct(r)}" must not be ${t}. That file descriptor does not exist.
23
- Please set the "stdio" option to ensure that file descriptor exists.`);if(o.direction==="input"&&!r)throw new TypeError(`"${Ct(r)}" must not be ${t}. It must be a readable stream, not writable.`);if(o.direction!=="input"&&r)throw new TypeError(`"${Ct(r)}" must not be ${t}. It must be a writable stream, not readable.`)},Jc=(e,t,r,n)=>{if(e==="all"&&!r.all)return`The "all" option must be true to use "from: 'all'".`;let{optionName:o,optionValue:i}=Ug(e,r);return`The "${o}: ${Ar(i)}" option is incompatible with using "${Ct(n)}: ${Ar(t)}".
24
- Please set this option with "pipe" instead.`},Ug=(e,{stdin:t,stdout:r,stderr:n,stdio:o})=>{let i=Kc(e);return i===0&&t!==void 0?{optionName:"stdin",optionValue:t}:i===1&&r!==void 0?{optionName:"stdout",optionValue:r}:i===2&&n!==void 0?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${i}]`,optionValue:o[i]}},Kc=e=>e==="all"?1:e,Ct=e=>e?"to":"from",Ar=e=>typeof e=="string"?`'${e}'`:typeof e=="number"?`${e}`:"Stream"});var Xc,Ge,Rr=f(()=>{"use strict";Xc=require("events"),Ge=(e,t,r)=>{let n=e.getMaxListeners();n===0||n===Number.POSITIVE_INFINITY||(e.setMaxListeners(n+t),(0,Xc.addAbortListener)(r,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))}});var Pr,Ro,Cr,Po,Qc,Zc,Ft=f(()=>{"use strict";Pr=(e,t)=>{t&&Ro(e)},Ro=e=>{e.refCounted()},Cr=(e,t)=>{t&&Po(e)},Po=e=>{e.unrefCounted()},Qc=(e,t)=>{t&&(Po(e),Po(e))},Zc=(e,t)=>{t&&(Ro(e),Ro(e))}});var el,tl,rl,nl,Fr,ol=f(()=>{"use strict";el=require("events"),tl=require("timers/promises");Lr();Ft();Mr();kr();rl=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},o)=>{if(sl(o)||cl(o))return;Fr.has(e)||Fr.set(e,[]);let i=Fr.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await al(e,n,o),await tl.scheduler.yield();let s=await il({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});i.shift(),n.emit("message",s),n.emit("message:done")}},nl=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:o})=>{Co();let i=Fr.get(e);for(;i?.length>0;)await(0,el.once)(n,"message:done");e.removeListener("message",o),Zc(t,r),n.connected=!1,n.emit("disconnect")},Fr=new WeakMap});var ll,Pe,$r,jg,Br,Mt=f(()=>{"use strict";ll=require("events");ol();Ft();Pe=(e,t,r)=>{if($r.has(e))return $r.get(e);let n=new ll.EventEmitter;return n.connected=!0,$r.set(e,n),jg({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},$r=new WeakMap,jg=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{let o=rl.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",o),t.once("disconnect",nl.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:o})),Qc(r,n)},Br=e=>{let t=$r.get(e);return t===void 0?e.channel!==null:t.connected}});var ul,fl,Gg,dl,il,sl,ml,_r,qg,Nr,pl,Mr=f(()=>{"use strict";ul=require("events");ft();Rr();Gr();ut();Mt();Lr();fl=({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:o})=>{if(!o)return n;let i=Pe(e,t,r),s=Ur(e,i);return{id:Gg++,type:Nr,message:n,hasListeners:s}},Gg=0n,dl=(e,t)=>{if(!(t?.type!==Nr||t.hasListeners))for(let{id:r}of e)r!==void 0&&_r[r].resolve({isDeadlock:!0,hasListeners:!1})},il=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:o})=>{if(e?.type!==Nr||!t.connected)return e;let{id:i,message:s}=e,a={id:i,type:pl,message:Ur(t,o)};try{await jr({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(c){o.emit("strict:error",c)}return s},sl=e=>{if(e?.type!==pl)return!1;let{id:t,message:r}=e;return _r[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},ml=async(e,t,r)=>{if(e?.type!==Nr)return;let n=le();_r[e.id]=n;let o=new AbortController;try{let{isDeadlock:i,hasListeners:s}=await Promise.race([n,qg(t,r,o)]);i&&jc(r),s||Gc(r)}finally{o.abort(),delete _r[e.id]}},_r={},qg=async(e,t,{signal:r})=>{Ge(e,1,r),await(0,ul.once)(e,"disconnect",{signal:r}),qc(t)},Nr="execa:ipc:request",pl="execa:ipc:response"});var hl,yl,al,Lt,Ur,Wg,Lr=f(()=>{"use strict";ft();be();Re();Mr();hl=(e,t,r)=>{Lt.has(e)||Lt.set(e,new Set);let n=Lt.get(e),o=le(),i=r?t.id:void 0,s={onMessageSent:o,id:i};return n.add(s),{outgoingMessages:n,outgoingMessage:s}},yl=({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()},al=async(e,t,r)=>{for(;!Ur(e,t)&&Lt.get(e)?.size>0;){let n=[...Lt.get(e)];dl(n,r),await Promise.all(n.map(({onMessageSent:o})=>o))}},Lt=new WeakMap,Ur=(e,t)=>t.listenerCount("message")>Wg(e),Wg=e=>ue.has(e)&&!we(ue.get(e).options.buffer,"ipc")?1:0});var gl,jr,zg,Mo,Vg,Fo,Gr=f(()=>{"use strict";gl=require("util");ut();Lr();Mr();jr=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},o,{strict:i=!1}={})=>{let s="sendMessage";return ct({methodName:s,isSubprocess:r,ipc:n,isConnected:e.connected}),zg({anyProcess:e,channel:t,methodName:s,isSubprocess:r,message:o,strict:i})},zg=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:o,strict:i})=>{let s=fl({anyProcess:e,channel:t,isSubprocess:n,message:o,strict:i}),a=hl(e,s,i);try{await Mo({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:s,message:o})}catch(c){throw lt(e),c}finally{yl(a)}},Mo=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:o})=>{let i=Vg(e);try{await Promise.all([ml(n,e,r),i(n)])}catch(s){throw Vc({error:s,methodName:t,isSubprocess:r}),Yc({error:s,methodName:t,isSubprocess:r,message:o}),s}},Vg=e=>{if(Fo.has(e))return Fo.get(e);let t=(0,gl.promisify)(e.send.bind(e));return Fo.set(e,t),t},Fo=new WeakMap});var wl,bl,xl,Yg,Sl,cl,El,Co,Lo,kr=f(()=>{"use strict";wl=require("timers/promises");Gr();Mt();ut();bl=(e,t)=>{let r="cancelSignal";return vo(r,!1,e.connected),Mo({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:El,message:t},message:t})},xl=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await Yg({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),Lo.signal),Yg=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{if(!Sl){if(Sl=!0,!n){zc();return}if(t===null){Co();return}Pe(e,t,r),await wl.scheduler.yield()}},Sl=!1,cl=e=>e?.type!==El?!1:(Lo.abort(e.message),!0),El="execa:ipc:cancel",Co=()=>{Lo.abort(Wc())},Lo=new AbortController});var Tl,Ol,Hg,Jg,ko=f(()=>{"use strict";Io();kr();Or();Tl=({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(t===void 0)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!r)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if(n==="json")throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}},Ol=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:o,controller:i})=>r?[Hg({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:o,controller:i})]:[],Hg=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:o}})=>{await Dr(t,o);let i=Jg(t);throw await bl(e,i),Do({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:o}),n.terminationReason??="gracefulCancel",t.reason},Jg=({reason:e})=>{if(!(e instanceof DOMException))return e;let t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t}});var Dl,Il,Al,Kg,$o=f(()=>{"use strict";Dl=require("timers/promises");Ae();Il=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Al=(e,t,r,n)=>t===0||t===void 0?[]:[Kg(e,t,r,n)],Kg=async(e,t,r,{signal:n})=>{throw await(0,Dl.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new ne}});var qr,Bo,vl,Rl,_o=f(()=>{"use strict";qr=require("process"),Bo=G(require("path"),1);tt();vl=({options:e})=>{if(e.node===!1)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}},Rl=(e,t,{node:r=!1,nodePath:n=qr.execPath,nodeOptions:o=qr.execArgv.filter(c=>!c.startsWith("--inspect")),cwd:i,execPath:s,...a})=>{if(s!==void 0)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');let c=et(n,'The "nodePath" option'),u=Bo.default.resolve(i,c),l={...a,nodePath:u,node:r,cwd:i};if(!r)return[e,t,l];if(Bo.default.basename(e,".exe")==="node")throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[u,[...o,e,...t],{ipc:!0,...l,shell:!1}]}});var Pl,Cl,Xg,Qg,Zg,Fl,No=f(()=>{"use strict";Pl=require("v8"),Cl=({ipcInput:e,ipc:t,serialization:r})=>{if(e!==void 0){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");Zg[r](e)}},Xg=e=>{try{(0,Pl.serialize)(e)}catch(t){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:t})}},Qg=e=>{try{JSON.stringify(e)}catch(t){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:t})}},Zg={advanced:Xg,json:Qg},Fl=async(e,t)=>{t!==void 0&&await e.sendMessage(t)}});var Ll,eS,X,Uo,tS,Ml,Wr,qe=f(()=>{"use strict";Ll=({encoding:e})=>{if(Uo.has(e))return;let t=tS(e);if(t!==void 0)throw new TypeError(`Invalid option \`encoding: ${Wr(e)}\`.
25
- Please rename it to ${Wr(t)}.`);let r=[...Uo].map(n=>Wr(n)).join(", ");throw new TypeError(`Invalid option \`encoding: ${Wr(e)}\`.
26
- Please rename it to one of: ${r}.`)},eS=new Set(["utf8","utf16le"]),X=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),Uo=new Set([...eS,...X]),tS=e=>{if(e===null)return"buffer";if(typeof e!="string")return;let t=e.toLowerCase();if(t in Ml)return Ml[t];if(Uo.has(t))return t},Ml={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},Wr=e=>typeof e=="string"?`"${e}"`:String(e)});var kl,$l,Bl,_l,Nl,Ul,jo=f(()=>{"use strict";kl=require("fs"),$l=G(require("path"),1),Bl=G(require("process"),1);tt();_l=(e=Nl())=>{let t=et(e,'The "cwd" option');return $l.default.resolve(t)},Nl=()=>{try{return Bl.default.cwd()}catch(e){throw e.message=`The current directory does not exist.
27
- ${e.message}`,e}},Ul=(e,t)=>{if(t===Nl())return e;let r;try{r=(0,kl.statSync)(t)}catch(n){return`The "cwd" option is invalid: ${t}.
22
+ It is optional and defaults to "${o}".`)},jg=(e,t,r,n)=>{let o=n[Xc(e)];if(o===void 0)throw new TypeError(`"${Ft(r)}" must not be ${t}. That file descriptor does not exist.
23
+ Please set the "stdio" option to ensure that file descriptor exists.`);if(o.direction==="input"&&!r)throw new TypeError(`"${Ft(r)}" must not be ${t}. It must be a readable stream, not writable.`);if(o.direction!=="input"&&r)throw new TypeError(`"${Ft(r)}" must not be ${t}. It must be a writable stream, not readable.`)},Kc=(e,t,r,n)=>{if(e==="all"&&!r.all)return`The "all" option must be true to use "from: 'all'".`;let{optionName:o,optionValue:i}=Gg(e,r);return`The "${o}: ${Ar(i)}" option is incompatible with using "${Ft(n)}: ${Ar(t)}".
24
+ Please set this option with "pipe" instead.`},Gg=(e,{stdin:t,stdout:r,stderr:n,stdio:o})=>{let i=Xc(e);return i===0&&t!==void 0?{optionName:"stdin",optionValue:t}:i===1&&r!==void 0?{optionName:"stdout",optionValue:r}:i===2&&n!==void 0?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${i}]`,optionValue:o[i]}},Xc=e=>e==="all"?1:e,Ft=e=>e?"to":"from",Ar=e=>typeof e=="string"?`'${e}'`:typeof e=="number"?`${e}`:"Stream"});var Qc,qe,Pr=f(()=>{"use strict";Qc=require("events"),qe=(e,t,r)=>{let n=e.getMaxListeners();n===0||n===Number.POSITIVE_INFINITY||(e.setMaxListeners(n+t),(0,Qc.addAbortListener)(r,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))}});var Cr,Po,Fr,Co,Zc,el,Mt=f(()=>{"use strict";Cr=(e,t)=>{t&&Po(e)},Po=e=>{e.refCounted()},Fr=(e,t)=>{t&&Co(e)},Co=e=>{e.unrefCounted()},Zc=(e,t)=>{t&&(Co(e),Co(e))},el=(e,t)=>{t&&(Po(e),Po(e))}});var tl,rl,nl,ol,Mr,il=f(()=>{"use strict";tl=require("events"),rl=require("timers/promises");$r();Mt();Lr();kr();nl=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},o)=>{if(al(o)||ll(o))return;Mr.has(e)||Mr.set(e,[]);let i=Mr.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await cl(e,n,o),await rl.scheduler.yield();let s=await sl({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});i.shift(),n.emit("message",s),n.emit("message:done")}},ol=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:o})=>{Fo();let i=Mr.get(e);for(;i?.length>0;)await(0,tl.once)(n,"message:done");e.removeListener("message",o),el(t,r),n.connected=!1,n.emit("disconnect")},Mr=new WeakMap});var ul,Pe,Br,qg,_r,Lt=f(()=>{"use strict";ul=require("events");il();Mt();Pe=(e,t,r)=>{if(Br.has(e))return Br.get(e);let n=new ul.EventEmitter;return n.connected=!0,Br.set(e,n),qg({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},Br=new WeakMap,qg=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{let o=nl.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",o),t.once("disconnect",ol.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:o})),Zc(r,n)},_r=e=>{let t=Br.get(e);return t===void 0?e.channel!==null:t.connected}});var fl,dl,Wg,ml,sl,al,pl,Nr,zg,Ur,hl,Lr=f(()=>{"use strict";fl=require("events");dt();Pr();qr();ft();Lt();$r();dl=({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:o})=>{if(!o)return n;let i=Pe(e,t,r),s=jr(e,i);return{id:Wg++,type:Ur,message:n,hasListeners:s}},Wg=0n,ml=(e,t)=>{if(!(t?.type!==Ur||t.hasListeners))for(let{id:r}of e)r!==void 0&&Nr[r].resolve({isDeadlock:!0,hasListeners:!1})},sl=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:o})=>{if(e?.type!==Ur||!t.connected)return e;let{id:i,message:s}=e,a={id:i,type:hl,message:jr(t,o)};try{await Gr({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(l){o.emit("strict:error",l)}return s},al=e=>{if(e?.type!==hl)return!1;let{id:t,message:r}=e;return Nr[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},pl=async(e,t,r)=>{if(e?.type!==Ur)return;let n=ue();Nr[e.id]=n;let o=new AbortController;try{let{isDeadlock:i,hasListeners:s}=await Promise.race([n,zg(t,r,o)]);i&&Gc(r),s||qc(r)}finally{o.abort(),delete Nr[e.id]}},Nr={},zg=async(e,t,{signal:r})=>{qe(e,1,r),await(0,fl.once)(e,"disconnect",{signal:r}),Wc(t)},Ur="execa:ipc:request",hl="execa:ipc:response"});var yl,gl,cl,$t,jr,Vg,$r=f(()=>{"use strict";dt();be();Re();Lr();yl=(e,t,r)=>{$t.has(e)||$t.set(e,new Set);let n=$t.get(e),o=ue(),i=r?t.id:void 0,s={onMessageSent:o,id:i};return n.add(s),{outgoingMessages:n,outgoingMessage:s}},gl=({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()},cl=async(e,t,r)=>{for(;!jr(e,t)&&$t.get(e)?.size>0;){let n=[...$t.get(e)];ml(n,r),await Promise.all(n.map(({onMessageSent:o})=>o))}},$t=new WeakMap,jr=(e,t)=>t.listenerCount("message")>Vg(e),Vg=e=>fe.has(e)&&!we(fe.get(e).options.buffer,"ipc")?1:0});var Sl,Gr,Yg,Lo,Hg,Mo,qr=f(()=>{"use strict";Sl=require("util");ft();$r();Lr();Gr=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},o,{strict:i=!1}={})=>{let s="sendMessage";return lt({methodName:s,isSubprocess:r,ipc:n,isConnected:e.connected}),Yg({anyProcess:e,channel:t,methodName:s,isSubprocess:r,message:o,strict:i})},Yg=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:o,strict:i})=>{let s=dl({anyProcess:e,channel:t,isSubprocess:n,message:o,strict:i}),a=yl(e,s,i);try{await Lo({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:s,message:o})}catch(l){throw ut(e),l}finally{gl(a)}},Lo=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:o})=>{let i=Hg(e);try{await Promise.all([pl(n,e,r),i(n)])}catch(s){throw Yc({error:s,methodName:t,isSubprocess:r}),Hc({error:s,methodName:t,isSubprocess:r,message:o}),s}},Hg=e=>{if(Mo.has(e))return Mo.get(e);let t=(0,Sl.promisify)(e.send.bind(e));return Mo.set(e,t),t},Mo=new WeakMap});var bl,xl,El,Jg,wl,ll,Tl,Fo,$o,kr=f(()=>{"use strict";bl=require("timers/promises");qr();Lt();ft();xl=(e,t)=>{let r="cancelSignal";return Ro(r,!1,e.connected),Lo({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:Tl,message:t},message:t})},El=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await Jg({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),$o.signal),Jg=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{if(!wl){if(wl=!0,!n){Vc();return}if(t===null){Fo();return}Pe(e,t,r),await bl.scheduler.yield()}},wl=!1,ll=e=>e?.type!==Tl?!1:($o.abort(e.message),!0),Tl="execa:ipc:cancel",Fo=()=>{$o.abort(zc())},$o=new AbortController});var Ol,Dl,Kg,Xg,ko=f(()=>{"use strict";vo();kr();Dr();Ol=({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(t===void 0)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!r)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if(n==="json")throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}},Dl=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:o,controller:i})=>r?[Kg({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:o,controller:i})]:[],Kg=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:o}})=>{await Ir(t,o);let i=Xg(t);throw await xl(e,i),Io({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:o}),n.terminationReason??="gracefulCancel",t.reason},Xg=({reason:e})=>{if(!(e instanceof DOMException))return e;let t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t}});var Il,vl,Al,Qg,Bo=f(()=>{"use strict";Il=require("timers/promises");ve();vl=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Al=(e,t,r,n)=>t===0||t===void 0?[]:[Qg(e,t,r,n)],Qg=async(e,t,r,{signal:n})=>{throw await(0,Il.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new oe}});var Wr,_o,Rl,Pl,No=f(()=>{"use strict";Wr=require("process"),_o=L(require("path"),1);rt();Rl=({options:e})=>{if(e.node===!1)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}},Pl=(e,t,{node:r=!1,nodePath:n=Wr.execPath,nodeOptions:o=Wr.execArgv.filter(l=>!l.startsWith("--inspect")),cwd:i,execPath:s,...a})=>{if(s!==void 0)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');let l=tt(n,'The "nodePath" option'),u=_o.default.resolve(i,l),c={...a,nodePath:u,node:r,cwd:i};if(!r)return[e,t,c];if(_o.default.basename(e,".exe")==="node")throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[u,[...o,e,...t],{ipc:!0,...c,shell:!1}]}});var Cl,Fl,Zg,eS,tS,Ml,Uo=f(()=>{"use strict";Cl=require("v8"),Fl=({ipcInput:e,ipc:t,serialization:r})=>{if(e!==void 0){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");tS[r](e)}},Zg=e=>{try{(0,Cl.serialize)(e)}catch(t){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:t})}},eS=e=>{try{JSON.stringify(e)}catch(t){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:t})}},tS={advanced:Zg,json:eS},Ml=async(e,t)=>{t!==void 0&&await e.sendMessage(t)}});var $l,rS,Q,jo,nS,Ll,zr,We=f(()=>{"use strict";$l=({encoding:e})=>{if(jo.has(e))return;let t=nS(e);if(t!==void 0)throw new TypeError(`Invalid option \`encoding: ${zr(e)}\`.
25
+ Please rename it to ${zr(t)}.`);let r=[...jo].map(n=>zr(n)).join(", ");throw new TypeError(`Invalid option \`encoding: ${zr(e)}\`.
26
+ Please rename it to one of: ${r}.`)},rS=new Set(["utf8","utf16le"]),Q=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),jo=new Set([...rS,...Q]),nS=e=>{if(e===null)return"buffer";if(typeof e!="string")return;let t=e.toLowerCase();if(t in Ll)return Ll[t];if(jo.has(t))return t},Ll={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},zr=e=>typeof e=="string"?`"${e}"`:String(e)});var kl,Bl,_l,Nl,Ul,jl,Go=f(()=>{"use strict";kl=require("fs"),Bl=L(require("path"),1),_l=L(require("process"),1);rt();Nl=(e=Ul())=>{let t=tt(e,'The "cwd" option');return Bl.default.resolve(t)},Ul=()=>{try{return _l.default.cwd()}catch(e){throw e.message=`The current directory does not exist.
27
+ ${e.message}`,e}},jl=(e,t)=>{if(t===Ul())return e;let r;try{r=(0,kl.statSync)(t)}catch(n){return`The "cwd" option is invalid: ${t}.
28
28
  ${n.message}
29
29
  ${e}`}return r.isDirectory()?e:`The "cwd" option is not a directory: ${t}.
30
- ${e}`}});var jl,Go,Gl,zr,rS,nS,qo=f(()=>{"use strict";jl=G(require("path"),1),Go=G(require("process"),1),Gl=G(sc(),1);pc();Or();Pt();Ao();ko();$o();_o();No();qe();jo();tt();be();zr=(e,t,r)=>{r.cwd=_l(r.cwd);let[n,o,i]=Rl(e,t,r),{command:s,args:a,options:c}=Gl.default._parse(n,o,i),u=Ys(c),l=rS(u);return Il(l),Ll(l),Cl(l),_c(l),Tl(l),l.shell=Qn(l.shell),l.env=nS(l),l.killSignal=Cc(l.killSignal),l.forceKillAfterDelay=kc(l.forceKillAfterDelay),l.lines=l.lines.map((d,m)=>d&&!X.has(l.encoding)&&l.buffer[m]),Go.default.platform==="win32"&&jl.default.basename(s,".exe")==="cmd"&&a.unshift("/q"),{file:s,commandArguments:a,options:l}},rS=({extendEnv:e=!0,preferLocal:t=!1,cwd:r,localDir:n=r,encoding:o="utf8",reject:i=!0,cleanup:s=!0,all:a=!1,windowsHide:c=!0,killSignal:u="SIGTERM",forceKillAfterDelay:l=!0,gracefulCancel:d=!1,ipcInput:m,ipc:p=m!==void 0||d,serialization:h="advanced",...y})=>({...y,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:o,reject:i,cleanup:s,all:a,windowsHide:c,killSignal:u,forceKillAfterDelay:l,gracefulCancel:d,ipcInput:m,ipc:p,serialization:h}),nS=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:o,nodePath:i})=>{let s=t?{...Go.default.env,...e}:e;return r||n?mc({env:s,cwd:o,execPath:i,preferLocal:r,addExecPath:n}):s}});var Vr,Wo=f(()=>{"use strict";Vr=(e,t,r)=>r.shell&&t.length>0?[[e,...t].join(" "),[],r]:[e,t,r]});function mt(e){if(typeof e=="string")return oS(e);if(!(ArrayBuffer.isView(e)&&e.BYTES_PER_ELEMENT===1))throw new Error("Input must be a string or a Uint8Array");return iS(e)}var oS,iS,ql,sS,Wl,aS,zo=f(()=>{"use strict";oS=e=>e.at(-1)===ql?e.slice(0,e.at(-2)===Wl?-2:-1):e,iS=e=>e.at(-1)===sS?e.subarray(0,e.at(-2)===aS?-2:-1):e,ql=`
31
- `,sS=ql.codePointAt(0),Wl="\r",aS=Wl.codePointAt(0)});function ie(e,{checkOpen:t=!0}={}){return e!==null&&typeof e=="object"&&(e.writable||e.readable||!t||e.writable===void 0&&e.readable===void 0)&&typeof e.pipe=="function"}function Vo(e,{checkOpen:t=!0}={}){return ie(e,{checkOpen:t})&&(e.writable||!t)&&typeof e.write=="function"&&typeof e.end=="function"&&typeof e.writable=="boolean"&&typeof e.writableObjectMode=="boolean"&&typeof e.destroy=="function"&&typeof e.destroyed=="boolean"}function We(e,{checkOpen:t=!0}={}){return ie(e,{checkOpen:t})&&(e.readable||!t)&&typeof e.read=="function"&&typeof e.readable=="boolean"&&typeof e.readableObjectMode=="boolean"&&typeof e.destroy=="function"&&typeof e.destroyed=="boolean"}function Yo(e,t){return Vo(e,t)&&We(e,t)}var ze=f(()=>{"use strict"});function zl(){return this[Jo].next()}function Vl(e){return this[Jo].return(e)}function Ko({preventCancel:e=!1}={}){let t=this.getReader(),r=new Ho(t,e),n=Object.create(lS);return n[Jo]=r,n}var cS,Ho,Jo,lS,Yl=f(()=>{"use strict";cS=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Ho=class{#t;#r;#e=!1;#n=void 0;constructor(t,r){this.#t=t,this.#r=r}next(){let t=()=>this.#i();return this.#n=this.#n?this.#n.then(t,t):t(),this.#n}return(t){let r=()=>this.#o(t);return this.#n?this.#n.then(r,r):r()}async#i(){if(this.#e)return{done:!0,value:void 0};let t;try{t=await this.#t.read()}catch(r){throw this.#n=void 0,this.#e=!0,this.#t.releaseLock(),r}return t.done&&(this.#n=void 0,this.#e=!0,this.#t.releaseLock()),t}async#o(t){if(this.#e)return{done:!0,value:t};if(this.#e=!0,!this.#r){let r=this.#t.cancel(t);return this.#t.releaseLock(),await r,{done:!0,value:t}}return this.#t.releaseLock(),{done:!0,value:t}}},Jo=Symbol();Object.defineProperty(zl,"name",{value:"next"});Object.defineProperty(Vl,"name",{value:"return"});lS=Object.create(cS,{next:{enumerable:!0,configurable:!0,writable:!0,value:zl},return:{enumerable:!0,configurable:!0,writable:!0,value:Vl}})});var Hl=f(()=>{"use strict"});var Jl=f(()=>{"use strict";Yl();Hl()});var Kl,uS,fS,dS,kt,Xo=f(()=>{"use strict";ze();Jl();Kl=e=>{if(We(e,{checkOpen:!1})&&kt.on!==void 0)return fS(e);if(typeof e?.[Symbol.asyncIterator]=="function")return e;if(uS.call(e)==="[object ReadableStream]")return Ko.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:uS}=Object.prototype,fS=async function*(e){let t=new AbortController,r={};dS(e,t,r);try{for await(let[n]of kt.on(e,"data",{signal:t.signal}))yield n}catch(n){if(r.error!==void 0)throw r.error;if(!t.signal.aborted)throw n}finally{e.destroy()}},dS=async(e,t,r)=>{try{await kt.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(n){r.error=n}finally{t.abort()}},kt={}});var pt,mS,Zl,Xl,pS,Ql,fe,$t=f(()=>{"use strict";Xo();pt=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:c=Number.POSITIVE_INFINITY}={})=>{let u=Kl(e),l=t();l.length=0;try{for await(let d of u){let m=pS(d),p=r[m](d,l);Zl({convertedChunk:p,state:l,getSize:n,truncateChunk:o,addChunk:i,maxBuffer:c})}return mS({state:l,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:c}),a(l)}catch(d){let m=typeof d=="object"&&d!==null?d:new Error(d);throw m.bufferedData=a(l),m}},mS=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:o,maxBuffer:i})=>{let s=o(e);s!==void 0&&Zl({convertedChunk:s,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:i})},Zl=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:o,maxBuffer:i})=>{let s=r(e),a=t.length+s;if(a<=i){Xl(e,t,o,a);return}let c=n(e,i-t.length);throw c!==void 0&&Xl(c,t,o,i),new fe},Xl=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},pS=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let r=Ql.call(e);return r==="[object ArrayBuffer]"?"arrayBuffer":r==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Ql.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Ql}=Object.prototype,fe=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}});var xe,Bt,Yr,Hr,Jr,Kr=f(()=>{"use strict";xe=e=>e,Bt=()=>{},Yr=({contents:e})=>e,Hr=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Jr=e=>e.length});async function Xr(e,t){return pt(e,SS,t)}var hS,yS,gS,SS,eu=f(()=>{"use strict";$t();Kr();hS=()=>({contents:[]}),yS=()=>1,gS=(e,{contents:t})=>(t.push(e),t),SS={init:hS,convertChunk:{string:xe,buffer:xe,arrayBuffer:xe,dataView:xe,typedArray:xe,others:xe},getSize:yS,truncateChunk:Bt,addChunk:gS,getFinalChunk:Bt,finalize:Yr}});async function Qr(e,t){return pt(e,AS,t)}var wS,bS,xS,tu,ru,ES,TS,OS,DS,ou,nu,IS,iu,AS,su=f(()=>{"use strict";$t();Kr();wS=()=>({contents:new ArrayBuffer(0)}),bS=e=>xS.encode(e),xS=new TextEncoder,tu=e=>new Uint8Array(e),ru=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),ES=(e,t)=>e.slice(0,t),TS=(e,{contents:t,length:r},n)=>{let o=iu()?DS(t,n):OS(t,n);return new Uint8Array(o).set(e,r),o},OS=(e,t)=>{if(t<=e.byteLength)return e;let r=new ArrayBuffer(ou(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},DS=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let r=new ArrayBuffer(t,{maxByteLength:ou(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},ou=e=>nu**Math.ceil(Math.log(e)/Math.log(nu)),nu=2,IS=({contents:e,length:t})=>iu()?e:e.slice(0,t),iu=()=>"resize"in ArrayBuffer.prototype,AS={init:wS,convertChunk:{string:bS,buffer:tu,arrayBuffer:tu,dataView:ru,typedArray:ru,others:Hr},getSize:Jr,truncateChunk:ES,addChunk:TS,getFinalChunk:Bt,finalize:IS}});async function en(e,t){return pt(e,FS,t)}var vS,Zr,RS,PS,CS,FS,au=f(()=>{"use strict";$t();Kr();vS=()=>({contents:"",textDecoder:new TextDecoder}),Zr=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),RS=(e,{contents:t})=>t+e,PS=(e,t)=>e.slice(0,t),CS=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},FS={init:vS,convertChunk:{string:xe,buffer:Zr,arrayBuffer:Zr,dataView:Zr,typedArray:Zr,others:Hr},getSize:Jr,truncateChunk:PS,addChunk:RS,getFinalChunk:CS,finalize:Yr}});var cu=f(()=>{"use strict";eu();su();au();$t()});var lu,uu,tn=f(()=>{"use strict";lu=require("events"),uu=require("stream/promises");Xo();cu();Object.assign(kt,{on:lu.on,finished:uu.finished})});var fu,MS,du,mu,LS,pu,hu,rn,Ve=f(()=>{"use strict";tn();Se();be();fu=({error:e,stream:t,readableObjectMode:r,lines:n,encoding:o,fdNumber:i})=>{if(!(e instanceof fe))throw e;if(i==="all")return e;let s=MS(r,n,o);throw e.maxBufferInfo={fdNumber:i,unit:s},t.destroy(),e},MS=(e,t,r)=>e?"objects":t?"lines":r==="buffer"?"bytes":"characters",du=(e,t,r)=>{if(t.length!==r)return;let n=new fe;throw n.maxBufferInfo={fdNumber:"ipc"},n},mu=(e,t)=>{let{streamName:r,threshold:n,unit:o}=LS(e,t);return`Command's ${r} was larger than ${n} ${o}`},LS=(e,t)=>{if(e?.maxBufferInfo===void 0)return{streamName:"output",threshold:t[1],unit:"bytes"};let{maxBufferInfo:{fdNumber:r,unit:n}}=e;delete e.maxBufferInfo;let o=we(t,r);return r==="ipc"?{streamName:"IPC output",threshold:o,unit:"messages"}:{streamName:cr(r),threshold:o,unit:n}},pu=(e,t,r)=>e?.code==="ENOBUFS"&&t!==null&&t.some(n=>n!==null&&n.length>rn(r)),hu=(e,t,r)=>{if(!t)return e;let n=rn(r);return e.length>n?e.slice(0,n):e},rn=([,e])=>e});var gu,Su,kS,$S,BS,_S,NS,yu,wu=f(()=>{"use strict";gu=require("util");zo();K();jo();fr();Ve();Pt();Ae();Su=({stdio:e,all:t,ipcOutput:r,originalError:n,signal:o,signalDescription:i,exitCode:s,escapedCommand:a,timedOut:c,isCanceled:u,isGracefullyCanceled:l,isMaxBuffer:d,isForcefullyTerminated:m,forceKillAfterDelay:p,killSignal:h,maxBuffer:y,timeout:w,cwd:S})=>{let T=n?.code,D=kS({originalError:n,timedOut:c,timeout:w,isMaxBuffer:d,maxBuffer:y,errorCode:T,signal:o,signalDescription:i,exitCode:s,isCanceled:u,isGracefullyCanceled:l,isForcefullyTerminated:m,forceKillAfterDelay:p,killSignal:h}),k=BS(n,S),Q=k===void 0?"":`
32
- ${k}`,te=`${D}: ${a}${Q}`,he=t===void 0?[e[2],e[1]]:[t],ae=[te,...he,...e.slice(3),r.map(g=>_S(g)).join(`
33
- `)].map(g=>vt(mt(NS(g)))).filter(Boolean).join(`
30
+ ${e}`}});var Gl,qo,ql,Vr,oS,iS,Wo=f(()=>{"use strict";Gl=L(require("path"),1),qo=L(require("process"),1),ql=L(ac(),1);hc();Dr();Ct();Ao();ko();Bo();No();Uo();We();Go();rt();be();Vr=(e,t,r)=>{r.cwd=Nl(r.cwd);let[n,o,i]=Pl(e,t,r),{command:s,args:a,options:l}=ql.default._parse(n,o,i),u=Hs(l),c=oS(u);return vl(c),$l(c),Fl(c),Nc(c),Ol(c),c.shell=Zn(c.shell),c.env=iS(c),c.killSignal=Fc(c.killSignal),c.forceKillAfterDelay=kc(c.forceKillAfterDelay),c.lines=c.lines.map((d,m)=>d&&!Q.has(c.encoding)&&c.buffer[m]),qo.default.platform==="win32"&&Gl.default.basename(s,".exe")==="cmd"&&a.unshift("/q"),{file:s,commandArguments:a,options:c}},oS=({extendEnv:e=!0,preferLocal:t=!1,cwd:r,localDir:n=r,encoding:o="utf8",reject:i=!0,cleanup:s=!0,all:a=!1,windowsHide:l=!0,killSignal:u="SIGTERM",forceKillAfterDelay:c=!0,gracefulCancel:d=!1,ipcInput:m,ipc:p=m!==void 0||d,serialization:h="advanced",...y})=>({...y,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:o,reject:i,cleanup:s,all:a,windowsHide:l,killSignal:u,forceKillAfterDelay:c,gracefulCancel:d,ipcInput:m,ipc:p,serialization:h}),iS=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:o,nodePath:i})=>{let s=t?{...qo.default.env,...e}:e;return r||n?pc({env:s,cwd:o,execPath:i,preferLocal:r,addExecPath:n}):s}});var Yr,zo=f(()=>{"use strict";Yr=(e,t,r)=>r.shell&&t.length>0?[[e,...t].join(" "),[],r]:[e,t,r]});function pt(e){if(typeof e=="string")return sS(e);if(!(ArrayBuffer.isView(e)&&e.BYTES_PER_ELEMENT===1))throw new Error("Input must be a string or a Uint8Array");return aS(e)}var sS,aS,Wl,cS,zl,lS,Vo=f(()=>{"use strict";sS=e=>e.at(-1)===Wl?e.slice(0,e.at(-2)===zl?-2:-1):e,aS=e=>e.at(-1)===cS?e.subarray(0,e.at(-2)===lS?-2:-1):e,Wl=`
31
+ `,cS=Wl.codePointAt(0),zl="\r",lS=zl.codePointAt(0)});function se(e,{checkOpen:t=!0}={}){return e!==null&&typeof e=="object"&&(e.writable||e.readable||!t||e.writable===void 0&&e.readable===void 0)&&typeof e.pipe=="function"}function Yo(e,{checkOpen:t=!0}={}){return se(e,{checkOpen:t})&&(e.writable||!t)&&typeof e.write=="function"&&typeof e.end=="function"&&typeof e.writable=="boolean"&&typeof e.writableObjectMode=="boolean"&&typeof e.destroy=="function"&&typeof e.destroyed=="boolean"}function ze(e,{checkOpen:t=!0}={}){return se(e,{checkOpen:t})&&(e.readable||!t)&&typeof e.read=="function"&&typeof e.readable=="boolean"&&typeof e.readableObjectMode=="boolean"&&typeof e.destroy=="function"&&typeof e.destroyed=="boolean"}function Ho(e,t){return Yo(e,t)&&ze(e,t)}var Ve=f(()=>{"use strict"});function Vl(){return this[Ko].next()}function Yl(e){return this[Ko].return(e)}function Xo({preventCancel:e=!1}={}){let t=this.getReader(),r=new Jo(t,e),n=Object.create(fS);return n[Ko]=r,n}var uS,Jo,Ko,fS,Hl=f(()=>{"use strict";uS=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Jo=class{#t;#r;#e=!1;#n=void 0;constructor(t,r){this.#t=t,this.#r=r}next(){let t=()=>this.#i();return this.#n=this.#n?this.#n.then(t,t):t(),this.#n}return(t){let r=()=>this.#o(t);return this.#n?this.#n.then(r,r):r()}async#i(){if(this.#e)return{done:!0,value:void 0};let t;try{t=await this.#t.read()}catch(r){throw this.#n=void 0,this.#e=!0,this.#t.releaseLock(),r}return t.done&&(this.#n=void 0,this.#e=!0,this.#t.releaseLock()),t}async#o(t){if(this.#e)return{done:!0,value:t};if(this.#e=!0,!this.#r){let r=this.#t.cancel(t);return this.#t.releaseLock(),await r,{done:!0,value:t}}return this.#t.releaseLock(),{done:!0,value:t}}},Ko=Symbol();Object.defineProperty(Vl,"name",{value:"next"});Object.defineProperty(Yl,"name",{value:"return"});fS=Object.create(uS,{next:{enumerable:!0,configurable:!0,writable:!0,value:Vl},return:{enumerable:!0,configurable:!0,writable:!0,value:Yl}})});var Jl=f(()=>{"use strict"});var Kl=f(()=>{"use strict";Hl();Jl()});var Xl,dS,mS,pS,kt,Qo=f(()=>{"use strict";Ve();Kl();Xl=e=>{if(ze(e,{checkOpen:!1})&&kt.on!==void 0)return mS(e);if(typeof e?.[Symbol.asyncIterator]=="function")return e;if(dS.call(e)==="[object ReadableStream]")return Xo.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:dS}=Object.prototype,mS=async function*(e){let t=new AbortController,r={};pS(e,t,r);try{for await(let[n]of kt.on(e,"data",{signal:t.signal}))yield n}catch(n){if(r.error!==void 0)throw r.error;if(!t.signal.aborted)throw n}finally{e.destroy()}},pS=async(e,t,r)=>{try{await kt.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(n){r.error=n}finally{t.abort()}},kt={}});var ht,hS,eu,Ql,yS,Zl,de,Bt=f(()=>{"use strict";Qo();ht=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:l=Number.POSITIVE_INFINITY}={})=>{let u=Xl(e),c=t();c.length=0;try{for await(let d of u){let m=yS(d),p=r[m](d,c);eu({convertedChunk:p,state:c,getSize:n,truncateChunk:o,addChunk:i,maxBuffer:l})}return hS({state:c,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:l}),a(c)}catch(d){let m=typeof d=="object"&&d!==null?d:new Error(d);throw m.bufferedData=a(c),m}},hS=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:o,maxBuffer:i})=>{let s=o(e);s!==void 0&&eu({convertedChunk:s,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:i})},eu=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:o,maxBuffer:i})=>{let s=r(e),a=t.length+s;if(a<=i){Ql(e,t,o,a);return}let l=n(e,i-t.length);throw l!==void 0&&Ql(l,t,o,i),new de},Ql=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},yS=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let r=Zl.call(e);return r==="[object ArrayBuffer]"?"arrayBuffer":r==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Zl.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Zl}=Object.prototype,de=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}});var xe,_t,Hr,Jr,Kr,Xr=f(()=>{"use strict";xe=e=>e,_t=()=>{},Hr=({contents:e})=>e,Jr=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Kr=e=>e.length});async function Qr(e,t){return ht(e,bS,t)}var gS,SS,wS,bS,tu=f(()=>{"use strict";Bt();Xr();gS=()=>({contents:[]}),SS=()=>1,wS=(e,{contents:t})=>(t.push(e),t),bS={init:gS,convertChunk:{string:xe,buffer:xe,arrayBuffer:xe,dataView:xe,typedArray:xe,others:xe},getSize:SS,truncateChunk:_t,addChunk:wS,getFinalChunk:_t,finalize:Hr}});async function Zr(e,t){return ht(e,RS,t)}var xS,ES,TS,ru,nu,OS,DS,IS,vS,iu,ou,AS,su,RS,au=f(()=>{"use strict";Bt();Xr();xS=()=>({contents:new ArrayBuffer(0)}),ES=e=>TS.encode(e),TS=new TextEncoder,ru=e=>new Uint8Array(e),nu=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),OS=(e,t)=>e.slice(0,t),DS=(e,{contents:t,length:r},n)=>{let o=su()?vS(t,n):IS(t,n);return new Uint8Array(o).set(e,r),o},IS=(e,t)=>{if(t<=e.byteLength)return e;let r=new ArrayBuffer(iu(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},vS=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let r=new ArrayBuffer(t,{maxByteLength:iu(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},iu=e=>ou**Math.ceil(Math.log(e)/Math.log(ou)),ou=2,AS=({contents:e,length:t})=>su()?e:e.slice(0,t),su=()=>"resize"in ArrayBuffer.prototype,RS={init:xS,convertChunk:{string:ES,buffer:ru,arrayBuffer:ru,dataView:nu,typedArray:nu,others:Jr},getSize:Kr,truncateChunk:OS,addChunk:DS,getFinalChunk:_t,finalize:AS}});async function tn(e,t){return ht(e,LS,t)}var PS,en,CS,FS,MS,LS,cu=f(()=>{"use strict";Bt();Xr();PS=()=>({contents:"",textDecoder:new TextDecoder}),en=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),CS=(e,{contents:t})=>t+e,FS=(e,t)=>e.slice(0,t),MS=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},LS={init:PS,convertChunk:{string:xe,buffer:en,arrayBuffer:en,dataView:en,typedArray:en,others:Jr},getSize:Kr,truncateChunk:FS,addChunk:CS,getFinalChunk:MS,finalize:Hr}});var lu=f(()=>{"use strict";tu();au();cu();Bt()});var uu,fu,rn=f(()=>{"use strict";uu=require("events"),fu=require("stream/promises");Qo();lu();Object.assign(kt,{on:uu.on,finished:fu.finished})});var du,$S,mu,pu,kS,hu,yu,nn,Ye=f(()=>{"use strict";rn();Se();be();du=({error:e,stream:t,readableObjectMode:r,lines:n,encoding:o,fdNumber:i})=>{if(!(e instanceof de))throw e;if(i==="all")return e;let s=$S(r,n,o);throw e.maxBufferInfo={fdNumber:i,unit:s},t.destroy(),e},$S=(e,t,r)=>e?"objects":t?"lines":r==="buffer"?"bytes":"characters",mu=(e,t,r)=>{if(t.length!==r)return;let n=new de;throw n.maxBufferInfo={fdNumber:"ipc"},n},pu=(e,t)=>{let{streamName:r,threshold:n,unit:o}=kS(e,t);return`Command's ${r} was larger than ${n} ${o}`},kS=(e,t)=>{if(e?.maxBufferInfo===void 0)return{streamName:"output",threshold:t[1],unit:"bytes"};let{maxBufferInfo:{fdNumber:r,unit:n}}=e;delete e.maxBufferInfo;let o=we(t,r);return r==="ipc"?{streamName:"IPC output",threshold:o,unit:"messages"}:{streamName:lr(r),threshold:o,unit:n}},hu=(e,t,r)=>e?.code==="ENOBUFS"&&t!==null&&t.some(n=>n!==null&&n.length>nn(r)),yu=(e,t,r)=>{if(!t)return e;let n=nn(r);return e.length>n?e.slice(0,n):e},nn=([,e])=>e});var Su,wu,BS,_S,NS,US,jS,gu,bu=f(()=>{"use strict";Su=require("util");Vo();X();Go();dr();Ye();Ct();ve();wu=({stdio:e,all:t,ipcOutput:r,originalError:n,signal:o,signalDescription:i,exitCode:s,escapedCommand:a,timedOut:l,isCanceled:u,isGracefullyCanceled:c,isMaxBuffer:d,isForcefullyTerminated:m,forceKillAfterDelay:p,killSignal:h,maxBuffer:y,timeout:w,cwd:S})=>{let T=n?.code,D=BS({originalError:n,timedOut:l,timeout:w,isMaxBuffer:d,maxBuffer:y,errorCode:T,signal:o,signalDescription:i,exitCode:s,isCanceled:u,isGracefullyCanceled:c,isForcefullyTerminated:m,forceKillAfterDelay:p,killSignal:h}),k=NS(n,S),Z=k===void 0?"":`
32
+ ${k}`,re=`${D}: ${a}${Z}`,he=t===void 0?[e[2],e[1]]:[t],ce=[re,...he,...e.slice(3),r.map(g=>US(g)).join(`
33
+ `)].map(g=>Rt(pt(jS(g)))).filter(Boolean).join(`
34
34
 
35
- `);return{originalMessage:k,shortMessage:te,message:ae}},kS=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:c,isCanceled:u,isGracefullyCanceled:l,isForcefullyTerminated:d,forceKillAfterDelay:m,killSignal:p})=>{let h=$S(d,m);return t?`Command timed out after ${r} milliseconds${h}`:l?s===void 0?`Command was gracefully canceled with exit code ${c}`:d?`Command was gracefully canceled${h}`:`Command was gracefully canceled with ${s} (${a})`:u?`Command was canceled${h}`:n?`${mu(e,o)}${h}`:i!==void 0?`Command failed with ${i}${h}`:d?`Command was killed with ${p} (${Tr(p)})${h}`:s!==void 0?`Command was killed with ${s} (${a})`:c!==void 0?`Command failed with exit code ${c}`:"Command failed"},$S=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",BS=(e,t)=>{if(e instanceof ne)return;let r=gc(e)?e.originalMessage:String(e?.message??e),n=vt(Ul(r,t));return n===""?void 0:n},_S=e=>typeof e=="string"?e:(0,gu.inspect)(e),NS=e=>Array.isArray(e)?e.map(t=>mt(yu(t))).filter(Boolean).join(`
36
- `):yu(e),yu=e=>typeof e=="string"?e:L(e)?ir(e):""});var nn,ht,_t,US,bu,jS,Nt=f(()=>{"use strict";Pt();gr();Ae();wu();nn=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:o,options:{cwd:i},startTime:s})=>bu({command:e,escapedCommand:t,cwd:i,durationMs:lo(s),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:o,pipedFrom:[]}),ht=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:s})=>_t({error:e,command:t,escapedCommand:r,startTime:i,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:o,isSync:s}),_t=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:u,signal:l,stdio:d,all:m,ipcOutput:p,options:{timeoutDuration:h,timeout:y=h,forceKillAfterDelay:w,killSignal:S,cwd:T,maxBuffer:D},isSync:k})=>{let{exitCode:Q,signal:te,signalDescription:he}=jS(u,l),{originalMessage:ae,shortMessage:g,message:O}=Su({stdio:d,all:m,ipcOutput:p,originalError:e,signal:te,signalDescription:he,exitCode:Q,escapedCommand:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,forceKillAfterDelay:w,killSignal:S,maxBuffer:D,timeout:y,cwd:T}),E=hc(e,O,k);return Object.assign(E,US({error:E,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:Q,signal:te,signalDescription:he,stdio:d,all:m,ipcOutput:p,cwd:T,originalMessage:ae,shortMessage:g})),E},US=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:u,signal:l,signalDescription:d,stdio:m,all:p,ipcOutput:h,cwd:y,originalMessage:w,shortMessage:S})=>bu({shortMessage:S,originalMessage:w,command:t,escapedCommand:r,cwd:y,durationMs:lo(n),failed:!0,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isTerminated:l!==void 0,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:u,signal:l,signalDescription:d,code:e.cause?.code,stdout:m[1],stderr:m[2],all:p,stdio:m,ipcOutput:h,pipedFrom:[]}),bu=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)),jS=(e,t)=>{let r=e===null?void 0:e,n=t===null?void 0:t,o=n===void 0?void 0:Tr(t);return{exitCode:r,signal:n,signalDescription:o}}});function GS(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(xu(e*1e3)%1e3),nanoseconds:Math.trunc(xu(e*1e6)%1e3)}}function qS(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function Qo(e){switch(typeof e){case"number":{if(Number.isFinite(e))return GS(e);break}case"bigint":return qS(e)}throw new TypeError("Expected a finite number or bigint")}var xu,Eu=f(()=>{"use strict";xu=e=>Number.isFinite(e)?e:0});function Zo(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],i=(l,d)=>{let m=Math.floor(l*10**d+VS);return(Math.round(m)/10**d).toFixed(d)},s=(l,d,m,p)=>{if(!((o.length===0||!t.colonNotation)&&WS(l)&&!(t.colonNotation&&m==="m"))){if(p??=String(l),t.colonNotation){let h=p.includes(".")?p.split(".")[0].length:p.length,y=o.length>0?2:1;p="0".repeat(Math.max(0,y-h))+p}else p+=t.verbose?" "+zS(d,l):m;o.push(p)}},a=Qo(e),c=BigInt(a.days);if(t.hideYearAndDays?s(BigInt(c)*24n+BigInt(a.hours),"hour","h"):(t.hideYear?s(c,"day","d"):(s(c/365n,"year","y"),s(c%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){let l=Number(a.seconds),d=Number(a.milliseconds),m=Number(a.microseconds),p=Number(a.nanoseconds);if(s(l,"second","s"),t.formatSubMilliseconds)s(d,"millisecond","ms"),s(m,"microsecond","\xB5s"),s(p,"nanosecond","ns");else{let h=d+m/1e3+p/1e6,y=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,w=h>=1?Math.round(h):Math.ceil(h),S=y?h.toFixed(y):w;s(Number.parseFloat(S),"millisecond","ms",S)}}else{let l=(r?Number(e%YS):e)/1e3%60,d=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,m=i(l,d),p=t.keepDecimalsOnWholeSeconds?m:m.replace(/\.0+$/,"");s(Number.parseFloat(p),"second","s",p)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let u=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(u)}var WS,zS,VS,YS,Tu=f(()=>{"use strict";Eu();WS=e=>e===0||e===0n,zS=(e,t)=>t===1||t===1n?e:`${e}s`,VS=1e-7,YS=24n*60n*60n*1000n});var Ou,Du=f(()=>{"use strict";ot();Ou=(e,t)=>{e.failed&&ce({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})}});var Iu,HS,Au=f(()=>{"use strict";Tu();De();ot();Du();Iu=(e,t)=>{rt(t)&&(Ou(e,t),HS(e,t))},HS=(e,t)=>{let r=`(done in ${Zo(e.durationMs)})`;ce({type:"duration",verboseMessage:r,verboseInfo:t,result:e})}});var yt,on=f(()=>{"use strict";Au();yt=(e,t,{reject:r})=>{if(Iu(e,t),e.failed&&r)throw e;return e}});var Pu,JS,KS,Cu,Fu,vu,XS,ei,Ru,Ye,Mu,QS,sn,Lu,ZS,ew,ti,ku,tw,$u,an,rw,ri,nw,ow,Bu,ee,cn,ni,_u,Nu,Ce,z=f(()=>{"use strict";ze();ye();K();Pu=(e,t)=>Ye(e)?"asyncGenerator":Mu(e)?"generator":sn(e)?"fileUrl":ZS(e)?"filePath":rw(e)?"webStream":ie(e,{checkOpen:!1})?"native":L(e)?"uint8Array":nw(e)?"asyncIterable":ow(e)?"iterable":ri(e)?Cu({transform:e},t):QS(e)?JS(e,t):"native",JS=(e,t)=>Yo(e.transform,{checkOpen:!1})?KS(e,t):ri(e.transform)?Cu(e,t):XS(e,t),KS=(e,t)=>(Fu(e,t,"Duplex stream"),"duplex"),Cu=(e,t)=>(Fu(e,t,"web TransformStream"),"webTransform"),Fu=({final:e,binary:t,objectMode:r},n,o)=>{vu(e,`${n}.final`,o),vu(t,`${n}.binary`,o),ei(r,`${n}.objectMode`)},vu=(e,t,r)=>{if(e!==void 0)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},XS=({transform:e,final:t,binary:r,objectMode:n},o)=>{if(e!==void 0&&!Ru(e))throw new TypeError(`The \`${o}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(Yo(t,{checkOpen:!1}))throw new TypeError(`The \`${o}.final\` option must not be a Duplex stream.`);if(ri(t))throw new TypeError(`The \`${o}.final\` option must not be a web TransformStream.`);if(t!==void 0&&!Ru(t))throw new TypeError(`The \`${o}.final\` option must be a generator.`);return ei(r,`${o}.binary`),ei(n,`${o}.objectMode`),Ye(e)||Ye(t)?"asyncGenerator":"generator"},ei=(e,t)=>{if(e!==void 0&&typeof e!="boolean")throw new TypeError(`The \`${t}\` option must use a boolean.`)},Ru=e=>Ye(e)||Mu(e),Ye=e=>Object.prototype.toString.call(e)==="[object AsyncGeneratorFunction]",Mu=e=>Object.prototype.toString.call(e)==="[object GeneratorFunction]",QS=e=>M(e)&&(e.transform!==void 0||e.final!==void 0),sn=e=>Object.prototype.toString.call(e)==="[object URL]",Lu=e=>sn(e)&&e.protocol!=="file:",ZS=e=>M(e)&&Object.keys(e).length>0&&Object.keys(e).every(t=>ew.has(t))&&ti(e.file),ew=new Set(["file","append"]),ti=e=>typeof e=="string",ku=(e,t)=>e==="native"&&typeof t=="string"&&!tw.has(t),tw=new Set(["ipc","ignore","inherit","overlapped","pipe"]),$u=e=>Object.prototype.toString.call(e)==="[object ReadableStream]",an=e=>Object.prototype.toString.call(e)==="[object WritableStream]",rw=e=>$u(e)||an(e),ri=e=>$u(e?.readable)&&an(e?.writable),nw=e=>Bu(e)&&typeof e[Symbol.asyncIterator]=="function",ow=e=>Bu(e)&&typeof e[Symbol.iterator]=="function",Bu=e=>typeof e=="object"&&e!==null,ee=new Set(["generator","asyncGenerator","duplex","webTransform"]),cn=new Set(["fileUrl","filePath","fileNumber"]),ni=new Set(["fileUrl","filePath"]),_u=new Set([...ni,"webStream","nodeStream"]),Nu=new Set(["webTransform","duplex"]),Ce={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"}});var oi,iw,sw,Uu,ii=f(()=>{"use strict";z();oi=(e,t,r,n)=>n==="output"?iw(e,t,r):sw(e,t,r),iw=(e,t,r)=>{let n=t!==0&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},sw=(e,t,r)=>{let n=t===0?e===!0:r[t-1].value.readableObjectMode,o=t!==r.length-1&&(e??n);return{writableObjectMode:n,readableObjectMode:o}},Uu=(e,t)=>{let r=e.findLast(({type:n})=>ee.has(n));return r===void 0?!1:t==="input"?r.value.writableObjectMode:r.value.readableObjectMode}});var ju,aw,cw,lw,uw,fw,dw,Gu=f(()=>{"use strict";ye();qe();z();ii();ju=(e,t,r,n)=>[...e.filter(({type:o})=>!ee.has(o)),...aw(e,t,r,n)],aw=(e,t,r,{encoding:n})=>{let o=e.filter(({type:s})=>ee.has(s)),i=Array.from({length:o.length});for(let[s,a]of Object.entries(o))i[s]=cw({stdioItem:a,index:Number(s),newTransforms:i,optionName:t,direction:r,encoding:n});return dw(i,r)},cw=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:o,direction:i,encoding:s})=>t==="duplex"?lw({stdioItem:e,optionName:o}):t==="webTransform"?uw({stdioItem:e,index:r,newTransforms:n,direction:i}):fw({stdioItem:e,index:r,newTransforms:n,direction:i,encoding:s}),lw=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:o=n}},optionName:i})=>{if(o&&!n)throw new TypeError(`The \`${i}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!o&&n)throw new TypeError(`The \`${i}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:r,readableObjectMode:n}}},uw=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o})=>{let{transform:i,objectMode:s}=M(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:c}=oi(s,r,n,o);return{...e,value:{transform:i,writableObjectMode:a,readableObjectMode:c}}},fw=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o,encoding:i})=>{let{transform:s,final:a,binary:c=!1,preserveNewlines:u=!1,objectMode:l}=M(t)?t:{transform:t},d=c||X.has(i),{writableObjectMode:m,readableObjectMode:p}=oi(l,r,n,o);return{...e,value:{transform:s,final:a,binary:d,preserveNewlines:u,writableObjectMode:m,readableObjectMode:p}}},dw=(e,t)=>t==="input"?e.reverse():e});var ln,qu,mw,pw,gt,si,Wu,hw,yw,zu=f(()=>{"use strict";ln=G(require("process"),1);ze();z();qu=(e,t,r)=>{let n=e.map(o=>mw(o,t));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??yw},mw=({type:e,value:t},r)=>pw[r]??Wu[e](t),pw=["input","output","output"],gt=()=>{},si=()=>"input",Wu={generator:gt,asyncGenerator:gt,fileUrl:gt,filePath:gt,iterable:si,asyncIterable:si,uint8Array:si,webStream:e=>an(e)?"output":"input",nodeStream(e){return We(e,{checkOpen:!1})?Vo(e,{checkOpen:!1})?void 0:"input":"output"},webTransform:gt,duplex:gt,native(e){let t=hw(e);if(t!==void 0)return t;if(ie(e,{checkOpen:!1}))return Wu.nodeStream(e)}},hw=e=>{if([0,ln.default.stdin].includes(e))return"input";if([1,2,ln.default.stdout,ln.default.stderr].includes(e))return"output"},yw="output"});var Vu,Yu=f(()=>{"use strict";Vu=(e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e});var Hu,gw,Sw,Ju,ww,bw,Ku=f(()=>{"use strict";Se();Yu();De();Hu=({stdio:e,ipc:t,buffer:r,...n},o,i)=>{let s=gw(e,n).map((a,c)=>Ju(a,c));return i?ww(s,r,o):Vu(s,t)},gw=(e,t)=>{if(e===void 0)return Z.map(n=>t[n]);if(Sw(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Z.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return[e,e,e];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Z.length);return Array.from({length:r},(n,o)=>e[o])},Sw=e=>Z.some(t=>e[t]!==void 0),Ju=(e,t)=>Array.isArray(e)?e.map(r=>Ju(r,t)):e??(t>=Z.length?"ignore":"pipe"),ww=(e,t,r)=>e.map((n,o)=>!t[o]&&o!==0&&!nt(r,o)&&bw(n)?"ignore":n),bw=e=>e==="pipe"||Array.isArray(e)&&e.every(t=>t==="pipe")});var Qu,Zu,ef,xw,Ew,Tw,Ow,Xu,tf=f(()=>{"use strict";Qu=require("fs"),Zu=G(require("tty"),1);ze();Se();K();Re();ef=({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:o,isSync:i})=>!r||t!=="native"?e:i?xw({stdioItem:e,fdNumber:n,direction:o}):Ow({stdioItem:e,fdNumber:n}),xw=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:o})=>{let i=Ew({value:t,optionName:r,fdNumber:n,direction:o});if(i!==void 0)return i;if(ie(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},Ew=({value:e,optionName:t,fdNumber:r,direction:n})=>{let o=Tw(e,r);if(o!==void 0){if(n==="output")return{type:"fileNumber",value:o,optionName:t};if(Zu.default.isatty(o))throw new TypeError(`The \`${t}: ${Ar(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:ge((0,Qu.readFileSync)(o)),optionName:t}}},Tw=(e,t)=>{if(e==="inherit")return t;if(typeof e=="number")return e;let r=ar.indexOf(e);if(r!==-1)return r},Ow=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>t==="inherit"?{type:"nodeStream",value:Xu(n,t,r),optionName:r}:typeof t=="number"?{type:"nodeStream",value:Xu(t,t,r),optionName:r}:ie(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,Xu=(e,t,r)=>{let n=ar[e];if(n===void 0)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n}});var rf,Dw,Iw,Aw,vw,nf=f(()=>{"use strict";ze();K();z();rf=({input:e,inputFile:t},r)=>r===0?[...Dw(e),...Aw(t)]:[],Dw=e=>e===void 0?[]:[{type:Iw(e),value:e,optionName:"input"}],Iw=e=>{if(We(e,{checkOpen:!1}))return"nodeStream";if(typeof e=="string")return"string";if(L(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},Aw=e=>e===void 0?[]:[{...vw(e),optionName:"inputFile"}],vw=e=>{if(sn(e))return{type:"fileUrl",value:e};if(ti(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")}});var of,sf,Rw,Pw,af,Cw,Fw,cf,lf=f(()=>{"use strict";z();of=e=>e.filter((t,r)=>e.every((n,o)=>t.value!==n.value||r>=o||t.type==="generator"||t.type==="asyncGenerator")),sf=({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:o,isSync:i})=>{let s=Rw(o,e);if(s.length!==0){if(i){Pw({otherStdioItems:s,type:e,value:t,optionName:r,direction:n});return}if(_u.has(e))return af({otherStdioItems:s,type:e,value:t,optionName:r,direction:n});Nu.has(e)&&Fw({otherStdioItems:s,type:e,value:t,optionName:r})}},Rw=(e,t)=>e.flatMap(({direction:r,stdioItems:n})=>n.filter(o=>o.type===t).map(o=>({...o,direction:r}))),Pw=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{ni.has(t)&&af({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})},af=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{let i=e.filter(a=>Cw(a,r));if(i.length===0)return;let s=i.find(a=>a.direction!==o);return cf(s,n,t),o==="output"?i[0].stream:void 0},Cw=({type:e,value:t},r)=>e==="filePath"?t.file===r.file:e==="fileUrl"?t.href===r.href:t===r,Fw=({otherStdioItems:e,type:t,value:r,optionName:n})=>{let o=e.find(({value:{transform:i}})=>i===r.transform);cf(o,n,t)},cf=(e,t,r)=>{if(e!==void 0)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Ce[r]} that is the same.`)}});var un,Mw,Lw,kw,$w,Bw,_w,Nw,Uw,jw,Gw,qw,ai,Ww,fn=f(()=>{"use strict";Se();Gu();ii();z();zu();Ku();tf();nf();lf();un=(e,t,r,n)=>{let i=Hu(t,r,n).map((a,c)=>Mw({stdioOption:a,fdNumber:c,options:t,isSync:n})),s=jw({initialFileDescriptors:i,addProperties:e,options:t,isSync:n});return t.stdio=s.map(({stdioItems:a})=>Ww(a)),s},Mw=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{let o=cr(t),{stdioItems:i,isStdioArray:s}=Lw({stdioOption:e,fdNumber:t,options:r,optionName:o}),a=qu(i,t,o),c=i.map(d=>ef({stdioItem:d,isStdioArray:s,fdNumber:t,direction:a,isSync:n})),u=ju(c,o,a,r),l=Uu(u,a);return Uw(u,l),{direction:a,objectMode:l,stdioItems:u}},Lw=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{let i=[...(Array.isArray(e)?e:[e]).map(c=>kw(c,n)),...rf(r,t)],s=of(i),a=s.length>1;return $w(s,a,n),_w(s),{stdioItems:s,isStdioArray:a}},kw=(e,t)=>({type:Pu(e,t),value:e,optionName:t}),$w=(e,t,r)=>{if(e.length===0)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t){for(let{value:n,optionName:o}of e)if(Bw.has(n))throw new Error(`The \`${o}\` option must not include \`${n}\`.`)}},Bw=new Set(["ignore","ipc"]),_w=e=>{for(let t of e)Nw(t)},Nw=({type:e,value:t,optionName:r})=>{if(Lu(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.
37
- For example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(ku(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},Uw=(e,t)=>{if(!t)return;let r=e.find(({type:n})=>cn.has(n));if(r!==void 0)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},jw=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{let o=[];try{for(let i of e)o.push(Gw({fileDescriptor:i,fileDescriptors:o,addProperties:t,options:r,isSync:n}));return o}catch(i){throw ai(o),i}},Gw=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:o,options:i,isSync:s})=>{let a=r.map(c=>qw({stdioItem:c,addProperties:o,direction:e,options:i,fileDescriptors:n,isSync:s}));return{direction:e,objectMode:t,stdioItems:a}},qw=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:o,isSync:i})=>{let s=sf({stdioItem:e,direction:r,fileDescriptors:o,isSync:i});return s!==void 0?{...e,stream:s}:{...e,...t[r][e.type](e,n)}},ai=e=>{for(let{stdioItems:t}of e)for(let{stream:r}of t)r!==void 0&&!re(r)&&r.destroy()},Ww=e=>{if(e.length>1)return e.some(({value:n})=>n==="overlapped")?"overlapped":"pipe";let[{type:t,value:r}]=e;return t==="native"?r:"pipe"}});var ci,ff,de,zw,df,uf,Vw,mf=f(()=>{"use strict";ci=require("fs");K();fn();z();ff=(e,t)=>un(Vw,e,t,!0),de=({type:e,optionName:t})=>{df(t,Ce[e])},zw=({optionName:e,value:t})=>((t==="ipc"||t==="overlapped")&&df(e,`"${t}"`),{}),df=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},uf={generator(){},asyncGenerator:de,webStream:de,nodeStream:de,webTransform:de,duplex:de,asyncIterable:de,native:zw},Vw={input:{...uf,fileUrl:({value:e})=>({contents:[ge((0,ci.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[ge((0,ci.readFileSync)(e))]}),fileNumber:de,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...uf,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e,append:t}})=>({path:e,append:t}),fileNumber:({value:e})=>({path:e}),iterable:de,string:de,uint8Array:de}}});var Ee,li,Ut=f(()=>{"use strict";zo();Ee=(e,{stripFinalNewline:t},r)=>li(t,r)&&e!==void 0&&!Array.isArray(e)?mt(e):e,li=(e,t)=>t==="all"?e[1]||e[2]:e[t]});var dn,fi,pf,hf,Yw,Hw,Jw,yf,Kw,ui,Xw,Qw,Zw,mn=f(()=>{"use strict";dn=(e,t,r,n)=>e||r?void 0:hf(t,n),fi=(e,t,r)=>r?e.flatMap(n=>pf(n,t)):pf(e,t),pf=(e,t)=>{let{transform:r,final:n}=hf(t,{});return[...r(e),...n()]},hf=(e,t)=>(t.previousChunks="",{transform:Yw.bind(void 0,t,e),final:Jw.bind(void 0,t)}),Yw=function*(e,t,r){if(typeof r!="string"){yield r;return}let{previousChunks:n}=e,o=-1;for(let i=0;i<r.length;i+=1)if(r[i]===`
38
- `){let s=Hw(r,i,t,e),a=r.slice(o+1,i+1-s);n.length>0&&(a=ui(n,a),n=""),yield a,o=i}o!==r.length-1&&(n=ui(n,r.slice(o+1))),e.previousChunks=n},Hw=(e,t,r,n)=>r?0:(n.isWindowsNewline=t!==0&&e[t-1]==="\r",n.isWindowsNewline?2:1),Jw=function*({previousChunks:e}){e.length>0&&(yield e)},yf=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:Kw.bind(void 0,n)},Kw=function*({isWindowsNewline:e=!1},t){let{unixNewline:r,windowsNewline:n,LF:o,concatBytes:i}=typeof t=="string"?Xw:Zw;if(t.at(-1)===o){yield t;return}yield i(t,e?n:r)},ui=(e,t)=>`${e}${t}`,Xw={windowsNewline:`\r
35
+ `);return{originalMessage:k,shortMessage:re,message:ce}},BS=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:l,isCanceled:u,isGracefullyCanceled:c,isForcefullyTerminated:d,forceKillAfterDelay:m,killSignal:p})=>{let h=_S(d,m);return t?`Command timed out after ${r} milliseconds${h}`:c?s===void 0?`Command was gracefully canceled with exit code ${l}`:d?`Command was gracefully canceled${h}`:`Command was gracefully canceled with ${s} (${a})`:u?`Command was canceled${h}`:n?`${pu(e,o)}${h}`:i!==void 0?`Command failed with ${i}${h}`:d?`Command was killed with ${p} (${Or(p)})${h}`:s!==void 0?`Command was killed with ${s} (${a})`:l!==void 0?`Command failed with exit code ${l}`:"Command failed"},_S=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",NS=(e,t)=>{if(e instanceof oe)return;let r=Sc(e)?e.originalMessage:String(e?.message??e),n=Rt(jl(r,t));return n===""?void 0:n},US=e=>typeof e=="string"?e:(0,Su.inspect)(e),jS=e=>Array.isArray(e)?e.map(t=>pt(gu(t))).filter(Boolean).join(`
36
+ `):gu(e),gu=e=>typeof e=="string"?e:$(e)?sr(e):""});var on,yt,Nt,GS,xu,qS,Ut=f(()=>{"use strict";Ct();Sr();ve();bu();on=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:o,options:{cwd:i},startTime:s})=>xu({command:e,escapedCommand:t,cwd:i,durationMs:uo(s),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:o,pipedFrom:[]}),yt=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:s})=>Nt({error:e,command:t,escapedCommand:r,startTime:i,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:o,isSync:s}),Nt=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:u,signal:c,stdio:d,all:m,ipcOutput:p,options:{timeoutDuration:h,timeout:y=h,forceKillAfterDelay:w,killSignal:S,cwd:T,maxBuffer:D},isSync:k})=>{let{exitCode:Z,signal:re,signalDescription:he}=qS(u,c),{originalMessage:ce,shortMessage:g,message:O}=wu({stdio:d,all:m,ipcOutput:p,originalError:e,signal:re,signalDescription:he,exitCode:Z,escapedCommand:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,forceKillAfterDelay:w,killSignal:S,maxBuffer:D,timeout:y,cwd:T}),E=yc(e,O,k);return Object.assign(E,GS({error:E,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:Z,signal:re,signalDescription:he,stdio:d,all:m,ipcOutput:p,cwd:T,originalMessage:ce,shortMessage:g})),E},GS=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:u,signal:c,signalDescription:d,stdio:m,all:p,ipcOutput:h,cwd:y,originalMessage:w,shortMessage:S})=>xu({shortMessage:S,originalMessage:w,command:t,escapedCommand:r,cwd:y,durationMs:uo(n),failed:!0,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isTerminated:c!==void 0,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:u,signal:c,signalDescription:d,code:e.cause?.code,stdout:m[1],stderr:m[2],all:p,stdio:m,ipcOutput:h,pipedFrom:[]}),xu=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)),qS=(e,t)=>{let r=e===null?void 0:e,n=t===null?void 0:t,o=n===void 0?void 0:Or(t);return{exitCode:r,signal:n,signalDescription:o}}});function WS(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(Eu(e*1e3)%1e3),nanoseconds:Math.trunc(Eu(e*1e6)%1e3)}}function zS(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function Zo(e){switch(typeof e){case"number":{if(Number.isFinite(e))return WS(e);break}case"bigint":return zS(e)}throw new TypeError("Expected a finite number or bigint")}var Eu,Tu=f(()=>{"use strict";Eu=e=>Number.isFinite(e)?e:0});function ei(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],i=(c,d)=>{let m=Math.floor(c*10**d+HS);return(Math.round(m)/10**d).toFixed(d)},s=(c,d,m,p)=>{if(!((o.length===0||!t.colonNotation)&&VS(c)&&!(t.colonNotation&&m==="m"))){if(p??=String(c),t.colonNotation){let h=p.includes(".")?p.split(".")[0].length:p.length,y=o.length>0?2:1;p="0".repeat(Math.max(0,y-h))+p}else p+=t.verbose?" "+YS(d,c):m;o.push(p)}},a=Zo(e),l=BigInt(a.days);if(t.hideYearAndDays?s(BigInt(l)*24n+BigInt(a.hours),"hour","h"):(t.hideYear?s(l,"day","d"):(s(l/365n,"year","y"),s(l%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let c=Number(a.seconds),d=Number(a.milliseconds),m=Number(a.microseconds),p=Number(a.nanoseconds);if(s(c,"second","s"),t.formatSubMilliseconds)s(d,"millisecond","ms"),s(m,"microsecond","\xB5s"),s(p,"nanosecond","ns");else{let h=d+m/1e3+p/1e6,y=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,w=h>=1?Math.round(h):Math.ceil(h),S=y?h.toFixed(y):w;s(Number.parseFloat(S),"millisecond","ms",S)}}else{let c=(r?Number(e%JS):e)/1e3%60,d=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,m=i(c,d),p=t.keepDecimalsOnWholeSeconds?m:m.replace(/\.0+$/,"");s(Number.parseFloat(p),"second","s",p)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let u=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(u)}var VS,YS,HS,JS,Ou=f(()=>{"use strict";Tu();VS=e=>e===0||e===0n,YS=(e,t)=>t===1||t===1n?e:`${e}s`,HS=1e-7,JS=24n*60n*60n*1000n});var Du,Iu=f(()=>{"use strict";it();Du=(e,t)=>{e.failed&&le({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})}});var vu,KS,Au=f(()=>{"use strict";Ou();De();it();Iu();vu=(e,t)=>{nt(t)&&(Du(e,t),KS(e,t))},KS=(e,t)=>{let r=`(done in ${ei(e.durationMs)})`;le({type:"duration",verboseMessage:r,verboseInfo:t,result:e})}});var gt,sn=f(()=>{"use strict";Au();gt=(e,t,{reject:r})=>{if(vu(e,t),e.failed&&r)throw e;return e}});var Cu,XS,QS,Fu,Mu,Ru,ZS,ti,Pu,He,Lu,ew,an,$u,tw,rw,ri,ku,nw,Bu,cn,ow,ni,iw,sw,_u,te,ln,oi,Nu,Uu,Ce,z=f(()=>{"use strict";Ve();ye();X();Cu=(e,t)=>He(e)?"asyncGenerator":Lu(e)?"generator":an(e)?"fileUrl":tw(e)?"filePath":ow(e)?"webStream":se(e,{checkOpen:!1})?"native":$(e)?"uint8Array":iw(e)?"asyncIterable":sw(e)?"iterable":ni(e)?Fu({transform:e},t):ew(e)?XS(e,t):"native",XS=(e,t)=>Ho(e.transform,{checkOpen:!1})?QS(e,t):ni(e.transform)?Fu(e,t):ZS(e,t),QS=(e,t)=>(Mu(e,t,"Duplex stream"),"duplex"),Fu=(e,t)=>(Mu(e,t,"web TransformStream"),"webTransform"),Mu=({final:e,binary:t,objectMode:r},n,o)=>{Ru(e,`${n}.final`,o),Ru(t,`${n}.binary`,o),ti(r,`${n}.objectMode`)},Ru=(e,t,r)=>{if(e!==void 0)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},ZS=({transform:e,final:t,binary:r,objectMode:n},o)=>{if(e!==void 0&&!Pu(e))throw new TypeError(`The \`${o}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(Ho(t,{checkOpen:!1}))throw new TypeError(`The \`${o}.final\` option must not be a Duplex stream.`);if(ni(t))throw new TypeError(`The \`${o}.final\` option must not be a web TransformStream.`);if(t!==void 0&&!Pu(t))throw new TypeError(`The \`${o}.final\` option must be a generator.`);return ti(r,`${o}.binary`),ti(n,`${o}.objectMode`),He(e)||He(t)?"asyncGenerator":"generator"},ti=(e,t)=>{if(e!==void 0&&typeof e!="boolean")throw new TypeError(`The \`${t}\` option must use a boolean.`)},Pu=e=>He(e)||Lu(e),He=e=>Object.prototype.toString.call(e)==="[object AsyncGeneratorFunction]",Lu=e=>Object.prototype.toString.call(e)==="[object GeneratorFunction]",ew=e=>M(e)&&(e.transform!==void 0||e.final!==void 0),an=e=>Object.prototype.toString.call(e)==="[object URL]",$u=e=>an(e)&&e.protocol!=="file:",tw=e=>M(e)&&Object.keys(e).length>0&&Object.keys(e).every(t=>rw.has(t))&&ri(e.file),rw=new Set(["file","append"]),ri=e=>typeof e=="string",ku=(e,t)=>e==="native"&&typeof t=="string"&&!nw.has(t),nw=new Set(["ipc","ignore","inherit","overlapped","pipe"]),Bu=e=>Object.prototype.toString.call(e)==="[object ReadableStream]",cn=e=>Object.prototype.toString.call(e)==="[object WritableStream]",ow=e=>Bu(e)||cn(e),ni=e=>Bu(e?.readable)&&cn(e?.writable),iw=e=>_u(e)&&typeof e[Symbol.asyncIterator]=="function",sw=e=>_u(e)&&typeof e[Symbol.iterator]=="function",_u=e=>typeof e=="object"&&e!==null,te=new Set(["generator","asyncGenerator","duplex","webTransform"]),ln=new Set(["fileUrl","filePath","fileNumber"]),oi=new Set(["fileUrl","filePath"]),Nu=new Set([...oi,"webStream","nodeStream"]),Uu=new Set(["webTransform","duplex"]),Ce={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"}});var ii,aw,cw,ju,si=f(()=>{"use strict";z();ii=(e,t,r,n)=>n==="output"?aw(e,t,r):cw(e,t,r),aw=(e,t,r)=>{let n=t!==0&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},cw=(e,t,r)=>{let n=t===0?e===!0:r[t-1].value.readableObjectMode,o=t!==r.length-1&&(e??n);return{writableObjectMode:n,readableObjectMode:o}},ju=(e,t)=>{let r=e.findLast(({type:n})=>te.has(n));return r===void 0?!1:t==="input"?r.value.writableObjectMode:r.value.readableObjectMode}});var Gu,lw,uw,fw,dw,mw,pw,qu=f(()=>{"use strict";ye();We();z();si();Gu=(e,t,r,n)=>[...e.filter(({type:o})=>!te.has(o)),...lw(e,t,r,n)],lw=(e,t,r,{encoding:n})=>{let o=e.filter(({type:s})=>te.has(s)),i=Array.from({length:o.length});for(let[s,a]of Object.entries(o))i[s]=uw({stdioItem:a,index:Number(s),newTransforms:i,optionName:t,direction:r,encoding:n});return pw(i,r)},uw=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:o,direction:i,encoding:s})=>t==="duplex"?fw({stdioItem:e,optionName:o}):t==="webTransform"?dw({stdioItem:e,index:r,newTransforms:n,direction:i}):mw({stdioItem:e,index:r,newTransforms:n,direction:i,encoding:s}),fw=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:o=n}},optionName:i})=>{if(o&&!n)throw new TypeError(`The \`${i}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!o&&n)throw new TypeError(`The \`${i}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:r,readableObjectMode:n}}},dw=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o})=>{let{transform:i,objectMode:s}=M(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:l}=ii(s,r,n,o);return{...e,value:{transform:i,writableObjectMode:a,readableObjectMode:l}}},mw=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o,encoding:i})=>{let{transform:s,final:a,binary:l=!1,preserveNewlines:u=!1,objectMode:c}=M(t)?t:{transform:t},d=l||Q.has(i),{writableObjectMode:m,readableObjectMode:p}=ii(c,r,n,o);return{...e,value:{transform:s,final:a,binary:d,preserveNewlines:u,writableObjectMode:m,readableObjectMode:p}}},pw=(e,t)=>t==="input"?e.reverse():e});var un,Wu,hw,yw,St,ai,zu,gw,Sw,Vu=f(()=>{"use strict";un=L(require("process"),1);Ve();z();Wu=(e,t,r)=>{let n=e.map(o=>hw(o,t));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??Sw},hw=({type:e,value:t},r)=>yw[r]??zu[e](t),yw=["input","output","output"],St=()=>{},ai=()=>"input",zu={generator:St,asyncGenerator:St,fileUrl:St,filePath:St,iterable:ai,asyncIterable:ai,uint8Array:ai,webStream:e=>cn(e)?"output":"input",nodeStream(e){return ze(e,{checkOpen:!1})?Yo(e,{checkOpen:!1})?void 0:"input":"output"},webTransform:St,duplex:St,native(e){let t=gw(e);if(t!==void 0)return t;if(se(e,{checkOpen:!1}))return zu.nodeStream(e)}},gw=e=>{if([0,un.default.stdin].includes(e))return"input";if([1,2,un.default.stdout,un.default.stderr].includes(e))return"output"},Sw="output"});var Yu,Hu=f(()=>{"use strict";Yu=(e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e});var Ju,ww,bw,Ku,xw,Ew,Xu=f(()=>{"use strict";Se();Hu();De();Ju=({stdio:e,ipc:t,buffer:r,...n},o,i)=>{let s=ww(e,n).map((a,l)=>Ku(a,l));return i?xw(s,r,o):Yu(s,t)},ww=(e,t)=>{if(e===void 0)return ee.map(n=>t[n]);if(bw(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ee.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return[e,e,e];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,ee.length);return Array.from({length:r},(n,o)=>e[o])},bw=e=>ee.some(t=>e[t]!==void 0),Ku=(e,t)=>Array.isArray(e)?e.map(r=>Ku(r,t)):e??(t>=ee.length?"ignore":"pipe"),xw=(e,t,r)=>e.map((n,o)=>!t[o]&&o!==0&&!ot(r,o)&&Ew(n)?"ignore":n),Ew=e=>e==="pipe"||Array.isArray(e)&&e.every(t=>t==="pipe")});var Zu,ef,tf,Tw,Ow,Dw,Iw,Qu,rf=f(()=>{"use strict";Zu=require("fs"),ef=L(require("tty"),1);Ve();Se();X();Re();tf=({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:o,isSync:i})=>!r||t!=="native"?e:i?Tw({stdioItem:e,fdNumber:n,direction:o}):Iw({stdioItem:e,fdNumber:n}),Tw=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:o})=>{let i=Ow({value:t,optionName:r,fdNumber:n,direction:o});if(i!==void 0)return i;if(se(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},Ow=({value:e,optionName:t,fdNumber:r,direction:n})=>{let o=Dw(e,r);if(o!==void 0){if(n==="output")return{type:"fileNumber",value:o,optionName:t};if(ef.default.isatty(o))throw new TypeError(`The \`${t}: ${Ar(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:ge((0,Zu.readFileSync)(o)),optionName:t}}},Dw=(e,t)=>{if(e==="inherit")return t;if(typeof e=="number")return e;let r=cr.indexOf(e);if(r!==-1)return r},Iw=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>t==="inherit"?{type:"nodeStream",value:Qu(n,t,r),optionName:r}:typeof t=="number"?{type:"nodeStream",value:Qu(t,t,r),optionName:r}:se(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,Qu=(e,t,r)=>{let n=cr[e];if(n===void 0)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n}});var nf,vw,Aw,Rw,Pw,of=f(()=>{"use strict";Ve();X();z();nf=({input:e,inputFile:t},r)=>r===0?[...vw(e),...Rw(t)]:[],vw=e=>e===void 0?[]:[{type:Aw(e),value:e,optionName:"input"}],Aw=e=>{if(ze(e,{checkOpen:!1}))return"nodeStream";if(typeof e=="string")return"string";if($(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},Rw=e=>e===void 0?[]:[{...Pw(e),optionName:"inputFile"}],Pw=e=>{if(an(e))return{type:"fileUrl",value:e};if(ri(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")}});var sf,af,Cw,Fw,cf,Mw,Lw,lf,uf=f(()=>{"use strict";z();sf=e=>e.filter((t,r)=>e.every((n,o)=>t.value!==n.value||r>=o||t.type==="generator"||t.type==="asyncGenerator")),af=({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:o,isSync:i})=>{let s=Cw(o,e);if(s.length!==0){if(i){Fw({otherStdioItems:s,type:e,value:t,optionName:r,direction:n});return}if(Nu.has(e))return cf({otherStdioItems:s,type:e,value:t,optionName:r,direction:n});Uu.has(e)&&Lw({otherStdioItems:s,type:e,value:t,optionName:r})}},Cw=(e,t)=>e.flatMap(({direction:r,stdioItems:n})=>n.filter(o=>o.type===t).map((o=>({...o,direction:r})))),Fw=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{oi.has(t)&&cf({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})},cf=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{let i=e.filter(a=>Mw(a,r));if(i.length===0)return;let s=i.find(a=>a.direction!==o);return lf(s,n,t),o==="output"?i[0].stream:void 0},Mw=({type:e,value:t},r)=>e==="filePath"?t.file===r.file:e==="fileUrl"?t.href===r.href:t===r,Lw=({otherStdioItems:e,type:t,value:r,optionName:n})=>{let o=e.find(({value:{transform:i}})=>i===r.transform);lf(o,n,t)},lf=(e,t,r)=>{if(e!==void 0)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Ce[r]} that is the same.`)}});var fn,$w,kw,Bw,_w,Nw,Uw,jw,Gw,qw,Ww,zw,ci,Vw,dn=f(()=>{"use strict";Se();qu();si();z();Vu();Xu();rf();of();uf();fn=(e,t,r,n)=>{let i=Ju(t,r,n).map((a,l)=>$w({stdioOption:a,fdNumber:l,options:t,isSync:n})),s=qw({initialFileDescriptors:i,addProperties:e,options:t,isSync:n});return t.stdio=s.map(({stdioItems:a})=>Vw(a)),s},$w=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{let o=lr(t),{stdioItems:i,isStdioArray:s}=kw({stdioOption:e,fdNumber:t,options:r,optionName:o}),a=Wu(i,t,o),l=i.map(d=>tf({stdioItem:d,isStdioArray:s,fdNumber:t,direction:a,isSync:n})),u=Gu(l,o,a,r),c=ju(u,a);return Gw(u,c),{direction:a,objectMode:c,stdioItems:u}},kw=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{let i=[...(Array.isArray(e)?e:[e]).map(l=>Bw(l,n)),...nf(r,t)],s=sf(i),a=s.length>1;return _w(s,a,n),Uw(s),{stdioItems:s,isStdioArray:a}},Bw=(e,t)=>({type:Cu(e,t),value:e,optionName:t}),_w=(e,t,r)=>{if(e.length===0)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t){for(let{value:n,optionName:o}of e)if(Nw.has(n))throw new Error(`The \`${o}\` option must not include \`${n}\`.`)}},Nw=new Set(["ignore","ipc"]),Uw=e=>{for(let t of e)jw(t)},jw=({type:e,value:t,optionName:r})=>{if($u(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.
37
+ For example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(ku(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},Gw=(e,t)=>{if(!t)return;let r=e.find(({type:n})=>ln.has(n));if(r!==void 0)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},qw=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{let o=[];try{for(let i of e)o.push(Ww({fileDescriptor:i,fileDescriptors:o,addProperties:t,options:r,isSync:n}));return o}catch(i){throw ci(o),i}},Ww=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:o,options:i,isSync:s})=>{let a=r.map(l=>zw({stdioItem:l,addProperties:o,direction:e,options:i,fileDescriptors:n,isSync:s}));return{direction:e,objectMode:t,stdioItems:a}},zw=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:o,isSync:i})=>{let s=af({stdioItem:e,direction:r,fileDescriptors:o,isSync:i});return s!==void 0?{...e,stream:s}:{...e,...t[r][e.type](e,n)}},ci=e=>{for(let{stdioItems:t}of e)for(let{stream:r}of t)r!==void 0&&!ne(r)&&r.destroy()},Vw=e=>{if(e.length>1)return e.some(({value:n})=>n==="overlapped")?"overlapped":"pipe";let[{type:t,value:r}]=e;return t==="native"?r:"pipe"}});var li,df,me,Yw,mf,ff,Hw,pf=f(()=>{"use strict";li=require("fs");X();dn();z();df=(e,t)=>fn(Hw,e,t,!0),me=({type:e,optionName:t})=>{mf(t,Ce[e])},Yw=({optionName:e,value:t})=>((t==="ipc"||t==="overlapped")&&mf(e,`"${t}"`),{}),mf=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},ff={generator(){},asyncGenerator:me,webStream:me,nodeStream:me,webTransform:me,duplex:me,asyncIterable:me,native:Yw},Hw={input:{...ff,fileUrl:({value:e})=>({contents:[ge((0,li.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[ge((0,li.readFileSync)(e))]}),fileNumber:me,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...ff,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e,append:t}})=>({path:e,append:t}),fileNumber:({value:e})=>({path:e}),iterable:me,string:me,uint8Array:me}}});var Ee,ui,jt=f(()=>{"use strict";Vo();Ee=(e,{stripFinalNewline:t},r)=>ui(t,r)&&e!==void 0&&!Array.isArray(e)?pt(e):e,ui=(e,t)=>t==="all"?e[1]||e[2]:e[t]});var mn,di,hf,yf,Jw,Kw,Xw,gf,Qw,fi,Zw,eb,tb,pn=f(()=>{"use strict";mn=(e,t,r,n)=>e||r?void 0:yf(t,n),di=(e,t,r)=>r?e.flatMap(n=>hf(n,t)):hf(e,t),hf=(e,t)=>{let{transform:r,final:n}=yf(t,{});return[...r(e),...n()]},yf=(e,t)=>(t.previousChunks="",{transform:Jw.bind(void 0,t,e),final:Xw.bind(void 0,t)}),Jw=function*(e,t,r){if(typeof r!="string"){yield r;return}let{previousChunks:n}=e,o=-1;for(let i=0;i<r.length;i+=1)if(r[i]===`
38
+ `){let s=Kw(r,i,t,e),a=r.slice(o+1,i+1-s);n.length>0&&(a=fi(n,a),n=""),yield a,o=i}o!==r.length-1&&(n=fi(n,r.slice(o+1))),e.previousChunks=n},Kw=(e,t,r,n)=>r?0:(n.isWindowsNewline=t!==0&&e[t-1]==="\r",n.isWindowsNewline?2:1),Xw=function*({previousChunks:e}){e.length>0&&(yield e)},gf=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:Qw.bind(void 0,n)},Qw=function*({isWindowsNewline:e=!1},t){let{unixNewline:r,windowsNewline:n,LF:o,concatBytes:i}=typeof t=="string"?Zw:tb;if(t.at(-1)===o){yield t;return}yield i(t,e?n:r)},fi=(e,t)=>`${e}${t}`,Zw={windowsNewline:`\r
39
39
  `,unixNewline:`
40
40
  `,LF:`
41
- `,concatBytes:ui},Qw=(e,t)=>{let r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r},Zw={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:Qw}});var gf,Sf,eb,wf,tb,rb,bf,xf=f(()=>{"use strict";gf=require("buffer");K();Sf=(e,t)=>e?void 0:eb.bind(void 0,t),eb=function*(e,t){if(typeof t!="string"&&!L(t)&&!gf.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},wf=(e,t)=>e?tb.bind(void 0,t):rb.bind(void 0,t),tb=function*(e,t){bf(e,t),yield t},rb=function*(e,t){if(bf(e,t),typeof t!="string"&&!L(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},bf=(e,t)=>{if(t==null)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.
41
+ `,concatBytes:fi},eb=(e,t)=>{let r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r},tb={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:eb}});var Sf,wf,rb,bf,nb,ob,xf,Ef=f(()=>{"use strict";Sf=require("buffer");X();wf=(e,t)=>e?void 0:rb.bind(void 0,t),rb=function*(e,t){if(typeof t!="string"&&!$(t)&&!Sf.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},bf=(e,t)=>e?nb.bind(void 0,t):ob.bind(void 0,t),nb=function*(e,t){xf(e,t),yield t},ob=function*(e,t){if(xf(e,t),typeof t!="string"&&!$(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},xf=(e,t)=>{if(t==null)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.
42
42
  Instead, \`yield\` should either be called with a value, or not be called at all. For example:
43
- if (condition) { yield value; }`)}});var Ef,Tf,pn,nb,ob,ib,di=f(()=>{"use strict";Ef=require("buffer"),Tf=require("string_decoder");K();pn=(e,t,r)=>{if(r)return;if(e)return{transform:nb.bind(void 0,new TextEncoder)};let n=new Tf.StringDecoder(t);return{transform:ob.bind(void 0,n),final:ib.bind(void 0,n)}},nb=function*(e,t){Ef.Buffer.isBuffer(t)?yield ge(t):typeof t=="string"?yield e.encode(t):yield t},ob=function*(e,t){yield L(t)?e.write(t):t},ib=function*(e){let t=e.end();t!==""&&(yield t)}});var mi,pi,hn,Of,sb,Df,ab,If=f(()=>{"use strict";mi=require("util"),pi=(0,mi.callbackify)(async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(let o of t.currentIterable)n.push(o)}finally{delete t.currentIterable}}),hn=async function*(e,t,r){if(r===t.length){yield e;return}let{transform:n=ab}=t[r];for await(let o of n(e))yield*hn(o,t,r+1)},Of=async function*(e){for(let[t,{final:r}]of Object.entries(e))yield*sb(r,Number(t),e)},sb=async function*(e,t,r){if(e!==void 0)for await(let n of e())yield*hn(n,r,t+1)},Df=(0,mi.callbackify)(async({currentIterable:e},t)=>{if(e!==void 0){await(t?e.throw(t):e.return());return}if(t)throw t}),ab=function*(e){yield e}});var hi,Af,He,jt,cb,lb,yi=f(()=>{"use strict";hi=(e,t,r,n)=>{try{for(let o of e(...t))r.push(o);n()}catch(o){n(o)}},Af=(e,t)=>[...t.flatMap(r=>[...He(r,e,0)]),...jt(e)],He=function*(e,t,r){if(r===t.length){yield e;return}let{transform:n=lb}=t[r];for(let o of n(e))yield*He(o,t,r+1)},jt=function*(e){for(let[t,{final:r}]of Object.entries(e))yield*cb(r,Number(t),e)},cb=function*(e,t,r){if(e!==void 0)for(let n of e())yield*He(n,r,t+1)},lb=function*(e){yield e}});var Gt,gi,yn,vf,gn=f(()=>{"use strict";Gt=require("stream");z();mn();xf();di();If();yi();gi=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:o},optionName:i},{encoding:s})=>{let a={},c=vf(e,s,i),u=Ye(t),l=Ye(r),d=u?pi.bind(void 0,hn,a):hi.bind(void 0,He),m=u||l?pi.bind(void 0,Of,a):hi.bind(void 0,jt),p=u||l?Df.bind(void 0,a):void 0;return{stream:new Gt.Transform({writableObjectMode:n,writableHighWaterMark:(0,Gt.getDefaultHighWaterMark)(n),readableObjectMode:o,readableHighWaterMark:(0,Gt.getDefaultHighWaterMark)(o),transform(y,w,S){d([y,c,0],this,S)},flush(y){m([c],this,y)},destroy:p})}},yn=(e,t,r,n)=>{let o=t.filter(({type:s})=>s==="generator"),i=n?o.reverse():o;for(let{value:s,optionName:a}of i){let c=vf(s,r,a);e=Af(c,e)}return e},vf=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:o,preserveNewlines:i},s,a)=>{let c={};return[{transform:Sf(n,a)},pn(r,s,n),dn(r,i,n,c),{transform:e,final:t},{transform:wf(o,a)},yf({binary:r,preserveNewlines:i,readableObjectMode:o,state:c})].filter(Boolean)}});var Rf,ub,fb,db,mb,Pf=f(()=>{"use strict";gn();K();z();Rf=(e,t)=>{for(let r of ub(e))fb(e,r,t)},ub=e=>new Set(Object.entries(e).filter(([,{direction:t}])=>t==="input").map(([t])=>Number(t))),fb=(e,t,r)=>{let{stdioItems:n}=e[t],o=n.filter(({contents:a})=>a!==void 0);if(o.length===0)return;if(t!==0){let[{type:a,optionName:c}]=o;throw new TypeError(`Only the \`stdin\` option, not \`${c}\`, can be ${Ce[a]} with synchronous methods.`)}let s=o.map(({contents:a})=>a).map(a=>db(a,n));r.input=At(s)},db=(e,t)=>{let r=yn(e,t,"utf8",!0);return mb(r),At(r)},mb=e=>{let t=e.find(r=>typeof r!="string"&&!L(r));if(t!==void 0)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)}});var Sn,pb,hb,Cf,Ff,yb,Mf,Si=f(()=>{"use strict";qe();z();ot();De();Sn=({stdioItems:e,encoding:t,verboseInfo:r,fdNumber:n})=>n!=="all"&&nt(r,n)&&!X.has(t)&&pb(n)&&(e.some(({type:o,value:i})=>o==="native"&&hb.has(i))||e.every(({type:o})=>ee.has(o))),pb=e=>e===1||e===2,hb=new Set(["pipe","overlapped"]),Cf=async(e,t,r,n)=>{for await(let o of e)yb(t)||Mf(o,r,n)},Ff=(e,t,r)=>{for(let n of e)Mf(n,t,r)},yb=e=>e._readableState.pipes.length>0,Mf=(e,t,r)=>{let n=hr(e);ce({type:"output",verboseMessage:n,fdNumber:t,verboseInfo:r})}});var wn,Lf,gb,Sb,wb,bb,xb,kf=f(()=>{"use strict";wn=require("fs");Si();gn();mn();K();z();Ve();Lf=({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:o})=>{if(t===null)return{output:Array.from({length:3})};let i={},s=new Set([]);return{output:t.map((c,u)=>gb({result:c,fileDescriptors:e,fdNumber:u,state:i,outputFiles:s,isMaxBuffer:n,verboseInfo:o},r)),...i}},gb=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:o,isMaxBuffer:i,verboseInfo:s},{buffer:a,encoding:c,lines:u,stripFinalNewline:l,maxBuffer:d})=>{if(e===null)return;let m=hu(e,i,d),p=ge(m),{stdioItems:h,objectMode:y}=t[r],w=Sb([p],h,c,n),{serializedResult:S,finalResult:T=S}=wb({chunks:w,objectMode:y,encoding:c,lines:u,stripFinalNewline:l,fdNumber:r});bb({serializedResult:S,fdNumber:r,state:n,verboseInfo:s,encoding:c,stdioItems:h,objectMode:y});let D=a[r]?T:void 0;try{return n.error===void 0&&xb(S,h,o),D}catch(k){return n.error=k,D}},Sb=(e,t,r,n)=>{try{return yn(e,t,r,!1)}catch(o){return n.error=o,e}},wb=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:o,fdNumber:i})=>{if(t)return{serializedResult:e};if(r==="buffer")return{serializedResult:At(e)};let s=Bs(e,r);return n[i]?{serializedResult:s,finalResult:fi(s,!o[i],t)}:{serializedResult:s}},bb=({serializedResult:e,fdNumber:t,state:r,verboseInfo:n,encoding:o,stdioItems:i,objectMode:s})=>{if(!Sn({stdioItems:i,encoding:o,verboseInfo:n,fdNumber:t}))return;let a=fi(e,!1,s);try{Ff(a,t,n)}catch(c){r.error??=c}},xb=(e,t,r)=>{for(let{path:n,append:o}of t.filter(({type:i})=>cn.has(i))){let i=typeof n=="string"?n:n.toString();o||r.has(i)?(0,wn.appendFileSync)(n,e):(r.add(i),(0,wn.writeFileSync)(n,e))}}});var $f,Bf=f(()=>{"use strict";K();Ut();$f=([,e,t],r)=>{if(r.all)return e===void 0?t:t===void 0?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,Ee(t,r,"all")]:Array.isArray(t)?[Ee(e,r,"all"),...t]:L(e)&&L(t)?eo([e,t]):`${e}${t}`}});var bn,_f,Eb,Nf,Uf,Tb,wi,bi=f(()=>{"use strict";bn=require("events");Ae();_f=async(e,t)=>{let[r,n]=await Eb(e);return t.isForcefullyTerminated??=!1,[r,n]},Eb=async e=>{let[t,r]=await Promise.allSettled([(0,bn.once)(e,"spawn"),(0,bn.once)(e,"exit")]);return t.status==="rejected"?[]:r.status==="rejected"?Nf(e):r.value},Nf=async e=>{try{return await(0,bn.once)(e,"exit")}catch{return Nf(e)}},Uf=async e=>{let[t,r]=await e;if(!Tb(t,r)&&wi(t,r))throw new ne;return[t,r]},Tb=(e,t)=>e===void 0&&t===void 0,wi=(e,t)=>e!==0||t!==null});var jf,Ob,Gf=f(()=>{"use strict";Ae();Ve();bi();jf=({error:e,status:t,signal:r,output:n},{maxBuffer:o})=>{let i=Ob(e,t,r),s=i?.code==="ETIMEDOUT",a=pu(i,n,o);return{resultError:i,exitCode:t,signal:r,timedOut:s,isMaxBuffer:a}},Ob=(e,t,r)=>e!==void 0?e:wi(t,r)?new ne:void 0});var qf,Wf,Db,Ib,Ab,xn,vb,Rb,Pb,Cb,zf=f(()=>{"use strict";qf=require("child_process");uo();qo();Wo();Nt();on();mf();Ut();Pf();kf();Ve();Bf();Gf();Wf=(e,t,r)=>{let{file:n,commandArguments:o,command:i,escapedCommand:s,startTime:a,verboseInfo:c,options:u,fileDescriptors:l}=Db(e,t,r),d=vb({file:n,commandArguments:o,options:u,command:i,escapedCommand:s,verboseInfo:c,fileDescriptors:l,startTime:a});return yt(d,c,u)},Db=(e,t,r)=>{let{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=Sr(e,t,r),a=Ib(r),{file:c,commandArguments:u,options:l}=zr(e,t,a);Ab(l);let d=ff(l,s);return{file:c,commandArguments:u,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:l,fileDescriptors:d}},Ib=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,Ab=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&xn("ipcInput"),e&&xn("ipc: true"),r&&xn("detached: true"),n&&xn("cancelSignal")},xn=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},vb=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,verboseInfo:i,fileDescriptors:s,startTime:a})=>{let c=Rb({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:s,startTime:a});if(c.failed)return c;let{resultError:u,exitCode:l,signal:d,timedOut:m,isMaxBuffer:p}=jf(c,r),{output:h,error:y=u}=Lf({fileDescriptors:s,syncResult:c,options:r,isMaxBuffer:p,verboseInfo:i}),w=h.map((T,D)=>Ee(T,r,D)),S=Ee($f(h,r),r,"all");return Cb({error:y,exitCode:l,signal:d,timedOut:m,isMaxBuffer:p,stdio:w,all:S,options:r,command:n,escapedCommand:o,startTime:a})},Rb=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:i,startTime:s})=>{try{Rf(i,r);let a=Pb(r);return(0,qf.spawnSync)(...Vr(e,t,a))}catch(a){return ht({error:a,command:n,escapedCommand:o,fileDescriptors:i,options:r,startTime:s,isSync:!0})}},Pb=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:rn(t)}),Cb=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:o,stdio:i,all:s,options:a,command:c,escapedCommand:u,startTime:l})=>e===void 0?nn({command:c,escapedCommand:u,stdio:i,all:s,ipcOutput:[],options:a,startTime:l}):_t({error:e,command:c,escapedCommand:u,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:o,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:i,all:s,ipcOutput:[],options:a,startTime:l,isSync:!0})});var St,Vf,Fb,Mb,Lb,kb,Yf=f(()=>{"use strict";St=require("events");ut();Mt();Ft();Vf=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0,filter:i}={})=>(ct({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:Br(e)}),Fb({anyProcess:e,channel:t,isSubprocess:r,filter:i,reference:o})),Fb=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:o})=>{Pr(t,o);let i=Pe(e,t,r),s=new AbortController;try{return await Promise.race([Mb(i,n,s),Lb(i,r,s),kb(i,r,s)])}catch(a){throw lt(e),a}finally{s.abort(),Cr(t,o)}},Mb=async(e,t,{signal:r})=>{if(t===void 0){let[n]=await(0,St.once)(e,"message",{signal:r});return n}for await(let[n]of(0,St.on)(e,"message",{signal:r}))if(t(n))return n},Lb=async(e,t,{signal:r})=>{await(0,St.once)(e,"disconnect",{signal:r}),Uc(t)},kb=async(e,t,{signal:r})=>{let[n]=await(0,St.once)(e,"strict:error",{signal:r});throw Ir(n,t)}});var qt,Jf,xi,$b,Bb,_b,Hf,Ei=f(()=>{"use strict";qt=require("events");ut();Mt();Ft();Jf=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0}={})=>xi({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:o}),xi=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:o,reference:i})=>{ct({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:Br(e)}),Pr(t,i);let s=Pe(e,t,r),a=new AbortController,c={};return $b(e,s,a),Bb({ipcEmitter:s,isSubprocess:r,controller:a,state:c}),_b({anyProcess:e,channel:t,ipcEmitter:s,isSubprocess:r,shouldAwait:o,controller:a,state:c,reference:i})},$b=async(e,t,r)=>{try{await(0,qt.once)(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},Bb=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{let[o]=await(0,qt.once)(e,"strict:error",{signal:r.signal});n.error=Ir(o,t),r.abort()}catch{}},_b=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:o,controller:i,state:s,reference:a}){try{for await(let[c]of(0,qt.on)(r,"message",{signal:i.signal}))Hf(s),yield c}catch{Hf(s)}finally{i.abort(),Cr(t,a),n||lt(e),o&&await e}},Hf=({error:e})=>{if(e)throw e}});var Ti,Kf,Xf,Qf,Oi=f(()=>{"use strict";Ti=G(require("process"),1);Gr();Yf();Ei();kr();Kf=(e,{ipc:t})=>{Object.assign(e,Qf(e,!1,t))},Xf=()=>{let e=Ti.default,t=!0,r=Ti.default.channel!==void 0;return{...Qf(e,t,r),getCancelSignal:xl.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}},Qf=(e,t,r)=>({sendMessage:jr.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:Vf.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:Jf.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})})});var Zf,Fe,ed,Nb,Wt,Ub,jb,Gb,qb,td=f(()=>{"use strict";Zf=require("child_process"),Fe=require("stream");fn();Nt();on();ed=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,verboseInfo:s})=>{ai(n);let a=new Zf.ChildProcess;Nb(a,n),Object.assign(a,{readable:Ub,writable:jb,duplex:Gb});let c=ht({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:!1}),u=qb(c,s,o);return{subprocess:a,promise:u}},Nb=(e,t)=>{let r=Wt(),n=Wt(),o=Wt(),i=Array.from({length:t.length-3},Wt),s=Wt(),a=[r,n,o,...i];Object.assign(e,{stdin:r,stdout:n,stderr:o,all:s,stdio:a})},Wt=()=>{let e=new Fe.PassThrough;return e.end(),e},Ub=()=>new Fe.Readable({read(){}}),jb=()=>new Fe.Writable({write(){}}),Gb=()=>new Fe.Duplex({read(){},write(){}}),qb=async(e,t,r)=>yt(e,t,r)});var wt,nd,me,od,zt,rd,Wb,id=f(()=>{"use strict";wt=require("fs"),nd=require("buffer"),me=require("stream");gn();fn();z();od=(e,t)=>un(Wb,e,t,!1),zt=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${Ce[e]}.`)},rd={fileNumber:zt,generator:gi,asyncGenerator:gi,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){let n=t||r;return{stream:me.Duplex.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Wb={input:{...rd,fileUrl:({value:e})=>({stream:(0,wt.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,wt.createReadStream)(e)}),webStream:({value:e})=>({stream:me.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:me.Readable.from(e)}),asyncIterable:({value:e})=>({stream:me.Readable.from(e)}),string:({value:e})=>({stream:me.Readable.from(e)}),uint8Array:({value:e})=>({stream:me.Readable.from(nd.Buffer.from(e))})},output:{...rd,fileUrl:({value:e})=>({stream:(0,wt.createWriteStream)(e)}),filePath:({value:{file:e,append:t}})=>({stream:(0,wt.createWriteStream)(e,t?{flags:"a"}:{})}),webStream:({value:e})=>({stream:me.Writable.fromWeb(e)}),iterable:zt,asyncIterable:zt,string:zt,uint8Array:zt}}});function Je(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(let o of e)Ii(o);let t=e.some(({readableObjectMode:o})=>o),r=zb(e,t),n=new Di({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(let o of e)n.add(o);return n}var Vt,Tn,Ai,zb,Di,Vb,Yb,Hb,Ii,Jb,Kb,Xb,Qb,Zb,cd,ld,vi,ud,ex,En,sd,ad,On=f(()=>{"use strict";Vt=require("events"),Tn=require("stream"),Ai=require("stream/promises");zb=(e,t)=>{if(e.length===0)return(0,Tn.getDefaultHighWaterMark)(t);let r=e.filter(({readableObjectMode:n})=>n===t).map(({readableHighWaterMark:n})=>n);return Math.max(...r)},Di=class extends Tn.PassThrough{#t=new Set([]);#r=new Set([]);#e=new Set([]);#n;#i=Symbol("unpipe");#o=new WeakMap;add(t){if(Ii(t),this.#t.has(t))return;this.#t.add(t),this.#n??=Vb(this,this.#t,this.#i);let r=Jb({passThroughStream:this,stream:t,streams:this.#t,ended:this.#r,aborted:this.#e,onFinished:this.#n,unpipeEvent:this.#i});this.#o.set(t,r),t.pipe(this,{end:!1})}async remove(t){if(Ii(t),!this.#t.has(t))return!1;let r=this.#o.get(t);return r===void 0?!1:(this.#o.delete(t),t.unpipe(this),await r,!0)}},Vb=async(e,t,r)=>{En(e,sd);let n=new AbortController;try{await Promise.race([Yb(e,n),Hb(e,t,r,n)])}finally{n.abort(),En(e,-sd)}},Yb=async(e,{signal:t})=>{try{await(0,Ai.finished)(e,{signal:t,cleanup:!0})}catch(r){throw cd(e,r),r}},Hb=async(e,t,r,{signal:n})=>{for await(let[o]of(0,Vt.on)(e,"unpipe",{signal:n}))t.has(o)&&o.emit(r)},Ii=e=>{if(typeof e?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Jb=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,onFinished:i,unpipeEvent:s})=>{En(e,ad);let a=new AbortController;try{await Promise.race([Kb(i,t,a),Xb({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:a}),Qb({stream:t,streams:r,ended:n,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),En(e,-ad)}r.size>0&&r.size===n.size+o.size&&(n.size===0&&o.size>0?vi(e):Zb(e))},Kb=async(e,t,{signal:r})=>{try{await e,r.aborted||vi(t)}catch(n){r.aborted||cd(t,n)}},Xb=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:{signal:i}})=>{try{await(0,Ai.finished)(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(s){if(i.aborted||!r.has(t))return;ld(s)?o.add(t):ud(e,s)}},Qb=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:o,controller:{signal:i}})=>{if(await(0,Vt.once)(e,o,{signal:i}),!e.readable)return(0,Vt.once)(i,"abort",{signal:i});t.delete(e),r.delete(e),n.delete(e)},Zb=e=>{e.writable&&e.end()},cd=(e,t)=>{ld(t)?vi(e):ud(e,t)},ld=e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE",vi=e=>{(e.readable||e.writable)&&e.destroy()},ud=(e,t)=>{e.destroyed||(e.once("error",ex),e.destroy(t))},ex=()=>{},En=(e,t)=>{let r=e.getMaxListeners();r!==0&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},sd=2,ad=1});var Ri,bt,tx,Pi,rx,Ci,Dn=f(()=>{"use strict";Ri=require("stream/promises");Se();bt=(e,t)=>{e.pipe(t),tx(e,t),rx(e,t)},tx=async(e,t)=>{if(!(re(e)||re(t))){try{await(0,Ri.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Pi(t)}},Pi=e=>{e.writable&&e.end()},rx=async(e,t)=>{if(!(re(e)||re(t))){try{await(0,Ri.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}Ci(e)}},Ci=e=>{e.readable&&e.destroy()}});var fd,nx,ox,ix,sx,ax,dd=f(()=>{"use strict";On();Se();Rr();z();Dn();fd=(e,t,r)=>{let n=new Map;for(let[o,{stdioItems:i,direction:s}]of Object.entries(t)){for(let{stream:a}of i.filter(({type:c})=>ee.has(c)))nx(e,a,s,o);for(let{stream:a}of i.filter(({type:c})=>!ee.has(c)))ix({subprocess:e,stream:a,direction:s,fdNumber:o,pipeGroups:n,controller:r})}for(let[o,i]of n.entries()){let s=i.length===1?i[0]:Je(i);bt(s,o)}},nx=(e,t,r,n)=>{r==="output"?bt(e.stdio[n],t):bt(t,e.stdio[n]);let o=ox[n];o!==void 0&&(e[o]=t),e.stdio[n]=t},ox=["stdin","stdout","stderr"],ix=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:o,controller:i})=>{if(t===void 0)return;sx(t,i);let[s,a]=r==="output"?[t,e.stdio[n]]:[e.stdio[n],t],c=o.get(s)??[];o.set(s,[...c,a])},sx=(e,{signal:t})=>{re(e)&&Ge(e,ax,t)},ax=2});var Ke,md=f(()=>{"use strict";Ke=[];Ke.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Ke.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ke.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var In,Fi,Mi,cx,Li,An,lx,ki,$i,Bi,pd,SP,wP,hd=f(()=>{"use strict";md();In=e=>!!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",Fi=Symbol.for("signal-exit emitter"),Mi=globalThis,cx=Object.defineProperty.bind(Object),Li=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Mi[Fi])return Mi[Fi];cx(Mi,Fi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let n=this.listeners[t],o=n.indexOf(r);o!==-1&&(o===0&&n.length===1?n.length=0:n.splice(o,1))}emit(t,r,n){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(r,n)===!0||o;return t==="exit"&&(o=this.emit("afterExit",r,n)||o),o}},An=class{},lx=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),ki=class extends An{onExit(){return()=>{}}load(){}unload(){}},$i=class extends An{#t=Bi.platform==="win32"?"SIGINT":"SIGHUP";#r=new Li;#e;#n;#i;#o={};#s=!1;constructor(t){super(),this.#e=t,this.#o={};for(let r of Ke)this.#o[r]=()=>{let n=this.#e.listeners(r),{count:o}=this.#r,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),n.length===o){this.unload();let s=this.#r.emit("exit",null,r),a=r==="SIGHUP"?this.#t:r;s||t.kill(t.pid,a)}};this.#i=t.reallyExit,this.#n=t.emit}onExit(t,r){if(!In(this.#e))return()=>{};this.#s===!1&&this.load();let n=r?.alwaysLast?"afterExit":"exit";return this.#r.on(n,t),()=>{this.#r.removeListener(n,t),this.#r.listeners.exit.length===0&&this.#r.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#s){this.#s=!0,this.#r.count+=1;for(let t of Ke)try{let r=this.#o[t];r&&this.#e.on(t,r)}catch{}this.#e.emit=(t,...r)=>this.#c(t,...r),this.#e.reallyExit=t=>this.#a(t)}}unload(){this.#s&&(this.#s=!1,Ke.forEach(t=>{let r=this.#o[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r)}catch{}}),this.#e.emit=this.#n,this.#e.reallyExit=this.#i,this.#r.count-=1)}#a(t){return In(this.#e)?(this.#e.exitCode=t||0,this.#r.emit("exit",this.#e.exitCode,null),this.#i.call(this.#e,this.#e.exitCode)):0}#c(t,...r){let n=this.#n;if(t==="exit"&&In(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let o=n.call(this.#e,t,...r);return this.#r.emit("exit",this.#e.exitCode,null),o}else return n.call(this.#e,t,...r)}},Bi=globalThis.process,{onExit:pd,load:SP,unload:wP}=lx(In(Bi)?new $i(Bi):new ki)});var yd,gd,Sd=f(()=>{"use strict";yd=require("events");hd();gd=(e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;let o=pd(()=>{e.kill()});(0,yd.addAbortListener)(n,()=>{o()})}});var bd,ux,fx,wd,dx,xd=f(()=>{"use strict";Zn();gr();Re();tt();bd=({source:e,sourcePromise:t,boundOptions:r,createNested:n},...o)=>{let i=yr(),{destination:s,destinationStream:a,destinationError:c,from:u,unpipeSignal:l}=ux(r,n,o),{sourceStream:d,sourceError:m}=dx(e,u),{options:p,fileDescriptors:h}=ue.get(e);return{sourcePromise:t,sourceStream:d,sourceOptions:p,sourceError:m,destination:s,destinationStream:a,destinationError:c,unpipeSignal:l,fileDescriptors:h,startTime:i}},ux=(e,t,r)=>{try{let{destination:n,pipeOptions:{from:o,to:i,unpipeSignal:s}={}}=fx(e,t,...r),a=vr(n,i);return{destination:n,destinationStream:a,from:o,unpipeSignal:s}}catch(n){return{destinationError:n}}},fx=(e,t,r,...n)=>{if(Array.isArray(r))return{destination:t(wd,e)(r,...n),pipeOptions:e};if(typeof r=="string"||r instanceof URL||Xn(r)){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');let[o,i,s]=or(r,...n);return{destination:t(wd)(o,i,s),pipeOptions:s}}if(ue.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},wd=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),dx=(e,t)=>{try{return{sourceStream:dt(e,t)}}catch(r){return{sourceError:r}}}});var Td,mx,_i,Ed,Ni=f(()=>{"use strict";Nt();Dn();Td=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:o,sourceOptions:i,startTime:s})=>{let a=mx({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(a!==void 0)throw _i({error:a,fileDescriptors:o,sourceOptions:i,startTime:s})},mx=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>{if(t!==void 0&&n!==void 0)return n;if(n!==void 0)return Ci(e),n;if(t!==void 0)return Pi(r),t},_i=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>ht({error:e,command:Ed,escapedCommand:Ed,fileDescriptors:t,options:r,startTime:n,isSync:!1}),Ed="source.pipe(destination)"});var Od,Dd=f(()=>{"use strict";Od=async e=>{let[{status:t,reason:r,value:n=r},{status:o,reason:i,value:s=i}]=await e;if(s.pipedFrom.includes(n)||s.pipedFrom.push(n),o==="rejected")throw s;if(t==="rejected")throw n;return s}});var Id,Ad,px,hx,yx,vn,gx,Sx,vd=f(()=>{"use strict";Id=require("stream/promises");On();Rr();Dn();Ad=(e,t,r)=>{let n=vn.has(t)?hx(e,t):px(e,t);return Ge(e,gx,r.signal),Ge(t,Sx,r.signal),yx(t),n},px=(e,t)=>{let r=Je([e]);return bt(r,t),vn.set(t,r),r},hx=(e,t)=>{let r=vn.get(t);return r.add(e),r},yx=async e=>{try{await(0,Id.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}vn.delete(e)},vn=new WeakMap,gx=2,Sx=1});var Rd,Pd,wx,Cd=f(()=>{"use strict";Rd=require("util");Ni();Pd=(e,t)=>e===void 0?[]:[wx(e,t)],wx=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:o,startTime:i})=>{await(0,Rd.aborted)(e,t),await r.remove(t);let s=new Error("Pipe canceled by `unpipeSignal` option.");throw _i({error:s,fileDescriptors:n,sourceOptions:o,startTime:i})}});var Rn,bx,xx,Fd=f(()=>{"use strict";ye();xd();Ni();Dd();vd();Cd();Rn=(e,...t)=>{if(M(t[0]))return Rn.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});let{destination:r,...n}=bd(e,...t),o=bx({...n,destination:r});return o.pipe=Rn.bind(void 0,{...e,source:r,sourcePromise:o,boundOptions:{}}),o},bx=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:o,destinationStream:i,destinationError:s,unpipeSignal:a,fileDescriptors:c,startTime:u})=>{let l=xx(e,o);Td({sourceStream:t,sourceError:n,destinationStream:i,destinationError:s,fileDescriptors:c,sourceOptions:r,startTime:u});let d=new AbortController;try{let m=Ad(t,i,d);return await Promise.race([Od(l),...Pd(a,{sourceStream:t,mergedStream:m,sourceOptions:r,fileDescriptors:c,startTime:u})])}finally{d.abort()}},xx=(e,t)=>Promise.allSettled([e,t])});var Ld,kd,Pn,Ex,Ui,Tx,$d,ji,Md,Ox,Dx,Cn=f(()=>{"use strict";Ld=require("events"),kd=require("stream");di();mn();yi();Pn=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:o,preserveNewlines:i})=>{let s=new AbortController;return Ex(t,s),$d({stream:e,controller:s,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:o,shouldSplit:!e.readableObjectMode,preserveNewlines:i})},Ex=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Ui=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:o,allMixed:i})=>{let s=new AbortController;Tx(t,s,e);let a=e.readableObjectMode&&!i;return $d({stream:e,controller:s,binary:n==="buffer",shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!o})},Tx=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},$d=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})=>{let a=(0,Ld.on)(e,"data",{signal:t.signal,highWaterMark:Md,highWatermark:Md});return Ox({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})},ji=(0,kd.getDefaultHighWaterMark)(!0),Md=ji,Ox=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s}){let a=Dx({binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s});try{for await(let[c]of e)yield*He(c,a,0)}catch(c){if(!t.signal.aborted)throw c}finally{yield*jt(a)}},Dx=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:o})=>[pn(e,r,!t),dn(e,o,!n,{})].filter(Boolean)});var Bd,_d,Ix,Ax,vx,Gi,Nd,qi=f(()=>{"use strict";Bd=require("timers/promises");tn();K();Si();Cn();Ve();Ut();_d=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:o,maxBuffer:i,lines:s,allMixed:a,stripFinalNewline:c,verboseInfo:u,streamInfo:l})=>{let d=Ix({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:a,verboseInfo:u,streamInfo:l});if(!o){await Promise.all([Ax(e),d]);return}let m=li(c,r),p=Ui({stream:e,onStreamEnd:t,lines:s,encoding:n,stripFinalNewline:m,allMixed:a}),[h]=await Promise.all([vx({stream:e,iterable:p,fdNumber:r,encoding:n,maxBuffer:i,lines:s}),d]);return h},Ix=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:o,verboseInfo:i,streamInfo:{fileDescriptors:s}})=>{if(!Sn({stdioItems:s[r]?.stdioItems,encoding:n,verboseInfo:i,fdNumber:r}))return;let a=Ui({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:o});await Cf(a,e,r,i)},Ax=async e=>{await(0,Bd.setImmediate)(),e.readableFlowing===null&&e.resume()},vx=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:o,maxBuffer:i,lines:s})=>{try{return t||s?await Xr(r,{maxBuffer:i}):o==="buffer"?new Uint8Array(await Qr(r,{maxBuffer:i})):await en(r,{maxBuffer:i})}catch(a){return Nd(fu({error:a,stream:e,readableObjectMode:t,lines:s,encoding:o,fdNumber:n}))}},Gi=async e=>{try{return await e}catch(t){return Nd(t)}},Nd=({bufferedData:e})=>ks(e)?new Uint8Array(e):e});var jd,Yt,Rx,Px,Cx,Fx,Mx,Wi,Fn,Ud,Mn=f(()=>{"use strict";jd=require("stream/promises"),Yt=async(e,t,r,{isSameDirection:n,stopOnExit:o=!1}={})=>{let i=Rx(e,r),s=new AbortController;try{await Promise.race([...o?[r.exitPromise]:[],(0,jd.finished)(e,{cleanup:!0,signal:s.signal})])}catch(a){i.stdinCleanedUp||Fx(a,t,r,n)}finally{s.abort()}},Rx=(e,{originalStreams:[t],subprocess:r})=>{let n={stdinCleanedUp:!1};return e===t&&Px(e,r,n),n},Px=(e,t,r)=>{let{_destroy:n}=e;e._destroy=(...o)=>{Cx(t,r),n.call(e,...o)}},Cx=({exitCode:e,signalCode:t},r)=>{(e!==null||t!==null)&&(r.stdinCleanedUp=!0)},Fx=(e,t,r,n)=>{if(!Mx(e,t,r,n))throw e},Mx=(e,t,r,n=!0)=>r.propagating?Ud(e)||Fn(e):(r.propagating=!0,Wi(r,t)===n?Ud(e):Fn(e)),Wi=({fileDescriptors:e},t)=>t!=="all"&&e[t].direction==="input",Fn=e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE",Ud=e=>e?.code==="EPIPE"});var Gd,zi,Vi=f(()=>{"use strict";qi();Mn();Gd=({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>e.stdio.map((c,u)=>zi({stream:c,fdNumber:u,encoding:t,buffer:r[u],maxBuffer:n[u],lines:o[u],allMixed:!1,stripFinalNewline:i,verboseInfo:s,streamInfo:a})),zi=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:u})=>{if(!e)return;let l=Yt(e,t,u);if(Wi(u,t)){await l;return}let[d]=await Promise.all([_d({stream:e,onStreamEnd:l,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:u}),l]);return d}});var qd,Wd,Lx,kx,Yi=f(()=>{"use strict";On();Vi();qd=({stdout:e,stderr:t},{all:r})=>r&&(e||t)?Je([e,t].filter(Boolean)):void 0,Wd=({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>zi({...Lx(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:o[1]||o[2],allMixed:kx(e),stripFinalNewline:i,verboseInfo:s,streamInfo:a}),Lx=({stdout:e,stderr:t,all:r},[,n,o])=>{let i=n||o;return i?n?o?{stream:r,buffer:i}:{stream:e,buffer:i}:{stream:t,buffer:i}:{stream:r,buffer:i}},kx=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode});var zd,Vd,Yd=f(()=>{"use strict";ot();De();zd=e=>nt(e,"ipc"),Vd=(e,t)=>{let r=hr(e);ce({type:"ipc",verboseMessage:r,fdNumber:"ipc",verboseInfo:t})}});var Hd,Jd,Kd=f(()=>{"use strict";Ve();Yd();be();Ei();Hd=async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:o,verboseInfo:i})=>{if(!n)return o;let s=zd(i),a=we(t,"ipc"),c=we(r,"ipc");for await(let u of xi({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(du(e,o,c),o.push(u)),s&&Vd(u,i);return o},Jd=async(e,t)=>(await Promise.allSettled([e]),t)});var Xd,Qd,$x,Bx,_x,Zd=f(()=>{"use strict";Xd=require("events");ze();$o();Ao();ko();Se();z();qi();Kd();No();Yi();Vi();bi();Mn();Qd=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:o,timeoutDuration:i,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,stripFinalNewline:u,ipc:l,ipcInput:d},context:m,verboseInfo:p,fileDescriptors:h,originalStreams:y,onInternalError:w,controller:S})=>{let T=_f(e,m),D={originalStreams:y,fileDescriptors:h,subprocess:e,exitPromise:T,propagating:!1},k=Gd({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:u,verboseInfo:p,streamInfo:D}),Q=Wd({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:u,verboseInfo:p,streamInfo:D}),te=[],he=Hd({subprocess:e,buffer:r,maxBuffer:n,ipc:l,ipcOutput:te,verboseInfo:p}),ae=$x(y,e,D),g=Bx(h,D);try{return await Promise.race([Promise.all([{},Uf(T),Promise.all(k),Q,he,Fl(e,d),...ae,...g]),w,_x(e,S),...Al(e,i,m,S),...Nc({subprocess:e,cancelSignal:s,gracefulCancel:a,context:m,controller:S}),...Ol({subprocess:e,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,context:m,controller:S})])}catch(O){return m.terminationReason??="other",Promise.all([{error:O},T,Promise.all(k.map(E=>Gi(E))),Gi(Q),Jd(he,te),Promise.allSettled(ae),Promise.allSettled(g)])}},$x=(e,t,r)=>e.map((n,o)=>n===t.stdio[o]?void 0:Yt(n,o,r)),Bx=(e,t)=>e.flatMap(({stdioItems:r},n)=>r.filter(({value:o,stream:i=o})=>ie(i,{checkOpen:!1})&&!re(i)).map(({type:o,value:i,stream:s=i})=>Yt(s,n,t,{isSameDirection:ee.has(o),stopOnExit:o==="native"}))),_x=async(e,{signal:t})=>{let[r]=await(0,Xd.once)(e,"error",{signal:t});throw r}});var em,Ht,xt,Ln=f(()=>{"use strict";ft();em=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap}),Ht=(e,t,r)=>{let n=e[r];n.has(t)||n.set(t,[]);let o=n.get(t),i=le();return o.push(i),{resolve:i.resolve.bind(i),promises:o}},xt=async({resolve:e,promises:t},r)=>{e();let[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n}});var Hi,Ji,tm,Ki,Xi,kn,$n,Qi=f(()=>{"use strict";Hi=require("stream/promises");Mn();Ji=async e=>{if(e!==void 0)try{await Ki(e)}catch{}},tm=async e=>{if(e!==void 0)try{await Xi(e)}catch{}},Ki=async e=>{await(0,Hi.finished)(e,{cleanup:!0,readable:!1,writable:!0})},Xi=async e=>{await(0,Hi.finished)(e,{cleanup:!0,readable:!0,writable:!1})},kn=async(e,t)=>{if(await e,t)throw t},$n=(e,t,r)=>{r&&!Fn(r)?e.destroy(r):t&&e.destroy()}});var rm,nm,om,Zi,es,ts,Nx,rs,ns,im,os=f(()=>{"use strict";rm=require("stream"),nm=require("util");qe();Re();Cn();ft();Ln();Qi();om=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:o=!0,preserveNewlines:i=!0}={})=>{let s=o||X.has(r),{subprocessStdout:a,waitReadableDestroy:c}=Zi(e,n,t),{readableEncoding:u,readableObjectMode:l,readableHighWaterMark:d}=es(a,s),{read:m,onStdoutDataDone:p}=ts({subprocessStdout:a,subprocess:e,binary:s,encoding:r,preserveNewlines:i}),h=new rm.Readable({read:m,destroy:(0,nm.callbackify)(ns.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:c})),highWaterMark:d,objectMode:l,encoding:u});return rs({subprocessStdout:a,onStdoutDataDone:p,readable:h,subprocess:e}),h},Zi=(e,t,r)=>{let n=dt(e,t),o=Ht(r,n,"readableDestroy");return{subprocessStdout:n,waitReadableDestroy:o}},es=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:ji},ts=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:o})=>{let i=le(),s=Pn({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:o});return{read(){Nx(this,s,i)},onStdoutDataDone:i}},Nx=async(e,t,r)=>{try{let{value:n,done:o}=await t.next();o?r.resolve():e.push(n)}catch{}},rs=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:o})=>{try{await Xi(e),await n,await Ji(o),await t,r.readable&&r.push(null)}catch(i){await Ji(o),im(r,i)}},ns=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await xt(r,t)&&(im(e,n),await kn(t,n))},im=(e,t)=>{$n(e,e.readable,t)}});var sm,is,am,ss,as,Ux,jx,cs,ls,cm,us=f(()=>{"use strict";sm=require("stream"),is=require("util");Re();Ln();Qi();am=({subprocess:e,concurrentStreams:t},{to:r}={})=>{let{subprocessStdin:n,waitWritableFinal:o,waitWritableDestroy:i}=ss(e,r,t),s=new sm.Writable({...as(n,e,o),destroy:(0,is.callbackify)(ls.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:o,waitWritableDestroy:i})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return cs(n,s),s},ss=(e,t,r)=>{let n=vr(e,t),o=Ht(r,n,"writableFinal"),i=Ht(r,n,"writableDestroy");return{subprocessStdin:n,waitWritableFinal:o,waitWritableDestroy:i}},as=(e,t,r)=>({write:Ux.bind(void 0,e),final:(0,is.callbackify)(jx.bind(void 0,e,t,r))}),Ux=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},jx=async(e,t,r)=>{await xt(r,t)&&(e.writable&&e.end(),await t)},cs=async(e,t,r)=>{try{await Ki(e),t.writable&&t.end()}catch(n){await tm(r),cm(t,n)}},ls=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},o)=>{await xt(r,t),await xt(n,t)&&(cm(e,o),await kn(t,o))},cm=(e,t)=>{$n(e,e.writable,t)}});var lm,um,fm,Gx,dm=f(()=>{"use strict";lm=require("stream"),um=require("util");qe();os();us();fm=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:o,binary:i=!0,preserveNewlines:s=!0}={})=>{let a=i||X.has(r),{subprocessStdout:c,waitReadableDestroy:u}=Zi(e,n,t),{subprocessStdin:l,waitWritableFinal:d,waitWritableDestroy:m}=ss(e,o,t),{readableEncoding:p,readableObjectMode:h,readableHighWaterMark:y}=es(c,a),{read:w,onStdoutDataDone:S}=ts({subprocessStdout:c,subprocess:e,binary:a,encoding:r,preserveNewlines:s}),T=new lm.Duplex({read:w,...as(l,e,d),destroy:(0,um.callbackify)(Gx.bind(void 0,{subprocessStdout:c,subprocessStdin:l,subprocess:e,waitReadableDestroy:u,waitWritableFinal:d,waitWritableDestroy:m})),readableHighWaterMark:y,writableHighWaterMark:l.writableHighWaterMark,readableObjectMode:h,writableObjectMode:l.writableObjectMode,encoding:p});return rs({subprocessStdout:c,onStdoutDataDone:S,readable:T,subprocess:e,subprocessStdin:l}),cs(l,T,c),T},Gx=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:o,waitWritableDestroy:i},s)=>{await Promise.all([ns({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},s),ls({subprocessStdin:t,subprocess:r,waitWritableFinal:o,waitWritableDestroy:i},s)])}});var fs,qx,mm=f(()=>{"use strict";qe();Re();Cn();fs=(e,t,{from:r,binary:n=!1,preserveNewlines:o=!1}={})=>{let i=n||X.has(t),s=dt(e,r),a=Pn({subprocessStdout:s,subprocess:e,binary:i,shouldEncode:!0,encoding:t,preserveNewlines:o});return qx(a,s,e)},qx=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}}});var pm,hm=f(()=>{"use strict";Ln();os();us();dm();mm();pm=(e,{encoding:t})=>{let r=em();e.readable=om.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=am.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=fm.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=fs.bind(void 0,e,t),e[Symbol.asyncIterator]=fs.bind(void 0,e,t,{})}});var ym,Wx,zx,gm=f(()=>{"use strict";ym=(e,t)=>{for(let[r,n]of zx){let o=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},Wx=(async()=>{})().constructor.prototype,zx=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Wx,e)])});var Sm,wm,bm,Vx,Yx,Hx,Jx,Kx,xm=f(()=>{"use strict";Sm=require("events"),wm=require("child_process");tn();uo();qo();Re();Wo();Oi();Nt();on();td();id();Ut();dd();Or();Sd();Fd();Yi();Zd();hm();ft();gm();bm=(e,t,r,n)=>{let{file:o,commandArguments:i,command:s,escapedCommand:a,startTime:c,verboseInfo:u,options:l,fileDescriptors:d}=Vx(e,t,r),{subprocess:m,promise:p}=Hx({file:o,commandArguments:i,options:l,startTime:c,verboseInfo:u,command:s,escapedCommand:a,fileDescriptors:d});return m.pipe=Rn.bind(void 0,{source:m,sourcePromise:p,boundOptions:{},createNested:n}),ym(m,p),ue.set(m,{options:l,fileDescriptors:d}),m},Vx=(e,t,r)=>{let{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=Sr(e,t,r),{file:a,commandArguments:c,options:u}=zr(e,t,r),l=Yx(u),d=od(l,s);return{file:a,commandArguments:c,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:l,fileDescriptors:d}},Yx=({timeout:e,signal:t,...r})=>{if(t!==void 0)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...r,timeoutDuration:e}},Hx=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:o,command:i,escapedCommand:s,fileDescriptors:a})=>{let c;try{c=(0,wm.spawn)(...Vr(e,t,r))}catch(h){return ed({error:h,command:i,escapedCommand:s,fileDescriptors:a,options:r,startTime:n,verboseInfo:o})}let u=new AbortController;(0,Sm.setMaxListeners)(Number.POSITIVE_INFINITY,u.signal);let l=[...c.stdio];fd(c,a,u),gd(c,r,u);let d={},m=le();c.kill=$c.bind(void 0,{kill:c.kill.bind(c),options:r,onInternalError:m,context:d,controller:u}),c.all=qd(c,r),pm(c,r),Kf(c,r);let p=Jx({subprocess:c,options:r,startTime:n,verboseInfo:o,fileDescriptors:a,originalStreams:l,command:i,escapedCommand:s,context:d,onInternalError:m,controller:u});return{subprocess:c,promise:p}},Jx=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:o,originalStreams:i,command:s,escapedCommand:a,context:c,onInternalError:u,controller:l})=>{let[d,[m,p],h,y,w]=await Qd({subprocess:e,options:t,context:c,verboseInfo:n,fileDescriptors:o,originalStreams:i,onInternalError:u,controller:l});l.abort(),u.resolve();let S=h.map((k,Q)=>Ee(k,t,Q)),T=Ee(y,t,"all"),D=Kx({errorInfo:d,exitCode:m,signal:p,stdio:S,all:T,ipcOutput:w,context:c,options:t,command:s,escapedCommand:a,startTime:r});return yt(D,n,t)},Kx=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,context:s,options:a,command:c,escapedCommand:u,startTime:l})=>"error"in e?_t({error:e.error,command:c,escapedCommand:u,timedOut:s.terminationReason==="timeout",isCanceled:s.terminationReason==="cancel"||s.terminationReason==="gracefulCancel",isGracefullyCanceled:s.terminationReason==="gracefulCancel",isMaxBuffer:e.error instanceof fe,isForcefullyTerminated:s.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,options:a,startTime:l,isSync:!1}):nn({command:c,escapedCommand:u,stdio:n,all:o,ipcOutput:i,options:a,startTime:l})});var Bn,Xx,Qx,Em=f(()=>{"use strict";ye();be();Bn=(e,t)=>{let r=Object.fromEntries(Object.entries(t).map(([n,o])=>[n,Xx(n,e[n],o)]));return{...e,...r}},Xx=(e,t,r)=>Qx.has(e)&&M(t)&&M(r)?{...t,...r}:r,Qx=new Set(["env",...no])});var Me,Zx,eE,Tm=f(()=>{"use strict";ye();Zn();Ws();zf();xm();Em();Me=(e,t,r,n)=>{let o=(s,a,c)=>Me(s,a,r,c),i=(...s)=>Zx({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:o},...s);return n!==void 0&&n(i,o,t),i},Zx=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:o},i,...s)=>{if(M(i))return o(e,Bn(r,i),n);let{file:a,commandArguments:c,options:u,isSync:l}=eE({mapArguments:e,firstArgument:i,nextArguments:s,deepOptions:t,boundOptions:r});return l?Wf(a,c,u):bm(a,c,u,o)},eE=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:o})=>{let i=Gs(t)?qs(t,r):[t,...r],[s,a,c]=or(...i),u=Bn(Bn(n,o),c),{file:l=s,commandArguments:d=a,options:m=u,isSync:p=!1}=e({file:s,commandArguments:a,options:u});return{file:l,commandArguments:d,options:m,isSync:p}}});var Om,Dm,Im,ds,tE,ms=f(()=>{"use strict";Om=({file:e,commandArguments:t})=>Im(e,t),Dm=({file:e,commandArguments:t})=>({...Im(e,t),isSync:!0}),Im=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);let[r,...n]=ds(e);return{file:r,commandArguments:n}},ds=e=>{if(typeof e!="string")throw new TypeError(`The command must be a string: ${String(e)}.`);let t=e.trim();if(t==="")return[];let r=[];for(let n of t.split(tE)){let o=r.at(-1);o&&o.endsWith("\\")?r[r.length-1]=`${o.slice(0,-1)} ${n}`:r.push(n)}return r},tE=/ +/g});var Am,vm,rE,Rm,nE,Pm,Cm=f(()=>{"use strict";Am=(e,t,r)=>{e.sync=t(rE,r),e.s=e.sync},vm=({options:e})=>Rm(e),rE=({options:e})=>({...Rm(e),isSync:!0}),Rm=e=>({options:{...nE(e),...e}}),nE=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Pm={preferLocal:!0}});var Fm={};Ps(Fm,{$:()=>lE,ExecaError:()=>Ue,ExecaSyncError:()=>je,execa:()=>oE,execaCommand:()=>sE,execaCommandSync:()=>aE,execaNode:()=>cE,execaSync:()=>iE,getCancelSignal:()=>mE,getEachMessage:()=>dE,getOneMessage:()=>fE,parseCommandString:()=>ds,sendMessage:()=>uE});var oE,iE,sE,aE,cE,lE,uE,fE,dE,mE,Mm=f(()=>{"use strict";Tm();ms();_o();Cm();Oi();ms();Ae();oE=Me(()=>({})),iE=Me(()=>({isSync:!0})),sE=Me(Om),aE=Me(Dm),cE=Me(vl),lE=Me(vm,{},Pm,Am),{sendMessage:uE,getOneMessage:fE,getEachMessage:dE,getCancelSignal:mE}=Xf()});var B=b(ps=>{"use strict";ps.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)=>{t.push((o,i)=>o!=null?n(o):r(i)),e.apply(this,t)})},"name",{value:e.name})};ps.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var $m=b((KF,km)=>{"use strict";var Le=require("constants"),hE=process.cwd,_n=null,yE=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return _n||(_n=hE.call(process)),_n};try{process.cwd()}catch{}typeof process.chdir=="function"&&(hs=process.chdir,process.chdir=function(e){_n=null,hs.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,hs));var hs;km.exports=gE;function gE(e){Le.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(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=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(l,d,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(l,d,m,p){p&&process.nextTick(p)},e.lchownSync=function(){}),yE==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(l){function d(m,p,h){var y=Date.now(),w=0;l(m,p,function S(T){if(T&&(T.code==="EACCES"||T.code==="EPERM"||T.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){e.stat(p,function(D,k){D&&D.code==="ENOENT"?l(m,p,S):h(T)})},w),w<100&&(w+=10);return}h&&h(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,l),d}(e.rename)),e.read=typeof e.read!="function"?e.read:function(l){function d(m,p,h,y,w,S){var T;if(S&&typeof S=="function"){var D=0;T=function(k,Q,te){if(k&&k.code==="EAGAIN"&&D<10)return D++,l.call(e,m,p,h,y,w,T);S.apply(this,arguments)}}return l.call(e,m,p,h,y,w,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,l),d}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(l){return function(d,m,p,h,y){for(var w=0;;)try{return l.call(e,d,m,p,h,y)}catch(S){if(S.code==="EAGAIN"&&w<10){w++;continue}throw S}}}(e.readSync);function t(l){l.lchmod=function(d,m,p){l.open(d,Le.O_WRONLY|Le.O_SYMLINK,m,function(h,y){if(h){p&&p(h);return}l.fchmod(y,m,function(w){l.close(y,function(S){p&&p(w||S)})})})},l.lchmodSync=function(d,m){var p=l.openSync(d,Le.O_WRONLY|Le.O_SYMLINK,m),h=!0,y;try{y=l.fchmodSync(p,m),h=!1}finally{if(h)try{l.closeSync(p)}catch{}else l.closeSync(p)}return y}}function r(l){Le.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(d,m,p,h){l.open(d,Le.O_SYMLINK,function(y,w){if(y){h&&h(y);return}l.futimes(w,m,p,function(S){l.close(w,function(T){h&&h(S||T)})})})},l.lutimesSync=function(d,m,p){var h=l.openSync(d,Le.O_SYMLINK),y,w=!0;try{y=l.futimesSync(h,m,p),w=!1}finally{if(w)try{l.closeSync(h)}catch{}else l.closeSync(h)}return y}):l.futimes&&(l.lutimes=function(d,m,p,h){h&&process.nextTick(h)},l.lutimesSync=function(){})}function n(l){return l&&function(d,m,p){return l.call(e,d,m,function(h){u(h)&&(h=null),p&&p.apply(this,arguments)})}}function o(l){return l&&function(d,m){try{return l.call(e,d,m)}catch(p){if(!u(p))throw p}}}function i(l){return l&&function(d,m,p,h){return l.call(e,d,m,p,function(y){u(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(d,m,p){try{return l.call(e,d,m,p)}catch(h){if(!u(h))throw h}}}function a(l){return l&&function(d,m,p){typeof m=="function"&&(p=m,m=null);function h(y,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),p&&p.apply(this,arguments)}return m?l.call(e,d,m,h):l.call(e,d,h)}}function c(l){return l&&function(d,m){var p=m?l.call(e,d,m):l.call(e,d);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function u(l){if(!l||l.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var Nm=b((XF,_m)=>{"use strict";var Bm=require("stream").Stream;_m.exports=SE;function SE(e){return{ReadStream:t,WriteStream:r};function t(n,o){if(!(this instanceof t))return new t(n,o);Bm.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var s=Object.keys(o),a=0,c=s.length;a<c;a++){var u=s[a];this[u]=o[u]}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(){i._read()});return}e.open(this.path,this.flags,this.mode,function(l,d){if(l){i.emit("error",l),i.readable=!1;return}i.fd=d,i.emit("open",d),i._read()})}function r(n,o){if(!(this instanceof r))return new r(n,o);Bm.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var i=Object.keys(o),s=0,a=i.length;s<a;s++){var c=i[s];this[c]=o[c]}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 jm=b((QF,Um)=>{"use strict";Um.exports=bE;var wE=Object.getPrototypeOf||function(e){return e.__proto__};function bE(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:wE(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Tt=b((ZF,Ss)=>{"use strict";var C=require("fs"),xE=$m(),EE=Nm(),TE=jm(),Nn=require("util"),q,jn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(q=Symbol.for("graceful-fs.queue"),jn=Symbol.for("graceful-fs.previous")):(q="___graceful-fs.queue",jn="___graceful-fs.previous");function OE(){}function Wm(e,t){Object.defineProperty(e,q,{get:function(){return t}})}var Xe=OE;Nn.debuglog?Xe=Nn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Xe=function(){var e=Nn.format.apply(Nn,arguments);e="GFS4: "+e.split(/\n/).join(`
44
- GFS4: `),console.error(e)});C[q]||(Gm=global[q]||[],Wm(C,Gm),C.close=function(e){function t(r,n){return e.call(C,r,function(o){o||qm(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,jn,{value:e}),t}(C.close),C.closeSync=function(e){function t(r){e.apply(C,arguments),qm()}return Object.defineProperty(t,jn,{value:e}),t}(C.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Xe(C[q]),require("assert").equal(C[q].length,0)}));var Gm;global[q]||Wm(global,C[q]);Ss.exports=ys(TE(C));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!C.__patched&&(Ss.exports=ys(C),C.__patched=!0);function ys(e){xE(e),e.gracefulify=ys,e.createReadStream=Q,e.createWriteStream=te;var t=e.readFile;e.readFile=r;function r(g,O,E){return typeof O=="function"&&(E=O,O=null),N(g,O,E);function N(U,$,P,F){return t(U,$,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Et([N,[U,$,P],A,F||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=o;function o(g,O,E,N){return typeof E=="function"&&(N=E,E=null),U(g,O,E,N);function U($,P,F,A,j){return n($,P,F,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Et([U,[$,P,F,A],R,j||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var i=e.appendFile;i&&(e.appendFile=s);function s(g,O,E,N){return typeof E=="function"&&(N=E,E=null),U(g,O,E,N);function U($,P,F,A,j){return i($,P,F,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Et([U,[$,P,F,A],R,j||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(g,O,E,N){return typeof E=="function"&&(N=E,E=0),U(g,O,E,N);function U($,P,F,A,j){return a($,P,F,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Et([U,[$,P,F,A],R,j||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}var u=e.readdir;e.readdir=d;var l=/^v[0-5]\./;function d(g,O,E){typeof O=="function"&&(E=O,O=null);var N=l.test(process.version)?function(P,F,A,j){return u(P,U(P,F,A,j))}:function(P,F,A,j){return u(P,F,U(P,F,A,j))};return N(g,O,E);function U($,P,F,A){return function(j,R){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Et([N,[$,P,F],j,A||Date.now(),Date.now()]):(R&&R.sort&&R.sort(),typeof F=="function"&&F.call(this,j,R))}}}if(process.version.substr(0,4)==="v0.8"){var m=EE(e);S=m.ReadStream,D=m.WriteStream}var p=e.ReadStream;p&&(S.prototype=Object.create(p.prototype),S.prototype.open=T);var h=e.WriteStream;h&&(D.prototype=Object.create(h.prototype),D.prototype.open=k),Object.defineProperty(e,"ReadStream",{get:function(){return S},set:function(g){S=g},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(g){D=g},enumerable:!0,configurable:!0});var y=S;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(g){y=g},enumerable:!0,configurable:!0});var w=D;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(g){w=g},enumerable:!0,configurable:!0});function S(g,O){return this instanceof S?(p.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function T(){var g=this;ae(g.path,g.flags,g.mode,function(O,E){O?(g.autoClose&&g.destroy(),g.emit("error",O)):(g.fd=E,g.emit("open",E),g.read())})}function D(g,O){return this instanceof D?(h.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function k(){var g=this;ae(g.path,g.flags,g.mode,function(O,E){O?(g.destroy(),g.emit("error",O)):(g.fd=E,g.emit("open",E))})}function Q(g,O){return new e.ReadStream(g,O)}function te(g,O){return new e.WriteStream(g,O)}var he=e.open;e.open=ae;function ae(g,O,E,N){return typeof E=="function"&&(N=E,E=null),U(g,O,E,N);function U($,P,F,A,j){return he($,P,F,function(R,xO){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Et([U,[$,P,F,A],R,j||Date.now(),Date.now()]):typeof A=="function"&&A.apply(this,arguments)})}}return e}function Et(e){Xe("ENQUEUE",e[0].name,e[1]),C[q].push(e),gs()}var Un;function qm(){for(var e=Date.now(),t=0;t<C[q].length;++t)C[q][t].length>2&&(C[q][t][3]=e,C[q][t][4]=e);gs()}function gs(){if(clearTimeout(Un),Un=void 0,C[q].length!==0){var e=C[q].shift(),t=e[0],r=e[1],n=e[2],o=e[3],i=e[4];if(o===void 0)Xe("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){Xe("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-o,1),u=Math.min(c*1.2,100);a>=u?(Xe("RETRY",t.name,r),t.apply(null,r.concat([o]))):C[q].push(e)}Un===void 0&&(Un=setTimeout(gs,0))}}});var Y=b(Te=>{"use strict";var zm=B().fromCallback,V=Tt(),DE=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof V[e]=="function");Object.assign(Te,V);DE.forEach(e=>{Te[e]=zm(V[e])});Te.exists=function(e,t){return typeof t=="function"?V.exists(e,t):new Promise(r=>V.exists(e,r))};Te.read=function(e,t,r,n,o,i){return typeof i=="function"?V.read(e,t,r,n,o,i):new Promise((s,a)=>{V.read(e,t,r,n,o,(c,u,l)=>{if(c)return a(c);s({bytesRead:u,buffer:l})})})};Te.write=function(e,t,...r){return typeof r[r.length-1]=="function"?V.write(e,t,...r):new Promise((n,o)=>{V.write(e,t,...r,(i,s,a)=>{if(i)return o(i);n({bytesWritten:s,buffer:a})})})};Te.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?V.readv(e,t,...r):new Promise((n,o)=>{V.readv(e,t,...r,(i,s,a)=>{if(i)return o(i);n({bytesRead:s,buffers:a})})})};Te.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?V.writev(e,t,...r):new Promise((n,o)=>{V.writev(e,t,...r,(i,s,a)=>{if(i)return o(i);n({bytesWritten:s,buffers:a})})})};typeof V.realpath.native=="function"?Te.realpath.native=zm(V.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Ym=b((tM,Vm)=>{"use strict";var IE=require("path");Vm.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(IE.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var Xm=b((rM,ws)=>{"use strict";var Hm=Y(),{checkPath:Jm}=Ym(),Km=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};ws.exports.makeDir=async(e,t)=>(Jm(e),Hm.mkdir(e,{mode:Km(t),recursive:!0}));ws.exports.makeDirSync=(e,t)=>(Jm(e),Hm.mkdirSync(e,{mode:Km(t),recursive:!0}))});var se=b((nM,Qm)=>{"use strict";var AE=B().fromPromise,{makeDir:vE,makeDirSync:bs}=Xm(),xs=AE(vE);Qm.exports={mkdirs:xs,mkdirsSync:bs,mkdirp:xs,mkdirpSync:bs,ensureDir:xs,ensureDirSync:bs}});var ke=b((oM,ep)=>{"use strict";var RE=B().fromPromise,Zm=Y();function PE(e){return Zm.access(e).then(()=>!0).catch(()=>!1)}ep.exports={pathExists:RE(PE),pathExistsSync:Zm.existsSync}});var Es=b((iM,tp)=>{"use strict";var Ot=Y(),CE=B().fromPromise;async function FE(e,t,r){let n=await Ot.open(e,"r+"),o=null;try{await Ot.futimes(n,t,r)}finally{try{await Ot.close(n)}catch(i){o=i}}if(o)throw o}function ME(e,t,r){let n=Ot.openSync(e,"r+");return Ot.futimesSync(n,t,r),Ot.closeSync(n)}tp.exports={utimesMillis:CE(FE),utimesMillisSync:ME}});var Qe=b((sM,ip)=>{"use strict";var Dt=Y(),_=require("path"),rp=B().fromPromise;function LE(e,t,r){let n=r.dereference?o=>Dt.stat(o,{bigint:!0}):o=>Dt.lstat(o,{bigint:!0});return Promise.all([n(e),n(t).catch(o=>{if(o.code==="ENOENT")return null;throw o})]).then(([o,i])=>({srcStat:o,destStat:i}))}function kE(e,t,r){let n,o=r.dereference?s=>Dt.statSync(s,{bigint:!0}):s=>Dt.lstatSync(s,{bigint:!0}),i=o(e);try{n=o(t)}catch(s){if(s.code==="ENOENT")return{srcStat:i,destStat:null};throw s}return{srcStat:i,destStat:n}}async function $E(e,t,r,n){let{srcStat:o,destStat:i}=await LE(e,t,n);if(i){if(Jt(o,i)){let s=_.basename(e),a=_.basename(t);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:o,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!o.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(o.isDirectory()&&Ts(e,t))throw new Error(Gn(e,t,r));return{srcStat:o,destStat:i}}function BE(e,t,r,n){let{srcStat:o,destStat:i}=kE(e,t,n);if(i){if(Jt(o,i)){let s=_.basename(e),a=_.basename(t);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:o,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!o.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(o.isDirectory()&&Ts(e,t))throw new Error(Gn(e,t,r));return{srcStat:o,destStat:i}}async function np(e,t,r,n){let o=_.resolve(_.dirname(e)),i=_.resolve(_.dirname(r));if(i===o||i===_.parse(i).root)return;let s;try{s=await Dt.stat(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Jt(t,s))throw new Error(Gn(e,r,n));return np(e,t,i,n)}function op(e,t,r,n){let o=_.resolve(_.dirname(e)),i=_.resolve(_.dirname(r));if(i===o||i===_.parse(i).root)return;let s;try{s=Dt.statSync(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Jt(t,s))throw new Error(Gn(e,r,n));return op(e,t,i,n)}function Jt(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Ts(e,t){let r=_.resolve(e).split(_.sep).filter(o=>o),n=_.resolve(t).split(_.sep).filter(o=>o);return r.every((o,i)=>n[i]===o)}function Gn(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ip.exports={checkPaths:rp($E),checkPathsSync:BE,checkParentPaths:rp(np),checkParentPathsSync:op,isSrcSubdir:Ts,areIdentical:Jt}});var up=b((aM,lp)=>{"use strict";var W=Y(),Kt=require("path"),{mkdirs:_E}=se(),{pathExists:NE}=ke(),{utimesMillis:UE}=Es(),Xt=Qe();async function jE(e,t,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
43
+ if (condition) { yield value; }`)}});var Tf,Of,hn,ib,sb,ab,mi=f(()=>{"use strict";Tf=require("buffer"),Of=require("string_decoder");X();hn=(e,t,r)=>{if(r)return;if(e)return{transform:ib.bind(void 0,new TextEncoder)};let n=new Of.StringDecoder(t);return{transform:sb.bind(void 0,n),final:ab.bind(void 0,n)}},ib=function*(e,t){Tf.Buffer.isBuffer(t)?yield ge(t):typeof t=="string"?yield e.encode(t):yield t},sb=function*(e,t){yield $(t)?e.write(t):t},ab=function*(e){let t=e.end();t!==""&&(yield t)}});var pi,hi,yn,Df,cb,If,lb,vf=f(()=>{"use strict";pi=require("util"),hi=(0,pi.callbackify)(async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(let o of t.currentIterable)n.push(o)}finally{delete t.currentIterable}}),yn=async function*(e,t,r){if(r===t.length){yield e;return}let{transform:n=lb}=t[r];for await(let o of n(e))yield*yn(o,t,r+1)},Df=async function*(e){for(let[t,{final:r}]of Object.entries(e))yield*cb(r,Number(t),e)},cb=async function*(e,t,r){if(e!==void 0)for await(let n of e())yield*yn(n,r,t+1)},If=(0,pi.callbackify)(async({currentIterable:e},t)=>{if(e!==void 0){await(t?e.throw(t):e.return());return}if(t)throw t}),lb=function*(e){yield e}});var yi,Af,Je,Gt,ub,fb,gi=f(()=>{"use strict";yi=(e,t,r,n)=>{try{for(let o of e(...t))r.push(o);n()}catch(o){n(o)}},Af=(e,t)=>[...t.flatMap(r=>[...Je(r,e,0)]),...Gt(e)],Je=function*(e,t,r){if(r===t.length){yield e;return}let{transform:n=fb}=t[r];for(let o of n(e))yield*Je(o,t,r+1)},Gt=function*(e){for(let[t,{final:r}]of Object.entries(e))yield*ub(r,Number(t),e)},ub=function*(e,t,r){if(e!==void 0)for(let n of e())yield*Je(n,r,t+1)},fb=function*(e){yield e}});var qt,Si,gn,Rf,Sn=f(()=>{"use strict";qt=require("stream");z();pn();Ef();mi();vf();gi();Si=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:o},optionName:i},{encoding:s})=>{let a={},l=Rf(e,s,i),u=He(t),c=He(r),d=u?hi.bind(void 0,yn,a):yi.bind(void 0,Je),m=u||c?hi.bind(void 0,Df,a):yi.bind(void 0,Gt),p=u||c?If.bind(void 0,a):void 0;return{stream:new qt.Transform({writableObjectMode:n,writableHighWaterMark:(0,qt.getDefaultHighWaterMark)(n),readableObjectMode:o,readableHighWaterMark:(0,qt.getDefaultHighWaterMark)(o),transform(y,w,S){d([y,l,0],this,S)},flush(y){m([l],this,y)},destroy:p})}},gn=(e,t,r,n)=>{let o=t.filter(({type:s})=>s==="generator"),i=n?o.reverse():o;for(let{value:s,optionName:a}of i){let l=Rf(s,r,a);e=Af(l,e)}return e},Rf=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:o,preserveNewlines:i},s,a)=>{let l={};return[{transform:wf(n,a)},hn(r,s,n),mn(r,i,n,l),{transform:e,final:t},{transform:bf(o,a)},gf({binary:r,preserveNewlines:i,readableObjectMode:o,state:l})].filter(Boolean)}});var Pf,db,mb,pb,hb,Cf=f(()=>{"use strict";Sn();X();z();Pf=(e,t)=>{for(let r of db(e))mb(e,r,t)},db=e=>new Set(Object.entries(e).filter(([,{direction:t}])=>t==="input").map(([t])=>Number(t))),mb=(e,t,r)=>{let{stdioItems:n}=e[t],o=n.filter(({contents:a})=>a!==void 0);if(o.length===0)return;if(t!==0){let[{type:a,optionName:l}]=o;throw new TypeError(`Only the \`stdin\` option, not \`${l}\`, can be ${Ce[a]} with synchronous methods.`)}let s=o.map(({contents:a})=>a).map(a=>pb(a,n));r.input=At(s)},pb=(e,t)=>{let r=gn(e,t,"utf8",!0);return hb(r),At(r)},hb=e=>{let t=e.find(r=>typeof r!="string"&&!$(r));if(t!==void 0)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)}});var wn,yb,gb,Ff,Mf,Sb,Lf,wi=f(()=>{"use strict";We();z();it();De();wn=({stdioItems:e,encoding:t,verboseInfo:r,fdNumber:n})=>n!=="all"&&ot(r,n)&&!Q.has(t)&&yb(n)&&(e.some(({type:o,value:i})=>o==="native"&&gb.has(i))||e.every(({type:o})=>te.has(o))),yb=e=>e===1||e===2,gb=new Set(["pipe","overlapped"]),Ff=async(e,t,r,n)=>{for await(let o of e)Sb(t)||Lf(o,r,n)},Mf=(e,t,r)=>{for(let n of e)Lf(n,t,r)},Sb=e=>e._readableState.pipes.length>0,Lf=(e,t,r)=>{let n=yr(e);le({type:"output",verboseMessage:n,fdNumber:t,verboseInfo:r})}});var bn,$f,wb,bb,xb,Eb,Tb,kf=f(()=>{"use strict";bn=require("fs");wi();Sn();pn();X();z();Ye();$f=({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:o})=>{if(t===null)return{output:Array.from({length:3})};let i={},s=new Set([]);return{output:t.map((l,u)=>wb({result:l,fileDescriptors:e,fdNumber:u,state:i,outputFiles:s,isMaxBuffer:n,verboseInfo:o},r)),...i}},wb=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:o,isMaxBuffer:i,verboseInfo:s},{buffer:a,encoding:l,lines:u,stripFinalNewline:c,maxBuffer:d})=>{if(e===null)return;let m=yu(e,i,d),p=ge(m),{stdioItems:h,objectMode:y}=t[r],w=bb([p],h,l,n),{serializedResult:S,finalResult:T=S}=xb({chunks:w,objectMode:y,encoding:l,lines:u,stripFinalNewline:c,fdNumber:r});Eb({serializedResult:S,fdNumber:r,state:n,verboseInfo:s,encoding:l,stdioItems:h,objectMode:y});let D=a[r]?T:void 0;try{return n.error===void 0&&Tb(S,h,o),D}catch(k){return n.error=k,D}},bb=(e,t,r,n)=>{try{return gn(e,t,r,!1)}catch(o){return n.error=o,e}},xb=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:o,fdNumber:i})=>{if(t)return{serializedResult:e};if(r==="buffer")return{serializedResult:At(e)};let s=_s(e,r);return n[i]?{serializedResult:s,finalResult:di(s,!o[i],t)}:{serializedResult:s}},Eb=({serializedResult:e,fdNumber:t,state:r,verboseInfo:n,encoding:o,stdioItems:i,objectMode:s})=>{if(!wn({stdioItems:i,encoding:o,verboseInfo:n,fdNumber:t}))return;let a=di(e,!1,s);try{Mf(a,t,n)}catch(l){r.error??=l}},Tb=(e,t,r)=>{for(let{path:n,append:o}of t.filter(({type:i})=>ln.has(i))){let i=typeof n=="string"?n:n.toString();o||r.has(i)?(0,bn.appendFileSync)(n,e):(r.add(i),(0,bn.writeFileSync)(n,e))}}});var Bf,_f=f(()=>{"use strict";X();jt();Bf=([,e,t],r)=>{if(r.all)return e===void 0?t:t===void 0?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,Ee(t,r,"all")]:Array.isArray(t)?[Ee(e,r,"all"),...t]:$(e)&&$(t)?to([e,t]):`${e}${t}`}});var xn,Nf,Ob,Uf,jf,Db,bi,xi=f(()=>{"use strict";xn=require("events");ve();Nf=async(e,t)=>{let[r,n]=await Ob(e);return t.isForcefullyTerminated??=!1,[r,n]},Ob=async e=>{let[t,r]=await Promise.allSettled([(0,xn.once)(e,"spawn"),(0,xn.once)(e,"exit")]);return t.status==="rejected"?[]:r.status==="rejected"?Uf(e):r.value},Uf=async e=>{try{return await(0,xn.once)(e,"exit")}catch{return Uf(e)}},jf=async e=>{let[t,r]=await e;if(!Db(t,r)&&bi(t,r))throw new oe;return[t,r]},Db=(e,t)=>e===void 0&&t===void 0,bi=(e,t)=>e!==0||t!==null});var Gf,Ib,qf=f(()=>{"use strict";ve();Ye();xi();Gf=({error:e,status:t,signal:r,output:n},{maxBuffer:o})=>{let i=Ib(e,t,r),s=i?.code==="ETIMEDOUT",a=hu(i,n,o);return{resultError:i,exitCode:t,signal:r,timedOut:s,isMaxBuffer:a}},Ib=(e,t,r)=>e!==void 0?e:bi(t,r)?new oe:void 0});var Wf,zf,vb,Ab,Rb,En,Pb,Cb,Fb,Mb,Vf=f(()=>{"use strict";Wf=require("child_process");fo();Wo();zo();Ut();sn();pf();jt();Cf();kf();Ye();_f();qf();zf=(e,t,r)=>{let{file:n,commandArguments:o,command:i,escapedCommand:s,startTime:a,verboseInfo:l,options:u,fileDescriptors:c}=vb(e,t,r),d=Pb({file:n,commandArguments:o,options:u,command:i,escapedCommand:s,verboseInfo:l,fileDescriptors:c,startTime:a});return gt(d,l,u)},vb=(e,t,r)=>{let{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=wr(e,t,r),a=Ab(r),{file:l,commandArguments:u,options:c}=Vr(e,t,a);Rb(c);let d=df(c,s);return{file:l,commandArguments:u,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:c,fileDescriptors:d}},Ab=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,Rb=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&En("ipcInput"),e&&En("ipc: true"),r&&En("detached: true"),n&&En("cancelSignal")},En=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},Pb=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,verboseInfo:i,fileDescriptors:s,startTime:a})=>{let l=Cb({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:s,startTime:a});if(l.failed)return l;let{resultError:u,exitCode:c,signal:d,timedOut:m,isMaxBuffer:p}=Gf(l,r),{output:h,error:y=u}=$f({fileDescriptors:s,syncResult:l,options:r,isMaxBuffer:p,verboseInfo:i}),w=h.map((T,D)=>Ee(T,r,D)),S=Ee(Bf(h,r),r,"all");return Mb({error:y,exitCode:c,signal:d,timedOut:m,isMaxBuffer:p,stdio:w,all:S,options:r,command:n,escapedCommand:o,startTime:a})},Cb=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:i,startTime:s})=>{try{Pf(i,r);let a=Fb(r);return(0,Wf.spawnSync)(...Yr(e,t,a))}catch(a){return yt({error:a,command:n,escapedCommand:o,fileDescriptors:i,options:r,startTime:s,isSync:!0})}},Fb=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:nn(t)}),Mb=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:o,stdio:i,all:s,options:a,command:l,escapedCommand:u,startTime:c})=>e===void 0?on({command:l,escapedCommand:u,stdio:i,all:s,ipcOutput:[],options:a,startTime:c}):Nt({error:e,command:l,escapedCommand:u,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:o,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:i,all:s,ipcOutput:[],options:a,startTime:c,isSync:!0})});var wt,Yf,Lb,$b,kb,Bb,Hf=f(()=>{"use strict";wt=require("events");ft();Lt();Mt();Yf=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0,filter:i}={})=>(lt({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:_r(e)}),Lb({anyProcess:e,channel:t,isSubprocess:r,filter:i,reference:o})),Lb=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:o})=>{Cr(t,o);let i=Pe(e,t,r),s=new AbortController;try{return await Promise.race([$b(i,n,s),kb(i,r,s),Bb(i,r,s)])}catch(a){throw ut(e),a}finally{s.abort(),Fr(t,o)}},$b=async(e,t,{signal:r})=>{if(t===void 0){let[n]=await(0,wt.once)(e,"message",{signal:r});return n}for await(let[n]of(0,wt.on)(e,"message",{signal:r}))if(t(n))return n},kb=async(e,t,{signal:r})=>{await(0,wt.once)(e,"disconnect",{signal:r}),jc(t)},Bb=async(e,t,{signal:r})=>{let[n]=await(0,wt.once)(e,"strict:error",{signal:r});throw vr(n,t)}});var Wt,Kf,Ei,_b,Nb,Ub,Jf,Ti=f(()=>{"use strict";Wt=require("events");ft();Lt();Mt();Kf=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0}={})=>Ei({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:o}),Ei=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:o,reference:i})=>{lt({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:_r(e)}),Cr(t,i);let s=Pe(e,t,r),a=new AbortController,l={};return _b(e,s,a),Nb({ipcEmitter:s,isSubprocess:r,controller:a,state:l}),Ub({anyProcess:e,channel:t,ipcEmitter:s,isSubprocess:r,shouldAwait:o,controller:a,state:l,reference:i})},_b=async(e,t,r)=>{try{await(0,Wt.once)(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},Nb=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{let[o]=await(0,Wt.once)(e,"strict:error",{signal:r.signal});n.error=vr(o,t),r.abort()}catch{}},Ub=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:o,controller:i,state:s,reference:a}){try{for await(let[l]of(0,Wt.on)(r,"message",{signal:i.signal}))Jf(s),yield l}catch{Jf(s)}finally{i.abort(),Fr(t,a),n||ut(e),o&&await e}},Jf=({error:e})=>{if(e)throw e}});var Oi,Xf,Qf,Zf,Di=f(()=>{"use strict";Oi=L(require("process"),1);qr();Hf();Ti();kr();Xf=(e,{ipc:t})=>{Object.assign(e,Zf(e,!1,t))},Qf=()=>{let e=Oi.default,t=!0,r=Oi.default.channel!==void 0;return{...Zf(e,t,r),getCancelSignal:El.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}},Zf=(e,t,r)=>({sendMessage:Gr.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:Yf.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:Kf.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})})});var ed,Fe,td,jb,zt,Gb,qb,Wb,zb,rd=f(()=>{"use strict";ed=require("child_process"),Fe=require("stream");dn();Ut();sn();td=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,verboseInfo:s})=>{ci(n);let a=new ed.ChildProcess;jb(a,n),Object.assign(a,{readable:Gb,writable:qb,duplex:Wb});let l=yt({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:!1}),u=zb(l,s,o);return{subprocess:a,promise:u}},jb=(e,t)=>{let r=zt(),n=zt(),o=zt(),i=Array.from({length:t.length-3},zt),s=zt(),a=[r,n,o,...i];Object.assign(e,{stdin:r,stdout:n,stderr:o,all:s,stdio:a})},zt=()=>{let e=new Fe.PassThrough;return e.end(),e},Gb=()=>new Fe.Readable({read(){}}),qb=()=>new Fe.Writable({write(){}}),Wb=()=>new Fe.Duplex({read(){},write(){}}),zb=async(e,t,r)=>gt(e,t,r)});var bt,od,pe,id,Vt,nd,Vb,sd=f(()=>{"use strict";bt=require("fs"),od=require("buffer"),pe=require("stream");Sn();dn();z();id=(e,t)=>fn(Vb,e,t,!1),Vt=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${Ce[e]}.`)},nd={fileNumber:Vt,generator:Si,asyncGenerator:Si,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){let n=t||r;return{stream:pe.Duplex.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Vb={input:{...nd,fileUrl:({value:e})=>({stream:(0,bt.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,bt.createReadStream)(e)}),webStream:({value:e})=>({stream:pe.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:pe.Readable.from(e)}),asyncIterable:({value:e})=>({stream:pe.Readable.from(e)}),string:({value:e})=>({stream:pe.Readable.from(e)}),uint8Array:({value:e})=>({stream:pe.Readable.from(od.Buffer.from(e))})},output:{...nd,fileUrl:({value:e})=>({stream:(0,bt.createWriteStream)(e)}),filePath:({value:{file:e,append:t}})=>({stream:(0,bt.createWriteStream)(e,t?{flags:"a"}:{})}),webStream:({value:e})=>({stream:pe.Writable.fromWeb(e)}),iterable:Vt,asyncIterable:Vt,string:Vt,uint8Array:Vt}}});function Ke(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(let o of e)vi(o);let t=e.some(({readableObjectMode:o})=>o),r=Yb(e,t),n=new Ii({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(let o of e)n.add(o);return n}var Yt,On,Ai,Yb,Ii,Hb,Jb,Kb,vi,Xb,Qb,Zb,ex,tx,ld,ud,Ri,fd,rx,Tn,ad,cd,Dn=f(()=>{"use strict";Yt=require("events"),On=require("stream"),Ai=require("stream/promises");Yb=(e,t)=>{if(e.length===0)return(0,On.getDefaultHighWaterMark)(t);let r=e.filter(({readableObjectMode:n})=>n===t).map(({readableHighWaterMark:n})=>n);return Math.max(...r)},Ii=class extends On.PassThrough{#t=new Set([]);#r=new Set([]);#e=new Set([]);#n;#i=Symbol("unpipe");#o=new WeakMap;add(t){if(vi(t),this.#t.has(t))return;this.#t.add(t),this.#n??=Hb(this,this.#t,this.#i);let r=Xb({passThroughStream:this,stream:t,streams:this.#t,ended:this.#r,aborted:this.#e,onFinished:this.#n,unpipeEvent:this.#i});this.#o.set(t,r),t.pipe(this,{end:!1})}async remove(t){if(vi(t),!this.#t.has(t))return!1;let r=this.#o.get(t);return r===void 0?!1:(this.#o.delete(t),t.unpipe(this),await r,!0)}},Hb=async(e,t,r)=>{Tn(e,ad);let n=new AbortController;try{await Promise.race([Jb(e,n),Kb(e,t,r,n)])}finally{n.abort(),Tn(e,-ad)}},Jb=async(e,{signal:t})=>{try{await(0,Ai.finished)(e,{signal:t,cleanup:!0})}catch(r){throw ld(e,r),r}},Kb=async(e,t,r,{signal:n})=>{for await(let[o]of(0,Yt.on)(e,"unpipe",{signal:n}))t.has(o)&&o.emit(r)},vi=e=>{if(typeof e?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Xb=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,onFinished:i,unpipeEvent:s})=>{Tn(e,cd);let a=new AbortController;try{await Promise.race([Qb(i,t,a),Zb({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:a}),ex({stream:t,streams:r,ended:n,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),Tn(e,-cd)}r.size>0&&r.size===n.size+o.size&&(n.size===0&&o.size>0?Ri(e):tx(e))},Qb=async(e,t,{signal:r})=>{try{await e,r.aborted||Ri(t)}catch(n){r.aborted||ld(t,n)}},Zb=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:{signal:i}})=>{try{await(0,Ai.finished)(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(s){if(i.aborted||!r.has(t))return;ud(s)?o.add(t):fd(e,s)}},ex=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:o,controller:{signal:i}})=>{if(await(0,Yt.once)(e,o,{signal:i}),!e.readable)return(0,Yt.once)(i,"abort",{signal:i});t.delete(e),r.delete(e),n.delete(e)},tx=e=>{e.writable&&e.end()},ld=(e,t)=>{ud(t)?Ri(e):fd(e,t)},ud=e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE",Ri=e=>{(e.readable||e.writable)&&e.destroy()},fd=(e,t)=>{e.destroyed||(e.once("error",rx),e.destroy(t))},rx=()=>{},Tn=(e,t)=>{let r=e.getMaxListeners();r!==0&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},ad=2,cd=1});var Pi,xt,nx,Ci,ox,Fi,In=f(()=>{"use strict";Pi=require("stream/promises");Se();xt=(e,t)=>{e.pipe(t),nx(e,t),ox(e,t)},nx=async(e,t)=>{if(!(ne(e)||ne(t))){try{await(0,Pi.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Ci(t)}},Ci=e=>{e.writable&&e.end()},ox=async(e,t)=>{if(!(ne(e)||ne(t))){try{await(0,Pi.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}Fi(e)}},Fi=e=>{e.readable&&e.destroy()}});var dd,ix,sx,ax,cx,lx,md=f(()=>{"use strict";Dn();Se();Pr();z();In();dd=(e,t,r)=>{let n=new Map;for(let[o,{stdioItems:i,direction:s}]of Object.entries(t)){for(let{stream:a}of i.filter(({type:l})=>te.has(l)))ix(e,a,s,o);for(let{stream:a}of i.filter(({type:l})=>!te.has(l)))ax({subprocess:e,stream:a,direction:s,fdNumber:o,pipeGroups:n,controller:r})}for(let[o,i]of n.entries()){let s=i.length===1?i[0]:Ke(i);xt(s,o)}},ix=(e,t,r,n)=>{r==="output"?xt(e.stdio[n],t):xt(t,e.stdio[n]);let o=sx[n];o!==void 0&&(e[o]=t),e.stdio[n]=t},sx=["stdin","stdout","stderr"],ax=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:o,controller:i})=>{if(t===void 0)return;cx(t,i);let[s,a]=r==="output"?[t,e.stdio[n]]:[e.stdio[n],t],l=o.get(s)??[];o.set(s,[...l,a])},cx=(e,{signal:t})=>{ne(e)&&qe(e,lx,t)},lx=2});var Xe,pd=f(()=>{"use strict";Xe=[];Xe.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Xe.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Xe.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var vn,Mi,Li,ux,$i,An,fx,ki,Bi,_i,hd,OP,DP,yd=f(()=>{"use strict";pd();vn=e=>!!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",Mi=Symbol.for("signal-exit emitter"),Li=globalThis,ux=Object.defineProperty.bind(Object),$i=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Li[Mi])return Li[Mi];ux(Li,Mi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let n=this.listeners[t],o=n.indexOf(r);o!==-1&&(o===0&&n.length===1?n.length=0:n.splice(o,1))}emit(t,r,n){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(r,n)===!0||o;return t==="exit"&&(o=this.emit("afterExit",r,n)||o),o}},An=class{},fx=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),ki=class extends An{onExit(){return()=>{}}load(){}unload(){}},Bi=class extends An{#t=_i.platform==="win32"?"SIGINT":"SIGHUP";#r=new $i;#e;#n;#i;#o={};#s=!1;constructor(t){super(),this.#e=t,this.#o={};for(let r of Xe)this.#o[r]=()=>{let n=this.#e.listeners(r),{count:o}=this.#r,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),n.length===o){this.unload();let s=this.#r.emit("exit",null,r),a=r==="SIGHUP"?this.#t:r;s||t.kill(t.pid,a)}};this.#i=t.reallyExit,this.#n=t.emit}onExit(t,r){if(!vn(this.#e))return()=>{};this.#s===!1&&this.load();let n=r?.alwaysLast?"afterExit":"exit";return this.#r.on(n,t),()=>{this.#r.removeListener(n,t),this.#r.listeners.exit.length===0&&this.#r.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#s){this.#s=!0,this.#r.count+=1;for(let t of Xe)try{let r=this.#o[t];r&&this.#e.on(t,r)}catch{}this.#e.emit=(t,...r)=>this.#c(t,...r),this.#e.reallyExit=t=>this.#a(t)}}unload(){this.#s&&(this.#s=!1,Xe.forEach(t=>{let r=this.#o[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r)}catch{}}),this.#e.emit=this.#n,this.#e.reallyExit=this.#i,this.#r.count-=1)}#a(t){return vn(this.#e)?(this.#e.exitCode=t||0,this.#r.emit("exit",this.#e.exitCode,null),this.#i.call(this.#e,this.#e.exitCode)):0}#c(t,...r){let n=this.#n;if(t==="exit"&&vn(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let o=n.call(this.#e,t,...r);return this.#r.emit("exit",this.#e.exitCode,null),o}else return n.call(this.#e,t,...r)}},_i=globalThis.process,{onExit:hd,load:OP,unload:DP}=fx(vn(_i)?new Bi(_i):new ki)});var gd,Sd,wd=f(()=>{"use strict";gd=require("events");yd();Sd=(e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;let o=hd(()=>{e.kill()});(0,gd.addAbortListener)(n,()=>{o()})}});var xd,dx,mx,bd,px,Ed=f(()=>{"use strict";eo();Sr();Re();rt();xd=({source:e,sourcePromise:t,boundOptions:r,createNested:n},...o)=>{let i=gr(),{destination:s,destinationStream:a,destinationError:l,from:u,unpipeSignal:c}=dx(r,n,o),{sourceStream:d,sourceError:m}=px(e,u),{options:p,fileDescriptors:h}=fe.get(e);return{sourcePromise:t,sourceStream:d,sourceOptions:p,sourceError:m,destination:s,destinationStream:a,destinationError:l,unpipeSignal:c,fileDescriptors:h,startTime:i}},dx=(e,t,r)=>{try{let{destination:n,pipeOptions:{from:o,to:i,unpipeSignal:s}={}}=mx(e,t,...r),a=Rr(n,i);return{destination:n,destinationStream:a,from:o,unpipeSignal:s}}catch(n){return{destinationError:n}}},mx=(e,t,r,...n)=>{if(Array.isArray(r))return{destination:t(bd,e)(r,...n),pipeOptions:e};if(typeof r=="string"||r instanceof URL||Qn(r)){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');let[o,i,s]=ir(r,...n);return{destination:t(bd)(o,i,s),pipeOptions:s}}if(fe.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},bd=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),px=(e,t)=>{try{return{sourceStream:mt(e,t)}}catch(r){return{sourceError:r}}}});var Od,hx,Ni,Td,Ui=f(()=>{"use strict";Ut();In();Od=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:o,sourceOptions:i,startTime:s})=>{let a=hx({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(a!==void 0)throw Ni({error:a,fileDescriptors:o,sourceOptions:i,startTime:s})},hx=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>{if(t!==void 0&&n!==void 0)return n;if(n!==void 0)return Fi(e),n;if(t!==void 0)return Ci(r),t},Ni=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>yt({error:e,command:Td,escapedCommand:Td,fileDescriptors:t,options:r,startTime:n,isSync:!1}),Td="source.pipe(destination)"});var Dd,Id=f(()=>{"use strict";Dd=async e=>{let[{status:t,reason:r,value:n=r},{status:o,reason:i,value:s=i}]=await e;if(s.pipedFrom.includes(n)||s.pipedFrom.push(n),o==="rejected")throw s;if(t==="rejected")throw n;return s}});var vd,Ad,yx,gx,Sx,Rn,wx,bx,Rd=f(()=>{"use strict";vd=require("stream/promises");Dn();Pr();In();Ad=(e,t,r)=>{let n=Rn.has(t)?gx(e,t):yx(e,t);return qe(e,wx,r.signal),qe(t,bx,r.signal),Sx(t),n},yx=(e,t)=>{let r=Ke([e]);return xt(r,t),Rn.set(t,r),r},gx=(e,t)=>{let r=Rn.get(t);return r.add(e),r},Sx=async e=>{try{await(0,vd.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Rn.delete(e)},Rn=new WeakMap,wx=2,bx=1});var Pd,Cd,xx,Fd=f(()=>{"use strict";Pd=require("util");Ui();Cd=(e,t)=>e===void 0?[]:[xx(e,t)],xx=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:o,startTime:i})=>{await(0,Pd.aborted)(e,t),await r.remove(t);let s=new Error("Pipe canceled by `unpipeSignal` option.");throw Ni({error:s,fileDescriptors:n,sourceOptions:o,startTime:i})}});var Pn,Ex,Tx,Md=f(()=>{"use strict";ye();Ed();Ui();Id();Rd();Fd();Pn=(e,...t)=>{if(M(t[0]))return Pn.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});let{destination:r,...n}=xd(e,...t),o=Ex({...n,destination:r});return o.pipe=Pn.bind(void 0,{...e,source:r,sourcePromise:o,boundOptions:{}}),o},Ex=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:o,destinationStream:i,destinationError:s,unpipeSignal:a,fileDescriptors:l,startTime:u})=>{let c=Tx(e,o);Od({sourceStream:t,sourceError:n,destinationStream:i,destinationError:s,fileDescriptors:l,sourceOptions:r,startTime:u});let d=new AbortController;try{let m=Ad(t,i,d);return await Promise.race([Dd(c),...Cd(a,{sourceStream:t,mergedStream:m,sourceOptions:r,fileDescriptors:l,startTime:u})])}finally{d.abort()}},Tx=(e,t)=>Promise.allSettled([e,t])});var $d,kd,Cn,Ox,ji,Dx,Bd,Gi,Ld,Ix,vx,Fn=f(()=>{"use strict";$d=require("events"),kd=require("stream");mi();pn();gi();Cn=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:o,preserveNewlines:i})=>{let s=new AbortController;return Ox(t,s),Bd({stream:e,controller:s,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:o,shouldSplit:!e.readableObjectMode,preserveNewlines:i})},Ox=async(e,t)=>{try{await e}catch{}finally{t.abort()}},ji=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:o,allMixed:i})=>{let s=new AbortController;Dx(t,s,e);let a=e.readableObjectMode&&!i;return Bd({stream:e,controller:s,binary:n==="buffer",shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!o})},Dx=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},Bd=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})=>{let a=(0,$d.on)(e,"data",{signal:t.signal,highWaterMark:Ld,highWatermark:Ld});return Ix({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})},Gi=(0,kd.getDefaultHighWaterMark)(!0),Ld=Gi,Ix=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s}){let a=vx({binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s});try{for await(let[l]of e)yield*Je(l,a,0)}catch(l){if(!t.signal.aborted)throw l}finally{yield*Gt(a)}},vx=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:o})=>[hn(e,r,!t),mn(e,o,!n,{})].filter(Boolean)});var _d,Nd,Ax,Rx,Px,qi,Ud,Wi=f(()=>{"use strict";_d=require("timers/promises");rn();X();wi();Fn();Ye();jt();Nd=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:o,maxBuffer:i,lines:s,allMixed:a,stripFinalNewline:l,verboseInfo:u,streamInfo:c})=>{let d=Ax({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:a,verboseInfo:u,streamInfo:c});if(!o){await Promise.all([Rx(e),d]);return}let m=ui(l,r),p=ji({stream:e,onStreamEnd:t,lines:s,encoding:n,stripFinalNewline:m,allMixed:a}),[h]=await Promise.all([Px({stream:e,iterable:p,fdNumber:r,encoding:n,maxBuffer:i,lines:s}),d]);return h},Ax=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:o,verboseInfo:i,streamInfo:{fileDescriptors:s}})=>{if(!wn({stdioItems:s[r]?.stdioItems,encoding:n,verboseInfo:i,fdNumber:r}))return;let a=ji({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:o});await Ff(a,e,r,i)},Rx=async e=>{await(0,_d.setImmediate)(),e.readableFlowing===null&&e.resume()},Px=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:o,maxBuffer:i,lines:s})=>{try{return t||s?await Qr(r,{maxBuffer:i}):o==="buffer"?new Uint8Array(await Zr(r,{maxBuffer:i})):await tn(r,{maxBuffer:i})}catch(a){return Ud(du({error:a,stream:e,readableObjectMode:t,lines:s,encoding:o,fdNumber:n}))}},qi=async e=>{try{return await e}catch(t){return Ud(t)}},Ud=({bufferedData:e})=>ks(e)?new Uint8Array(e):e});var Gd,Ht,Cx,Fx,Mx,Lx,$x,zi,Mn,jd,Ln=f(()=>{"use strict";Gd=require("stream/promises"),Ht=async(e,t,r,{isSameDirection:n,stopOnExit:o=!1}={})=>{let i=Cx(e,r),s=new AbortController;try{await Promise.race([...o?[r.exitPromise]:[],(0,Gd.finished)(e,{cleanup:!0,signal:s.signal})])}catch(a){i.stdinCleanedUp||Lx(a,t,r,n)}finally{s.abort()}},Cx=(e,{originalStreams:[t],subprocess:r})=>{let n={stdinCleanedUp:!1};return e===t&&Fx(e,r,n),n},Fx=(e,t,r)=>{let{_destroy:n}=e;e._destroy=(...o)=>{Mx(t,r),n.call(e,...o)}},Mx=({exitCode:e,signalCode:t},r)=>{(e!==null||t!==null)&&(r.stdinCleanedUp=!0)},Lx=(e,t,r,n)=>{if(!$x(e,t,r,n))throw e},$x=(e,t,r,n=!0)=>r.propagating?jd(e)||Mn(e):(r.propagating=!0,zi(r,t)===n?jd(e):Mn(e)),zi=({fileDescriptors:e},t)=>t!=="all"&&e[t].direction==="input",Mn=e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE",jd=e=>e?.code==="EPIPE"});var qd,Vi,Yi=f(()=>{"use strict";Wi();Ln();qd=({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>e.stdio.map((l,u)=>Vi({stream:l,fdNumber:u,encoding:t,buffer:r[u],maxBuffer:n[u],lines:o[u],allMixed:!1,stripFinalNewline:i,verboseInfo:s,streamInfo:a})),Vi=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:l,streamInfo:u})=>{if(!e)return;let c=Ht(e,t,u);if(zi(u,t)){await c;return}let[d]=await Promise.all([Nd({stream:e,onStreamEnd:c,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:l,streamInfo:u}),c]);return d}});var Wd,zd,kx,Bx,Hi=f(()=>{"use strict";Dn();Yi();Wd=({stdout:e,stderr:t},{all:r})=>r&&(e||t)?Ke([e,t].filter(Boolean)):void 0,zd=({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>Vi({...kx(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:o[1]||o[2],allMixed:Bx(e),stripFinalNewline:i,verboseInfo:s,streamInfo:a}),kx=({stdout:e,stderr:t,all:r},[,n,o])=>{let i=n||o;return i?n?o?{stream:r,buffer:i}:{stream:e,buffer:i}:{stream:t,buffer:i}:{stream:r,buffer:i}},Bx=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode});var Vd,Yd,Hd=f(()=>{"use strict";it();De();Vd=e=>ot(e,"ipc"),Yd=(e,t)=>{let r=yr(e);le({type:"ipc",verboseMessage:r,fdNumber:"ipc",verboseInfo:t})}});var Jd,Kd,Xd=f(()=>{"use strict";Ye();Hd();be();Ti();Jd=async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:o,verboseInfo:i})=>{if(!n)return o;let s=Vd(i),a=we(t,"ipc"),l=we(r,"ipc");for await(let u of Ei({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(mu(e,o,l),o.push(u)),s&&Yd(u,i);return o},Kd=async(e,t)=>(await Promise.allSettled([e]),t)});var Qd,Zd,_x,Nx,Ux,em=f(()=>{"use strict";Qd=require("events");Ve();Bo();Ao();ko();Se();z();Wi();Xd();Uo();Hi();Yi();xi();Ln();Zd=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:o,timeoutDuration:i,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:l,stripFinalNewline:u,ipc:c,ipcInput:d},context:m,verboseInfo:p,fileDescriptors:h,originalStreams:y,onInternalError:w,controller:S})=>{let T=Nf(e,m),D={originalStreams:y,fileDescriptors:h,subprocess:e,exitPromise:T,propagating:!1},k=qd({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:u,verboseInfo:p,streamInfo:D}),Z=zd({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:u,verboseInfo:p,streamInfo:D}),re=[],he=Jd({subprocess:e,buffer:r,maxBuffer:n,ipc:c,ipcOutput:re,verboseInfo:p}),ce=_x(y,e,D),g=Nx(h,D);try{return await Promise.race([Promise.all([{},jf(T),Promise.all(k),Z,he,Ml(e,d),...ce,...g]),w,Ux(e,S),...Al(e,i,m,S),...Uc({subprocess:e,cancelSignal:s,gracefulCancel:a,context:m,controller:S}),...Dl({subprocess:e,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:l,context:m,controller:S})])}catch(O){return m.terminationReason??="other",Promise.all([{error:O},T,Promise.all(k.map(E=>qi(E))),qi(Z),Kd(he,re),Promise.allSettled(ce),Promise.allSettled(g)])}},_x=(e,t,r)=>e.map((n,o)=>n===t.stdio[o]?void 0:Ht(n,o,r)),Nx=(e,t)=>e.flatMap(({stdioItems:r},n)=>r.filter(({value:o,stream:i=o})=>se(i,{checkOpen:!1})&&!ne(i)).map(({type:o,value:i,stream:s=i})=>Ht(s,n,t,{isSameDirection:te.has(o),stopOnExit:o==="native"}))),Ux=async(e,{signal:t})=>{let[r]=await(0,Qd.once)(e,"error",{signal:t});throw r}});var tm,Jt,Et,$n=f(()=>{"use strict";dt();tm=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap}),Jt=(e,t,r)=>{let n=e[r];n.has(t)||n.set(t,[]);let o=n.get(t),i=ue();return o.push(i),{resolve:i.resolve.bind(i),promises:o}},Et=async({resolve:e,promises:t},r)=>{e();let[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n}});var Ji,Ki,rm,Xi,Qi,kn,Bn,Zi=f(()=>{"use strict";Ji=require("stream/promises");Ln();Ki=async e=>{if(e!==void 0)try{await Xi(e)}catch{}},rm=async e=>{if(e!==void 0)try{await Qi(e)}catch{}},Xi=async e=>{await(0,Ji.finished)(e,{cleanup:!0,readable:!1,writable:!0})},Qi=async e=>{await(0,Ji.finished)(e,{cleanup:!0,readable:!0,writable:!1})},kn=async(e,t)=>{if(await e,t)throw t},Bn=(e,t,r)=>{r&&!Mn(r)?e.destroy(r):t&&e.destroy()}});var nm,om,im,es,ts,rs,jx,ns,os,sm,is=f(()=>{"use strict";nm=require("stream"),om=require("util");We();Re();Fn();dt();$n();Zi();im=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:o=!0,preserveNewlines:i=!0}={})=>{let s=o||Q.has(r),{subprocessStdout:a,waitReadableDestroy:l}=es(e,n,t),{readableEncoding:u,readableObjectMode:c,readableHighWaterMark:d}=ts(a,s),{read:m,onStdoutDataDone:p}=rs({subprocessStdout:a,subprocess:e,binary:s,encoding:r,preserveNewlines:i}),h=new nm.Readable({read:m,destroy:(0,om.callbackify)(os.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:l})),highWaterMark:d,objectMode:c,encoding:u});return ns({subprocessStdout:a,onStdoutDataDone:p,readable:h,subprocess:e}),h},es=(e,t,r)=>{let n=mt(e,t),o=Jt(r,n,"readableDestroy");return{subprocessStdout:n,waitReadableDestroy:o}},ts=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Gi},rs=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:o})=>{let i=ue(),s=Cn({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:o});return{read(){jx(this,s,i)},onStdoutDataDone:i}},jx=async(e,t,r)=>{try{let{value:n,done:o}=await t.next();o?r.resolve():e.push(n)}catch{}},ns=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:o})=>{try{await Qi(e),await n,await Ki(o),await t,r.readable&&r.push(null)}catch(i){await Ki(o),sm(r,i)}},os=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await Et(r,t)&&(sm(e,n),await kn(t,n))},sm=(e,t)=>{Bn(e,e.readable,t)}});var am,ss,cm,as,cs,Gx,qx,ls,us,lm,fs=f(()=>{"use strict";am=require("stream"),ss=require("util");Re();$n();Zi();cm=({subprocess:e,concurrentStreams:t},{to:r}={})=>{let{subprocessStdin:n,waitWritableFinal:o,waitWritableDestroy:i}=as(e,r,t),s=new am.Writable({...cs(n,e,o),destroy:(0,ss.callbackify)(us.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:o,waitWritableDestroy:i})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return ls(n,s),s},as=(e,t,r)=>{let n=Rr(e,t),o=Jt(r,n,"writableFinal"),i=Jt(r,n,"writableDestroy");return{subprocessStdin:n,waitWritableFinal:o,waitWritableDestroy:i}},cs=(e,t,r)=>({write:Gx.bind(void 0,e),final:(0,ss.callbackify)(qx.bind(void 0,e,t,r))}),Gx=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},qx=async(e,t,r)=>{await Et(r,t)&&(e.writable&&e.end(),await t)},ls=async(e,t,r)=>{try{await Xi(e),t.writable&&t.end()}catch(n){await rm(r),lm(t,n)}},us=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},o)=>{await Et(r,t),await Et(n,t)&&(lm(e,o),await kn(t,o))},lm=(e,t)=>{Bn(e,e.writable,t)}});var um,fm,dm,Wx,mm=f(()=>{"use strict";um=require("stream"),fm=require("util");We();is();fs();dm=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:o,binary:i=!0,preserveNewlines:s=!0}={})=>{let a=i||Q.has(r),{subprocessStdout:l,waitReadableDestroy:u}=es(e,n,t),{subprocessStdin:c,waitWritableFinal:d,waitWritableDestroy:m}=as(e,o,t),{readableEncoding:p,readableObjectMode:h,readableHighWaterMark:y}=ts(l,a),{read:w,onStdoutDataDone:S}=rs({subprocessStdout:l,subprocess:e,binary:a,encoding:r,preserveNewlines:s}),T=new um.Duplex({read:w,...cs(c,e,d),destroy:(0,fm.callbackify)(Wx.bind(void 0,{subprocessStdout:l,subprocessStdin:c,subprocess:e,waitReadableDestroy:u,waitWritableFinal:d,waitWritableDestroy:m})),readableHighWaterMark:y,writableHighWaterMark:c.writableHighWaterMark,readableObjectMode:h,writableObjectMode:c.writableObjectMode,encoding:p});return ns({subprocessStdout:l,onStdoutDataDone:S,readable:T,subprocess:e,subprocessStdin:c}),ls(c,T,l),T},Wx=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:o,waitWritableDestroy:i},s)=>{await Promise.all([os({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},s),us({subprocessStdin:t,subprocess:r,waitWritableFinal:o,waitWritableDestroy:i},s)])}});var ds,zx,pm=f(()=>{"use strict";We();Re();Fn();ds=(e,t,{from:r,binary:n=!1,preserveNewlines:o=!1}={})=>{let i=n||Q.has(t),s=mt(e,r),a=Cn({subprocessStdout:s,subprocess:e,binary:i,shouldEncode:!0,encoding:t,preserveNewlines:o});return zx(a,s,e)},zx=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}}});var hm,ym=f(()=>{"use strict";$n();is();fs();mm();pm();hm=(e,{encoding:t})=>{let r=tm();e.readable=im.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=cm.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=dm.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=ds.bind(void 0,e,t),e[Symbol.asyncIterator]=ds.bind(void 0,e,t,{})}});var gm,Vx,Yx,Sm=f(()=>{"use strict";gm=(e,t)=>{for(let[r,n]of Yx){let o=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},Vx=(async()=>{})().constructor.prototype,Yx=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Vx,e)])});var wm,bm,xm,Hx,Jx,Kx,Xx,Qx,Em=f(()=>{"use strict";wm=require("events"),bm=require("child_process");rn();fo();Wo();Re();zo();Di();Ut();sn();rd();sd();jt();md();Dr();wd();Md();Hi();em();ym();dt();Sm();xm=(e,t,r,n)=>{let{file:o,commandArguments:i,command:s,escapedCommand:a,startTime:l,verboseInfo:u,options:c,fileDescriptors:d}=Hx(e,t,r),{subprocess:m,promise:p}=Kx({file:o,commandArguments:i,options:c,startTime:l,verboseInfo:u,command:s,escapedCommand:a,fileDescriptors:d});return m.pipe=Pn.bind(void 0,{source:m,sourcePromise:p,boundOptions:{},createNested:n}),gm(m,p),fe.set(m,{options:c,fileDescriptors:d}),m},Hx=(e,t,r)=>{let{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=wr(e,t,r),{file:a,commandArguments:l,options:u}=Vr(e,t,r),c=Jx(u),d=id(c,s);return{file:a,commandArguments:l,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:c,fileDescriptors:d}},Jx=({timeout:e,signal:t,...r})=>{if(t!==void 0)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...r,timeoutDuration:e}},Kx=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:o,command:i,escapedCommand:s,fileDescriptors:a})=>{let l;try{l=(0,bm.spawn)(...Yr(e,t,r))}catch(h){return td({error:h,command:i,escapedCommand:s,fileDescriptors:a,options:r,startTime:n,verboseInfo:o})}let u=new AbortController;(0,wm.setMaxListeners)(Number.POSITIVE_INFINITY,u.signal);let c=[...l.stdio];dd(l,a,u),Sd(l,r,u);let d={},m=ue();l.kill=Bc.bind(void 0,{kill:l.kill.bind(l),options:r,onInternalError:m,context:d,controller:u}),l.all=Wd(l,r),hm(l,r),Xf(l,r);let p=Xx({subprocess:l,options:r,startTime:n,verboseInfo:o,fileDescriptors:a,originalStreams:c,command:i,escapedCommand:s,context:d,onInternalError:m,controller:u});return{subprocess:l,promise:p}},Xx=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:o,originalStreams:i,command:s,escapedCommand:a,context:l,onInternalError:u,controller:c})=>{let[d,[m,p],h,y,w]=await Zd({subprocess:e,options:t,context:l,verboseInfo:n,fileDescriptors:o,originalStreams:i,onInternalError:u,controller:c});c.abort(),u.resolve();let S=h.map((k,Z)=>Ee(k,t,Z)),T=Ee(y,t,"all"),D=Qx({errorInfo:d,exitCode:m,signal:p,stdio:S,all:T,ipcOutput:w,context:l,options:t,command:s,escapedCommand:a,startTime:r});return gt(D,n,t)},Qx=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,context:s,options:a,command:l,escapedCommand:u,startTime:c})=>"error"in e?Nt({error:e.error,command:l,escapedCommand:u,timedOut:s.terminationReason==="timeout",isCanceled:s.terminationReason==="cancel"||s.terminationReason==="gracefulCancel",isGracefullyCanceled:s.terminationReason==="gracefulCancel",isMaxBuffer:e.error instanceof de,isForcefullyTerminated:s.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,options:a,startTime:c,isSync:!1}):on({command:l,escapedCommand:u,stdio:n,all:o,ipcOutput:i,options:a,startTime:c})});var _n,Zx,eE,Tm=f(()=>{"use strict";ye();be();_n=(e,t)=>{let r=Object.fromEntries(Object.entries(t).map(([n,o])=>[n,Zx(n,e[n],o)]));return{...e,...r}},Zx=(e,t,r)=>eE.has(e)&&M(t)&&M(r)?{...t,...r}:r,eE=new Set(["env",...oo])});var Me,tE,rE,Om=f(()=>{"use strict";ye();eo();zs();Vf();Em();Tm();Me=(e,t,r,n)=>{let o=(s,a,l)=>Me(s,a,r,l),i=(...s)=>tE({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:o},...s);return n!==void 0&&n(i,o,t),i},tE=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:o},i,...s)=>{if(M(i))return o(e,_n(r,i),n);let{file:a,commandArguments:l,options:u,isSync:c}=rE({mapArguments:e,firstArgument:i,nextArguments:s,deepOptions:t,boundOptions:r});return c?zf(a,l,u):xm(a,l,u,o)},rE=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:o})=>{let i=qs(t)?Ws(t,r):[t,...r],[s,a,l]=ir(...i),u=_n(_n(n,o),l),{file:c=s,commandArguments:d=a,options:m=u,isSync:p=!1}=e({file:s,commandArguments:a,options:u});return{file:c,commandArguments:d,options:m,isSync:p}}});var Dm,Im,vm,ms,nE,ps=f(()=>{"use strict";Dm=({file:e,commandArguments:t})=>vm(e,t),Im=({file:e,commandArguments:t})=>({...vm(e,t),isSync:!0}),vm=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);let[r,...n]=ms(e);return{file:r,commandArguments:n}},ms=e=>{if(typeof e!="string")throw new TypeError(`The command must be a string: ${String(e)}.`);let t=e.trim();if(t==="")return[];let r=[];for(let n of t.split(nE)){let o=r.at(-1);o&&o.endsWith("\\")?r[r.length-1]=`${o.slice(0,-1)} ${n}`:r.push(n)}return r},nE=/ +/g});var Am,Rm,oE,Pm,iE,Cm,Fm=f(()=>{"use strict";Am=(e,t,r)=>{e.sync=t(oE,r),e.s=e.sync},Rm=({options:e})=>Pm(e),oE=({options:e})=>({...Pm(e),isSync:!0}),Pm=e=>({options:{...iE(e),...e}}),iE=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Cm={preferLocal:!0}});var Mm={};Cs(Mm,{$:()=>fE,ExecaError:()=>je,ExecaSyncError:()=>Ge,execa:()=>sE,execaCommand:()=>cE,execaCommandSync:()=>lE,execaNode:()=>uE,execaSync:()=>aE,getCancelSignal:()=>hE,getEachMessage:()=>pE,getOneMessage:()=>mE,parseCommandString:()=>ms,sendMessage:()=>dE});var sE,aE,cE,lE,uE,fE,dE,mE,pE,hE,Lm=f(()=>{"use strict";Om();ps();No();Fm();Di();ps();ve();sE=Me(()=>({})),aE=Me(()=>({isSync:!0})),cE=Me(Dm),lE=Me(Im),uE=Me(Rl),fE=Me(Rm,{},Cm,Am),{sendMessage:dE,getOneMessage:mE,getEachMessage:pE,getCancelSignal:hE}=Qf()});var _=b(hs=>{"use strict";hs.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)=>{t.push((o,i)=>o!=null?n(o):r(i)),e.apply(this,t)})},"name",{value:e.name})};hs.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var Bm=b((rM,km)=>{"use strict";var Le=require("constants"),gE=process.cwd,Nn=null,SE=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Nn||(Nn=gE.call(process)),Nn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ys=process.chdir,process.chdir=function(e){Nn=null,ys.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ys));var ys;km.exports=wE;function wE(e){Le.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(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=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(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.chmod&&!e.lchmod&&(e.lchmod=function(c,d,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,d,m,p){p&&process.nextTick(p)},e.lchownSync=function(){}),SE==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(c){function d(m,p,h){var y=Date.now(),w=0;c(m,p,function S(T){if(T&&(T.code==="EACCES"||T.code==="EPERM"||T.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){e.stat(p,function(D,k){D&&D.code==="ENOENT"?c(m,p,S):h(T)})},w),w<100&&(w+=10);return}h&&h(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,c),d})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(c){function d(m,p,h,y,w,S){var T;if(S&&typeof S=="function"){var D=0;T=function(k,Z,re){if(k&&k.code==="EAGAIN"&&D<10)return D++,c.call(e,m,p,h,y,w,T);S.apply(this,arguments)}}return c.call(e,m,p,h,y,w,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,c),d})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(c){return function(d,m,p,h,y){for(var w=0;;)try{return c.call(e,d,m,p,h,y)}catch(S){if(S.code==="EAGAIN"&&w<10){w++;continue}throw S}}})(e.readSync);function t(c){c.lchmod=function(d,m,p){c.open(d,Le.O_WRONLY|Le.O_SYMLINK,m,function(h,y){if(h){p&&p(h);return}c.fchmod(y,m,function(w){c.close(y,function(S){p&&p(w||S)})})})},c.lchmodSync=function(d,m){var p=c.openSync(d,Le.O_WRONLY|Le.O_SYMLINK,m),h=!0,y;try{y=c.fchmodSync(p,m),h=!1}finally{if(h)try{c.closeSync(p)}catch{}else c.closeSync(p)}return y}}function r(c){Le.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(d,m,p,h){c.open(d,Le.O_SYMLINK,function(y,w){if(y){h&&h(y);return}c.futimes(w,m,p,function(S){c.close(w,function(T){h&&h(S||T)})})})},c.lutimesSync=function(d,m,p){var h=c.openSync(d,Le.O_SYMLINK),y,w=!0;try{y=c.futimesSync(h,m,p),w=!1}finally{if(w)try{c.closeSync(h)}catch{}else c.closeSync(h)}return y}):c.futimes&&(c.lutimes=function(d,m,p,h){h&&process.nextTick(h)},c.lutimesSync=function(){})}function n(c){return c&&function(d,m,p){return c.call(e,d,m,function(h){u(h)&&(h=null),p&&p.apply(this,arguments)})}}function o(c){return c&&function(d,m){try{return c.call(e,d,m)}catch(p){if(!u(p))throw p}}}function i(c){return c&&function(d,m,p,h){return c.call(e,d,m,p,function(y){u(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(c){return c&&function(d,m,p){try{return c.call(e,d,m,p)}catch(h){if(!u(h))throw h}}}function a(c){return c&&function(d,m,p){typeof m=="function"&&(p=m,m=null);function h(y,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),p&&p.apply(this,arguments)}return m?c.call(e,d,m,h):c.call(e,d,h)}}function l(c){return c&&function(d,m){var p=m?c.call(e,d,m):c.call(e,d);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function u(c){if(!c||c.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var Um=b((nM,Nm)=>{"use strict";var _m=require("stream").Stream;Nm.exports=bE;function bE(e){return{ReadStream:t,WriteStream:r};function t(n,o){if(!(this instanceof t))return new t(n,o);_m.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var s=Object.keys(o),a=0,l=s.length;a<l;a++){var u=s[a];this[u]=o[u]}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(){i._read()});return}e.open(this.path,this.flags,this.mode,function(c,d){if(c){i.emit("error",c),i.readable=!1;return}i.fd=d,i.emit("open",d),i._read()})}function r(n,o){if(!(this instanceof r))return new r(n,o);_m.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var i=Object.keys(o),s=0,a=i.length;s<a;s++){var l=i[s];this[l]=o[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 Gm=b((oM,jm)=>{"use strict";jm.exports=EE;var xE=Object.getPrototypeOf||function(e){return e.__proto__};function EE(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:xE(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Ot=b((iM,ws)=>{"use strict";var C=require("fs"),TE=Bm(),OE=Um(),DE=Gm(),Un=require("util"),q,Gn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(q=Symbol.for("graceful-fs.queue"),Gn=Symbol.for("graceful-fs.previous")):(q="___graceful-fs.queue",Gn="___graceful-fs.previous");function IE(){}function zm(e,t){Object.defineProperty(e,q,{get:function(){return t}})}var Qe=IE;Un.debuglog?Qe=Un.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qe=function(){var e=Un.format.apply(Un,arguments);e="GFS4: "+e.split(/\n/).join(`
44
+ GFS4: `),console.error(e)});C[q]||(qm=global[q]||[],zm(C,qm),C.close=(function(e){function t(r,n){return e.call(C,r,function(o){o||Wm(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Gn,{value:e}),t})(C.close),C.closeSync=(function(e){function t(r){e.apply(C,arguments),Wm()}return Object.defineProperty(t,Gn,{value:e}),t})(C.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qe(C[q]),require("assert").equal(C[q].length,0)}));var qm;global[q]||zm(global,C[q]);ws.exports=gs(DE(C));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!C.__patched&&(ws.exports=gs(C),C.__patched=!0);function gs(e){TE(e),e.gracefulify=gs,e.createReadStream=Z,e.createWriteStream=re;var t=e.readFile;e.readFile=r;function r(g,O,E){return typeof O=="function"&&(E=O,O=null),U(g,O,E);function U(j,B,P,F){return t(j,B,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?Tt([U,[j,B,P],v,F||Date.now(),Date.now()]):typeof P=="function"&&P.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=o;function o(g,O,E,U){return typeof E=="function"&&(U=E,E=null),j(g,O,E,U);function j(B,P,F,v,G){return n(B,P,F,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Tt([j,[B,P,F,v],R,G||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var i=e.appendFile;i&&(e.appendFile=s);function s(g,O,E,U){return typeof E=="function"&&(U=E,E=null),j(g,O,E,U);function j(B,P,F,v,G){return i(B,P,F,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Tt([j,[B,P,F,v],R,G||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=l);function l(g,O,E,U){return typeof E=="function"&&(U=E,E=0),j(g,O,E,U);function j(B,P,F,v,G){return a(B,P,F,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Tt([j,[B,P,F,v],R,G||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var u=e.readdir;e.readdir=d;var c=/^v[0-5]\./;function d(g,O,E){typeof O=="function"&&(E=O,O=null);var U=c.test(process.version)?function(P,F,v,G){return u(P,j(P,F,v,G))}:function(P,F,v,G){return u(P,F,j(P,F,v,G))};return U(g,O,E);function j(B,P,F,v){return function(G,R){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Tt([U,[B,P,F],G,v||Date.now(),Date.now()]):(R&&R.sort&&R.sort(),typeof F=="function"&&F.call(this,G,R))}}}if(process.version.substr(0,4)==="v0.8"){var m=OE(e);S=m.ReadStream,D=m.WriteStream}var p=e.ReadStream;p&&(S.prototype=Object.create(p.prototype),S.prototype.open=T);var h=e.WriteStream;h&&(D.prototype=Object.create(h.prototype),D.prototype.open=k),Object.defineProperty(e,"ReadStream",{get:function(){return S},set:function(g){S=g},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(g){D=g},enumerable:!0,configurable:!0});var y=S;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(g){y=g},enumerable:!0,configurable:!0});var w=D;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(g){w=g},enumerable:!0,configurable:!0});function S(g,O){return this instanceof S?(p.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function T(){var g=this;ce(g.path,g.flags,g.mode,function(O,E){O?(g.autoClose&&g.destroy(),g.emit("error",O)):(g.fd=E,g.emit("open",E),g.read())})}function D(g,O){return this instanceof D?(h.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function k(){var g=this;ce(g.path,g.flags,g.mode,function(O,E){O?(g.destroy(),g.emit("error",O)):(g.fd=E,g.emit("open",E))})}function Z(g,O){return new e.ReadStream(g,O)}function re(g,O){return new e.WriteStream(g,O)}var he=e.open;e.open=ce;function ce(g,O,E,U){return typeof E=="function"&&(U=E,E=null),j(g,O,E,U);function j(B,P,F,v,G){return he(B,P,F,function(R,vO){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Tt([j,[B,P,F,v],R,G||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}return e}function Tt(e){Qe("ENQUEUE",e[0].name,e[1]),C[q].push(e),Ss()}var jn;function Wm(){for(var e=Date.now(),t=0;t<C[q].length;++t)C[q][t].length>2&&(C[q][t][3]=e,C[q][t][4]=e);Ss()}function Ss(){if(clearTimeout(jn),jn=void 0,C[q].length!==0){var e=C[q].shift(),t=e[0],r=e[1],n=e[2],o=e[3],i=e[4];if(o===void 0)Qe("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){Qe("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-i,l=Math.max(i-o,1),u=Math.min(l*1.2,100);a>=u?(Qe("RETRY",t.name,r),t.apply(null,r.concat([o]))):C[q].push(e)}jn===void 0&&(jn=setTimeout(Ss,0))}}});var Y=b(Te=>{"use strict";var Vm=_().fromCallback,V=Ot(),vE=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof V[e]=="function");Object.assign(Te,V);vE.forEach(e=>{Te[e]=Vm(V[e])});Te.exists=function(e,t){return typeof t=="function"?V.exists(e,t):new Promise(r=>V.exists(e,r))};Te.read=function(e,t,r,n,o,i){return typeof i=="function"?V.read(e,t,r,n,o,i):new Promise((s,a)=>{V.read(e,t,r,n,o,(l,u,c)=>{if(l)return a(l);s({bytesRead:u,buffer:c})})})};Te.write=function(e,t,...r){return typeof r[r.length-1]=="function"?V.write(e,t,...r):new Promise((n,o)=>{V.write(e,t,...r,(i,s,a)=>{if(i)return o(i);n({bytesWritten:s,buffer:a})})})};Te.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?V.readv(e,t,...r):new Promise((n,o)=>{V.readv(e,t,...r,(i,s,a)=>{if(i)return o(i);n({bytesRead:s,buffers:a})})})};Te.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?V.writev(e,t,...r):new Promise((n,o)=>{V.writev(e,t,...r,(i,s,a)=>{if(i)return o(i);n({bytesWritten:s,buffers:a})})})};typeof V.realpath.native=="function"?Te.realpath.native=Vm(V.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Hm=b((aM,Ym)=>{"use strict";var AE=require("path");Ym.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(AE.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var Qm=b((cM,bs)=>{"use strict";var Jm=Y(),{checkPath:Km}=Hm(),Xm=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};bs.exports.makeDir=async(e,t)=>(Km(e),Jm.mkdir(e,{mode:Xm(t),recursive:!0}));bs.exports.makeDirSync=(e,t)=>(Km(e),Jm.mkdirSync(e,{mode:Xm(t),recursive:!0}))});var ae=b((lM,Zm)=>{"use strict";var RE=_().fromPromise,{makeDir:PE,makeDirSync:xs}=Qm(),Es=RE(PE);Zm.exports={mkdirs:Es,mkdirsSync:xs,mkdirp:Es,mkdirpSync:xs,ensureDir:Es,ensureDirSync:xs}});var $e=b((uM,tp)=>{"use strict";var CE=_().fromPromise,ep=Y();function FE(e){return ep.access(e).then(()=>!0).catch(()=>!1)}tp.exports={pathExists:CE(FE),pathExistsSync:ep.existsSync}});var Ts=b((fM,rp)=>{"use strict";var Dt=Y(),ME=_().fromPromise;async function LE(e,t,r){let n=await Dt.open(e,"r+"),o=null;try{await Dt.futimes(n,t,r)}catch(i){o=i}finally{try{await Dt.close(n)}catch(i){o||(o=i)}}if(o)throw o}function $E(e,t,r){let n=Dt.openSync(e,"r+"),o=null;try{Dt.futimesSync(n,t,r)}catch(i){o=i}finally{try{Dt.closeSync(n)}catch(i){o||(o=i)}}if(o)throw o}rp.exports={utimesMillis:ME(LE),utimesMillisSync:$E}});var Ze=b((dM,sp)=>{"use strict";var It=Y(),N=require("path"),np=_().fromPromise;function kE(e,t,r){let n=r.dereference?o=>It.stat(o,{bigint:!0}):o=>It.lstat(o,{bigint:!0});return Promise.all([n(e),n(t).catch(o=>{if(o.code==="ENOENT")return null;throw o})]).then(([o,i])=>({srcStat:o,destStat:i}))}function BE(e,t,r){let n,o=r.dereference?s=>It.statSync(s,{bigint:!0}):s=>It.lstatSync(s,{bigint:!0}),i=o(e);try{n=o(t)}catch(s){if(s.code==="ENOENT")return{srcStat:i,destStat:null};throw s}return{srcStat:i,destStat:n}}async function _E(e,t,r,n){let{srcStat:o,destStat:i}=await kE(e,t,n);if(i){if(Kt(o,i)){let s=N.basename(e),a=N.basename(t);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:o,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!o.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(o.isDirectory()&&Os(e,t))throw new Error(qn(e,t,r));return{srcStat:o,destStat:i}}function NE(e,t,r,n){let{srcStat:o,destStat:i}=BE(e,t,n);if(i){if(Kt(o,i)){let s=N.basename(e),a=N.basename(t);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:o,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!o.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(o.isDirectory()&&Os(e,t))throw new Error(qn(e,t,r));return{srcStat:o,destStat:i}}async function op(e,t,r,n){let o=N.resolve(N.dirname(e)),i=N.resolve(N.dirname(r));if(i===o||i===N.parse(i).root)return;let s;try{s=await It.stat(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Kt(t,s))throw new Error(qn(e,r,n));return op(e,t,i,n)}function ip(e,t,r,n){let o=N.resolve(N.dirname(e)),i=N.resolve(N.dirname(r));if(i===o||i===N.parse(i).root)return;let s;try{s=It.statSync(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Kt(t,s))throw new Error(qn(e,r,n));return ip(e,t,i,n)}function Kt(e,t){return t.ino!==void 0&&t.dev!==void 0&&t.ino===e.ino&&t.dev===e.dev}function Os(e,t){let r=N.resolve(e).split(N.sep).filter(o=>o),n=N.resolve(t).split(N.sep).filter(o=>o);return r.every((o,i)=>n[i]===o)}function qn(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}sp.exports={checkPaths:np(_E),checkPathsSync:NE,checkParentPaths:np(op),checkParentPathsSync:ip,isSrcSubdir:Os,areIdentical:Kt}});var cp=b((mM,ap)=>{"use strict";async function UE(e,t){let r=[];for await(let n of e)r.push(t(n).then(()=>null,o=>o??new Error("unknown error")));await Promise.all(r.map(n=>n.then(o=>{if(o!==null)throw o})))}ap.exports={asyncIteratorConcurrentProcess:UE}});var mp=b((pM,dp)=>{"use strict";var W=Y(),Xt=require("path"),{mkdirs:jE}=ae(),{pathExists:GE}=$e(),{utimesMillis:qE}=Ts(),Qt=Ze(),{asyncIteratorConcurrentProcess:WE}=cp();async function zE(e,t,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
45
45
 
46
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:o}=await Xt.checkPaths(e,t,"copy",r);if(await Xt.checkParentPaths(e,n,t,"copy"),!await ap(e,t,r))return;let s=Kt.dirname(t);await NE(s)||await _E(s),await cp(o,e,t,r)}async function ap(e,t,r){return r.filter?r.filter(e,t):!0}async function cp(e,t,r,n){let i=await(n.dereference?W.stat:W.lstat)(t);if(i.isDirectory())return zE(i,e,t,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return GE(i,e,t,r,n);if(i.isSymbolicLink())return VE(e,t,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${t}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}async function GE(e,t,r,n,o){if(!t)return sp(e,r,n,o);if(o.overwrite)return await W.unlink(n),sp(e,r,n,o);if(o.errorOnExist)throw new Error(`'${n}' already exists`)}async function sp(e,t,r,n){if(await W.copyFile(t,r),n.preserveTimestamps){qE(e.mode)&&await WE(r,e.mode);let o=await W.stat(t);await UE(r,o.atime,o.mtime)}return W.chmod(r,e.mode)}function qE(e){return(e&128)===0}function WE(e,t){return W.chmod(e,t|128)}async function zE(e,t,r,n,o){t||await W.mkdir(n);let i=[];for await(let s of await W.opendir(r)){let a=Kt.join(r,s.name),c=Kt.join(n,s.name);i.push(ap(a,c,o).then(u=>{if(u)return Xt.checkPaths(a,c,"copy",o).then(({destStat:l})=>cp(l,a,c,o))}))}await Promise.all(i),t||await W.chmod(n,e.mode)}async function VE(e,t,r,n){let o=await W.readlink(t);if(n.dereference&&(o=Kt.resolve(process.cwd(),o)),!e)return W.symlink(o,r);let i=null;try{i=await W.readlink(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return W.symlink(o,r);throw s}if(n.dereference&&(i=Kt.resolve(process.cwd(),i)),Xt.isSrcSubdir(o,i))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`);if(Xt.isSrcSubdir(i,o))throw new Error(`Cannot overwrite '${i}' with '${o}'.`);return await W.unlink(r),W.symlink(o,r)}lp.exports=jE});var hp=b((cM,pp)=>{"use strict";var H=Tt(),Qt=require("path"),YE=se().mkdirsSync,HE=Es().utimesMillisSync,Zt=Qe();function JE(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"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
46
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:o}=await Qt.checkPaths(e,t,"copy",r);if(await Qt.checkParentPaths(e,n,t,"copy"),!await up(e,t,r))return;let s=Xt.dirname(t);await GE(s)||await jE(s),await fp(o,e,t,r)}async function up(e,t,r){return r.filter?r.filter(e,t):!0}async function fp(e,t,r,n){let i=await(n.dereference?W.stat:W.lstat)(t);if(i.isDirectory())return JE(i,e,t,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return VE(i,e,t,r,n);if(i.isSymbolicLink())return KE(e,t,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${t}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}async function VE(e,t,r,n,o){if(!t)return lp(e,r,n,o);if(o.overwrite)return await W.unlink(n),lp(e,r,n,o);if(o.errorOnExist)throw new Error(`'${n}' already exists`)}async function lp(e,t,r,n){if(await W.copyFile(t,r),n.preserveTimestamps){YE(e.mode)&&await HE(r,e.mode);let o=await W.stat(t);await qE(r,o.atime,o.mtime)}return W.chmod(r,e.mode)}function YE(e){return(e&128)===0}function HE(e,t){return W.chmod(e,t|128)}async function JE(e,t,r,n,o){t||await W.mkdir(n),await WE(await W.opendir(r),async i=>{let s=Xt.join(r,i.name),a=Xt.join(n,i.name);if(await up(s,a,o)){let{destStat:u}=await Qt.checkPaths(s,a,"copy",o);await fp(u,s,a,o)}}),t||await W.chmod(n,e.mode)}async function KE(e,t,r,n){let o=await W.readlink(t);if(n.dereference&&(o=Xt.resolve(process.cwd(),o)),!e)return W.symlink(o,r);let i=null;try{i=await W.readlink(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return W.symlink(o,r);throw s}if(n.dereference&&(i=Xt.resolve(process.cwd(),i)),o!==i){if(Qt.isSrcSubdir(o,i))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`);if(Qt.isSrcSubdir(i,o))throw new Error(`Cannot overwrite '${i}' with '${o}'.`)}return await W.unlink(r),W.symlink(o,r)}dp.exports=zE});var Sp=b((hM,gp)=>{"use strict";var H=Ot(),Zt=require("path"),XE=ae().mkdirsSync,QE=Ts().utimesMillisSync,er=Ze();function ZE(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"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
47
47
 
48
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:o}=Zt.checkPathsSync(e,t,"copy",r);if(Zt.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let i=Qt.dirname(t);return H.existsSync(i)||YE(i),fp(o,e,t,r)}function fp(e,t,r,n){let i=(n.dereference?H.statSync:H.lstatSync)(t);if(i.isDirectory())return rT(i,e,t,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return KE(i,e,t,r,n);if(i.isSymbolicLink())return iT(e,t,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${t}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function KE(e,t,r,n,o){return t?XE(e,r,n,o):dp(e,r,n,o)}function XE(e,t,r,n){if(n.overwrite)return H.unlinkSync(r),dp(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function dp(e,t,r,n){return H.copyFileSync(t,r),n.preserveTimestamps&&QE(e.mode,t,r),Os(r,e.mode)}function QE(e,t,r){return ZE(e)&&eT(r,e),tT(t,r)}function ZE(e){return(e&128)===0}function eT(e,t){return Os(e,t|128)}function Os(e,t){return H.chmodSync(e,t)}function tT(e,t){let r=H.statSync(e);return HE(t,r.atime,r.mtime)}function rT(e,t,r,n,o){return t?mp(r,n,o):nT(e.mode,r,n,o)}function nT(e,t,r,n){return H.mkdirSync(r),mp(t,r,n),Os(r,e)}function mp(e,t,r){let n=H.opendirSync(e);try{let o;for(;(o=n.readSync())!==null;)oT(o.name,e,t,r)}finally{n.closeSync()}}function oT(e,t,r,n){let o=Qt.join(t,e),i=Qt.join(r,e);if(n.filter&&!n.filter(o,i))return;let{destStat:s}=Zt.checkPathsSync(o,i,"copy",n);return fp(s,o,i,n)}function iT(e,t,r,n){let o=H.readlinkSync(t);if(n.dereference&&(o=Qt.resolve(process.cwd(),o)),e){let i;try{i=H.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return H.symlinkSync(o,r);throw s}if(n.dereference&&(i=Qt.resolve(process.cwd(),i)),Zt.isSrcSubdir(o,i))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`);if(Zt.isSrcSubdir(i,o))throw new Error(`Cannot overwrite '${i}' with '${o}'.`);return sT(o,r)}else return H.symlinkSync(o,r)}function sT(e,t){return H.unlinkSync(t),H.symlinkSync(e,t)}pp.exports=JE});var qn=b((lM,yp)=>{"use strict";var aT=B().fromPromise;yp.exports={copy:aT(up()),copySync:hp()}});var er=b((uM,Sp)=>{"use strict";var gp=Tt(),cT=B().fromCallback;function lT(e,t){gp.rm(e,{recursive:!0,force:!0},t)}function uT(e){gp.rmSync(e,{recursive:!0,force:!0})}Sp.exports={remove:cT(lT),removeSync:uT}});var Ip=b((fM,Dp)=>{"use strict";var fT=B().fromPromise,xp=Y(),Ep=require("path"),Tp=se(),Op=er(),wp=fT(async function(t){let r;try{r=await xp.readdir(t)}catch{return Tp.mkdirs(t)}return Promise.all(r.map(n=>Op.remove(Ep.join(t,n))))});function bp(e){let t;try{t=xp.readdirSync(e)}catch{return Tp.mkdirsSync(e)}t.forEach(r=>{r=Ep.join(e,r),Op.removeSync(r)})}Dp.exports={emptyDirSync:bp,emptydirSync:bp,emptyDir:wp,emptydir:wp}});var Pp=b((dM,Rp)=>{"use strict";var dT=B().fromPromise,Ap=require("path"),Oe=Y(),vp=se();async function mT(e){let t;try{t=await Oe.stat(e)}catch{}if(t&&t.isFile())return;let r=Ap.dirname(e),n=null;try{n=await Oe.stat(r)}catch(o){if(o.code==="ENOENT"){await vp.mkdirs(r),await Oe.writeFile(e,"");return}else throw o}n.isDirectory()?await Oe.writeFile(e,""):await Oe.readdir(r)}function pT(e){let t;try{t=Oe.statSync(e)}catch{}if(t&&t.isFile())return;let r=Ap.dirname(e);try{Oe.statSync(r).isDirectory()||Oe.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")vp.mkdirsSync(r);else throw n}Oe.writeFileSync(e,"")}Rp.exports={createFile:dT(mT),createFileSync:pT}});var kp=b((mM,Lp)=>{"use strict";var hT=B().fromPromise,Cp=require("path"),$e=Y(),Fp=se(),{pathExists:yT}=ke(),{areIdentical:Mp}=Qe();async function gT(e,t){let r;try{r=await $e.lstat(t)}catch{}let n;try{n=await $e.lstat(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}if(r&&Mp(n,r))return;let o=Cp.dirname(t);await yT(o)||await Fp.mkdirs(o),await $e.link(e,t)}function ST(e,t){let r;try{r=$e.lstatSync(t)}catch{}try{let i=$e.lstatSync(e);if(r&&Mp(i,r))return}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let n=Cp.dirname(t);return $e.existsSync(n)||Fp.mkdirsSync(n),$e.linkSync(e,t)}Lp.exports={createLink:hT(gT),createLinkSync:ST}});var Bp=b((pM,$p)=>{"use strict";var Be=require("path"),tr=Y(),{pathExists:wT}=ke(),bT=B().fromPromise;async function xT(e,t){if(Be.isAbsolute(e)){try{await tr.lstat(e)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:e,toDst:e}}let r=Be.dirname(t),n=Be.join(r,e);if(await wT(n))return{toCwd:n,toDst:e};try{await tr.lstat(e)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:e,toDst:Be.relative(r,e)}}function ET(e,t){if(Be.isAbsolute(e)){if(!tr.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}let r=Be.dirname(t),n=Be.join(r,e);if(tr.existsSync(n))return{toCwd:n,toDst:e};if(!tr.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Be.relative(r,e)}}$p.exports={symlinkPaths:bT(xT),symlinkPathsSync:ET}});var Up=b((hM,Np)=>{"use strict";var _p=Y(),TT=B().fromPromise;async function OT(e,t){if(t)return t;let r;try{r=await _p.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}function DT(e,t){if(t)return t;let r;try{r=_p.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Np.exports={symlinkType:TT(OT),symlinkTypeSync:DT}});var Wp=b((yM,qp)=>{"use strict";var IT=B().fromPromise,jp=require("path"),pe=Y(),{mkdirs:AT,mkdirsSync:vT}=se(),{symlinkPaths:RT,symlinkPathsSync:PT}=Bp(),{symlinkType:CT,symlinkTypeSync:FT}=Up(),{pathExists:MT}=ke(),{areIdentical:Gp}=Qe();async function LT(e,t,r){let n;try{n=await pe.lstat(t)}catch{}if(n&&n.isSymbolicLink()){let[a,c]=await Promise.all([pe.stat(e),pe.stat(t)]);if(Gp(a,c))return}let o=await RT(e,t);e=o.toDst;let i=await CT(o.toCwd,r),s=jp.dirname(t);return await MT(s)||await AT(s),pe.symlink(e,t,i)}function kT(e,t,r){let n;try{n=pe.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let a=pe.statSync(e),c=pe.statSync(t);if(Gp(a,c))return}let o=PT(e,t);e=o.toDst,r=FT(o.toCwd,r);let i=jp.dirname(t);return pe.existsSync(i)||vT(i),pe.symlinkSync(e,t,r)}qp.exports={createSymlink:IT(LT),createSymlinkSync:kT}});var Qp=b((gM,Xp)=>{"use strict";var{createFile:zp,createFileSync:Vp}=Pp(),{createLink:Yp,createLinkSync:Hp}=kp(),{createSymlink:Jp,createSymlinkSync:Kp}=Wp();Xp.exports={createFile:zp,createFileSync:Vp,ensureFile:zp,ensureFileSync:Vp,createLink:Yp,createLinkSync:Hp,ensureLink:Yp,ensureLinkSync:Hp,createSymlink:Jp,createSymlinkSync:Kp,ensureSymlink:Jp,ensureSymlinkSync:Kp}});var Wn=b((SM,Zp)=>{"use strict";function $T(e,{EOL:t=`
49
- `,finalEOL:r=!0,replacer:n=null,spaces:o}={}){let i=r?t:"";return JSON.stringify(e,n,o).replace(/\n/g,t)+i}function BT(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Zp.exports={stringify:$T,stripBom:BT}});var nh=b((wM,rh)=>{"use strict";var It;try{It=Tt()}catch{It=require("fs")}var zn=B(),{stringify:eh,stripBom:th}=Wn();async function _T(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||It,n="throws"in t?t.throws:!0,o=await zn.fromCallback(r.readFile)(e,t);o=th(o);let i;try{i=JSON.parse(o,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return i}var NT=zn.fromPromise(_T);function UT(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||It,n="throws"in t?t.throws:!0;try{let o=r.readFileSync(e,t);return o=th(o),JSON.parse(o,t.reviver)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}}async function jT(e,t,r={}){let n=r.fs||It,o=eh(t,r);await zn.fromCallback(n.writeFile)(e,o,r)}var GT=zn.fromPromise(jT);function qT(e,t,r={}){let n=r.fs||It,o=eh(t,r);return n.writeFileSync(e,o,r)}var WT={readFile:NT,readFileSync:UT,writeFile:GT,writeFileSync:qT};rh.exports=WT});var ih=b((bM,oh)=>{"use strict";var Vn=nh();oh.exports={readJson:Vn.readFile,readJsonSync:Vn.readFileSync,writeJson:Vn.writeFile,writeJsonSync:Vn.writeFileSync}});var Yn=b((xM,ch)=>{"use strict";var zT=B().fromPromise,Ds=Y(),sh=require("path"),ah=se(),VT=ke().pathExists;async function YT(e,t,r="utf-8"){let n=sh.dirname(e);return await VT(n)||await ah.mkdirs(n),Ds.writeFile(e,t,r)}function HT(e,...t){let r=sh.dirname(e);Ds.existsSync(r)||ah.mkdirsSync(r),Ds.writeFileSync(e,...t)}ch.exports={outputFile:zT(YT),outputFileSync:HT}});var uh=b((EM,lh)=>{"use strict";var{stringify:JT}=Wn(),{outputFile:KT}=Yn();async function XT(e,t,r={}){let n=JT(t,r);await KT(e,n,r)}lh.exports=XT});var dh=b((TM,fh)=>{"use strict";var{stringify:QT}=Wn(),{outputFileSync:ZT}=Yn();function eO(e,t,r){let n=QT(t,r);ZT(e,n,r)}fh.exports=eO});var ph=b((OM,mh)=>{"use strict";var tO=B().fromPromise,J=ih();J.outputJson=tO(uh());J.outputJsonSync=dh();J.outputJSON=J.outputJson;J.outputJSONSync=J.outputJsonSync;J.writeJSON=J.writeJson;J.writeJSONSync=J.writeJsonSync;J.readJSON=J.readJson;J.readJSONSync=J.readJsonSync;mh.exports=J});var wh=b((DM,Sh)=>{"use strict";var rO=Y(),hh=require("path"),{copy:nO}=qn(),{remove:gh}=er(),{mkdirp:oO}=se(),{pathExists:iO}=ke(),yh=Qe();async function sO(e,t,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:o,isChangingCase:i=!1}=await yh.checkPaths(e,t,"move",r);await yh.checkParentPaths(e,o,t,"move");let s=hh.dirname(t);return hh.parse(s).root!==s&&await oO(s),aO(e,t,n,i)}async function aO(e,t,r,n){if(!n){if(r)await gh(t);else if(await iO(t))throw new Error("dest already exists.")}try{await rO.rename(e,t)}catch(o){if(o.code!=="EXDEV")throw o;await cO(e,t,r)}}async function cO(e,t,r){return await nO(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),gh(e)}Sh.exports=sO});var Oh=b((IM,Th)=>{"use strict";var xh=Tt(),As=require("path"),lO=qn().copySync,Eh=er().removeSync,uO=se().mkdirpSync,bh=Qe();function fO(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:o,isChangingCase:i=!1}=bh.checkPathsSync(e,t,"move",r);return bh.checkParentPathsSync(e,o,t,"move"),dO(t)||uO(As.dirname(t)),mO(e,t,n,i)}function dO(e){let t=As.dirname(e);return As.parse(t).root===t}function mO(e,t,r,n){if(n)return Is(e,t,r);if(r)return Eh(t),Is(e,t,r);if(xh.existsSync(t))throw new Error("dest already exists.");return Is(e,t,r)}function Is(e,t,r){try{xh.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return pO(e,t,r)}}function pO(e,t,r){return lO(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),Eh(e)}Th.exports=fO});var Ih=b((AM,Dh)=>{"use strict";var hO=B().fromPromise;Dh.exports={move:hO(wh()),moveSync:Oh()}});var vh=b((vM,Ah)=>{"use strict";Ah.exports={...Y(),...qn(),...Ip(),...Qp(),...ph(),...se(),...Ih(),...Yn(),...ke(),...er()}});var bO={};Ps(bO,{default:()=>Gh});module.exports=Hh(bO);var Ze=require("path"),Rs=require("@dz-web/esboot");var TO=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var pE=Promise.resolve().then(()=>(Mm(),Fm)),Lm=async(e,{options:t={},onError:r}={})=>{let{$:n}=await pE;try{return await n({stdio:"inherit",shell:!0,cwd:process.cwd(),...t})`${e}`}catch(o){if(r)r(o);else throw o}};var _e={};Cs(_e,G(vh(),1));var Hn=require("path");var Rh=process.platform==="win32";var Jn=(0,Hn.resolve)(process.cwd(),"node_modules/.cache/esboot"),yO=(0,Hn.join)(Jn,"webpack-cache"),Ph=(e=>(e.MOBILE="mobile",e.PC="pc",e))(Ph||{}),Ch=(e=>(e.native="native",e.browser="browser",e))(Ch||{}),Fh=(e=>(e.terser="terser",e.esbuild="esbuild",e.swc="swc",e.none="none",e))(Fh||{}),Mh=(e=>(e.esbuild="esbuild",e.cssnano="cssnano",e.lightningcss="lightningcss",e.none="none",e))(Mh||{});var Lh=(e=>(e.dev="development",e.prod="production",e.test="test",e))(Lh||{});var vs,$h,Bh,_h,Nh=!0;typeof process<"u"&&({FORCE_COLOR:vs,NODE_DISABLE_COLORS:$h,NO_COLOR:Bh,TERM:_h}=process.env||{},Nh=process.stdout&&process.stdout.isTTY);var I={enabled:!$h&&Bh==null&&_h!=="dumb"&&(vs!=null&&vs!=="0"||Nh),reset:v(0,0),bold:v(1,22),dim:v(2,22),italic:v(3,23),underline:v(4,24),inverse:v(7,27),hidden:v(8,28),strikethrough:v(9,29),black:v(30,39),red:v(31,39),green:v(32,39),yellow:v(33,39),blue:v(34,39),magenta:v(35,39),cyan:v(36,39),white:v(37,39),gray:v(90,39),grey:v(90,39),bgBlack:v(40,49),bgRed:v(41,49),bgGreen:v(42,49),bgYellow:v(43,49),bgBlue:v(44,49),bgMagenta:v(45,49),bgCyan:v(46,49),bgWhite:v(47,49)};function kh(e,t){let r=0,n,o="",i="";for(;r<e.length;r++)n=e[r],o+=n.open,i+=n.close,~t.indexOf(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return o+t+i}function gO(e,t){let r={has:e,keys:t};return r.reset=I.reset.bind(r),r.bold=I.bold.bind(r),r.dim=I.dim.bind(r),r.italic=I.italic.bind(r),r.underline=I.underline.bind(r),r.inverse=I.inverse.bind(r),r.hidden=I.hidden.bind(r),r.strikethrough=I.strikethrough.bind(r),r.black=I.black.bind(r),r.red=I.red.bind(r),r.green=I.green.bind(r),r.yellow=I.yellow.bind(r),r.blue=I.blue.bind(r),r.magenta=I.magenta.bind(r),r.cyan=I.cyan.bind(r),r.white=I.white.bind(r),r.gray=I.gray.bind(r),r.grey=I.grey.bind(r),r.bgBlack=I.bgBlack.bind(r),r.bgRed=I.bgRed.bind(r),r.bgGreen=I.bgGreen.bind(r),r.bgYellow=I.bgYellow.bind(r),r.bgBlue=I.bgBlue.bind(r),r.bgMagenta=I.bgMagenta.bind(r),r.bgCyan=I.bgCyan.bind(r),r.bgWhite=I.bgWhite.bind(r),r}function v(e,t){let r={open:`\x1B[${e}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(r)),n===void 0?this:I.enabled?kh(this.keys,n+""):n+""):n===void 0?gO([e],[r]):I.enabled?kh([r],n+""):n+""}}var Ne=I;var SO={wait:`${Ne.cyan("wait")} -`,error:`${Ne.red("error")} -`,warn:`${Ne.yellow("warn")} -`,ready:`${Ne.green("ready")} -`,info:`${Ne.cyan("info")} -`,event:`${Ne.magenta("event")} -`,debug:`${Ne.gray("debug")} -`};function Uh(...e){console.log(SO.info,...e)}var wO=(0,Ze.join)(__dirname,"../config/.dumirc.ts"),Kn=(0,Ze.join)(Jn,"dumi/.dumirc.ts"),jh="./docs",Gh=()=>({key:"plugin-docs",[Rs.PluginHooks.registerCommands]:()=>[{name:"docs",description:"Start docs",arguments:[{name:"[subCommand]",description:"the sub command",defaultValue:"dev"}],allowUnknownOption:!0,action:async(e,t)=>{let{port:r}=t;process.env.APP_ROOT=jh,process.env.DUMI_THEME=(0,Ze.dirname)(require.resolve("dumi-theme-lobehub/package.json"));let n=(0,Ze.relative)(jh,Kn),o=`node ~/Code/fork-repos/dumi/bin/dumi.js ${e} --config ${n}`;r&&(process.env.port=r,o+=` --port ${r}`),Lm(o)}}],[Rs.PluginHooks.prepare]:()=>{(0,_e.ensureFileSync)(Kn),(0,_e.copySync)(wO,Kn),Uh(`Created Doc Config: ${Kn}.`)}});
48
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:o}=er.checkPathsSync(e,t,"copy",r);if(er.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let i=Zt.dirname(t);return H.existsSync(i)||XE(i),pp(o,e,t,r)}function pp(e,t,r,n){let i=(n.dereference?H.statSync:H.lstatSync)(t);if(i.isDirectory())return sT(i,e,t,r,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return eT(i,e,t,r,n);if(i.isSymbolicLink())return lT(e,t,r,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${t}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function eT(e,t,r,n,o){return t?tT(e,r,n,o):hp(e,r,n,o)}function tT(e,t,r,n){if(n.overwrite)return H.unlinkSync(r),hp(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function hp(e,t,r,n){return H.copyFileSync(t,r),n.preserveTimestamps&&rT(e.mode,t,r),Ds(r,e.mode)}function rT(e,t,r){return nT(e)&&oT(r,e),iT(t,r)}function nT(e){return(e&128)===0}function oT(e,t){return Ds(e,t|128)}function Ds(e,t){return H.chmodSync(e,t)}function iT(e,t){let r=H.statSync(e);return QE(t,r.atime,r.mtime)}function sT(e,t,r,n,o){return t?yp(r,n,o):aT(e.mode,r,n,o)}function aT(e,t,r,n){return H.mkdirSync(r),yp(t,r,n),Ds(r,e)}function yp(e,t,r){let n=H.opendirSync(e);try{let o;for(;(o=n.readSync())!==null;)cT(o.name,e,t,r)}finally{n.closeSync()}}function cT(e,t,r,n){let o=Zt.join(t,e),i=Zt.join(r,e);if(n.filter&&!n.filter(o,i))return;let{destStat:s}=er.checkPathsSync(o,i,"copy",n);return pp(s,o,i,n)}function lT(e,t,r,n){let o=H.readlinkSync(t);if(n.dereference&&(o=Zt.resolve(process.cwd(),o)),e){let i;try{i=H.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return H.symlinkSync(o,r);throw s}if(n.dereference&&(i=Zt.resolve(process.cwd(),i)),o!==i){if(er.isSrcSubdir(o,i))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`);if(er.isSrcSubdir(i,o))throw new Error(`Cannot overwrite '${i}' with '${o}'.`)}return uT(o,r)}else return H.symlinkSync(o,r)}function uT(e,t){return H.unlinkSync(t),H.symlinkSync(e,t)}gp.exports=ZE});var Wn=b((yM,wp)=>{"use strict";var fT=_().fromPromise;wp.exports={copy:fT(mp()),copySync:Sp()}});var tr=b((gM,xp)=>{"use strict";var bp=Ot(),dT=_().fromCallback;function mT(e,t){bp.rm(e,{recursive:!0,force:!0},t)}function pT(e){bp.rmSync(e,{recursive:!0,force:!0})}xp.exports={remove:dT(mT),removeSync:pT}});var Rp=b((SM,Ap)=>{"use strict";var hT=_().fromPromise,Op=Y(),Dp=require("path"),Ip=ae(),vp=tr(),Ep=hT(async function(t){let r;try{r=await Op.readdir(t)}catch{return Ip.mkdirs(t)}return Promise.all(r.map(n=>vp.remove(Dp.join(t,n))))});function Tp(e){let t;try{t=Op.readdirSync(e)}catch{return Ip.mkdirsSync(e)}t.forEach(r=>{r=Dp.join(e,r),vp.removeSync(r)})}Ap.exports={emptyDirSync:Tp,emptydirSync:Tp,emptyDir:Ep,emptydir:Ep}});var Mp=b((wM,Fp)=>{"use strict";var yT=_().fromPromise,Pp=require("path"),Oe=Y(),Cp=ae();async function gT(e){let t;try{t=await Oe.stat(e)}catch{}if(t&&t.isFile())return;let r=Pp.dirname(e),n=null;try{n=await Oe.stat(r)}catch(o){if(o.code==="ENOENT"){await Cp.mkdirs(r),await Oe.writeFile(e,"");return}else throw o}n.isDirectory()?await Oe.writeFile(e,""):await Oe.readdir(r)}function ST(e){let t;try{t=Oe.statSync(e)}catch{}if(t&&t.isFile())return;let r=Pp.dirname(e);try{Oe.statSync(r).isDirectory()||Oe.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Cp.mkdirsSync(r);else throw n}Oe.writeFileSync(e,"")}Fp.exports={createFile:yT(gT),createFileSync:ST}});var _p=b((bM,Bp)=>{"use strict";var wT=_().fromPromise,Lp=require("path"),ke=Y(),$p=ae(),{pathExists:bT}=$e(),{areIdentical:kp}=Ze();async function xT(e,t){let r;try{r=await ke.lstat(t,{bigint:!0})}catch{}let n;try{n=await ke.lstat(e,{bigint:!0})}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}if(r&&kp(n,r))return;let o=Lp.dirname(t);await bT(o)||await $p.mkdirs(o),await ke.link(e,t)}function ET(e,t){let r;try{r=ke.lstatSync(t,{bigint:!0})}catch{}try{let i=ke.lstatSync(e,{bigint:!0});if(r&&kp(i,r))return}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let n=Lp.dirname(t);return ke.existsSync(n)||$p.mkdirsSync(n),ke.linkSync(e,t)}Bp.exports={createLink:wT(xT),createLinkSync:ET}});var Up=b((xM,Np)=>{"use strict";var Be=require("path"),rr=Y(),{pathExists:TT}=$e(),OT=_().fromPromise;async function DT(e,t){if(Be.isAbsolute(e)){try{await rr.lstat(e)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:e,toDst:e}}let r=Be.dirname(t),n=Be.join(r,e);if(await TT(n))return{toCwd:n,toDst:e};try{await rr.lstat(e)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:e,toDst:Be.relative(r,e)}}function IT(e,t){if(Be.isAbsolute(e)){if(!rr.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}let r=Be.dirname(t),n=Be.join(r,e);if(rr.existsSync(n))return{toCwd:n,toDst:e};if(!rr.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Be.relative(r,e)}}Np.exports={symlinkPaths:OT(DT),symlinkPathsSync:IT}});var qp=b((EM,Gp)=>{"use strict";var jp=Y(),vT=_().fromPromise;async function AT(e,t){if(t)return t;let r;try{r=await jp.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}function RT(e,t){if(t)return t;let r;try{r=jp.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Gp.exports={symlinkType:vT(AT),symlinkTypeSync:RT}});var Vp=b((TM,zp)=>{"use strict";var PT=_().fromPromise,_e=require("path"),K=Y(),{mkdirs:CT,mkdirsSync:FT}=ae(),{symlinkPaths:MT,symlinkPathsSync:LT}=Up(),{symlinkType:$T,symlinkTypeSync:kT}=qp(),{pathExists:BT}=$e(),{areIdentical:Wp}=Ze();async function _T(e,t,r){let n;try{n=await K.lstat(t)}catch{}if(n&&n.isSymbolicLink()){let a;if(_e.isAbsolute(e))a=await K.stat(e,{bigint:!0});else{let u=_e.dirname(t),c=_e.join(u,e);try{a=await K.stat(c,{bigint:!0})}catch{a=await K.stat(e,{bigint:!0})}}let l=await K.stat(t,{bigint:!0});if(Wp(a,l))return}let o=await MT(e,t);e=o.toDst;let i=await $T(o.toCwd,r),s=_e.dirname(t);return await BT(s)||await CT(s),K.symlink(e,t,i)}function NT(e,t,r){let n;try{n=K.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let a;if(_e.isAbsolute(e))a=K.statSync(e,{bigint:!0});else{let u=_e.dirname(t),c=_e.join(u,e);try{a=K.statSync(c,{bigint:!0})}catch{a=K.statSync(e,{bigint:!0})}}let l=K.statSync(t,{bigint:!0});if(Wp(a,l))return}let o=LT(e,t);e=o.toDst,r=kT(o.toCwd,r);let i=_e.dirname(t);return K.existsSync(i)||FT(i),K.symlinkSync(e,t,r)}zp.exports={createSymlink:PT(_T),createSymlinkSync:NT}});var eh=b((OM,Zp)=>{"use strict";var{createFile:Yp,createFileSync:Hp}=Mp(),{createLink:Jp,createLinkSync:Kp}=_p(),{createSymlink:Xp,createSymlinkSync:Qp}=Vp();Zp.exports={createFile:Yp,createFileSync:Hp,ensureFile:Yp,ensureFileSync:Hp,createLink:Jp,createLinkSync:Kp,ensureLink:Jp,ensureLinkSync:Kp,createSymlink:Xp,createSymlinkSync:Qp,ensureSymlink:Xp,ensureSymlinkSync:Qp}});var zn=b((DM,th)=>{"use strict";function UT(e,{EOL:t=`
49
+ `,finalEOL:r=!0,replacer:n=null,spaces:o}={}){let i=r?t:"",s=JSON.stringify(e,n,o);if(s===void 0)throw new TypeError(`Converting ${typeof e} value to JSON is not supported`);return s.replace(/\n/g,t)+i}function jT(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}th.exports={stringify:UT,stripBom:jT}});var ih=b((IM,oh)=>{"use strict";var vt;try{vt=Ot()}catch{vt=require("fs")}var Vn=_(),{stringify:rh,stripBom:nh}=zn();async function GT(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||vt,n="throws"in t?t.throws:!0,o=await Vn.fromCallback(r.readFile)(e,t);o=nh(o);let i;try{i=JSON.parse(o,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return i}var qT=Vn.fromPromise(GT);function WT(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||vt,n="throws"in t?t.throws:!0;try{let o=r.readFileSync(e,t);return o=nh(o),JSON.parse(o,t.reviver)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}}async function zT(e,t,r={}){let n=r.fs||vt,o=rh(t,r);await Vn.fromCallback(n.writeFile)(e,o,r)}var VT=Vn.fromPromise(zT);function YT(e,t,r={}){let n=r.fs||vt,o=rh(t,r);return n.writeFileSync(e,o,r)}oh.exports={readFile:qT,readFileSync:WT,writeFile:VT,writeFileSync:YT}});var ah=b((vM,sh)=>{"use strict";var Yn=ih();sh.exports={readJson:Yn.readFile,readJsonSync:Yn.readFileSync,writeJson:Yn.writeFile,writeJsonSync:Yn.writeFileSync}});var Hn=b((AM,uh)=>{"use strict";var HT=_().fromPromise,Is=Y(),ch=require("path"),lh=ae(),JT=$e().pathExists;async function KT(e,t,r="utf-8"){let n=ch.dirname(e);return await JT(n)||await lh.mkdirs(n),Is.writeFile(e,t,r)}function XT(e,...t){let r=ch.dirname(e);Is.existsSync(r)||lh.mkdirsSync(r),Is.writeFileSync(e,...t)}uh.exports={outputFile:HT(KT),outputFileSync:XT}});var dh=b((RM,fh)=>{"use strict";var{stringify:QT}=zn(),{outputFile:ZT}=Hn();async function eO(e,t,r={}){let n=QT(t,r);await ZT(e,n,r)}fh.exports=eO});var ph=b((PM,mh)=>{"use strict";var{stringify:tO}=zn(),{outputFileSync:rO}=Hn();function nO(e,t,r){let n=tO(t,r);rO(e,n,r)}mh.exports=nO});var yh=b((CM,hh)=>{"use strict";var oO=_().fromPromise,J=ah();J.outputJson=oO(dh());J.outputJsonSync=ph();J.outputJSON=J.outputJson;J.outputJSONSync=J.outputJsonSync;J.writeJSON=J.writeJson;J.writeJSONSync=J.writeJsonSync;J.readJSON=J.readJson;J.readJSONSync=J.readJsonSync;hh.exports=J});var xh=b((FM,bh)=>{"use strict";var iO=Y(),gh=require("path"),{copy:sO}=Wn(),{remove:wh}=tr(),{mkdirp:aO}=ae(),{pathExists:cO}=$e(),Sh=Ze();async function lO(e,t,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:o,isChangingCase:i=!1}=await Sh.checkPaths(e,t,"move",r);await Sh.checkParentPaths(e,o,t,"move");let s=gh.dirname(t);return gh.parse(s).root!==s&&await aO(s),uO(e,t,n,i)}async function uO(e,t,r,n){if(!n){if(r)await wh(t);else if(await cO(t))throw new Error("dest already exists.")}try{await iO.rename(e,t)}catch(o){if(o.code!=="EXDEV")throw o;await fO(e,t,r)}}async function fO(e,t,r){return await sO(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),wh(e)}bh.exports=lO});var Ih=b((MM,Dh)=>{"use strict";var Th=Ot(),As=require("path"),dO=Wn().copySync,Oh=tr().removeSync,mO=ae().mkdirpSync,Eh=Ze();function pO(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:o,isChangingCase:i=!1}=Eh.checkPathsSync(e,t,"move",r);return Eh.checkParentPathsSync(e,o,t,"move"),hO(t)||mO(As.dirname(t)),yO(e,t,n,i)}function hO(e){let t=As.dirname(e);return As.parse(t).root===t}function yO(e,t,r,n){if(n)return vs(e,t,r);if(r)return Oh(t),vs(e,t,r);if(Th.existsSync(t))throw new Error("dest already exists.");return vs(e,t,r)}function vs(e,t,r){try{Th.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return gO(e,t,r)}}function gO(e,t,r){return dO(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),Oh(e)}Dh.exports=pO});var Ah=b((LM,vh)=>{"use strict";var SO=_().fromPromise;vh.exports={move:SO(xh()),moveSync:Ih()}});var Ph=b(($M,Rh)=>{"use strict";Rh.exports={...Y(),...Wn(),...Rp(),...eh(),...yh(),...ae(),...Ah(),...Hn(),...$e(),...tr()}});var IO={};Cs(IO,{default:()=>Wh});module.exports=Kh(IO);var et=require("path"),Ps=require("@dz-web/esboot");var RO=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var yE=Promise.resolve().then(()=>(Lm(),Mm)),$m=async(e,{options:t={},onError:r}={})=>{let{$:n}=await yE;try{return await n({stdio:"inherit",shell:!0,cwd:process.cwd(),...t})`${e}`}catch(o){if(r)r(o);else throw o}};var Ne={};Fs(Ne,L(Ph(),1));var Jn=require("path");var Ch=process.platform==="win32";var Kn=(0,Jn.resolve)(process.cwd(),"node_modules/.cache/esboot"),wO=(0,Jn.join)(Kn,"webpack-cache"),Fh=(e=>(e.MOBILE="mobile",e.PC="pc",e))(Fh||{}),Mh=(e=>(e.native="native",e.browser="browser",e))(Mh||{}),Lh=(e=>(e.terser="terser",e.esbuild="esbuild",e.swc="swc",e.none="none",e))(Lh||{}),$h=(e=>(e.esbuild="esbuild",e.cssnano="cssnano",e.lightningcss="lightningcss",e.none="none",e))($h||{});var kh=(e=>(e.dev="development",e.prod="production",e.test="test",e))(kh||{});var Rs,_h,Nh,Uh,jh=!0;typeof process<"u"&&({FORCE_COLOR:Rs,NODE_DISABLE_COLORS:_h,NO_COLOR:Nh,TERM:Uh}=process.env||{},jh=process.stdout&&process.stdout.isTTY);var I={enabled:!_h&&Nh==null&&Uh!=="dumb"&&(Rs!=null&&Rs!=="0"||jh),reset:A(0,0),bold:A(1,22),dim:A(2,22),italic:A(3,23),underline:A(4,24),inverse:A(7,27),hidden:A(8,28),strikethrough:A(9,29),black:A(30,39),red:A(31,39),green:A(32,39),yellow:A(33,39),blue:A(34,39),magenta:A(35,39),cyan:A(36,39),white:A(37,39),gray:A(90,39),grey:A(90,39),bgBlack:A(40,49),bgRed:A(41,49),bgGreen:A(42,49),bgYellow:A(43,49),bgBlue:A(44,49),bgMagenta:A(45,49),bgCyan:A(46,49),bgWhite:A(47,49)};function Bh(e,t){let r=0,n,o="",i="";for(;r<e.length;r++)n=e[r],o+=n.open,i+=n.close,~t.indexOf(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return o+t+i}function bO(e,t){let r={has:e,keys:t};return r.reset=I.reset.bind(r),r.bold=I.bold.bind(r),r.dim=I.dim.bind(r),r.italic=I.italic.bind(r),r.underline=I.underline.bind(r),r.inverse=I.inverse.bind(r),r.hidden=I.hidden.bind(r),r.strikethrough=I.strikethrough.bind(r),r.black=I.black.bind(r),r.red=I.red.bind(r),r.green=I.green.bind(r),r.yellow=I.yellow.bind(r),r.blue=I.blue.bind(r),r.magenta=I.magenta.bind(r),r.cyan=I.cyan.bind(r),r.white=I.white.bind(r),r.gray=I.gray.bind(r),r.grey=I.grey.bind(r),r.bgBlack=I.bgBlack.bind(r),r.bgRed=I.bgRed.bind(r),r.bgGreen=I.bgGreen.bind(r),r.bgYellow=I.bgYellow.bind(r),r.bgBlue=I.bgBlue.bind(r),r.bgMagenta=I.bgMagenta.bind(r),r.bgCyan=I.bgCyan.bind(r),r.bgWhite=I.bgWhite.bind(r),r}function A(e,t){let r={open:`\x1B[${e}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(r)),n===void 0?this:I.enabled?Bh(this.keys,n+""):n+""):n===void 0?bO([e],[r]):I.enabled?Bh([r],n+""):n+""}}var Ue=I;var xO=L(require("os"),1),EO=L(require("fs/promises"),1),TO=L(require("child_process"),1);var OO={wait:`${Ue.cyan("wait")} -`,error:`${Ue.red("error")} -`,warn:`${Ue.yellow("warn")} -`,ready:`${Ue.green("ready")} -`,info:`${Ue.cyan("info")} -`,event:`${Ue.magenta("event")} -`,debug:`${Ue.gray("debug")} -`};function Gh(...e){console.log(OO.info,...e)}var DO=(0,et.join)(__dirname,"../config/.dumirc.ts"),Xn=(0,et.join)(Kn,"dumi/.dumirc.ts"),qh="./docs",Wh=()=>({key:"plugin-docs",[Ps.PluginHooks.registerCommands]:()=>[{name:"docs",description:"Start docs",arguments:[{name:"[subCommand]",description:"the sub command",defaultValue:"dev"}],allowUnknownOption:!0,action:async(e,t)=>{let{port:r}=t;process.env.APP_ROOT=qh,process.env.DUMI_THEME=(0,et.dirname)(require.resolve("dumi-theme-lobehub/package.json"));let n=(0,et.relative)(qh,Xn),o=`node ~/Code/fork-repos/dumi/bin/dumi.js ${e} --config ${n}`;r&&(process.env.port=r,o+=` --port ${r}`),$m(o)}}],[Ps.PluginHooks.prepare]:()=>{(0,Ne.ensureFileSync)(Xn),(0,Ne.copySync)(DO,Xn),Gh(`Created Doc Config: ${Xn}.`)}});