functione(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functiont(e){returne&&e.__esModule?e.default:e}functionr(e){returnnull==e?[]:Array.isArray(e)?e:[e]}functionn(e,t,r,n){varo,s=e[t],i=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeofr?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==s?i:Array.isArray(s)?s.concat(i):[s,i]}functiono(e){returne&&e.__esModule?e.default:e}functions(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functioni(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,n)=>{i(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Jt(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}functiona(e,t){constr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,s=o&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}leti;try{i=Wt.sync(e.command,{path:r[ir({env:r})],pathExt:t?pt.delimiter:void0})}catch(e){}finally{s&&process.chdir(n)}returni&&(i=(0,pt.resolve)(o?e.options.cwd:"",i)),i}functionc(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionl(e,t){returnyr&&1===e&&!t.file?c(t.original,"spawn"):null}functionu(e,t,r){constn=sr(e,t,r),o=(0,bt.spawn)(n.command,n.args,n.options);returngr.hookChildProcess(o,n),o}asyncfunctiond(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=mn(t);returnawaitnewPromise(((t,o)=>{consts=e=>{e&&n.getBufferedLength()<=gn.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitxn(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(newwn)}))})),n.getBufferedValue()}functionp(){returnnull!==o(Wt).sync("sudo",{nothrow:!0})}functionh(){vare;return0===(null===(e=process.getuid)||void0===e?void0:e.call(process))||!!process.env.CI}functionf(){returnh()&&p()}functionm(e){returnf()?"sudo "+e:e}functionv(e,t=[],r={stdio:"inherit",shell:!0}){returnf()?o(nr).commandSync("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(nr).sync(e,t,r)}functiong(e,t=[],r={stdio:"inherit",shell:!0}){returnf()?o(nr).command("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(nr)(e,t,r)}functiony(){return"win32"===process.platform?Vn():h()}functionx(e){returnf()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,pt.join)("/Users/",process.env.SUDO_USER,e):(0,pt.join)("/home/",process.env.SUDO_USER,e):t(Gt)("~/"+e)}functionw(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,n)=>{w(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Jn(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}functionb(e,t){constr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,s=o&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}leti;try{i=Wn.sync(e.command,{path:r[io({env:r})],pathExt:t?pt.delimiter:void0})}catch(e){}finally{s&&process.chdir(n)}returni&&(i=pt.resolve(o?e.options.cwd:"",i)),i}functionE(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionS(e,t){returnxo&&1===e&&!t.file?E(t.original,"spawn"):null}function_(e,t,r){constn=so(e,t,r),o=bt.spawn(n.command,n.args,n.options);returnyo.hookChildProcess(o,n),o}asyncfunctionO(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=vs(t);returnawaitnewPromise(((t,o)=>{consts=e=>{e&&n.getBufferedLength()<=ys.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitws(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(newbs)}))})),n.getBufferedValue()}function