UNPKG

@bring-it/npm

Version:
1 lines 142 kB
export const __webpack_esm_id__=704;export const __webpack_esm_ids__=[704];export const __webpack_esm_modules__={22:(e,t,r)=>{const n=r(2069),o=r(8610),{ANY:i}=o,s=r(4056),a=r(6958),c=[new o(">=0.0.0-0")],l=[new o(">=0.0.0")],d=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?c:l}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l}const n=new Set;let o,d,f,m,h,b,g;for(const t of e)">"===t.operator||">="===t.operator?o=u(o,t,r):"<"===t.operator||"<="===t.operator?d=p(d,t,r):n.add(t.semver);if(n.size>1)return null;if(o&&d){if(f=a(o.semver,d.semver,r),f>0)return null;if(0===f&&(">="!==o.operator||"<="!==d.operator))return null}for(const e of n){if(o&&!s(e,String(o),r))return null;if(d&&!s(e,String(d),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}let y=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,w=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver;y&&1===y.prerelease.length&&"<"===d.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,b=b||"<"===e.operator||"<="===e.operator,o)if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),">"===e.operator||">="===e.operator){if(m=u(o,e,r),m===e&&m!==o)return!1}else if(">="===o.operator&&!s(o.semver,String(e),r))return!1;if(d)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(h=p(d,e,r),h===e&&h!==d)return!1}else if("<="===d.operator&&!s(d.semver,String(e),r))return!1;if(!e.operator&&(d||o)&&0!==f)return!1}return!(o&&b&&!d&&0!==f||d&&g&&!o&&0!==f||w||y)},u=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=d(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},152:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=r(5076),s=r(674),a=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],d=t.safeSrc=[],u=t.t={};let p=0;const f="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[f,o]],h=(e,t,r)=>{const n=(e=>{for(const[t,r]of m)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=p++;s(e,o,t),u[e]=o,l[o]=t,d[o]=n,a[o]=new RegExp(t,r?"g":void 0),c[o]=new RegExp(n,r?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),h("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${f}+`),h("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),h("FULL",`^${l[u.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),h("LOOSE",`^${l[u.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),h("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),h("COERCERTL",l[u.COERCE],!0),h("COERCERTLFULL",l[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},203:(e,t,r)=>{const n=r(2398),o=r(2069),i=r(1686);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let s=null;o.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!i(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!s||r&&!i(r,s)||(r=s)}return r&&e.test(r)?r:null}},442:e=>{const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return t&&1===e&&!n.file?r(n.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const o=e.emit;e.emit=function(t,i){if("exit"===t){const t=n(i,r);if(t)return o.call(e,"error",t)}return o.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},600:(e,t,r)=>{const n=r(7257);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,o]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i}},674:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},709:(e,t,r)=>{e.exports=o,o.sync=function(e,t){return i(n.statSync(e),t)};var n=r(9896);function o(e,t,r){n.stat(e,function(e,n){r(e,!e&&i(n,t))})}function i(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return r&parseInt("001",8)||r&c&&o===s||r&a&&n===i||r&(a|c)&&0===i}(e,t)}},733:(e,t,r)=>{const n=r(6958);e.exports=(e,t,r)=>0!==n(e,t,r)},1008:(e,t,r)=>{const n=r(2398),o=r(2069);e.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(i&&1!==s.compare(e)||(i=e,s=new n(i,r)))}),i}},1293:(e,t,r)=>{function n(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}r.d(t,{Ho:()=>Ol});var o=r(3136);const i=(e,t)=>{const r=c(s(e));if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},s=e=>a(e)?e.toString():e,a=e=>"string"!=typeof e&&e&&Object.getPrototypeOf(e)===String.prototype,c=e=>e instanceof URL?(0,o.fileURLToPath)(e):e,l=(e,t=[],r={})=>{const o=i(e,"First argument"),[s,a]=n(t)?[[],t]:[t,r];if(!Array.isArray(s))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${s}`);if(s.some(e=>"object"==typeof e&&null!==e))throw new TypeError(`Second argument must be an array of strings: ${s}`);const c=s.map(String),l=c.find(e=>e.includes("\0"));if(void 0!==l)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${l}`);if(!n(a))throw new TypeError(`Last argument must be an options object: ${a}`);return[o,c,a]};var d=r(1421),u=r(6193);const{toString:p}=Object.prototype,f=e=>"[object Uint8Array]"===p.call(e),m=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),h=new TextEncoder,b=e=>h.encode(e),g=new TextDecoder,y=e=>g.decode(e),w=e=>1===e.length&&f(e[0])?e[0]:v(E(e)),E=e=>e.map(e=>"string"==typeof e?b(e):e),v=e=>{const t=new Uint8Array(S(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},S=e=>{let t=0;for(const r of e)t+=r.length;return t},I=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{if(void 0===o)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);const{nextTokens:i,leadingWhitespaces:s,trailingWhitespaces:a}=$(o,e.raw[n]),c=O(r,i,s);if(n===t.length)return c;const l=t[n],d=Array.isArray(l)?l.map(e=>N(e)):[N(l)];return O(c,d,a)},$=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const o=T.has(t[0]);for(let o=0,i=0;o<e.length;o+=1,i+=1){const s=t[i];if(T.has(s))n!==o&&r.push(e.slice(n,o)),n=o+1;else if("\\"===s){const e=t[i+1];"\n"===e?(o-=1,i+=1):"u"===e&&"{"===t[i+2]?i=t.indexOf("}",i+3):i+=x[e]??1}}const i=n===e.length;return i||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:o,trailingWhitespaces:i}},T=new Set([" ","\t","\r","\n"]),x={x:3,u:5},O=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],N=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(n(e)&&("stdout"in e||"isMaxBuffer"in e))return R(e);if(e instanceof d.ChildProcess||"[object Promise]"===Object.prototype.toString.call(e))throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw new TypeError(`Unexpected "${t}" in template expression`)},R=({stdout:e})=>{if("string"==typeof e)return e;if(f(e))return y(e);if(void 0===e)throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');throw new TypeError(`Unexpected "${typeof e}" stdout in template expression`)};var D=r(7975),A=r(1708);const L=e=>M.includes(e),M=[A.stdin,A.stdout,A.stderr],C=["stdin","stdout","stderr"],P=e=>C[e]??`stdio[${e}]`,j=(e,t)=>{const r=Array.from({length:B(e)+1}),n=k(e[t],r,t);return z(n,t)},B=({stdio:e})=>Array.isArray(e)?Math.max(e.length,C.length):C.length,k=(e,t,r)=>n(e)?U(e,t,r):t.fill(e),U=(e,t,r)=>{for(const n of Object.keys(e).sort(F))for(const o of _(n,r,t))t[o]=e[n];return t},F=(e,t)=>G(e)<G(t)?1:-1,G=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,_=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=W(e);if(void 0===n||0===n)throw new TypeError(`"${t}.${e}" is invalid.\nIt 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.\nPlease set the "stdio" option to ensure that file descriptor exists.`);return"all"===n?[1,2]:[n]},W=e=>{if("all"===e)return e;if(C.includes(e))return C.indexOf(e);const t=V.exec(e);return null!==t?Number(t[1]):void 0},V=/^fd(\d+)$/,z=(e,t)=>e.map(e=>void 0===e?H[t]:e),H={lines:!1,buffer:!0,maxBuffer:1e8,verbose:(0,D.debuglog)("execa").enabled?"full":"none",stripFinalNewline:!0},X=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],K=(e,t)=>"ipc"===t?e.at(-1):e[t],q=({verbose:e},t)=>"none"!==J(e,t),Y=({verbose:e},t)=>!["none","short"].includes(J(e,t)),J=(e,t)=>void 0===t?Z(e):K(e,t),Z=e=>e.find(e=>Q(e))??ee.findLast(t=>e.includes(t)),Q=e=>"function"==typeof e,ee=["none","short","full"],te=e=>(0,D.stripVTControlCharacters)(e).split("\n").map(e=>re(e)).join("\n"),re=e=>e.replaceAll(oe,e=>ne(e)),ne=e=>{const t=ie[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=se?`\\u${n.padStart(4,"0")}`:`\\U${n}`},oe=(()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}})(),ie={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},se=65535,ae=/^[\w./-]+$/,ce={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"},le={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"},de={...ce,...le},ue={...ce,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"},pe=function(){const{env:e}=A,{TERM:t,TERM_PROGRAM:r}=e;return"win32"!==A.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===r||"vscode"===r||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}()?de:ue;Object.entries(le);var fe=r(7066);const me=fe?.WriteStream?.prototype?.hasColors?.()??!1,he=(e,t)=>{if(!me)return e=>e;const r=`\x1b[${e}m`,n=`\x1b[${t}m`;return e=>{const o=e+"";let i=o.indexOf(n);if(-1===i)return r+o+n;let s=r,a=0;const c=(22===t?n:"")+r;for(;-1!==i;)s+=o.slice(a,i)+c,a=i+n.length,i=o.indexOf(n,a);return s+=o.slice(a)+n,s}},be=(he(0,0),he(1,22)),ge=(he(2,22),he(3,23),he(4,24),he(53,55),he(7,27),he(8,28),he(9,29),he(30,39),he(31,39),he(32,39),he(33,39),he(34,39),he(35,39),he(36,39),he(37,39),he(90,39)),ye=(he(40,49),he(41,49),he(42,49),he(43,49),he(44,49),he(45,49),he(46,49),he(47,49),he(100,49),he(91,39)),we=(he(92,39),he(93,39)),Ee=(he(94,39),he(95,39),he(96,39),he(97,39),he(101,49),he(102,49),he(103,49),he(104,49),he(105,49),he(106,49),he(107,49),e=>`${ve(e.getHours(),2)}:${ve(e.getMinutes(),2)}:${ve(e.getSeconds(),2)}.${ve(e.getMilliseconds(),3)}`),ve=(e,t)=>String(e).padStart(t,"0"),Se=({failed:e,reject:t})=>e?t?pe.cross:pe.warning:pe.tick,Ie={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:Se,duration:Se},$e=e=>e,Te={command:()=>be,output:()=>$e,ipc:()=>$e,error:({reject:e})=>e?ye:we,duration:()=>ge},xe=(e,t,r)=>{if(void 0===r)return e;const n=r(e,t);return"string"==typeof n?n:void 0},Oe=e=>e.endsWith("\n")?e:`${e}\n`,Ne=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:o})=>{const i=Re({type:e,result:o,verboseInfo:n}),s=((e,t,r)=>{const n=(({verbose:e},t)=>{const r=J(e,t);return Q(r)?r:void 0})(t,r);return e.map(({verboseLine:e,verboseObject:t})=>xe(e,t,n)).filter(e=>void 0!==e).map(e=>Oe(e)).join("")})(De(t,i),n,r);""!==s&&console.warn(s.slice(0,-1))},Re=({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}),De=(e,t)=>e.split("\n").map(e=>Ae({...t,message:e})),Ae=e=>({verboseLine:(({type:e,message:t,timestamp:r,piped:n,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{const a=Ee(r),c=Ie[e]({failed:i,reject:s,piped:n}),l=Te[e]({reject:s});return`${ge(`[${a}]`)} ${ge(`[${o}]`)} ${l(c)} ${l(t)}`})(e),verboseObject:e}),Le=e=>{const t="string"==typeof e?e:(0,D.inspect)(e);return te(t).replaceAll("\t"," ".repeat(Me))},Me=2,Ce=e=>q({verbose:e})?Pe++:void 0;let Pe=0n;const je=()=>A.hrtime.bigint(),Be=e=>Number(A.hrtime.bigint()-e)/1e6,ke=(e,t,r)=>{const n=je(),{command:o,escapedCommand:i}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map(e=>{return t=re(e),ae.test(t)?t:"win32"===A.platform?`"${t.replaceAll('"','""')}"`:`'${t.replaceAll("'","'\\''")}'`;var t}).join(" ")}})(e,t),s=((e,t,r)=>((e=>{for(const t of e){if(!1===t)throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".');if(!0===t)throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".');if(!ee.includes(t)&&!Q(t)){const e=ee.map(e=>`'${e}'`).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}})(e),{verbose:e,escapedCommand:t,commandId:Ce(e),rawOptions:r}))(j(r,"verbose"),i,{...r});return((e,t)=>{q(t)&&Ne({type:"command",verboseMessage:e,verboseInfo:t})})(i,s),{command:o,escapedCommand:i,startTime:n,verboseInfo:s}};var Ue=r(6760),Fe=r(6507);function Ge(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"}function _e(e){return e instanceof URL?(0,o.fileURLToPath)(e):e}(0,D.promisify)(d.execFile);const We=({env:e=A.env,...t}={})=>{const r=Ge({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=A.cwd(),path:t=A.env[Ge()],preferLocal:r=!0,execPath:n=A.execPath,addExecPath:o=!0}={})=>{const i=Ue.resolve(_e(e)),s=[],a=t.split(Ue.delimiter);return r&&((e,t,r)=>{for(const n of function(e){return{*[Symbol.iterator](){let t,r=Ue.resolve(_e(e));for(;t!==r;)yield r,t=r,r=Ue.resolve(r,"..")}}}(r)){const r=Ue.join(n,"node_modules/.bin");t.includes(r)||e.push(r)}})(s,a,i),o&&((e,t,r,n)=>{const o=Ue.resolve(n,_e(r),"..");t.includes(o)||e.push(o)})(s,a,n,i),""===t||t===Ue.delimiter?`${s.join(Ue.delimiter)}${t}`:[...s,t].join(Ue.delimiter)})(t),e};var Ve=r(8500);class ze extends Error{}const He=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Xe,{value:!0,writable:!1,enumerable:!1,configurable:!1})},Xe=Symbol("isExecaError"),Ke=e=>"[object Error]"===Object.prototype.toString.call(e);class qe extends Error{}He(qe,qe.name);class Ye extends Error{}He(Ye,Ye.name);var Je=r(8161);const Ze=(e,t)=>({name:`SIGRT${t+1}`,number:Qe+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Qe=34,et=[{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"}],tt=()=>{const e=(()=>{const e=64-Qe+1;return Array.from({length:e},Ze)})();return[...et,...e].map(rt)},rt=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=Je.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}},nt=({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}],ot=(()=>{const e=tt();return Object.fromEntries(e.map(nt))})(),it=(e,t)=>{const r=t.find(({name:t})=>Je.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e)},st=((()=>{const e=tt(),t=Array.from({length:65},(t,r)=>((e,t)=>{const r=it(e,t);if(void 0===r)return{};const{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}}})(r,e));Object.assign({},...t)})(),e=>0===e?e:at(e,"`subprocess.kill()`'s argument")),at=(e,t)=>{if(Number.isInteger(e))return ct(e,t);if("string"==typeof e)return dt(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${ut()}`)},ct=(e,t)=>{if(lt.has(e))return lt.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${ut()}`)},lt=new Map(Object.entries(Je.constants.signals).reverse().map(([e,t])=>[t,e])),dt=(e,t)=>{if(e in Je.constants.signals)return e;if(e.toUpperCase()in Je.constants.signals)throw new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`);throw new TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${ut()}`)},ut=()=>`Available signal names: ${pt()}.\nAvailable signal numbers: ${ft()}.`,pt=()=>Object.keys(Je.constants.signals).sort().map(e=>`'${e}'`).join(", "),ft=()=>[...new Set(Object.values(Je.constants.signals).sort((e,t)=>e-t))].join(", "),mt=e=>ot[e].description,ht=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:o,controller:i},s,a)=>{const{signal:c,error:l}=bt(s,a,r);gt(l,n);const d=e(c);return yt({kill:e,signal:c,forceKillAfterDelay:t,killSignal:r,killResult:d,context:o,controller:i}),d},bt=(e,t,r)=>{const[n=r,o]=Ke(e)?[void 0,e]:[e,t];if("string"!=typeof n&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(void 0!==o&&!Ke(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:st(n),error:o}},gt=(e,t)=>{void 0!==e&&t.reject(e)},yt=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:o,context:i,controller:s})=>{t===n&&o&&wt({kill:e,forceKillAfterDelay:r,context:i,controllerSignal:s.signal})},wt=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await(0,Ve.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}};var Et=r(8474);const vt=async(e,t)=>{e.aborted||await(0,Et.once)(e,"abort",{signal:t})},St=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:o})=>void 0===t||r?[]:[It(e,t,n,o)],It=async(e,t,r,{signal:n})=>{throw await vt(t,n),r.terminationReason??="cancel",e.kill(),t.reason},$t=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{Tt(e,t,r),xt(e,t,n)},Tt=(e,t,r)=>{if(!r)throw new Error(`${Dt(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},xt=(e,t,r)=>{if(!r)throw new Error(`${Dt(e,t)} cannot be used: the ${Lt(t)} has already exited or disconnected.`)},Ot=(e,t)=>new Error(`${Dt("sendMessage",t)} failed when sending an acknowledgment response to the ${Lt(t)}.`,{cause:e}),Nt=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Rt=["could not be cloned","circular structure","call stack size exceeded"],Dt=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${At(t)}${e}(${r})`,At=e=>e?"":"subprocess.",Lt=e=>e?"parent process":"subprocess",Mt=e=>{e.connected&&e.disconnect()},Ct=()=>{const e={},t=new Promise((t,r)=>{Object.assign(e,{resolve:t,reject:r})});return Object.assign(t,e)},Pt=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:o}=Bt.get(e),i=kt(o,t,r),s=e.stdio[i];if(null===s)throw new TypeError(Gt(i,t,n,r));return s},jt=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:o}=Bt.get(e),i=kt(o,t,r),s="all"===i?e.all:e.stdio[i];if(null==s)throw new TypeError(Gt(i,t,n,r));return s},Bt=new WeakMap,kt=(e,t,r)=>{const n=Ut(t,r);return Ft(n,t,r,e),n},Ut=(e,t)=>{const r=W(e);if(void 0!==r)return r;const{validOptions:n,defaultValue:o}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${Vt(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${o}".`)},Ft=(e,t,r,n)=>{const o=n[Wt(e)];if(void 0===o)throw new TypeError(`"${Vt(r)}" must not be ${t}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);if("input"===o.direction&&!r)throw new TypeError(`"${Vt(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==o.direction&&r)throw new TypeError(`"${Vt(r)}" must not be ${t}. It must be a writable stream, not readable.`)},Gt=(e,t,r,n)=>{if("all"===e&&!r.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:o,optionValue:i}=_t(e,r);return`The "${o}: ${zt(i)}" option is incompatible with using "${Vt(n)}: ${zt(t)}".\nPlease set this option with "pipe" instead.`},_t=(e,{stdin:t,stdout:r,stderr:n,stdio:o})=>{const i=Wt(e);return 0===i&&void 0!==t?{optionName:"stdin",optionValue:t}:1===i&&void 0!==r?{optionName:"stdout",optionValue:r}:2===i&&void 0!==n?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${i}]`,optionValue:o[i]}},Wt=e=>"all"===e?1:e,Vt=e=>e?"to":"from",zt=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",Ht=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),(0,Et.addAbortListener)(r,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))},Xt=(e,t)=>{t&&Kt(e)},Kt=e=>{e.refCounted()},qt=(e,t)=>{t&&Yt(e)},Yt=e=>{e.unrefCounted()},Jt=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},o)=>{if(ar(o)||Tr(o))return;Qt.has(e)||Qt.set(e,[]);const i=Qt.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await fr(e,n,o),await Ve.scheduler.yield();const s=await sr({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});i.shift(),n.emit("message",s),n.emit("message:done")}},Zt=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:o})=>{Or();const i=Qt.get(e);for(;i?.length>0;)await(0,Et.once)(n,"message:done");e.removeListener("message",o),((e,t)=>{t&&(Kt(e),Kt(e))})(t,r),n.connected=!1,n.emit("disconnect")},Qt=new WeakMap,er=(e,t,r)=>{if(tr.has(e))return tr.get(e);const n=new Et.EventEmitter;return n.connected=!0,tr.set(e,n),rr({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},tr=new WeakMap,rr=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const o=Jt.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",o),t.once("disconnect",Zt.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:o})),((e,t)=>{t&&(Yt(e),Yt(e))})(r,n)},nr=e=>{const t=tr.get(e);return void 0===t?null!==e.channel:t.connected};let or=0n;const ir=(e,t)=>{if(t?.type===ur&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&lr[t].resolve({isDeadlock:!0,hasListeners:!1})},sr=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:o})=>{if(e?.type!==ur||!t.connected)return e;const{id:i,message:s}=e,a={id:i,type:pr,message:hr(t,o)};try{await gr({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){o.emit("strict:error",e)}return s},ar=e=>{if(e?.type!==pr)return!1;const{id:t,message:r}=e;return lr[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},cr=async(e,t,r)=>{if(e?.type!==ur)return;const n=Ct();lr[e.id]=n;const o=new AbortController;try{const{isDeadlock:e,hasListeners:i}=await Promise.race([n,dr(t,r,o)]);e&&(e=>{throw new Error(`${Dt("sendMessage",e)} failed: the ${Lt(e)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${Dt("getOneMessage",e)},\n\t${Dt("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),i||(e=>{throw new Error(`${Dt("sendMessage",e)} failed: the ${Lt(e)} is not listening to incoming messages.`)})(r)}finally{o.abort(),delete lr[e.id]}},lr={},dr=async(e,t,{signal:r})=>{Ht(e,1,r),await(0,Et.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Dt("sendMessage",e)} failed: the ${Lt(e)} exited without listening to incoming messages.`)})(t)},ur="execa:ipc:request",pr="execa:ipc:response",fr=async(e,t,r)=>{for(;!hr(e,t)&&mr.get(e)?.size>0;){const t=[...mr.get(e)];ir(t,r),await Promise.all(t.map(({onMessageSent:e})=>e))}},mr=new WeakMap,hr=(e,t)=>t.listenerCount("message")>br(e),br=e=>Bt.has(e)&&!K(Bt.get(e).options.buffer,"ipc")?1:0,gr=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},o,{strict:i=!1}={})=>{const s="sendMessage";return $t({methodName:s,isSubprocess:r,ipc:n,isConnected:e.connected}),yr({anyProcess:e,channel:t,methodName:s,isSubprocess:r,message:o,strict:i})},yr=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:o,strict:i})=>{const s=(({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:o})=>{if(!o)return n;const i=er(e,t,r),s=hr(e,i);return{id:or++,type:ur,message:n,hasListeners:s}})({anyProcess:e,channel:t,isSubprocess:n,message:o,strict:i}),a=((e,t,r)=>{mr.has(e)||mr.set(e,new Set);const n=mr.get(e),o={onMessageSent:Ct(),id:r?t.id:void 0};return n.add(o),{outgoingMessages:n,outgoingMessage:o}})(e,s,i);try{await wr({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:s,message:o})}catch(t){throw Mt(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},wr=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:o})=>{const i=Er(e);try{await Promise.all([cr(n,e,r),i(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${Dt(t,r)} cannot be used: the ${Lt(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if((({code:e,message:t})=>Nt.has(e)||Rt.some(e=>t.includes(e)))(e))throw new Error(`${Dt(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:r,message:o}),e}},Er=e=>{if(vr.has(e))return vr.get(e);const t=(0,D.promisify)(e.send.bind(e));return vr.set(e,t),t},vr=new WeakMap,Sr=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await Ir({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),Nr.signal),Ir=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{$r||($r=!0,n?null!==t?(er(e,t,r),await Ve.scheduler.yield()):Or():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let $r=!1;const Tr=e=>e?.type===xr&&(Nr.abort(e.message),!0),xr="execa:ipc:cancel",Or=()=>{Nr.abort(new Error(`\`cancelSignal\` aborted: the ${Lt(!0)} disconnected.`))},Nr=new AbortController,Rr=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:o,controller:i})=>r?[Dr({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:o,controller:i})]:[],Dr=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:o}})=>{await vt(t,o);const i=Ar(t);throw await((e,t)=>{const r="cancelSignal";return xt(r,!1,e.connected),wr({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:xr,message:t},message:t})})(e,i),wt({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:o}),n.terminationReason??="gracefulCancel",t.reason},Ar=({reason:e})=>{if(!(e instanceof DOMException))return e;const t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t},Lr=(e,t,r,n)=>0===t||void 0===t?[]:[Mr(e,t,r,n)],Mr=async(e,t,r,{signal:n})=>{throw await(0,Ve.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new ze};var Cr=r(8877);const Pr={advanced:e=>{try{(0,Cr.serialize)(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},json:e=>{try{JSON.stringify(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}}},jr=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},Br=new Set(["utf8","utf16le"]),kr=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),Ur=new Set([...Br,...kr]),Fr={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},Gr=e=>"string"==typeof e?`"${e}"`:String(e);var _r=r(3024);const Wr=()=>{try{return A.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Vr=(e,t,r)=>{r.cwd=((e=Wr())=>{const t=i(e,'The "cwd" option');return Ue.resolve(t)})(r.cwd);const[n,o,s]=((e,t,{node:r=!1,nodePath:n=A.execPath,nodeOptions:o=A.execArgv.filter(e=>!e.startsWith("--inspect")),cwd:s,execPath:a,...c})=>{if(void 0!==a)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const l=i(n,'The "nodePath" option'),d=Ue.resolve(s,l),u={...c,nodePath:d,node:r,cwd:s};if(!r)return[e,t,u];if("node"===Ue.basename(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[d,[...o,e,...t],{ipc:!0,...u,shell:!1}]})(e,t,r),{command:a,args:l,options:d}=Fe._parse(n,o,s),u=(e=>{const t={...e};for(const r of X)t[r]=j(e,r);return t})(d),p=zr(u);return(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(p),(({encoding:e})=>{if(Ur.has(e))return;const t=(e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in Fr?Fr[t]:Ur.has(t)?t:void 0})(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${Gr(e)}\`.\nPlease rename it to ${Gr(t)}.`);const r=[...Ur].map(e=>Gr(e)).join(", ");throw new TypeError(`Invalid option \`encoding: ${Gr(e)}\`.\nPlease rename it to one of: ${r}.`)})(p),(({ipcInput:e,ipc:t,serialization:r})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");Pr[r](e)}})(p),(({cancelSignal:e})=>{if(void 0!==e&&"[object AbortSignal]"!==Object.prototype.toString.call(e))throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)})(p),(({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(void 0===t)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("json"===n)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(p),p.shell=c(p.shell),p.env=Hr(p),p.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return at(e,t)})(p.killSignal),p.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return 5e3;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})(p.forceKillAfterDelay),p.lines=p.lines.map((e,t)=>e&&!kr.has(p.encoding)&&p.buffer[t]),"win32"===A.platform&&"cmd"===Ue.basename(a,".exe")&&l.unshift("/q"),{file:a,commandArguments:l,options:p}},zr=({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:l="SIGTERM",forceKillAfterDelay:d=!0,gracefulCancel:u=!1,ipcInput:p,ipc:f=void 0!==p||u,serialization:m="advanced",...h})=>({...h,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:o,reject:i,cleanup:s,all:a,windowsHide:c,killSignal:l,forceKillAfterDelay:d,gracefulCancel:u,ipcInput:p,ipc:f,serialization:m}),Hr=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:o,nodePath:i})=>{const s=t?{...A.env,...e}:e;return r||n?We({env:s,cwd:o,execPath:i,preferLocal:r,addExecPath:n}):s},Xr=(e,t,r)=>r.shell&&t.length>0?[[e,...t].join(" "),[],r]:[e,t,r];function Kr(e){if("string"==typeof e)return qr(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return Yr(e)}const qr=e=>e.at(-1)===Jr?e.slice(0,e.at(-2)===Qr?-2:-1):e,Yr=e=>e.at(-1)===Zr?e.subarray(0,e.at(-2)===en?-2:-1):e,Jr="\n",Zr=Jr.codePointAt(0),Qr="\r",en=Qr.codePointAt(0);function tn(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function rn(e,{checkOpen:t=!0}={}){return tn(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function nn(e,{checkOpen:t=!0}={}){return tn(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function on(e,t){return rn(e,t)&&nn(e,t)}const sn=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class an{#e;#t;#r=!1;#n=void 0;constructor(e,t){this.#e=e,this.#t=t}next(){const e=()=>this.#o();return this.#n=this.#n?this.#n.then(e,e):e(),this.#n}return(e){const t=()=>this.#i(e);return this.#n?this.#n.then(t,t):t()}async#o(){if(this.#r)return{done:!0,value:void 0};let e;try{e=await this.#e.read()}catch(e){throw this.#n=void 0,this.#r=!0,this.#e.releaseLock(),e}return e.done&&(this.#n=void 0,this.#r=!0,this.#e.releaseLock()),e}async#i(e){if(this.#r)return{done:!0,value:e};if(this.#r=!0,!this.#t){const t=this.#e.cancel(e);return this.#e.releaseLock(),await t,{done:!0,value:e}}return this.#e.releaseLock(),{done:!0,value:e}}}const cn=Symbol();function ln(){return this[cn].next()}function dn(e){return this[cn].return(e)}Object.defineProperty(ln,"name",{value:"next"}),Object.defineProperty(dn,"name",{value:"return"});const un=Object.create(sn,{next:{enumerable:!0,configurable:!0,writable:!0,value:ln},return:{enumerable:!0,configurable:!0,writable:!0,value:dn}});function pn({preventCancel:e=!1}={}){const t=this.getReader(),r=new an(t,e),n=Object.create(un);return n[cn]=r,n}const fn=e=>{if(nn(e,{checkOpen:!1})&&void 0!==gn.on)return hn(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===mn.call(e))return pn.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:mn}=Object.prototype,hn=async function*(e){const t=new AbortController,r={};bn(e,t,r);try{for await(const[r]of gn.on(e,"data",{signal:t.signal}))yield r}catch(e){if(void 0!==r.error)throw r.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},bn=async(e,t,r)=>{try{await gn.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},gn={},yn=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:c=Number.POSITIVE_INFINITY}={})=>{const l=fn(e),d=t();d.length=0;try{for await(const e of l){const t=r[Sn(e)](e,d);En({convertedChunk:t,state:d,getSize:n,truncateChunk:o,addChunk:i,maxBuffer:c})}return wn({state:d,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:c}),a(d)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(d),t}},wn=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:o,maxBuffer:i})=>{const s=o(e);void 0!==s&&En({convertedChunk:s,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:i})},En=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:o,maxBuffer:i})=>{const s=r(e),a=t.length+s;if(a<=i)return void vn(e,t,o,a);const c=n(e,i-t.length);throw void 0!==c&&vn(c,t,o,i),new $n},vn=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},Sn=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const r=In.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===In.call(e.buffer)?"typedArray":"others"},{toString:In}=Object.prototype;class $n extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const Tn=(e,t,r)=>{if(t.length!==r)return;const n=new $n;throw n.maxBufferInfo={fdNumber:"ipc"},n},xn=([,e])=>e,On=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:c,isCanceled:l,isGracefullyCanceled:d,isForcefullyTerminated:u,forceKillAfterDelay:p,killSignal:f})=>{const m=Nn(u,p);return t?`Command timed out after ${r} milliseconds${m}`:d?void 0===s?`Command was gracefully canceled with exit code ${c}`:u?`Command was gracefully canceled${m}`:`Command was gracefully canceled with ${s} (${a})`:l?`Command was canceled${m}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:o}=((e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",