@bring-it/sentry
Version:
Update sentry artifacts
1 lines • 119 kB
JavaScript
export const __webpack_esm_id__=388;export const __webpack_esm_ids__=[388];export const __webpack_esm_modules__={77:e=>{const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,n){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(t,"^$1"),n&&(e=e.replace(t,"^$1")),e}},257:e=>{e.exports=/^#!(.*)/},293:(e,t,n)=>{function r(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)}n.d(t,{Ho:()=>Ic});var o=n(136);const i=(e,t)=>{const n=l(s(e));if("string"!=typeof n)throw new TypeError(`${t} must be a string or a file URL: ${n}.`);return n},s=e=>a(e)?e.toString():e,a=e=>"string"!=typeof e&&e&&Object.getPrototypeOf(e)===String.prototype,l=e=>e instanceof URL?(0,o.fileURLToPath)(e):e,c=(e,t=[],n={})=>{const o=i(e,"First argument"),[s,a]=r(t)?[[],t]:[t,n];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 l=s.map(String),c=l.find(e=>e.includes("\0"));if(void 0!==c)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${c}`);if(!r(a))throw new TypeError(`Last argument must be an options object: ${a}`);return[o,l,a]};var d=n(421),u=n(193);const{toString:p}=Object.prototype,f=e=>"[object Uint8Array]"===p.call(e),m=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),b=new TextEncoder,h=e=>b.encode(e),g=new TextDecoder,y=e=>g.decode(e),w=e=>1===e.length&&f(e[0])?e[0]:S(v(e)),v=e=>e.map(e=>"string"==typeof e?h(e):e),S=e=>{const t=new Uint8Array(x(e));let n=0;for(const r of e)t.set(r,n),n+=r.length;return t},x=e=>{let t=0;for(const n of e)t+=n.length;return t},T=({templates:e,expressions:t,tokens:n,index:r,template:o})=>{if(void 0===o)throw new TypeError(`Invalid backslash sequence: ${e.raw[r]}`);const{nextTokens:i,leadingWhitespaces:s,trailingWhitespaces:a}=E(o,e.raw[r]),l=I(n,i,s);if(r===t.length)return l;const c=t[r],d=Array.isArray(c)?c.map(e=>M(e)):[M(c)];return I(l,d,a)},E=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const n=[];let r=0;const o=O.has(t[0]);for(let o=0,i=0;o<e.length;o+=1,i+=1){const s=t[i];if(O.has(s))r!==o&&n.push(e.slice(r,o)),r=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+=D[e]??1}}const i=r===e.length;return i||n.push(e.slice(r)),{nextTokens:n,leadingWhitespaces:o,trailingWhitespaces:i}},O=new Set([" ","\t","\r","\n"]),D={x:3,u:5},I=(e,t,n)=>n||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],M=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(r(e)&&("stdout"in e||"isMaxBuffer"in e))return C(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`)},C=({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 N=n(975),A=n(708);const $=e=>B.includes(e),B=[A.stdin,A.stdout,A.stderr],R=["stdin","stdout","stderr"],j=e=>R[e]??`stdio[${e}]`,P=(e,t)=>{const n=Array.from({length:k(e)+1}),r=L(e[t],n,t);return V(r,t)},k=({stdio:e})=>Array.isArray(e)?Math.max(e.length,R.length):R.length,L=(e,t,n)=>r(e)?U(e,t,n):t.fill(e),U=(e,t,n)=>{for(const r of Object.keys(e).sort(F))for(const o of _(r,n,t))t[o]=e[r];return t},F=(e,t)=>G(e)<G(t)?1:-1,G=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,_=(e,t,n)=>{if("ipc"===e)return[n.length-1];const r=W(e);if(void 0===r||0===r)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(r>=n.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"===r?[1,2]:[r]},W=e=>{if("all"===e)return e;if(R.includes(e))return R.indexOf(e);const t=z.exec(e);return null!==t?Number(t[1]):void 0},z=/^fd(\d+)$/,V=(e,t)=>e.map(e=>void 0===e?H[t]:e),H={lines:!1,buffer:!0,maxBuffer:1e8,verbose:(0,N.debuglog)("execa").enabled?"full":"none",stripFinalNewline:!0},K=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],Y=(e,t)=>"ipc"===t?e.at(-1):e[t],q=({verbose:e},t)=>"none"!==Q(e,t),X=({verbose:e},t)=>!["none","short"].includes(Q(e,t)),Q=(e,t)=>void 0===t?J(e):Y(e,t),J=e=>e.find(e=>Z(e))??ee.findLast(t=>e.includes(t)),Z=e=>"function"==typeof e,ee=["none","short","full"],te=e=>(0,N.stripVTControlCharacters)(e).split("\n").map(e=>ne(e)).join("\n"),ne=e=>e.replaceAll(oe,e=>re(e)),re=e=>{const t=ie[e];if(void 0!==t)return t;const n=e.codePointAt(0),r=n.toString(16);return n<=se?`\\u${r.padStart(4,"0")}`:`\\U${r}`},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./-]+$/,le={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"},ce={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={...le,...ce},ue={...le,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:n}=e;return"win32"!==A.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===n||"vscode"===n||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}()?de:ue;Object.entries(ce);var fe=n(66);const me=fe?.WriteStream?.prototype?.hasColors?.()??!1,be=(e,t)=>{if(!me)return e=>e;const n=`\x1b[${e}m`,r=`\x1b[${t}m`;return e=>{const o=e+"";let i=o.indexOf(r);if(-1===i)return n+o+r;let s=n,a=0;const l=(22===t?r:"")+n;for(;-1!==i;)s+=o.slice(a,i)+l,a=i+r.length,i=o.indexOf(r,a);return s+=o.slice(a)+r,s}},he=(be(0,0),be(1,22)),ge=(be(2,22),be(3,23),be(4,24),be(53,55),be(7,27),be(8,28),be(9,29),be(30,39),be(31,39),be(32,39),be(33,39),be(34,39),be(35,39),be(36,39),be(37,39),be(90,39)),ye=(be(40,49),be(41,49),be(42,49),be(43,49),be(44,49),be(45,49),be(46,49),be(47,49),be(100,49),be(91,39)),we=(be(92,39),be(93,39)),ve=(be(94,39),be(95,39),be(96,39),be(97,39),be(101,49),be(102,49),be(103,49),be(104,49),be(105,49),be(106,49),be(107,49),e=>`${Se(e.getHours(),2)}:${Se(e.getMinutes(),2)}:${Se(e.getSeconds(),2)}.${Se(e.getMilliseconds(),3)}`),Se=(e,t)=>String(e).padStart(t,"0"),xe=({failed:e,reject:t})=>e?t?pe.cross:pe.warning:pe.tick,Te={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:xe,duration:xe},Ee=e=>e,Oe={command:()=>he,output:()=>Ee,ipc:()=>Ee,error:({reject:e})=>e?ye:we,duration:()=>ge},De=(e,t,n)=>{if(void 0===n)return e;const r=n(e,t);return"string"==typeof r?r:void 0},Ie=e=>e.endsWith("\n")?e:`${e}\n`,Me=({type:e,verboseMessage:t,fdNumber:n,verboseInfo:r,result:o})=>{const i=Ce({type:e,result:o,verboseInfo:r}),s=((e,t,n)=>{const r=(({verbose:e},t)=>{const n=Q(e,t);return Z(n)?n:void 0})(t,n);return e.map(({verboseLine:e,verboseObject:t})=>De(e,t,r)).filter(e=>void 0!==e).map(e=>Ie(e)).join("")})(Ne(t,i),r,n);""!==s&&console.warn(s.slice(0,-1))},Ce=({type:e,result:t,verboseInfo:{escapedCommand:n,commandId:r,rawOptions:{piped:o=!1,...i}}})=>({type:e,escapedCommand:n,commandId:`${r}`,timestamp:new Date,piped:o,result:t,options:i}),Ne=(e,t)=>e.split("\n").map(e=>Ae({...t,message:e})),Ae=e=>({verboseLine:(({type:e,message:t,timestamp:n,piped:r,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{const a=ve(n),l=Te[e]({failed:i,reject:s,piped:r}),c=Oe[e]({reject:s});return`${ge(`[${a}]`)} ${ge(`[${o}]`)} ${c(l)} ${c(t)}`})(e),verboseObject:e}),$e=e=>{const t="string"==typeof e?e:(0,N.inspect)(e);return te(t).replaceAll("\t"," ".repeat(Be))},Be=2,Re=e=>q({verbose:e})?je++:void 0;let je=0n;const Pe=()=>A.hrtime.bigint(),ke=e=>Number(A.hrtime.bigint()-e)/1e6,Le=(e,t,n)=>{const r=Pe(),{command:o,escapedCommand:i}=((e,t)=>{const n=[e,...t];return{command:n.join(" "),escapedCommand:n.map(e=>{return t=ne(e),ae.test(t)?t:"win32"===A.platform?`"${t.replaceAll('"','""')}"`:`'${t.replaceAll("'","'\\''")}'`;var t}).join(" ")}})(e,t),s=((e,t,n)=>((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)&&!Z(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:Re(e),rawOptions:n}))(P(n,"verbose"),i,{...n});return((e,t)=>{q(t)&&Me({type:"command",verboseMessage:e,verboseInfo:t})})(i,s),{command:o,escapedCommand:i,startTime:r,verboseInfo:s}};var Ue=n(760),Fe=n(507);function Ge(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"}function _e(e){return e instanceof URL?(0,o.fileURLToPath)(e):e}(0,N.promisify)(d.execFile);const We=({env:e=A.env,...t}={})=>{const n=Ge({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=A.cwd(),path:t=A.env[Ge()],preferLocal:n=!0,execPath:r=A.execPath,addExecPath:o=!0}={})=>{const i=Ue.resolve(_e(e)),s=[],a=t.split(Ue.delimiter);return n&&((e,t,n)=>{for(const r of function(e){return{*[Symbol.iterator](){let t,n=Ue.resolve(_e(e));for(;t!==n;)yield n,t=n,n=Ue.resolve(n,"..")}}}(n)){const n=Ue.join(r,"node_modules/.bin");t.includes(n)||e.push(n)}})(s,a,i),o&&((e,t,n,r)=>{const o=Ue.resolve(r,_e(n),"..");t.includes(o)||e.push(o)})(s,a,r,i),""===t||t===Ue.delimiter?`${s.join(Ue.delimiter)}${t}`:[...s,t].join(Ue.delimiter)})(t),e};var ze=n(500);class Ve extends Error{}const He=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Ke,{value:!0,writable:!1,enumerable:!1,configurable:!1})},Ke=Symbol("isExecaError"),Ye=e=>"[object Error]"===Object.prototype.toString.call(e);class qe extends Error{}He(qe,qe.name);class Xe extends Error{}He(Xe,Xe.name);var Qe=n(161);const Je=(e,t)=>({name:`SIGRT${t+1}`,number:Ze+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Ze=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-Ze+1;return Array.from({length:e},Je)})();return[...et,...e].map(nt)},nt=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=Qe.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},rt=({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s}],ot=(()=>{const e=tt();return Object.fromEntries(e.map(rt))})(),it=(e,t)=>{const n=t.find(({name:t})=>Qe.constants.signals[t]===e);return void 0!==n?n:t.find(t=>t.number===e)},st=((()=>{const e=tt(),t=Array.from({length:65},(t,n)=>((e,t)=>{const n=it(e,t);if(void 0===n)return{};const{name:r,description:o,supported:i,action:s,forced:a,standard:l}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:a,standard:l}}})(n,e));Object.assign({},...t)})(),e=>0===e?e:at(e,"`subprocess.kill()`'s argument")),at=(e,t)=>{if(Number.isInteger(e))return lt(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()}`)},lt=(e,t)=>{if(ct.has(e))return ct.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${ut()}`)},ct=new Map(Object.entries(Qe.constants.signals).reverse().map(([e,t])=>[t,e])),dt=(e,t)=>{if(e in Qe.constants.signals)return e;if(e.toUpperCase()in Qe.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(Qe.constants.signals).sort().map(e=>`'${e}'`).join(", "),ft=()=>[...new Set(Object.values(Qe.constants.signals).sort((e,t)=>e-t))].join(", "),mt=e=>ot[e].description,bt=({kill:e,options:{forceKillAfterDelay:t,killSignal:n},onInternalError:r,context:o,controller:i},s,a)=>{const{signal:l,error:c}=ht(s,a,n);gt(c,r);const d=e(l);return yt({kill:e,signal:l,forceKillAfterDelay:t,killSignal:n,killResult:d,context:o,controller:i}),d},ht=(e,t,n)=>{const[r=n,o]=Ye(e)?[void 0,e]:[e,t];if("string"!=typeof r&&!Number.isInteger(r))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(r)}`);if(void 0!==o&&!Ye(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:st(r),error:o}},gt=(e,t)=>{void 0!==e&&t.reject(e)},yt=async({kill:e,signal:t,forceKillAfterDelay:n,killSignal:r,killResult:o,context:i,controller:s})=>{t===r&&o&&wt({kill:e,forceKillAfterDelay:n,context:i,controllerSignal:s.signal})},wt=async({kill:e,forceKillAfterDelay:t,context:n,controllerSignal:r})=>{if(!1!==t)try{await(0,ze.setTimeout)(t,void 0,{signal:r}),e("SIGKILL")&&(n.isForcefullyTerminated??=!0)}catch{}};var vt=n(474);const St=async(e,t)=>{e.aborted||await(0,vt.once)(e,"abort",{signal:t})},xt=({subprocess:e,cancelSignal:t,gracefulCancel:n,context:r,controller:o})=>void 0===t||n?[]:[Tt(e,t,r,o)],Tt=async(e,t,n,{signal:r})=>{throw await St(t,r),n.terminationReason??="cancel",e.kill(),t.reason},Et=({methodName:e,isSubprocess:t,ipc:n,isConnected:r})=>{Ot(e,t,n),Dt(e,t,r)},Ot=(e,t,n)=>{if(!n)throw new Error(`${Nt(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Dt=(e,t,n)=>{if(!n)throw new Error(`${Nt(e,t)} cannot be used: the ${$t(t)} has already exited or disconnected.`)},It=(e,t)=>new Error(`${Nt("sendMessage",t)} failed when sending an acknowledgment response to the ${$t(t)}.`,{cause:e}),Mt=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Ct=["could not be cloned","circular structure","call stack size exceeded"],Nt=(e,t,n="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${At(t)}${e}(${n})`,At=e=>e?"":"subprocess.",$t=e=>e?"parent process":"subprocess",Bt=e=>{e.connected&&e.disconnect()},Rt=()=>{const e={},t=new Promise((t,n)=>{Object.assign(e,{resolve:t,reject:n})});return Object.assign(t,e)},jt=(e,t="stdin")=>{const n=!0,{options:r,fileDescriptors:o}=kt.get(e),i=Lt(o,t,n),s=e.stdio[i];if(null===s)throw new TypeError(Gt(i,t,r,n));return s},Pt=(e,t="stdout")=>{const n=!1,{options:r,fileDescriptors:o}=kt.get(e),i=Lt(o,t,n),s="all"===i?e.all:e.stdio[i];if(null==s)throw new TypeError(Gt(i,t,r,n));return s},kt=new WeakMap,Lt=(e,t,n)=>{const r=Ut(t,n);return Ft(r,t,n,e),r},Ut=(e,t)=>{const n=W(e);if(void 0!==n)return n;const{validOptions:r,defaultValue:o}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${zt(t)}" must not be "${e}".\nIt must be ${r} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${o}".`)},Ft=(e,t,n,r)=>{const o=r[Wt(e)];if(void 0===o)throw new TypeError(`"${zt(n)}" 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&&!n)throw new TypeError(`"${zt(n)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==o.direction&&n)throw new TypeError(`"${zt(n)}" must not be ${t}. It must be a writable stream, not readable.`)},Gt=(e,t,n,r)=>{if("all"===e&&!n.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:o,optionValue:i}=_t(e,n);return`The "${o}: ${Vt(i)}" option is incompatible with using "${zt(r)}: ${Vt(t)}".\nPlease set this option with "pipe" instead.`},_t=(e,{stdin:t,stdout:n,stderr:r,stdio:o})=>{const i=Wt(e);return 0===i&&void 0!==t?{optionName:"stdin",optionValue:t}:1===i&&void 0!==n?{optionName:"stdout",optionValue:n}:2===i&&void 0!==r?{optionName:"stderr",optionValue:r}:{optionName:`stdio[${i}]`,optionValue:o[i]}},Wt=e=>"all"===e?1:e,zt=e=>e?"to":"from",Vt=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",Ht=(e,t,n)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(r+t),(0,vt.addAbortListener)(n,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))},Kt=(e,t)=>{t&&Yt(e)},Yt=e=>{e.refCounted()},qt=(e,t)=>{t&&Xt(e)},Xt=e=>{e.unrefCounted()},Qt=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r},o)=>{if(ln(o)||Dn(o))return;Zt.has(e)||Zt.set(e,[]);const i=Zt.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await mn(e,r,o),await ze.scheduler.yield();const s=await an({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r});i.shift(),r.emit("message",s),r.emit("message:done")}},Jt=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r,boundOnMessage:o})=>{Mn();const i=Zt.get(e);for(;i?.length>0;)await(0,vt.once)(r,"message:done");e.removeListener("message",o),((e,t)=>{t&&(Yt(e),Yt(e))})(t,n),r.connected=!1,r.emit("disconnect")},Zt=new WeakMap,en=(e,t,n)=>{if(tn.has(e))return tn.get(e);const r=new vt.EventEmitter;return r.connected=!0,tn.set(e,r),nn({ipcEmitter:r,anyProcess:e,channel:t,isSubprocess:n}),r},tn=new WeakMap,nn=({ipcEmitter:e,anyProcess:t,channel:n,isSubprocess:r})=>{const o=Qt.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e});t.on("message",o),t.once("disconnect",Jt.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e,boundOnMessage:o})),((e,t)=>{t&&(Xt(e),Xt(e))})(n,r)},rn=e=>{const t=tn.get(e);return void 0===t?null!==e.channel:t.connected};let on=0n;const sn=(e,t)=>{if(t?.type===pn&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&dn[t].resolve({isDeadlock:!0,hasListeners:!1})},an=async({wrappedMessage:e,anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:o})=>{if(e?.type!==pn||!t.connected)return e;const{id:i,message:s}=e,a={id:i,type:fn,message:hn(t,o)};try{await yn({anyProcess:t,channel:n,isSubprocess:r,ipc:!0},a)}catch(e){o.emit("strict:error",e)}return s},ln=e=>{if(e?.type!==fn)return!1;const{id:t,message:n}=e;return dn[t]?.resolve({isDeadlock:!1,hasListeners:n}),!0},cn=async(e,t,n)=>{if(e?.type!==pn)return;const r=Rt();dn[e.id]=r;const o=new AbortController;try{const{isDeadlock:e,hasListeners:i}=await Promise.race([r,un(t,n,o)]);e&&(e=>{throw new Error(`${Nt("sendMessage",e)} failed: the ${$t(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${Nt("getOneMessage",e)},\n\t${Nt("sendMessage",e,"message, {strict: true}")},\n]);`)})(n),i||(e=>{throw new Error(`${Nt("sendMessage",e)} failed: the ${$t(e)} is not listening to incoming messages.`)})(n)}finally{o.abort(),delete dn[e.id]}},dn={},un=async(e,t,{signal:n})=>{Ht(e,1,n),await(0,vt.once)(e,"disconnect",{signal:n}),(e=>{throw new Error(`${Nt("sendMessage",e)} failed: the ${$t(e)} exited without listening to incoming messages.`)})(t)},pn="execa:ipc:request",fn="execa:ipc:response",mn=async(e,t,n)=>{for(;!hn(e,t)&&bn.get(e)?.size>0;){const t=[...bn.get(e)];sn(t,n),await Promise.all(t.map(({onMessageSent:e})=>e))}},bn=new WeakMap,hn=(e,t)=>t.listenerCount("message")>gn(e),gn=e=>kt.has(e)&&!Y(kt.get(e).options.buffer,"ipc")?1:0,yn=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},o,{strict:i=!1}={})=>{const s="sendMessage";return Et({methodName:s,isSubprocess:n,ipc:r,isConnected:e.connected}),wn({anyProcess:e,channel:t,methodName:s,isSubprocess:n,message:o,strict:i})},wn=async({anyProcess:e,channel:t,methodName:n,isSubprocess:r,message:o,strict:i})=>{const s=(({anyProcess:e,channel:t,isSubprocess:n,message:r,strict:o})=>{if(!o)return r;const i=en(e,t,n),s=hn(e,i);return{id:on++,type:pn,message:r,hasListeners:s}})({anyProcess:e,channel:t,isSubprocess:r,message:o,strict:i}),a=((e,t,n)=>{bn.has(e)||bn.set(e,new Set);const r=bn.get(e),o={onMessageSent:Rt(),id:n?t.id:void 0};return r.add(o),{outgoingMessages:r,outgoingMessage:o}})(e,s,i);try{await vn({anyProcess:e,methodName:n,isSubprocess:r,wrappedMessage:s,message:o})}catch(t){throw Bt(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},vn=async({anyProcess:e,methodName:t,isSubprocess:n,wrappedMessage:r,message:o})=>{const i=Sn(e);try{await Promise.all([cn(r,e,n),i(r)])}catch(e){throw(({error:e,methodName:t,isSubprocess:n})=>{if("EPIPE"===e.code)throw new Error(`${Nt(t,n)} cannot be used: the ${$t(n)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:n}),(({error:e,methodName:t,isSubprocess:n,message:r})=>{if((({code:e,message:t})=>Mt.has(e)||Ct.some(e=>t.includes(e)))(e))throw new Error(`${Nt(t,n)}'s argument type is invalid: the message cannot be serialized: ${String(r)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:n,message:o}),e}},Sn=e=>{if(xn.has(e))return xn.get(e);const t=(0,N.promisify)(e.send.bind(e));return xn.set(e,t),t},xn=new WeakMap,Tn=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>(await En({anyProcess:e,channel:t,isSubprocess:n,ipc:r}),Cn.signal),En=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>{On||(On=!0,r?null!==t?(en(e,t,n),await ze.scheduler.yield()):Mn():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let On=!1;const Dn=e=>e?.type===In&&(Cn.abort(e.message),!0),In="execa:ipc:cancel",Mn=()=>{Cn.abort(new Error(`\`cancelSignal\` aborted: the ${$t(!0)} disconnected.`))},Cn=new AbortController,Nn=({subprocess:e,cancelSignal:t,gracefulCancel:n,forceKillAfterDelay:r,context:o,controller:i})=>n?[An({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:o,controller:i})]:[],An=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:r,controller:{signal:o}})=>{await St(t,o);const i=$n(t);throw await((e,t)=>{const n="cancelSignal";return Dt(n,!1,e.connected),vn({anyProcess:e,methodName:n,isSubprocess:!1,wrappedMessage:{type:In,message:t},message:t})})(e,i),wt({kill:e.kill,forceKillAfterDelay:n,context:r,controllerSignal:o}),r.terminationReason??="gracefulCancel",t.reason},$n=({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},Bn=(e,t,n,r)=>0===t||void 0===t?[]:[Rn(e,t,n,r)],Rn=async(e,t,n,{signal:r})=>{throw await(0,ze.setTimeout)(t,void 0,{signal:r}),n.terminationReason??="timeout",e.kill(),new Ve};var jn=n(877);const Pn={advanced:e=>{try{(0,jn.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})}}},kn=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},Ln=new Set(["utf8","utf16le"]),Un=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),Fn=new Set([...Ln,...Un]),Gn={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},_n=e=>"string"==typeof e?`"${e}"`:String(e);var Wn=n(24);const zn=()=>{try{return A.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Vn=(e,t,n)=>{n.cwd=((e=zn())=>{const t=i(e,'The "cwd" option');return Ue.resolve(t)})(n.cwd);const[r,o,s]=((e,t,{node:n=!1,nodePath:r=A.execPath,nodeOptions:o=A.execArgv.filter(e=>!e.startsWith("--inspect")),cwd:s,execPath:a,...l})=>{if(void 0!==a)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const c=i(r,'The "nodePath" option'),d=Ue.resolve(s,c),u={...l,nodePath:d,node:n,cwd:s};if(!n)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,n),{command:a,args:c,options:d}=Fe._parse(r,o,s),u=(e=>{const t={...e};for(const n of K)t[n]=P(e,n);return t})(d),p=Hn(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(Fn.has(e))return;const t=(e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in Gn?Gn[t]:Fn.has(t)?t:void 0})(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${_n(e)}\`.\nPlease rename it to ${_n(t)}.`);const n=[...Fn].map(e=>_n(e)).join(", ");throw new TypeError(`Invalid option \`encoding: ${_n(e)}\`.\nPlease rename it to one of: ${n}.`)})(p),(({ipcInput:e,ipc:t,serialization:n})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");Pn[n](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:n,serialization:r})=>{if(e){if(void 0===t)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!n)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if("json"===r)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(p),p.shell=l(p.shell),p.env=Kn(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&&!Un.has(p.encoding)&&p.buffer[t]),"win32"===A.platform&&"cmd"===Ue.basename(a,".exe")&&c.unshift("/q"),{file:a,commandArguments:c,options:p}},Hn=({extendEnv:e=!0,preferLocal:t=!1,cwd:n,localDir:r=n,encoding:o="utf8",reject:i=!0,cleanup:s=!0,all:a=!1,windowsHide:l=!0,killSignal:c="SIGTERM",forceKillAfterDelay:d=!0,gracefulCancel:u=!1,ipcInput:p,ipc:f=void 0!==p||u,serialization:m="advanced",...b})=>({...b,extendEnv:e,preferLocal:t,cwd:n,localDirectory:r,encoding:o,reject:i,cleanup:s,all:a,windowsHide:l,killSignal:c,forceKillAfterDelay:d,gracefulCancel:u,ipcInput:p,ipc:f,serialization:m}),Kn=({env:e,extendEnv:t,preferLocal:n,node:r,localDirectory:o,nodePath:i})=>{const s=t?{...A.env,...e}:e;return n||r?We({env:s,cwd:o,execPath:i,preferLocal:n,addExecPath:r}):s},Yn=(e,t,n)=>n.shell&&t.length>0?[[e,...t].join(" "),[],n]:[e,t,n];function qn(e){if("string"==typeof e)return Xn(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return Qn(e)}const Xn=e=>e.at(-1)===Jn?e.slice(0,e.at(-2)===er?-2:-1):e,Qn=e=>e.at(-1)===Zn?e.subarray(0,e.at(-2)===tr?-2:-1):e,Jn="\n",Zn=Jn.codePointAt(0),er="\r",tr=er.codePointAt(0);function nr(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 rr(e,{checkOpen:t=!0}={}){return nr(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 or(e,{checkOpen:t=!0}={}){return nr(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 ir(e,t){return rr(e,t)&&or(e,t)}const sr=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class ar{#e;#t;#n=!1;#r=void 0;constructor(e,t){this.#e=e,this.#t=t}next(){const e=()=>this.#o();return this.#r=this.#r?this.#r.then(e,e):e(),this.#r}return(e){const t=()=>this.#i(e);return this.#r?this.#r.then(t,t):t()}async#o(){if(this.#n)return{done:!0,value:void 0};let e;try{e=await this.#e.read()}catch(e){throw this.#r=void 0,this.#n=!0,this.#e.releaseLock(),e}return e.done&&(this.#r=void 0,this.#n=!0,this.#e.releaseLock()),e}async#i(e){if(this.#n)return{done:!0,value:e};if(this.#n=!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 lr=Symbol();function cr(){return this[lr].next()}function dr(e){return this[lr].return(e)}Object.defineProperty(cr,"name",{value:"next"}),Object.defineProperty(dr,"name",{value:"return"});const ur=Object.create(sr,{next:{enumerable:!0,configurable:!0,writable:!0,value:cr},return:{enumerable:!0,configurable:!0,writable:!0,value:dr}});function pr({preventCancel:e=!1}={}){const t=this.getReader(),n=new ar(t,e),r=Object.create(ur);return r[lr]=n,r}const fr=e=>{if(or(e,{checkOpen:!1})&&void 0!==gr.on)return br(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===mr.call(e))return pr.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:mr}=Object.prototype,br=async function*(e){const t=new AbortController,n={};hr(e,t,n);try{for await(const[n]of gr.on(e,"data",{signal:t.signal}))yield n}catch(e){if(void 0!==n.error)throw n.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},hr=async(e,t,n)=>{try{await gr.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){n.error=e}finally{t.abort()}},gr={},yr=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:l=Number.POSITIVE_INFINITY}={})=>{const c=fr(e),d=t();d.length=0;try{for await(const e of c){const t=n[xr(e)](e,d);vr({convertedChunk:t,state:d,getSize:r,truncateChunk:o,addChunk:i,maxBuffer:l})}return wr({state:d,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:l}),a(d)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(d),t}},wr=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:o,maxBuffer:i})=>{const s=o(e);void 0!==s&&vr({convertedChunk:s,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:i})},vr=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:o,maxBuffer:i})=>{const s=n(e),a=t.length+s;if(a<=i)return void Sr(e,t,o,a);const l=r(e,i-t.length);throw void 0!==l&&Sr(l,t,o,i),new Er},Sr=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},xr=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 n=Tr.call(e);return"[object ArrayBuffer]"===n?"arrayBuffer":"[object DataView]"===n?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===Tr.call(e.buffer)?"typedArray":"others"},{toString:Tr}=Object.prototype;class Er extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const Or=(e,t,n)=>{if(t.length!==n)return;const r=new Er;throw r.maxBufferInfo={fdNumber:"ipc"},r},Dr=([,e])=>e,Ir=({originalError:e,timedOut:t,timeout:n,isMaxBuffer:r,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:l,isCanceled:c,isGracefullyCanceled:d,isForcefullyTerminated:u,forceKillAfterDelay:p,killSignal:f})=>{const m=Mr(u,p);return t?`Command timed out after ${n} milliseconds${m}`:d?void 0===s?`Command was gracefully canceled with exit code ${l}`:u?`Command was gracefully canceled${m}`:`Command was gracefully canceled with ${s} (${a})`:c?`Command was canceled${m}`:r?`${((e,t)=>{const{streamName:n,threshold:r,unit:o}=((e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:n,unit:r}}=e;delete e.maxBufferInfo;const o=Y(t,n);return"ipc"===n?{streamName:"IPC output",threshold:o,unit:"messages"}:{streamName:j(n),threshold:o,unit:r}})(e,t);return`Command's ${n} was larger than ${r} ${o}`})(e,o)}${m}`:void 0!==i?`Command failed with ${i}${m}`:u?`Command was killed with ${f} (${mt(f)})${m}`:void 0!==s?`Command was killed with ${s} (${a})`:void 0!==l?`Command failed with exit code ${l}`:"Command failed"},Mr=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",Cr=e=>"string"==typeof e?e:f(e)?y(e):"",Nr=({command:e,escapedCommand:t,stdio:n,all:r,ipcOutput:o,options:{cwd:i},startTime:s})=>Rr({command:e,escapedCommand:t,cwd:i,durationMs:ke(s),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:n[1],stderr:n[2],all:r,stdio:n,ipcOutput:o,pipedFrom:[]}),Ar=({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:o,startTime:i,isSync:s})=>$r({error:e,command:t,escapedCommand:n,startTime:i,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:r.length}),ipcOutput:[],options:o,isSync:s}),$r=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:c,signal:d,stdio:u,all:p,ipcOutput:f,options:{timeoutDuration:m,timeout:b=m,forceKillAfterDelay:h,killSignal:g,cwd:y,maxBuffer:w},isSync:v})=>{const{exitCode:S,signal:x,signalDescription:T}=jr(c,d),{originalMessage:E,shortMessage:O,message:D}=(({stdio:e,all:t,ipcOutput:n,originalError:r,signal:o,signalDescription:i,exitCode:s,escapedCommand:a,timedOut:l,isCanceled:c,isGracefullyCanceled:d,isMaxBuffer:u,isForcefullyTerminated:p,forceKillAfterDelay:f,killSignal:m,maxBuffer:b,timeout:h,cwd:g})=>{const y=r?.code,w=Ir({originalError:r,timedOut:l,timeout:h,isMaxBuffer:u,maxBuffer:b,errorCode:y,signal:o,signalDescription:i,exitCode:s,isCanceled:c,isGracefullyCanceled:d,isForcefullyTerminated:p,forceKillAfterDelay:f,killSignal:m}),v=((e,t)=>{if(e instanceof Ve)return;const n=Ye(r=e)&&Ke in r?e.originalMessage:String(e?.message??e);var r;const o=te(((e,t)=>{if(t===zn())return e;let n;try{n=(0,Wn.statSync)(t)}catch(n){return`The "cwd" option is invalid: ${t}.\n${n.message}\n${e}`}return n.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(n,t));return""===o?void 0:o})(r,g),S=`${w}: ${a}${void 0===v?"":`\n${v}`}`,x=[S,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),n.map(e=>(e=>"string"==typeof e?e:(0,N.inspect)(e))(e)).join("\n")].map(e=>te(qn((e=>Array.isArray(e)?e.map(e=>qn(Cr(e))).filter(Boolean).join("\n"):Cr(e))(e)))).filter(Boolean).join("\n\n");return{originalMessage:v,shortMessage:S,message:x}})({stdio:u,all:p,ipcOutput:f,originalError:e,signal:x,signalDescription:T,exitCode:S,escapedCommand:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,forceKillAfterDelay:h,killSignal:g,maxBuffer:w,timeout:b,cwd:y}),I=((e,t,n)=>new(n?Xe:qe)(t,e instanceof Ve?{}:{cause:e}))(e,D,v);return Object.assign(I,Br({error:I,command:t,escapedCommand:n,startTime:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:S,signal:x,signalDescription:T,stdio:u,all:p,ipcOutput:f,cwd:y,originalMessage:E,shortMessage:O})),I},Br=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:c,signal:d,signalDescription:u,stdio:p,all:f,ipcOutput:m,cwd:b,originalMessage:h,shortMessage:g})=>Rr({shortMessage:g,originalMessage:h,command:t,escapedCommand:n,cwd:b,durationMs:ke(r),failed:!0,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isTerminated:void 0!==d,isMaxBuffer:a,isForcefullyTerminated:l,exitCode:c,signal:d,signalDescription:u,code:e.cause?.code,stdout:p[1],stderr:p[2],all:f,stdio:p,ipcOutput:m,pipedFrom:[]}),Rr=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e)),jr=(e,t)=>{const n=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:n,signalDescription:void 0===n?void 0:mt(t)}},Pr=e=>Number.isFinite(e)?e:0;function kr(e,t){const n="bigint"==typeof e;if(!n&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");const r=e<0?"-":"";e=e<0?-e:e,(t={...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=[];const i=(e,n,r,i)=>{if(0!==o.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===r){if(i??=String(e),t.colonNotation){const e=i.includes(".")?i.split(".")[0].length:i.length,t=o.length>0?2:1;i="0".repeat(Math.max(0,t-e))+i}else i+=t.verbose?" "+((e,t)=>1===t||1n===t?e:`${e}s`)(n,e):r;o.push(i)}},s=function(e){switch(typeof e){case"number":if(Number.isFinite(e))return function(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(Pr(1e3*e)%1e3),nanoseconds:Math.trunc(Pr(1e6*e)%1e3)}}(e);break;case"bigint":return function(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}(e)}throw new TypeError("Expected a finite number or bigint")}(e),a=BigInt(s.days);if(t.hideYearAndDays?i(24n*BigInt(a)+BigInt(s.hours),"hour","h"):(t.hideYear?i(a,"day","d"):(i(a/365n,"year","y"),i(a%365n,"day","d")),i(Number(s.hours),"hour","h")),i(Number(s.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){const e=Number(s.seconds),n=Number(s.milliseconds),r=Number(s.microseconds),o=Number(s.nanoseconds);if(i(e,"second","s"),t.formatSubMilliseconds)i(n,"millisecond","ms"),i(r,"microsecond","\xb5s"),i(o,"nanosecond","ns");else{const e=n+r/1e3+o/1e6,s="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),l=s?e.toFixed(s):a;i(Number.parseFloat(l),"millisecond","ms",l)}}else{const r=((e,t)=>{const n=Math.floor(e*10**t+1e-7);return(Math.round(n)/10**t).toFixed(t)})((n?Number(e%86400000n):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),o=t.keepDecimalsOnWholeSeconds?r:r.replace(/\.0+$/,"");i(Number.parseFloat(o),"second","s",o)}if(0===o.length)return r+"0"+(t.verbose?" milliseconds":"ms");const l=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(o=o.slice(0,Math.max(t.unitCount,1))),r+o.join(l)}const Lr=(e,t)=>{const n=`(done in ${kr(e.durationMs)})`;Me({type:"duration",verboseMessage:n,verboseInfo:t,result:e})},Ur=(e,t,{reject:n})=>{if(((e,t)=>{q(t)&&(((e,t)=>{e.failed&&Me({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})})(e,t),Lr(e,t))})(e,t),e.failed&&n)throw e;return e},Fr=(e,t)=>qr(e)?"asyncGenerator":Xr(e)?"generator":Jr(e)?"fileUrl":Zr(e)?"filePath":io(e)?"webStream":nr(e,{checkOpen:!1})?"native":f(e)?"uint8Array":ao(e)?"asyncIterable":lo(e)?"iterable":so(e)?Wr({transform:e},t):Qr(e)?Gr(e,t):"native",Gr=(e,t)=>ir(e.transform,{checkOpen:!1})?_r(e,t):so(e.transform)?Wr(e,t):Hr(e,t),_r=(e,t)=>(zr(e,t,"Duplex stream"),"duplex"),Wr=(e,t)=>(zr(e,t,"web TransformStream"),"webTransform"),zr=({final:e,binary:t,objectMode:n},r,o)=>{Vr(e,`${r}.final`,o),Vr(t,`${r}.