forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.mjs
4 lines (4 loc) · 232 KB
/
Makefile.mjs
1
2
3
4
// source hash: b9abf00ee6645b1eddf69313e1c2e9944585e43f
/* eslint-disable */
// prettier-ignore
import e from"os";import t from"fs";import r from"path";import n from"events";import o from"assert";import i from"util";import s from"child_process";import a,{resolve as c,basename as l}from"node:path";import{writeFileSync as u,statSync as f,readFileSync as p,appendFileSync as d,createReadStream as h,createWriteStream as m,readdirSync as g,existsSync as y,mkdirSync as b}from"node:fs";import{fileURLToPath as v}from"node:url";import{ChildProcess as w,spawnSync as E,spawn as S}from"node:child_process";import{StringDecoder as O}from"node:string_decoder";import{debuglog as I,stripVTControlCharacters as T,inspect as j,promisify as x,callbackify as R,aborted as A}from"node:util";import D,{platform as N,hrtime as L,execPath as k,execArgv as C}from"node:process";import P from"node:tty";import{setTimeout as M,scheduler as _,setImmediate as $}from"node:timers/promises";import{constants as B}from"node:os";import{once as F,addAbortListener as U,EventEmitter as G,on as W,setMaxListeners as z}from"node:events";import{serialize as V}from"node:v8";import{Transform as H,getDefaultHighWaterMark as X,PassThrough as q,Readable as K,Writable as Y,Duplex as Q}from"node:stream";import{Buffer as J}from"node:buffer";import{finished as Z}from"node:stream/promises";var ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var re=function(e){return e&&e.Math===Math&&e},ne=re("object"==typeof globalThis&&globalThis)||re("object"==typeof window&&window)||re("object"==typeof self&&self)||re("object"==typeof ee&&ee)||re("object"==typeof ee&&ee)||function(){return this}()||Function("return this")(),oe={},ie=function(e){try{return!!e()}catch(e){return!0}},se=!ie((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ae=!ie((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ce=ae,le=Function.prototype.call,ue=ce?le.bind(le):function(){return le.apply(le,arguments)},fe={},pe={}.propertyIsEnumerable,de=Object.getOwnPropertyDescriptor,he=de&&!pe.call({1:2},1);fe.f=he?function(e){var t=de(this,e);return!!t&&t.enumerable}:pe;var me,ge,ye=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},be=ae,ve=Function.prototype,we=ve.call,Ee=be&&ve.bind.bind(we,we),Se=be?Ee:function(e){return function(){return we.apply(e,arguments)}},Oe=Se,Ie=Oe({}.toString),Te=Oe("".slice),je=function(e){return Te(Ie(e),8,-1)},xe=ie,Re=je,Ae=Object,De=Se("".split),Ne=xe((function(){return!Ae("z").propertyIsEnumerable(0)}))?function(e){return"String"===Re(e)?De(e,""):Ae(e)}:Ae,Le=function(e){return null==e},ke=Le,Ce=TypeError,Pe=function(e){if(ke(e))throw new Ce("Can't call method on "+e);return e},Me=Ne,_e=Pe,$e=function(e){return Me(_e(e))},Be="object"==typeof document&&document.all,Fe=void 0===Be&&void 0!==Be?function(e){return"function"==typeof e||e===Be}:function(e){return"function"==typeof e},Ue=Fe,Ge=function(e){return"object"==typeof e?null!==e:Ue(e)},We=ne,ze=Fe,Ve=function(e,t){return arguments.length<2?(r=We[e],ze(r)?r:void 0):We[e]&&We[e][t];var r},He=Se({}.isPrototypeOf),Xe=ne,qe="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Ke=Xe.process,Ye=Xe.Deno,Qe=Ke&&Ke.versions||Ye&&Ye.version,Je=Qe&&Qe.v8;Je&&(ge=(me=Je.split("."))[0]>0&&me[0]<4?1:+(me[0]+me[1])),!ge&&qe&&(!(me=qe.match(/Edge\/(\d+)/))||me[1]>=74)&&(me=qe.match(/Chrome\/(\d+)/))&&(ge=+me[1]);var Ze=ge,et=Ze,tt=ie,rt=ne.String,nt=!!Object.getOwnPropertySymbols&&!tt((function(){var e=Symbol("symbol detection");return!rt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&et&&et<41})),ot=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it=Ve,st=Fe,at=He,ct=Object,lt=ot?function(e){return"symbol"==typeof e}:function(e){var t=it("Symbol");return st(t)&&at(t.prototype,ct(e))},ut=String,ft=function(e){try{return ut(e)}catch(e){return"Object"}},pt=Fe,dt=ft,ht=TypeError,mt=function(e){if(pt(e))return e;throw new ht(dt(e)+" is not a function")},gt=mt,yt=Le,bt=function(e,t){var r=e[t];return yt(r)?void 0:gt(r)},vt=ue,wt=Fe,Et=Ge,St=TypeError,Ot={exports:{}},It=ne,Tt=Object.defineProperty,jt=function(e,t){try{Tt(It,e,{value:t,configurable:!0,writable:!0})}catch(r){It[e]=t}return t},xt=ne,Rt=jt,At="__core-js_shared__",Dt=Ot.exports=xt[At]||Rt(At,{});(Dt.versions||(Dt.versions=[])).push({version:"3.36.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Nt=Ot.exports,Lt=Nt,kt=function(e,t){return Lt[e]||(Lt[e]=t||{})},Ct=Pe,Pt=Object,Mt=function(e){return Pt(Ct(e))},_t=Mt,$t=Se({}.hasOwnProperty),Bt=Object.hasOwn||function(e,t){return $t(_t(e),t)},Ft=Se,Ut=0,Gt=Math.random(),Wt=Ft(1..toString),zt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Wt(++Ut+Gt,36)},Vt=kt,Ht=Bt,Xt=zt,qt=nt,Kt=ot,Yt=ne.Symbol,Qt=Vt("wks"),Jt=Kt?Yt.for||Yt:Yt&&Yt.withoutSetter||Xt,Zt=function(e){return Ht(Qt,e)||(Qt[e]=qt&&Ht(Yt,e)?Yt[e]:Jt("Symbol."+e)),Qt[e]},er=ue,tr=Ge,rr=lt,nr=bt,or=function(e,t){var r,n;if("string"===t&&wt(r=e.toString)&&!Et(n=vt(r,e)))return n;if(wt(r=e.valueOf)&&!Et(n=vt(r,e)))return n;if("string"!==t&&wt(r=e.toString)&&!Et(n=vt(r,e)))return n;throw new St("Can't convert object to primitive value")},ir=TypeError,sr=Zt("toPrimitive"),ar=function(e,t){if(!tr(e)||rr(e))return e;var r,n=nr(e,sr);if(n){if(void 0===t&&(t="default"),r=er(n,e,t),!tr(r)||rr(r))return r;throw new ir("Can't convert object to primitive value")}return void 0===t&&(t="number"),or(e,t)},cr=ar,lr=lt,ur=function(e){var t=cr(e,"string");return lr(t)?t:t+""},fr=Ge,pr=ne.document,dr=fr(pr)&&fr(pr.createElement),hr=function(e){return dr?pr.createElement(e):{}},mr=hr,gr=!se&&!ie((function(){return 7!==Object.defineProperty(mr("div"),"a",{get:function(){return 7}}).a})),yr=se,br=ue,vr=fe,wr=ye,Er=$e,Sr=ur,Or=Bt,Ir=gr,Tr=Object.getOwnPropertyDescriptor;oe.f=yr?Tr:function(e,t){if(e=Er(e),t=Sr(t),Ir)try{return Tr(e,t)}catch(e){}if(Or(e,t))return wr(!br(vr.f,e,t),e[t])};var jr={},xr=se&&ie((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rr=Ge,Ar=String,Dr=TypeError,Nr=function(e){if(Rr(e))return e;throw new Dr(Ar(e)+" is not an object")},Lr=se,kr=gr,Cr=xr,Pr=Nr,Mr=ur,_r=TypeError,$r=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Fr="enumerable",Ur="configurable",Gr="writable";jr.f=Lr?Cr?function(e,t,r){if(Pr(e),t=Mr(t),Pr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Gr in r&&!r[Gr]){var n=Br(e,t);n&&n[Gr]&&(e[t]=r.value,r={configurable:Ur in r?r[Ur]:n[Ur],enumerable:Fr in r?r[Fr]:n[Fr],writable:!1})}return $r(e,t,r)}:$r:function(e,t,r){if(Pr(e),t=Mr(t),Pr(r),kr)try{return $r(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new _r("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Wr=jr,zr=ye,Vr=se?function(e,t,r){return Wr.f(e,t,zr(1,r))}:function(e,t,r){return e[t]=r,e},Hr={exports:{}},Xr=se,qr=Bt,Kr=Function.prototype,Yr=Xr&&Object.getOwnPropertyDescriptor,Qr=qr(Kr,"name"),Jr={EXISTS:Qr,PROPER:Qr&&"something"===function(){}.name,CONFIGURABLE:Qr&&(!Xr||Xr&&Yr(Kr,"name").configurable)},Zr=Fe,en=Nt,tn=Se(Function.toString);Zr(en.inspectSource)||(en.inspectSource=function(e){return tn(e)});var rn,nn,on,sn=en.inspectSource,an=Fe,cn=ne.WeakMap,ln=an(cn)&&/native code/.test(String(cn)),un=zt,fn=kt("keys"),pn=function(e){return fn[e]||(fn[e]=un(e))},dn={},hn=ln,mn=ne,gn=Ge,yn=Vr,bn=Bt,vn=Nt,wn=pn,En=dn,Sn="Object already initialized",On=mn.TypeError,In=mn.WeakMap;if(hn||vn.state){var Tn=vn.state||(vn.state=new In);Tn.get=Tn.get,Tn.has=Tn.has,Tn.set=Tn.set,rn=function(e,t){if(Tn.has(e))throw new On(Sn);return t.facade=e,Tn.set(e,t),t},nn=function(e){return Tn.get(e)||{}},on=function(e){return Tn.has(e)}}else{var jn=wn("state");En[jn]=!0,rn=function(e,t){if(bn(e,jn))throw new On(Sn);return t.facade=e,yn(e,jn,t),t},nn=function(e){return bn(e,jn)?e[jn]:{}},on=function(e){return bn(e,jn)}}var xn={set:rn,get:nn,has:on,enforce:function(e){return on(e)?nn(e):rn(e,{})},getterFor:function(e){return function(t){var r;if(!gn(t)||(r=nn(t)).type!==e)throw new On("Incompatible receiver, "+e+" required");return r}}},Rn=Se,An=ie,Dn=Fe,Nn=Bt,Ln=se,kn=Jr.CONFIGURABLE,Cn=sn,Pn=xn.enforce,Mn=xn.get,_n=String,$n=Object.defineProperty,Bn=Rn("".slice),Fn=Rn("".replace),Un=Rn([].join),Gn=Ln&&!An((function(){return 8!==$n((function(){}),"length",{value:8}).length})),Wn=String(String).split("String"),zn=Hr.exports=function(e,t,r){"Symbol("===Bn(_n(t),0,7)&&(t="["+Fn(_n(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Nn(e,"name")||kn&&e.name!==t)&&(Ln?$n(e,"name",{value:t,configurable:!0}):e.name=t),Gn&&r&&Nn(r,"arity")&&e.length!==r.arity&&$n(e,"length",{value:r.arity});try{r&&Nn(r,"constructor")&&r.constructor?Ln&&$n(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Pn(e);return Nn(n,"source")||(n.source=Un(Wn,"string"==typeof t?t:"")),e};Function.prototype.toString=zn((function(){return Dn(this)&&Mn(this).source||Cn(this)}),"toString");var Vn=Hr.exports,Hn=Fe,Xn=jr,qn=Vn,Kn=jt,Yn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Hn(r)&&qn(r,i,n),n.global)o?e[t]=r:Kn(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Xn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Qn={},Jn=Math.ceil,Zn=Math.floor,eo=Math.trunc||function(e){var t=+e;return(t>0?Zn:Jn)(t)},to=eo,ro=function(e){var t=+e;return t!=t||0===t?0:to(t)},no=ro,oo=Math.max,io=Math.min,so=ro,ao=Math.min,co=function(e){var t=so(e);return t>0?ao(t,9007199254740991):0},lo=co,uo=function(e){return lo(e.length)},fo=$e,po=function(e,t){var r=no(e);return r<0?oo(r+t,0):io(r,t)},ho=uo,mo=function(e){return function(t,r,n){var o=fo(t),i=ho(o);if(0===i)return!e&&-1;var s,a=po(n,i);if(e&&r!=r){for(;i>a;)if((s=o[a++])!=s)return!0}else for(;i>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}},go={includes:mo(!0),indexOf:mo(!1)},yo=Bt,bo=$e,vo=go.indexOf,wo=dn,Eo=Se([].push),So=function(e,t){var r,n=bo(e),o=0,i=[];for(r in n)!yo(wo,r)&&yo(n,r)&&Eo(i,r);for(;t.length>o;)yo(n,r=t[o++])&&(~vo(i,r)||Eo(i,r));return i},Oo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Io=So,To=Oo.concat("length","prototype");Qn.f=Object.getOwnPropertyNames||function(e){return Io(e,To)};var jo={};jo.f=Object.getOwnPropertySymbols;var xo=Ve,Ro=Qn,Ao=jo,Do=Nr,No=Se([].concat),Lo=xo("Reflect","ownKeys")||function(e){var t=Ro.f(Do(e)),r=Ao.f;return r?No(t,r(e)):t},ko=Bt,Co=Lo,Po=oe,Mo=jr,_o=ie,$o=Fe,Bo=/#|\.prototype\./,Fo=function(e,t){var r=Go[Uo(e)];return r===zo||r!==Wo&&($o(t)?_o(t):!!t)},Uo=Fo.normalize=function(e){return String(e).replace(Bo,".").toLowerCase()},Go=Fo.data={},Wo=Fo.NATIVE="N",zo=Fo.POLYFILL="P",Vo=Fo,Ho=ne,Xo=oe.f,qo=Vr,Ko=Yn,Yo=jt,Qo=function(e,t,r){for(var n=Co(t),o=Mo.f,i=Po.f,s=0;s<n.length;s++){var a=n[s];ko(e,a)||r&&ko(r,a)||o(e,a,i(t,a))}},Jo=Vo,Zo=function(e,t){var r,n,o,i,s,a=e.target,c=e.global,l=e.stat;if(r=c?Ho:l?Ho[a]||Yo(a,{}):Ho[a]&&Ho[a].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(s=Xo(r,n))&&s.value:r[n],!Jo(c?n:a+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qo(i,o)}(e.sham||o&&o.sham)&&qo(i,"sham",!0),Ko(r,n,i,e)}},ei=je,ti=se,ri=Array.isArray||function(e){return"Array"===ei(e)},ni=TypeError,oi=Object.getOwnPropertyDescriptor,ii=ti&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),si=TypeError,ai=Mt,ci=uo,li=ii?function(e,t){if(ri(e)&&!oi(e,"length").writable)throw new ni("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},ui=function(e){if(e>9007199254740991)throw si("Maximum allowed index exceeded");return e};Zo({target:"Array",proto:!0,arity:1,forced:ie((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=ai(this),r=ci(t),n=arguments.length;ui(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return li(t,r),r}});var fi=He,pi=TypeError,di=!ie((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hi=Bt,mi=Fe,gi=Mt,yi=di,bi=pn("IE_PROTO"),vi=Object,wi=vi.prototype,Ei=yi?vi.getPrototypeOf:function(e){var t=gi(e);if(hi(t,bi))return t[bi];var r=t.constructor;return mi(r)&&t instanceof r?r.prototype:t instanceof vi?wi:null},Si=Vn,Oi=jr,Ii=function(e,t,r){return r.get&&Si(r.get,t,{getter:!0}),r.set&&Si(r.set,t,{setter:!0}),Oi.f(e,t,r)},Ti=se,ji=jr,xi=ye,Ri={},Ai=So,Di=Oo,Ni=Object.keys||function(e){return Ai(e,Di)},Li=se,ki=xr,Ci=jr,Pi=Nr,Mi=$e,_i=Ni;Ri.f=Li&&!ki?Object.defineProperties:function(e,t){Pi(e);for(var r,n=Mi(t),o=_i(t),i=o.length,s=0;i>s;)Ci.f(e,r=o[s++],n[r]);return e};var $i,Bi=Ve("document","documentElement"),Fi=Nr,Ui=Ri,Gi=Oo,Wi=dn,zi=Bi,Vi=hr,Hi="prototype",Xi="script",qi=pn("IE_PROTO"),Ki=function(){},Yi=function(e){return"<"+Xi+">"+e+"</"+Xi+">"},Qi=function(e){e.write(Yi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ji=function(){try{$i=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Ji="undefined"!=typeof document?document.domain&&$i?Qi($i):(t=Vi("iframe"),r="java"+Xi+":",t.style.display="none",zi.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Yi("document.F=Object")),e.close(),e.F):Qi($i);for(var n=Gi.length;n--;)delete Ji[Hi][Gi[n]];return Ji()};Wi[qi]=!0;var Zi,es,ts,rs=Object.create||function(e,t){var r;return null!==e?(Ki[Hi]=Fi(e),r=new Ki,Ki[Hi]=null,r[qi]=e):r=Ji(),void 0===t?r:Ui.f(r,t)},ns=ie,os=Fe,is=Ge,ss=Ei,as=Yn,cs=Zt("iterator"),ls=!1;[].keys&&("next"in(ts=[].keys())?(es=ss(ss(ts)))!==Object.prototype&&(Zi=es):ls=!0);var us=!is(Zi)||ns((function(){var e={};return Zi[cs].call(e)!==e}));us&&(Zi={}),os(Zi[cs])||as(Zi,cs,(function(){return this}));var fs={IteratorPrototype:Zi,BUGGY_SAFARI_ITERATORS:ls},ps=Zo,ds=ne,hs=function(e,t){if(fi(t,e))return e;throw new pi("Incorrect invocation")},ms=Nr,gs=Fe,ys=Ei,bs=Ii,vs=function(e,t,r){Ti?ji.f(e,t,xi(0,r)):e[t]=r},ws=ie,Es=Bt,Ss=fs.IteratorPrototype,Os=se,Is="constructor",Ts="Iterator",js=Zt("toStringTag"),xs=TypeError,Rs=ds[Ts],As=!gs(Rs)||Rs.prototype!==Ss||!ws((function(){Rs({})})),Ds=function(){if(hs(this,Ss),ys(this)===Ss)throw new xs("Abstract class Iterator not directly constructable")},Ns=function(e,t){Os?bs(Ss,e,{configurable:!0,get:function(){return t},set:function(t){if(ms(this),this===Ss)throw new xs("You can't redefine this property");Es(this,e)?this[e]=t:vs(this,e,t)}}):Ss[e]=t};Es(Ss,js)||Ns(js,Ts),!As&&Es(Ss,Is)&&Ss[Is]!==Object||Ns(Is,Ds),Ds.prototype=Ss,ps({global:!0,constructor:!0,forced:As},{Iterator:Ds});var Ls=function(e){return{iterator:e,next:e.next,done:!1}},ks=Yn,Cs=ue,Ps=Nr,Ms=bt,_s=function(e,t,r){var n,o;Ps(e);try{if(!(n=Ms(e,"return"))){if("throw"===t)throw r;return r}n=Cs(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Ps(n),r},$s=ue,Bs=rs,Fs=Vr,Us=function(e,t,r){for(var n in t)ks(e,n,t[n],r);return e},Gs=xn,Ws=bt,zs=fs.IteratorPrototype,Vs=function(e,t){return{value:e,done:t}},Hs=_s,Xs=Zt("toStringTag"),qs="IteratorHelper",Ks="WrapForValidIterator",Ys=Gs.set,Qs=function(e){var t=Gs.getterFor(e?Ks:qs);return Us(Bs(zs),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var n=r.done?void 0:r.nextHandler();return Vs(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=Ws(n,"return");return o?$s(o,n):Vs(void 0,!0)}if(r.inner)try{Hs(r.inner.iterator,"normal")}catch(e){return Hs(n,"throw",e)}return Hs(n,"normal"),Vs(void 0,!0)}})},Js=Qs(!0),Zs=Qs(!1);Fs(Zs,Xs,"Iterator Helper");var ea=function(e,t){var r=function(r,n){n?(n.iterator=r.iterator,n.next=r.next):n=r,n.type=t?Ks:qs,n.nextHandler=e,n.counter=0,n.done=!1,Ys(this,n)};return r.prototype=t?Js:Zs,r},ta=Nr,ra=_s,na=function(e,t,r,n){try{return n?t(ta(r)[0],r[1]):t(r)}catch(t){ra(e,"throw",t)}},oa=Zo,ia=ue,sa=mt,aa=Nr,ca=Ls,la=na,ua=ea((function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=aa(ia(o,r)),this.done=!!e.done)return;if(t=e.value,la(r,n,[t,this.counter++],!0))return t}}));oa({target:"Iterator",proto:!0,real:!0,forced:false},{filter:function(e){return aa(this),sa(e),new ua(ca(this),{predicate:e})}});var fa=je,pa=Se,da=function(e){if("Function"===fa(e))return pa(e)},ha=mt,ma=ae,ga=da(da.bind),ya={},ba=ya,va=Zt("iterator"),wa=Array.prototype,Ea={};Ea[Zt("toStringTag")]="z";var Sa="[object z]"===String(Ea),Oa=Fe,Ia=je,Ta=Zt("toStringTag"),ja=Object,xa="Arguments"===Ia(function(){return arguments}()),Ra=Sa?Ia:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=ja(e),Ta))?r:xa?Ia(t):"Object"===(n=Ia(t))&&Oa(t.callee)?"Arguments":n},Aa=Ra,Da=bt,Na=Le,La=ya,ka=Zt("iterator"),Ca=function(e){if(!Na(e))return Da(e,ka)||Da(e,"@@iterator")||La[Aa(e)]},Pa=ue,Ma=mt,_a=Nr,$a=ft,Ba=Ca,Fa=TypeError,Ua=function(e,t){return ha(e),void 0===t?e:ma?ga(e,t):function(){return e.apply(t,arguments)}},Ga=ue,Wa=Nr,za=ft,Va=function(e){return void 0!==e&&(ba.Array===e||wa[va]===e)},Ha=uo,Xa=He,qa=function(e,t){var r=arguments.length<2?Ba(e):t;if(Ma(r))return _a(Pa(r,e));throw new Fa($a(e)+" is not iterable")},Ka=Ca,Ya=_s,Qa=TypeError,Ja=function(e,t){this.stopped=e,this.result=t},Za=Ja.prototype,ec=function(e,t,r){var n,o,i,s,a,c,l,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=Ua(t,u),g=function(e){return n&&Ya(n,"normal",e),new Ja(!0,e)},y=function(e){return f?(Wa(e),h?m(e[0],e[1],g):m(e[0],e[1])):h?m(e,g):m(e)};if(p)n=e.iterator;else if(d)n=e;else{if(!(o=Ka(e)))throw new Qa(za(e)+" is not iterable");if(Va(o)){for(i=0,s=Ha(e);s>i;i++)if((a=y(e[i]))&&Xa(Za,a))return a;return new Ja(!1)}n=qa(e,o)}for(c=p?e.next:n.next;!(l=Ga(c,n)).done;){try{a=y(l.value)}catch(e){Ya(n,"throw",e)}if("object"==typeof a&&a&&Xa(Za,a))return a}return new Ja(!1)},tc=ec,rc=mt,nc=Nr,oc=Ls;Zo({target:"Iterator",proto:!0,real:!0},{forEach:function(e){nc(this),rc(e);var t=oc(this),r=0;tc(t,(function(t){e(t,r++)}),{IS_RECORD:!0})}});var ic=ue,sc=mt,ac=Nr,cc=Ls,lc=na,uc=ea((function(){var e=this.iterator,t=ac(ic(this.next,e));if(!(this.done=!!t.done))return lc(e,this.mapper,[t.value,this.counter++],!0)}));Zo({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(e){return ac(this),sc(e),new uc(cc(this),{mapper:e})}});var fc=ec,pc=mt,dc=Nr,hc=Ls,mc=TypeError;Zo({target:"Iterator",proto:!0,real:!0},{reduce:function(e){dc(this),pc(e);var t=hc(this),r=arguments.length<2,n=r?void 0:arguments[1],o=0;if(fc(t,(function(t){r?(r=!1,n=t):n=e(n,t,o),o++}),{IS_RECORD:!0}),r)throw new mc("Reduce of empty iterator with no initial value");return n}});var gc,yc,bc,vc={},wc={};function Ec(){if(gc)return wc;gc=1;var e=r,n="win32"===process.platform,o=t,i=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(i){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}if(e.normalize,n)var a=/(.*?)(?:[\/\\]+|$)/g;else a=/(.*?)(?:[\/]+|$)/g;if(n)var c=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else c=/^[\/]*/;return wc.realpathSync=function(t,r){if(t=e.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var i,s,l,u,f=t,p={},d={};function h(){var e=c.exec(t);i=e[0].length,s=e[0],l=e[0],u="",n&&!d[l]&&(o.lstatSync(l),d[l]=!0)}for(h();i<t.length;){a.lastIndex=i;var m=a.exec(t);if(u=s,s+=m[0],l=u+m[1],i=a.lastIndex,!(d[l]||r&&r[l]===l)){var g;if(r&&Object.prototype.hasOwnProperty.call(r,l))g=r[l];else{var y=o.lstatSync(l);if(!y.isSymbolicLink()){d[l]=!0,r&&(r[l]=l);continue}var b=null;if(!n){var v=y.dev.toString(32)+":"+y.ino.toString(32);p.hasOwnProperty(v)&&(b=p[v])}null===b&&(o.statSync(l),b=o.readlinkSync(l)),g=e.resolve(u,b),r&&(r[l]=g),n||(p[v]=b)}t=e.resolve(g,t.slice(i)),h()}}return r&&(r[f]=t),t},wc.realpath=function(t,r,i){if("function"!=typeof i&&(i=s(r),r=null),t=e.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(i.bind(null,null,r[t]));var l,u,f,p,d=t,h={},m={};function g(){var e=c.exec(t);l=e[0].length,u=e[0],f=e[0],p="",n&&!m[f]?o.lstat(f,(function(e){if(e)return i(e);m[f]=!0,y()})):process.nextTick(y)}function y(){if(l>=t.length)return r&&(r[d]=t),i(null,t);a.lastIndex=l;var e=a.exec(t);return p=u,u+=e[0],f=p+e[1],l=a.lastIndex,m[f]||r&&r[f]===f?process.nextTick(y):r&&Object.prototype.hasOwnProperty.call(r,f)?w(r[f]):o.lstat(f,b)}function b(e,t){if(e)return i(e);if(!t.isSymbolicLink())return m[f]=!0,r&&(r[f]=f),process.nextTick(y);if(!n){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(h.hasOwnProperty(s))return v(null,h[s],f)}o.stat(f,(function(e){if(e)return i(e);o.readlink(f,(function(e,t){n||(h[s]=t),v(e,t)}))}))}function v(t,n,o){if(t)return i(t);var s=e.resolve(p,n);r&&(r[o]=s),w(s)}function w(r){t=e.resolve(r,t.slice(l)),g()}g()},wc}function Sc(){if(bc)return yc;bc=1,yc=c,c.realpath=c,c.sync=l,c.realpathSync=l,c.monkeypatch=function(){e.realpath=c,e.realpathSync=l},c.unmonkeypatch=function(){e.realpath=r,e.realpathSync=n};var e=t,r=e.realpath,n=e.realpathSync,o=process.version,i=/^v[0-5]\./.test(o),s=Ec();function a(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function c(e,t,n){if(i)return r(e,t,n);"function"==typeof t&&(n=t,t=null),r(e,t,(function(r,o){a(r)?s.realpath(e,t,n):n(r,o)}))}function l(e,t){if(i)return n(e,t);try{return n(e,t)}catch(r){if(a(r))return s.realpathSync(e,t);throw r}}return yc}var Oc,Ic,Tc,jc,xc,Rc,Ac,Dc,Nc=ec,Lc=mt,kc=Nr,Cc=Ls;function Pc(){if(Ic)return Oc;Ic=1,Oc=function(t,r){for(var n=[],o=0;o<t.length;o++){var i=r(t[o],o);e(i)?n.push.apply(n,i):n.push(i)}return n};var e=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};return Oc}function Mc(){if(Rc)return xc;Rc=1;var e=Pc(),t=function(){if(jc)return Tc;function e(e,n,o){e instanceof RegExp&&(e=t(e,o)),n instanceof RegExp&&(n=t(n,o));var i=r(e,n,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+e.length,i[1]),post:o.slice(i[1]+n.length)}}function t(e,t){var r=t.match(e);return r?r[0]:null}function r(e,t,r){var n,o,i,s,a,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){for(n=[],i=r.length;u>=0&&!a;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?a=[n.pop(),l]:((o=n.pop())<i&&(i=o,s=l),l=r.indexOf(t,u+1)),u=c<l&&c>=0?c:l;n.length&&(a=[i,s])}return a}return jc=1,Tc=e,e.range=r,Tc}();xc=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return h(function(e){return e.split("\\\\").join(r).split("\\{").join(n).split("\\}").join(o).split("\\,").join(i).split("\\.").join(s)}(e),!0).map(c)};var r="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function a(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split(r).join("\\").split(n).join("{").split(o).join("}").split(i).join(",").split(s).join(".")}function l(e){if(!e)return[""];var r=[],n=t("{","}",e);if(!n)return e.split(",");var o=n.pre,i=n.body,s=n.post,a=o.split(",");a[a.length-1]+="{"+i+"}";var c=l(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),r.push.apply(r,a),r}function u(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function p(e,t){return e<=t}function d(e,t){return e>=t}function h(r,n){var i=[],s=t("{","}",r);if(!s||/\$$/.test(s.pre))return[r];var c,m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=m||g,b=s.body.indexOf(",")>=0;if(!y&&!b)return s.post.match(/,.*\}/)?h(r=s.pre+"{"+s.body+o+s.post):[r];if(y)c=s.body.split(/\.\./);else if(1===(c=l(s.body)).length&&1===(c=h(c[0],!1).map(u)).length)return(E=s.post.length?h(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,w=s.pre,E=s.post.length?h(s.post,!1):[""];if(y){var S=a(c[0]),O=a(c[1]),I=Math.max(c[0].length,c[1].length),T=3==c.length?Math.abs(a(c[2])):1,j=p;O<S&&(T*=-1,j=d);var x=c.some(f);v=[];for(var R=S;j(R,O);R+=T){var A;if(g)"\\"===(A=String.fromCharCode(R))&&(A="");else if(A=String(R),x){var D=I-A.length;if(D>0){var N=new Array(D+1).join("0");A=R<0?"-"+N+A.slice(1):N+A}}v.push(A)}}else v=e(c,(function(e){return h(e,!1)}));for(var L=0;L<v.length;L++)for(var k=0;k<E.length;k++){var C=w+v[L]+E[k];(!n||y||C)&&i.push(C)}return i}return xc}function _c(){if(Dc)return Ac;Dc=1,Ac=l,l.Minimatch=u;var e=function(){try{return require("path")}catch(e){}}()||{sep:"/"};l.sep=e.sep;var t=l.GLOBSTAR=u.GLOBSTAR={},r=Mc(),n={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o="[^/]",i=o+"*?",s="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var a=/\/+/;function c(e,t){t=t||{};var r={};return Object.keys(e).forEach((function(t){r[t]=e[t]})),Object.keys(t).forEach((function(e){r[e]=t[e]})),r}function l(e,t,r){return p(t),r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&new u(t,r).match(e)}function u(t,r){if(!(this instanceof u))return new u(t,r);p(t),r||(r={}),t=t.trim(),r.allowWindowsEscape||"/"===e.sep||(t=t.split(e.sep).join("/")),this.options=r,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}function f(e,t){return t||(t=this instanceof u?this.options:{}),e=void 0===e?this.pattern:e,p(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:r(e)}l.filter=function(e,t){return t=t||{},function(r,n,o){return l(r,e,t)}},l.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return l;var t=l,r=function(r,n,o){return t(r,n,c(e,o))};return(r.Minimatch=function(r,n){return new t.Minimatch(r,c(e,n))}).defaults=function(r){return t.defaults(c(e,r)).Minimatch},r.filter=function(r,n){return t.filter(r,c(e,n))},r.defaults=function(r){return t.defaults(c(e,r))},r.makeRe=function(r,n){return t.makeRe(r,c(e,n))},r.braceExpand=function(r,n){return t.braceExpand(r,c(e,n))},r.match=function(r,n,o){return t.match(r,n,c(e,o))},r},u.defaults=function(e){return l.defaults(e).Minimatch},u.prototype.debug=function(){},u.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)});this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(a)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},u.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var o=0,i=e.length;o<i&&"!"===e.charAt(o);o++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},l.braceExpand=function(e,t){return f(e,t)},u.prototype.braceExpand=f;var p=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};u.prototype.parse=function(e,r){p(e);var a=this.options;if("**"===e){if(!a.noglobstar)return t;e="*"}if(""===e)return"";var c,l="",u=!!a.nocase,f=!1,h=[],m=[],g=!1,y=-1,b=-1,v="."===e.charAt(0)?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=this;function E(){if(c){switch(c){case"*":l+=i,u=!0;break;case"?":l+=o,u=!0;break;default:l+="\\"+c}w.debug("clearStateChar %j %j",c,l),c=!1}}for(var S,O=0,I=e.length;O<I&&(S=e.charAt(O));O++)if(this.debug("%s\t%s %s %j",e,O,l,S),f&&s[S])l+="\\"+S,f=!1;else switch(S){case"/":return!1;case"\\":E(),f=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,O,l,S),g){this.debug(" in class"),"!"===S&&O===b+1&&(S="^"),l+=S;continue}w.debug("call clearStateChar %j",c),E(),c=S,a.noext&&E();continue;case"(":if(g){l+="(";continue}if(!c){l+="\\(";continue}h.push({type:c,start:O-1,reStart:l.length,open:n[c].open,close:n[c].close}),l+="!"===c?"(?:(?!(?:":"(?:",this.debug("plType %j %j",c,l),c=!1;continue;case")":if(g||!h.length){l+="\\)";continue}E(),u=!0;var T=h.pop();l+=T.close,"!"===T.type&&m.push(T),T.reEnd=l.length;continue;case"|":if(g||!h.length||f){l+="\\|",f=!1;continue}E(),l+="|";continue;case"[":if(E(),g){l+="\\"+S;continue}g=!0,b=O,y=l.length,l+=S;continue;case"]":if(O===b+1||!g){l+="\\"+S,f=!1;continue}var j=e.substring(b+1,O);try{RegExp("["+j+"]")}catch(e){var x=this.parse(j,d);l=l.substr(0,y)+"\\["+x[0]+"\\]",u=u||x[1],g=!1;continue}u=!0,g=!1,l+=S;continue;default:E(),f?f=!1:!s[S]||"^"===S&&g||(l+="\\"),l+=S}g&&(j=e.substr(b+1),x=this.parse(j,d),l=l.substr(0,y)+"\\["+x[0],u=u||x[1]);for(T=h.pop();T;T=h.pop()){var R=l.slice(T.reStart+T.open.length);this.debug("setting tail",l,T),R=R.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",R,R,T,l);var A="*"===T.type?i:"?"===T.type?o:"\\"+T.type;u=!0,l=l.slice(0,T.reStart)+A+"\\("+R}E(),f&&(l+="\\\\");var D=!1;switch(l.charAt(0)){case"[":case".":case"(":D=!0}for(var N=m.length-1;N>-1;N--){var L=m[N],k=l.slice(0,L.reStart),C=l.slice(L.reStart,L.reEnd-8),P=l.slice(L.reEnd-8,L.reEnd),M=l.slice(L.reEnd);P+=M;var _=k.split("(").length-1,$=M;for(O=0;O<_;O++)$=$.replace(/\)[+*?]?/,"");var B="";""===(M=$)&&r!==d&&(B="$"),l=k+C+M+B+P}""!==l&&u&&(l="(?=.)"+l);D&&(l=v+l);if(r===d)return[l,u];if(!u)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var F=a.nocase?"i":"";try{var U=new RegExp("^"+l+"$",F)}catch(e){return new RegExp("$.")}return U._glob=e,U._src=l,U};var d={};return l.makeRe=function(e,t){return new u(e,t||{}).makeRe()},u.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var r=this.options,n=r.noglobstar?i:r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=r.nocase?"i":"",s=e.map((function(e){return e.map((function(e){return e===t?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,o)}catch(e){this.regexp=!1}return this.regexp},l.match=function(e,t,r){var n=new u(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},u.prototype.match=function(t,r){if(void 0===r&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&r)return!0;var n=this.options;"/"!==e.sep&&(t=t.split(e.sep).join("/")),t=t.split(a),this.debug(this.pattern,"split",t);var o,i,s=this.set;for(this.debug(this.pattern,"set",s),i=t.length-1;i>=0&&!(o=t[i]);i--);for(i=0;i<s.length;i++){var c=s[i],l=t;if(n.matchBase&&1===c.length&&(l=[o]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},u.prototype.matchOne=function(e,r,n){var o=this.options;this.debug("matchOne",{this:this,file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var i=0,s=0,a=e.length,c=r.length;i<a&&s<c;i++,s++){this.debug("matchOne loop");var l,u=r[s],f=e[i];if(this.debug(r,u,f),!1===u)return!1;if(u===t){this.debug("GLOBSTAR",[r,u,f]);var p=i,d=s+1;if(d===c){for(this.debug("** at the end");i<a;i++)if("."===e[i]||".."===e[i]||!o.dot&&"."===e[i].charAt(0))return!1;return!0}for(;p<a;){var h=e[p];if(this.debug("\nglobstar while",e,p,r,d,h),this.matchOne(e.slice(p),r.slice(d),n))return this.debug("globstar found match!",p,a,h),!0;if("."===h||".."===h||!o.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,p,r,d);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!n||(this.debug("\n>>> no match, partial?",e,p,r,d),p!==a))}if("string"==typeof u?(l=f===u,this.debug("string match",u,f,l)):(l=f.match(u),this.debug("pattern match",u,f,l)),!l)return!1}if(i===a&&s===c)return!0;if(i===a)return n;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")},Ac}Zo({target:"Iterator",proto:!0,real:!0},{some:function(e){kc(this),Lc(e);var t=Cc(this),r=0;return Nc(t,(function(t,n){if(e(t,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var $c,Bc,Fc={exports:{}},Uc={exports:{}};function Gc(){if(Bc)return Fc.exports;Bc=1;try{var e=require("util");if("function"!=typeof e.inherits)throw"";Fc.exports=e.inherits}catch(e){Fc.exports=($c||($c=1,"function"==typeof Object.create?Uc.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Uc.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),Uc.exports)}return Fc.exports}var Wc,zc={exports:{}};function Vc(){if(Wc)return zc.exports;function e(e){return"/"===e.charAt(0)}function t(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}return Wc=1,zc.exports="win32"===process.platform?t:e,zc.exports.posix=e,zc.exports.win32=t,zc.exports}var Hc,Xc,qc,Kc,Yc,Qc={};function Jc(){if(Hc)return Qc;function e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Hc=1,Qc.setopts=function(t,r,i){i||(i={});if(i.matchBase&&-1===r.indexOf("/")){if(i.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}t.silent=!!i.silent,t.pattern=r,t.strict=!1!==i.strict,t.realpath=!!i.realpath,t.realpathCache=i.realpathCache||Object.create(null),t.follow=!!i.follow,t.dot=!!i.dot,t.mark=!!i.mark,t.nodir=!!i.nodir,t.nodir&&(t.mark=!0);t.sync=!!i.sync,t.nounique=!!i.nounique,t.nonull=!!i.nonull,t.nosort=!!i.nosort,t.nocase=!!i.nocase,t.stat=!!i.stat,t.noprocess=!!i.noprocess,t.absolute=!!i.absolute,t.fs=i.fs||n,t.maxLength=i.maxLength||1/0,t.cache=i.cache||Object.create(null),t.statCache=i.statCache||Object.create(null),t.symlinks=i.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(t,i),t.changedCwd=!1;var c=process.cwd();e(i,"cwd")?(t.cwd=o.resolve(i.cwd),t.changedCwd=t.cwd!==c):t.cwd=c;t.root=i.root||o.resolve(t.cwd,"/"),t.root=o.resolve(t.root),"win32"===process.platform&&(t.root=t.root.replace(/\\/g,"/"));t.cwdAbs=s(t.cwd)?t.cwd:u(t,t.cwd),"win32"===process.platform&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/"));t.nomount=!!i.nomount,i.nonegate=!0,i.nocomment=!0,i.allowWindowsEscape=!1,t.minimatch=new a(r,i),t.options=t.minimatch.options},Qc.ownProp=e,Qc.makeAbs=u,Qc.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,o=e.matches.length;n<o;n++){var i=e.matches[n];if(i&&0!==Object.keys(i).length){var s=Object.keys(i);t?r.push.apply(r,s):s.forEach((function(e){r[e]=!0}))}else if(e.nonull){var a=e.minimatch.globSet[n];t?r.push(a):r[a]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(c));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[u(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!f(e,t)})));e.found=r},Qc.mark=function(e,t){var r=u(e,t),n=e.cache[r],o=t;if(n){var i="DIR"===n||Array.isArray(n),s="/"===t.slice(-1);if(i&&!s?o+="/":!i&&s&&(o=o.slice(0,-1)),o!==t){var a=u(e,o);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return o},Qc.isIgnored=f,Qc.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var n=t,o=r,i=_c(),s=Vc(),a=i.Minimatch;function c(e,t){return e.localeCompare(t,"en")}function l(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:!0})}return{matcher:new a(e,{dot:!0}),gmatcher:t}}function u(e,t){var r=t;return r="/"===t.charAt(0)?o.join(e.root,t):s(t)||""===t?t:e.changedCwd?o.resolve(e.cwd,t):o.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function f(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}return Qc}function Zc(){if(Yc)return Kc;return Yc=1,Kc=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach((function(e){n[e]=o[e]})),n}},Kc}var el,tl,rl,nl,ol,il,sl,al,cl,ll,ul,fl,pl,dl,hl={exports:{}};function ml(){if(el)return hl.exports;el=1;var e=Zc();function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function r(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}return hl.exports=e(t),hl.exports.strict=e(r),t.proto=t((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return r(this)},configurable:!0})})),hl.exports}function gl(){if(rl)return tl;rl=1;var e=Zc(),t=Object.create(null),r=ml();return tl=e((function(e,n){return t[e]?(t[e].push(n),null):(t[e]=[n],function(e){return r((function r(){var n=t[e],o=n.length,i=function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}(arguments);try{for(var s=0;s<o;s++)n[s].apply(null,i)}finally{n.length>o?(n.splice(0,o),process.nextTick((function(){r.apply(null,i)}))):delete t[e]}}))}(e))})),tl}function yl(){if(ol)return nl;ol=1,nl=b;var e=Sc(),t=_c();t.Minimatch;var i=Gc(),s=n.EventEmitter,a=r,c=o,l=Vc(),u=function(){if(qc)return Xc;qc=1,Xc=p,p.GlobSync=d;var e=Sc(),t=_c();t.Minimatch,yl().Glob;var n=r,i=o,s=Vc(),a=Jc(),c=a.setopts,l=a.ownProp,u=a.childrenIgnored,f=a.isIgnored;function p(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new d(e,t).found}function d(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof d))return new d(e,t);if(c(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}return d.prototype._finish=function(){if(i.ok(this instanceof d),this.realpath){var t=this;this.matches.forEach((function(r,n){var o=t.matches[n]=Object.create(null);for(var i in r)try{i=t._makeAbs(i),o[e.realpathSync(i,t.realpathCache)]=!0}catch(e){if("stat"!==e.syscall)throw e;o[t._makeAbs(i)]=!0}}))}a.finish(this)},d.prototype._process=function(e,r,n){i.ok(this instanceof d);for(var o,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),r);case 0:o=null;break;default:o=e.slice(0,a).join("/")}var c,l=e.slice(a);null===o?c=".":s(o)||s(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(o&&s(o)||(o="/"+o),c=o):c=o;var f=this._makeAbs(c);u(this,c)||(l[0]===t.GLOBSTAR?this._processGlobStar(o,c,f,l,r,n):this._processReaddir(o,c,f,l,r,n))},d.prototype._processReaddir=function(e,t,r,o,i,s){var a=this._readdir(r,s);if(a){for(var c=o[0],l=!!this.minimatch.negate,u=c._glob,f=this.dot||"."===u.charAt(0),p=[],d=0;d<a.length;d++)("."!==(g=a[d]).charAt(0)||f)&&(l&&!e?!g.match(c):g.match(c))&&p.push(g);var h=p.length;if(0!==h)if(1!==o.length||this.mark||this.stat)for(o.shift(),d=0;d<h;d++){var m;g=p[d],m=e?[e,g]:[g],this._process(m.concat(o),i,s)}else{this.matches[i]||(this.matches[i]=Object.create(null));for(d=0;d<h;d++){var g=p[d];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=n.join(this.root,g)),this._emitMatch(i,g)}}}},d.prototype._emitMatch=function(e,t){if(!f(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},d.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},d.prototype._readdir=function(e,t){if(t&&!l(this.symlinks,e))return this._readdirInGlobStar(e);if(l(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},d.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},d.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},d.prototype._processGlobStar=function(e,t,r,n,o,i){var s=this._readdir(r,i);if(s){var a=n.slice(1),c=e?[e]:[],l=c.concat(a);this._process(l,o,!1);var u=s.length;if(!this.symlinks[r]||!i)for(var f=0;f<u;f++)if("."!==s[f].charAt(0)||this.dot){var p=c.concat(s[f],a);this._process(p,o,!0);var d=c.concat(s[f],n);this._process(d,o,!0)}}},d.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&s(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=n.join(this.root,e):(e=n.resolve(this.root,e),o&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},d.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&l(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var o=this.statCache[t];if(!o){var i;try{i=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(i&&i.isSymbolicLink())try{o=this.fs.statSync(t)}catch(e){o=i}else o=i}return this.statCache[t]=o,n=!0,o&&(n=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},d.prototype._mark=function(e){return a.mark(this,e)},d.prototype._makeAbs=function(e){return a.makeAbs(this,e)},Xc}(),f=Jc(),p=f.setopts,d=f.ownProp,h=gl(),m=f.childrenIgnored,g=f.isIgnored,y=ml();function b(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return u(e,t)}return new w(e,t,r)}b.sync=u;var v=b.GlobSync=u.GlobSync;function w(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new v(e,t)}if(!(this instanceof w))return new w(e,t,r);p(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=y(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var i=!0,s=0;s<n;s++)this._process(this.minimatch.set[s],s,!1,a);function a(){--o._processing,o._processing<=0&&(i?process.nextTick((function(){o._finish()})):o._finish())}i=!1}return b.glob=b,b.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new w(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var o=0;o<n[0].length;o++)if("string"!=typeof n[0][o])return!0;return!1},b.Glob=w,i(w,s),w.prototype._finish=function(){if(c(this instanceof w),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();f.finish(this),this.emit("end",this.found)}},w.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},w.prototype._realpathSet=function(t,r){var n=this.matches[t];if(!n)return r();var o=Object.keys(n),i=this,s=o.length;if(0===s)return r();var a=this.matches[t]=Object.create(null);o.forEach((function(n,o){n=i._makeAbs(n),e.realpath(n,i.realpathCache,(function(e,o){e?"stat"===e.syscall?a[n]=!0:i.emit("error",e):a[o]=!0,0==--s&&(i.matches[t]=a,r())}))}))},w.prototype._mark=function(e){return f.mark(this,e)},w.prototype._makeAbs=function(e){return f.makeAbs(this,e)},w.prototype.abort=function(){this.aborted=!0,this.emit("abort")},w.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},w.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var o=n[t];this._processing--,this._process(o[0],o[1],o[2],o[3])}}}},w.prototype._process=function(e,r,n,o){if(c(this instanceof w),c("function"==typeof o),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,r,n,o]);else{for(var i,s=0;"string"==typeof e[s];)s++;switch(s){case e.length:return void this._processSimple(e.join("/"),r,o);case 0:i=null;break;default:i=e.slice(0,s).join("/")}var a,u=e.slice(s);null===i?a=".":l(i)||l(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(i&&l(i)||(i="/"+i),a=i):a=i;var f=this._makeAbs(a);if(m(this,a))return o();u[0]===t.GLOBSTAR?this._processGlobStar(i,a,f,u,r,n,o):this._processReaddir(i,a,f,u,r,n,o)}},w.prototype._processReaddir=function(e,t,r,n,o,i,s){var a=this;this._readdir(r,i,(function(c,l){return a._processReaddir2(e,t,r,n,o,i,l,s)}))},w.prototype._processReaddir2=function(e,t,r,n,o,i,s,c){if(!s)return c();for(var l=n[0],u=!!this.minimatch.negate,f=l._glob,p=this.dot||"."===f.charAt(0),d=[],h=0;h<s.length;h++){if("."!==(g=s[h]).charAt(0)||p)(u&&!e?!g.match(l):g.match(l))&&d.push(g)}var m=d.length;if(0===m)return c();if(1===n.length&&!this.mark&&!this.stat){this.matches[o]||(this.matches[o]=Object.create(null));for(h=0;h<m;h++){var g=d[h];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=a.join(this.root,g)),this._emitMatch(o,g)}return c()}n.shift();for(h=0;h<m;h++){g=d[h];e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(n),o,i,c)}c()},w.prototype._emitMatch=function(e,t){if(!this.aborted&&!g(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=l(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var o=this.statCache[r];o&&this.emit("stat",t,o),this.emit("match",t)}}},w.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=h("lstat\0"+e,(function(n,o){if(n&&"ENOENT"===n.code)return t();var i=o&&o.isSymbolicLink();r.symlinks[e]=i,i||!o||o.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},w.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=h("readdir\0"+e+"\0"+t,r))){if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e,r);if(d(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,function(e,t,r){return function(n,o){n?e._readdirError(t,n,r):e._readdirEntries(t,o,r)}}(this,e,r))}},w.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var o=t[n];o="/"===e?e+o:e+"/"+o,this.cache[o]=!0}return this.cache[e]=t,r(null,t)}},w.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var o=new Error(t.code+" invalid cwd "+this.cwd);o.path=this.cwd,o.code=t.code,this.emit("error",o),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},w.prototype._processGlobStar=function(e,t,r,n,o,i,s){var a=this;this._readdir(r,i,(function(c,l){a._processGlobStar2(e,t,r,n,o,i,l,s)}))},w.prototype._processGlobStar2=function(e,t,r,n,o,i,s,a){if(!s)return a();var c=n.slice(1),l=e?[e]:[],u=l.concat(c);this._process(u,o,!1,a);var f=this.symlinks[r],p=s.length;if(f&&i)return a();for(var d=0;d<p;d++){if("."!==s[d].charAt(0)||this.dot){var h=l.concat(s[d],c);this._process(h,o,!0,a);var m=l.concat(s[d],n);this._process(m,o,!0,a)}}a()},w.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(o,i){n._processSimple2(e,t,o,i,r)}))},w.prototype._processSimple2=function(e,t,r,n,o){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return o();if(e&&l(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),i&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),o()},w.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&d(this.cache,r)){var o=this.cache[r];if(Array.isArray(o)&&(o="DIR"),!n||"DIR"===o)return t(null,o);if(n&&"FILE"===o)return t()}var i=this.statCache[r];if(void 0!==i){if(!1===i)return t(null,i);var s=i.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,i)}var a=this,c=h("stat\0"+r,(function(n,o){if(o&&o.isSymbolicLink())return a.fs.stat(r,(function(n,i){n?a._stat2(e,r,null,o,t):a._stat2(e,r,n,i,t)}));a._stat2(e,r,n,o,t)}));c&&a.fs.lstat(r,c)},w.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,n)},nl}function bl(){if(il)return vc;il=1;var r=e,n=t,o=yl(),i=nf(),s=Object.create(i);vc.extend=Object.assign;var a=Boolean(process.versions.electron),c={fatal:!1,globOptions:{},maxdepth:255,noglob:!1,silent:!1,verbose:!1,execPath:null,bufLength:65536},l={reset:function(){Object.assign(this,c),a||(this.execPath=process.execPath)},resetForTesting:function(){this.reset(),this.silent=!0}};l.reset(),vc.config=l;var u={error:null,errorCode:0,currentCmd:"shell.js"};function f(e){return"object"==typeof e&&null!==e}function p(){l.silent||console.error.apply(console,arguments)}function d(e){if("string"!=typeof e)throw new TypeError("input must be a string");return e.replace(/\\/g,"/")}function h(e,t,r){if("string"!=typeof e)throw new Error("msg must be a string");var n={continue:!1,code:1,prefix:u.currentCmd+": ",silent:!1};"number"==typeof t&&f(r)?r.code=t:f(t)?r=t:"number"==typeof t?r={code:t}:"number"!=typeof t&&(r={}),r=Object.assign({},n,r),u.errorCode||(u.errorCode=r.code);var o=d(r.prefix+e);if(u.error=u.error?u.error+"\n":"",u.error+=o,l.fatal)throw new Error(o);if(e.length>0&&!r.silent&&p(o),!r.continue)throw{msg:"earlyExit",retValue:new m("",u.error,u.errorCode)}}function m(e,t,r){var n;return e instanceof Array?((n=e).stdout=e.join("\n"),e.length>0&&(n.stdout+="\n")):(n=new String(e)).stdout=e,n.stderr=t,n.code=r,E.forEach((function(e){n[e]=s[e].bind(n)})),n}function g(e,t,r){if("string"!=typeof e&&!f(e))throw new Error("options must be strings or key-value pairs");if(!f(t))throw new Error("parseOptions() internal error: map must be an object");if(r&&!f(r))throw new Error("parseOptions() internal error: errorOptions must be object");if("--"===e)return{};var n={};if(Object.keys(t).forEach((function(e){var r=t[e];"!"!==r[0]&&(n[r]=!1)})),""===e)return n;if("string"==typeof e){if("-"!==e[0])throw new Error("Options string must start with a '-'");e.slice(1).split("").forEach((function(e){if(e in t){var o=t[e];"!"===o[0]?n[o.slice(1)]=!1:n[o]=!0}else h("option not recognized: "+e,r||{})}))}else Object.keys(e).forEach((function(o){var i=o[1];if(i in t){var s=t[i];n[s]=e[o]}else h("option not recognized: "+i,r||{})}));return n}function y(e){if(!Array.isArray(e))throw new TypeError("must be an array");var t=[];return e.forEach((function(e){if("string"!=typeof e)t.push(e);else{var r;try{r=(r=o.sync(e,l.globOptions)).length>0?r:[e]}catch(t){r=[e]}t=t.concat(r)}})),t}vc.state=u,delete process.env.OLDPWD,vc.isObject=f,vc.log=p,vc.convertErrorOutput=d,vc.error=h,vc.ShellString=m,vc.parseOptions=g,vc.expand=y;var b="function"==typeof Buffer.alloc?function(e){return Buffer.alloc(e||l.bufLength)}:function(e){return new Buffer(e||l.bufLength)};function v(e,t,n){return n=n||{},function(){var o=null;u.currentCmd=e,u.error=null,u.errorCode=0;try{var i=[].slice.call(arguments,0);if(l.verbose&&console.error.apply(console,[e].concat(i)),u.pipedValue=this&&"string"==typeof this.stdout?this.stdout:"",!1===n.unix)o=t.apply(this,i);else{f(i[0])&&"Object"===i[0].constructor.name||(0===i.length||"string"!=typeof i[0]||i[0].length<=1||"-"!==i[0][0])&&i.unshift(""),i=(i=i.reduce((function(e,t){return Array.isArray(t)?e.concat(t):(e.push(t),e)}),[])).map((function(e){return f(e)&&"String"===e.constructor.name?e.toString():e}));var s=r.homedir();i=i.map((function(e){return"string"==typeof e&&"~/"===e.slice(0,2)||"~"===e?e.replace(/^~/,s):e})),l.noglob||!0!==n.allowGlobbing||(i=i.slice(0,n.globStart).concat(y(i.slice(n.globStart))));try{f(n.cmdOptions)&&(i[0]=g(i[0],n.cmdOptions)),o=t.apply(this,i)}catch(e){if("earlyExit"!==e.msg)throw e;o=e.retValue}}}catch(e){if(!u.error)throw e.name="ShellJSInternalError",e;if(l.fatal)throw e}return n.wrapOutput&&("string"==typeof o||Array.isArray(o))&&(o=new m(o,u.error,u.errorCode)),u.currentCmd="shell.js",o}}vc.buffer=b,vc.unlinkSync=function(e){try{n.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;n.chmodSync(e,"0666"),n.unlinkSync(e)}},vc.statFollowLinks=function(){return n.statSync.apply(n,arguments)},vc.statNoFollowLinks=function(){return n.lstatSync.apply(n,arguments)},vc.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var r="",n=0;n<t;n++)r+=e(1);return r}(20)},vc.wrap=v,vc.readFromPipe=function(){return u.pipedValue};var w={allowGlobbing:!0,canReceivePipe:!1,cmdOptions:null,globStart:1,pipeOnly:!1,wrapOutput:!0,unix:!0},E=[];return vc.register=function(e,t,r){if(r=r||{},Object.keys(r).forEach((function(e){if(!w.hasOwnProperty(e))throw new Error("Unknown option '"+e+"'");if(typeof r[e]!=typeof w[e])throw new TypeError("Unsupported type '"+typeof r[e]+"' for option '"+e+"'")})),r=Object.assign({},w,r),i.hasOwnProperty(e))throw new Error("Command `"+e+"` already exists");r.pipeOnly?(r.canReceivePipe=!0,s[e]=v(e,t,r)):i[e]=v(e,t,r),r.canReceivePipe&&E.push(e)},vc}function vl(){if(al)return sl;al=1;var e=bl(),r=t;function n(t,n){var i=e.readFromPipe();return n||i||e.error("no paths given"),(n=[].slice.call(arguments,1)).forEach((function(t){r.existsSync(t)?e.statFollowLinks(t).isDirectory()&&e.error(t+": Is a directory"):e.error("no such file or directory: "+t),i+=r.readFileSync(t,"utf8")})),t.number&&(i=function(e){var t=e.split("\n"),r=t.pop();t=t.map((function(e,t){return o(t+1,e)})),r.length&&(r=o(t.length+1,r));return t.push(r),t.join("\n")}(i)),i}function o(e,t){return(" "+e).slice(-6)+"\t"+t}return e.register("cat",n,{canReceivePipe:!0,cmdOptions:{n:"number"}}),sl=n}function wl(){if(ll)return cl;ll=1;var t=e,r=bl();function n(e,n){n||(n=t.homedir()),"-"===n&&(process.env.OLDPWD?n=process.env.OLDPWD:r.error("could not find previous directory"));try{var o=process.cwd();process.chdir(n),process.env.OLDPWD=o}catch(e){var i;try{r.statFollowLinks(n),i="not a directory: "+n}catch(e){i="no such file or directory: "+n}i&&r.error(i)}return""}return r.register("cd",n,{}),cl=n}function El(){if(fl)return ul;fl=1;var e,n=bl(),o=t,i=r,s={OTHER_EXEC:(e={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:e.WRITE,OTHER_READ:e.READ,GROUP_EXEC:e.EXEC<<3,GROUP_WRITE:e.WRITE<<3,GROUP_READ:e.READ<<3,OWNER_EXEC:e.EXEC<<6,OWNER_WRITE:e.WRITE<<6,OWNER_READ:e.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};function a(e,t,r){var a;return r||(e.length>0&&"-"===e.charAt(0)?[].unshift.call(arguments,""):n.error("You must specify a file.")),e=n.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"}),r=[].slice.call(arguments,2),e.recursive?(a=[],r.forEach((function e(t){var r=n.statNoFollowLinks(t);r.isSymbolicLink()||(a.push(t),r.isDirectory()&&o.readdirSync(t).forEach((function(r){e(t+"/"+r)})))}))):a=r,a.forEach((function(r){if(r=i.resolve(r),o.existsSync(r)||n.error("File not found: "+r),!e.recursive||!n.statNoFollowLinks(r).isSymbolicLink()){var a=n.statFollowLinks(r),c=a.isDirectory(),l=a.mode,u=l&s.TYPE_MASK,f=l;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var i=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(i){var a=i[1],p=i[2],d=i[3],h=-1!==a.indexOf("u")||"a"===a||""===a,m=-1!==a.indexOf("g")||"a"===a||""===a,g=-1!==a.indexOf("o")||"a"===a||""===a,y=-1!==d.indexOf("r"),b=-1!==d.indexOf("w"),v=-1!==d.indexOf("x"),w=-1!==d.indexOf("X"),E=-1!==d.indexOf("t"),S=-1!==d.indexOf("s");w&&c&&(v=!0);var O=0;switch(h&&(O|=(y?s.OWNER_READ:0)+(b?s.OWNER_WRITE:0)+(v?s.OWNER_EXEC:0)+(S?s.SETUID:0)),m&&(O|=(y?s.GROUP_READ:0)+(b?s.GROUP_WRITE:0)+(v?s.GROUP_EXEC:0)+(S?s.SETGID:0)),g&&(O|=(y?s.OTHER_READ:0)+(b?s.OTHER_WRITE:0)+(v?s.OTHER_EXEC:0)),E&&(O|=s.STICKY),p){case"+":f|=O;break;case"-":f&=~O;break;case"=":f=u+O,n.statFollowLinks(r).isDirectory()&&(f|=s.SETUID+s.SETGID&l);break;default:n.error("Could not recognize operator: `"+p+"`")}e.verbose&&console.log(r+" -> "+f.toString(8)),l!==f&&(!e.verbose&&e.changes&&console.log(r+" -> "+f.toString(8)),o.chmodSync(r,f),l=f)}else n.error("Invalid symbolic mode change: "+t)})):(f=u+parseInt(t,8),n.statFollowLinks(r).isDirectory()&&(f|=s.SETUID+s.SETGID&l),o.chmodSync(r,f))}})),""}return n.register("chmod",a,{}),ul=a}function Sl(){if(dl)return pl;dl=1;var e=t,n=r,o=bl();function i(t,r,n){e.existsSync(t)||o.error("copyFileSync: no such file or directory: "+t);var i="win32"===process.platform;try{if(n.update&&o.statFollowLinks(t).mtime<e.statSync(r).mtime)return}catch(e){}if(o.statNoFollowLinks(t).isSymbolicLink()&&!n.followsymlink){try{o.statNoFollowLinks(r),o.unlinkSync(r)}catch(e){}var s=e.readlinkSync(t);e.symlinkSync(s,r,i?"junction":null)}else{var a=o.buffer(),c=a.length,l=c,u=0,f=null,p=null;try{f=e.openSync(t,"r")}catch(e){o.error("copyFileSync: could not read src file ("+t+")")}try{p=e.openSync(r,"w")}catch(e){o.error("copyFileSync: could not write to dest file (code="+e.code+"):"+r)}for(;l===c;)l=e.readSync(f,a,0,c,u),e.writeSync(p,a,0,l),u+=l;e.closeSync(f),e.closeSync(p),e.chmodSync(r,o.statFollowLinks(t).mode)}}function s(t,r,n,c){if(c||(c={}),!(n>=o.config.maxdepth)){n++;var l="win32"===process.platform;try{e.mkdirSync(r)}catch(e){if("EEXIST"!==e.code)throw e}for(var u=e.readdirSync(t),f=0;f<u.length;f++){var p,d=t+"/"+u[f],h=r+"/"+u[f],m=o.statNoFollowLinks(d);if(c.followsymlink&&a(t,d))console.error("Cycle link found."),p=e.readlinkSync(d),e.symlinkSync(p,h,l?"junction":null);else if(m.isDirectory())s(d,h,n,c);else if(m.isSymbolicLink()&&!c.followsymlink){p=e.readlinkSync(d);try{o.statNoFollowLinks(h),o.unlinkSync(h)}catch(e){}e.symlinkSync(p,h,l?"junction":null)}else m.isSymbolicLink()&&c.followsymlink?(m=o.statFollowLinks(d)).isDirectory()?s(d,h,n,c):i(d,h,c):e.existsSync(h)&&c.no_force?o.log("skipping existing file: "+u[f]):i(d,h,c)}var g=o.statFollowLinks(t);e.chmodSync(r,g.mode)}}function a(t,r){if(o.statNoFollowLinks(r).isSymbolicLink()&&o.statFollowLinks(r).isDirectory()){var n=e.realpathSync(t),i=e.realpathSync(r);if(new RegExp(i).test(n))return!0}return!1}function c(t,r,a){t.followsymlink&&(t.noFollowsymlink=!1),t.recursive||t.noFollowsymlink||(t.followsymlink=!0),arguments.length<3?o.error("missing <source> and/or <dest>"):(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]);var c=e.existsSync(a),l=c&&o.statFollowLinks(a);return c&&l.isDirectory()||!(r.length>1)||o.error("dest is not a directory (too many sources)"),c&&l.isFile()&&t.no_force?new o.ShellString("","",0):(r.forEach((function(c,u){if(!e.existsSync(c))return""===c&&(c="''"),void o.error("no such file or directory: "+c,{continue:!0});var f=o.statFollowLinks(c);if(!t.noFollowsymlink&&f.isDirectory())if(t.recursive){var p=l&&l.isDirectory()?n.join(a,n.basename(c)):a;try{o.statFollowLinks(n.dirname(a)),s(c,p,0,{no_force:t.no_force,followsymlink:t.followsymlink})}catch(e){o.error("cannot create directory '"+a+"': No such file or directory")}}else o.error("omitting directory '"+c+"'",{continue:!0});else{var d=a;l&&l.isDirectory()&&(d=n.normalize(a+"/"+n.basename(c)));var h=e.existsSync(d);if(h&&function(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}(r,u))return void(t.no_force||o.error("will not overwrite just-created '"+d+"' with '"+c+"'",{continue:!0}));if(h&&t.no_force)return;if(""===n.relative(c,d))return void o.error("'"+d+"' and '"+c+"' are the same file",{continue:!0});i(c,d,t)}})),new o.ShellString("",o.state.error,o.state.errorCode))}return o.register("cp",c,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:!1}),pl=c}var Ol,Il,Tl,jl,xl,Rl={};function Al(){if(Ol)return Rl;Ol=1;var e=bl(),t=wl(),n=r;e.register("dirs",u,{wrapOutput:!1}),e.register("pushd",c,{wrapOutput:!1}),e.register("popd",l,{wrapOutput:!1});var o=[];function i(e){return/^[\-+]\d+$/.test(e)}function s(t){if(i(t)){if(Math.abs(t)<o.length+1)return/^-/.test(t)?Number(t)-1:Number(t);e.error(t+": directory stack index out of range")}else e.error(t+": invalid number")}function a(){return[process.cwd()].concat(o)}function c(r,c){i(r)&&(c=r,r=""),r=e.parseOptions(r,{n:"no-cd",q:"quiet"});var l=a();if("+0"===c)return l;if(c)if(i(c)){var f=s(c);l=l.slice(f).concat(l.slice(0,f))}else r["no-cd"]?l.splice(1,0,c):l.unshift(c);else{if(!(l.length>1))return e.error("no other directory");l=l.splice(1,1).concat(l)}return r["no-cd"]?l=l.slice(1):(c=n.resolve(l.shift()),t("",c)),o=l,u(r.quiet?"-q":"")}function l(r,a){if(i(r)&&(a=r,r=""),r=e.parseOptions(r,{n:"no-cd",q:"quiet"}),!o.length)return e.error("directory stack empty");if(a=s(a||"+0"),r["no-cd"]||a>0||o.length+a===0)a=a>0?a-1:a,o.splice(a,1);else{var c=n.resolve(o.shift());t("",c)}return u(r.quiet?"-q":"")}function u(t,r){if(i(t)&&(r=t,t=""),(t=e.parseOptions(t,{c:"clear",q:"quiet"})).clear)return o=[];var n=a();return r?((r=s(r))<0&&(r=n.length+r),t.quiet||e.log(n[r]),n[r]):(t.quiet||e.log(n.join(" ")),n)}return Rl.pushd=c,Rl.popd=l,Rl.dirs=u,Rl}function Dl(){if(Tl)return Il;Tl=1;var e=i.format,t=bl();function r(r){var n=[].slice.call(arguments,r?0:1),o={};try{o=t.parseOptions(n[0],{e:"escapes",n:"no_newline"},{silent:!0}),n[0]&&n.shift()}catch(e){t.state.error=null}var i=e.apply(null,n);return o.no_newline||(i+="\n"),process.stdout.write(i),i}return t.register("echo",r,{allowGlobbing:!1}),Il=r}function Nl(){if(xl)return jl;xl=1;var e=bl();return jl=function(){return e.state.error}}var Ll,kl={exports:{}};function Cl(){return Ll||(Ll=1,function(e){if(require.main!==e)throw new Error("This file should not be required");var r=s,n=t,o=process.argv[2],i=n.readFileSync(o,"utf8"),a=JSON.parse(i),c=a.command,l=a.execOptions,u=a.pipe,f=a.stdoutFile,p=a.stderrFile,d=r.exec(c,l,(function(e){e?void 0===e.code?process.exitCode=1:process.exitCode=e.code:process.exitCode=0})),h=n.createWriteStream(f),m=n.createWriteStream(p);d.stdout.pipe(h),d.stderr.pipe(m),d.stdout.pipe(process.stdout),d.stderr.pipe(process.stderr),u&&d.stdin.end(u)}(kl)),kl.exports}kl.exports;var Pl,Ml,_l,$l,Bl,Fl,Ul,Gl,Wl,zl,Vl,Hl,Xl,ql,Kl,Yl,Ql,Jl,Zl,eu,tu,ru={};function nu(){if(Pl)return ru;Pl=1;var r,n=bl(),o=e,i=t;function s(e){if(!e||!i.existsSync(e))return!1;if(!n.statFollowLinks(e).isDirectory())return!1;var t=e+"/"+n.randomFileName();try{return i.writeFileSync(t," "),n.unlinkSync(t),e}catch(e){return!1}}function a(){return r||(r=s(o.tmpdir())||s(process.env.TMPDIR)||s(process.env.TEMP)||s(process.env.TMP)||s(process.env.Wimp$ScrapDir)||s("C:\\TEMP")||s("C:\\TMP")||s("\\TEMP")||s("\\TMP")||s("/tmp")||s("/var/tmp")||s("/usr/tmp")||s("."))}return n.register("tempdir",a,{allowGlobbing:!1,wrapOutput:!1}),ru.tempDir=a,ru.isCached=function(){return r},ru.clearCache=function(){r=void 0},ru}function ou(){if(_l)return Ml;_l=1;var e=r;function t(){return e.resolve(process.cwd())}return bl().register("pwd",t,{allowGlobbing:!1}),Ml=t}function iu(){if(Bl)return $l;Bl=1;var e=bl(),n=nu().tempDir,o=ou(),i=r,a=t,c=s,l=20971520,u=1;function f(t,r,s){r=r||{},t||e.error("must specify command");var f=e.readFromPipe();return"function"==typeof r&&(s=r,r={async:!0}),"object"==typeof r&&"function"==typeof s&&(r.async=!0),(r=e.extend({silent:e.config.silent,async:!1},r)).async?function(t,r,n,i){r=e.extend({silent:e.config.silent,cwd:o().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},r);var s=c.exec(t,r,(function(e,t,r){i&&(e?void 0===e.code?i(1,t,r):i(e.code,t,r):i(0,t,r))}));return n&&s.stdin.end(n),r.silent||(s.stdout.pipe(process.stdout),s.stderr.pipe(process.stderr)),s}(t,r,f,s):function(t,r,s){e.config.execPath||e.error("Unable to find a path to the node binary. Please manually set config.execPath");var f=n(),p=i.resolve(f+"/"+e.randomFileName()),d=i.resolve(f+"/"+e.randomFileName()),h=i.resolve(f+"/"+e.randomFileName());r=e.extend({silent:e.config.silent,cwd:o().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},r),a.existsSync(p)&&e.unlinkSync(p),a.existsSync(d)&&e.unlinkSync(d),a.existsSync(h)&&e.unlinkSync(h),r.cwd=i.resolve(r.cwd);var m={command:t,execOptions:r,pipe:s,stdoutFile:h,stderrFile:d};function g(e,t){a.writeFileSync(e,t,{encoding:"utf8",mode:parseInt("600",8)})}g(h,""),g(d,""),g(p,JSON.stringify(m));var y=[i.join(__dirname,"exec-child.js"),p];r.silent?r.stdio="ignore":r.stdio=[0,1,2];var b=0;try{delete r.shell,c.execFileSync(e.config.execPath,y,r)}catch(e){b=e.status||u}var v="",w="";"buffer"===r.encoding?(v=a.readFileSync(h),w=a.readFileSync(d)):(v=a.readFileSync(h,r.encoding),w=a.readFileSync(d,r.encoding));try{e.unlinkSync(p)}catch(e){}try{e.unlinkSync(d)}catch(e){}try{e.unlinkSync(h)}catch(e){}return 0!==b&&e.error(w,b,{continue:!0,silent:!0}),e.ShellString(v,w,b)}(t,r,f)}return e.register("exec",f,{unix:!1,canReceivePipe:!0,wrapOutput:!1}),$l=f}function su(){if(Ul)return Fl;Ul=1;var e=r,n=t,o=bl(),i=yl(),s=e.sep+"**";function a(t,r){t.all_deprecated&&(o.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),r=r?[].slice.call(arguments,1):["."];var a=[];function c(e,r,n){var i,s;"win32"===process.platform&&(r=r.replace(/\\/g,"/")),t.long?(n=n||(t.link?o.statFollowLinks(e):o.statNoFollowLinks(e)),a.push((i=r,(s=n).name=i,s.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")},s))):a.push(r)}return r.forEach((function(r){var a;try{if((a=t.link?o.statFollowLinks(r):o.statNoFollowLinks(r)).isSymbolicLink())try{var l=o.statFollowLinks(r);l.isDirectory()&&(a=l)}catch(e){}}catch(e){return void o.error("no such file or directory: "+r,2,{continue:!0})}a.isDirectory()&&!t.directory?t.recursive?i.sync(r+s,{dot:t.all,follow:t.link}).forEach((function(t){e.relative(r,t)&&c(t,e.relative(r,t))})):t.all?n.readdirSync(r).forEach((function(t){c(e.join(r,t),t)})):n.readdirSync(r).forEach((function(t){"."!==t[0]&&c(e.join(r,t),t)})):c(r,r,a)})),a}return o.register("ls",a,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}}),Fl=a}function au(){if(Wl)return Gl;Wl=1;var e=r,t=bl(),n=su();function o(r,o){o?"string"==typeof o&&(o=[].slice.call(arguments,1)):t.error("no path specified");var i=[];function s(e){"win32"===process.platform&&(e=e.replace(/\\/g,"/")),i.push(e)}return o.forEach((function(r){var o;try{o=t.statFollowLinks(r)}catch(e){t.error("no such file or directory: "+r)}s(r),o.isDirectory()&&n({recursive:!0,all:!0},r).forEach((function(t){s(e.join(r,t))}))})),i}return t.register("find",o,{}),Gl=o}function cu(){if(Vl)return zl;Vl=1;var e=bl(),r=t;function n(t,n,o){var i=e.readFromPipe();o||i||e.error("no paths given",2),o=[].slice.call(arguments,2),i&&o.unshift("-");var s=[];return t.ignoreCase&&(n=new RegExp(n,"i")),o.forEach((function(o){if(r.existsSync(o)||"-"===o){var a="-"===o?i:r.readFileSync(o,"utf8");if(t.nameOnly)a.match(n)&&s.push(o);else a.split("\n").forEach((function(e){var r=e.match(n);(t.inverse&&!r||!t.inverse&&r)&&s.push(e)}))}else e.error("no such file or directory: "+o,2,{continue:!0})})),s.join("\n")+"\n"}return e.register("grep",n,{globStart:2,canReceivePipe:!0,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase"}}),zl=n}function lu(){if(Xl)return Hl;Xl=1;var e=bl(),r=t;function n(t,n){var o=[],i=e.readFromPipe();n||i||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),n=[].slice.call(arguments,s),i&&n.unshift("-");var a=!1;return n.forEach((function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s;s="-"===n?i:t.numLines<0?r.readFileSync(n,"utf8"):function(t,n){for(var o=e.buffer(),i=o.length,s=i,a=0,c=r.openSync(t,"r"),l=0,u="";s===i&&l<n;){s=r.readSync(c,o,0,i,a);var f=o.toString("utf8",0,s);l+=f.split("\n").length-1,u+=f,a+=s}return r.closeSync(c),u}(n,t.numLines);var c=s.split("\n"),l=""===c[c.length-1];l&&c.pop(),a=l||t.numLines<c.length,o=o.concat(c.slice(0,t.numLines))})),a&&o.push(""),o.join("\n")}return e.register("head",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),Hl=n}function uu(){if(Kl)return ql;Kl=1;var e=t,n=r,o=bl();function i(t,r,i){r&&i||o.error("Missing <source> and/or <dest>"),r=String(r);var s=n.normalize(r).replace(RegExp(n.sep+"$"),""),a=n.resolve(r)===s;if(i=n.resolve(process.cwd(),String(i)),e.existsSync(i)&&(t.force||o.error("Destination file exists",{continue:!0}),e.unlinkSync(i)),t.symlink){var c="win32"===process.platform,l=c?"file":null,u=a?s:n.resolve(process.cwd(),n.dirname(i),r);e.existsSync(u)?c&&o.statFollowLinks(u).isDirectory()&&(l="junction"):o.error("Source file does not exist",{continue:!0});try{e.symlinkSync("junction"===l?u:r,i,l)}catch(e){o.error(e.message)}}else{e.existsSync(r)||o.error("Source file does not exist",{continue:!0});try{e.linkSync(r,i)}catch(e){o.error(e.message)}}return""}return o.register("ln",i,{cmdOptions:{s:"symlink",f:"force"}}),ql=i}function fu(){if(Ql)return Yl;Ql=1;var e=bl(),n=t,o=r;function i(t){var r=o.dirname(t);r===t&&e.error("dirname() failed: ["+t+"]"),n.existsSync(r)||i(r),n.mkdirSync(t,parseInt("0777",8))}function s(t,r){return r||e.error("no paths given"),"string"==typeof r&&(r=[].slice.call(arguments,1)),r.forEach((function(r){try{var s=e.statNoFollowLinks(r);return void(t.fullpath?s.isFile()&&e.error("cannot create directory "+r+": File exists",{continue:!0}):e.error("path already exists: "+r,{continue:!0}))}catch(e){}var a=o.dirname(r);if(n.existsSync(a)||t.fullpath)try{t.fullpath?i(o.resolve(r)):n.mkdirSync(r,parseInt("0777",8))}catch(t){var c;if("EACCES"===t.code)c="Permission denied";else{if("ENOTDIR"!==t.code&&"ENOENT"!==t.code)throw t;c="Not a directory"}e.error("cannot create directory "+r+": "+c,{continue:!0})}else e.error("no such file or directory: "+a,{continue:!0})})),""}return e.register("mkdir",s,{cmdOptions:{p:"fullpath"}}),Yl=s}function pu(){if(Zl)return Jl;Zl=1;var e=bl(),r=t;function n(t,i,s){var a;a=r.readdirSync(t);for(var c=0;c<a.length;c++){var l=t+"/"+a[c];if(e.statNoFollowLinks(l).isDirectory())n(l,i);else if(i||o(l))try{e.unlinkSync(l)}catch(t){e.error("could not remove file (code "+t.code+"): "+l,{continue:!0})}}if(!s){var u;try{for(var f=Date.now();;)try{if(u=r.rmdirSync(t),r.existsSync(t))throw{code:"EAGAIN"};break}catch(e){if("win32"!==process.platform||"ENOTEMPTY"!==e.code&&"EBUSY"!==e.code&&"EPERM"!==e.code&&"EAGAIN"!==e.code){if("ENOENT"===e.code)break;throw e}if(Date.now()-f>1e3)throw e}}catch(r){e.error("could not remove directory (code "+r.code+"): "+t,{continue:!0})}return u}}function o(e){var t=!0;try{var n=r.openSync(e,"a");r.closeSync(n)}catch(e){t=!1}return t}function i(t,r){return r||e.error("no paths given"),(r=[].slice.call(arguments,1)).forEach((function(r){var i;try{var s="/"===r[r.length-1]?r.slice(0,-1):r;i=e.statNoFollowLinks(s)}catch(n){return void(t.force||e.error("no such file or directory: "+r,{continue:!0}))}i.isFile()?function(t,r){r.force||o(t)?e.unlinkSync(t):e.error("permission denied: "+t,{continue:!0})}(r,t):i.isDirectory()?function(t,r){r.recursive?n(t,r.force):e.error("path is a directory",{continue:!0})}(r,t):i.isSymbolicLink()?function(t,r){var o;try{o=e.statFollowLinks(t)}catch(r){return void e.unlinkSync(t)}o.isFile()?e.unlinkSync(t):o.isDirectory()&&("/"===t[t.length-1]?r.recursive?n(t,r.force,!0):e.error("path is a directory",{continue:!0}):e.unlinkSync(t))}(r,t):i.isFIFO()&&function(t){e.unlinkSync(t)}(r)})),""}return e.register("rm",i,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}}),Jl=i}function du(){if(tu)return eu;tu=1;var e=t,n=r,o=bl(),i=Sl(),s=pu();function a(t,r,a){arguments.length<3?o.error("missing <source> and/or <dest>"):arguments.length>3?(r=[].slice.call(arguments,1,arguments.length-1),a=arguments[arguments.length-1]):"string"==typeof r?r=[r]:o.error("invalid arguments");var c=e.existsSync(a),l=c&&o.statFollowLinks(a);return c&&l.isDirectory()||!(r.length>1)||o.error("dest is not a directory (too many sources)"),c&&l.isFile()&&t.no_force&&o.error("dest file already exists: "+a),r.forEach((function(c,l){if(e.existsSync(c)){var u=a;if(e.existsSync(a)&&o.statFollowLinks(a).isDirectory()&&(u=n.normalize(a+"/"+n.basename(c))),e.existsSync(u)&&function(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}(r,l))t.no_force||o.error("will not overwrite just-created '"+u+"' with '"+c+"'",{continue:!0});else if(e.existsSync(u)&&t.no_force)o.error("dest file already exists: "+u,{continue:!0});else if(n.resolve(c)!==n.dirname(n.resolve(u)))try{e.renameSync(c,u)}catch(e){"EXDEV"===e.code&&(i("-r",c,u),s("-rf",c))}else o.error("cannot move to self: "+c,{continue:!0})}else o.error("no such file or directory: "+c,{continue:!0})})),""}return o.register("mv",a,{cmdOptions:{f:"!no_force",n:"no_force"}}),eu=a}var hu,mu={};function gu(){return hu||(hu=1),mu}var yu,bu,vu,wu,Eu,Su,Ou,Iu,Tu,ju,xu,Ru,Au,Du,Nu,Lu,ku,Cu,Pu,Mu,_u,$u,Bu={};function Fu(){return yu||(yu=1),Bu}function Uu(){if(vu)return bu;vu=1;var e=bl(),r=t;function n(t,n,o,i){var s=e.readFromPipe();"string"!=typeof o&&"function"!=typeof o&&("number"==typeof o?o=o.toString():e.error("invalid replacement string")),"string"==typeof n&&(n=RegExp(n)),i||s||e.error("no files given"),i=[].slice.call(arguments,3),s&&i.unshift("-");var a=[];return i.forEach((function(i){if(r.existsSync(i)||"-"===i){var c=("-"===i?s:r.readFileSync(i,"utf8")).split("\n").map((function(e){return e.replace(n,o)})).join("\n");a.push(c),t.inplace&&r.writeFileSync(i,c,"utf8")}else e.error("no such file or directory: "+i,2,{continue:!0})})),a.join("\n")}return e.register("sed",n,{globStart:3,canReceivePipe:!0,cmdOptions:{i:"inplace"}}),bu=n}function Gu(){if(Eu)return wu;Eu=1;var e=bl();function t(t){if(!t){var r=[].slice.call(arguments,0);r.length<2&&e.error("must provide an argument"),t=r[1]}var n="+"===t[0];n&&(t="-"+t.slice(1)),t=e.parseOptions(t,{e:"fatal",v:"verbose",f:"noglob"}),n&&Object.keys(t).forEach((function(e){t[e]=!t[e]})),Object.keys(t).forEach((function(r){n!==t[r]&&(e.config[r]=t[r])}))}return e.register("set",t,{allowGlobbing:!1,wrapOutput:!1}),wu=t}function Wu(){if(Ou)return Su;Ou=1;var e=bl(),r=t;function n(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function o(e,t){var r=e.toLowerCase(),n=t.toLowerCase();return r===n?-1*e.localeCompare(t):r.localeCompare(n)}function i(e,t){var r=n(e),i=n(t);return r.hasOwnProperty("num")&&i.hasOwnProperty("num")&&r.num!==i.num?r.num-i.num:o(r.value,i.value)}function s(t,n){var s=e.readFromPipe();n||s||e.error("no files given"),n=[].slice.call(arguments,1),s&&n.unshift("-");var a=n.reduce((function(t,n){if("-"!==n){if(!r.existsSync(n))return e.error("no such file or directory: "+n,{continue:!0}),t;if(e.statFollowLinks(n).isDirectory())return e.error("read failed: "+n+": Is a directory",{continue:!0}),t}var o="-"===n?s:r.readFileSync(n,"utf8");return t.concat(o.trimRight().split("\n"))}),[]).sort(t.numerical?i:o);return t.reverse&&(a=a.reverse()),a.join("\n")+"\n"}return e.register("sort",s,{canReceivePipe:!0,cmdOptions:{r:"reverse",n:"numerical"}}),Su=s}function zu(){if(Tu)return Iu;Tu=1;var e=bl(),r=t;function n(t,n){var o=[],i=e.readFromPipe();n||i||e.error("no paths given");var s=1;!0===t.numLines?(s=2,t.numLines=Number(arguments[1])):!1===t.numLines&&(t.numLines=10),t.numLines=-1*Math.abs(t.numLines),n=[].slice.call(arguments,s),i&&n.unshift("-");var a=!1;return n.forEach((function(n){if("-"!==n){if(!r.existsSync(n))return void e.error("no such file or directory: "+n,{continue:!0});if(e.statFollowLinks(n).isDirectory())return void e.error("error reading '"+n+"': Is a directory",{continue:!0})}var s=("-"===n?i:r.readFileSync(n,"utf8")).split("\n");""===s[s.length-1]?(s.pop(),a=!0):a=!1,o=o.concat(s.slice(t.numLines))})),a&&o.push(""),o.join("\n")}return e.register("tail",n,{canReceivePipe:!0,cmdOptions:{n:"numLines"}}),Iu=n}function Vu(){if(xu)return ju;xu=1;var e=bl(),r=t;function n(t,n){n||e.error("no path given");var o=!1;if(Object.keys(t).forEach((function(e){!0===t[e]&&(o=!0)})),o||e.error("could not interpret expression"),t.link)try{return e.statNoFollowLinks(n).isSymbolicLink()}catch(e){return!1}if(!r.existsSync(n))return!1;if(t.exists)return!0;var i=e.statFollowLinks(n);return t.block?i.isBlockDevice():t.character?i.isCharacterDevice():t.directory?i.isDirectory():t.file?i.isFile():t.pipe?i.isFIFO():!!t.socket&&i.isSocket()}return e.register("test",n,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:!1,allowGlobbing:!1}),ju=n}function Hu(){if(Au)return Ru;Au=1;var e=bl(),n=t,o=r;function i(t,r){r||e.error("wrong arguments"),n.existsSync(o.dirname(r))||e.error("no such file or directory: "+o.dirname(r));try{return n.writeFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not write to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("to",i,{pipeOnly:!0,wrapOutput:!1}),Ru=i}function Xu(){if(Nu)return Du;Nu=1;var e=bl(),n=t,o=r;function i(t,r){r||e.error("wrong arguments"),n.existsSync(o.dirname(r))||e.error("no such file or directory: "+o.dirname(r));try{return n.appendFileSync(r,this.stdout||this.toString(),"utf8"),this}catch(t){e.error("could not append to file (code "+t.code+"): "+r,{continue:!0})}}return e.register("toEnd",i,{pipeOnly:!0,wrapOutput:!1}),Du=i}function qu(){if(ku)return Lu;ku=1;var e=bl(),r=t;function n(t,n){return n?"string"==typeof n?n=[].slice.call(arguments,1):e.error("file arg should be a string file path or an Array of string file paths"):e.error("no files given"),n.forEach((function(n){!function(t,n){var i=o(n);if(i&&i.isDirectory())return;if(!i&&t.no_create)return;r.closeSync(r.openSync(n,"a"));var s=new Date,a=t.date||s,c=t.date||s;if(t.reference){var l=o(t.reference);l||e.error("failed to get attributess of "+t.reference),a=l.mtime,c=l.atime}else t.date&&(a=t.date,c=t.date);t.atime_only&&t.mtime_only||(t.atime_only?a=i.mtime:t.mtime_only&&(c=i.atime));r.utimesSync(n,c,a)}(t,n)})),""}function o(t){try{return e.statFollowLinks(t)}catch(e){return null}}return e.register("touch",n,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}}),Lu=n}function Ku(){if(Pu)return Cu;Pu=1;var e=bl(),r=t;function n(t,n,o){var i=e.readFromPipe();i||(n||e.error("no input given"),r.existsSync(n)?e.statFollowLinks(n).isDirectory()&&e.error("error reading '"+n+"'"):e.error(n+": No such file or directory")),o&&r.existsSync(o)&&e.statFollowLinks(o).isDirectory()&&e.error(o+": Is a directory");var s=(n?r.readFileSync(n,"utf8"):i).trimRight().split("\n"),a=s.reduceRight((function(e,r){return 0===e.length?[{count:1,ln:r}]:0===function(e,r){return t.ignoreCase?e.toLocaleLowerCase().localeCompare(r.toLocaleLowerCase()):e.localeCompare(r)}(e[0].ln,r)?[{count:e[0].count+1,ln:r}].concat(e.slice(1)):[{count:1,ln:r}].concat(e)}),[]).filter((function(e){return!t.duplicates||e.count>1})).map((function(e){return(t.count?function(e,t){var r=""+t;return r.length<e&&(r=Array(e-r.length+1).join(" ")+r),r}(7,e.count)+" ":"")+e.ln})).join("\n")+"\n";return o?(new e.ShellString(a).to(o),""):a}return e.register("uniq",n,{canReceivePipe:!0,cmdOptions:{i:"ignoreCase",c:"count",d:"duplicates"}}),Cu=n}function Yu(){if(_u)return Mu;_u=1;var e=bl(),n=t,o=r;e.register("which",u,{allowGlobbing:!1,cmdOptions:{a:"all"}});var i=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh",s=1;function a(){return"win32"===process.platform}function c(e){return e?e.split(o.delimiter):[]}function l(t){return n.existsSync(t)&&!e.statFollowLinks(t).isDirectory()&&(a()||function(e){try{n.accessSync(e,s)}catch(e){return!1}return!0}(t))}function u(t,r){r||e.error("must specify command");var n=a(),s=c(process.env.PATH),u=[];if(-1===r.indexOf("/")){var f=[""];if(n)f=c((process.env.PATHEXT||i).toUpperCase());for(var p=0;p<s.length&&(!(u.length>0)||t.all);p++){var d=o.resolve(s[p],r);n&&(d=d.toUpperCase());var h=d.match(/\.[^<>:"/\|?*.]+$/);if(h&&f.indexOf(h[0])>=0){if(l(d)){u.push(d);break}}else for(var m=0;m<f.length;m++){var g=d+f[m];if(l(g)){u.push(g);break}}}}else l(r)&&u.push(o.resolve(r));return u.length>0?t.all?u:u[0]:t.all?[]:null}return Mu=u}function Qu(){return $u||($u={"/node_modules/shelljs/src/cat.js":vl,"/node_modules/shelljs/src/cd.js":wl,"/node_modules/shelljs/src/chmod.js":El,"/node_modules/shelljs/src/common.js":bl,"/node_modules/shelljs/src/cp.js":Sl,"/node_modules/shelljs/src/dirs.js":Al,"/node_modules/shelljs/src/echo.js":Dl,"/node_modules/shelljs/src/error.js":Nl,"/node_modules/shelljs/src/exec-child.js":Cl,"/node_modules/shelljs/src/exec.js":iu,"/node_modules/shelljs/src/find.js":au,"/node_modules/shelljs/src/grep.js":cu,"/node_modules/shelljs/src/head.js":lu,"/node_modules/shelljs/src/ln.js":uu,"/node_modules/shelljs/src/ls.js":su,"/node_modules/shelljs/src/mkdir.js":fu,"/node_modules/shelljs/src/mv.js":du,"/node_modules/shelljs/src/popd.js":gu,"/node_modules/shelljs/src/pushd.js":Fu,"/node_modules/shelljs/src/pwd.js":ou,"/node_modules/shelljs/src/rm.js":pu,"/node_modules/shelljs/src/sed.js":Uu,"/node_modules/shelljs/src/set.js":Gu,"/node_modules/shelljs/src/sort.js":Wu,"/node_modules/shelljs/src/tail.js":zu,"/node_modules/shelljs/src/tempdir.js":nu,"/node_modules/shelljs/src/test.js":Vu,"/node_modules/shelljs/src/to.js":Hu,"/node_modules/shelljs/src/toEnd.js":Xu,"/node_modules/shelljs/src/touch.js":qu,"/node_modules/shelljs/src/uniq.js":Ku,"/node_modules/shelljs/src/which.js":Yu})}function Ju(e,t){var r,n=function(e){var t=e[0];if("/"===t||"\\"===t)return!1;var r=e[1],n=e[2];return!(!("."!==t||r&&"/"!==r&&"\\"!==r)||!("."!==t||"."!==r||n&&"/"!==n&&"\\"!==n))&&(":"!==r||"/"!==n&&"\\"!==n)}(e);"/"===(e=Zu(e))[0]&&(t="");for(var o=Qu(),i=["",".js",".json"];!(r=Zu(n?t+"/node_modules/"+e:t+"/"+e)).endsWith("/..");){for(var s=0;s<i.length;s++){var a=r+i[s];if(o[a])return a}if(!n)break;var c=Zu(t+"/..");if(c===t)break;t=c}return null}function Zu(e){for(var t=(e=e.replace(/\\/g,"/")).split("/"),r=""===t[0],n=1;n<t.length;n++)"."!==t[n]&&""!==t[n]||t.splice(n--,1);for(n=1;n<t.length;n++)".."===t[n]&&n>0&&".."!==t[n-1]&&"."!==t[n-1]&&(t.splice(--n,2),n--);return e=t.join("/"),r&&"/"!==e[0]?e="/"+e:0===e.length&&(e="."),e}var ef,tf={},rf=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"];function nf(){if(ef)return tf;ef=1;var e=bl();return rf.forEach((function(e){!function(e){function t(t){var r=Ju(t,e);if(null!==r)return Qu()[r]();throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(t){var r=Ju(t,e);return null!==r?r:require.resolve(t)},t}("/node_modules/shelljs")("./src/"+e)})),tf.exit=process.exit,tf.error=Nl(),tf.ShellString=e.ShellString,tf.env=process.env,tf.config=e.config,tf}te(rf);var of=nf(),sf=bl();Object.keys(of).forEach((function(e){ee[e]=of[e]}));var af=Hu();String.prototype.to=sf.wrap("to",af);var cf=Xu();String.prototype.toEnd=sf.wrap("toEnd",cf),ee.config.fatal=!0,ee.target={};var lf,uf=process.argv.slice(2),ff=uf.indexOf("--");ff>-1&&(lf=uf.slice(ff+1,uf.length),uf=uf.slice(0,ff)),setTimeout((function(){var e;if(1!==uf.length||"--help"!==uf[0]){for(e in ee.target)!function(e,t){ee.target[e]=function(){return t.done||(t.done=!0,t.result=t.apply(t,arguments)),t.result}}(e,ee.target[e]);uf.length>0?uf.forEach((function(e){e in ee.target?ee.target[e](lf):console.log("no such target: "+e)})):"all"in ee.target&&ee.target.all(lf)}else for(e in console.log("Available targets:"),ee.target)console.log(" "+e)}),0);var pf=ec,df=mt,hf=Nr,mf=Ls;Zo({target:"Iterator",proto:!0,real:!0},{every:function(e){hf(this),df(e);var t=mf(this),r=0;return!pf(t,(function(t,n){if(!e(t,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var gf={exports:{}};!function(e,t){var r;t=gf.exports=y,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=n-6,s=t.re=[],a=t.safeRe=[],c=t.src=[],l=t.tokens={},u=0;function f(e){l[e]=u++}var p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[p,i]];function h(e){for(var t=0;t<d.length;t++){var r=d[t][0],n=d[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}f("NUMERICIDENTIFIER"),c[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",f("NUMERICIDENTIFIERLOOSE"),c[l.NUMERICIDENTIFIERLOOSE]="\\d+",f("NONNUMERICIDENTIFIER"),c[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+p+"*",f("MAINVERSION"),c[l.MAINVERSION]="("+c[l.NUMERICIDENTIFIER]+")\\.("+c[l.NUMERICIDENTIFIER]+")\\.("+c[l.NUMERICIDENTIFIER]+")",f("MAINVERSIONLOOSE"),c[l.MAINVERSIONLOOSE]="("+c[l.NUMERICIDENTIFIERLOOSE]+")\\.("+c[l.NUMERICIDENTIFIERLOOSE]+")\\.("+c[l.NUMERICIDENTIFIERLOOSE]+")",f("PRERELEASEIDENTIFIER"),c[l.PRERELEASEIDENTIFIER]="(?:"+c[l.NUMERICIDENTIFIER]+"|"+c[l.NONNUMERICIDENTIFIER]+")",f("PRERELEASEIDENTIFIERLOOSE"),c[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+c[l.NUMERICIDENTIFIERLOOSE]+"|"+c[l.NONNUMERICIDENTIFIER]+")",f("PRERELEASE"),c[l.PRERELEASE]="(?:-("+c[l.PRERELEASEIDENTIFIER]+"(?:\\."+c[l.PRERELEASEIDENTIFIER]+")*))",f("PRERELEASELOOSE"),c[l.PRERELEASELOOSE]="(?:-?("+c[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+c[l.PRERELEASEIDENTIFIERLOOSE]+")*))",f("BUILDIDENTIFIER"),c[l.BUILDIDENTIFIER]=p+"+",f("BUILD"),c[l.BUILD]="(?:\\+("+c[l.BUILDIDENTIFIER]+"(?:\\."+c[l.BUILDIDENTIFIER]+")*))",f("FULL"),f("FULLPLAIN"),c[l.FULLPLAIN]="v?"+c[l.MAINVERSION]+c[l.PRERELEASE]+"?"+c[l.BUILD]+"?",c[l.FULL]="^"+c[l.FULLPLAIN]+"$",f("LOOSEPLAIN"),c[l.LOOSEPLAIN]="[v=\\s]*"+c[l.MAINVERSIONLOOSE]+c[l.PRERELEASELOOSE]+"?"+c[l.BUILD]+"?",f("LOOSE"),c[l.LOOSE]="^"+c[l.LOOSEPLAIN]+"$",f("GTLT"),c[l.GTLT]="((?:<|>)?=?)",f("XRANGEIDENTIFIERLOOSE"),c[l.XRANGEIDENTIFIERLOOSE]=c[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",f("XRANGEIDENTIFIER"),c[l.XRANGEIDENTIFIER]=c[l.NUMERICIDENTIFIER]+"|x|X|\\*",f("XRANGEPLAIN"),c[l.XRANGEPLAIN]="[v=\\s]*("+c[l.XRANGEIDENTIFIER]+")(?:\\.("+c[l.XRANGEIDENTIFIER]+")(?:\\.("+c[l.XRANGEIDENTIFIER]+")(?:"+c[l.PRERELEASE]+")?"+c[l.BUILD]+"?)?)?",f("XRANGEPLAINLOOSE"),c[l.XRANGEPLAINLOOSE]="[v=\\s]*("+c[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")(?:"+c[l.PRERELEASELOOSE]+")?"+c[l.BUILD]+"?)?)?",f("XRANGE"),c[l.XRANGE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAIN]+"$",f("XRANGELOOSE"),c[l.XRANGELOOSE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAINLOOSE]+"$",f("COERCE"),c[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",f("COERCERTL"),s[l.COERCERTL]=new RegExp(c[l.COERCE],"g"),a[l.COERCERTL]=new RegExp(h(c[l.COERCE]),"g"),f("LONETILDE"),c[l.LONETILDE]="(?:~>?)",f("TILDETRIM"),c[l.TILDETRIM]="(\\s*)"+c[l.LONETILDE]+"\\s+",s[l.TILDETRIM]=new RegExp(c[l.TILDETRIM],"g"),a[l.TILDETRIM]=new RegExp(h(c[l.TILDETRIM]),"g");f("TILDE"),c[l.TILDE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAIN]+"$",f("TILDELOOSE"),c[l.TILDELOOSE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAINLOOSE]+"$",f("LONECARET"),c[l.LONECARET]="(?:\\^)",f("CARETTRIM"),c[l.CARETTRIM]="(\\s*)"+c[l.LONECARET]+"\\s+",s[l.CARETTRIM]=new RegExp(c[l.CARETTRIM],"g"),a[l.CARETTRIM]=new RegExp(h(c[l.CARETTRIM]),"g");f("CARET"),c[l.CARET]="^"+c[l.LONECARET]+c[l.XRANGEPLAIN]+"$",f("CARETLOOSE"),c[l.CARETLOOSE]="^"+c[l.LONECARET]+c[l.XRANGEPLAINLOOSE]+"$",f("COMPARATORLOOSE"),c[l.COMPARATORLOOSE]="^"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+")$|^$",f("COMPARATOR"),c[l.COMPARATOR]="^"+c[l.GTLT]+"\\s*("+c[l.FULLPLAIN]+")$|^$",f("COMPARATORTRIM"),c[l.COMPARATORTRIM]="(\\s*)"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+"|"+c[l.XRANGEPLAIN]+")",s[l.COMPARATORTRIM]=new RegExp(c[l.COMPARATORTRIM],"g"),a[l.COMPARATORTRIM]=new RegExp(h(c[l.COMPARATORTRIM]),"g");f("HYPHENRANGE"),c[l.HYPHENRANGE]="^\\s*("+c[l.XRANGEPLAIN]+")\\s+-\\s+("+c[l.XRANGEPLAIN]+")\\s*$",f("HYPHENRANGELOOSE"),c[l.HYPHENRANGELOOSE]="^\\s*("+c[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+c[l.XRANGEPLAINLOOSE]+")\\s*$",f("STAR"),c[l.STAR]="(<|>)?=?\\s*\\*";for(var m=0;m<u;m++)r(m,c[m]),s[m]||(s[m]=new RegExp(c[m]),a[m]=new RegExp(h(c[m])));function g(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof y)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?a[l.LOOSE]:a[l.FULL]).test(e))return null;try{return new y(e,t)}catch(e){return null}}function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof y){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof y))return new y(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=g,t.valid=function(e,t){var r=g(e,t);return r?r.version:null},t.clean=function(e,t){var r=g(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=y,y.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},y.prototype.toString=function(){return this.version},y.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof y||(e=new y(e,this.options)),this.compareMain(e)||this.comparePre(e)},y.prototype.compareMain=function(e){return e instanceof y||(e=new y(e,this.options)),v(this.major,e.major)||v(this.minor,e.minor)||v(this.patch,e.patch)},y.prototype.comparePre=function(e){if(e instanceof y||(e=new y(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return v(n,o)}while(++t)},y.prototype.compareBuild=function(e){e instanceof y||(e=new y(e,this.options));var t=0;do{var n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return v(n,o)}while(++t)},y.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new y(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(O(e,t))return null;var r=g(e),n=g(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var i="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return o+s;return i},t.compareIdentifiers=v;var b=/^[0-9]+$/;function v(e,t){var r=b.test(e),n=b.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function w(e,t,r){return new y(e,r).compare(new y(t,r))}function E(e,t,r){return w(e,t,r)>0}function S(e,t,r){return w(e,t,r)<0}function O(e,t,r){return 0===w(e,t,r)}function I(e,t,r){return 0!==w(e,t,r)}function T(e,t,r){return w(e,t,r)>=0}function j(e,t,r){return w(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return O(e,r,n);case"!=":return I(e,r,n);case">":return E(e,r,n);case">=":return T(e,r,n);case"<":return S(e,r,n);case"<=":return j(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function R(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof R){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof R))return new R(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return v(t,e)},t.major=function(e,t){return new y(e,t).major},t.minor=function(e,t){return new y(e,t).minor},t.patch=function(e,t){return new y(e,t).patch},t.compare=w,t.compareLoose=function(e,t){return w(e,t,!0)},t.compareBuild=function(e,t,r){var n=new y(e,r),o=new y(t,r);return n.compare(o)||n.compareBuild(o)},t.rcompare=function(e,t,r){return w(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=E,t.lt=S,t.eq=O,t.neq=I,t.gte=T,t.lte=j,t.cmp=x,t.Comparator=R;var A={};function D(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof D)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new D(e.raw,t);if(e instanceof R)return new D(e.value,t);if(!(this instanceof D))return new D(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function N(e,t){for(var r=!0,n=e.slice(),o=n.pop();r&&n.length;)r=n.every((function(e){return o.intersects(e,t)})),o=n.pop();return r}function L(e){return!e||"x"===e.toLowerCase()||"*"===e}function k(e,t,r,n,o,i,s,a,c,l,u,f,p){return((t=L(r)?"":L(n)?">="+r+".0.0":L(o)?">="+r+"."+n+".0":">="+t)+" "+(a=L(c)?"":L(l)?"<"+(+c+1)+".0.0":L(u)?"<"+c+"."+(+l+1)+".0":f?"<="+c+"."+l+"."+u+"-"+f:"<="+a)).trim()}function C(e,t,n){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(o=0;o<e.length;o++)if(r(e[o].semver),e[o].semver!==A&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new D(t,r)}catch(e){return!1}return t.test(e)}function M(e,t,r,n){var o,i,s,a,c;switch(e=new y(e,n),t=new D(t,n),r){case">":o=E,i=j,s=S,a=">",c=">=";break;case"<":o=S,i=T,s=E,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],f=null,p=null;if(u.forEach((function(e){e.semver===A&&(e=new R(">=0.0.0")),f=f||e,p=p||e,o(e.semver,f.semver,n)?f=e:s(e.semver,p.semver,n)&&(p=e)})),f.operator===a||f.operator===c)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}R.prototype.parse=function(e){var t=this.options.loose?a[l.COMPARATORLOOSE]:a[l.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new y(r[2],this.options.loose):this.semver=A},R.prototype.toString=function(){return this.value},R.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new y(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},R.prototype.intersects=function(e,t){if(!(e instanceof R))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new D(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new D(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||c},t.Range=D,D.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},D.prototype.toString=function(){return this.range},D.prototype.parseRange=function(e){var t=this.options.loose,n=t?a[l.HYPHENRANGELOOSE]:a[l.HYPHENRANGE];e=e.replace(n,k),r("hyphen replace",e),e=e.replace(a[l.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,a[l.COMPARATORTRIM]),e=(e=(e=e.replace(a[l.TILDETRIM],"$1~")).replace(a[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?a[l.COMPARATORLOOSE]:a[l.COMPARATOR],i=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[l.CARETLOOSE]:a[l.CARET];return e.replace(n,(function(t,n,o,i,s){var a;return r("caret",e,t,n,o,i,s),L(n)?a="":L(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":L(i)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===o?">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[l.TILDELOOSE]:a[l.TILDE];return e.replace(n,(function(t,n,o,i,s){var a;return r("tilde",e,t,n,o,i,s),L(n)?a="":L(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":L(i)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[l.XRANGELOOSE]:a[l.XRANGE];return e.replace(n,(function(n,o,i,s,a,c){r("xRange",e,n,o,i,s,a,c);var l=L(i),u=l||L(s),f=u||L(a),p=f;return"="===o&&p&&(o=""),c=t.includePrerelease?"-0":"",l?n=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(s=0),a=0,">"===o?(o=">=",u?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):"<="===o&&(o="<",u?i=+i+1:s=+s+1),n=o+i+"."+s+"."+a+c):u?n=">="+i+".0.0"+c+" <"+(+i+1)+".0.0"+c:f&&(n=">="+i+"."+s+".0"+c+" <"+i+"."+(+s+1)+".0"+c),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[l.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(o)}))),i=i.map((function(e){return new R(e,this.options)}),this)},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Range is required");return this.set.some((function(r){return N(r,t)&&e.set.some((function(e){return N(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new D(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},D.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new y(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(C(this.set[t],e,this.options))return!0;return!1},t.satisfies=P,t.maxSatisfying=function(e,t,r){var n=null,o=null;try{var i=new D(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(n&&-1!==o.compare(e)||(o=new y(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,o=null;try{var i=new D(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(n&&1!==o.compare(e)||(o=new y(n=e,r)))})),n},t.minVersion=function(e,t){e=new D(e,t);var r=new y("0.0.0");if(e.test(r))return r;if(r=new y("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new y(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!E(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new D(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return M(e,t,"<",r)},t.gtr=function(e,t,r){return M(e,t,">",r)},t.outside=M,t.prerelease=function(e,t){var r=g(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new D(e,r),t=new D(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof y)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=a[l.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),a[l.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;a[l.COERCERTL].lastIndex=-1}else r=e.match(a[l.COERCE]);if(null===r)return null;return g(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}(0,gf.exports);var yf=te(gf.exports);function bf(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)}var vf=ec,wf=mt,Ef=Nr,Sf=Ls;Zo({target:"Iterator",proto:!0,real:!0},{find:function(e){Ef(this),wf(e);var t=Sf(this),r=0;return vf(t,(function(t,n){if(e(t,r++))return n(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var Of=Ra,If=String,Tf=function(e){if("Symbol"===Of(e))throw new TypeError("Cannot convert a Symbol value to a string");return If(e)},jf=TypeError,xf=function(e,t){if(e<t)throw new jf("Not enough arguments");return e},Rf=Yn,Af=Se,Df=Tf,Nf=xf,Lf=URLSearchParams,kf=Lf.prototype,Cf=Af(kf.append),Pf=Af(kf.delete),Mf=Af(kf.forEach),_f=Af([].push),$f=new Lf("a=1&a=2&b=3");$f.delete("a",1),$f.delete("b",void 0),$f+""!="a=2"&&Rf(kf,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return Pf(this,e);var n=[];Mf(this,(function(e,t){_f(n,{key:t,value:e})})),Nf(t,1);for(var o,i=Df(e),s=Df(r),a=0,c=0,l=!1,u=n.length;a<u;)o=n[a++],l||o.key===i?(l=!0,Pf(this,o.key)):c++;for(;c<u;)(o=n[c++]).key===i&&o.value===s||Cf(this,o.key,o.value)}),{enumerable:!0,unsafe:!0});var Bf=Yn,Ff=Se,Uf=Tf,Gf=xf,Wf=URLSearchParams,zf=Wf.prototype,Vf=Ff(zf.getAll),Hf=Ff(zf.has),Xf=new Wf("a=1");!Xf.has("a",2)&&Xf.has("a",void 0)||Bf(zf,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return Hf(this,e);var n=Vf(this,e);Gf(t,1);for(var o=Uf(r),i=0;i<n.length;)if(n[i++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0});var qf=se,Kf=Se,Yf=Ii,Qf=URLSearchParams.prototype,Jf=Kf(Qf.forEach);qf&&!("size"in Qf)&&Yf(Qf,"size",{get:function(){var e=0;return Jf(this,(function(){e++})),e},configurable:!0,enumerable:!0});const Zf=(e,t)=>{const r=ep(e);if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},ep=e=>e instanceof URL?v(e):e,tp=(e,t=[],r={})=>{const n=Zf(e,"First argument"),[o,i]=bf(t)?[[],t]:[t,r];if(!Array.isArray(o))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${o}`);if(o.some((e=>"object"==typeof e&&null!==e)))throw new TypeError(`Second argument must be an array of strings: ${o}`);const s=o.map(String),a=s.find((e=>e.includes("\0")));if(void 0!==a)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!bf(i))throw new TypeError(`Last argument must be an options object: ${i}`);return[n,s,i]};var rp=Se,np=Set.prototype,op={Set:Set,add:rp(np.add),has:rp(np.has),remove:rp(np.delete),proto:np},ip=op.has,sp=function(e){return ip(e),e},ap=ue,cp=function(e,t,r){for(var n,o,i=r?e:e.iterator,s=e.next;!(n=ap(s,i)).done;)if(void 0!==(o=t(n.value)))return o},lp=Se,up=cp,fp=op.Set,pp=op.proto,dp=lp(pp.forEach),hp=lp(pp.keys),mp=hp(new fp).next,gp=function(e,t,r){return r?up({iterator:hp(e),next:mp},t):dp(e,t)},yp=gp,bp=op.Set,vp=op.add,wp=function(e){var t=new bp;return yp(e,(function(e){vp(t,e)})),t},Ep=Se,Sp=mt,Op=function(e,t,r){try{return Ep(Sp(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Ip=Op(op.proto,"size","get")||function(e){return e.size},Tp=mt,jp=Nr,xp=ue,Rp=ro,Ap=Ls,Dp="Invalid size",Np=RangeError,Lp=TypeError,kp=Math.max,Cp=function(e,t){this.set=e,this.size=kp(t,0),this.has=Tp(e.has),this.keys=Tp(e.keys)};Cp.prototype={getIterator:function(){return Ap(jp(xp(this.keys,this.set)))},includes:function(e){return xp(this.has,this.set,e)}};var Pp=function(e){jp(e);var t=+e.size;if(t!=t)throw new Lp(Dp);var r=Rp(t);if(r<0)throw new Np(Dp);return new Cp(e,r)},Mp=sp,_p=wp,$p=Ip,Bp=Pp,Fp=gp,Up=cp,Gp=op.has,Wp=op.remove,zp=Ve,Vp=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Hp=function(e){var t=zp("Set");try{(new t)[e](Vp(0));try{return(new t)[e](Vp(-1)),!1}catch(e){return!0}}catch(e){return!1}},Xp=function(e){var t=Mp(this),r=Bp(e),n=_p(t);return $p(t)<=r.size?Fp(t,(function(e){r.includes(e)&&Wp(n,e)})):Up(r.getIterator(),(function(e){Gp(t,e)&&Wp(n,e)})),n};Zo({target:"Set",proto:!0,real:!0,forced:!Hp("difference")},{difference:Xp});var qp=sp,Kp=Ip,Yp=Pp,Qp=gp,Jp=cp,Zp=op.Set,ed=op.add,td=op.has,rd=ie,nd=function(e){var t=qp(this),r=Yp(e),n=new Zp;return Kp(t)>r.size?Jp(r.getIterator(),(function(e){td(t,e)&&ed(n,e)})):Qp(t,(function(e){r.includes(e)&&ed(n,e)})),n};Zo({target:"Set",proto:!0,real:!0,forced:!Hp("intersection")||rd((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:nd});var od=sp,id=op.has,sd=Ip,ad=Pp,cd=gp,ld=cp,ud=_s,fd=function(e){var t=od(this),r=ad(e);if(sd(t)<=r.size)return!1!==cd(t,(function(e){if(r.includes(e))return!1}),!0);var n=r.getIterator();return!1!==ld(n,(function(e){if(id(t,e))return ud(n,"normal",!1)}))};Zo({target:"Set",proto:!0,real:!0,forced:!Hp("isDisjointFrom")},{isDisjointFrom:fd});var pd=sp,dd=Ip,hd=gp,md=Pp,gd=function(e){var t=pd(this),r=md(e);return!(dd(t)>r.size)&&!1!==hd(t,(function(e){if(!r.includes(e))return!1}),!0)};Zo({target:"Set",proto:!0,real:!0,forced:!Hp("isSubsetOf")},{isSubsetOf:gd});var yd=sp,bd=op.has,vd=Ip,wd=Pp,Ed=cp,Sd=_s,Od=function(e){var t=yd(this),r=wd(e);if(vd(t)<r.size)return!1;var n=r.getIterator();return!1!==Ed(n,(function(e){if(!bd(t,e))return Sd(n,"normal",!1)}))};Zo({target:"Set",proto:!0,real:!0,forced:!Hp("isSupersetOf")},{isSupersetOf:Od});var Id=sp,Td=wp,jd=Pp,xd=cp,Rd=op.add,Ad=op.has,Dd=op.remove,Nd=function(e){var t=Id(this),r=jd(e).getIterator(),n=Td(t);return xd(r,(function(e){Ad(t,e)?Dd(n,e):Rd(n,e)})),n};Zo({target:"Set",proto:!0,real:!0,forced:!Hp("symmetricDifference")},{symmetricDifference:Nd});var Ld=sp,kd=op.add,Cd=wp,Pd=Pp,Md=cp,_d=function(e){var t=Ld(this),r=Pd(e).getIterator(),n=Cd(t);return Md(r,(function(e){kd(n,e)})),n};Zo({target:"Set",proto:!0,real:!0,forced:!Hp("union")},{union:_d});var $d=je,Bd=TypeError,Fd=Op(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==$d(e))throw new Bd("ArrayBuffer expected");return e.byteLength},Ud=Fd,Gd=Se(ArrayBuffer.prototype.slice),Wd=function(e){if(0!==Ud(e))return!1;try{return Gd(e,0,0),!1}catch(e){return!0}},zd=se,Vd=Ii,Hd=Wd,Xd=ArrayBuffer.prototype;zd&&!("detached"in Xd)&&Vd(Xd,"detached",{configurable:!0,get:function(){return Hd(this)}});var qd,Kd,Yd,Qd,Jd=ro,Zd=co,eh=RangeError,th="process"===je(ne.process),rh=th,nh="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,oh=!nh&&!th&&"object"==typeof window&&"object"==typeof document,ih=ie,sh=Ze,ah=oh,ch=nh,lh=th,uh=ne.structuredClone,fh=!!uh&&!ih((function(){if(ch&&sh>92||lh&&sh>94||ah&&sh>97)return!1;var e=new ArrayBuffer(8),t=uh(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})),ph=ne,dh=function(e){try{if(rh)return Function('return require("'+e+'")')()}catch(e){}},hh=fh,mh=ph.structuredClone,gh=ph.ArrayBuffer,yh=ph.MessageChannel,bh=!1;if(hh)bh=function(e){mh(e,{transfer:[e]})};else if(gh)try{yh||(qd=dh("worker_threads"))&&(yh=qd.MessageChannel),yh&&(Kd=new yh,Yd=new gh(2),Qd=function(e){Kd.port1.postMessage(null,[e])},2===Yd.byteLength&&(Qd(Yd),0===Yd.byteLength&&(bh=Qd)))}catch(e){}var vh=ne,wh=Se,Eh=Op,Sh=function(e){if(void 0===e)return 0;var t=Jd(e),r=Zd(t);if(t!==r)throw new eh("Wrong length or index");return r},Oh=Wd,Ih=Fd,Th=bh,jh=fh,xh=vh.structuredClone,Rh=vh.ArrayBuffer,Ah=vh.DataView,Dh=vh.TypeError,Nh=Math.min,Lh=Rh.prototype,kh=Ah.prototype,Ch=wh(Lh.slice),Ph=Eh(Lh,"resizable","get"),Mh=Eh(Lh,"maxByteLength","get"),_h=wh(kh.getInt8),$h=wh(kh.setInt8),Bh=(jh||Th)&&function(e,t,r){var n,o=Ih(e),i=void 0===t?o:Sh(t),s=!Ph||!Ph(e);if(Oh(e))throw new Dh("ArrayBuffer is detached");if(jh&&(e=xh(e,{transfer:[e]}),o===i&&(r||s)))return e;if(o>=i&&(!r||s))n=Ch(e,0,i);else{var a=r&&!s&&Mh?{maxByteLength:Mh(e)}:void 0;n=new Rh(i,a);for(var c=new Ah(e),l=new Ah(n),u=Nh(i,o),f=0;f<u;f++)$h(l,f,_h(c,f))}return jh||Th(e),n},Fh=Bh;Fh&&Zo({target:"ArrayBuffer",proto:!0},{transfer:function(){return Fh(this,arguments.length?arguments[0]:void 0,!0)}});var Uh=Bh;Uh&&Zo({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return Uh(this,arguments.length?arguments[0]:void 0,!1)}});var Gh,Wh,zh,Vh=uo,Hh="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Xh=Ge,qh=function(e){return Xh(e)||null===e},Kh=String,Yh=TypeError,Qh=Op,Jh=Ge,Zh=Pe,em=function(e){if(qh(e))return e;throw new Yh("Can't set "+Kh(e)+" as a prototype")},tm=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Qh(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Zh(r),em(n),Jh(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),rm=Hh,nm=se,om=ne,im=Fe,sm=Ge,am=Bt,cm=Ra,lm=ft,um=Vr,fm=Yn,pm=Ii,dm=He,hm=Ei,mm=tm,gm=Zt,ym=zt,bm=xn.enforce,vm=xn.get,wm=om.Int8Array,Em=wm&&wm.prototype,Sm=om.Uint8ClampedArray,Om=Sm&&Sm.prototype,Im=wm&&hm(wm),Tm=Em&&hm(Em),jm=Object.prototype,xm=om.TypeError,Rm=gm("toStringTag"),Am=ym("TYPED_ARRAY_TAG"),Dm="TypedArrayConstructor",Nm=rm&&!!mm&&"Opera"!==cm(om.opera),Lm=!1,km={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Cm={BigInt64Array:8,BigUint64Array:8},Pm=function(e){var t=hm(e);if(sm(t)){var r=vm(t);return r&&am(r,Dm)?r[Dm]:Pm(t)}},Mm=function(e){if(!sm(e))return!1;var t=cm(e);return am(km,t)||am(Cm,t)};for(Gh in km)(zh=(Wh=om[Gh])&&Wh.prototype)?bm(zh)[Dm]=Wh:Nm=!1;for(Gh in Cm)(zh=(Wh=om[Gh])&&Wh.prototype)&&(bm(zh)[Dm]=Wh);if((!Nm||!im(Im)||Im===Function.prototype)&&(Im=function(){throw new xm("Incorrect invocation")},Nm))for(Gh in km)om[Gh]&&mm(om[Gh],Im);if((!Nm||!Tm||Tm===jm)&&(Tm=Im.prototype,Nm))for(Gh in km)om[Gh]&&mm(om[Gh].prototype,Tm);if(Nm&&hm(Om)!==Tm&&mm(Om,Tm),nm&&!am(Tm,Rm))for(Gh in Lm=!0,pm(Tm,Rm,{configurable:!0,get:function(){return sm(this)?this[Am]:void 0}}),km)om[Gh]&&um(om[Gh],Am,Gh);var _m={NATIVE_ARRAY_BUFFER_VIEWS:Nm,TYPED_ARRAY_TAG:Lm&&Am,aTypedArray:function(e){if(Mm(e))return e;throw new xm("Target is not a typed array")},aTypedArrayConstructor:function(e){if(im(e)&&(!mm||dm(Im,e)))return e;throw new xm(lm(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(nm){if(r)for(var o in km){var i=om[o];if(i&&am(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}Tm[e]&&!r||fm(Tm,e,r?t:Nm&&Em[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(nm){if(mm){if(r)for(n in km)if((o=om[n])&&am(o,e))try{delete o[e]}catch(e){}if(Im[e]&&!r)return;try{return fm(Im,e,r?t:Nm&&Im[e]||t)}catch(e){}}for(n in km)!(o=om[n])||o[e]&&!r||fm(o,e,t)}},getTypedArrayConstructor:Pm,isView:function(e){if(!sm(e))return!1;var t=cm(e);return"DataView"===t||am(km,t)||am(Cm,t)},isTypedArray:Mm,TypedArray:Im,TypedArrayPrototype:Tm},$m=function(e,t){for(var r=Vh(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n},Bm=_m.aTypedArray,Fm=_m.getTypedArrayConstructor;(0,_m.exportTypedArrayMethod)("toReversed",(function(){return $m(Bm(this),Fm(this))}));var Um=uo,Gm=mt,Wm=function(e,t,r){for(var n=0,o=arguments.length>2?r:Um(t),i=new e(o);o>n;)i[n]=t[n++];return i},zm=_m.aTypedArray,Vm=_m.getTypedArrayConstructor,Hm=_m.exportTypedArrayMethod,Xm=Se(_m.TypedArrayPrototype.sort);Hm("toSorted",(function(e){void 0!==e&&Gm(e);var t=zm(this),r=Wm(Vm(t),t);return Xm(r,e)}));var qm=uo,Km=ro,Ym=RangeError,Qm=Ra,Jm=ar,Zm=TypeError,eg=function(e,t,r,n){var o=qm(e),i=Km(r),s=i<0?o+i:i;if(s>=o||s<0)throw new Ym("Incorrect index");for(var a=new t(o),c=0;c<o;c++)a[c]=c===s?n:e[c];return a},tg=function(e){var t=Qm(e);return"BigInt64Array"===t||"BigUint64Array"===t},rg=ro,ng=function(e){var t=Jm(e,"number");if("number"==typeof t)throw new Zm("Can't convert number to bigint");return BigInt(t)},og=_m.aTypedArray,ig=_m.getTypedArrayConstructor,sg=_m.exportTypedArrayMethod,ag=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();sg("with",{with:function(e,t){var r=og(this),n=rg(e),o=tg(r)?ng(t):+t;return eg(r,ig(r),n,o)}}.with,!ag);const{toString:cg}=Object.prototype,lg=e=>"[object Uint8Array]"===cg.call(e),ug=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),fg=new TextEncoder,pg=e=>fg.encode(e),dg=new TextDecoder,hg=e=>dg.decode(e),mg=(e,t)=>{if("utf8"===t&&e.every((e=>"string"==typeof e)))return e;const r=new O(t),n=e.map((e=>"string"==typeof e?pg(e):e)).map((e=>r.write(e))),o=r.end();return""===o?n:[...n,o]},gg=e=>1===e.length&&lg(e[0])?e[0]:bg(yg(e)),yg=e=>e.map((e=>"string"==typeof e?pg(e):e)),bg=e=>{const t=new Uint8Array(vg(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},vg=e=>{let t=0;for(const r of e)t+=r.length;return t},wg=({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}=Eg(o,e.raw[n]),c=Ig(r,i,s);if(n===t.length)return c;const l=t[n],u=Array.isArray(l)?l.map((e=>Tg(e))):[Tg(l)];return Ig(c,u,a)},Eg=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const o=Sg.has(t[0]);for(let o=0,i=0;o<e.length;o+=1,i+=1){const s=t[i];if(Sg.has(s))n!==o&&r.push(e.slice(n,o)),n=o+1;else if("\\"===s){const e=t[i+1];"u"===e&&"{"===t[i+2]?i=t.indexOf("}",i+3):i+=Og[e]??1}}const i=n===e.length;return i||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:o,trailingWhitespaces:i}},Sg=new Set([" ","\t","\r","\n"]),Og={x:3,u:5},Ig=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Tg=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(bf(e)&&("stdout"in e||"isMaxBuffer"in e))return jg(e);if(e instanceof w||"[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`)},jg=({stdout:e})=>{if("string"==typeof e)return e;if(lg(e))return hg(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`)};function xg(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Rg=e=>Ag.includes(e),Ag=[D.stdin,D.stdout,D.stderr],Dg=["stdin","stdout","stderr"],Ng=e=>Dg[e]??`stdio[${e}]`,Lg=(e,t)=>{const r=Array.from({length:kg(e)+1}),n=Cg(e[t],r,t);return Ug(n,t)},kg=({stdio:e})=>Array.isArray(e)?Math.max(e.length,Dg.length):Dg.length,Cg=(e,t,r)=>bf(e)?Pg(e,t,r):t.fill(e),Pg=(e,t,r)=>{for(const n of Object.keys(e).sort(Mg))for(const o of $g(n,r,t))t[o]=e[n];return t},Mg=(e,t)=>_g(e)<_g(t)?1:-1,_g=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,$g=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=Bg(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]},Bg=e=>{if("all"===e)return e;if(Dg.includes(e))return Dg.indexOf(e);const t=Fg.exec(e);return null!==t?Number(t[1]):void 0},Fg=/^fd(\d+)$/,Ug=(e,t)=>e.map((e=>void 0===e?Gg[t]:e)),Gg={lines:!1,buffer:!0,maxBuffer:1e8,verbose:I("execa").enabled?"full":"none",stripFinalNewline:!0},Wg=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],zg=(e,t)=>"ipc"===t?e.at(-1):e[t],Vg=({verbose:e},t)=>"none"!==Xg(e,t),Hg=({verbose:e},t)=>!["none","short"].includes(Xg(e,t)),Xg=(e,t)=>void 0===t?qg(e):zg(e,t),qg=e=>e.find((e=>Kg(e)))??Yg.findLast((t=>e.includes(t))),Kg=e=>"function"==typeof e,Yg=["none","short","full"],Qg=e=>T(e).split("\n").map((e=>Jg(e))).join("\n"),Jg=e=>e.replaceAll(ey,(e=>Zg(e))),Zg=e=>{const t=ty[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=ry?`\\u${n.padStart(4,"0")}`:`\\U${n}`},ey=/\p{Separator}|\p{Other}/gu,ty={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},ry=65535,ny=e=>oy.test(e)?e:"win32"===N?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,oy=/^[\w./-]+$/;const iy={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},sy={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},ay=Object.assign(Object.assign({},iy),sy),cy=Object.assign(Object.assign({},iy),{tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"}),ly=("win32"!==D.platform?"linux"!==D.env.TERM:Boolean(D.env.WT_SESSION)||Boolean(D.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===D.env.ConEmuTask||"Terminus-Sublime"===D.env.TERM_PROGRAM||"vscode"===D.env.TERM_PROGRAM||"xterm-256color"===D.env.TERM||"alacritty"===D.env.TERM||"JetBrains-JediTerm"===D.env.TERMINAL_EMULATOR)?ay:cy;Object.entries(sy);const uy=P?.WriteStream?.prototype?.hasColors?.()??!1,fy=(e,t)=>{if(!uy)return e=>e;const r=`[${e}m`,n=`[${t}m`;return e=>{const t=e+"";let o=t.indexOf(n);if(-1===o)return r+t+n;let i=r,s=0;for(;-1!==o;)i+=t.slice(s,o)+r,s=o+n.length,o=t.indexOf(n,s);return i+=t.slice(s)+n,i}},py=fy(1,22),dy=fy(90,39),hy=fy(91,39),my=fy(93,39),gy=e=>`${yy(e.getHours(),2)}:${yy(e.getMinutes(),2)}:${yy(e.getSeconds(),2)}.${yy(e.getMilliseconds(),3)}`,yy=(e,t)=>String(e).padStart(t,"0"),by=({failed:e,reject:t})=>e?t?ly.cross:ly.warning:ly.tick,vy={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:by,duration:by},wy=e=>e,Ey={command:()=>py,output:()=>wy,ipc:()=>wy,error:({reject:e})=>e?hy:my,duration:()=>dy},Sy=(e,t,r)=>{const n=(({verbose:e},t)=>{const r=Xg(e,t);return Kg(r)?r:void 0})(t,r);return e.map((({verboseLine:e,verboseObject:t})=>Oy(e,t,n))).filter((e=>void 0!==e)).map((e=>Iy(e))).join("")},Oy=(e,t,r)=>{if(void 0===r)return e;const n=r(e,t);return"string"==typeof n?n:void 0},Iy=e=>e.endsWith("\n")?e:`${e}\n`,Ty=["piped"],jy=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:o})=>{const i=xy({type:e,result:o,verboseInfo:n}),s=Ry(t,i),a=Sy(s,n,r);u(Dy,a)},xy=e=>{let{type:t,result:r,verboseInfo:{escapedCommand:n,commandId:o,rawOptions:{piped:i=!1}}}=e,s=xg(e.verboseInfo.rawOptions,Ty);return{type:t,escapedCommand:n,commandId:`${o}`,timestamp:new Date,piped:i,result:r,options:s}},Ry=(e,t)=>e.split("\n").map((e=>Ay(Object.assign(Object.assign({},t),{},{message:e})))),Ay=e=>({verboseLine:(({type:e,message:t,timestamp:r,piped:n,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{const a=gy(r),c=vy[e]({failed:i,reject:s,piped:n}),l=Ey[e]({reject:s});return`${dy(`[${a}]`)} ${dy(`[${o}]`)} ${l(c)} ${l(t)}`})(e),verboseObject:e}),Dy=2,Ny=e=>{const t="string"==typeof e?e:j(e);return Qg(t).replaceAll("\t"," ".repeat(Ly))},Ly=2,ky=e=>Vg({verbose:e})?Cy++:void 0;let Cy=0n;const Py=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(!Yg.includes(t)&&!Kg(t)){const e=Yg.map((e=>`'${e}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}},My=()=>L.bigint(),_y=e=>Number(L.bigint()-e)/1e6,$y=(e,t,r)=>{const n=My(),{command:o,escapedCommand:i}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map((e=>ny(Jg(e)))).join(" ")}})(e,t),s=((e,t,r)=>(Py(e),{verbose:e,escapedCommand:t,commandId:ky(e),rawOptions:r}))(Lg(r,"verbose"),i,Object.assign({},r));return((e,t)=>{Vg(t)&&jy({type:"command",verboseMessage:e,verboseInfo:t})})(i,s),{command:o,escapedCommand:i,startTime:n,verboseInfo:s}};var By,Fy,Uy,Gy,Wy,zy={exports:{}};Wy="win32"===process.platform||ee.TESTING_WINDOWS?function(){if(Fy)return By;Fy=1,By=n,n.sync=function(t,n){return r(e.statSync(t),t,n)};var e=t;function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,r)}function n(t,n,o){e.stat(t,(function(e,i){o(e,!e&&r(i,t,n))}))}return By}():function(){if(Gy)return Uy;Gy=1,Uy=r,r.sync=function(t,r){return n(e.statSync(t),r)};var e=t;function r(t,r,o){e.stat(t,(function(e,t){o(e,!e&&n(t,r))}))}function n(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)}return Uy}();var Vy=Hy;function Hy(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){Hy(e,t||{},(function(e,t){e?n(e):r(t)}))}))}Wy(e,t||{},(function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}Hy.sync=function(e,t){try{return Wy.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}},te(Vy);const Xy="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,qy=r,Ky=Xy?";":":",Yy=Vy,Qy=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Jy=(e,t)=>{const r=t.colon||Ky,n=e.match(/\//)||Xy&&e.match(/\\/)?[""]:[...Xy?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=Xy?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Xy?o.split(r):[""];return Xy&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},Zy=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:i}=Jy(e,t),s=[],a=r=>new Promise(((o,i)=>{if(r===n.length)return t.all&&s.length?o(s):i(Qy(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=qy.join(l,e),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(f,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===o.length)return l(a(r+1));const f=o[n];Yy(e+f,{pathExt:i},((o,i)=>{if(!o&&i){if(!t.all)return l(e+f);s.push(e+f)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};var eb=Zy;Zy.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=Jy(e,t),i=[];for(let s=0;s<r.length;s++){const a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=qy.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;e<n.length;e++){const r=u+n[e];try{if(Yy.sync(r,{pathExt:o})){if(!t.all)return r;i.push(r)}}catch(e){}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Qy(e)},te(eb);var tb={exports:{}};const rb=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};tb.exports=rb,tb.exports.default=rb;var nb=tb.exports;te(nb);const ob=r,ib=eb,sb=nb;function ab(e,t){const r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=ib.sync(e.command,{path:r[sb({env:r})],pathExt:t?ob.delimiter:void 0})}catch(e){}finally{i&&process.chdir(n)}return s&&(s=ob.resolve(o?e.options.cwd:"",s)),s}var cb=function(e){return ab(e)||ab(e,!0)};te(cb);var lb={};const ub=/([()\][%!^"`<>&|;, *?])/g;lb.command=function(e){return e=e.replace(ub,"^$1")},lb.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(ub,"^$1"),t&&(e=e.replace(ub,"^$1")),e};var fb=/^#!(.*)/;te(fb);const pb=fb;var db=(e="")=>{const t=e.match(pb);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o};te(db);const hb=t,mb=db;var gb=function(e){const t=Buffer.alloc(150);let r;try{r=hb.openSync(e,"r"),hb.readSync(r,t,0,150,0),hb.closeSync(r)}catch(e){}return mb(t.toString())};te(gb);const yb=r,bb=cb,vb=lb,wb=gb,Eb="win32"===process.platform,Sb=/\.(?:com|exe)$/i,Ob=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ib(e){if(!Eb)return e;const t=function(e){e.file=bb(e);const t=e.file&&wb(e.file);return t?(e.args.unshift(e.file),e.command=t,bb(e)):e.file}(e),r=!Sb.test(t);if(e.options.forceShell||r){const r=Ob.test(t);e.command=yb.normalize(e.command),e.command=vb.command(e.command),e.args=e.args.map((e=>vb.argument(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var Tb=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:Ib(n)};te(Tb);const jb="win32"===process.platform;function xb(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 Rb(e,t){return jb&&1===e&&!t.file?xb(t.original,"spawn"):null}var Ab={hookChildProcess:function(e,t){if(!jb)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=Rb(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:Rb,verifyENOENTSync:function(e,t){return jb&&1===e&&!t.file?xb(t.original,"spawnSync"):null},notFoundError:xb};te(Ab);const Db=s,Nb=Tb,Lb=Ab;function kb(e,t,r){const n=Nb(e,t,r),o=Db.spawn(n.command,n.args,n.options);return Lb.hookChildProcess(o,n),o}zy.exports=kb,zy.exports.spawn=kb,zy.exports.sync=function(e,t,r){const n=Nb(e,t,r),o=Db.spawnSync(n.command,n.args,n.options);return o.error=o.error||Lb.verifyENOENTSync(o.status,n),o},zy.exports._parse=Nb,zy.exports._enoent=Lb;var Cb=te(zy.exports);function Pb(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"}const Mb=["env"],_b=(e,t)=>{let r;for(;r!==t;)e.push(a.join(t,"node_modules/.bin")),r=t,t=a.resolve(t,"..")},$b=(e,t,r)=>{const n=t instanceof URL?v(t):t;e.push(a.resolve(r,n,".."))},Bb=(e={})=>{let{env:t=D.env}=e,r=xg(e,Mb);t=Object.assign({},t);const n=Pb({env:t});return r.path=t[n],t[n]=(({cwd:e=D.cwd(),path:t=D.env[Pb()],preferLocal:r=!0,execPath:n=D.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?v(e):e,s=a.resolve(i),c=[];return r&&_b(c,s),o&&$b(c,n,s),[...c,t].join(a.delimiter)})(r),t};class Fb extends Error{}const Ub=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Gb,{value:!0,writable:!1,enumerable:!1,configurable:!1})},Gb=Symbol("isExecaError"),Wb=e=>"[object Error]"===Object.prototype.toString.call(e);class zb extends Error{}Ub(zb,zb.name);class Vb extends Error{}Ub(Vb,Vb.name);const Hb=(e,t)=>({name:`SIGRT${t+1}`,number:Xb+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Xb=34,qb=64,Kb=[{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"}],Yb=()=>{const e=(()=>{const e=qb-Xb+1;return Array.from({length:e},Hb)})();return[...Kb,...e].map(Qb)},Qb=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=B,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}},Jb=({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}],Zb=(()=>{const e=Yb();return Object.fromEntries(e.map(Jb))})(),ev=(e,t)=>{const r=tv(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}}},tv=(e,t)=>{const r=t.find((({name:t})=>B.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))};(()=>{const e=Yb(),t=qb+1,r=Array.from({length:t},((t,r)=>ev(r,e)));Object.assign({},...r)})();const rv=e=>0===e?e:nv(e,"`subprocess.kill()`'s argument"),nv=(e,t)=>{if(Number.isInteger(e))return ov(e,t);if("string"==typeof e)return sv(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${av()}`)},ov=(e,t)=>{if(iv.has(e))return iv.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${av()}`)},iv=new Map(Object.entries(B.signals).reverse().map((([e,t])=>[t,e]))),sv=(e,t)=>{if(e in B.signals)return e;if(e.toUpperCase()in B.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${av()}`)},av=()=>`Available signal names: ${cv()}.\nAvailable signal numbers: ${lv()}.`,cv=()=>Object.keys(B.signals).sort().map((e=>`'${e}'`)).join(", "),lv=()=>[...new Set(Object.values(B.signals).sort(((e,t)=>e-t)))].join(", "),uv=e=>Zb[e].description,fv=5e3,pv=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:o,controller:i},s,a)=>{const{signal:c,error:l}=dv(s,a,r);hv(l,n);const u=e(c);return mv({kill:e,signal:c,forceKillAfterDelay:t,killSignal:r,killResult:u,context:o,controller:i}),u},dv=(e,t,r)=>{const[n=r,o]=Wb(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&&!Wb(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:rv(n),error:o}},hv=(e,t)=>{void 0!==e&&t.reject(e)},mv=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:o,context:i,controller:s})=>{t===n&&o&&gv({kill:e,forceKillAfterDelay:r,context:i,controllerSignal:s.signal})},gv=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await M(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},yv=async(e,t)=>{e.aborted||await F(e,"abort",{signal:t})},bv=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:o})=>void 0===t||r?[]:[vv(e,t,n,o)],vv=async(e,t,r,{signal:n})=>{throw await yv(t,n),r.terminationReason??="cancel",e.kill(),t.reason},wv=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{Ev(e,t,r),Sv(e,t,n)},Ev=(e,t,r)=>{if(!r)throw new Error(`${xv(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Sv=(e,t,r)=>{if(!r)throw new Error(`${xv(e,t)} cannot be used: the ${Av(t)} has already exited or disconnected.`)},Ov=(e,t)=>new Error(`${xv("sendMessage",t)} failed when sending an acknowledgment response to the ${Av(t)}.`,{cause:e}),Iv=({code:e,message:t})=>Tv.has(e)||jv.some((e=>t.includes(e))),Tv=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),jv=["could not be cloned","circular structure","call stack size exceeded"],xv=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${Rv(t)}${e}(${r})`,Rv=e=>e?"":"subprocess.",Av=e=>e?"parent process":"subprocess",Dv=e=>{e.connected&&e.disconnect()},Nv=()=>{const e={},t=new Promise(((t,r)=>{Object.assign(e,{resolve:t,reject:r})}));return Object.assign(t,e)},Lv=(e,t="stdin")=>{const{options:r,fileDescriptors:n}=Cv.get(e),o=Pv(n,t,true),i=e.stdio[o];if(null===i)throw new TypeError($v(o,t,r,true));return i},kv=(e,t="stdout")=>{const{options:r,fileDescriptors:n}=Cv.get(e),o=Pv(n,t,false),i="all"===o?e.all:e.stdio[o];if(null==i)throw new TypeError($v(o,t,r,false));return i},Cv=new WeakMap,Pv=(e,t,r)=>{const n=Mv(t,r);return _v(n,t,r,e),n},Mv=(e,t)=>{const r=Bg(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(`"${Uv(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${o}".`)},_v=(e,t,r,n)=>{const o=n[Fv(e)];if(void 0===o)throw new TypeError(`"${Uv(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(`"${Uv(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==o.direction&&r)throw new TypeError(`"${Uv(r)}" must not be ${t}. It must be a writable stream, not readable.`)},$v=(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}=Bv(e,r);return`The "${o}: ${Gv(i)}" option is incompatible with using "${Uv(n)}: ${Gv(t)}".\nPlease set this option with "pipe" instead.`},Bv=(e,{stdin:t,stdout:r,stderr:n,stdio:o})=>{const i=Fv(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]}},Fv=e=>"all"===e?1:e,Uv=e=>e?"to":"from",Gv=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",Wv=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),U(r,(()=>{e.setMaxListeners(e.getMaxListeners()-t)})))},zv=(e,t)=>{t&&Vv(e)},Vv=e=>{e.refCounted()},Hv=(e,t)=>{t&&Xv(e)},Xv=e=>{e.unrefCounted()},qv=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},o)=>{if(ow(o)||Sw(o))return;Yv.has(e)||Yv.set(e,[]);const i=Yv.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await uw(e,n,o),await _.yield();const s=await nw({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});i.shift(),n.emit("message",s),n.emit("message:done")}},Kv=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:o})=>{Iw();const i=Yv.get(e);for(;i?.length>0;)await F(n,"message:done");e.removeListener("message",o),((e,t)=>{t&&(Vv(e),Vv(e))})(t,r),n.connected=!1,n.emit("disconnect")},Yv=new WeakMap,Qv=(e,t,r)=>{if(Jv.has(e))return Jv.get(e);const n=new G;return n.connected=!0,Jv.set(e,n),Zv({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},Jv=new WeakMap,Zv=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const o=qv.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",o),t.once("disconnect",Kv.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:o})),((e,t)=>{t&&(Xv(e),Xv(e))})(r,n)},ew=e=>{const t=Jv.get(e);return void 0===t?null!==e.channel:t.connected};let tw=0n;const rw=(e,t)=>{if(t?.type===cw&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&sw[t].resolve({isDeadlock:!0,hasListeners:!1})},nw=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:o})=>{if(e?.type!==cw||!t.connected)return e;const{id:i,message:s}=e,a={id:i,type:lw,message:pw(t,o)};try{await hw({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){o.emit("strict:error",e)}return s},ow=e=>{if(e?.type!==lw)return!1;const{id:t,message:r}=e;return sw[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},iw=async(e,t,r)=>{if(e?.type!==cw)return;const n=Nv();sw[e.id]=n;const o=new AbortController;try{const{isDeadlock:e,hasListeners:i}=await Promise.race([n,aw(t,r,o)]);e&&(e=>{throw new Error(`${xv("sendMessage",e)} failed: the ${Av(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${xv("getOneMessage",e)},\n\t${xv("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),i||(e=>{throw new Error(`${xv("sendMessage",e)} failed: the ${Av(e)} is not listening to incoming messages.`)})(r)}finally{o.abort(),delete sw[e.id]}},sw={},aw=async(e,t,{signal:r})=>{Wv(e,1,r),await F(e,"disconnect",{signal:r}),(e=>{throw new Error(`${xv("sendMessage",e)} failed: the ${Av(e)} exited without listening to incoming messages.`)})(t)},cw="execa:ipc:request",lw="execa:ipc:response",uw=async(e,t,r)=>{for(;!pw(e,t)&&fw.get(e)?.size>0;){const t=[...fw.get(e)];rw(t,r),await Promise.all(t.map((({onMessageSent:e})=>e)))}},fw=new WeakMap,pw=(e,t)=>t.listenerCount("message")>dw(e),dw=e=>Cv.has(e)&&!zg(Cv.get(e).options.buffer,"ipc")?1:0,hw=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},o,{strict:i=!1}={})=>{const s="sendMessage";return wv({methodName:s,isSubprocess:r,ipc:n,isConnected:e.connected}),mw({anyProcess:e,channel:t,methodName:s,isSubprocess:r,message:o,strict:i})},mw=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=Qv(e,t,r),s=pw(e,i);return{id:tw++,type:cw,message:n,hasListeners:s}})({anyProcess:e,channel:t,isSubprocess:n,message:o,strict:i}),a=((e,t,r)=>{fw.has(e)||fw.set(e,new Set);const n=fw.get(e),o={onMessageSent:Nv(),id:r?t.id:void 0};return n.add(o),{outgoingMessages:n,outgoingMessage:o}})(e,s,i);try{await gw({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:s,message:o})}catch(t){throw Dv(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},gw=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:o})=>{const i=yw(e);try{await Promise.all([iw(n,e,r),i(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${xv(t,r)} cannot be used: the ${Av(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if(Iv(e))throw new Error(`${xv(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}},yw=e=>{if(bw.has(e))return bw.get(e);const t=x(e.send.bind(e));return bw.set(e,t),t},bw=new WeakMap,vw=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await ww({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),Tw.signal),ww=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{Ew||(Ew=!0,n?null!==t?(Qv(e,t,r),await _.yield()):Iw():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let Ew=!1;const Sw=e=>e?.type===Ow&&(Tw.abort(e.message),!0),Ow="execa:ipc:cancel",Iw=()=>{Tw.abort(new Error(`\`cancelSignal\` aborted: the ${Av(!0)} disconnected.`))},Tw=new AbortController,jw=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:o,controller:i})=>r?[xw({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:o,controller:i})]:[],xw=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:o}})=>{await yv(t,o);const i=Rw(t);throw await((e,t)=>{const r="cancelSignal";return Sv(r,!1,e.connected),gw({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:Ow,message:t},message:t})})(e,i),gv({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:o}),n.terminationReason??="gracefulCancel",t.reason},Rw=({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},Aw=(e,t,r,n)=>0===t||void 0===t?[]:[Dw(e,t,r,n)],Dw=async(e,t,r,{signal:n})=>{throw await M(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new Fb},Nw=["node","nodePath","nodeOptions","cwd","execPath"],Lw={advanced:e=>{try{V(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})}}},kw=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},Cw=new Set(["utf8","utf16le"]),Pw=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),Mw=new Set([...Cw,...Pw]),_w=e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in $w?$w[t]:Mw.has(t)?t:void 0},$w={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},Bw=e=>"string"==typeof e?`"${e}"`:String(e),Fw=()=>{try{return D.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Uw=["extendEnv","preferLocal","cwd","localDir","encoding","reject","cleanup","all","windowsHide","killSignal","forceKillAfterDelay","gracefulCancel","ipcInput","ipc","serialization"],Gw=(e,t,r)=>{r.cwd=((e=Fw())=>{const t=Zf(e,'The "cwd" option');return c(t)})(r.cwd);const[n,o,i]=((e,t,r)=>{let{node:n=!1,nodePath:o=k,nodeOptions:i=C.filter((e=>!e.startsWith("--inspect"))),cwd:s,execPath:a}=r,u=xg(r,Nw);if(void 0!==a)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const f=Zf(o,'The "nodePath" option'),p=c(s,f),d=Object.assign(Object.assign({},u),{},{nodePath:p,node:n,cwd:s});if(!n)return[e,t,d];if("node"===l(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[p,[...i,e,...t],Object.assign(Object.assign({ipc:!0},d),{},{shell:!1})]})(e,t,r),{command:s,args:a,options:u}=Cb._parse(n,o,i),f=(e=>{const t=Object.assign({},e);for(const r of Wg)t[r]=Lg(e,r);return t})(u),p=Ww(f);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(Mw.has(e))return;const t=_w(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${Bw(e)}\`.\nPlease rename it to ${Bw(t)}.`);const r=[...Mw].map((e=>Bw(e))).join(", ");throw new TypeError(`Invalid option \`encoding: ${Bw(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`.");Lw[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=ep(p.shell),p.env=zw(p),p.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return nv(e,t)})(p.killSignal),p.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return fv;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&&!Pw.has(p.encoding)&&p.buffer[t])),"win32"===D.platform&&"cmd"===l(s,".exe")&&a.unshift("/q"),{file:s,commandArguments:a,options:p}},Ww=e=>{let{extendEnv:t=!0,preferLocal:r=!1,cwd:n,localDir:o=n,encoding:i="utf8",reject:s=!0,cleanup:a=!0,all:c=!1,windowsHide:l=!0,killSignal:u="SIGTERM",forceKillAfterDelay:f=!0,gracefulCancel:p=!1,ipcInput:d,ipc:h=void 0!==d||p,serialization:m="advanced"}=e,g=xg(e,Uw);return Object.assign(Object.assign({},g),{},{extendEnv:t,preferLocal:r,cwd:n,localDirectory:o,encoding:i,reject:s,cleanup:a,all:c,windowsHide:l,killSignal:u,forceKillAfterDelay:f,gracefulCancel:p,ipcInput:d,ipc:h,serialization:m})},zw=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:o,nodePath:i})=>{const s=t?Object.assign(Object.assign({},D.env),e):e;return r||n?Bb({env:s,cwd:o,execPath:i,preferLocal:r,addExecPath:n}):s};function Vw(e){if("string"==typeof e)return Hw(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return Xw(e)}const Hw=e=>e.at(-1)===qw?e.slice(0,e.at(-2)===Yw?-2:-1):e,Xw=e=>e.at(-1)===Kw?e.subarray(0,e.at(-2)===Qw?-2:-1):e,qw="\n",Kw=qw.codePointAt(0),Yw="\r",Qw=Yw.codePointAt(0);function Jw(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 Zw(e,{checkOpen:t=!0}={}){return Jw(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 eE(e,{checkOpen:t=!0}={}){return Jw(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 tE(e,t){return Zw(e,t)&&eE(e,t)}const rE=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class nE{#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 oE=Symbol();function iE(){return this[oE].next()}function sE(e){return this[oE].return(e)}Object.defineProperty(iE,"name",{value:"next"}),Object.defineProperty(sE,"name",{value:"return"});const aE=Object.create(rE,{next:{enumerable:!0,configurable:!0,writable:!0,value:iE},return:{enumerable:!0,configurable:!0,writable:!0,value:sE}});function cE({preventCancel:e=!1}={}){const t=this.getReader(),r=new nE(t,e),n=Object.create(aE);return n[oE]=r,n}const lE=e=>{if(eE(e,{checkOpen:!1})&&void 0!==dE.on)return fE(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===uE.call(e))return cE.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:uE}=Object.prototype,fE=async function*(e){const t=new AbortController,r={};pE(e,t,r);try{for await(const[r]of dE.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()}},pE=async(e,t,r)=>{try{await dE.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},dE={},hE=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:c=Number.POSITIVE_INFINITY}={})=>{const l=lE(e),u=t();u.length=0;try{for await(const e of l){const t=r[bE(e)](e,u);gE({convertedChunk:t,state:u,getSize:n,truncateChunk:o,addChunk:i,maxBuffer:c})}return mE({state:u,convertChunk:r,getSize:n,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:c}),a(u)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(u),t}},mE=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:o,maxBuffer:i})=>{const s=o(e);void 0!==s&&gE({convertedChunk:s,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:i})},gE=({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 yE(e,t,o,a);const c=n(e,i-t.length);throw void 0!==c&&yE(c,t,o,i),new wE},yE=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},bE=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=vE.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===vE.call(e.buffer)?"typedArray":"others"},{toString:vE}=Object.prototype;class wE extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const EE=e=>e,SE=()=>{},OE=({contents:e})=>e,IE=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},TE=e=>e.length;const jE={init:()=>({contents:[]}),convertChunk:{string:EE,buffer:EE,arrayBuffer:EE,dataView:EE,typedArray:EE,others:EE},getSize:()=>1,truncateChunk:SE,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:SE,finalize:OE};const xE=new TextEncoder,RE=e=>new Uint8Array(e),AE=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),DE=(e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(LE(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},NE=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:LE(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},LE=e=>kE**Math.ceil(Math.log(e)/Math.log(kE)),kE=2,CE=()=>"resize"in ArrayBuffer.prototype,PE={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>xE.encode(e),buffer:RE,arrayBuffer:RE,dataView:AE,typedArray:AE,others:IE},getSize:TE,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const o=CE()?NE(t,n):DE(t,n);return new Uint8Array(o).set(e,r),o},getFinalChunk:SE,finalize:({contents:e,length:t})=>CE()?e:e.slice(0,t)};const ME=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),_E={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:EE,buffer:ME,arrayBuffer:ME,dataView:ME,typedArray:ME,others:IE},getSize:TE,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:OE},$E=(e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters",BE=(e,t,r)=>{if(t.length!==r)return;const n=new wE;throw n.maxBufferInfo={fdNumber:"ipc"},n},FE=(e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:r,unit:n}}=e;delete e.maxBufferInfo;const o=zg(t,r);return"ipc"===r?{streamName:"IPC output",threshold:o,unit:"messages"}:{streamName:Ng(r),threshold:o,unit:n}},UE=([,e])=>e,GE=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:c,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:d})=>{const h=WE(f,p);return t?`Command timed out after ${r} milliseconds${h}`:u?void 0===s?`Command was gracefully canceled with exit code ${c}`:f?`Command was gracefully canceled${h}`:`Command was gracefully canceled with ${s} (${a})`:l?`Command was canceled${h}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:o}=FE(e,t);return`Command's ${r} was larger than ${n} ${o}`})(e,o)}${h}`:void 0!==i?`Command failed with ${i}${h}`:f?`Command was killed with ${d} (${uv(d)})${h}`:void 0!==s?`Command was killed with ${s} (${a})`:void 0!==c?`Command failed with exit code ${c}`:"Command failed"},WE=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",zE=(e,t)=>{if(e instanceof Fb)return;const r=Wb(n=e)&&Gb in n?e.originalMessage:String(e?.message??e);var n;const o=Qg(((e,t)=>{if(t===Fw())return e;let r;try{r=f(t)}catch(r){return`The "cwd" option is invalid: ${t}.\n${r.message}\n${e}`}return r.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(r,t));return""===o?void 0:o},VE=e=>"string"==typeof e?e:j(e),HE=e=>Array.isArray(e)?e.map((e=>Vw(XE(e)))).filter(Boolean).join("\n"):XE(e),XE=e=>"string"==typeof e?e:lg(e)?hg(e):"",qE=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:o,options:{cwd:i},startTime:s})=>JE({command:e,escapedCommand:t,cwd:i,durationMs:_y(s),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:o,pipedFrom:[]}),KE=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:s})=>YE({error:e,command:t,escapedCommand:r,startTime:i,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:o,isSync:s}),YE=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:u,stdio:f,all:p,ipcOutput:d,options:{timeoutDuration:h,timeout:m=h,forceKillAfterDelay:g,killSignal:y,cwd:b,maxBuffer:v},isSync:w})=>{const{exitCode:E,signal:S,signalDescription:O}=ZE(l,u),{originalMessage:I,shortMessage:T,message:j}=(({stdio:e,all:t,ipcOutput:r,originalError:n,signal:o,signalDescription:i,exitCode:s,escapedCommand:a,timedOut:c,isCanceled:l,isGracefullyCanceled:u,isMaxBuffer:f,isForcefullyTerminated:p,forceKillAfterDelay:d,killSignal:h,maxBuffer:m,timeout:g,cwd:y})=>{const b=n?.code,v=GE({originalError:n,timedOut:c,timeout:g,isMaxBuffer:f,maxBuffer:m,errorCode:b,signal:o,signalDescription:i,exitCode:s,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:p,forceKillAfterDelay:d,killSignal:h}),w=zE(n,y),E=`${v}: ${a}${void 0===w?"":`\n${w}`}`,S=[E,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),r.map((e=>VE(e))).join("\n")].map((e=>Qg(Vw(HE(e))))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:E,message:S}})({stdio:f,all:p,ipcOutput:d,originalError:e,signal:S,signalDescription:O,exitCode:E,escapedCommand:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,forceKillAfterDelay:g,killSignal:y,maxBuffer:v,timeout:m,cwd:b}),x=((e,t,r)=>new(r?Vb:zb)(t,e instanceof Fb?{}:{cause:e}))(e,j,w);return Object.assign(x,QE({error:x,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:E,signal:S,signalDescription:O,stdio:f,all:p,ipcOutput:d,cwd:b,originalMessage:I,shortMessage:T})),x},QE=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:f,stdio:p,all:d,ipcOutput:h,cwd:m,originalMessage:g,shortMessage:y})=>JE({shortMessage:y,originalMessage:g,command:t,escapedCommand:r,cwd:m,durationMs:_y(n),failed:!0,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isTerminated:void 0!==u,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:f,code:e.cause?.code,stdout:p[1],stderr:p[2],all:d,stdio:p,ipcOutput:h,pipedFrom:[]}),JE=e=>Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e))),ZE=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:uv(t)}},eS=e=>Number.isFinite(e)?e:0;function tS(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(eS(1e3*e)%1e3),nanoseconds:Math.trunc(eS(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")}const rS=24n*60n*60n*1000n;function nS(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");(t=Object.assign({},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 n=[];const o=(e,r,o,i)=>{if(0!==n.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===o){if(i=i??String(e),t.colonNotation){const e=i.includes(".")?i.split(".")[0].length:i.length,t=n.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`)(r,e):o;n.push(i)}},i=tS(e),s=BigInt(i.days);if(o(s/365n,"year","y"),o(s%365n,"day","d"),o(Number(i.hours),"hour","h"),o(Number(i.minutes),"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(i.seconds),r=Number(i.milliseconds),n=Number(i.microseconds),s=Number(i.nanoseconds);if(o(e,"second","s"),t.formatSubMilliseconds)o(r,"millisecond","ms"),o(n,"microsecond","µs"),o(s,"nanosecond","ns");else{const e=r+n/1e3+s/1e6,i="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),c=i?e.toFixed(i):a;o(Number.parseFloat(c),"millisecond","ms",c)}}else{const n=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})((r?Number(e%rS):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),i=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");o(Number.parseFloat(i),"second","s",i)}if(0===n.length)return"0"+(t.verbose?" milliseconds":"ms");const a=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(n=n.slice(0,Math.max(t.unitCount,1))),n.join(a)}const oS=(e,t)=>{Vg(t)&&(((e,t)=>{e.failed&&jy({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})})(e,t),iS(e,t))},iS=(e,t)=>{const r=`(done in ${nS(e.durationMs)})`;jy({type:"duration",verboseMessage:r,verboseInfo:t,result:e})},sS=(e,t,{reject:r})=>{if(oS(e,t),e.failed&&r)throw e;return e},aS=(e,t)=>gS(e)?"asyncGenerator":yS(e)?"generator":vS(e)?"fileUrl":wS(e)?"filePath":TS(e)?"webStream":Jw(e,{checkOpen:!1})?"native":lg(e)?"uint8Array":xS(e)?"asyncIterable":RS(e)?"iterable":jS(e)?uS({transform:e},t):bS(e)?cS(e,t):"native",cS=(e,t)=>tE(e.transform,{checkOpen:!1})?lS(e,t):jS(e.transform)?uS(e,t):dS(e,t),lS=(e,t)=>(fS(e,t,"Duplex stream"),"duplex"),uS=(e,t)=>(fS(e,t,"web TransformStream"),"webTransform"),fS=({final:e,binary:t,objectMode:r},n,o)=>{pS(e,`${n}.final`,o),pS(t,`${n}.binary`,o),hS(r,`${n}.objectMode`)},pS=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},dS=({transform:e,final:t,binary:r,objectMode:n},o)=>{if(void 0!==e&&!mS(e))throw new TypeError(`The \`${o}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(tE(t,{checkOpen:!1}))throw new TypeError(`The \`${o}.final\` option must not be a Duplex stream.`);if(jS(t))throw new TypeError(`The \`${o}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!mS(t))throw new TypeError(`The \`${o}.final\` option must be a generator.`);return hS(r,`${o}.binary`),hS(n,`${o}.objectMode`),gS(e)||gS(t)?"asyncGenerator":"generator"},hS=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},mS=e=>gS(e)||yS(e),gS=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),yS=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),bS=e=>bf(e)&&(void 0!==e.transform||void 0!==e.final),vS=e=>"[object URL]"===Object.prototype.toString.call(e),wS=e=>bf(e)&&1===Object.keys(e).length&&ES(e.file),ES=e=>"string"==typeof e,SS=new Set(["ipc","ignore","inherit","overlapped","pipe"]),OS=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),IS=e=>"[object WritableStream]"===Object.prototype.toString.call(e),TS=e=>OS(e)||IS(e),jS=e=>OS(e?.readable)&&IS(e?.writable),xS=e=>AS(e)&&"function"==typeof e[Symbol.asyncIterator],RS=e=>AS(e)&&"function"==typeof e[Symbol.iterator],AS=e=>"object"==typeof e&&null!==e,DS=new Set(["generator","asyncGenerator","duplex","webTransform"]),NS=new Set(["fileUrl","filePath","fileNumber"]),LS=new Set(["fileUrl","filePath"]),kS=new Set([...LS,"webStream","nodeStream"]),CS=new Set(["webTransform","duplex"]),PS={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"},MS=(e,t,r,n)=>"output"===n?_S(e,t,r):$S(e,t,r),_S=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},$S=(e,t,r)=>{const n=0===t?!0===e:r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:t!==r.length-1&&(e??n)}},BS=(e,t,r,{encoding:n})=>{const o=e.filter((({type:e})=>DS.has(e))),i=Array.from({length:o.length});for(const[e,s]of Object.entries(o))i[e]=FS({stdioItem:s,index:Number(e),newTransforms:i,optionName:t,direction:r,encoding:n});return zS(i,r)},FS=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:o,direction:i,encoding:s})=>"duplex"===t?US({stdioItem:e,optionName:o}):"webTransform"===t?GS({stdioItem:e,index:r,newTransforms:n,direction:i}):WS({stdioItem:e,index:r,newTransforms:n,direction:i,encoding:s}),US=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:o=n}},optionName:i})=>{if(o&&!n)throw new TypeError(`The \`${i}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!o&&n)throw new TypeError(`The \`${i}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return Object.assign(Object.assign({},e),{},{value:{transform:t,writableObjectMode:r,readableObjectMode:n}})},GS=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o})=>{const{transform:i,objectMode:s}=bf(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:c}=MS(s,r,n,o);return Object.assign(Object.assign({},e),{},{value:{transform:i,writableObjectMode:a,readableObjectMode:c}})},WS=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:o,encoding:i})=>{const{transform:s,final:a,binary:c=!1,preserveNewlines:l=!1,objectMode:u}=bf(t)?t:{transform:t},f=c||Pw.has(i),{writableObjectMode:p,readableObjectMode:d}=MS(u,r,n,o);return Object.assign(Object.assign({},e),{},{value:{transform:s,final:a,binary:f,preserveNewlines:l,writableObjectMode:p,readableObjectMode:d}})},zS=(e,t)=>"input"===t?e.reverse():e,VS=({type:e,value:t},r)=>HS[r]??KS[e](t),HS=["input","output","output"],XS=()=>{},qS=()=>"input",KS={generator:XS,asyncGenerator:XS,fileUrl:XS,filePath:XS,iterable:qS,asyncIterable:qS,uint8Array:qS,webStream:e=>IS(e)?"output":"input",nodeStream:e=>eE(e,{checkOpen:!1})?Zw(e,{checkOpen:!1})?void 0:"input":"output",webTransform:XS,duplex:XS,native(e){const t=YS(e);return void 0!==t?t:Jw(e,{checkOpen:!1})?KS.nodeStream(e):void 0}},YS=e=>[0,D.stdin].includes(e)?"input":[1,2,D.stdout,D.stderr].includes(e)?"output":void 0,QS="output",JS=["stdio","ipc","buffer"],ZS=(e,t)=>{if(void 0===e)return Dg.map((e=>t[e]));if(eO(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Dg.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e)return[e,e,e];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const r=Math.max(e.length,Dg.length);return Array.from({length:r},((t,r)=>e[r]))},eO=e=>Dg.some((t=>void 0!==e[t])),tO=(e,t)=>Array.isArray(e)?e.map((e=>tO(e,t))):null==e?t>=Dg.length?"ignore":"pipe":e,rO=(e,t,r)=>e.map(((e,n)=>t[n]||0===n||Hg(r,n)||!nO(e)?e:"ignore")),nO=e=>"pipe"===e||Array.isArray(e)&&e.every((e=>"pipe"===e)),oO=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:o})=>{const i=iO({value:t,optionName:r,fdNumber:n,direction:o});if(void 0!==i)return i;if(Jw(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},iO=({value:e,optionName:t,fdNumber:r,direction:n})=>{const o=sO(e,r);if(void 0!==o){if("output"===n)return{type:"fileNumber",value:o,optionName:t};if(P.isatty(o))throw new TypeError(`The \`${t}: ${Gv(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:ug(p(o)),optionName:t}}},sO=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=Ag.indexOf(e);return-1!==r?r:void 0},aO=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:cO(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:cO(t,t,r),optionName:r}:Jw(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,cO=(e,t,r)=>{const n=Ag[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},lO=({input:e,inputFile:t},r)=>0===r?[...uO(e),...pO(t)]:[],uO=e=>void 0===e?[]:[{type:fO(e),value:e,optionName:"input"}],fO=e=>{if(eE(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(lg(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},pO=e=>void 0===e?[]:[Object.assign(Object.assign({},dO(e)),{},{optionName:"inputFile"})],dO=e=>{if(vS(e))return{type:"fileUrl",value:e};if(ES(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")};var hO=ue,mO=Nr,gO=Ls,yO=Ca,bO=Zo,vO=ue,wO=mt,EO=Nr,SO=Ls,OO=function(e,t){t&&"string"==typeof e||mO(e);var r=yO(e);return gO(mO(void 0!==r?hO(r,e):e))},IO=_s,TO=ea((function(){for(var e,t,r=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(e=EO(vO(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){IO(r,"throw",e)}if(e=EO(vO(this.next,r)),this.done=!!e.done)return;try{this.inner=OO(n(e.value,this.counter++),!1)}catch(e){IO(r,"throw",e)}}}));bO({target:"Iterator",proto:!0,real:!0,forced:false},{flatMap:function(e){return EO(this),wO(e),new TO(SO(this),{mapper:e,inner:null})}});const jO=(e,t)=>e.flatMap((({direction:e,stdioItems:r})=>r.filter((e=>e.type===t)).map((t=>Object.assign(Object.assign({},t),{},{direction:e}))))),xO=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{LS.has(t)&&RO({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})},RO=({otherStdioItems:e,type:t,value:r,optionName:n,direction:o})=>{const i=e.filter((e=>AO(e,r)));if(0===i.length)return;const s=i.find((e=>e.direction!==o));return NO(s,n,t),"output"===o?i[0].stream:void 0},AO=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,DO=({otherStdioItems:e,type:t,value:r,optionName:n})=>{const o=e.find((({value:{transform:e}})=>e===r.transform));NO(o,n,t)},NO=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${PS[r]} that is the same.`)},LO=(e,t,r,n)=>{const o=((e,t,r)=>{let{stdio:n,ipc:o,buffer:i}=e,s=xg(e,JS);const a=ZS(n,s).map(((e,t)=>tO(e,t)));return r?rO(a,i,t):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(a,o)})(t,r,n),i=o.map(((e,r)=>kO({stdioOption:e,fdNumber:r,options:t,isSync:n}))),s=UO({initialFileDescriptors:i,addProperties:e,options:t,isSync:n});return t.stdio=s.map((({stdioItems:e})=>VO(e))),s},kO=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const o=Ng(t),{stdioItems:i,isStdioArray:s}=CO({stdioOption:e,fdNumber:t,options:r,optionName:o}),a=((e,t,r)=>{const n=e.map((e=>VS(e,t)));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??QS})(i,t,o),c=i.map((e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:o,isSync:i})=>r&&"native"===t?i?oO({stdioItem:e,fdNumber:n,direction:o}):aO({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:s,fdNumber:t,direction:a,isSync:n}))),l=((e,t,r,n)=>[...e.filter((({type:e})=>!DS.has(e))),...BS(e,t,r,n)])(c,o,a,r),u=((e,t)=>{const r=e.findLast((({type:e})=>DS.has(e)));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(l,a);return FO(l,u),{direction:a,objectMode:u,stdioItems:l}},CO=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{const o=(e=>e.filter(((t,r)=>e.every(((e,n)=>t.value!==e.value||r>=n||"generator"===t.type||"asyncGenerator"===t.type)))))([...(Array.isArray(e)?e:[e]).map((e=>PO(e,n))),...lO(r,t)]),i=o.length>1;return MO(o,i,n),$O(o),{stdioItems:o,isStdioArray:i}},PO=(e,t)=>({type:aS(e,t),value:e,optionName:t}),MO=(e,t,r)=>{if(0===e.length)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t)for(const{value:t,optionName:r}of e)if(_O.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},_O=new Set(["ignore","ipc"]),$O=e=>{for(const t of e)BO(t)},BO=({type:e,value:t,optionName:r})=>{if((e=>vS(e)&&"file:"!==e.protocol)(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(((e,t)=>"native"===e&&"string"==typeof t&&!SS.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},FO=(e,t)=>{if(!t)return;const r=e.find((({type:e})=>NS.has(e)));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},UO=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const o=[];try{for(const i of e)o.push(GO({fileDescriptor:i,fileDescriptors:o,addProperties:t,options:r,isSync:n}));return o}catch(e){throw zO(o),e}},GO=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:o,options:i,isSync:s})=>{const a=r.map((t=>WO({stdioItem:t,addProperties:o,direction:e,options:i,fileDescriptors:n,isSync:s})));return{direction:e,objectMode:t,stdioItems:a}},WO=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:o,isSync:i})=>{const s=(({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:o,isSync:i})=>{const s=jO(o,e);if(0!==s.length){if(!i)return kS.has(e)?RO({otherStdioItems:s,type:e,value:t,optionName:r,direction:n}):void(CS.has(e)&&DO({otherStdioItems:s,type:e,value:t,optionName:r}));xO({otherStdioItems:s,type:e,value:t,optionName:r,direction:n})}})({stdioItem:e,direction:r,fileDescriptors:o,isSync:i});return void 0!==s?Object.assign(Object.assign({},e),{},{stream:s}):Object.assign(Object.assign({},e),t[r][e.type](e,n))},zO=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||Rg(e)||e.destroy()},VO=e=>{if(e.length>1)return e.some((({value:e})=>"overlapped"===e))?"overlapped":"pipe";const[{type:t,value:r}]=e;return"native"===t?r:"pipe"},HO=({type:e,optionName:t})=>{XO(t,PS[e])},XO=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},qO={generator(){},asyncGenerator:HO,webStream:HO,nodeStream:HO,webTransform:HO,duplex:HO,asyncIterable:HO,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||XO(e,`"${t}"`),{})},KO={input:Object.assign(Object.assign({},qO),{},{fileUrl:({value:e})=>({contents:[ug(p(e))]}),filePath:({value:{file:e}})=>({contents:[ug(p(e))]}),fileNumber:HO,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})}),output:Object.assign(Object.assign({},qO),{},{fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e}})=>({path:e}),fileNumber:({value:e})=>({path:e}),iterable:HO,string:HO,uint8Array:HO})},YO=(e,{stripFinalNewline:t},r)=>QO(t,r)&&void 0!==e&&!Array.isArray(e)?Vw(e):e,QO=(e,t)=>"all"===t?e[1]||e[2]:e[t],JO=(e,t,r,n)=>e||r?void 0:tI(t,n),ZO=(e,t,r)=>r?e.flatMap((e=>eI(e,t))):eI(e,t),eI=(e,t)=>{const{transform:r,final:n}=tI(t,{});return[...r(e),...n()]},tI=(e,t)=>(t.previousChunks="",{transform:rI.bind(void 0,t,e),final:oI.bind(void 0,t)}),rI=function*(e,t,r){if("string"!=typeof r)return void(yield r);let{previousChunks:n}=e,o=-1;for(let i=0;i<r.length;i+=1)if("\n"===r[i]){const s=nI(r,i,t,e);let a=r.slice(o+1,i+1-s);n.length>0&&(a=aI(n,a),n=""),yield a,o=i}o!==r.length-1&&(n=aI(n,r.slice(o+1))),e.previousChunks=n},nI=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),oI=function*({previousChunks:e}){e.length>0&&(yield e)},iI=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:sI.bind(void 0,n)},sI=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:o,concatBytes:i}="string"==typeof t?cI:lI;if(t.at(-1)===o)return void(yield t);const s=e?n:r;yield i(t,s)},aI=(e,t)=>`${e}${t}`,cI={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:aI},lI={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}},uI=(e,t)=>e?void 0:fI.bind(void 0,t),fI=function*(e,t){if("string"!=typeof t&&!lg(t)&&!J.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},pI=(e,t)=>e?dI.bind(void 0,t):hI.bind(void 0,t),dI=function*(e,t){mI(e,t),yield t},hI=function*(e,t){if(mI(e,t),"string"!=typeof t&&!lg(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},mI=(e,t)=>{if(null==t)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)},gI=(e,t,r)=>{if(r)return;if(e)return{transform:yI.bind(void 0,new TextEncoder)};const n=new O(t);return{transform:bI.bind(void 0,n),final:vI.bind(void 0,n)}},yI=function*(e,t){J.isBuffer(t)?yield ug(t):"string"==typeof t?yield e.encode(t):yield t},bI=function*(e,t){yield lg(t)?e.write(t):t},vI=function*(e){const t=e.end();""!==t&&(yield t)},wI=R((async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(const e of t.currentIterable)n.push(e)}finally{delete t.currentIterable}})),EI=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=TI}=t[r];for await(const o of n(e))yield*EI(o,t,r+1)},SI=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*OI(r,Number(t),e)},OI=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*EI(n,r,t+1)},II=R((async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())})),TI=function*(e){yield e},jI=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},xI=(e,t)=>[...t.flatMap((t=>[...RI(t,e,0)])),...AI(e)],RI=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=NI}=t[r];for(const o of n(e))yield*RI(o,t,r+1)},AI=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*DI(r,Number(t),e)},DI=function*(e,t,r){if(void 0!==e)for(const n of e())yield*RI(n,r,t+1)},NI=function*(e){yield e},LI=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:o},optionName:i},{encoding:s})=>{const a={},c=CI(e,s,i),l=gS(t),u=gS(r),f=l?wI.bind(void 0,EI,a):jI.bind(void 0,RI),p=l||u?wI.bind(void 0,SI,a):jI.bind(void 0,AI),d=l||u?II.bind(void 0,a):void 0;return{stream:new H({writableObjectMode:n,writableHighWaterMark:X(n),readableObjectMode:o,readableHighWaterMark:X(o),transform(e,t,r){f([e,c,0],this,r)},flush(e){p([c],this,e)},destroy:d})}},kI=(e,t,r,n)=>{const o=t.filter((({type:e})=>"generator"===e)),i=n?o.reverse():o;for(const{value:t,optionName:n}of i){const o=CI(t,r,n);e=xI(o,e)}return e},CI=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:o,preserveNewlines:i},s,a)=>{const c={};return[{transform:uI(n,a)},gI(r,s,n),JO(r,i,n,c),{transform:e,final:t},{transform:pI(o,a)},iI({binary:r,preserveNewlines:i,readableObjectMode:o,state:c})].filter(Boolean)},PI=e=>new Set(Object.entries(e).filter((([,{direction:e}])=>"input"===e)).map((([e])=>Number(e)))),MI=(e,t,r)=>{const{stdioItems:n}=e[t],o=n.filter((({contents:e})=>void 0!==e));if(0===o.length)return;if(0!==t){const[{type:e,optionName:t}]=o;throw new TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${PS[e]} with synchronous methods.`)}const i=o.map((({contents:e})=>e)).map((e=>_I(e,n)));r.input=gg(i)},_I=(e,t)=>{const r=kI(e,t,"utf8",!0);return $I(r),gg(r)},$I=e=>{const t=e.find((e=>"string"!=typeof e&&!lg(e)));if(void 0!==t)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)},BI=({stdioItems:e,encoding:t,verboseInfo:r,fdNumber:n})=>"all"!==n&&Hg(r,n)&&!Pw.has(t)&&FI(n)&&(e.some((({type:e,value:t})=>"native"===e&&UI.has(t)))||e.every((({type:e})=>DS.has(e)))),FI=e=>1===e||2===e,UI=new Set(["pipe","overlapped"]),GI=e=>e._readableState.pipes.length>0,WI=(e,t,r)=>{const n=Ny(e);jy({type:"output",verboseMessage:n,fdNumber:t,verboseInfo:r})},zI=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:o,isMaxBuffer:i,verboseInfo:s},{buffer:a,encoding:c,lines:l,stripFinalNewline:u,maxBuffer:f})=>{if(null===e)return;const p=((e,t,r)=>{if(!t)return e;const n=UE(r);return e.length>n?e.slice(0,n):e})(e,i,f),d=ug(p),{stdioItems:h,objectMode:m}=t[r],g=VI([d],h,c,n),{serializedResult:y,finalResult:b=y}=HI({chunks:g,objectMode:m,encoding:c,lines:l,stripFinalNewline:u,fdNumber:r});XI({serializedResult:y,fdNumber:r,state:n,verboseInfo:s,encoding:c,stdioItems:h,objectMode:m});const v=a[r]?b:void 0;try{return void 0===n.error&&qI(y,h,o),v}catch(e){return n.error=e,v}},VI=(e,t,r,n)=>{try{return kI(e,t,r,!1)}catch(t){return n.error=t,e}},HI=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:o,fdNumber:i})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:gg(e)};const s=((e,t)=>mg(e,t).join(""))(e,r);return n[i]?{serializedResult:s,finalResult:ZO(s,!o[i],t)}:{serializedResult:s}},XI=({serializedResult:e,fdNumber:t,state:r,verboseInfo:n,encoding:o,stdioItems:i,objectMode:s})=>{if(!BI({stdioItems:i,encoding:o,verboseInfo:n,fdNumber:t}))return;const a=ZO(e,!1,s);try{((e,t,r)=>{for(const n of e)WI(n,t,r)})(a,t,n)}catch(e){r.error??=e}},qI=(e,t,r)=>{for(const{path:n}of t.filter((({type:e})=>NS.has(e)))){const t="string"==typeof n?n:n.toString();r.has(t)?d(n,e):(r.add(t),u(n,e))}},KI=async e=>{const[t,r]=await Promise.allSettled([F(e,"spawn"),F(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?YI(e):r.value},YI=async e=>{try{return await F(e,"exit")}catch{return YI(e)}},QI=async e=>{const[t,r]=await e;if(!JI(t,r)&&ZI(t,r))throw new Fb;return[t,r]},JI=(e,t)=>void 0===e&&void 0===t,ZI=(e,t)=>0!==e||null!==t,eT=({error:e,status:t,signal:r,output:n},{maxBuffer:o})=>{const i=tT(e,t,r),s="ETIMEDOUT"===i?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some((e=>null!==e&&e.length>UE(r))))(i,n,o);return{resultError:i,exitCode:t,signal:r,timedOut:s,isMaxBuffer:a}},tT=(e,t,r)=>void 0!==e?e:ZI(t,r)?new Fb:void 0,rT=["encoding","maxBuffer"],nT=(e,t,r)=>{const{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=$y(e,t,r),a=oT(r),{file:c,commandArguments:l,options:u}=Gw(e,t,a);iT(u);const f=((e,t)=>LO(KO,e,t,!0))(u,s);return{file:c,commandArguments:l,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:u,fileDescriptors:f}},oT=e=>e.node&&!e.ipc?Object.assign(Object.assign({},e),{},{ipc:!1}):e,iT=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&sT("ipcInput"),e&&sT("ipc: true"),r&&sT("detached: true"),n&&sT("cancelSignal")},sT=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},aT=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,verboseInfo:i,fileDescriptors:s,startTime:a})=>{const c=cT({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:s,startTime:a});if(c.failed)return c;const{resultError:l,exitCode:u,signal:f,timedOut:p,isMaxBuffer:d}=eT(c,r),{output:h,error:m=l}=(({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:o})=>{if(null===t)return{output:Array.from({length:3})};const i={},s=new Set([]),a=t.map(((t,a)=>zI({result:t,fileDescriptors:e,fdNumber:a,state:i,outputFiles:s,isMaxBuffer:n,verboseInfo:o},r)));return Object.assign({output:a},i)})({fileDescriptors:s,syncResult:c,options:r,isMaxBuffer:d,verboseInfo:i}),g=h.map(((e,t)=>YO(e,r,t))),y=YO((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,YO(t,r,"all")]:Array.isArray(t)?[YO(e,r,"all"),...t]:lg(e)&&lg(t)?bg([e,t]):`${e}${t}`})(h,r),r,"all");return uT({error:m,exitCode:u,signal:f,timedOut:p,isMaxBuffer:d,stdio:g,all:y,options:r,command:n,escapedCommand:o,startTime:a})},cT=({file:e,commandArguments:t,options:r,command:n,escapedCommand:o,fileDescriptors:i,startTime:s})=>{try{((e,t)=>{for(const r of PI(e))MI(e,r,t)})(i,r);const n=lT(r);return E(e,t,n)}catch(e){return KE({error:e,command:n,escapedCommand:o,fileDescriptors:i,options:r,startTime:s,isSync:!0})}},lT=e=>{let{encoding:t,maxBuffer:r}=e,n=xg(e,rT);return Object.assign(Object.assign({},n),{},{encoding:"buffer",maxBuffer:UE(r)})},uT=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:o,stdio:i,all:s,options:a,command:c,escapedCommand:l,startTime:u})=>void 0===e?qE({command:c,escapedCommand:l,stdio:i,all:s,ipcOutput:[],options:a,startTime:u}):YE({error:e,command:c,escapedCommand:l,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:o,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:i,all:s,ipcOutput:[],options:a,startTime:u,isSync:!0}),fT=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0,filter:i}={})=>(wv({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:ew(e)}),pT({anyProcess:e,channel:t,isSubprocess:r,filter:i,reference:o})),pT=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:o})=>{zv(t,o);const i=Qv(e,t,r),s=new AbortController;try{return await Promise.race([dT(i,n,s),hT(i,r,s),mT(i,r,s)])}catch(t){throw Dv(e),t}finally{s.abort(),Hv(t,o)}},dT=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await F(e,"message",{signal:r});return t}for await(const[n]of W(e,"message",{signal:r}))if(t(n))return n},hT=async(e,t,{signal:r})=>{await F(e,"disconnect",{signal:r}),(e=>{throw new Error(`${xv("getOneMessage",e)} could not complete: the ${Av(e)} exited or disconnected.`)})(t)},mT=async(e,t,{signal:r})=>{const[n]=await F(e,"strict:error",{signal:r});throw Ov(n,t)},gT=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:o=!0}={})=>yT({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:o}),yT=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:o,reference:i})=>{wv({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:ew(e)}),zv(t,i);const s=Qv(e,t,r),a=new AbortController,c={};return bT(e,s,a),vT({ipcEmitter:s,isSubprocess:r,controller:a,state:c}),wT({anyProcess:e,channel:t,ipcEmitter:s,isSubprocess:r,shouldAwait:o,controller:a,state:c,reference:i})},bT=async(e,t,r)=>{try{await F(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},vT=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[o]=await F(e,"strict:error",{signal:r.signal});n.error=Ov(o,t),r.abort()}catch{}},wT=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:o,controller:i,state:s,reference:a}){try{for await(const[e]of W(r,"message",{signal:i.signal}))ET(s),yield e}catch{ET(s)}finally{i.abort(),Hv(t,a),n||Dv(e),o&&await e}},ET=({error:e})=>{if(e)throw e},ST=(e,t,r)=>({sendMessage:hw.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:fT.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:gT.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),OT=(e,t)=>{const r=IT(),n=IT(),o=IT(),i=Array.from({length:t.length-3},IT),s=IT(),a=[r,n,o,...i];Object.assign(e,{stdin:r,stdout:n,stderr:o,all:s,stdio:a})},IT=()=>{const e=new q;return e.end(),e},TT=()=>new K({read(){}}),jT=()=>new Y({write(){}}),xT=()=>new Q({read(){},write(){}}),RT=async(e,t,r)=>sS(e,t,r),AT=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${PS[e]}.`)},DT={fileNumber:AT,generator:LI,asyncGenerator:LI,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:Q.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},NT={input:Object.assign(Object.assign({},DT),{},{fileUrl:({value:e})=>({stream:h(e)}),filePath:({value:{file:e}})=>({stream:h(e)}),webStream:({value:e})=>({stream:K.fromWeb(e)}),iterable:({value:e})=>({stream:K.from(e)}),asyncIterable:({value:e})=>({stream:K.from(e)}),string:({value:e})=>({stream:K.from(e)}),uint8Array:({value:e})=>({stream:K.from(J.from(e))})}),output:Object.assign(Object.assign({},DT),{},{fileUrl:({value:e})=>({stream:m(e)}),filePath:({value:{file:e}})=>({stream:m(e)}),webStream:({value:e})=>({stream:Y.fromWeb(e)}),iterable:AT,asyncIterable:AT,string:AT,uint8Array:AT})};function LT(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)$T(t);const t=e.some((({readableObjectMode:e})=>e)),r=kT(e,t),n=new CT({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const kT=(e,t)=>{if(0===e.length)return X(t);const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class CT extends q{#s=new Set([]);#a=new Set([]);#c=new Set([]);#l;#u=Symbol("unpipe");#f=new WeakMap;add(e){if($T(e),this.#s.has(e))return;this.#s.add(e),this.#l??=PT(this,this.#s,this.#u);const t=BT({passThroughStream:this,stream:e,streams:this.#s,ended:this.#a,aborted:this.#c,onFinished:this.#l,unpipeEvent:this.#u});this.#f.set(e,t),e.pipe(this,{end:!1})}async remove(e){if($T(e),!this.#s.has(e))return!1;const t=this.#f.get(e);return void 0!==t&&(this.#f.delete(e),e.unpipe(this),await t,!0)}}const PT=async(e,t,r)=>{KT(e,YT);const n=new AbortController;try{await Promise.race([MT(e,n),_T(e,t,r,n)])}finally{n.abort(),KT(e,-YT)}},MT=async(e,{signal:t})=>{try{await Z(e,{signal:t,cleanup:!0})}catch(t){throw zT(e,t),t}},_T=async(e,t,r,{signal:n})=>{for await(const[o]of W(e,"unpipe",{signal:n}))t.has(o)&&o.emit(r)},$T=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},BT=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,onFinished:i,unpipeEvent:s})=>{KT(e,QT);const a=new AbortController;try{await Promise.race([FT(i,t,a),UT({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:a}),GT({stream:t,streams:r,ended:n,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),KT(e,-QT)}r.size>0&&r.size===n.size+o.size&&(0===n.size&&o.size>0?HT(e):WT(e))},FT=async(e,t,{signal:r})=>{try{await e,r.aborted||HT(t)}catch(e){r.aborted||zT(t,e)}},UT=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:o,controller:{signal:i}})=>{try{await Z(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(n){if(i.aborted||!r.has(t))return;VT(n)?o.add(t):XT(e,n)}},GT=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:o,controller:{signal:i}})=>{if(await F(e,o,{signal:i}),!e.readable)return F(i,"abort",{signal:i});t.delete(e),r.delete(e),n.delete(e)},WT=e=>{e.writable&&e.end()},zT=(e,t)=>{VT(t)?HT(e):XT(e,t)},VT=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,HT=e=>{(e.readable||e.writable)&&e.destroy()},XT=(e,t)=>{e.destroyed||(e.once("error",qT),e.destroy(t))},qT=()=>{},KT=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},YT=2,QT=1,JT=(e,t)=>{e.pipe(t),ZT(e,t),tj(e,t)},ZT=async(e,t)=>{if(!Rg(e)&&!Rg(t)){try{await Z(e,{cleanup:!0,readable:!0,writable:!1})}catch{}ej(t)}},ej=e=>{e.writable&&e.end()},tj=async(e,t)=>{if(!Rg(e)&&!Rg(t)){try{await Z(t,{cleanup:!0,readable:!1,writable:!0})}catch{}rj(e)}},rj=e=>{e.readable&&e.destroy()},nj=(e,t,r,n)=>{"output"===r?JT(e.stdio[n],t):JT(t,e.stdio[n]);const o=oj[n];void 0!==o&&(e[o]=t),e.stdio[n]=t},oj=["stdin","stdout","stderr"],ij=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:o,controller:i})=>{if(void 0===t)return;sj(t,i);const[s,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],c=o.get(s)??[];o.set(s,[...c,a])},sj=(e,{signal:t})=>{Rg(e)&&Wv(e,aj,t)},aj=2,cj=[];cj.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&cj.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&cj.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const lj=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,uj=Symbol.for("signal-exit emitter"),fj=globalThis,pj=Object.defineProperty.bind(Object);class dj{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(fj[uj])return fj[uj];pj(fj,uj,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const o of this.listeners[e])n=!0===o(t,r)||n;return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class hj{}const mj=globalThis.process,{onExit:gj,load:yj,unload:bj}=(vj=lj(mj)?new class extends hj{#p="win32"===mj.platform?"SIGINT":"SIGHUP";#d=new dj;#h;#m;#g;#y={};#b=!1;constructor(e){super(),this.#h=e,this.#y={};for(const t of cj)this.#y[t]=()=>{const r=this.#h.listeners(t);let{count:n}=this.#d;const o=e;if("object"==typeof o.__signal_exit_emitter__&&"number"==typeof o.__signal_exit_emitter__.count&&(n+=o.__signal_exit_emitter__.count),r.length===n){this.unload();const r=this.#d.emit("exit",null,t),n="SIGHUP"===t?this.#p:t;r||e.kill(e.pid,n)}};this.#g=e.reallyExit,this.#m=e.emit}onExit(e,t){if(!lj(this.#h))return()=>{};!1===this.#b&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#d.on(r,e),()=>{this.#d.removeListener(r,e),0===this.#d.listeners.exit.length&&0===this.#d.listeners.afterExit.length&&this.unload()}}load(){if(!this.#b){this.#b=!0,this.#d.count+=1;for(const e of cj)try{const t=this.#y[e];t&&this.#h.on(e,t)}catch(e){}this.#h.emit=(e,...t)=>this.#v(e,...t),this.#h.reallyExit=e=>this.#w(e)}}unload(){this.#b&&(this.#b=!1,cj.forEach((e=>{const t=this.#y[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#h.removeListener(e,t)}catch(e){}})),this.#h.emit=this.#m,this.#h.reallyExit=this.#g,this.#d.count-=1)}#w(e){return lj(this.#h)?(this.#h.exitCode=e||0,this.#d.emit("exit",this.#h.exitCode,null),this.#g.call(this.#h,this.#h.exitCode)):0}#v(e,...t){const r=this.#m;if("exit"===e&&lj(this.#h)){"number"==typeof t[0]&&(this.#h.exitCode=t[0]);const n=r.call(this.#h,e,...t);return this.#d.emit("exit",this.#h.exitCode,null),n}return r.call(this.#h,e,...t)}}(mj):new class extends hj{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>vj.onExit(e,t),load:()=>vj.load(),unload:()=>vj.unload()});var vj;const wj=(e,t,r)=>{try{const{destination:n,pipeOptions:{from:o,to:i,unpipeSignal:s}={}}=Ej(e,t,...r);return{destination:n,destinationStream:Lv(n,i),from:o,unpipeSignal:s}}catch(e){return{destinationError:e}}},Ej=(e,t,r,...n)=>{if(Array.isArray(r)){return{destination:t(Sj,e)(r,...n),pipeOptions:e}}if("string"==typeof r||r instanceof URL){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');const[o,i,s]=tp(r,...n);return{destination:t(Sj)(o,i,s),pipeOptions:s}}if(Cv.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},Sj=({options:e})=>({options:Object.assign(Object.assign({},e),{},{stdin:"pipe",piped:!0})}),Oj=(e,t)=>{try{return{sourceStream:kv(e,t)}}catch(e){return{sourceError:e}}},Ij=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(rj(e),n):void 0!==t?(ej(r),t):void 0,Tj=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>KE({error:e,command:jj,escapedCommand:jj,fileDescriptors:t,options:r,startTime:n,isSync:!1}),jj="source.pipe(destination)",xj=async e=>{const[{status:t,reason:r,value:n=r},{status:o,reason:i,value:s=i}]=await e;if(s.pipedFrom.includes(n)||s.pipedFrom.push(n),"rejected"===o)throw s;if("rejected"===t)throw n;return s},Rj=(e,t)=>{const r=LT([e]);return JT(r,t),Nj.set(t,r),r},Aj=(e,t)=>{const r=Nj.get(t);return r.add(e),r},Dj=async e=>{try{await Z(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Nj.delete(e)},Nj=new WeakMap,Lj=2,kj=1,Cj=(e,t)=>void 0===e?[]:[Pj(e,t)],Pj=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:o,startTime:i})=>{await A(e,t),await r.remove(t);const s=new Error("Pipe canceled by `unpipeSignal` option.");throw Tj({error:s,fileDescriptors:n,sourceOptions:o,startTime:i})},Mj=["destination"],_j=(e,...t)=>{if(bf(t[0]))return _j.bind(void 0,Object.assign(Object.assign({},e),{},{boundOptions:Object.assign(Object.assign({},e.boundOptions),t[0])}));const r=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...o)=>{const i=My(),{destination:s,destinationStream:a,destinationError:c,from:l,unpipeSignal:u}=wj(r,n,o),{sourceStream:f,sourceError:p}=Oj(e,l),{options:d,fileDescriptors:h}=Cv.get(e);return{sourcePromise:t,sourceStream:f,sourceOptions:d,sourceError:p,destination:s,destinationStream:a,destinationError:c,unpipeSignal:u,fileDescriptors:h,startTime:i}})(e,...t),{destination:n}=r,o=xg(r,Mj),i=$j(Object.assign(Object.assign({},o),{},{destination:n}));return i.pipe=_j.bind(void 0,Object.assign(Object.assign({},e),{},{source:n,sourcePromise:i,boundOptions:{}})),i},$j=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:o,destinationStream:i,destinationError:s,unpipeSignal:a,fileDescriptors:c,startTime:l})=>{const u=Bj(e,o);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:o,sourceOptions:i,startTime:s})=>{const a=Ij({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw Tj({error:a,fileDescriptors:o,sourceOptions:i,startTime:s})})({sourceStream:t,sourceError:n,destinationStream:i,destinationError:s,fileDescriptors:c,sourceOptions:r,startTime:l});const f=new AbortController;try{const e=((e,t,r)=>{const n=Nj.has(t)?Aj(e,t):Rj(e,t);return Wv(e,Lj,r.signal),Wv(t,kj,r.signal),Dj(t),n})(t,i,f);return await Promise.race([xj(u),...Cj(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:c,startTime:l})])}finally{f.abort()}},Bj=(e,t)=>Promise.allSettled([e,t]),Fj=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:o,preserveNewlines:i})=>{const s=new AbortController;return Uj(t,s),zj({stream:e,controller:s,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:o,shouldSplit:!e.readableObjectMode,preserveNewlines:i})},Uj=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Gj=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:o,allMixed:i})=>{const s=new AbortController;Wj(t,s,e);const a=e.readableObjectMode&&!i;return zj({stream:e,controller:s,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!o})},Wj=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},zj=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})=>{const a=W(e,"data",{signal:t.signal,highWaterMark:Hj,highWatermark:Hj});return Xj({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s})},Vj=X(!0),Hj=Vj,Xj=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s}){const a=qj({binary:r,shouldEncode:n,encoding:o,shouldSplit:i,preserveNewlines:s});try{for await(const[t]of e)yield*RI(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*AI(a)}},qj=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:o})=>[gI(e,r,!t),JO(e,o,!n,{})].filter(Boolean),Kj=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:o,maxBuffer:i,lines:s,allMixed:a,stripFinalNewline:c,verboseInfo:l,streamInfo:u})=>{const f=Yj({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:a,verboseInfo:l,streamInfo:u});if(!o)return void await Promise.all([Qj(e),f]);const p=QO(c,r),d=Gj({stream:e,onStreamEnd:t,lines:s,encoding:n,stripFinalNewline:p,allMixed:a}),[h]=await Promise.all([Jj({stream:e,iterable:d,fdNumber:r,encoding:n,maxBuffer:i,lines:s}),f]);return h},Yj=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:o,verboseInfo:i,streamInfo:{fileDescriptors:s}})=>{if(!BI({stdioItems:s[r]?.stdioItems,encoding:n,verboseInfo:i,fdNumber:r}))return;const a=Gj({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:o});await(async(e,t,r,n)=>{for await(const o of e)GI(t)||WI(o,r,n)})(a,e,r,i)},Qj=async e=>{await $(),null===e.readableFlowing&&e.resume()},Jj=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:o,maxBuffer:i,lines:s})=>{try{return t||s?await async function(e,t){return hE(e,jE,t)}(r,{maxBuffer:i}):"buffer"===o?new Uint8Array(await async function(e,t){return hE(e,PE,t)}(r,{maxBuffer:i})):await async function(e,t){return hE(e,_E,t)}(r,{maxBuffer:i})}catch(r){return ex((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:o,fdNumber:i})=>{if(!(e instanceof wE))throw e;if("all"===i)return e;const s=$E(r,n,o);throw e.maxBufferInfo={fdNumber:i,unit:s},t.destroy(),e})({error:r,stream:e,readableObjectMode:t,lines:s,encoding:o,fdNumber:n}))}},Zj=async e=>{try{return await e}catch(e){return ex(e)}},ex=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===cg.call(t)?new Uint8Array(e):e;var t},tx=async(e,t,r,{isSameDirection:n,stopOnExit:o=!1}={})=>{const i=rx(e,r),s=new AbortController;try{await Promise.race([...o?[r.exitPromise]:[],Z(e,{cleanup:!0,signal:s.signal})])}catch(e){i.stdinCleanedUp||ix(e,t,r,n)}finally{s.abort()}},rx=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&nx(e,r,n),n},nx=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...o)=>{ox(t,r),n.call(e,...o)}},ox=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},ix=(e,t,r,n)=>{if(!sx(e,t,r,n))throw e},sx=(e,t,r,n=!0)=>r.propagating?lx(e)||cx(e):(r.propagating=!0,ax(r,t)===n?lx(e):cx(e)),ax=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,cx=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,lx=e=>"EPIPE"===e?.code,ux=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:l})=>{if(!e)return;const u=tx(e,t,l);if(ax(l,t))return void await u;const[f]=await Promise.all([Kj({stream:e,onStreamEnd:u,fdNumber:t,encoding:r,buffer:n,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:l}),u]);return f},fx=({stdout:e,stderr:t,all:r},[,n,o])=>{const i=n||o;return i?n?o?{stream:r,buffer:i}:{stream:e,buffer:i}:{stream:t,buffer:i}:{stream:r,buffer:i}},px=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,dx=(e,t)=>{const r=Ny(e);jy({type:"ipc",verboseMessage:r,fdNumber:"ipc",verboseInfo:t})},hx=async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:o,verboseInfo:i})=>{if(!n)return o;const s=(e=>Hg(e,"ipc"))(i),a=zg(t,"ipc"),c=zg(r,"ipc");for await(const t of yT({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(BE(0,o,c),o.push(t)),s&&dx(t,i);return o},mx=async(e,t)=>(await Promise.allSettled([e]),t),gx=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:o,timeoutDuration:i,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,stripFinalNewline:l,ipc:u,ipcInput:f},context:p,verboseInfo:d,fileDescriptors:h,originalStreams:m,onInternalError:g,controller:y})=>{const b=(async(e,t)=>{const[r,n]=await KI(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,p),v={originalStreams:m,fileDescriptors:h,subprocess:e,exitPromise:b,propagating:!1},w=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>e.stdio.map(((e,c)=>ux({stream:e,fdNumber:c,encoding:t,buffer:r[c],maxBuffer:n[c],lines:o[c],allMixed:!1,stripFinalNewline:i,verboseInfo:s,streamInfo:a}))))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:l,verboseInfo:d,streamInfo:v}),E=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>ux(Object.assign(Object.assign({},fx(e,r)),{},{fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:o[1]||o[2],allMixed:px(e),stripFinalNewline:i,verboseInfo:s,streamInfo:a})))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:o,stripFinalNewline:l,verboseInfo:d,streamInfo:v}),S=[],O=hx({subprocess:e,buffer:r,maxBuffer:n,ipc:u,ipcOutput:S,verboseInfo:d}),I=yx(m,e,v),T=bx(h,v);try{return await Promise.race([Promise.all([{},QI(b),Promise.all(w),E,O,kw(e,f),...I,...T]),g,vx(e,y),...Aw(e,i,p,y),...bv({subprocess:e,cancelSignal:s,gracefulCancel:a,context:p,controller:y}),...jw({subprocess:e,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,context:p,controller:y})])}catch(e){return p.terminationReason??="other",Promise.all([{error:e},b,Promise.all(w.map((e=>Zj(e)))),Zj(E),mx(O,S),Promise.allSettled(I),Promise.allSettled(T)])}},yx=(e,t,r)=>e.map(((e,n)=>e===t.stdio[n]?void 0:tx(e,n,r))),bx=(e,t)=>e.flatMap((({stdioItems:e},r)=>e.filter((({value:e,stream:t=e})=>Jw(t,{checkOpen:!1})&&!Rg(t))).map((({type:e,value:n,stream:o=n})=>tx(o,r,t,{isSameDirection:DS.has(e),stopOnExit:"native"===e}))))),vx=async(e,{signal:t})=>{const[r]=await F(e,"error",{signal:t});throw r},wx=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const o=n.get(t),i=Nv();o.push(i);return{resolve:i.resolve.bind(i),promises:o}},Ex=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},Sx=async e=>{if(void 0!==e)try{await Ox(e)}catch{}},Ox=async e=>{await Z(e,{cleanup:!0,readable:!1,writable:!0})},Ix=async e=>{await Z(e,{cleanup:!0,readable:!0,writable:!1})},Tx=async(e,t)=>{if(await e,t)throw t},jx=(e,t,r)=>{r&&!cx(r)?e.destroy(r):t&&e.destroy()},xx=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:o=!0,preserveNewlines:i=!0}={})=>{const s=o||Pw.has(r),{subprocessStdout:a,waitReadableDestroy:c}=Rx(e,n,t),{readableEncoding:l,readableObjectMode:u,readableHighWaterMark:f}=Ax(a,s),{read:p,onStdoutDataDone:d}=Dx({subprocessStdout:a,subprocess:e,binary:s,encoding:r,preserveNewlines:i}),h=new K({read:p,destroy:R(kx.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:c})),highWaterMark:f,objectMode:u,encoding:l});return Lx({subprocessStdout:a,onStdoutDataDone:d,readable:h,subprocess:e}),h},Rx=(e,t,r)=>{const n=kv(e,t);return{subprocessStdout:n,waitReadableDestroy:wx(r,n,"readableDestroy")}},Ax=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Vj},Dx=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:o})=>{const i=Nv(),s=Fj({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:o});return{read(){Nx(this,s,i)},onStdoutDataDone:i}},Nx=async(e,t,r)=>{try{const{value:n,done:o}=await t.next();o?r.resolve():e.push(n)}catch{}},Lx=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:o})=>{try{await Ix(e),await n,await Sx(o),await t,r.readable&&r.push(null)}catch(e){await Sx(o),Cx(r,e)}},kx=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await Ex(r,t)&&(Cx(e,n),await Tx(t,n))},Cx=(e,t)=>{jx(e,e.readable,t)},Px=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:o,waitWritableDestroy:i}=Mx(e,r,t),s=new Y(Object.assign(Object.assign({},_x(n,e,o)),{},{destroy:R(Ux.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:o,waitWritableDestroy:i})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode}));return Fx(n,s),s},Mx=(e,t,r)=>{const n=Lv(e,t);return{subprocessStdin:n,waitWritableFinal:wx(r,n,"writableFinal"),waitWritableDestroy:wx(r,n,"writableDestroy")}},_x=(e,t,r)=>({write:$x.bind(void 0,e),final:R(Bx.bind(void 0,e,t,r))}),$x=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},Bx=async(e,t,r)=>{await Ex(r,t)&&(e.writable&&e.end(),await t)},Fx=async(e,t,r)=>{try{await Ox(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await Ix(e)}catch{}})(r),Gx(t,e)}},Ux=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},o)=>{await Ex(r,t),await Ex(n,t)&&(Gx(e,o),await Tx(t,o))},Gx=(e,t)=>{jx(e,e.writable,t)},Wx=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:o,binary:i=!0,preserveNewlines:s=!0}={})=>{const a=i||Pw.has(r),{subprocessStdout:c,waitReadableDestroy:l}=Rx(e,n,t),{subprocessStdin:u,waitWritableFinal:f,waitWritableDestroy:p}=Mx(e,o,t),{readableEncoding:d,readableObjectMode:h,readableHighWaterMark:m}=Ax(c,a),{read:g,onStdoutDataDone:y}=Dx({subprocessStdout:c,subprocess:e,binary:a,encoding:r,preserveNewlines:s}),b=new Q(Object.assign(Object.assign({read:g},_x(u,e,f)),{},{destroy:R(zx.bind(void 0,{subprocessStdout:c,subprocessStdin:u,subprocess:e,waitReadableDestroy:l,waitWritableFinal:f,waitWritableDestroy:p})),readableHighWaterMark:m,writableHighWaterMark:u.writableHighWaterMark,readableObjectMode:h,writableObjectMode:u.writableObjectMode,encoding:d}));return Lx({subprocessStdout:c,onStdoutDataDone:y,readable:b,subprocess:e,subprocessStdin:u}),Fx(u,b,c),b},zx=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:o,waitWritableDestroy:i},s)=>{await Promise.all([kx({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},s),Ux({subprocessStdin:t,subprocess:r,waitWritableFinal:o,waitWritableDestroy:i},s)])},Vx=(e,t,{from:r,binary:n=!1,preserveNewlines:o=!1}={})=>{const i=n||Pw.has(t),s=kv(e,r),a=Fj({subprocessStdout:s,subprocess:e,binary:i,shouldEncode:!0,encoding:t,preserveNewlines:o});return Hx(a,s,e)},Hx=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},Xx=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=xx.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=Px.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=Wx.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=Vx.bind(void 0,e,t),e[Symbol.asyncIterator]=Vx.bind(void 0,e,t,{})},qx=(async()=>{})().constructor.prototype,Kx=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(qx,e)])),Yx=["timeout","signal"],Qx=(e,t,r,n)=>{const{file:o,commandArguments:i,command:s,escapedCommand:a,startTime:c,verboseInfo:l,options:u,fileDescriptors:f}=Jx(e,t,r),{subprocess:p,promise:d}=eR({file:o,commandArguments:i,options:u,startTime:c,verboseInfo:l,command:s,escapedCommand:a,fileDescriptors:f});return p.pipe=_j.bind(void 0,{source:p,sourcePromise:d,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of Kx){const o=n.value.bind(t);Reflect.defineProperty(e,r,Object.assign(Object.assign({},n),{},{value:o}))}})(p,d),Cv.set(p,{options:u,fileDescriptors:f}),p},Jx=(e,t,r)=>{const{command:n,escapedCommand:o,startTime:i,verboseInfo:s}=$y(e,t,r),{file:a,commandArguments:c,options:l}=Gw(e,t,r),u=Zx(l),f=((e,t)=>LO(NT,e,t,!1))(u,s);return{file:a,commandArguments:c,command:n,escapedCommand:o,startTime:i,verboseInfo:s,options:u,fileDescriptors:f}},Zx=e=>{let{timeout:t,signal:r}=e,n=xg(e,Yx);if(void 0!==r)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return Object.assign(Object.assign({},n),{},{timeoutDuration:t})},eR=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:o,command:i,escapedCommand:s,fileDescriptors:a})=>{let c;try{c=S(e,t,r)}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,verboseInfo:s})=>{zO(n);const a=new w;OT(a,n),Object.assign(a,{readable:TT,writable:jT,duplex:xT});const c=KE({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:o,startTime:i,isSync:!1});return{subprocess:a,promise:RT(c,s,o)}})({error:e,command:i,escapedCommand:s,fileDescriptors:a,options:r,startTime:n,verboseInfo:o})}const l=new AbortController;z(Number.POSITIVE_INFINITY,l.signal);const u=[...c.stdio];((e,t,r)=>{const n=new Map;for(const[o,{stdioItems:i,direction:s}]of Object.entries(t)){for(const{stream:t}of i.filter((({type:e})=>DS.has(e))))nj(e,t,s,o);for(const{stream:t}of i.filter((({type:e})=>!DS.has(e))))ij({subprocess:e,stream:t,direction:s,fdNumber:o,pipeGroups:n,controller:r})}for(const[e,t]of n.entries()){const r=1===t.length?t[0]:LT(t);JT(r,e)}})(c,a,l),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const o=gj((()=>{e.kill()}));U(n,(()=>{o()}))})(c,r,l);const f={},p=Nv();c.kill=pv.bind(void 0,{kill:c.kill.bind(c),options:r,onInternalError:p,context:f,controller:l}),c.all=(({stdout:e,stderr:t},{all:r})=>r&&(e||t)?LT([e,t].filter(Boolean)):void 0)(c,r),Xx(c,r),((e,{ipc:t})=>{Object.assign(e,ST(e,!1,t))})(c,r);return{subprocess:c,promise:tR({subprocess:c,options:r,startTime:n,verboseInfo:o,fileDescriptors:a,originalStreams:u,command:i,escapedCommand:s,context:f,onInternalError:p,controller:l})}},tR=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:o,originalStreams:i,command:s,escapedCommand:a,context:c,onInternalError:l,controller:u})=>{const[f,[p,d],h,m,g]=await gx({subprocess:e,options:t,context:c,verboseInfo:n,fileDescriptors:o,originalStreams:i,onInternalError:l,controller:u});u.abort(),l.resolve();const y=h.map(((e,r)=>YO(e,t,r))),b=YO(m,t,"all"),v=rR({errorInfo:f,exitCode:p,signal:d,stdio:y,all:b,ipcOutput:g,context:c,options:t,command:s,escapedCommand:a,startTime:r});return sS(v,n,t)},rR=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,context:s,options:a,command:c,escapedCommand:l,startTime:u})=>"error"in e?YE({error:e.error,command:c,escapedCommand:l,timedOut:"timeout"===s.terminationReason,isCanceled:"cancel"===s.terminationReason||"gracefulCancel"===s.terminationReason,isGracefullyCanceled:"gracefulCancel"===s.terminationReason,isMaxBuffer:e.error instanceof wE,isForcefullyTerminated:s.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:o,ipcOutput:i,options:a,startTime:u,isSync:!1}):qE({command:c,escapedCommand:l,stdio:n,all:o,ipcOutput:i,options:a,startTime:u}),nR=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map((([t,r])=>[t,oR(t,e[t],r)])));return Object.assign(Object.assign({},e),r)},oR=(e,t,r)=>iR.has(e)&&bf(t)&&bf(r)?Object.assign(Object.assign({},t),r):r,iR=new Set(["env",...Wg]),sR=(e,t,r,n)=>{const o=(e,t,n)=>sR(e,t,r,n),i=(...i)=>aR({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:o},...i);return void 0!==n&&n(i,o,t),i},aR=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:o},i,...s)=>{if(bf(i))return o(e,nR(r,i),n);const{file:a,commandArguments:c,options:l,isSync:u}=cR({mapArguments:e,firstArgument:i,nextArguments:s,deepOptions:t,boundOptions:r});return u?((e,t,r)=>{const{file:n,commandArguments:o,command:i,escapedCommand:s,startTime:a,verboseInfo:c,options:l,fileDescriptors:u}=nT(e,t,r),f=aT({file:n,commandArguments:o,options:l,command:i,escapedCommand:s,verboseInfo:c,fileDescriptors:u,startTime:a});return sS(f,c,l)})(a,c,l):Qx(a,c,l,o)},cR=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:o})=>{const i=(s=t,Array.isArray(s)&&Array.isArray(s.raw)?((e,t)=>{let r=[];for(const[n,o]of e.entries())r=wg({templates:e,expressions:t,tokens:r,index:n,template:o});if(0===r.length)throw new TypeError("Template script must not be empty");const[n,...o]=r;return[n,o,{}]})(t,r):[t,...r]);var s;const[a,c,l]=tp(...i),u=nR(nR(n,o),l),{file:f=a,commandArguments:p=c,options:d=u,isSync:h=!1}=e({file:a,commandArguments:c,options:u});return{file:f,commandArguments:p,options:d,isSync:h}},lR=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);const[r,...n]=uR(e);return{file:r,commandArguments:n}},uR=e=>{if("string"!=typeof e)throw new TypeError(`The command must be a string: ${String(e)}.`);const t=e.trim();if(""===t)return[];const r=[];for(const e of t.split(fR)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},fR=/ +/g,pR=({options:e})=>Object.assign(Object.assign({},dR(e)),{},{isSync:!0}),dR=e=>({options:Object.assign(Object.assign({},hR(e)),e)}),hR=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{};sR((()=>({})));const mR=sR((()=>({isSync:!0})));sR((({file:e,commandArguments:t})=>lR(e,t))),sR((({file:e,commandArguments:t})=>Object.assign(Object.assign({},lR(e,t)),{},{isSync:!0}))),sR((({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:Object.assign(Object.assign({},e),{},{node:!0})}})),sR((({options:e})=>dR(e)),{},{preferLocal:!0},((e,t,r)=>{e.sync=t(pR,r),e.s=e.sync})),(()=>{const e=D,t=void 0!==D.channel;Object.assign(Object.assign({},ST(e,true,t)),{},{getCancelSignal:vw.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:true,ipc:t})})})();const gR=global,yR=new Proxy(global.target,{set:function(e,t,r){return Reflect.set(...arguments)},get:function(e,t,r){return ER(`make ${t}`),Reflect.get(...arguments)}}),bR=["packages","codemods","eslint"],vR=gR.which("yarn").stdout,wR=process.execPath;function ER(...e){console.log.apply(console,e)}function SR(e,t,r,n=!0,o=!1){ER(`${e.replaceAll(vR,"yarn").replaceAll(wR,"node")} ${t.join(" ")}`);try{return mR(e,t,{stdio:n?"inherit":void 0,cwd:r&&a.resolve(r),env:process.env}).stdout}catch(r){throw n&&0!==r.exitCode&&(console.error(new Error(`\ncommand: ${e} ${t.join(" ")}\ncode: ${r.exitCode}`)),o||process.exit(r.exitCode)),r}}function OR(e,t,r,n){return SR(vR,e,t,r,n)}function IR(e,t,r){return SR(wR,e,t,r)}function TR(e,t){const r=process.env;process.env=Object.assign(Object.assign({},r),t),e(),process.env=r}function jR(...e){const t=["--format","codeframe",...e.filter(Boolean)],r=g("packages").filter((e=>y(`packages/${e}/package.json`))),n=[];for(let e=0,t=40;e<r.length;e+=t)r.length-e==1?n.push([`packages/${r[e]}/**/*`]):n.push([`packages/{${r.slice(e,e+t)}}/**/*`]);const o=["eslint","codemods","scripts","benchmark","*.{js,cjs,mjs,ts}"];if(n.push(o),process.env.ESLINT_GO_BRRRR)TR((()=>OR(["eslint","packages",...o,...t])),{BABEL_ENV:"test",NODE_OPTIONS:"--max-old-space-size=16384"});else{let e=null;for(const r of n)try{TR((()=>OR(["eslint",...r,...t],void 0,void 0,!0)),{BABEL_ENV:"test"})}catch(t){e=t}e&&process.exit(e.exitCode)}}function xR(e,t,r){const n="./build/"+e.toLowerCase();gR.rm("-rf",n),ER("mkdir -p build"),b("build",{recursive:!0}),SR("git",["clone","--filter=blob:none","--sparse","--single-branch","--shallow-since='2 years ago'",t,n]),SR("git",["sparse-checkout","set",...r],n),SR("git",["checkout","-q",function(e){const t=p("./Makefile","utf8").match(new RegExp(`${e}_COMMIT = (\\w{40})`))[1];if(!t)throw new Error(`Could not find ${e}_COMMIT in Makefile`);return t}(e)],n)}function RR(){const e=JSON.parse(p("./package.json","utf8")).version_babel8;return bR.forEach((t=>{g(t).forEach((r=>{const n=`${t}/${r}/package.json`;if(y(n)){const t=JSON.parse(p(n,"utf8"));t.peerDependencies?.["@babel/core"]&&(t.peerDependencies["@babel/core"]=`^${e}`);const o=t.conditions?.BABEL_8_BREAKING[0];o?.peerDependencies?.["@babel/core"]&&(o.peerDependencies["@babel/core"]=`^${e}`),"babel-eslint-plugin"===r&&(o.peerDependencies["@babel/eslint-parser"]=`^${e}`),u(n,JSON.stringify(t,null,2)+"\n")}}))})),TR((()=>OR(["install"])),{YARN_ENABLE_IMMUTABLE_INSTALLS:!1}),e}gR.config.verbose=!0,yR["clean-all"]=function(){gR.rm("-rf",["package-lock.json",".changelog"]),bR.forEach((e=>{gR.rm("-rf",`${e}/*/test/tmp`),gR.rm("-rf",`${e}/*/package-lock.json`)})),yR.clean(),yR["clean-lib"](),yR["clean-node-modules"]()},yR["clean-node-modules"]=function(){gR.rm("-rf","node_modules"),bR.forEach((e=>{gR.rm("-rf",`${e}/*/node_modules`)}))},yR.clean=function(){yR["test-clean"](),gR.rm("-rf",[".npmrc","coverage","packages/*/npm-debug*","node_modules/.cache"])},yR["test-clean"]=function(){bR.forEach((e=>{gR.rm("-rf",`${e}/*/test/tmp`),gR.rm("-rf",`${e}/*/test-fixtures.json`)}))},yR["clean-lib"]=function(){gR.rm("-rf",bR.map((e=>`${e}/*/lib`))),IR(["scripts/set-module-type.js"])},yR["clean-runtime-helpers"]=function(){gR.rm("-rf",["packages/babel-runtime/helpers/**/*.js","packages/babel-runtime-corejs2/helpers/**/*.js","packages/babel-runtime-corejs3/helpers/**/*.js","packages/babel-runtime/helpers/**/*.mjs","packages/babel-runtime-corejs2/helpers/**/*.mjs","packages/babel-runtime-corejs3/helpers/**/*.mjs","packages/babel-runtime-corejs2/core-js","packages/babel-runtime-corejs3/core-js","packages/babel-runtime-corejs3/core-js-stable"])},yR["use-cjs"]=function(){IR(["scripts/set-module-type.js","commonjs"]),yR.bootstrap()},yR["use-esm"]=function(){IR(["scripts/set-module-type.js","module"]),yR.bootstrap()},yR["bootstrap-only"]=function(){yR["clean-all"](),OR(["install"])},yR.bootstrap=function(){yR["bootstrap-only"](),yR["generate-tsconfig"](),yR.build()},yR.build=function(){yR["build-no-bundle"](),"true"!==process.env.BABEL_COVERAGE&&yR["build-standalone"]()},yR["build-standalone"]=function(){OR(["gulp","build-babel-standalone"])},yR["build-bundle"]=function(){yR.clean(),yR["clean-lib"](),IR(["scripts/set-module-type.js"]),OR(["gulp","build"]),yR["build-dist"]()},yR["build-no-bundle"]=function(){yR.clean(),yR["clean-lib"](),IR(["scripts/set-module-type.js"]),TR((()=>{OR(["gulp","build-dev"])}),{BABEL_ENV:"development"}),yR["build-dist"]()},yR["build-flow-typings"]=function(){u("packages/babel-types/lib/index.js.flow",IR(["packages/babel-types/scripts/generators/flow.js"],void 0,!1))},yR["build-dist"]=function(){yR["build-plugin-transform-runtime-dist"]()},yR["build-plugin-transform-runtime-dist"]=function(){IR(["scripts/build-dist.js"],"packages/babel-plugin-transform-runtime")},yR.prepublish=function(){process.env.BABEL_8_BREAKING?IR(["scripts/set-module-type.js","module"]):IR(["scripts/set-module-type.js","commonjs"]),yR["bootstrap-only"](),TR((()=>{yR["prepublish-build"](),yR.test()}),{IS_PUBLISH:"true"}),IR(["scripts/set-module-type.js","clean"])},yR["prepublish-build"]=function(){yR["clean-lib"](),yR["clean-runtime-helpers"](),IR(["scripts/generators/npm-ignore.js"]),TR((()=>{yR["build-bundle"]()}),{NODE_ENV:"production",BABEL_ENV:"production",STRIP_BABEL_8_FLAG:"true"}),TR((()=>{yR["prepublish-build-standalone"](),yR["clone-license"](),yR["prepublish-prepare-dts"](),yR["build-flow-typings"]()}),{NODE_ENV:"production",STRIP_BABEL_8_FLAG:"true"})},yR["prepublish-build-standalone"]=function(){TR((()=>{yR["build-standalone"]()}),{BABEL_ENV:"production",IS_PUBLISH:"true"})},yR["prepublish-prepare-dts"]=function(){yR["clean-ts"](),yR.tscheck(),yR["prepublish-prepare-dts-no-clean"]()},yR["prepublish-prepare-dts-no-clean"]=function(){OR(["gulp","bundle-dts"]),yR["build-typescript-legacy-typings"](),OR(["tsc","-p","tsconfig.dts-bundles.json"])},yR.tscheck=function(){yR["generate-tsconfig"](),IR(["scripts/parallel-tsc/tsc.js","."]),yR["tscheck-helpers"]()},yR["tscheck-helpers"]=function(){OR(["tsc","-p","./packages/babel-helpers/src/helpers/tsconfig.json"])},yR["clean-ts"]=function(){gR.rm("-rf","tsconfig.tsbuildinfo"),gR.rm("-rf","*/*/tsconfig.tsbuildinfo"),gR.rm("-rf","dts")},yR["generate-tsconfig"]=function(){IR(["scripts/generators/tsconfig.js"]),IR(["scripts/generators/archived-libs-typings.js"])},yR["generate-type-helpers"]=function(){OR(["gulp","generate-type-helpers"])},yR["build-typescript-legacy-typings"]=function(){u("packages/babel-types/lib/index-legacy.d.ts",IR(["packages/babel-types/scripts/generators/typescript-legacy.js"],void 0,!1))},yR["clone-license"]=function(){IR(["scripts/clone-license.js"])},yR.lint=function(){TR((()=>yR.tscheck()),{TSCHECK_SILENT:"true"}),jR(),yR["lint-prettier"]()},yR["lint-ci"]=function(){yR.tscheck(),jR(),yR["lint-prettier"](),yR["prepublish-prepare-dts-no-clean"]()},yR["lint-prettier"]=function(){OR(["prettier",".","--check"])},yR.fix=function(){yR["fix-js"](),yR["fix-prettier"]()},yR["fix-js"]=function(){TR((()=>yR.tscheck()),{TSCHECK_SILENT:"true"}),jR("--fix")},yR["fix-prettier"]=function(){OR(["prettier",".","--write"])},yR.watch=function(){yR["build-no-bundle"](),TR((()=>{OR(["gulp","watch"])}),{BABEL_ENV:"development",WATCH_SKIP_BUILD:"true"})},yR.test=function(){yR.lint(),yR["test-only"]()},yR["test-only"]=function(e=[]){OR(["jest",...e])},yR["test-cov"]=function(){yR.build(),TR((()=>{OR(["c8","jest"])}),{BABEL_ENV:"test",BABEL_COVERAGE:"true"})},yR["bootstrap-test262"]=function(){xR("TEST262","https://github.com/tc39/test262.git",["test","harness"])},yR["bootstrap-typescript"]=function(){xR("TYPESCRIPT","https://github.com/microsoft/TypeScript.git",["tests"])},yR["bootstrap-flow"]=function(){xR("FLOW","https://github.com/facebook/flow.git",["src/parser/test/flow"])},yR["new-version-checklist"]=function(){},yR["new-version"]=function(){yR["new-version-checklist"](),SR("git",["pull","--rebase"]),OR(["release-tool","version","-f","@babel/standalone"])},yR["new-babel-8-version"]=function(){SR("git",["pull","--rebase"]);const e=JSON.parse(p("./package.json","utf8")),t=yf.inc(e.version_babel8,"prerelease");return e.version_babel8=t,u("./package.json",JSON.stringify(e,null,2)+"\n"),SR("git",["add","./package.json"]),SR("git",["commit","-m","Bump Babel 8 version to "+t]),SR("git",["tag",`v${t}`,"-m",`v${t}`]),t},yR["new-babel-8-version-create-commit-ci"]=function(){OR(["release-tool","version",RR(),"--all","--tag-version-prefix","tmp.v","--yes"])},yR["new-babel-8-version-create-commit"]=function(){const e=RR();SR("git",["checkout","-b",`release/temp/v${e}`]),OR(["release-tool","version",e,"--all","--tag-version-prefix","tmp.v"]),console.log("Run `BABEL_8_BREAKING=true make publish` to finish publishing")};