@turbo/codemod 2.0.0-canary.1 → 2.0.0-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +1,42 @@
1
- "use strict";var yy=Object.create;var bn=Object.defineProperty;var Ay=Object.getOwnPropertyDescriptor;var _y=Object.getOwnPropertyNames;var Sy=Object.getPrototypeOf,Cy=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cf=(t,e)=>{for(var r in e)bn(t,r,{get:e[r],enumerable:!0})},lf=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _y(e))!Cy.call(t,n)&&n!==r&&bn(t,n,{get:()=>e[n],enumerable:!(i=Ay(e,n))||i.enumerable});return t};var V=(t,e,r)=>(r=t!=null?yy(Sy(t)):{},lf(e||!t||!t.__esModule?bn(r,"default",{value:t,enumerable:!0}):r,t)),by=t=>lf(bn({},"__esModule",{value:!0}),t);var ff=m((ST,At)=>{function No(t){return At.exports=No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At.exports.__esModule=!0,At.exports.default=At.exports,No(t)}At.exports=No,At.exports.__esModule=!0,At.exports.default=At.exports});var df=m((CT,_t)=>{var hf=ff().default;function pf(){"use strict";_t.exports=pf=function(){return e},_t.exports.__esModule=!0,_t.exports.default=_t.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,_){p[b]=_.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(p,b,_){return Object.defineProperty(p,b,{value:_,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(_,T,P){return _[T]=P}}function l(p,b,_,T){var P=b&&b.prototype instanceof y?b:y,R=Object.create(P.prototype),Z=new We(T||[]);return n(R,"_invoke",{value:le(p,_,Z)}),R}function f(p,b,_){try{return{type:"normal",arg:p.call(b,_)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var h="suspendedStart",E="suspendedYield",g="executing",d="completed",D={};function y(){}function w(){}function B(){}var q={};c(q,o,function(){return this});var v=Object.getPrototypeOf,$=v&&v(v(A([])));$&&$!==r&&i.call($,o)&&(q=$);var L=B.prototype=y.prototype=Object.create(q);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(_){return this._invoke(b,_)})})}function G(p,b){function _(P,R,Z,ye){var fe=f(p[P],p,R);if(fe.type!=="throw"){var Re=fe.arg,N=Re.value;return N&&hf(N)=="object"&&i.call(N,"__await")?b.resolve(N.__await).then(function(ze){_("next",ze,Z,ye)},function(ze){_("throw",ze,Z,ye)}):b.resolve(N).then(function(ze){Re.value=ze,Z(Re)},function(ze){return _("throw",ze,Z,ye)})}ye(fe.arg)}var T;n(this,"_invoke",{value:function(R,Z){function ye(){return new b(function(fe,Re){_(R,Z,fe,Re)})}return T=T?T.then(ye,ye):ye()}})}function le(p,b,_){var T=h;return function(P,R){if(T===g)throw new Error("Generator is already running");if(T===d){if(P==="throw")throw R;return{value:t,done:!0}}for(_.method=P,_.arg=R;;){var Z=_.delegate;if(Z){var ye=C(Z,_);if(ye){if(ye===D)continue;return ye}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(T===h)throw T=d,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);T=g;var fe=f(p,b,_);if(fe.type==="normal"){if(T=_.done?d:E,fe.arg===D)continue;return{value:fe.arg,done:_.done}}fe.type==="throw"&&(T=d,_.method="throw",_.arg=fe.arg)}}}function C(p,b){var _=b.method,T=p.iterator[_];if(T===t)return b.delegate=null,_==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,C(p,b),b.method==="throw")||_!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+_+"' method")),D;var P=f(T,p.iterator,b.arg);if(P.type==="throw")return b.method="throw",b.arg=P.arg,b.delegate=null,D;var R=P.arg;return R?R.done?(b[p.resultName]=R.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,D):R:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,D)}function X(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function Y(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function We(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(X,this),this.reset(!0)}function A(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var _=-1,T=function P(){for(;++_<p.length;)if(i.call(p,_))return P.value=p[_],P.done=!1,P;return P.value=t,P.done=!0,P};return T.next=T}}throw new TypeError(hf(p)+" is not iterable")}return w.prototype=B,n(L,"constructor",{value:B,configurable:!0}),n(B,"constructor",{value:w,configurable:!0}),w.displayName=c(B,a,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===w||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,B):(p.__proto__=B,c(p,a,"GeneratorFunction")),p.prototype=Object.create(L),p},e.awrap=function(p){return{__await:p}},I(G.prototype),c(G.prototype,u,function(){return this}),e.AsyncIterator=G,e.async=function(p,b,_,T,P){P===void 0&&(P=Promise);var R=new G(l(p,b,_,T),P);return e.isGeneratorFunction(b)?R:R.next().then(function(Z){return Z.done?Z.value:R.next()})},I(L),c(L,a,"Generator"),c(L,o,function(){return this}),c(L,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),_=[];for(var T in b)_.push(T);return _.reverse(),function P(){for(;_.length;){var R=_.pop();if(R in b)return P.value=R,P.done=!1,P}return P.done=!0,P}},e.values=A,We.prototype={constructor:We,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Y),!b)for(var _ in this)_.charAt(0)==="t"&&i.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var _=this;function T(Re,N){return Z.type="throw",Z.arg=b,_.next=Re,N&&(_.method="next",_.arg=t),!!N}for(var P=this.tryEntries.length-1;P>=0;--P){var R=this.tryEntries[P],Z=R.completion;if(R.tryLoc==="root")return T("end");if(R.tryLoc<=this.prev){var ye=i.call(R,"catchLoc"),fe=i.call(R,"finallyLoc");if(ye&&fe){if(this.prev<R.catchLoc)return T(R.catchLoc,!0);if(this.prev<R.finallyLoc)return T(R.finallyLoc)}else if(ye){if(this.prev<R.catchLoc)return T(R.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return T(R.finallyLoc)}}}},abrupt:function(b,_){for(var T=this.tryEntries.length-1;T>=0;--T){var P=this.tryEntries[T];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var R=P;break}}R&&(b==="break"||b==="continue")&&R.tryLoc<=_&&_<=R.finallyLoc&&(R=null);var Z=R?R.completion:{};return Z.type=b,Z.arg=_,R?(this.method="next",this.next=R.finallyLoc,D):this.complete(Z)},complete:function(b,_){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&_&&(this.next=_),D},finish:function(b){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.finallyLoc===b)return this.complete(T.completion,T.afterLoc),Y(T),D}},catch:function(b){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.tryLoc===b){var P=T.completion;if(P.type==="throw"){var R=P.arg;Y(T)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(b,_,T){return this.delegate={iterator:A(b),resultName:_,nextLoc:T},this.method==="next"&&(this.arg=t),D}},e}_t.exports=pf,_t.exports.__esModule=!0,_t.exports.default=_t.exports});var gf=m((bT,mf)=>{var wn=df()();mf.exports=wn;try{regeneratorRuntime=wn}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=wn:Function("r","regeneratorRuntime = r")(wn)}});var bh=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.splitWhen=Wr.flatten=void 0;function cS(t){return t.reduce((e,r)=>[].concat(e,r),[])}Wr.flatten=cS;function lS(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Wr.splitWhen=lS});var wh=m(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.isEnoentCodeError=void 0;function fS(t){return t.code==="ENOENT"}Mn.isEnoentCodeError=fS});var Fh=m(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.createDirentFromStats=void 0;var du=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function hS(t,e){return new du(t,e)}qn.createDirentFromStats=hS});var xh=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.removeLeadingDotSegment=ut.escape=ut.makeAbsolute=ut.unixify=void 0;var pS=require("path"),dS=2,mS=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function gS(t){return t.replace(/\\/g,"/")}ut.unixify=gS;function ES(t,e){return pS.resolve(t,e)}ut.makeAbsolute=ES;function DS(t){return t.replace(mS,"\\$2")}ut.escape=DS;function yS(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(dS)}return t}ut.removeLeadingDotSegment=yS});var Rh=m((fO,vh)=>{vh.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Bh=m((hO,Oh)=>{var AS=Rh(),Th={"{":"}","(":")","[":"]"},_S=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var a=Th[u];if(a){var c=t.indexOf(a,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},SS=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=Th[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Oh.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(AS(e))return!0;var i=_S;return r&&r.strict===!1&&(i=SS),i(e)}});var Lh=m((pO,Ph)=>{"use strict";var CS=Bh(),bS=require("path").posix.dirname,wS=require("os").platform()==="win32",mu="/",FS=/\\/g,xS=/[\{\[].*[\}\]]$/,vS=/(^|[^\\])([\{\[]|\([^\)]+$)/,RS=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Ph.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&wS&&e.indexOf(mu)<0&&(e=e.replace(FS,mu)),xS.test(e)&&(e+=mu),e+="a";do e=bS(e);while(CS(e)||vS.test(e));return e.replace(RS,"$1")}});var Hn=m(Ye=>{"use strict";Ye.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ye.find=(t,e)=>t.nodes.find(r=>r.type===e);Ye.exceedsLimit=(t,e,r=1,i)=>i===!1||!Ye.isInteger(t)||!Ye.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Ye.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Ye.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Ye.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Ye.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ye.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Ye.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var $n=m((mO,Nh)=>{"use strict";var Ih=Hn();Nh.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Ih.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&Ih.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Mh=m((gO,kh)=>{"use strict";kh.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Yh=m((EO,zh)=>{"use strict";var qh=Mh(),yr=(t,e,r)=>{if(qh(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(qh(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(yr.cache.hasOwnProperty(a))return yr.cache[a].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let d=t+"|"+e;return i.capture?`(${d})`:i.wrap===!1?d:`(?:${d})`}let f=Wh(t)||Wh(e),h={min:t,max:e,a:c,b:l},E=[],g=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let d=l<0?Math.abs(l):1;g=Hh(d,Math.abs(c),h,i),c=h.a=0}return l>=0&&(E=Hh(c,l,h,i)),h.negatives=g,h.positives=E,h.result=TS(g,E,i),i.capture===!0?h.result=`(${h.result})`:i.wrap!==!1&&E.length+g.length>1&&(h.result=`(?:${h.result})`),yr.cache[a]=h,h.result};function TS(t,e,r){let i=gu(t,e,"-",!1,r)||[],n=gu(e,t,"",!1,r)||[],s=gu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function OS(t,e){let r=1,i=1,n=Uh(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Uh(t,r);for(n=jh(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=jh(e+1,i)-1;return s=[...s],s.sort(LS),s}function BS(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=PS(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,c]=i[u];a===c?s+=a:a!=="0"||c!=="9"?s+=IS(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Hh(t,e,r,i){let n=OS(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let c=n[a],l=BS(String(o),String(c),i),f="";if(!r.isPadded&&u&&u.pattern===l.pattern){u.count.length>1&&u.count.pop(),u.count.push(l.count[0]),u.string=u.pattern+Gh(u.count),o=c+1;continue}r.isPadded&&(f=NS(c,r,i)),l.string=f+l.pattern+Gh(l.count),s.push(l),o=c+1,u=l}return s}function gu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!$h(e,"string",u)&&s.push(r+u),i&&$h(e,"string",u)&&s.push(r+u)}return s}function PS(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function LS(t,e){return t>e?1:e>t?-1:0}function $h(t,e,r){return t.some(i=>i[e]===r)}function Uh(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function jh(t,e){return t-t%Math.pow(10,e)}function Gh(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function IS(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Wh(t){return/^-?(0+)\d/.test(t)}function NS(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}yr.cache={};yr.clearCache=()=>yr.cache={};zh.exports=yr});var yu=m((DO,tp)=>{"use strict";var kS=require("util"),Xh=Yh(),Vh=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),MS=t=>e=>t===!0?Number(e):String(e),Eu=t=>typeof t=="number"||typeof t=="string"&&t!=="",Gi=t=>Number.isInteger(+t),Du=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},qS=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,HS=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Kh=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},$S=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},Zh=(t,e,r,i)=>{if(r)return Xh(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},Jh=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Xh(t,e,r)},Qh=(...t)=>new RangeError("Invalid range arguments: "+kS.inspect(...t)),ep=(t,e,r)=>{if(r.strictRanges===!0)throw Qh([t,e]);return[]},US=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},jS=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Qh([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=Du(u)||Du(a)||Du(c),f=l?Math.max(u.length,a.length,c.length):0,h=l===!1&&qS(t,e,i)===!1,E=i.transform||MS(h);if(i.toRegex&&r===1)return Zh(Kh(t,f),Kh(e,f),!0,i);let g={negatives:[],positives:[]},d=w=>g[w<0?"negatives":"positives"].push(Math.abs(w)),D=[],y=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?d(n):D.push(HS(E(n,y),f,h)),n=o?n-r:n+r,y++;return i.toRegex===!0?r>1?$S(g,i):Jh(D,null,{wrap:!1,...i}):D},GS=(t,e,r=1,i={})=>{if(!Gi(t)&&t.length>1||!Gi(e)&&e.length>1)return ep(t,e,i);let n=i.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return Zh(a,c,!1,i);let l=[],f=0;for(;u?s>=o:s<=o;)l.push(n(s,f)),s=u?s-r:s+r,f++;return i.toRegex===!0?Jh(l,null,{wrap:!1,options:i}):l},Un=(t,e,r,i={})=>{if(e==null&&Eu(t))return[t];if(!Eu(t)||!Eu(e))return ep(t,e,i);if(typeof r=="function")return Un(t,e,1,{transform:r});if(Vh(r))return Un(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Gi(r)?Gi(t)&&Gi(e)?jS(t,e,r,n):GS(t,e,Math.max(Math.abs(r),1),n):r!=null&&!Vh(r)?US(r,n):Un(t,e,1,r)};tp.exports=Un});var np=m((yO,ip)=>{"use strict";var WS=yu(),rp=Hn(),zS=(t,e={})=>{let r=(i,n={})=>{let s=rp.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=rp.reduce(i.nodes),f=WS(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};ip.exports=zS});var up=m((AO,op)=>{"use strict";var YS=yu(),sp=$n(),zr=Hn(),Ar=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?zr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Ar(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Ar(n,s,r):n+s);return zr.flatten(i)},VS=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(Ar(u.pop(),sp(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(Ar(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=zr.reduce(n.nodes);if(zr.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=YS(...f,e);h.length===0&&(h=sp(n,e)),u.push(Ar(u.pop(),h)),n.nodes=[];return}let a=zr.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<n.nodes.length;f++){let h=n.nodes[f];if(h.type==="comma"&&n.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){u.push(Ar(u.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(Ar(c.pop(),h.value));continue}h.nodes&&i(h,n)}return c};return zr.flatten(i(t))};op.exports=VS});var cp=m((_O,ap)=>{"use strict";ap.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var dp=m((SO,pp)=>{"use strict";var KS=$n(),{MAX_LENGTH:lp,CHAR_BACKSLASH:Au,CHAR_BACKTICK:XS,CHAR_COMMA:ZS,CHAR_DOT:JS,CHAR_LEFT_PARENTHESES:QS,CHAR_RIGHT_PARENTHESES:eC,CHAR_LEFT_CURLY_BRACE:tC,CHAR_RIGHT_CURLY_BRACE:rC,CHAR_LEFT_SQUARE_BRACKET:fp,CHAR_RIGHT_SQUARE_BRACKET:hp,CHAR_DOUBLE_QUOTE:iC,CHAR_SINGLE_QUOTE:nC,CHAR_NO_BREAK_SPACE:sC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:oC}=cp(),uC=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(lp,r.maxLength):lp;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,u=n,a=0,c=t.length,l=0,f=0,h,E={},g=()=>t[l++],d=D=>{if(D.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&D.type==="text"){u.value+=D.value;return}return o.nodes.push(D),D.parent=o,D.prev=u,u=D,D};for(d({type:"bos"});l<c;)if(o=s[s.length-1],h=g(),!(h===oC||h===sC)){if(h===Au){d({type:"text",value:(e.keepEscaping?h:"")+g()});continue}if(h===hp){d({type:"text",value:"\\"+h});continue}if(h===fp){a++;let D=!0,y;for(;l<c&&(y=g());){if(h+=y,y===fp){a++;continue}if(y===Au){h+=g();continue}if(y===hp&&(a--,a===0))break}d({type:"text",value:h});continue}if(h===QS){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===eC){if(o.type!=="paren"){d({type:"text",value:h});continue}o=s.pop(),d({type:"text",value:h}),o=s[s.length-1];continue}if(h===iC||h===nC||h===XS){let D=h,y;for(e.keepQuotes!==!0&&(h="");l<c&&(y=g());){if(y===Au){h+=y+g();continue}if(y===D){e.keepQuotes===!0&&(h+=y);break}h+=y}d({type:"text",value:h});continue}if(h===tC){f++;let y={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=d(y),s.push(o),d({type:"open",value:h});continue}if(h===rC){if(o.type!=="brace"){d({type:"text",value:h});continue}let D="close";o=s.pop(),o.close=!0,d({type:D,value:h}),f--,o=s[s.length-1];continue}if(h===ZS&&f>0){if(o.ranges>0){o.ranges=0;let D=o.nodes.shift();o.nodes=[D,{type:"text",value:KS(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===JS&&f>0&&o.commas===0){let D=o.nodes;if(f===0||D.length===0){d({type:"text",value:h});continue}if(u.type==="dot"){if(o.range=[],u.value+=h,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){D.pop();let y=D[D.length-1];y.value+=u.value+h,u=y,o.ranges--;continue}d({type:"dot",value:h});continue}d({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let D=s[s.length-1],y=D.nodes.indexOf(o);D.nodes.splice(y,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};pp.exports=uC});var Ep=m((CO,gp)=>{"use strict";var mp=$n(),aC=np(),cC=up(),lC=dp(),qe=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=qe.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(qe.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};qe.parse=(t,e={})=>lC(t,e);qe.stringify=(t,e={})=>mp(typeof t=="string"?qe.parse(t,e):t,e);qe.compile=(t,e={})=>(typeof t=="string"&&(t=qe.parse(t,e)),aC(t,e));qe.expand=(t,e={})=>{typeof t=="string"&&(t=qe.parse(t,e));let r=cC(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};qe.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?qe.compile(t,e):qe.expand(t,e);gp.exports=qe});var Wi=m((bO,Sp)=>{"use strict";var fC=require("path"),at="\\\\/",Dp=`[^${at}]`,xt="\\.",hC="\\+",pC="\\?",jn="\\/",dC="(?=.)",yp="[^/]",_u=`(?:${jn}|$)`,Ap=`(?:^|${jn})`,Su=`${xt}{1,2}${_u}`,mC=`(?!${xt})`,gC=`(?!${Ap}${Su})`,EC=`(?!${xt}{0,1}${_u})`,DC=`(?!${Su})`,yC=`[^.${jn}]`,AC=`${yp}*?`,_p={DOT_LITERAL:xt,PLUS_LITERAL:hC,QMARK_LITERAL:pC,SLASH_LITERAL:jn,ONE_CHAR:dC,QMARK:yp,END_ANCHOR:_u,DOTS_SLASH:Su,NO_DOT:mC,NO_DOTS:gC,NO_DOT_SLASH:EC,NO_DOTS_SLASH:DC,QMARK_NO_DOT:yC,STAR:AC,START_ANCHOR:Ap},_C={..._p,SLASH_LITERAL:`[${at}]`,QMARK:Dp,STAR:`${Dp}*?`,DOTS_SLASH:`${xt}{1,2}(?:[${at}]|$)`,NO_DOT:`(?!${xt})`,NO_DOTS:`(?!(?:^|[${at}])${xt}{1,2}(?:[${at}]|$))`,NO_DOT_SLASH:`(?!${xt}{0,1}(?:[${at}]|$))`,NO_DOTS_SLASH:`(?!${xt}{1,2}(?:[${at}]|$))`,QMARK_NO_DOT:`[^.${at}]`,START_ANCHOR:`(?:^|[${at}])`,END_ANCHOR:`(?:[${at}]|$)`},SC={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Sp.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:SC,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:fC.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?_C:_p}}});var zi=m(Le=>{"use strict";var CC=require("path"),bC=process.platform==="win32",{REGEX_BACKSLASH:wC,REGEX_REMOVE_BACKSLASH:FC,REGEX_SPECIAL_CHARS:xC,REGEX_SPECIAL_CHARS_GLOBAL:vC}=Wi();Le.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Le.hasRegexChars=t=>xC.test(t);Le.isRegexChar=t=>t.length===1&&Le.hasRegexChars(t);Le.escapeRegex=t=>t.replace(vC,"\\$1");Le.toPosixSlashes=t=>t.replace(wC,"/");Le.removeBackslashes=t=>t.replace(FC,e=>e==="\\"?"":e);Le.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Le.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:bC===!0||CC.sep==="\\";Le.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Le.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Le.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Le.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Tp=m((FO,Rp)=>{"use strict";var Cp=zi(),{CHAR_ASTERISK:Cu,CHAR_AT:RC,CHAR_BACKWARD_SLASH:Yi,CHAR_COMMA:TC,CHAR_DOT:bu,CHAR_EXCLAMATION_MARK:wu,CHAR_FORWARD_SLASH:vp,CHAR_LEFT_CURLY_BRACE:Fu,CHAR_LEFT_PARENTHESES:xu,CHAR_LEFT_SQUARE_BRACKET:OC,CHAR_PLUS:BC,CHAR_QUESTION_MARK:bp,CHAR_RIGHT_CURLY_BRACE:PC,CHAR_RIGHT_PARENTHESES:wp,CHAR_RIGHT_SQUARE_BRACKET:LC}=Wi(),Fp=t=>t===vp||t===Yi,xp=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},IC=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,c=-1,l=0,f=0,h=!1,E=!1,g=!1,d=!1,D=!1,y=!1,w=!1,B=!1,q=!1,v=!1,$=0,L,I,G={value:"",depth:0,isGlob:!1},le=()=>c>=i,C=()=>a.charCodeAt(c+1),X=()=>(L=I,a.charCodeAt(++c));for(;c<i;){I=X();let b;if(I===Yi){w=G.backslashes=!0,I=X(),I===Fu&&(y=!0);continue}if(y===!0||I===Fu){for($++;le()!==!0&&(I=X());){if(I===Yi){w=G.backslashes=!0,X();continue}if(I===Fu){$++;continue}if(y!==!0&&I===bu&&(I=X())===bu){if(h=G.isBrace=!0,g=G.isGlob=!0,v=!0,n===!0)continue;break}if(y!==!0&&I===TC){if(h=G.isBrace=!0,g=G.isGlob=!0,v=!0,n===!0)continue;break}if(I===PC&&($--,$===0)){y=!1,h=G.isBrace=!0,v=!0;break}}if(n===!0)continue;break}if(I===vp){if(s.push(c),o.push(G),G={value:"",depth:0,isGlob:!1},v===!0)continue;if(L===bu&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(I===BC||I===RC||I===Cu||I===bp||I===wu)===!0&&C()===xu){if(g=G.isGlob=!0,d=G.isExtglob=!0,v=!0,I===wu&&c===l&&(q=!0),n===!0){for(;le()!==!0&&(I=X());){if(I===Yi){w=G.backslashes=!0,I=X();continue}if(I===wp){g=G.isGlob=!0,v=!0;break}}continue}break}if(I===Cu){if(L===Cu&&(D=G.isGlobstar=!0),g=G.isGlob=!0,v=!0,n===!0)continue;break}if(I===bp){if(g=G.isGlob=!0,v=!0,n===!0)continue;break}if(I===OC){for(;le()!==!0&&(b=X());){if(b===Yi){w=G.backslashes=!0,X();continue}if(b===LC){E=G.isBracket=!0,g=G.isGlob=!0,v=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===wu&&c===l){B=G.negated=!0,l++;continue}if(r.noparen!==!0&&I===xu){if(g=G.isGlob=!0,n===!0){for(;le()!==!0&&(I=X());){if(I===xu){w=G.backslashes=!0,I=X();continue}if(I===wp){v=!0;break}}continue}break}if(g===!0){if(v=!0,n===!0)continue;break}}r.noext===!0&&(d=!1,g=!1);let Y=a,We="",A="";l>0&&(We=a.slice(0,l),a=a.slice(l),f-=l),Y&&g===!0&&f>0?(Y=a.slice(0,f),A=a.slice(f)):g===!0?(Y="",A=a):Y=a,Y&&Y!==""&&Y!=="/"&&Y!==a&&Fp(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),r.unescape===!0&&(A&&(A=Cp.removeBackslashes(A)),Y&&w===!0&&(Y=Cp.removeBackslashes(Y)));let p={prefix:We,input:t,start:l,base:Y,glob:A,isBrace:h,isBracket:E,isGlob:g,isExtglob:d,isGlobstar:D,negated:B,negatedExtglob:q};if(r.tokens===!0&&(p.maxDepth=0,Fp(I)||o.push(G),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let _=0;_<s.length;_++){let T=b?b+1:l,P=s[_],R=t.slice(T,P);r.tokens&&(_===0&&l!==0?(o[_].isPrefix=!0,o[_].value=We):o[_].value=R,xp(o[_]),p.maxDepth+=o[_].depth),(_!==0||R!=="")&&u.push(R),b=P}if(b&&b+1<t.length){let _=t.slice(b+1);u.push(_),r.tokens&&(o[o.length-1].value=_,xp(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=u}return p};Rp.exports=IC});var Pp=m((xO,Bp)=>{"use strict";var Gn=Wi(),He=zi(),{MAX_LENGTH:Wn,POSIX_REGEX_SOURCE:NC,REGEX_NON_SPECIAL_CHARS:kC,REGEX_SPECIAL_CHARS_BACKREF:MC,REPLACEMENTS:Op}=Gn,qC=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>He.escapeRegex(n)).join("..")}return r},Yr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,vu=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Op[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Wn,r.maxLength):Wn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],u=r.capture?"":"?:",a=He.isWindows(e),c=Gn.globChars(a),l=Gn.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:E,ONE_CHAR:g,DOTS_SLASH:d,NO_DOT:D,NO_DOT_SLASH:y,NO_DOTS_SLASH:w,QMARK:B,QMARK_NO_DOT:q,STAR:v,START_ANCHOR:$}=c,L=x=>`(${u}(?:(?!${$}${x.dot?d:f}).)*?)`,I=r.dot?"":D,G=r.dot?B:q,le=r.bash===!0?L(r):v;r.capture&&(le=`(${le})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let C={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=He.removePrefix(t,C),n=t.length;let X=[],Y=[],We=[],A=s,p,b=()=>C.index===n-1,_=C.peek=(x=1)=>t[C.index+x],T=C.advance=()=>t[++C.index]||"",P=()=>t.slice(C.index+1),R=(x="",Q=0)=>{C.consumed+=x,C.index+=Q},Z=x=>{C.output+=x.output!=null?x.output:x.value,R(x.value)},ye=()=>{let x=1;for(;_()==="!"&&(_(2)!=="("||_(3)==="?");)T(),C.start++,x++;return x%2===0?!1:(C.negated=!0,C.start++,!0)},fe=x=>{C[x]++,We.push(x)},Re=x=>{C[x]--,We.pop()},N=x=>{if(A.type==="globstar"){let Q=C.braces>0&&(x.type==="comma"||x.type==="brace"),F=x.extglob===!0||X.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!Q&&!F&&(C.output=C.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=le,C.output+=A.output)}if(X.length&&x.type!=="paren"&&(X[X.length-1].inner+=x.value),(x.value||x.output)&&Z(x),A&&A.type==="text"&&x.type==="text"){A.value+=x.value,A.output=(A.output||"")+x.value;return}x.prev=A,o.push(x),A=x},ze=(x,Q)=>{let F={...l[Q],conditions:1,inner:""};F.prev=A,F.parens=C.parens,F.output=C.output;let U=(r.capture?"(":"")+F.open;fe("parens"),N({type:x,value:Q,output:C.output?"":g}),N({type:"paren",extglob:!0,value:T(),output:U}),X.push(F)},Dy=x=>{let Q=x.close+(r.capture?")":""),F;if(x.type==="negate"){let U=le;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(U=L(r)),(U!==le||b()||/^\)+$/.test(P()))&&(Q=x.close=`)$))${U}`),x.inner.includes("*")&&(F=P())&&/^\.[^\\/.]+$/.test(F)){let se=vu(F,{...e,fastpaths:!1}).output;Q=x.close=`)${se})${U})`}x.prev.type==="bos"&&(C.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:p,output:Q}),Re("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let x=!1,Q=t.replace(MC,(F,U,se,Te,he,Io)=>Te==="\\"?(x=!0,F):Te==="?"?U?U+Te+(he?B.repeat(he.length):""):Io===0?G+(he?B.repeat(he.length):""):B.repeat(se.length):Te==="."?f.repeat(se.length):Te==="*"?U?U+Te+(he?le:""):le:U?F:`\\${F}`);return x===!0&&(r.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),Q===t&&r.contains===!0?(C.output=t,C):(C.output=He.wrapOutput(Q,C,e),C)}for(;!b();){if(p=T(),p==="\0")continue;if(p==="\\"){let F=_();if(F==="/"&&r.bash!==!0||F==="."||F===";")continue;if(!F){p+="\\",N({type:"text",value:p});continue}let U=/^\\+/.exec(P()),se=0;if(U&&U[0].length>2&&(se=U[0].length,C.index+=se,se%2!==0&&(p+="\\")),r.unescape===!0?p=T():p+=T(),C.brackets===0){N({type:"text",value:p});continue}}if(C.brackets>0&&(p!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&p===":"){let F=A.value.slice(1);if(F.includes("[")&&(A.posix=!0,F.includes(":"))){let U=A.value.lastIndexOf("["),se=A.value.slice(0,U),Te=A.value.slice(U+2),he=NC[Te];if(he){A.value=se+he,C.backtrack=!0,T(),!s.output&&o.indexOf(A)===1&&(s.output=g);continue}}}(p==="["&&_()!==":"||p==="-"&&_()==="]")&&(p=`\\${p}`),p==="]"&&(A.value==="["||A.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&A.value==="["&&(p="^"),A.value+=p,Z({value:p});continue}if(C.quotes===1&&p!=='"'){p=He.escapeRegex(p),A.value+=p,Z({value:p});continue}if(p==='"'){C.quotes=C.quotes===1?0:1,r.keepQuotes===!0&&N({type:"text",value:p});continue}if(p==="("){fe("parens"),N({type:"paren",value:p});continue}if(p===")"){if(C.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Yr("opening","("));let F=X[X.length-1];if(F&&C.parens===F.parens+1){Dy(X.pop());continue}N({type:"paren",value:p,output:C.parens?")":"\\)"}),Re("parens");continue}if(p==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));p=`\\${p}`}else fe("brackets");N({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){N({type:"text",value:p,output:`\\${p}`});continue}if(C.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Yr("opening","["));N({type:"text",value:p,output:`\\${p}`});continue}Re("brackets");let F=A.value.slice(1);if(A.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(p=`/${p}`),A.value+=p,Z({value:p}),r.literalBrackets===!1||He.hasRegexChars(F))continue;let U=He.escapeRegex(A.value);if(C.output=C.output.slice(0,-A.value.length),r.literalBrackets===!0){C.output+=U,A.value=U;continue}A.value=`(${u}${U}|${A.value})`,C.output+=A.value;continue}if(p==="{"&&r.nobrace!==!0){fe("braces");let F={type:"brace",value:p,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};Y.push(F),N(F);continue}if(p==="}"){let F=Y[Y.length-1];if(r.nobrace===!0||!F){N({type:"text",value:p,output:p});continue}let U=")";if(F.dots===!0){let se=o.slice(),Te=[];for(let he=se.length-1;he>=0&&(o.pop(),se[he].type!=="brace");he--)se[he].type!=="dots"&&Te.unshift(se[he].value);U=qC(Te,r),C.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let se=C.output.slice(0,F.outputIndex),Te=C.tokens.slice(F.tokensIndex);F.value=F.output="\\{",p=U="\\}",C.output=se;for(let he of Te)C.output+=he.output||he.value}N({type:"brace",value:p,output:U}),Re("braces"),Y.pop();continue}if(p==="|"){X.length>0&&X[X.length-1].conditions++,N({type:"text",value:p});continue}if(p===","){let F=p,U=Y[Y.length-1];U&&We[We.length-1]==="braces"&&(U.comma=!0,F="|"),N({type:"comma",value:p,output:F});continue}if(p==="/"){if(A.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",o.pop(),A=s;continue}N({type:"slash",value:p,output:E});continue}if(p==="."){if(C.braces>0&&A.type==="dot"){A.value==="."&&(A.output=f);let F=Y[Y.length-1];A.type="dots",A.output+=p,A.value+=p,F.dots=!0;continue}if(C.braces+C.parens===0&&A.type!=="bos"&&A.type!=="slash"){N({type:"text",value:p,output:f});continue}N({type:"dot",value:p,output:f});continue}if(p==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&_()==="("&&_(2)!=="?"){ze("qmark",p);continue}if(A&&A.type==="paren"){let U=_(),se=p;if(U==="<"&&!He.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(U)||U==="<"&&!/<([!=]|\w+>)/.test(P()))&&(se=`\\${p}`),N({type:"text",value:p,output:se});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){N({type:"qmark",value:p,output:q});continue}N({type:"qmark",value:p,output:B});continue}if(p==="!"){if(r.noextglob!==!0&&_()==="("&&(_(2)!=="?"||!/[!=<:]/.test(_(3)))){ze("negate",p);continue}if(r.nonegate!==!0&&C.index===0){ye();continue}}if(p==="+"){if(r.noextglob!==!0&&_()==="("&&_(2)!=="?"){ze("plus",p);continue}if(A&&A.value==="("||r.regex===!1){N({type:"plus",value:p,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||C.parens>0){N({type:"plus",value:p});continue}N({type:"plus",value:h});continue}if(p==="@"){if(r.noextglob!==!0&&_()==="("&&_(2)!=="?"){N({type:"at",extglob:!0,value:p,output:""});continue}N({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let F=kC.exec(P());F&&(p+=F[0],C.index+=F[0].length),N({type:"text",value:p});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=p,A.output=le,C.backtrack=!0,C.globstar=!0,R(p);continue}let x=P();if(r.noextglob!==!0&&/^\([^?]/.test(x)){ze("star",p);continue}if(A.type==="star"){if(r.noglobstar===!0){R(p);continue}let F=A.prev,U=F.prev,se=F.type==="slash"||F.type==="bos",Te=U&&(U.type==="star"||U.type==="globstar");if(r.bash===!0&&(!se||x[0]&&x[0]!=="/")){N({type:"star",value:p,output:""});continue}let he=C.braces>0&&(F.type==="comma"||F.type==="brace"),Io=X.length&&(F.type==="pipe"||F.type==="paren");if(!se&&F.type!=="paren"&&!he&&!Io){N({type:"star",value:p,output:""});continue}for(;x.slice(0,3)==="/**";){let Cn=t[C.index+4];if(Cn&&Cn!=="/")break;x=x.slice(3),R("/**",3)}if(F.type==="bos"&&b()){A.type="globstar",A.value+=p,A.output=L(r),C.output=A.output,C.globstar=!0,R(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!Te&&b()){C.output=C.output.slice(0,-(F.output+A.output).length),F.output=`(?:${F.output}`,A.type="globstar",A.output=L(r)+(r.strictSlashes?")":"|$)"),A.value+=p,C.globstar=!0,C.output+=F.output+A.output,R(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&x[0]==="/"){let Cn=x[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(F.output+A.output).length),F.output=`(?:${F.output}`,A.type="globstar",A.output=`${L(r)}${E}|${E}${Cn})`,A.value+=p,C.output+=F.output+A.output,C.globstar=!0,R(p+T()),N({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&x[0]==="/"){A.type="globstar",A.value+=p,A.output=`(?:^|${E}|${L(r)}${E})`,C.output=A.output,C.globstar=!0,R(p+T()),N({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-A.output.length),A.type="globstar",A.output=L(r),A.value+=p,C.output+=A.output,C.globstar=!0,R(p);continue}let Q={type:"star",value:p,output:le};if(r.bash===!0){Q.output=".*?",(A.type==="bos"||A.type==="slash")&&(Q.output=I+Q.output),N(Q);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){Q.output=p,N(Q);continue}(C.index===C.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(C.output+=y,A.output+=y):r.dot===!0?(C.output+=w,A.output+=w):(C.output+=I,A.output+=I),_()!=="*"&&(C.output+=g,A.output+=g)),N(Q)}for(;C.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing","]"));C.output=He.escapeLast(C.output,"["),Re("brackets")}for(;C.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing",")"));C.output=He.escapeLast(C.output,"("),Re("parens")}for(;C.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Yr("closing","}"));C.output=He.escapeLast(C.output,"{"),Re("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${E}?`}),C.backtrack===!0){C.output="";for(let x of C.tokens)C.output+=x.output!=null?x.output:x.value,x.suffix&&(C.output+=x.suffix)}return C};vu.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Wn,r.maxLength):Wn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Op[t]||t;let s=He.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:E,START_ANCHOR:g}=Gn.globChars(s),d=r.dot?f:l,D=r.dot?h:l,y=r.capture?"":"?:",w={negated:!1,prefix:""},B=r.bash===!0?".*?":E;r.capture&&(B=`(${B})`);let q=I=>I.noglobstar===!0?B:`(${y}(?:(?!${g}${I.dot?c:o}).)*?)`,v=I=>{switch(I){case"*":return`${d}${a}${B}`;case".*":return`${o}${a}${B}`;case"*.*":return`${d}${B}${o}${a}${B}`;case"*/*":return`${d}${B}${u}${a}${D}${B}`;case"**":return d+q(r);case"**/*":return`(?:${d}${q(r)}${u})?${D}${a}${B}`;case"**/*.*":return`(?:${d}${q(r)}${u})?${D}${B}${o}${a}${B}`;case"**/.*":return`(?:${d}${q(r)}${u})?${o}${a}${B}`;default:{let G=/^(.*?)\.(\w+)$/.exec(I);if(!G)return;let le=v(G[1]);return le?le+o+G[2]:void 0}}},$=He.removePrefix(t,w),L=v($);return L&&r.strictSlashes!==!0&&(L+=`${u}?`),L};Bp.exports=vu});var Ip=m((vO,Lp)=>{"use strict";var HC=require("path"),$C=Tp(),Ru=Pp(),Tu=zi(),UC=Wi(),jC=t=>t&&typeof t=="object"&&!Array.isArray(t),ue=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>ue(h,e,r));return h=>{for(let E of l){let g=E(h);if(g)return g}return!1}}let i=jC(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Tu.isWindows(e),o=i?ue.compileRe(t,e):ue.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};a=ue(n.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:E,output:g}=ue.test(l,o,e,{glob:t,posix:s}),d={glob:t,state:u,regex:o,posix:s,input:l,output:g,match:E,isMatch:h};return typeof n.onResult=="function"&&n.onResult(d),h===!1?(d.isMatch=!1,f?d:!1):a(l)?(typeof n.onIgnore=="function"&&n.onIgnore(d),d.isMatch=!1,f?d:!1):(typeof n.onMatch=="function"&&n.onMatch(d),f?d:!0)};return r&&(c.state=u),c};ue.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?Tu.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=ue.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};ue.matchBase=(t,e,r,i=Tu.isWindows(r))=>(e instanceof RegExp?e:ue.makeRe(e,r)).test(HC.basename(t));ue.isMatch=(t,e,r)=>ue(e,r)(t);ue.parse=(t,e)=>Array.isArray(t)?t.map(r=>ue.parse(r,e)):Ru(t,{...e,fastpaths:!1});ue.scan=(t,e)=>$C(t,e);ue.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=ue.toRegex(u,e);return i===!0&&(a.state=t),a};ue.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Ru.fastpaths(t,e)),n.output||(n=Ru(t,e)),ue.compileRe(n,e,r,i)};ue.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};ue.constants=UC;Lp.exports=ue});var kp=m((RO,Np)=>{"use strict";Np.exports=Ip()});var Up=m((TO,$p)=>{"use strict";var qp=require("util"),Hp=Ep(),ct=kp(),Ou=zi(),Mp=t=>t===""||t==="./",ie=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,u=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=ct(String(e[l]),{...r,onResult:u},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let E of t){let g=f(E,!0);(h?!g.isMatch:g.isMatch)&&(h?i.add(g.output):(i.delete(g.output),n.add(g.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};ie.match=ie;ie.matcher=(t,e)=>ct(t,e);ie.isMatch=(t,e,r)=>ct(e,r)(t);ie.any=ie.isMatch;ie.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(ie(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};ie.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${qp.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ie.contains(t,i,r));if(typeof e=="string"){if(Mp(t)||Mp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ie.isMatch(t,e,{...r,contains:!0})};ie.matchKeys=(t,e,r)=>{if(!Ou.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ie(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ie.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ct(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ie.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ct(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ie.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${qp.inspect(t)}"`);return[].concat(e).every(i=>ct(i,r)(t))};ie.capture=(t,e,r)=>{let i=Ou.isWindows(r),s=ct.makeRe(String(t),{...r,capture:!0}).exec(i?Ou.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ie.makeRe=(...t)=>ct.makeRe(...t);ie.scan=(...t)=>ct.scan(...t);ie.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Hp(String(i),e))r.push(ct.parse(n,e));return r};ie.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Hp(t,e)};ie.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ie.braces(t,{...e,expand:!0})};$p.exports=ie});var Xp=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.matchAny=k.convertPatternsToRe=k.makeRe=k.getPatternParts=k.expandBraceExpansion=k.expandPatternsWithBraceExpansion=k.isAffectDepthOfReadingPattern=k.endsWithSlashGlobStar=k.hasGlobStar=k.getBaseDirectory=k.isPatternRelatedToParentDirectory=k.getPatternsOutsideCurrentDirectory=k.getPatternsInsideCurrentDirectory=k.getPositivePatterns=k.getNegativePatterns=k.isPositivePattern=k.isNegativePattern=k.convertToNegativePattern=k.convertToPositivePattern=k.isDynamicPattern=k.isStaticPattern=void 0;var GC=require("path"),WC=Lh(),Bu=Up(),jp="**",zC="\\",YC=/[*?]|^!/,VC=/\[[^[]*]/,KC=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,XC=/[!*+?@]\([^(]*\)/,ZC=/,|\.\./;function Gp(t,e={}){return!Wp(t,e)}k.isStaticPattern=Gp;function Wp(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(zC)||YC.test(t)||VC.test(t)||KC.test(t)||e.extglob!==!1&&XC.test(t)||e.braceExpansion!==!1&&JC(t))}k.isDynamicPattern=Wp;function JC(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return ZC.test(i)}function QC(t){return zn(t)?t.slice(1):t}k.convertToPositivePattern=QC;function eb(t){return"!"+t}k.convertToNegativePattern=eb;function zn(t){return t.startsWith("!")&&t[1]!=="("}k.isNegativePattern=zn;function zp(t){return!zn(t)}k.isPositivePattern=zp;function tb(t){return t.filter(zn)}k.getNegativePatterns=tb;function rb(t){return t.filter(zp)}k.getPositivePatterns=rb;function ib(t){return t.filter(e=>!Pu(e))}k.getPatternsInsideCurrentDirectory=ib;function nb(t){return t.filter(Pu)}k.getPatternsOutsideCurrentDirectory=nb;function Pu(t){return t.startsWith("..")||t.startsWith("./..")}k.isPatternRelatedToParentDirectory=Pu;function sb(t){return WC(t,{flipBackslashes:!1})}k.getBaseDirectory=sb;function ob(t){return t.includes(jp)}k.hasGlobStar=ob;function Yp(t){return t.endsWith("/"+jp)}k.endsWithSlashGlobStar=Yp;function ub(t){let e=GC.basename(t);return Yp(t)||Gp(e)}k.isAffectDepthOfReadingPattern=ub;function ab(t){return t.reduce((e,r)=>e.concat(Vp(r)),[])}k.expandPatternsWithBraceExpansion=ab;function Vp(t){return Bu.braces(t,{expand:!0,nodupes:!0})}k.expandBraceExpansion=Vp;function cb(t,e){let{parts:r}=Bu.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}k.getPatternParts=cb;function Kp(t,e){return Bu.makeRe(t,e)}k.makeRe=Kp;function lb(t,e){return t.map(r=>Kp(r,e))}k.convertPatternsToRe=lb;function fb(t,e){return e.some(r=>r.test(t))}k.matchAny=fb});var ed=m((BO,Qp)=>{"use strict";var hb=require("stream"),Zp=hb.PassThrough,pb=Array.prototype.slice;Qp.exports=db;function db(){let t=[],e=pb.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=Zp(i);function u(){for(let l=0,f=arguments.length;l<f;l++)t.push(Jp(arguments[l],i));return a(),this}function a(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,a())}function E(g){function d(){g.removeListener("merge2UnpipeEnd",d),g.removeListener("end",d),s&&g.removeListener("error",D),h()}function D(y){o.emit("error",y)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",d),g.on("end",d),s&&g.on("error",D),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<l.length;g++)E(l[g]);h()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function Jp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Jp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Zp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var rd=m(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.merge=void 0;var mb=ed();function gb(t){let e=mb(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>td(t)),e.once("end",()=>td(t)),e}Yn.merge=gb;function td(t){t.forEach(e=>e.emit("close"))}});var id=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.isEmpty=Vr.isString=void 0;function Eb(t){return typeof t=="string"}Vr.isString=Eb;function Db(t){return t===""}Vr.isEmpty=Db});var vt=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.string=Se.stream=Se.pattern=Se.path=Se.fs=Se.errno=Se.array=void 0;var yb=bh();Se.array=yb;var Ab=wh();Se.errno=Ab;var _b=Fh();Se.fs=_b;var Sb=xh();Se.path=Sb;var Cb=Xp();Se.pattern=Cb;var bb=rd();Se.stream=bb;var wb=id();Se.string=wb});var od=m(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.convertPatternGroupToTask=Ce.convertPatternGroupsToTasks=Ce.groupPatternsByBaseDirectory=Ce.getNegativePatternsAsPositive=Ce.getPositivePatterns=Ce.convertPatternsToTasks=Ce.generate=void 0;var Rt=vt();function Fb(t,e){let r=nd(t),i=sd(t,e.ignore),n=r.filter(a=>Rt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Rt.pattern.isDynamicPattern(a,e)),o=Lu(n,i,!1),u=Lu(s,i,!0);return o.concat(u)}Ce.generate=Fb;function Lu(t,e,r){let i=[],n=Rt.pattern.getPatternsOutsideCurrentDirectory(t),s=Rt.pattern.getPatternsInsideCurrentDirectory(t),o=Iu(n),u=Iu(s);return i.push(...Nu(o,e,r)),"."in u?i.push(ku(".",s,e,r)):i.push(...Nu(u,e,r)),i}Ce.convertPatternsToTasks=Lu;function nd(t){return Rt.pattern.getPositivePatterns(t)}Ce.getPositivePatterns=nd;function sd(t,e){return Rt.pattern.getNegativePatterns(t).concat(e).map(Rt.pattern.convertToPositivePattern)}Ce.getNegativePatternsAsPositive=sd;function Iu(t){let e={};return t.reduce((r,i)=>{let n=Rt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}Ce.groupPatternsByBaseDirectory=Iu;function Nu(t,e,r){return Object.keys(t).map(i=>ku(i,t[i],e,r))}Ce.convertPatternGroupsToTasks=Nu;function ku(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Rt.pattern.convertToNegativePattern))}}Ce.convertPatternGroupToTask=ku});var ad=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.removeDuplicateSlashes=Kr.transform=void 0;var xb=/(?!^)\/{2,}/g;function vb(t){return t.map(e=>ud(e))}Kr.transform=vb;function ud(t){return t.replace(xb,"/")}Kr.removeDuplicateSlashes=ud});var ld=m(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.read=void 0;function Rb(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){cd(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Mu(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){cd(r,s);return}Mu(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Mu(r,o)})})}Vn.read=Rb;function cd(t,e){t(e)}function Mu(t,e){t(null,e)}});var fd=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.read=void 0;function Tb(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Kn.read=Tb});var hd=m(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.createFileSystemAdapter=zt.FILE_SYSTEM_ADAPTER=void 0;var Xn=require("fs");zt.FILE_SYSTEM_ADAPTER={lstat:Xn.lstat,stat:Xn.stat,lstatSync:Xn.lstatSync,statSync:Xn.statSync};function Ob(t){return t===void 0?zt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},zt.FILE_SYSTEM_ADAPTER),t)}zt.createFileSystemAdapter=Ob});var pd=m(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});var Bb=hd(),qu=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Bb.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};Hu.default=qu});var _r=m(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.statSync=Yt.stat=Yt.Settings=void 0;var dd=ld(),Pb=fd(),$u=pd();Yt.Settings=$u.default;function Lb(t,e,r){if(typeof e=="function"){dd.read(t,Uu(),e);return}dd.read(t,Uu(e),r)}Yt.stat=Lb;function Ib(t,e){let r=Uu(e);return Pb.read(t,r)}Yt.statSync=Ib;function Uu(t={}){return t instanceof $u.default?t:new $u.default(t)}});var Ed=m((jO,gd)=>{var md;gd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(md||(md=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var yd=m((GO,Dd)=>{Dd.exports=kb;var Nb=Ed();function kb(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(a){function c(){e&&e(a,r),e=null}s?Nb(c):c()}function u(a,c,l){r[a]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(a){t[a](function(c,l){u(a,c,l)})}):t.forEach(function(a,c){a(function(l,f){u(c,l,f)})}):o(null),s=!1}});var ju=m(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Zn=process.versions.node.split(".");if(Zn[0]===void 0||Zn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ad=Number.parseInt(Zn[0],10),Mb=Number.parseInt(Zn[1],10),_d=10,qb=10,Hb=Ad>_d,$b=Ad===_d&&Mb>=qb;Jn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Hb||$b});var Sd=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.createDirentFromStats=void 0;var Gu=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Ub(t,e){return new Gu(t,e)}Qn.createDirentFromStats=Ub});var Wu=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.fs=void 0;var jb=Sd();es.fs=jb});var zu=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.joinPathSegments=void 0;function Gb(t,e,r){return t.endsWith(r)?t+e:t+r+e}ts.joinPathSegments=Gb});var vd=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.readdir=Vt.readdirWithFileTypes=Vt.read=void 0;var Wb=_r(),Cd=yd(),zb=ju(),bd=Wu(),wd=zu();function Yb(t,e,r){if(!e.stats&&zb.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Fd(t,e,r);return}xd(t,e,r)}Vt.read=Yb;function Fd(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){rs(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:wd.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Yu(r,s);return}let o=s.map(u=>Vb(u,e));Cd(o,(u,a)=>{if(u!==null){rs(r,u);return}Yu(r,a)})})}Vt.readdirWithFileTypes=Fd;function Vb(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=bd.fs.createDirentFromStats(t.name,n),r(null,t)})}}function xd(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){rs(r,i);return}let s=n.map(o=>{let u=wd.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{Wb.stat(u,e.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:bd.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),a(null,f)})}});Cd(s,(o,u)=>{if(o!==null){rs(r,o);return}Yu(r,u)})})}Vt.readdir=xd;function rs(t,e){t(e)}function Yu(t,e){t(null,e)}});var Pd=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.readdir=Kt.readdirWithFileTypes=Kt.read=void 0;var Kb=_r(),Xb=ju(),Rd=Wu(),Td=zu();function Zb(t,e){return!e.stats&&Xb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Od(t,e):Bd(t,e)}Kt.read=Zb;function Od(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Td.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Rd.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Kt.readdirWithFileTypes=Od;function Bd(t,e){return e.fs.readdirSync(t).map(i=>{let n=Td.joinPathSegments(t,i,e.pathSegmentSeparator),s=Kb.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Rd.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Kt.readdir=Bd});var Ld=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.createFileSystemAdapter=Xt.FILE_SYSTEM_ADAPTER=void 0;var Xr=require("fs");Xt.FILE_SYSTEM_ADAPTER={lstat:Xr.lstat,stat:Xr.stat,lstatSync:Xr.lstatSync,statSync:Xr.statSync,readdir:Xr.readdir,readdirSync:Xr.readdirSync};function Jb(t){return t===void 0?Xt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Xt.FILE_SYSTEM_ADAPTER),t)}Xt.createFileSystemAdapter=Jb});var Id=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Qb=require("path"),e1=_r(),t1=Ld(),Vu=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=t1.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Qb.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new e1.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ku.default=Vu});var is=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.Settings=Zt.scandirSync=Zt.scandir=void 0;var Nd=vd(),r1=Pd(),Xu=Id();Zt.Settings=Xu.default;function i1(t,e,r){if(typeof e=="function"){Nd.read(t,Zu(),e);return}Nd.read(t,Zu(e),r)}Zt.scandir=i1;function n1(t,e){let r=Zu(e);return r1.read(t,r)}Zt.scandirSync=n1;function Zu(t={}){return t instanceof Xu.default?t:new Xu.default(t)}});var Md=m((eB,kd)=>{"use strict";function s1(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}kd.exports=s1});var Hd=m((tB,Ju)=>{"use strict";var o1=Md();function qd(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=o1(u1),n=null,s=null,o=0,u=null,a={push:d,drain:Ve,saturated:Ve,pause:l,paused:!1,concurrency:r,running:c,resume:E,idle:g,length:f,getQueue:h,unshift:D,empty:Ve,kill:w,killAndDrain:B,error:q};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var v=n,$=0;v;)v=v.next,$++;return $}function h(){for(var v=n,$=[];v;)$.push(v.value),v=v.next;return $}function E(){if(a.paused){a.paused=!1;for(var v=0;v<a.concurrency;v++)o++,y()}}function g(){return o===0&&a.length()===0}function d(v,$){var L=i.get();L.context=t,L.release=y,L.value=v,L.callback=$||Ve,L.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=L,s=L):(n=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function D(v,$){var L=i.get();L.context=t,L.release=y,L.value=v,L.callback=$||Ve,o===a.concurrency||a.paused?n?(L.next=n,n=L):(n=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function y(v){v&&i.release(v);var $=n;$?a.paused?o--:(s===n&&(s=null),n=$.next,$.next=null,e.call(t,$.value,$.worked),s===null&&a.empty()):--o===0&&a.drain()}function w(){n=null,s=null,a.drain=Ve}function B(){n=null,s=null,a.drain(),a.drain=Ve}function q(v){u=v}}function Ve(){}function u1(){this.value=null,this.callback=Ve,this.next=null,this.release=Ve,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Ve,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function a1(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var n=qd(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=c,n;function u(l){var f=new Promise(function(h,E){s(l,function(g,d){if(g){E(g);return}h(d)})});return f.catch(Ve),f}function a(l){var f=new Promise(function(h,E){o(l,function(g,d){if(g){E(g);return}h(d)})});return f.catch(Ve),f}function c(){var l=n.drain,f=new Promise(function(h){n.drain=function(){l(),h()}});return f}}Ju.exports=qd;Ju.exports.promise=a1});var ns=m(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.joinPathSegments=lt.replacePathSegmentSeparator=lt.isAppliedFilter=lt.isFatalError=void 0;function c1(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}lt.isFatalError=c1;function l1(t,e){return t===null||t(e)}lt.isAppliedFilter=l1;function f1(t,e){return t.split(/[/\\]/).join(e)}lt.replacePathSegmentSeparator=f1;function h1(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}lt.joinPathSegments=h1});var ta=m(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var p1=ns(),Qu=class{constructor(e,r){this._root=e,this._settings=r,this._root=p1.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};ea.default=Qu});var na=m(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var d1=require("events"),m1=is(),g1=Hd(),ss=ns(),E1=ta(),ra=class extends E1.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=m1.scandir,this._emitter=new d1.EventEmitter,this._queue=g1(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ss.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=ss.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ss.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ss.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ia.default=ra});var $d=m(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});var D1=na(),sa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new D1.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{y1(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{A1(e,this._storage)}),this._reader.read()}};oa.default=sa;function y1(t,e){t(e)}function A1(t,e){t(null,e)}});var Ud=m(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});var _1=require("stream"),S1=na(),ua=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new S1.default(this._root,this._settings),this._stream=new _1.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};aa.default=ua});var jd=m(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});var C1=is(),os=ns(),b1=ta(),ca=class extends b1.default{constructor(){super(...arguments),this._scandir=C1.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(os.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=os.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),os.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&os.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};la.default=ca});var Gd=m(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var w1=jd(),fa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new w1.default(this._root,this._settings)}read(){return this._reader.read()}};ha.default=fa});var Wd=m(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var F1=require("path"),x1=is(),pa=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,F1.sep),this.fsScandirSettings=new x1.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};da.default=pa});var as=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.Settings=ft.walkStream=ft.walkSync=ft.walk=void 0;var zd=$d(),v1=Ud(),R1=Gd(),ma=Wd();ft.Settings=ma.default;function T1(t,e,r){if(typeof e=="function"){new zd.default(t,us()).read(e);return}new zd.default(t,us(e)).read(r)}ft.walk=T1;function O1(t,e){let r=us(e);return new R1.default(t,r).read()}ft.walkSync=O1;function B1(t,e){let r=us(e);return new v1.default(t,r).read()}ft.walkStream=B1;function us(t={}){return t instanceof ma.default?t:new ma.default(t)}});var cs=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var P1=require("path"),L1=_r(),Yd=vt(),ga=class{constructor(e){this._settings=e,this._fsStatSettings=new L1.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return P1.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:Yd.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!Yd.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ea.default=ga});var Aa=m(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var I1=require("stream"),N1=_r(),k1=as(),M1=cs(),Da=class extends M1.default{constructor(){super(...arguments),this._walkStream=k1.walkStream,this._stat=N1.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new I1.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};ya.default=Da});var Vd=m(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var q1=as(),H1=cs(),$1=Aa(),_a=class extends H1.default{constructor(){super(...arguments),this._walkAsync=q1.walk,this._readerStream=new $1.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",u=>i.push(u)),n.once("end",()=>s(i))})}};Sa.default=_a});var Kd=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Zr=vt(),Ca=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Zr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Zr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Zr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Zr.array.splitWhen(e,r=>r.dynamic&&Zr.pattern.hasGlobStar(r.pattern))}};ba.default=Ca});var Xd=m(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var U1=Kd(),wa=class extends U1.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((a,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(a)||!l.dynamic&&l.pattern===a)}))return!0}return!1}};Fa.default=wa});var Zd=m(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var ls=vt(),j1=Xd(),xa=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new j1.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(ls.pattern.isAffectDepthOfReadingPattern);return ls.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=ls.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!ls.pattern.matchAny(e,r)}};va.default=xa});var Jd=m(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var Sr=vt(),Ra=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Sr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Sr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=Sr.path.makeAbsolute(this._settings.cwd,e);return Sr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Sr.path.removeLeadingDotSegment(e),s=Sr.pattern.matchAny(n,r);return!s&&i?Sr.pattern.matchAny(n+"/",r):s}};Ta.default=Ra});var Qd=m(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var G1=vt(),Oa=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return G1.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ba.default=Oa});var tm=m(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var em=vt(),Pa=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=em.path.makeAbsolute(this._settings.cwd,r),r=em.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};La.default=Pa});var fs=m(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var W1=require("path"),z1=Zd(),Y1=Jd(),V1=Qd(),K1=tm(),Ia=class{constructor(e){this._settings=e,this.errorFilter=new V1.default(this._settings),this.entryFilter=new Y1.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new z1.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new K1.default(this._settings)}_getRootDirectory(e){return W1.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Na.default=Ia});var rm=m(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var X1=Vd(),Z1=fs(),ka=class extends Z1.default{constructor(){super(...arguments),this._reader=new X1.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ma.default=ka});var im=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var J1=require("stream"),Q1=Aa(),ew=fs(),qa=class extends ew.default{constructor(){super(...arguments),this._reader=new Q1.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new J1.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ha.default=qa});var nm=m(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var tw=_r(),rw=as(),iw=cs(),$a=class extends iw.default{constructor(){super(...arguments),this._walkSync=rw.walkSync,this._statSync=tw.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Ua.default=$a});var sm=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var nw=nm(),sw=fs(),ja=class extends sw.default{constructor(){super(...arguments),this._reader=new nw.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ga.default=ja});var om=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Jr=require("fs"),ow=require("os"),uw=Math.max(ow.cpus().length,1);Qr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Jr.lstat,lstatSync:Jr.lstatSync,stat:Jr.stat,statSync:Jr.statSync,readdir:Jr.readdir,readdirSync:Jr.readdirSync};var Wa=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,uw),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Qr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Qr.default=Wa});var lm=m((FB,cm)=>{"use strict";var um=od(),am=ad(),aw=rm(),cw=im(),lw=sm(),za=om(),Cr=vt();async function Ya(t,e){ei(t);let r=Va(t,aw.default,e),i=await Promise.all(r);return Cr.array.flatten(i)}(function(t){function e(o,u){ei(o);let a=Va(o,lw.default,u);return Cr.array.flatten(a)}t.sync=e;function r(o,u){ei(o);let a=Va(o,cw.default,u);return Cr.stream.merge(a)}t.stream=r;function i(o,u){ei(o);let a=am.transform([].concat(o)),c=new za.default(u);return um.generate(a,c)}t.generateTasks=i;function n(o,u){ei(o);let a=new za.default(u);return Cr.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return ei(o),Cr.path.escape(o)}t.escapePath=s})(Ya||(Ya={}));function Va(t,e,r){let i=am.transform([].concat(t)),n=new za.default(r),s=um.generate(i,n),o=new e(n);return s.map(o.read,o)}function ei(t){if(![].concat(t).every(i=>Cr.string.isString(i)&&!Cr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}cm.exports=Ya});var bm=m((OB,Cm)=>{Cm.exports=Sm;Sm.sync=Sw;var Am=require("fs");function _w(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function _m(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:_w(e,r)}function Sm(t,e,r){Am.stat(t,function(i,n){r(i,i?!1:_m(n,t,e))})}function Sw(t,e){return _m(Am.statSync(t),t,e)}});var Rm=m((BB,vm)=>{vm.exports=Fm;Fm.sync=Cw;var wm=require("fs");function Fm(t,e,r){wm.stat(t,function(i,n){r(i,i?!1:xm(n,e))})}function Cw(t,e){return xm(wm.statSync(t),e)}function xm(t,e){return t.isFile()&&bw(t,e)}function bw(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),l=u|a,f=r&c||r&a&&n===o||r&u&&i===s||r&l&&s===0;return f}});var Om=m((LB,Tm)=>{var PB=require("fs"),hs;process.platform==="win32"||global.TESTING_WINDOWS?hs=bm():hs=Rm();Tm.exports=Ja;Ja.sync=ww;function Ja(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){Ja(t,e||{},function(s,o){s?n(s):i(o)})})}hs(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function ww(t,e){try{return hs.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Mm=m((IB,km)=>{var ri=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Bm=require("path"),Fw=ri?";":":",Pm=Om(),Lm=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Im=(t,e)=>{let r=e.colon||Fw,i=t.match(/\//)||ri&&t.match(/\\/)?[""]:[...ri?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=ri?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ri?n.split(r):[""];return ri&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Nm=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Im(t,e),o=[],u=c=>new Promise((l,f)=>{if(c===i.length)return e.all&&o.length?l(o):f(Lm(t));let h=i[c],E=/^".*"$/.test(h)?h.slice(1,-1):h,g=Bm.join(E,t),d=!E&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;l(a(d,c,0))}),a=(c,l,f)=>new Promise((h,E)=>{if(f===n.length)return h(u(l+1));let g=n[f];Pm(c+g,{pathExt:s},(d,D)=>{if(!d&&D)if(e.all)o.push(c+g);else return h(c+g);return h(a(c,l,f+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},xw=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Im(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=Bm.join(a,t),l=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let f=0;f<i.length;f++){let h=l+i[f];try{if(Pm.sync(h,{pathExt:n}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Lm(t)};km.exports=Nm;Nm.sync=xw});var ec=m((NB,Qa)=>{"use strict";var qm=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Qa.exports=qm;Qa.exports.default=qm});var jm=m((kB,Um)=>{"use strict";var Hm=require("path"),vw=Mm(),Rw=ec();function $m(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=vw.sync(t.command,{path:r[Rw({env:r})],pathExt:e?Hm.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Hm.resolve(n?t.options.cwd:"",o)),o}function Tw(t){return $m(t)||$m(t,!0)}Um.exports=Tw});var Gm=m((MB,rc)=>{"use strict";var tc=/([()\][%!^"`<>&|;, *?])/g;function Ow(t){return t=t.replace(tc,"^$1"),t}function Bw(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(tc,"^$1"),e&&(t=t.replace(tc,"^$1")),t}rc.exports.command=Ow;rc.exports.argument=Bw});var zm=m((qB,Wm)=>{"use strict";Wm.exports=/^#!(.*)/});var Vm=m((HB,Ym)=>{"use strict";var Pw=zm();Ym.exports=(t="")=>{let e=t.match(Pw);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var Xm=m(($B,Km)=>{"use strict";var ic=require("fs"),Lw=Vm();function Iw(t){let r=Buffer.alloc(150),i;try{i=ic.openSync(t,"r"),ic.readSync(i,r,0,150,0),ic.closeSync(i)}catch{}return Lw(r.toString())}Km.exports=Iw});var e0=m((UB,Qm)=>{"use strict";var Nw=require("path"),Zm=jm(),Jm=Gm(),kw=Xm(),Mw=process.platform==="win32",qw=/\.(?:com|exe)$/i,Hw=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function $w(t){t.file=Zm(t);let e=t.file&&kw(t.file);return e?(t.args.unshift(t.file),t.command=e,Zm(t)):t.file}function Uw(t){if(!Mw)return t;let e=$w(t),r=!qw.test(e);if(t.options.forceShell||r){let i=Hw.test(e);t.command=Nw.normalize(t.command),t.command=Jm.command(t.command),t.args=t.args.map(s=>Jm.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function jw(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:Uw(i)}Qm.exports=jw});var i0=m((jB,r0)=>{"use strict";var nc=process.platform==="win32";function sc(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Gw(t,e){if(!nc)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=t0(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function t0(t,e){return nc&&t===1&&!e.file?sc(e.original,"spawn"):null}function Ww(t,e){return nc&&t===1&&!e.file?sc(e.original,"spawnSync"):null}r0.exports={hookChildProcess:Gw,verifyENOENT:t0,verifyENOENTSync:Ww,notFoundError:sc}});var o0=m((GB,ii)=>{"use strict";var n0=require("child_process"),oc=e0(),uc=i0();function s0(t,e,r){let i=oc(t,e,r),n=n0.spawn(i.command,i.args,i.options);return uc.hookChildProcess(n,i),n}function zw(t,e,r){let i=oc(t,e,r),n=n0.spawnSync(i.command,i.args,i.options);return n.error=n.error||uc.verifyENOENTSync(n.status,i),n}ii.exports=s0;ii.exports.spawn=s0;ii.exports.sync=zw;ii.exports._parse=oc;ii.exports._enoent=uc});var a0=m((WB,u0)=>{"use strict";u0.exports=t=>{let e=typeof t=="string"?`
1
+ "use strict";var zE=Object.create;var sn=Object.defineProperty;var KE=Object.getOwnPropertyDescriptor;var VE=Object.getOwnPropertyNames;var XE=Object.getPrototypeOf,ZE=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nu=(t,e)=>{for(var r in e)sn(t,r,{get:e[r],enumerable:!0})},Du=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of VE(e))!ZE.call(t,n)&&n!==r&&sn(t,n,{get:()=>e[n],enumerable:!(i=KE(e,n))||i.enumerable});return t};var U=(t,e,r)=>(r=t!=null?zE(XE(t)):{},Du(e||!t||!t.__esModule?sn(r,"default",{value:t,enumerable:!0}):r,t)),QE=t=>Du(sn({},"__esModule",{value:!0}),t);var Fu=d((B1,ut)=>{function po(t){return ut.exports=po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut.exports.__esModule=!0,ut.exports.default=ut.exports,po(t)}ut.exports=po,ut.exports.__esModule=!0,ut.exports.default=ut.exports});var qu=d((q1,ht)=>{var Mu=Fu().default;function Bu(){"use strict";ht.exports=Bu=function(){return e},ht.exports.__esModule=!0,ht.exports.default=ht.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(p,b,E){p[b]=E.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(p,b,E){return Object.defineProperty(p,b,{value:E,enumerable:!0,configurable:!0,writable:!0}),p[b]}try{c({},"")}catch{c=function(E,O,L){return E[O]=L}}function u(p,b,E,O){var L=b&&b.prototype instanceof x?b:x,T=Object.create(L.prototype),Y=new Fe(O||[]);return n(T,"_invoke",{value:ie(p,E,Y)}),T}function h(p,b,E){try{return{type:"normal",arg:p.call(b,E)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f="suspendedStart",g="suspendedYield",m="executing",y="completed",w={};function x(){}function R(){}function M(){}var re={};c(re,o,function(){return this});var N=Object.getPrototypeOf,q=N&&N(N(_([])));q&&q!==r&&i.call(q,o)&&(re=q);var P=M.prototype=x.prototype=Object.create(re);function I(p){["next","throw","return"].forEach(function(b){c(p,b,function(E){return this._invoke(b,E)})})}function B(p,b){function E(L,T,Y,he){var ne=h(p[L],p,T);if(ne.type!=="throw"){var be=ne.arg,k=be.value;return k&&Mu(k)=="object"&&i.call(k,"__await")?b.resolve(k.__await).then(function(Me){E("next",Me,Y,he)},function(Me){E("throw",Me,Y,he)}):b.resolve(k).then(function(Me){be.value=Me,Y(be)},function(Me){return E("throw",Me,Y,he)})}he(ne.arg)}var O;n(this,"_invoke",{value:function(T,Y){function he(){return new b(function(ne,be){E(T,Y,ne,be)})}return O=O?O.then(he,he):he()}})}function ie(p,b,E){var O=f;return function(L,T){if(O===m)throw new Error("Generator is already running");if(O===y){if(L==="throw")throw T;return{value:t,done:!0}}for(E.method=L,E.arg=T;;){var Y=E.delegate;if(Y){var he=S(Y,E);if(he){if(he===w)continue;return he}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(O===f)throw O=y,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);O=m;var ne=h(p,b,E);if(ne.type==="normal"){if(O=E.done?y:g,ne.arg===w)continue;return{value:ne.arg,done:E.done}}ne.type==="throw"&&(O=y,E.method="throw",E.arg=ne.arg)}}}function S(p,b){var E=b.method,O=p.iterator[E];if(O===t)return b.delegate=null,E==="throw"&&p.iterator.return&&(b.method="return",b.arg=t,S(p,b),b.method==="throw")||E!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+E+"' method")),w;var L=h(O,p.iterator,b.arg);if(L.type==="throw")return b.method="throw",b.arg=L.arg,b.delegate=null,w;var T=L.arg;return T?T.done?(b[p.resultName]=T.value,b.next=p.nextLoc,b.method!=="return"&&(b.method="next",b.arg=t),b.delegate=null,w):T:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,w)}function W(p){var b={tryLoc:p[0]};1 in p&&(b.catchLoc=p[1]),2 in p&&(b.finallyLoc=p[2],b.afterLoc=p[3]),this.tryEntries.push(b)}function G(p){var b=p.completion||{};b.type="normal",delete b.arg,p.completion=b}function Fe(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(W,this),this.reset(!0)}function _(p){if(p||p===""){var b=p[o];if(b)return b.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var E=-1,O=function L(){for(;++E<p.length;)if(i.call(p,E))return L.value=p[E],L.done=!1,L;return L.value=t,L.done=!0,L};return O.next=O}}throw new TypeError(Mu(p)+" is not iterable")}return R.prototype=M,n(P,"constructor",{value:M,configurable:!0}),n(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,l,"GeneratorFunction"),e.isGeneratorFunction=function(p){var b=typeof p=="function"&&p.constructor;return!!b&&(b===R||(b.displayName||b.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,M):(p.__proto__=M,c(p,l,"GeneratorFunction")),p.prototype=Object.create(P),p},e.awrap=function(p){return{__await:p}},I(B.prototype),c(B.prototype,a,function(){return this}),e.AsyncIterator=B,e.async=function(p,b,E,O,L){L===void 0&&(L=Promise);var T=new B(u(p,b,E,O),L);return e.isGeneratorFunction(b)?T:T.next().then(function(Y){return Y.done?Y.value:T.next()})},I(P),c(P,l,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),e.keys=function(p){var b=Object(p),E=[];for(var O in b)E.push(O);return E.reverse(),function L(){for(;E.length;){var T=E.pop();if(T in b)return L.value=T,L.done=!1,L}return L.done=!0,L}},e.values=_,Fe.prototype={constructor:Fe,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(G),!b)for(var E in this)E.charAt(0)==="t"&&i.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=t)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var E=this;function O(be,k){return Y.type="throw",Y.arg=b,E.next=be,k&&(E.method="next",E.arg=t),!!k}for(var L=this.tryEntries.length-1;L>=0;--L){var T=this.tryEntries[L],Y=T.completion;if(T.tryLoc==="root")return O("end");if(T.tryLoc<=this.prev){var he=i.call(T,"catchLoc"),ne=i.call(T,"finallyLoc");if(he&&ne){if(this.prev<T.catchLoc)return O(T.catchLoc,!0);if(this.prev<T.finallyLoc)return O(T.finallyLoc)}else if(he){if(this.prev<T.catchLoc)return O(T.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return O(T.finallyLoc)}}}},abrupt:function(b,E){for(var O=this.tryEntries.length-1;O>=0;--O){var L=this.tryEntries[O];if(L.tryLoc<=this.prev&&i.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var T=L;break}}T&&(b==="break"||b==="continue")&&T.tryLoc<=E&&E<=T.finallyLoc&&(T=null);var Y=T?T.completion:{};return Y.type=b,Y.arg=E,T?(this.method="next",this.next=T.finallyLoc,w):this.complete(Y)},complete:function(b,E){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&E&&(this.next=E),w},finish:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.finallyLoc===b)return this.complete(O.completion,O.afterLoc),G(O),w}},catch:function(b){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc===b){var L=O.completion;if(L.type==="throw"){var T=L.arg;G(O)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(b,E,O){return this.delegate={iterator:_(b),resultName:E,nextLoc:O},this.method==="next"&&(this.arg=t),w}},e}ht.exports=Bu,ht.exports.__esModule=!0,ht.exports.default=ht.exports});var $u=d((H1,Hu)=>{var on=qu()();Hu.exports=on;try{regeneratorRuntime=on}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=on:Function("r","regeneratorRuntime = r")(on)}});var zh=d(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.splitWhen=Cr.flatten=void 0;function R0(t){return t.reduce((e,r)=>[].concat(e,r),[])}Cr.flatten=R0;function A0(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Cr.splitWhen=A0});var Kh=d(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.isEnoentCodeError=void 0;function T0(t){return t.code==="ENOENT"}mn.isEnoentCodeError=T0});var Vh=d(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.createDirentFromStats=void 0;var Ho=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function O0(t,e){return new Ho(t,e)}gn.createDirentFromStats=O0});var Xh=d(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.removeLeadingDotSegment=Ze.escape=Ze.makeAbsolute=Ze.unixify=void 0;var C0=require("path"),L0=2,P0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function I0(t){return t.replace(/\\/g,"/")}Ze.unixify=I0;function k0(t,e){return C0.resolve(t,e)}Ze.makeAbsolute=k0;function N0(t){return t.replace(P0,"\\$2")}Ze.escape=N0;function D0(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(L0)}return t}Ze.removeLeadingDotSegment=D0});var Qh=d((RL,Zh)=>{Zh.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var tf=d((AL,ef)=>{var F0=Qh(),Jh={"{":"}","(":")","[":"]"},M0=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=Jh[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},B0=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=Jh[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};ef.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(F0(e))return!0;var i=M0;return r&&r.strict===!1&&(i=B0),i(e)}});var nf=d((TL,rf)=>{"use strict";var q0=tf(),H0=require("path").posix.dirname,$0=require("os").platform()==="win32",$o="/",U0=/\\/g,G0=/[\{\[].*[\}\]]$/,j0=/(^|[^\\])([\{\[]|\([^\)]+$)/,W0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;rf.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&$0&&e.indexOf($o)<0&&(e=e.replace(U0,$o)),G0.test(e)&&(e+=$o),e+="a";do e=H0(e);while(q0(e)||j0.test(e));return e.replace(W0,"$1")}});var yn=d(Be=>{"use strict";Be.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Be.find=(t,e)=>t.nodes.find(r=>r.type===e);Be.exceedsLimit=(t,e,r=1,i)=>i===!1||!Be.isInteger(t)||!Be.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Be.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Be.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Be.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Be.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Be.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Be.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var _n=d((CL,of)=>{"use strict";var sf=yn();of.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&sf.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&sf.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)a+=r(l);return a};return r(t)}});var lf=d((LL,af)=>{"use strict";af.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var yf=d((PL,gf)=>{"use strict";var cf=lf(),ir=(t,e,r)=>{if(cf(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(cf(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),l=t+":"+e+"="+n+s+o+a;if(ir.cache.hasOwnProperty(l))return ir.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=mf(t)||mf(e),f={min:t,max:e,a:c,b:u},g=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;m=uf(y,Math.abs(c),f,i),c=f.a=0}return u>=0&&(g=uf(c,u,f,i)),f.negatives=m,f.positives=g,f.result=Y0(m,g,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&g.length+m.length>1&&(f.result=`(?:${f.result})`),ir.cache[l]=f,f.result};function Y0(t,e,r){let i=Uo(t,e,"-",!1,r)||[],n=Uo(e,t,"",!1,r)||[],s=Uo(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function z0(t,e){let r=1,i=1,n=ff(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=ff(t,r);for(n=pf(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=pf(e+1,i)-1;return s=[...s],s.sort(X0),s}function K0(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=V0(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[l,c]=i[a];l===c?s+=l:l!=="0"||c!=="9"?s+=Z0(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function uf(t,e,r,i){let n=z0(t,e),s=[],o=t,a;for(let l=0;l<n.length;l++){let c=n[l],u=K0(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+df(a.count),o=c+1;continue}r.isPadded&&(h=Q0(c,r,i)),u.string=h+u.pattern+df(u.count),s.push(u),o=c+1,a=u}return s}function Uo(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!hf(e,"string",a)&&s.push(r+a),i&&hf(e,"string",a)&&s.push(r+a)}return s}function V0(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function X0(t,e){return t>e?1:e>t?-1:0}function hf(t,e,r){return t.some(i=>i[e]===r)}function ff(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function pf(t,e){return t-t%Math.pow(10,e)}function df(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Z0(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function mf(t){return/^-?(0+)\d/.test(t)}function Q0(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}ir.cache={};ir.clearCache=()=>ir.cache={};gf.exports=ir});var Wo=d((IL,Rf)=>{"use strict";var J0=require("util"),Sf=yf(),_f=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ew=t=>e=>t===!0?Number(e):String(e),Go=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ai=t=>Number.isInteger(+t),jo=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},tw=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,rw=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},Ef=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},iw=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},bf=(t,e,r,i)=>{if(r)return Sf(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},wf=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Sf(t,e,r)},xf=(...t)=>new RangeError("Invalid range arguments: "+J0.inspect(...t)),vf=(t,e,r)=>{if(r.strictRanges===!0)throw xf([t,e]);return[]},nw=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},sw=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw xf([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=jo(a)||jo(l)||jo(c),h=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&tw(t,e,i)===!1,g=i.transform||ew(f);if(i.toRegex&&r===1)return bf(Ef(t,h),Ef(e,h),!0,i);let m={negatives:[],positives:[]},y=R=>m[R<0?"negatives":"positives"].push(Math.abs(R)),w=[],x=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):w.push(rw(g(n,x),h,f)),n=o?n-r:n+r,x++;return i.toRegex===!0?r>1?iw(m,i):wf(w,null,{wrap:!1,...i}):w},ow=(t,e,r=1,i={})=>{if(!Ai(t)&&t.length>1||!Ai(e)&&e.length>1)return vf(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return bf(l,c,!1,i);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?wf(u,null,{wrap:!1,options:i}):u},En=(t,e,r,i={})=>{if(e==null&&Go(t))return[t];if(!Go(t)||!Go(e))return vf(t,e,i);if(typeof r=="function")return En(t,e,1,{transform:r});if(_f(r))return En(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,Ai(r)?Ai(t)&&Ai(e)?sw(t,e,r,n):ow(t,e,Math.max(Math.abs(r),1),n):r!=null&&!_f(r)?nw(r,n):En(t,e,1,r)};Rf.exports=En});var Of=d((kL,Tf)=>{"use strict";var aw=Wo(),Af=yn(),lw=(t,e={})=>{let r=(i,n={})=>{let s=Af.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return a?l+i.value:"(";if(i.type==="close")return a?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let u=Af.reduce(i.nodes),h=aw(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let u of i.nodes)c+=r(u,i);return c};return r(t)};Tf.exports=lw});var Pf=d((NL,Lf)=>{"use strict";var cw=Wo(),Cf=_n(),Lr=yn(),nr=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Lr.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(nr(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?nr(n,s,r):n+s);return Lr.flatten(i)},uw=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(nr(a.pop(),Cf(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(nr(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Lr.reduce(n.nodes);if(Lr.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=cw(...h,e);f.length===0&&(f=Cf(n,e)),a.push(nr(a.pop(),f)),n.nodes=[];return}let l=Lr.encloseBrace(n),c=n.queue,u=n;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(nr(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(nr(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Lr.flatten(i(t))};Lf.exports=uw});var kf=d((DL,If)=>{"use strict";If.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Bf=d((FL,Mf)=>{"use strict";var hw=_n(),{MAX_LENGTH:Nf,CHAR_BACKSLASH:Yo,CHAR_BACKTICK:fw,CHAR_COMMA:pw,CHAR_DOT:dw,CHAR_LEFT_PARENTHESES:mw,CHAR_RIGHT_PARENTHESES:gw,CHAR_LEFT_CURLY_BRACE:yw,CHAR_RIGHT_CURLY_BRACE:_w,CHAR_LEFT_SQUARE_BRACKET:Df,CHAR_RIGHT_SQUARE_BRACKET:Ff,CHAR_DOUBLE_QUOTE:Ew,CHAR_SINGLE_QUOTE:Sw,CHAR_NO_BREAK_SPACE:bw,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ww}=kf(),xw=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(Nf,r.maxLength):Nf;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,l=0,c=t.length,u=0,h=0,f,g={},m=()=>t[u++],y=w=>{if(w.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&w.type==="text"){a.value+=w.value;return}return o.nodes.push(w),w.parent=o,w.prev=a,a=w,w};for(y({type:"bos"});u<c;)if(o=s[s.length-1],f=m(),!(f===ww||f===bw)){if(f===Yo){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===Ff){y({type:"text",value:"\\"+f});continue}if(f===Df){l++;let w=!0,x;for(;u<c&&(x=m());){if(f+=x,x===Df){l++;continue}if(x===Yo){f+=m();continue}if(x===Ff&&(l--,l===0))break}y({type:"text",value:f});continue}if(f===mw){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===gw){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===Ew||f===Sw||f===fw){let w=f,x;for(e.keepQuotes!==!0&&(f="");u<c&&(x=m());){if(x===Yo){f+=x+m();continue}if(x===w){e.keepQuotes===!0&&(f+=x);break}f+=x}y({type:"text",value:f});continue}if(f===yw){h++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(x),s.push(o),y({type:"open",value:f});continue}if(f===_w){if(o.type!=="brace"){y({type:"text",value:f});continue}let w="close";o=s.pop(),o.close=!0,y({type:w,value:f}),h--,o=s[s.length-1];continue}if(f===pw&&h>0){if(o.ranges>0){o.ranges=0;let w=o.nodes.shift();o.nodes=[w,{type:"text",value:hw(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===dw&&h>0&&o.commas===0){let w=o.nodes;if(h===0||w.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){w.pop();let x=w[w.length-1];x.value+=a.value+f,a=x,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});let w=s[s.length-1],x=w.nodes.indexOf(o);w.nodes.splice(x,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};Mf.exports=xw});var $f=d((ML,Hf)=>{"use strict";var qf=_n(),vw=Of(),Rw=Pf(),Aw=Bf(),Le=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Le.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Le.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Le.parse=(t,e={})=>Aw(t,e);Le.stringify=(t,e={})=>qf(typeof t=="string"?Le.parse(t,e):t,e);Le.compile=(t,e={})=>(typeof t=="string"&&(t=Le.parse(t,e)),vw(t,e));Le.expand=(t,e={})=>{typeof t=="string"&&(t=Le.parse(t,e));let r=Rw(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Le.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Le.compile(t,e):Le.expand(t,e);Hf.exports=Le});var Ti=d((BL,Yf)=>{"use strict";var Tw=require("path"),Qe="\\\\/",Uf=`[^${Qe}]`,dt="\\.",Ow="\\+",Cw="\\?",Sn="\\/",Lw="(?=.)",Gf="[^/]",zo=`(?:${Sn}|$)`,jf=`(?:^|${Sn})`,Ko=`${dt}{1,2}${zo}`,Pw=`(?!${dt})`,Iw=`(?!${jf}${Ko})`,kw=`(?!${dt}{0,1}${zo})`,Nw=`(?!${Ko})`,Dw=`[^.${Sn}]`,Fw=`${Gf}*?`,Wf={DOT_LITERAL:dt,PLUS_LITERAL:Ow,QMARK_LITERAL:Cw,SLASH_LITERAL:Sn,ONE_CHAR:Lw,QMARK:Gf,END_ANCHOR:zo,DOTS_SLASH:Ko,NO_DOT:Pw,NO_DOTS:Iw,NO_DOT_SLASH:kw,NO_DOTS_SLASH:Nw,QMARK_NO_DOT:Dw,STAR:Fw,START_ANCHOR:jf},Mw={...Wf,SLASH_LITERAL:`[${Qe}]`,QMARK:Uf,STAR:`${Uf}*?`,DOTS_SLASH:`${dt}{1,2}(?:[${Qe}]|$)`,NO_DOT:`(?!${dt})`,NO_DOTS:`(?!(?:^|[${Qe}])${dt}{1,2}(?:[${Qe}]|$))`,NO_DOT_SLASH:`(?!${dt}{0,1}(?:[${Qe}]|$))`,NO_DOTS_SLASH:`(?!${dt}{1,2}(?:[${Qe}]|$))`,QMARK_NO_DOT:`[^.${Qe}]`,START_ANCHOR:`(?:^|[${Qe}])`,END_ANCHOR:`(?:[${Qe}]|$)`},Bw={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Yf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Bw,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Tw.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Mw:Wf}}});var Oi=d(Re=>{"use strict";var qw=require("path"),Hw=process.platform==="win32",{REGEX_BACKSLASH:$w,REGEX_REMOVE_BACKSLASH:Uw,REGEX_SPECIAL_CHARS:Gw,REGEX_SPECIAL_CHARS_GLOBAL:jw}=Ti();Re.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Re.hasRegexChars=t=>Gw.test(t);Re.isRegexChar=t=>t.length===1&&Re.hasRegexChars(t);Re.escapeRegex=t=>t.replace(jw,"\\$1");Re.toPosixSlashes=t=>t.replace($w,"/");Re.removeBackslashes=t=>t.replace(Uw,e=>e==="\\"?"":e);Re.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Re.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Hw===!0||qw.sep==="\\";Re.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?Re.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};Re.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Re.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var ep=d((HL,Jf)=>{"use strict";var zf=Oi(),{CHAR_ASTERISK:Vo,CHAR_AT:Ww,CHAR_BACKWARD_SLASH:Ci,CHAR_COMMA:Yw,CHAR_DOT:Xo,CHAR_EXCLAMATION_MARK:Zo,CHAR_FORWARD_SLASH:Qf,CHAR_LEFT_CURLY_BRACE:Qo,CHAR_LEFT_PARENTHESES:Jo,CHAR_LEFT_SQUARE_BRACKET:zw,CHAR_PLUS:Kw,CHAR_QUESTION_MARK:Kf,CHAR_RIGHT_CURLY_BRACE:Vw,CHAR_RIGHT_PARENTHESES:Vf,CHAR_RIGHT_SQUARE_BRACKET:Xw}=Ti(),Xf=t=>t===Qf||t===Ci,Zf=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Zw=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,h=0,f=!1,g=!1,m=!1,y=!1,w=!1,x=!1,R=!1,M=!1,re=!1,N=!1,q=0,P,I,B={value:"",depth:0,isGlob:!1},ie=()=>c>=i,S=()=>l.charCodeAt(c+1),W=()=>(P=I,l.charCodeAt(++c));for(;c<i;){I=W();let b;if(I===Ci){R=B.backslashes=!0,I=W(),I===Qo&&(x=!0);continue}if(x===!0||I===Qo){for(q++;ie()!==!0&&(I=W());){if(I===Ci){R=B.backslashes=!0,W();continue}if(I===Qo){q++;continue}if(x!==!0&&I===Xo&&(I=W())===Xo){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(x!==!0&&I===Yw){if(f=B.isBrace=!0,m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===Vw&&(q--,q===0)){x=!1,f=B.isBrace=!0,N=!0;break}}if(n===!0)continue;break}if(I===Qf){if(s.push(c),o.push(B),B={value:"",depth:0,isGlob:!1},N===!0)continue;if(P===Xo&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(I===Kw||I===Ww||I===Vo||I===Kf||I===Zo)===!0&&S()===Jo){if(m=B.isGlob=!0,y=B.isExtglob=!0,N=!0,I===Zo&&c===u&&(re=!0),n===!0){for(;ie()!==!0&&(I=W());){if(I===Ci){R=B.backslashes=!0,I=W();continue}if(I===Vf){m=B.isGlob=!0,N=!0;break}}continue}break}if(I===Vo){if(P===Vo&&(w=B.isGlobstar=!0),m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===Kf){if(m=B.isGlob=!0,N=!0,n===!0)continue;break}if(I===zw){for(;ie()!==!0&&(b=W());){if(b===Ci){R=B.backslashes=!0,W();continue}if(b===Xw){g=B.isBracket=!0,m=B.isGlob=!0,N=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===Zo&&c===u){M=B.negated=!0,u++;continue}if(r.noparen!==!0&&I===Jo){if(m=B.isGlob=!0,n===!0){for(;ie()!==!0&&(I=W());){if(I===Jo){R=B.backslashes=!0,I=W();continue}if(I===Vf){N=!0;break}}continue}break}if(m===!0){if(N=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let G=l,Fe="",_="";u>0&&(Fe=l.slice(0,u),l=l.slice(u),h-=u),G&&m===!0&&h>0?(G=l.slice(0,h),_=l.slice(h)):m===!0?(G="",_=l):G=l,G&&G!==""&&G!=="/"&&G!==l&&Xf(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),r.unescape===!0&&(_&&(_=zf.removeBackslashes(_)),G&&R===!0&&(G=zf.removeBackslashes(G)));let p={prefix:Fe,input:t,start:u,base:G,glob:_,isBrace:f,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:w,negated:M,negatedExtglob:re};if(r.tokens===!0&&(p.maxDepth=0,Xf(I)||o.push(B),p.tokens=o),r.parts===!0||r.tokens===!0){let b;for(let E=0;E<s.length;E++){let O=b?b+1:u,L=s[E],T=t.slice(O,L);r.tokens&&(E===0&&u!==0?(o[E].isPrefix=!0,o[E].value=Fe):o[E].value=T,Zf(o[E]),p.maxDepth+=o[E].depth),(E!==0||T!=="")&&a.push(T),b=L}if(b&&b+1<t.length){let E=t.slice(b+1);a.push(E),r.tokens&&(o[o.length-1].value=E,Zf(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};Jf.exports=Zw});var ip=d(($L,rp)=>{"use strict";var bn=Ti(),Pe=Oi(),{MAX_LENGTH:wn,POSIX_REGEX_SOURCE:Qw,REGEX_NON_SPECIAL_CHARS:Jw,REGEX_SPECIAL_CHARS_BACKREF:ex,REPLACEMENTS:tp}=bn,tx=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Pe.escapeRegex(n)).join("..")}return r},Pr=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,ea=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=tp[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(wn,r.maxLength):wn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=Pe.isWindows(e),c=bn.globChars(l),u=bn.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:w,NO_DOT_SLASH:x,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:re,STAR:N,START_ANCHOR:q}=c,P=A=>`(${a}(?:(?!${q}${A.dot?y:h}).)*?)`,I=r.dot?"":w,B=r.dot?M:re,ie=r.bash===!0?P(r):N;r.capture&&(ie=`(${ie})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let S={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Pe.removePrefix(t,S),n=t.length;let W=[],G=[],Fe=[],_=s,p,b=()=>S.index===n-1,E=S.peek=(A=1)=>t[S.index+A],O=S.advance=()=>t[++S.index]||"",L=()=>t.slice(S.index+1),T=(A="",K=0)=>{S.consumed+=A,S.index+=K},Y=A=>{S.output+=A.output!=null?A.output:A.value,T(A.value)},he=()=>{let A=1;for(;E()==="!"&&(E(2)!=="("||E(3)==="?");)O(),S.start++,A++;return A%2===0?!1:(S.negated=!0,S.start++,!0)},ne=A=>{S[A]++,Fe.push(A)},be=A=>{S[A]--,Fe.pop()},k=A=>{if(_.type==="globstar"){let K=S.braces>0&&(A.type==="comma"||A.type==="brace"),v=A.extglob===!0||W.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!K&&!v&&(S.output=S.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=ie,S.output+=_.output)}if(W.length&&A.type!=="paren"&&(W[W.length-1].inner+=A.value),(A.value||A.output)&&Y(A),_&&_.type==="text"&&A.type==="text"){_.value+=A.value,_.output=(_.output||"")+A.value;return}A.prev=_,o.push(A),_=A},Me=(A,K)=>{let v={...u[K],conditions:1,inner:""};v.prev=_,v.parens=S.parens,v.output=S.output;let F=(r.capture?"(":"")+v.open;ne("parens"),k({type:A,value:K,output:S.output?"":m}),k({type:"paren",extglob:!0,value:O(),output:F}),W.push(v)},YE=A=>{let K=A.close+(r.capture?")":""),v;if(A.type==="negate"){let F=ie;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(F=P(r)),(F!==ie||b()||/^\)+$/.test(L()))&&(K=A.close=`)$))${F}`),A.inner.includes("*")&&(v=L())&&/^\.[^\\/.]+$/.test(v)){let Q=ea(v,{...e,fastpaths:!1}).output;K=A.close=`)${Q})${F})`}A.prev.type==="bos"&&(S.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:p,output:K}),be("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,K=t.replace(ex,(v,F,Q,we,se,fo)=>we==="\\"?(A=!0,v):we==="?"?F?F+we+(se?M.repeat(se.length):""):fo===0?B+(se?M.repeat(se.length):""):M.repeat(Q.length):we==="."?h.repeat(Q.length):we==="*"?F?F+we+(se?ie:""):ie:F?v:`\\${v}`);return A===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),K===t&&r.contains===!0?(S.output=t,S):(S.output=Pe.wrapOutput(K,S,e),S)}for(;!b();){if(p=O(),p==="\0")continue;if(p==="\\"){let v=E();if(v==="/"&&r.bash!==!0||v==="."||v===";")continue;if(!v){p+="\\",k({type:"text",value:p});continue}let F=/^\\+/.exec(L()),Q=0;if(F&&F[0].length>2&&(Q=F[0].length,S.index+=Q,Q%2!==0&&(p+="\\")),r.unescape===!0?p=O():p+=O(),S.brackets===0){k({type:"text",value:p});continue}}if(S.brackets>0&&(p!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&p===":"){let v=_.value.slice(1);if(v.includes("[")&&(_.posix=!0,v.includes(":"))){let F=_.value.lastIndexOf("["),Q=_.value.slice(0,F),we=_.value.slice(F+2),se=Qw[we];if(se){_.value=Q+se,S.backtrack=!0,O(),!s.output&&o.indexOf(_)===1&&(s.output=m);continue}}}(p==="["&&E()!==":"||p==="-"&&E()==="]")&&(p=`\\${p}`),p==="]"&&(_.value==="["||_.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&_.value==="["&&(p="^"),_.value+=p,Y({value:p});continue}if(S.quotes===1&&p!=='"'){p=Pe.escapeRegex(p),_.value+=p,Y({value:p});continue}if(p==='"'){S.quotes=S.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:p});continue}if(p==="("){ne("parens"),k({type:"paren",value:p});continue}if(p===")"){if(S.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Pr("opening","("));let v=W[W.length-1];if(v&&S.parens===v.parens+1){YE(W.pop());continue}k({type:"paren",value:p,output:S.parens?")":"\\)"}),be("parens");continue}if(p==="["){if(r.nobracket===!0||!L().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));p=`\\${p}`}else ne("brackets");k({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){k({type:"text",value:p,output:`\\${p}`});continue}if(S.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Pr("opening","["));k({type:"text",value:p,output:`\\${p}`});continue}be("brackets");let v=_.value.slice(1);if(_.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(p=`/${p}`),_.value+=p,Y({value:p}),r.literalBrackets===!1||Pe.hasRegexChars(v))continue;let F=Pe.escapeRegex(_.value);if(S.output=S.output.slice(0,-_.value.length),r.literalBrackets===!0){S.output+=F,_.value=F;continue}_.value=`(${a}${F}|${_.value})`,S.output+=_.value;continue}if(p==="{"&&r.nobrace!==!0){ne("braces");let v={type:"brace",value:p,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};G.push(v),k(v);continue}if(p==="}"){let v=G[G.length-1];if(r.nobrace===!0||!v){k({type:"text",value:p,output:p});continue}let F=")";if(v.dots===!0){let Q=o.slice(),we=[];for(let se=Q.length-1;se>=0&&(o.pop(),Q[se].type!=="brace");se--)Q[se].type!=="dots"&&we.unshift(Q[se].value);F=tx(we,r),S.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){let Q=S.output.slice(0,v.outputIndex),we=S.tokens.slice(v.tokensIndex);v.value=v.output="\\{",p=F="\\}",S.output=Q;for(let se of we)S.output+=se.output||se.value}k({type:"brace",value:p,output:F}),be("braces"),G.pop();continue}if(p==="|"){W.length>0&&W[W.length-1].conditions++,k({type:"text",value:p});continue}if(p===","){let v=p,F=G[G.length-1];F&&Fe[Fe.length-1]==="braces"&&(F.comma=!0,v="|"),k({type:"comma",value:p,output:v});continue}if(p==="/"){if(_.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",o.pop(),_=s;continue}k({type:"slash",value:p,output:g});continue}if(p==="."){if(S.braces>0&&_.type==="dot"){_.value==="."&&(_.output=h);let v=G[G.length-1];_.type="dots",_.output+=p,_.value+=p,v.dots=!0;continue}if(S.braces+S.parens===0&&_.type!=="bos"&&_.type!=="slash"){k({type:"text",value:p,output:h});continue}k({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&E()==="("&&E(2)!=="?"){Me("qmark",p);continue}if(_&&_.type==="paren"){let F=E(),Q=p;if(F==="<"&&!Pe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(L()))&&(Q=`\\${p}`),k({type:"text",value:p,output:Q});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){k({type:"qmark",value:p,output:re});continue}k({type:"qmark",value:p,output:M});continue}if(p==="!"){if(r.noextglob!==!0&&E()==="("&&(E(2)!=="?"||!/[!=<:]/.test(E(3)))){Me("negate",p);continue}if(r.nonegate!==!0&&S.index===0){he();continue}}if(p==="+"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){Me("plus",p);continue}if(_&&_.value==="("||r.regex===!1){k({type:"plus",value:p,output:f});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||S.parens>0){k({type:"plus",value:p});continue}k({type:"plus",value:f});continue}if(p==="@"){if(r.noextglob!==!0&&E()==="("&&E(2)!=="?"){k({type:"at",extglob:!0,value:p,output:""});continue}k({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let v=Jw.exec(L());v&&(p+=v[0],S.index+=v[0].length),k({type:"text",value:p});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=p,_.output=ie,S.backtrack=!0,S.globstar=!0,T(p);continue}let A=L();if(r.noextglob!==!0&&/^\([^?]/.test(A)){Me("star",p);continue}if(_.type==="star"){if(r.noglobstar===!0){T(p);continue}let v=_.prev,F=v.prev,Q=v.type==="slash"||v.type==="bos",we=F&&(F.type==="star"||F.type==="globstar");if(r.bash===!0&&(!Q||A[0]&&A[0]!=="/")){k({type:"star",value:p,output:""});continue}let se=S.braces>0&&(v.type==="comma"||v.type==="brace"),fo=W.length&&(v.type==="pipe"||v.type==="paren");if(!Q&&v.type!=="paren"&&!se&&!fo){k({type:"star",value:p,output:""});continue}for(;A.slice(0,3)==="/**";){let nn=t[S.index+4];if(nn&&nn!=="/")break;A=A.slice(3),T("/**",3)}if(v.type==="bos"&&b()){_.type="globstar",_.value+=p,_.output=P(r),S.output=_.output,S.globstar=!0,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!we&&b()){S.output=S.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=P(r)+(r.strictSlashes?")":"|$)"),_.value+=p,S.globstar=!0,S.output+=v.output+_.output,T(p);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&A[0]==="/"){let nn=A[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(v.output+_.output).length),v.output=`(?:${v.output}`,_.type="globstar",_.output=`${P(r)}${g}|${g}${nn})`,_.value+=p,S.output+=v.output+_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&A[0]==="/"){_.type="globstar",_.value+=p,_.output=`(?:^|${g}|${P(r)}${g})`,S.output=_.output,S.globstar=!0,T(p+O()),k({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-_.output.length),_.type="globstar",_.output=P(r),_.value+=p,S.output+=_.output,S.globstar=!0,T(p);continue}let K={type:"star",value:p,output:ie};if(r.bash===!0){K.output=".*?",(_.type==="bos"||_.type==="slash")&&(K.output=I+K.output),k(K);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&r.regex===!0){K.output=p,k(K);continue}(S.index===S.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(S.output+=x,_.output+=x):r.dot===!0?(S.output+=R,_.output+=R):(S.output+=I,_.output+=I),E()!=="*"&&(S.output+=m,_.output+=m)),k(K)}for(;S.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","]"));S.output=Pe.escapeLast(S.output,"["),be("brackets")}for(;S.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing",")"));S.output=Pe.escapeLast(S.output,"("),be("parens")}for(;S.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Pr("closing","}"));S.output=Pe.escapeLast(S.output,"{"),be("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${g}?`}),S.backtrack===!0){S.output="";for(let A of S.tokens)S.output+=A.output!=null?A.output:A.value,A.suffix&&(S.output+=A.suffix)}return S};ea.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(wn,r.maxLength):wn,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=tp[t]||t;let s=Pe.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:m}=bn.globChars(s),y=r.dot?h:u,w=r.dot?f:u,x=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":g;r.capture&&(M=`(${M})`);let re=I=>I.noglobstar===!0?M:`(${x}(?:(?!${m}${I.dot?c:o}).)*?)`,N=I=>{switch(I){case"*":return`${y}${l}${M}`;case".*":return`${o}${l}${M}`;case"*.*":return`${y}${M}${o}${l}${M}`;case"*/*":return`${y}${M}${a}${l}${w}${M}`;case"**":return y+re(r);case"**/*":return`(?:${y}${re(r)}${a})?${w}${l}${M}`;case"**/*.*":return`(?:${y}${re(r)}${a})?${w}${M}${o}${l}${M}`;case"**/.*":return`(?:${y}${re(r)}${a})?${o}${l}${M}`;default:{let B=/^(.*?)\.(\w+)$/.exec(I);if(!B)return;let ie=N(B[1]);return ie?ie+o+B[2]:void 0}}},q=Pe.removePrefix(t,R),P=N(q);return P&&r.strictSlashes!==!0&&(P+=`${a}?`),P};rp.exports=ea});var sp=d((UL,np)=>{"use strict";var rx=require("path"),ix=ep(),ta=ip(),ra=Oi(),nx=Ti(),sx=t=>t&&typeof t=="object"&&!Array.isArray(t),J=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(f=>J(f,e,r));return f=>{for(let g of u){let m=g(f);if(m)return m}return!1}}let i=sx(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=ra.isWindows(e),o=i?J.compileRe(t,e):J.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(n.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=J(n.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:f,match:g,output:m}=J.test(u,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:u,output:m,match:g,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):l(u)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};J.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?ra.toPosixSlashes:null),a=t===i,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(t,e,r,n):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};J.matchBase=(t,e,r,i=ra.isWindows(r))=>(e instanceof RegExp?e:J.makeRe(e,r)).test(rx.basename(t));J.isMatch=(t,e,r)=>J(e,r)(t);J.parse=(t,e)=>Array.isArray(t)?t.map(r=>J.parse(r,e)):ta(t,{...e,fastpaths:!1});J.scan=(t,e)=>ix(t,e);J.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=J.toRegex(a,e);return i===!0&&(l.state=t),l};J.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=ta.fastpaths(t,e)),n.output||(n=ta(t,e)),J.compileRe(n,e,r,i)};J.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};J.constants=nx;np.exports=J});var ap=d((GL,op)=>{"use strict";op.exports=sp()});var fp=d((jL,hp)=>{"use strict";var cp=require("util"),up=$f(),Je=ap(),ia=Oi(),lp=t=>t===""||t==="./",X=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let h=Je(String(e[u]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let g of t){let m=h(g,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(u=>!i.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};X.match=X;X.matcher=(t,e)=>Je(t,e);X.isMatch=(t,e,r)=>Je(e,r)(t);X.any=X.isMatch;X.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(X(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};X.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${cp.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>X.contains(t,i,r));if(typeof e=="string"){if(lp(t)||lp(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return X.isMatch(t,e,{...r,contains:!0})};X.matchKeys=(t,e,r)=>{if(!ia.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=X(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};X.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Je(String(n),r);if(i.some(o=>s(o)))return!0}return!1};X.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Je(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};X.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${cp.inspect(t)}"`);return[].concat(e).every(i=>Je(i,r)(t))};X.capture=(t,e,r)=>{let i=ia.isWindows(r),s=Je.makeRe(String(t),{...r,capture:!0}).exec(i?ia.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};X.makeRe=(...t)=>Je.makeRe(...t);X.scan=(...t)=>Je.scan(...t);X.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of up(String(i),e))r.push(Je.parse(n,e));return r};X.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:up(t,e)};X.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return X.braces(t,{...e,expand:!0})};hp.exports=X});var Sp=d(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var ox=require("path"),ax=nf(),na=fp(),pp="**",lx="\\",cx=/[*?]|^!/,ux=/\[[^[]*]/,hx=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,fx=/[!*+?@]\([^(]*\)/,px=/,|\.\./;function dp(t,e={}){return!mp(t,e)}D.isStaticPattern=dp;function mp(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(lx)||cx.test(t)||ux.test(t)||hx.test(t)||e.extglob!==!1&&fx.test(t)||e.braceExpansion!==!1&&dx(t))}D.isDynamicPattern=mp;function dx(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return px.test(i)}function mx(t){return xn(t)?t.slice(1):t}D.convertToPositivePattern=mx;function gx(t){return"!"+t}D.convertToNegativePattern=gx;function xn(t){return t.startsWith("!")&&t[1]!=="("}D.isNegativePattern=xn;function gp(t){return!xn(t)}D.isPositivePattern=gp;function yx(t){return t.filter(xn)}D.getNegativePatterns=yx;function _x(t){return t.filter(gp)}D.getPositivePatterns=_x;function Ex(t){return t.filter(e=>!sa(e))}D.getPatternsInsideCurrentDirectory=Ex;function Sx(t){return t.filter(sa)}D.getPatternsOutsideCurrentDirectory=Sx;function sa(t){return t.startsWith("..")||t.startsWith("./..")}D.isPatternRelatedToParentDirectory=sa;function bx(t){return ax(t,{flipBackslashes:!1})}D.getBaseDirectory=bx;function wx(t){return t.includes(pp)}D.hasGlobStar=wx;function yp(t){return t.endsWith("/"+pp)}D.endsWithSlashGlobStar=yp;function xx(t){let e=ox.basename(t);return yp(t)||dp(e)}D.isAffectDepthOfReadingPattern=xx;function vx(t){return t.reduce((e,r)=>e.concat(_p(r)),[])}D.expandPatternsWithBraceExpansion=vx;function _p(t){return na.braces(t,{expand:!0,nodupes:!0})}D.expandBraceExpansion=_p;function Rx(t,e){let{parts:r}=na.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}D.getPatternParts=Rx;function Ep(t,e){return na.makeRe(t,e)}D.makeRe=Ep;function Ax(t,e){return t.map(r=>Ep(r,e))}D.convertPatternsToRe=Ax;function Tx(t,e){return e.some(r=>r.test(t))}D.matchAny=Tx});var vp=d((YL,xp)=>{"use strict";var Ox=require("stream"),bp=Ox.PassThrough,Cx=Array.prototype.slice;xp.exports=Lx;function Lx(){let t=[],e=Cx.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=bp(i);function a(){for(let u=0,h=arguments.length;u<h;u++)t.push(wp(arguments[u],i));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function f(){--h>0||(r=!1,l())}function g(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",w),f()}function w(x){o.emit("error",x)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",w),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)g(u[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function wp(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=wp(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(bp(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ap=d(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.merge=void 0;var Px=vp();function Ix(t){let e=Px(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Rp(t)),e.once("end",()=>Rp(t)),e}vn.merge=Ix;function Rp(t){t.forEach(e=>e.emit("close"))}});var Tp=d(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.isEmpty=Ir.isString=void 0;function kx(t){return typeof t=="string"}Ir.isString=kx;function Nx(t){return t===""}Ir.isEmpty=Nx});var mt=d(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.string=de.stream=de.pattern=de.path=de.fs=de.errno=de.array=void 0;var Dx=zh();de.array=Dx;var Fx=Kh();de.errno=Fx;var Mx=Vh();de.fs=Mx;var Bx=Xh();de.path=Bx;var qx=Sp();de.pattern=qx;var Hx=Ap();de.stream=Hx;var $x=Tp();de.string=$x});var Lp=d(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.convertPatternGroupToTask=me.convertPatternGroupsToTasks=me.groupPatternsByBaseDirectory=me.getNegativePatternsAsPositive=me.getPositivePatterns=me.convertPatternsToTasks=me.generate=void 0;var gt=mt();function Ux(t,e){let r=Op(t),i=Cp(t,e.ignore),n=r.filter(l=>gt.pattern.isStaticPattern(l,e)),s=r.filter(l=>gt.pattern.isDynamicPattern(l,e)),o=oa(n,i,!1),a=oa(s,i,!0);return o.concat(a)}me.generate=Ux;function oa(t,e,r){let i=[],n=gt.pattern.getPatternsOutsideCurrentDirectory(t),s=gt.pattern.getPatternsInsideCurrentDirectory(t),o=aa(n),a=aa(s);return i.push(...la(o,e,r)),"."in a?i.push(ca(".",s,e,r)):i.push(...la(a,e,r)),i}me.convertPatternsToTasks=oa;function Op(t){return gt.pattern.getPositivePatterns(t)}me.getPositivePatterns=Op;function Cp(t,e){return gt.pattern.getNegativePatterns(t).concat(e).map(gt.pattern.convertToPositivePattern)}me.getNegativePatternsAsPositive=Cp;function aa(t){let e={};return t.reduce((r,i)=>{let n=gt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}me.groupPatternsByBaseDirectory=aa;function la(t,e,r){return Object.keys(t).map(i=>ca(i,t[i],e,r))}me.convertPatternGroupsToTasks=la;function ca(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(gt.pattern.convertToNegativePattern))}}me.convertPatternGroupToTask=ca});var Ip=d(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.removeDuplicateSlashes=kr.transform=void 0;var Gx=/(?!^)\/{2,}/g;function jx(t){return t.map(e=>Pp(e))}kr.transform=jx;function Pp(t){return t.replace(Gx,"/")}kr.removeDuplicateSlashes=Pp});var Np=d(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.read=void 0;function Wx(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){kp(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){ua(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){kp(r,s);return}ua(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ua(r,o)})})}Rn.read=Wx;function kp(t,e){t(e)}function ua(t,e){t(null,e)}});var Dp=d(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.read=void 0;function Yx(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}An.read=Yx});var Fp=d(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.createFileSystemAdapter=It.FILE_SYSTEM_ADAPTER=void 0;var Tn=require("fs");It.FILE_SYSTEM_ADAPTER={lstat:Tn.lstat,stat:Tn.stat,lstatSync:Tn.lstatSync,statSync:Tn.statSync};function zx(t){return t===void 0?It.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},It.FILE_SYSTEM_ADAPTER),t)}It.createFileSystemAdapter=zx});var Mp=d(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var Kx=Fp(),ha=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Kx.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};fa.default=ha});var sr=d(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.statSync=kt.stat=kt.Settings=void 0;var Bp=Np(),Vx=Dp(),pa=Mp();kt.Settings=pa.default;function Xx(t,e,r){if(typeof e=="function"){Bp.read(t,da(),e);return}Bp.read(t,da(e),r)}kt.stat=Xx;function Zx(t,e){let r=da(e);return Vx.read(t,r)}kt.statSync=Zx;function da(t={}){return t instanceof pa.default?t:new pa.default(t)}});var $p=d((iP,Hp)=>{var qp;Hp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(qp||(qp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Gp=d((nP,Up)=>{Up.exports=Jx;var Qx=$p();function Jx(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(l){function c(){e&&e(l,r),e=null}s?Qx(c):c()}function a(l,c,u){r[l]=u,(--i===0||c)&&o(c)}i?n?n.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var ma=d(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var On=process.versions.node.split(".");if(On[0]===void 0||On[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var jp=Number.parseInt(On[0],10),ev=Number.parseInt(On[1],10),Wp=10,tv=10,rv=jp>Wp,iv=jp===Wp&&ev>=tv;Cn.IS_SUPPORT_READDIR_WITH_FILE_TYPES=rv||iv});var Yp=d(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.createDirentFromStats=void 0;var ga=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function nv(t,e){return new ga(t,e)}Ln.createDirentFromStats=nv});var ya=d(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.fs=void 0;var sv=Yp();Pn.fs=sv});var _a=d(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.joinPathSegments=void 0;function ov(t,e,r){return t.endsWith(r)?t+e:t+r+e}In.joinPathSegments=ov});var Qp=d(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.readdir=Nt.readdirWithFileTypes=Nt.read=void 0;var av=sr(),zp=Gp(),lv=ma(),Kp=ya(),Vp=_a();function cv(t,e,r){if(!e.stats&&lv.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Xp(t,e,r);return}Zp(t,e,r)}Nt.read=cv;function Xp(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){kn(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Vp.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Ea(r,s);return}let o=s.map(a=>uv(a,e));zp(o,(a,l)=>{if(a!==null){kn(r,a);return}Ea(r,l)})})}Nt.readdirWithFileTypes=Xp;function uv(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=Kp.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Zp(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){kn(r,i);return}let s=n.map(o=>{let a=Vp.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{av.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:Kp.fs.createDirentFromStats(o,u)};e.stats&&(h.stats=u),l(null,h)})}});zp(s,(o,a)=>{if(o!==null){kn(r,o);return}Ea(r,a)})})}Nt.readdir=Zp;function kn(t,e){t(e)}function Ea(t,e){t(null,e)}});var id=d(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.readdir=Dt.readdirWithFileTypes=Dt.read=void 0;var hv=sr(),fv=ma(),Jp=ya(),ed=_a();function pv(t,e){return!e.stats&&fv.IS_SUPPORT_READDIR_WITH_FILE_TYPES?td(t,e):rd(t,e)}Dt.read=pv;function td(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:ed.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Jp.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Dt.readdirWithFileTypes=td;function rd(t,e){return e.fs.readdirSync(t).map(i=>{let n=ed.joinPathSegments(t,i,e.pathSegmentSeparator),s=hv.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Jp.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Dt.readdir=rd});var nd=d(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.createFileSystemAdapter=Ft.FILE_SYSTEM_ADAPTER=void 0;var Nr=require("fs");Ft.FILE_SYSTEM_ADAPTER={lstat:Nr.lstat,stat:Nr.stat,lstatSync:Nr.lstatSync,statSync:Nr.statSync,readdir:Nr.readdir,readdirSync:Nr.readdirSync};function dv(t){return t===void 0?Ft.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ft.FILE_SYSTEM_ADAPTER),t)}Ft.createFileSystemAdapter=dv});var sd=d(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var mv=require("path"),gv=sr(),yv=nd(),Sa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=yv.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,mv.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new gv.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};ba.default=Sa});var Nn=d(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.scandirSync=Mt.scandir=void 0;var od=Qp(),_v=id(),wa=sd();Mt.Settings=wa.default;function Ev(t,e,r){if(typeof e=="function"){od.read(t,xa(),e);return}od.read(t,xa(e),r)}Mt.scandir=Ev;function Sv(t,e){let r=xa(e);return _v.read(t,r)}Mt.scandirSync=Sv;function xa(t={}){return t instanceof wa.default?t:new wa.default(t)}});var ld=d((dP,ad)=>{"use strict";function bv(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}ad.exports=bv});var ud=d((mP,va)=>{"use strict";var wv=ld();function cd(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=wv(xv),n=null,s=null,o=0,a=null,l={push:y,drain:qe,saturated:qe,pause:u,paused:!1,concurrency:r,running:c,resume:g,idle:m,length:h,getQueue:f,unshift:w,empty:qe,kill:R,killAndDrain:M,error:re};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var N=n,q=0;N;)N=N.next,q++;return q}function f(){for(var N=n,q=[];N;)q.push(N.value),N=N.next;return q}function g(){if(l.paused){l.paused=!1;for(var N=0;N<l.concurrency;N++)o++,x()}}function m(){return o===0&&l.length()===0}function y(N,q){var P=i.get();P.context=t,P.release=x,P.value=N,P.callback=q||qe,P.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=P,s=P):(n=P,s=P,l.saturated()):(o++,e.call(t,P.value,P.worked))}function w(N,q){var P=i.get();P.context=t,P.release=x,P.value=N,P.callback=q||qe,o===l.concurrency||l.paused?n?(P.next=n,n=P):(n=P,s=P,l.saturated()):(o++,e.call(t,P.value,P.worked))}function x(N){N&&i.release(N);var q=n;q?l.paused?o--:(s===n&&(s=null),n=q.next,q.next=null,e.call(t,q.value,q.worked),s===null&&l.empty()):--o===0&&l.drain()}function R(){n=null,s=null,l.drain=qe}function M(){n=null,s=null,l.drain(),l.drain=qe}function re(N){a=N}}function qe(){}function xv(){this.value=null,this.callback=qe,this.next=null,this.release=qe,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=qe,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function vv(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(u,h){e.call(this,u).then(function(f){h(null,f)},h)}var n=cd(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var h=new Promise(function(f,g){s(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(qe),h}function l(u){var h=new Promise(function(f,g){o(u,function(m,y){if(m){g(m);return}f(y)})});return h.catch(qe),h}function c(){var u=n.drain,h=new Promise(function(f){n.drain=function(){u(),f()}});return h}}va.exports=cd;va.exports.promise=vv});var Dn=d(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.joinPathSegments=et.replacePathSegmentSeparator=et.isAppliedFilter=et.isFatalError=void 0;function Rv(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}et.isFatalError=Rv;function Av(t,e){return t===null||t(e)}et.isAppliedFilter=Av;function Tv(t,e){return t.split(/[/\\]/).join(e)}et.replacePathSegmentSeparator=Tv;function Ov(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}et.joinPathSegments=Ov});var Ta=d(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Cv=Dn(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._root=Cv.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Aa.default=Ra});var La=d(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Lv=require("events"),Pv=Nn(),Iv=ud(),Fn=Dn(),kv=Ta(),Oa=class extends kv.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=Pv.scandir,this._emitter=new Lv.EventEmitter,this._queue=Iv(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Fn.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Fn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Fn.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Fn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ca.default=Oa});var hd=d(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var Nv=La(),Pa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Nv.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Dv(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Fv(e,this._storage)}),this._reader.read()}};Ia.default=Pa;function Dv(t,e){t(e)}function Fv(t,e){t(null,e)}});var fd=d(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var Mv=require("stream"),Bv=La(),ka=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Bv.default(this._root,this._settings),this._stream=new Mv.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Na.default=ka});var pd=d(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var qv=Nn(),Mn=Dn(),Hv=Ta(),Da=class extends Hv.default{constructor(){super(...arguments),this._scandir=qv.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Mn.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Mn.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Mn.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Mn.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Fa.default=Da});var dd=d(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var $v=pd(),Ma=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $v.default(this._root,this._settings)}read(){return this._reader.read()}};Ba.default=Ma});var md=d(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Uv=require("path"),Gv=Nn(),qa=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Uv.sep),this.fsScandirSettings=new Gv.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ha.default=qa});var qn=d(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.Settings=tt.walkStream=tt.walkSync=tt.walk=void 0;var gd=hd(),jv=fd(),Wv=dd(),$a=md();tt.Settings=$a.default;function Yv(t,e,r){if(typeof e=="function"){new gd.default(t,Bn()).read(e);return}new gd.default(t,Bn(e)).read(r)}tt.walk=Yv;function zv(t,e){let r=Bn(e);return new Wv.default(t,r).read()}tt.walkSync=zv;function Kv(t,e){let r=Bn(e);return new jv.default(t,r).read()}tt.walkStream=Kv;function Bn(t={}){return t instanceof $a.default?t:new $a.default(t)}});var Hn=d(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Vv=require("path"),Xv=sr(),yd=mt(),Ua=class{constructor(e){this._settings=e,this._fsStatSettings=new Xv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Vv.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:yd.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!yd.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ga.default=Ua});var Ya=d(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var Zv=require("stream"),Qv=sr(),Jv=qn(),eR=Hn(),ja=class extends eR.default{constructor(){super(...arguments),this._walkStream=Jv.walkStream,this._stat=Qv.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new Zv.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(l=>{l!==null&&r.entryFilter(l)&&n.push(l),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};Wa.default=ja});var _d=d(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var tR=qn(),rR=Hn(),iR=Ya(),za=class extends rR.default{constructor(){super(...arguments),this._walkAsync=tR.walk,this._readerStream=new iR.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};Ka.default=za});var Ed=d(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var Dr=mt(),Va=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Dr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Dr.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Dr.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Dr.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Dr.array.splitWhen(e,r=>r.dynamic&&Dr.pattern.hasGlobStar(r.pattern))}};Xa.default=Va});var Sd=d(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var nR=Ed(),Za=class extends nR.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Qa.default=Za});var bd=d(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var $n=mt(),sR=Sd(),Ja=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new sR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter($n.pattern.isAffectDepthOfReadingPattern);return $n.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$n.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!$n.pattern.matchAny(e,r)}};el.default=Ja});var wd=d(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var or=mt(),tl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=or.pattern.convertPatternsToRe(e,this._micromatchOptions),n=or.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=or.path.makeAbsolute(this._settings.cwd,e);return or.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=or.path.removeLeadingDotSegment(e),s=or.pattern.matchAny(n,r);return!s&&i?or.pattern.matchAny(n+"/",r):s}};rl.default=tl});var xd=d(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var oR=mt(),il=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return oR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};nl.default=il});var Rd=d(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var vd=mt(),sl=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=vd.path.makeAbsolute(this._settings.cwd,r),r=vd.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};ol.default=sl});var Un=d(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var aR=require("path"),lR=bd(),cR=wd(),uR=xd(),hR=Rd(),al=class{constructor(e){this._settings=e,this.errorFilter=new uR.default(this._settings),this.entryFilter=new cR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new lR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new hR.default(this._settings)}_getRootDirectory(e){return aR.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};ll.default=al});var Ad=d(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var fR=_d(),pR=Un(),cl=class extends pR.default{constructor(){super(...arguments),this._reader=new fR.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};ul.default=cl});var Td=d(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var dR=require("stream"),mR=Ya(),gR=Un(),hl=class extends gR.default{constructor(){super(...arguments),this._reader=new mR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new dR.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};fl.default=hl});var Od=d(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var yR=sr(),_R=qn(),ER=Hn(),pl=class extends ER.default{constructor(){super(...arguments),this._walkSync=_R.walkSync,this._statSync=yR.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};dl.default=pl});var Cd=d(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var SR=Od(),bR=Un(),ml=class extends bR.default{constructor(){super(...arguments),this._reader=new SR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};gl.default=ml});var Ld=d(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fr=require("fs"),wR=require("os"),xR=Math.max(wR.cpus().length,1);Mr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Fr.lstat,lstatSync:Fr.lstatSync,stat:Fr.stat,statSync:Fr.statSync,readdir:Fr.readdir,readdirSync:Fr.readdirSync};var yl=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,xR),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Mr.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Mr.default=yl});var Nd=d((HP,kd)=>{"use strict";var Pd=Lp(),Id=Ip(),vR=Ad(),RR=Td(),AR=Cd(),_l=Ld(),ar=mt();async function El(t,e){Br(t);let r=Sl(t,vR.default,e),i=await Promise.all(r);return ar.array.flatten(i)}(function(t){function e(o,a){Br(o);let l=Sl(o,AR.default,a);return ar.array.flatten(l)}t.sync=e;function r(o,a){Br(o);let l=Sl(o,RR.default,a);return ar.stream.merge(l)}t.stream=r;function i(o,a){Br(o);let l=Id.transform([].concat(o)),c=new _l.default(a);return Pd.generate(l,c)}t.generateTasks=i;function n(o,a){Br(o);let l=new _l.default(a);return ar.pattern.isDynamicPattern(o,l)}t.isDynamicPattern=n;function s(o){return Br(o),ar.path.escape(o)}t.escapePath=s})(El||(El={}));function Sl(t,e,r){let i=Id.transform([].concat(t)),n=new _l.default(r),s=Pd.generate(i,n),o=new e(n);return s.map(o.read,o)}function Br(t){if(![].concat(t).every(i=>ar.string.isString(i)&&!ar.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kd.exports=El});var Vd=d((jP,Kd)=>{Kd.exports=zd;zd.sync=BR;var Wd=require("fs");function MR(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function Yd(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:MR(e,r)}function zd(t,e,r){Wd.stat(t,function(i,n){r(i,i?!1:Yd(n,t,e))})}function BR(t,e){return Yd(Wd.statSync(t),t,e)}});var em=d((WP,Jd)=>{Jd.exports=Zd;Zd.sync=qR;var Xd=require("fs");function Zd(t,e,r){Xd.stat(t,function(i,n){r(i,i?!1:Qd(n,e))})}function qR(t,e){return Qd(Xd.statSync(t),e)}function Qd(t,e){return t.isFile()&&HR(t,e)}function HR(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,h=r&c||r&l&&n===o||r&a&&i===s||r&u&&s===0;return h}});var rm=d((zP,tm)=>{var YP=require("fs"),Gn;process.platform==="win32"||global.TESTING_WINDOWS?Gn=Vd():Gn=em();tm.exports=vl;vl.sync=$R;function vl(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){vl(t,e||{},function(s,o){s?n(s):i(o)})})}Gn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function $R(t,e){try{return Gn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var cm=d((KP,lm)=>{var Hr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",im=require("path"),UR=Hr?";":":",nm=rm(),sm=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),om=(t,e)=>{let r=e.colon||UR,i=t.match(/\//)||Hr&&t.match(/\\/)?[""]:[...Hr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=Hr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Hr?n.split(r):[""];return Hr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},am=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=om(t,e),o=[],a=c=>new Promise((u,h)=>{if(c===i.length)return e.all&&o.length?u(o):h(sm(t));let f=i[c],g=/^".*"$/.test(f)?f.slice(1,-1):f,m=im.join(g,t),y=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;u(l(y,c,0))}),l=(c,u,h)=>new Promise((f,g)=>{if(h===n.length)return f(a(u+1));let m=n[h];nm(c+m,{pathExt:s},(y,w)=>{if(!y&&w)if(e.all)o.push(c+m);else return f(c+m);return f(l(c,u,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},GR=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=om(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=im.join(l,t),u=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=u+i[h];try{if(nm.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw sm(t)};lm.exports=am;am.sync=GR});var Al=d((VP,Rl)=>{"use strict";var um=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Rl.exports=um;Rl.exports.default=um});var dm=d((XP,pm)=>{"use strict";var hm=require("path"),jR=cm(),WR=Al();function fm(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=jR.sync(t.command,{path:r[WR({env:r})],pathExt:e?hm.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=hm.resolve(n?t.options.cwd:"",o)),o}function YR(t){return fm(t)||fm(t,!0)}pm.exports=YR});var mm=d((ZP,Ol)=>{"use strict";var Tl=/([()\][%!^"`<>&|;, *?])/g;function zR(t){return t=t.replace(Tl,"^$1"),t}function KR(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Tl,"^$1"),e&&(t=t.replace(Tl,"^$1")),t}Ol.exports.command=zR;Ol.exports.argument=KR});var ym=d((QP,gm)=>{"use strict";gm.exports=/^#!(.*)/});var Em=d((JP,_m)=>{"use strict";var VR=ym();_m.exports=(t="")=>{let e=t.match(VR);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var bm=d((eI,Sm)=>{"use strict";var Cl=require("fs"),XR=Em();function ZR(t){let r=Buffer.alloc(150),i;try{i=Cl.openSync(t,"r"),Cl.readSync(i,r,0,150,0),Cl.closeSync(i)}catch{}return XR(r.toString())}Sm.exports=ZR});var Rm=d((tI,vm)=>{"use strict";var QR=require("path"),wm=dm(),xm=mm(),JR=bm(),eA=process.platform==="win32",tA=/\.(?:com|exe)$/i,rA=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function iA(t){t.file=wm(t);let e=t.file&&JR(t.file);return e?(t.args.unshift(t.file),t.command=e,wm(t)):t.file}function nA(t){if(!eA)return t;let e=iA(t),r=!tA.test(e);if(t.options.forceShell||r){let i=rA.test(e);t.command=QR.normalize(t.command),t.command=xm.command(t.command),t.args=t.args.map(s=>xm.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function sA(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:nA(i)}vm.exports=sA});var Om=d((rI,Tm)=>{"use strict";var Ll=process.platform==="win32";function Pl(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function oA(t,e){if(!Ll)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=Am(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Am(t,e){return Ll&&t===1&&!e.file?Pl(e.original,"spawn"):null}function aA(t,e){return Ll&&t===1&&!e.file?Pl(e.original,"spawnSync"):null}Tm.exports={hookChildProcess:oA,verifyENOENT:Am,verifyENOENTSync:aA,notFoundError:Pl}});var Pm=d((iI,$r)=>{"use strict";var Cm=require("child_process"),Il=Rm(),kl=Om();function Lm(t,e,r){let i=Il(t,e,r),n=Cm.spawn(i.command,i.args,i.options);return kl.hookChildProcess(n,i),n}function lA(t,e,r){let i=Il(t,e,r),n=Cm.spawnSync(i.command,i.args,i.options);return n.error=n.error||kl.verifyENOENTSync(n.status,i),n}$r.exports=Lm;$r.exports.spawn=Lm;$r.exports.sync=lA;$r.exports._parse=Il;$r.exports._enoent=kl});var km=d((nI,Im)=>{"use strict";Im.exports=t=>{let e=typeof t=="string"?`
3
3
  `:`
4
- `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var f0=m((zB,Xi)=>{"use strict";var Ki=require("path"),c0=ec(),l0=t=>{t={cwd:process.cwd(),path:process.env[c0()],execPath:process.execPath,...t};let e,r=Ki.resolve(t.cwd),i=[];for(;e!==r;)i.push(Ki.join(r,"node_modules/.bin")),e=r,r=Ki.resolve(r,"..");let n=Ki.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Ki.delimiter)};Xi.exports=l0;Xi.exports.default=l0;Xi.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=c0({env:e});return t.path=e[r],e[r]=Xi.exports(t),e}});var p0=m((YB,ac)=>{"use strict";var h0=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};ac.exports=h0;ac.exports.default=h0});var m0=m((VB,ds)=>{"use strict";var Yw=p0(),ps=new WeakMap,d0=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(ps.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return Yw(s,t),ps.set(s,i),s};ds.exports=d0;ds.exports.default=d0;ds.exports.callCount=t=>{if(!ps.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return ps.get(t)}});var g0=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.SIGNALS=void 0;var Vw=[{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"}];ms.SIGNALS=Vw});var cc=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.SIGRTMAX=ni.getRealtimeSignals=void 0;var Kw=function(){let t=D0-E0+1;return Array.from({length:t},Xw)};ni.getRealtimeSignals=Kw;var Xw=function(t,e){return{name:`SIGRT${e+1}`,number:E0+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},E0=34,D0=64;ni.SIGRTMAX=D0});var y0=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.getSignals=void 0;var Zw=require("os"),Jw=g0(),Qw=cc(),eF=function(){let t=(0,Qw.getRealtimeSignals)();return[...Jw.SIGNALS,...t].map(tF)};gs.getSignals=eF;var tF=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=Zw.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:i,forced:n,standard:s}}});var _0=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.signalsByNumber=si.signalsByName=void 0;var rF=require("os"),A0=y0(),iF=cc(),nF=function(){return(0,A0.getSignals)().reduce(sF,{})},sF=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}}},oF=nF();si.signalsByName=oF;var uF=function(){let t=(0,A0.getSignals)(),e=iF.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>aF(n,t));return Object.assign({},...r)},aF=function(t,e){let r=cF(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:u,standard:a}}},cF=function(t,e){let r=e.find(({name:i})=>rF.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},lF=uF();si.signalsByNumber=lF});var C0=m((QB,S0)=>{"use strict";var{signalsByName:fF}=_0(),hF=({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:n,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${n})`:s!==void 0?`failed with exit code ${s}`:"failed",pF=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let h=n===void 0?void 0:fF[n].description,E=i&&i.code,d=`Command ${hF({timedOut:a,timeout:f,errorCode:E,signal:n,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,D=Object.prototype.toString.call(i)==="[object Error]",y=D?`${d}
5
- ${i.message}`:d,w=[y,e,t].filter(Boolean).join(`
6
- `);return D?(i.originalMessage=i.message,i.message=w):i=new Error(w),i.shortMessage=y,i.command=o,i.escapedCommand=u,i.exitCode=s,i.signal=n,i.signalDescription=h,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!a,i.isCanceled=c,i.killed=l&&!a,i};S0.exports=pF});var w0=m((e2,lc)=>{"use strict";var Es=["stdin","stdout","stderr"],dF=t=>Es.some(e=>t[e]!==void 0),b0=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Es.map(i=>t[i]);if(dF(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Es.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Es.length);return Array.from({length:r},(i,n)=>e[n])};lc.exports=b0;lc.exports.node=t=>{let e=b0(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var F0=m((t2,Ds)=>{Ds.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ds.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ds.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var O0=m((r2,ai)=>{var ne=global.process,wr=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};wr(ne)?(x0=require("assert"),oi=F0(),v0=/^win/i.test(ne.platform),Zi=require("events"),typeof Zi!="function"&&(Zi=Zi.EventEmitter),ne.__signal_exit_emitter__?ge=ne.__signal_exit_emitter__:(ge=ne.__signal_exit_emitter__=new Zi,ge.count=0,ge.emitted={}),ge.infinite||(ge.setMaxListeners(1/0),ge.infinite=!0),ai.exports=function(t,e){if(!wr(global.process))return function(){};x0.equal(typeof t,"function","a callback must be provided for exit handler"),ui===!1&&fc();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){ge.removeListener(r,t),ge.listeners("exit").length===0&&ge.listeners("afterexit").length===0&&ys()};return ge.on(r,t),i},ys=function(){!ui||!wr(global.process)||(ui=!1,oi.forEach(function(e){try{ne.removeListener(e,As[e])}catch{}}),ne.emit=_s,ne.reallyExit=hc,ge.count-=1)},ai.exports.unload=ys,Fr=function(e,r,i){ge.emitted[e]||(ge.emitted[e]=!0,ge.emit(e,r,i))},As={},oi.forEach(function(t){As[t]=function(){if(wr(global.process)){var r=ne.listeners(t);r.length===ge.count&&(ys(),Fr("exit",null,t),Fr("afterexit",null,t),v0&&t==="SIGHUP"&&(t="SIGINT"),ne.kill(ne.pid,t))}}}),ai.exports.signals=function(){return oi},ui=!1,fc=function(){ui||!wr(global.process)||(ui=!0,ge.count+=1,oi=oi.filter(function(e){try{return ne.on(e,As[e]),!0}catch{return!1}}),ne.emit=T0,ne.reallyExit=R0)},ai.exports.load=fc,hc=ne.reallyExit,R0=function(e){wr(global.process)&&(ne.exitCode=e||0,Fr("exit",ne.exitCode,null),Fr("afterexit",ne.exitCode,null),hc.call(ne,ne.exitCode))},_s=ne.emit,T0=function(e,r){if(e==="exit"&&wr(global.process)){r!==void 0&&(ne.exitCode=r);var i=_s.apply(this,arguments);return Fr("exit",ne.exitCode,null),Fr("afterexit",ne.exitCode,null),i}else return _s.apply(this,arguments)}):ai.exports=function(){return function(){}};var x0,oi,v0,Zi,ge,ys,Fr,As,ui,fc,hc,R0,_s,T0});var P0=m((i2,B0)=>{"use strict";var mF=require("os"),gF=O0(),EF=1e3*5,DF=(t,e="SIGTERM",r={})=>{let i=t(e);return yF(t,e,r,i),i},yF=(t,e,r,i)=>{if(!AF(e,r,i))return;let n=SF(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},AF=(t,{forceKillAfterTimeout:e},r)=>_F(t)&&e!==!1&&r,_F=t=>t===mF.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",SF=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return EF;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},CF=(t,e)=>{t.kill()&&(e.isCanceled=!0)},bF=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},wF=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{bF(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},FF=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},xF=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=gF(()=>{t.kill()});return i.finally(()=>{n()})};B0.exports={spawnedKill:DF,spawnedCancel:CF,setupTimeout:wF,validateTimeout:FF,setExitHandler:xF}});var I0=m((n2,L0)=>{"use strict";var ht=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";ht.writable=t=>ht(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ht.readable=t=>ht(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ht.duplex=t=>ht.writable(t)&&ht.readable(t);ht.transform=t=>ht.duplex(t)&&typeof t._transform=="function";L0.exports=ht});var k0=m((s2,N0)=>{"use strict";var{PassThrough:vF}=require("stream");N0.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new vF({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var M0=m((o2,Ji)=>{"use strict";var{constants:RF}=require("buffer"),TF=require("stream"),{promisify:OF}=require("util"),BF=k0(),PF=OF(TF.pipeline),Ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function pc(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=BF(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=RF.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await PF(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Ss)})}),i.getBufferedValue()}Ji.exports=pc;Ji.exports.buffer=(t,e)=>pc(t,{...e,encoding:"buffer"});Ji.exports.array=(t,e)=>pc(t,{...e,array:!0});Ji.exports.MaxBufferError=Ss});var H0=m((u2,q0)=>{"use strict";var{PassThrough:LF}=require("stream");q0.exports=function(){var t=[],e=new LF({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var G0=m((a2,j0)=>{"use strict";var U0=I0(),$0=M0(),IF=H0(),NF=(t,e)=>{e===void 0||t.stdin===void 0||(U0(e)?e.pipe(t.stdin):t.stdin.end(e))},kF=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=IF();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},dc=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},mc=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?$0(t,{encoding:e,maxBuffer:i}):$0.buffer(t,{maxBuffer:i})},MF=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=mc(t,{encoding:i,buffer:n,maxBuffer:s}),a=mc(e,{encoding:i,buffer:n,maxBuffer:s}),c=mc(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},dc(t,u),dc(e,a),dc(r,c)])}},qF=({input:t})=>{if(U0(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};j0.exports={handleInput:NF,makeAllStream:kF,getSpawnedResult:MF,validateInputSync:qF}});var z0=m((c2,W0)=>{"use strict";var HF=(async()=>{})().constructor.prototype,$F=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(HF,t)]),UF=(t,e)=>{for(let[r,i]of $F){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},jF=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});W0.exports={mergePromise:UF,getSpawnedPromise:jF}});var K0=m((l2,V0)=>{"use strict";var Y0=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],GF=/^[\w.-]+$/,WF=/"/g,zF=t=>typeof t!="string"||GF.test(t)?t:`"${t.replace(WF,'\\"')}"`,YF=(t,e)=>Y0(t,e).join(" "),VF=(t,e)=>Y0(t,e).map(r=>zF(r)).join(" "),KF=/ +/g,XF=t=>{let e=[];for(let r of t.trim().split(KF)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};V0.exports={joinCommand:YF,getEscapedCommand:VF,parseCommand:XF}});var rg=m((f2,ci)=>{"use strict";var ZF=require("path"),gc=require("child_process"),JF=o0(),QF=a0(),ex=f0(),tx=m0(),Cs=C0(),Z0=w0(),{spawnedKill:rx,spawnedCancel:ix,setupTimeout:nx,validateTimeout:sx,setExitHandler:ox}=P0(),{handleInput:ux,getSpawnedResult:ax,makeAllStream:cx,validateInputSync:lx}=G0(),{mergePromise:X0,getSpawnedPromise:fx}=z0(),{joinCommand:J0,parseCommand:Q0,getEscapedCommand:eg}=K0(),hx=1e3*1e3*100,px=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?ex.env({env:s,cwd:i,execPath:n}):s},tg=(t,e,r={})=>{let i=JF._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:hx,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=px(r),r.stdio=Z0(r),process.platform==="win32"&&ZF.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Qi=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?QF(e):e,bs=(t,e,r)=>{let i=tg(t,e,r),n=J0(t,e),s=eg(t,e);sx(i.options);let o;try{o=gc.spawn(i.file,i.args,i.options)}catch(E){let g=new gc.ChildProcess,d=Promise.reject(Cs({error:E,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return X0(g,d)}let u=fx(o),a=nx(o,i.options,u),c=ox(o,i.options,a),l={isCanceled:!1};o.kill=rx.bind(null,o.kill.bind(o)),o.cancel=ix.bind(null,o,l);let h=tx(async()=>{let[{error:E,exitCode:g,signal:d,timedOut:D},y,w,B]=await ax(o,i.options,c),q=Qi(i.options,y),v=Qi(i.options,w),$=Qi(i.options,B);if(E||g!==0||d!==null){let L=Cs({error:E,exitCode:g,signal:d,stdout:q,stderr:v,all:$,command:n,escapedCommand:s,parsed:i,timedOut:D,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return L;throw L}return{command:n,escapedCommand:s,exitCode:0,stdout:q,stderr:v,all:$,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return ux(o,i.options.input),o.all=cx(o,i.options),X0(o,h)};ci.exports=bs;ci.exports.sync=(t,e,r)=>{let i=tg(t,e,r),n=J0(t,e),s=eg(t,e);lx(i.options);let o;try{o=gc.spawnSync(i.file,i.args,i.options)}catch(c){throw Cs({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=Qi(i.options,o.stdout,o.error),a=Qi(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Cs({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ci.exports.command=(t,e)=>{let[r,...i]=Q0(t);return bs(r,i,e)};ci.exports.commandSync=(t,e)=>{let[r,...i]=Q0(t);return bs.sync(r,i,e)};ci.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Z0.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return bs(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var li=m((g2,sg)=>{"use strict";var ng=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);sg.exports=t=>t?Object.keys(t).map(e=>[ng.has(e)?ng.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Ts=m((E2,dg)=>{"use strict";var og=typeof process=="object"&&process?process:{stdout:null,stderr:null},Ax=require("events"),ug=require("stream"),ag=require("string_decoder").StringDecoder,Tt=Symbol("EOF"),Ot=Symbol("maybeEmitEnd"),er=Symbol("emittedEnd"),ws=Symbol("emittingEnd"),en=Symbol("emittedError"),Fs=Symbol("closed"),cg=Symbol("read"),xs=Symbol("flush"),lg=Symbol("flushChunk"),Ie=Symbol("encoding"),Bt=Symbol("decoder"),vs=Symbol("flowing"),tn=Symbol("paused"),fi=Symbol("resume"),ae=Symbol("buffer"),pt=Symbol("pipes"),Ee=Symbol("bufferLength"),Ec=Symbol("bufferPush"),Dc=Symbol("bufferShift"),be=Symbol("objectMode"),we=Symbol("destroyed"),yc=Symbol("emitData"),fg=Symbol("emitEnd"),Ac=Symbol("emitEnd2"),Pt=Symbol("async"),rn=t=>Promise.resolve().then(t),hg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",_x=hg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Sx=hg&&Symbol.iterator||Symbol("iterator not implemented"),Cx=t=>t==="end"||t==="finish"||t==="prefinish",bx=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,wx=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Rs=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[fi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},_c=class extends Rs{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};dg.exports=class pg extends ug{constructor(e){super(),this[vs]=!1,this[tn]=!1,this[pt]=[],this[ae]=[],this[be]=e&&e.objectMode||!1,this[be]?this[Ie]=null:this[Ie]=e&&e.encoding||null,this[Ie]==="buffer"&&(this[Ie]=null),this[Pt]=e&&!!e.async||!1,this[Bt]=this[Ie]?new ag(this[Ie]):null,this[Tt]=!1,this[er]=!1,this[ws]=!1,this[Fs]=!1,this[en]=null,this.writable=!0,this.readable=!0,this[Ee]=0,this[we]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ae]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[pt]})}get bufferLength(){return this[Ee]}get encoding(){return this[Ie]}set encoding(e){if(this[be])throw new Error("cannot set encoding in objectMode");if(this[Ie]&&e!==this[Ie]&&(this[Bt]&&this[Bt].lastNeed||this[Ee]))throw new Error("cannot change encoding");this[Ie]!==e&&(this[Bt]=e?new ag(e):null,this[ae].length&&(this[ae]=this[ae].map(r=>this[Bt].write(r)))),this[Ie]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[be]}set objectMode(e){this[be]=this[be]||!!e}get async(){return this[Pt]}set async(e){this[Pt]=this[Pt]||!!e}write(e,r,i){if(this[Tt])throw new Error("write after end");if(this[we])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Pt]?rn:s=>s();return!this[be]&&!Buffer.isBuffer(e)&&(wx(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):bx(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[be]?(this.flowing&&this[Ee]!==0&&this[xs](!0),this.flowing?this.emit("data",e):this[Ec](e),this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ie]&&!this[Bt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ie]&&(e=this[Bt].write(e)),this.flowing&&this[Ee]!==0&&this[xs](!0),this.flowing?this.emit("data",e):this[Ec](e),this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ee]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[we])return null;if(this[Ee]===0||e===0||e>this[Ee])return this[Ot](),null;this[be]&&(e=null),this[ae].length>1&&!this[be]&&(this.encoding?this[ae]=[this[ae].join("")]:this[ae]=[Buffer.concat(this[ae],this[Ee])]);let r=this[cg](e||null,this[ae][0]);return this[Ot](),r}[cg](e,r){return e===r.length||e===null?this[Dc]():(this[ae][0]=r.slice(e),r=r.slice(0,e),this[Ee]-=e),this.emit("data",r),!this[ae].length&&!this[Tt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Tt]=!0,this.writable=!1,(this.flowing||!this[tn])&&this[Ot](),this}[fi](){this[we]||(this[tn]=!1,this[vs]=!0,this.emit("resume"),this[ae].length?this[xs]():this[Tt]?this[Ot]():this.emit("drain"))}resume(){return this[fi]()}pause(){this[vs]=!1,this[tn]=!0}get destroyed(){return this[we]}get flowing(){return this[vs]}get paused(){return this[tn]}[Ec](e){this[be]?this[Ee]+=1:this[Ee]+=e.length,this[ae].push(e)}[Dc](){return this[ae].length&&(this[be]?this[Ee]-=1:this[Ee]-=this[ae][0].length),this[ae].shift()}[xs](e){do;while(this[lg](this[Dc]()));!e&&!this[ae].length&&!this[Tt]&&this.emit("drain")}[lg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[we])return;let i=this[er];return r=r||{},e===og.stdout||e===og.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[pt].push(r.proxyErrors?new _c(this,e,r):new Rs(this,e,r)),this[Pt]?rn(()=>this[fi]()):this[fi]()),e}unpipe(e){let r=this[pt].find(i=>i.dest===e);r&&(this[pt].splice(this[pt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[pt].length&&!this.flowing?this[fi]():e==="readable"&&this[Ee]!==0?super.emit("readable"):Cx(e)&&this[er]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[en]&&(this[Pt]?rn(()=>r.call(this,this[en])):r.call(this,this[en])),i}get emittedEnd(){return this[er]}[Ot](){!this[ws]&&!this[er]&&!this[we]&&this[ae].length===0&&this[Tt]&&(this[ws]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Fs]&&this.emit("close"),this[ws]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==we&&this[we])return;if(e==="data")return r?this[Pt]?rn(()=>this[yc](r)):this[yc](r):!1;if(e==="end")return this[fg]();if(e==="close"){if(this[Fs]=!0,!this[er]&&!this[we])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[en]=r;let s=super.emit("error",r);return this[Ot](),s}else if(e==="resume"){let s=super.emit("resume");return this[Ot](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[Ot](),n}[yc](e){for(let i of this[pt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Ot](),r}[fg](){this[er]||(this[er]=!0,this.readable=!1,this[Pt]?rn(()=>this[Ac]()):this[Ac]())}[Ac](){if(this[Bt]){let r=this[Bt].end();if(r){for(let i of this[pt])i.dest.write(r);super.emit("data",r)}}for(let r of this[pt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[be]?Promise.reject(new Error("cannot concat in objectMode")):this[Ie]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(we,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[_x](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Tt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[Tt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(we,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Sx](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[we]?(e?this.emit("error",e):this.emit(we),this):(this[we]=!0,this[ae].length=0,this[Ee]=0,typeof this.close=="function"&&!this[Fs]&&this.close(),e?this.emit("error",e):this.emit(we),this)}static isStream(e){return!!e&&(e instanceof pg||e instanceof ug||e instanceof Ax&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var gg=m((D2,mg)=>{var Fx=require("zlib").constants||{ZLIB_VERNUM:4736};mg.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},Fx))});var xc=m((y2,wg)=>{"use strict";var Eg=typeof process=="object"&&process?process:{stdout:null,stderr:null},xx=require("events"),Dg=require("stream"),yg=require("string_decoder").StringDecoder,Lt=Symbol("EOF"),It=Symbol("maybeEmitEnd"),tr=Symbol("emittedEnd"),Os=Symbol("emittingEnd"),nn=Symbol("emittedError"),Bs=Symbol("closed"),Ag=Symbol("read"),Ps=Symbol("flush"),_g=Symbol("flushChunk"),Ne=Symbol("encoding"),Nt=Symbol("decoder"),Ls=Symbol("flowing"),sn=Symbol("paused"),hi=Symbol("resume"),De=Symbol("bufferLength"),Sc=Symbol("bufferPush"),Cc=Symbol("bufferShift"),Fe=Symbol("objectMode"),xe=Symbol("destroyed"),bc=Symbol("emitData"),Sg=Symbol("emitEnd"),wc=Symbol("emitEnd2"),kt=Symbol("async"),on=t=>Promise.resolve().then(t),Cg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",vx=Cg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Rx=Cg&&Symbol.iterator||Symbol("iterator not implemented"),Tx=t=>t==="end"||t==="finish"||t==="prefinish",Ox=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Bx=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Is=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[hi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Fc=class extends Is{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};wg.exports=class bg extends Dg{constructor(e){super(),this[Ls]=!1,this[sn]=!1,this.pipes=[],this.buffer=[],this[Fe]=e&&e.objectMode||!1,this[Fe]?this[Ne]=null:this[Ne]=e&&e.encoding||null,this[Ne]==="buffer"&&(this[Ne]=null),this[kt]=e&&!!e.async||!1,this[Nt]=this[Ne]?new yg(this[Ne]):null,this[Lt]=!1,this[tr]=!1,this[Os]=!1,this[Bs]=!1,this[nn]=null,this.writable=!0,this.readable=!0,this[De]=0,this[xe]=!1}get bufferLength(){return this[De]}get encoding(){return this[Ne]}set encoding(e){if(this[Fe])throw new Error("cannot set encoding in objectMode");if(this[Ne]&&e!==this[Ne]&&(this[Nt]&&this[Nt].lastNeed||this[De]))throw new Error("cannot change encoding");this[Ne]!==e&&(this[Nt]=e?new yg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Nt].write(r)))),this[Ne]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Fe]}set objectMode(e){this[Fe]=this[Fe]||!!e}get async(){return this[kt]}set async(e){this[kt]=this[kt]||!!e}write(e,r,i){if(this[Lt])throw new Error("write after end");if(this[xe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[kt]?on:s=>s();return!this[Fe]&&!Buffer.isBuffer(e)&&(Bx(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Ox(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Fe]?(this.flowing&&this[De]!==0&&this[Ps](!0),this.flowing?this.emit("data",e):this[Sc](e),this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ne]&&!this[Nt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ne]&&(e=this[Nt].write(e)),this.flowing&&this[De]!==0&&this[Ps](!0),this.flowing?this.emit("data",e):this[Sc](e),this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[De]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[xe])return null;if(this[De]===0||e===0||e>this[De])return this[It](),null;this[Fe]&&(e=null),this.buffer.length>1&&!this[Fe]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[De])]);let r=this[Ag](e||null,this.buffer[0]);return this[It](),r}[Ag](e,r){return e===r.length||e===null?this[Cc]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[De]-=e),this.emit("data",r),!this.buffer.length&&!this[Lt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Lt]=!0,this.writable=!1,(this.flowing||!this[sn])&&this[It](),this}[hi](){this[xe]||(this[sn]=!1,this[Ls]=!0,this.emit("resume"),this.buffer.length?this[Ps]():this[Lt]?this[It]():this.emit("drain"))}resume(){return this[hi]()}pause(){this[Ls]=!1,this[sn]=!0}get destroyed(){return this[xe]}get flowing(){return this[Ls]}get paused(){return this[sn]}[Sc](e){this[Fe]?this[De]+=1:this[De]+=e.length,this.buffer.push(e)}[Cc](){return this.buffer.length&&(this[Fe]?this[De]-=1:this[De]-=this.buffer[0].length),this.buffer.shift()}[Ps](e){do;while(this[_g](this[Cc]()));!e&&!this.buffer.length&&!this[Lt]&&this.emit("drain")}[_g](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[xe])return;let i=this[tr];return r=r||{},e===Eg.stdout||e===Eg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Fc(this,e,r):new Is(this,e,r)),this[kt]?on(()=>this[hi]()):this[hi]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[hi]():e==="readable"&&this[De]!==0?super.emit("readable"):Tx(e)&&this[tr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[nn]&&(this[kt]?on(()=>r.call(this,this[nn])):r.call(this,this[nn])),i}get emittedEnd(){return this[tr]}[It](){!this[Os]&&!this[tr]&&!this[xe]&&this.buffer.length===0&&this[Lt]&&(this[Os]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Bs]&&this.emit("close"),this[Os]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==xe&&this[xe])return;if(e==="data")return r?this[kt]?on(()=>this[bc](r)):this[bc](r):!1;if(e==="end")return this[Sg]();if(e==="close"){if(this[Bs]=!0,!this[tr]&&!this[xe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[nn]=r;let s=super.emit("error",r);return this[It](),s}else if(e==="resume"){let s=super.emit("resume");return this[It](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[It](),n}[bc](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[It](),r}[Sg](){this[tr]||(this[tr]=!0,this.readable=!1,this[kt]?on(()=>this[wc]()):this[wc]())}[wc](){if(this[Nt]){let r=this[Nt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Fe]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Fe]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Fe]?Promise.reject(new Error("cannot concat in objectMode")):this[Ne]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(xe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[vx](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Lt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:c,done:!!this[Lt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(xe,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Rx](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[xe]?(e?this.emit("error",e):this.emit(xe),this):(this[xe]=!0,this.buffer.length=0,this[De]=0,typeof this.close=="function"&&!this[Bs]&&this.close(),e?this.emit("error",e):this.emit(xe),this)}static isStream(e){return!!e&&(e instanceof bg||e instanceof Dg||e instanceof xx&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var jc=m($e=>{"use strict";var Bc=require("assert"),rr=require("buffer").Buffer,vg=require("zlib"),xr=$e.constants=gg(),Px=xc(),Fg=rr.concat,vr=Symbol("_superWrite"),di=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},Lx=Symbol("opts"),un=Symbol("flushFlag"),xg=Symbol("finishFlushFlag"),Uc=Symbol("fullFlushFlag"),J=Symbol("handle"),Ns=Symbol("onError"),pi=Symbol("sawError"),vc=Symbol("level"),Rc=Symbol("strategy"),Tc=Symbol("ended"),A2=Symbol("_defaultFullFlush"),ks=class extends Px{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[pi]=!1,this[Tc]=!1,this[Lx]=e,this[un]=e.flush,this[xg]=e.finishFlush;try{this[J]=new vg[r](e)}catch(i){throw new di(i)}this[Ns]=i=>{this[pi]||(this[pi]=!0,this.close(),this.emit("error",i))},this[J].on("error",i=>this[Ns](new di(i))),this.once("end",()=>this.close)}close(){this[J]&&(this[J].close(),this[J]=null,this.emit("close"))}reset(){if(!this[pi])return Bc(this[J],"zlib binding closed"),this[J].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Uc]),this.write(Object.assign(rr.alloc(0),{[un]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[xg]),this[Tc]=!0,super.end(null,null,i)}get ended(){return this[Tc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=rr.from(e,r)),this[pi])return;Bc(this[J],"zlib binding closed");let n=this[J]._handle,s=n.close;n.close=()=>{};let o=this[J].close;this[J].close=()=>{},rr.concat=c=>c;let u;try{let c=typeof e[un]=="number"?e[un]:this[un];u=this[J]._processChunk(e,c),rr.concat=Fg}catch(c){rr.concat=Fg,this[Ns](new di(c))}finally{this[J]&&(this[J]._handle=n,n.close=s,this[J].close=o,this[J].removeAllListeners("error"))}this[J]&&this[J].on("error",c=>this[Ns](new di(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[vr](rr.from(u[0]));for(let c=1;c<u.length;c++)a=this[vr](u[c])}else a=this[vr](rr.from(u));return i&&i(),a}[vr](e){return super.write(e)}},Mt=class extends ks{constructor(e,r){e=e||{},e.flush=e.flush||xr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||xr.Z_FINISH,super(e,r),this[Uc]=xr.Z_FULL_FLUSH,this[vc]=e.level,this[Rc]=e.strategy}params(e,r){if(!this[pi]){if(!this[J])throw new Error("cannot switch params when binding is closed");if(!this[J].params)throw new Error("not supported in this implementation");if(this[vc]!==e||this[Rc]!==r){this.flush(xr.Z_SYNC_FLUSH),Bc(this[J],"zlib binding closed");let i=this[J].flush;this[J].flush=(n,s)=>{this.flush(n),s()};try{this[J].params(e,r)}finally{this[J].flush=i}this[J]&&(this[vc]=e,this[Rc]=r)}}}},Pc=class extends Mt{constructor(e){super(e,"Deflate")}},Lc=class extends Mt{constructor(e){super(e,"Inflate")}},Oc=Symbol("_portable"),Ic=class extends Mt{constructor(e){super(e,"Gzip"),this[Oc]=e&&!!e.portable}[vr](e){return this[Oc]?(this[Oc]=!1,e[9]=255,super[vr](e)):super[vr](e)}},Nc=class extends Mt{constructor(e){super(e,"Gunzip")}},kc=class extends Mt{constructor(e){super(e,"DeflateRaw")}},Mc=class extends Mt{constructor(e){super(e,"InflateRaw")}},qc=class extends Mt{constructor(e){super(e,"Unzip")}},Ms=class extends ks{constructor(e,r){e=e||{},e.flush=e.flush||xr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||xr.BROTLI_OPERATION_FINISH,super(e,r),this[Uc]=xr.BROTLI_OPERATION_FLUSH}},Hc=class extends Ms{constructor(e){super(e,"BrotliCompress")}},$c=class extends Ms{constructor(e){super(e,"BrotliDecompress")}};$e.Deflate=Pc;$e.Inflate=Lc;$e.Gzip=Ic;$e.Gunzip=Nc;$e.DeflateRaw=kc;$e.InflateRaw=Mc;$e.Unzip=qc;typeof vg.BrotliCompress=="function"?($e.BrotliCompress=Hc,$e.BrotliDecompress=$c):$e.BrotliCompress=$e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var mi=m((C2,Rg)=>{var Ix=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Rg.exports=Ix!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var qs=m((w2,Tg)=>{"use strict";var Nx=Ts(),Gc=mi(),Wc=Symbol("slurp");Tg.exports=class extends Nx{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Gc(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Gc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Wc](r),i&&this[Wc](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[Wc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Gc(e[i]):e[i])}}});var zc=m(Hs=>{"use strict";Hs.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Hs.code=new Map(Array.from(Hs.name).map(t=>[t[1],t[0]]))});var Lg=m((x2,Pg)=>{"use strict";var kx=(t,e)=>{if(Number.isSafeInteger(t))t<0?qx(t,e):Mx(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},Mx=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},qx=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=Og(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Bg(n))}},Hx=t=>{let e=t[0],r=e===128?Ux(t.slice(1,t.length)):e===255?$x(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},$x=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Og(s):s===0?o=s:(i=!0,o=Bg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},Ux=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},Og=t=>(255^t)&255,Bg=t=>(255^t)+1&255;Pg.exports={encode:kx,parse:Hx}});var Ei=m((v2,Ng)=>{"use strict";var Yc=zc(),gi=require("path").posix,Ig=Lg(),Vc=Symbol("slurp"),Ue=Symbol("type"),Zc=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Ue]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=Rr(e,r,100),this.mode=ir(e,r+100,8),this.uid=ir(e,r+108,8),this.gid=ir(e,r+116,8),this.size=ir(e,r+124,12),this.mtime=Kc(e,r+136,12),this.cksum=ir(e,r+148,12),this[Vc](i),this[Vc](n,!0),this[Ue]=Rr(e,r+156,1),this[Ue]===""&&(this[Ue]="0"),this[Ue]==="0"&&this.path.slice(-1)==="/"&&(this[Ue]="5"),this[Ue]==="5"&&(this.size=0),this.linkpath=Rr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Rr(e,r+265,32),this.gname=Rr(e,r+297,32),this.devmaj=ir(e,r+329,8),this.devmin=ir(e,r+337,8),e[r+475]!==0){let o=Rr(e,r+345,155);this.path=o+"/"+this.path}else{let o=Rr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Kc(e,r+476,12),this.ctime=Kc(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Vc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=jx(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Tr(e,r,100,s)||this.needPax,this.needPax=nr(e,r+100,8,this.mode)||this.needPax,this.needPax=nr(e,r+108,8,this.uid)||this.needPax,this.needPax=nr(e,r+116,8,this.gid)||this.needPax,this.needPax=nr(e,r+124,12,this.size)||this.needPax,this.needPax=Xc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Ue].charCodeAt(0),this.needPax=Tr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Tr(e,r+265,32,this.uname)||this.needPax,this.needPax=Tr(e,r+297,32,this.gname)||this.needPax,this.needPax=nr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=nr(e,r+337,8,this.devmin)||this.needPax,this.needPax=Tr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Tr(e,r+345,155,o)||this.needPax:(this.needPax=Tr(e,r+345,130,o)||this.needPax,this.needPax=Xc(e,r+476,12,this.atime)||this.needPax,this.needPax=Xc(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,nr(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Yc.name.get(this[Ue])||this[Ue]}get typeKey(){return this[Ue]}set type(e){Yc.code.has(e)?this[Ue]=Yc.code.get(e):this[Ue]=e}},jx=(t,e)=>{let i=t,n="",s,o=gi.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=gi.dirname(i),i=gi.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=gi.join(gi.basename(n),i),n=gi.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Rr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Kc=(t,e,r)=>Gx(ir(t,e,r)),Gx=t=>t===null?null:new Date(t*1e3),ir=(t,e,r)=>t[e]&128?Ig.parse(t.slice(e,e+r)):zx(t,e,r),Wx=t=>isNaN(t)?null:t,zx=(t,e,r)=>Wx(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),Yx={12:8589934591,8:2097151},nr=(t,e,r,i)=>i===null?!1:i>Yx[r]||i<0?(Ig.encode(i,t.slice(e,e+r)),!0):(Vx(t,e,r,i),!1),Vx=(t,e,r,i)=>t.write(Kx(i,r),e,r,"ascii"),Kx=(t,e)=>Xx(Math.floor(t).toString(8),e),Xx=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Xc=(t,e,r,i)=>i===null?!1:nr(t,e,r,i.getTime()/1e3),Zx=new Array(156).join("\0"),Tr=(t,e,r,i)=>i===null?!1:(t.write(i+Zx,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Ng.exports=Zc});var $s=m((R2,kg)=>{"use strict";var Jx=Ei(),Qx=require("path"),an=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new Jx({path:("PaxHeader/"+Qx.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
7
- `,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};an.parse=(t,e,r)=>new an(ev(tv(t),e),r);var ev=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,tv=t=>t.replace(/\n$/,"").split(`
8
- `).reduce(rv,Object.create(null)),rv=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};kg.exports=an});var Di=m((T2,Mg)=>{Mg.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Us=m((O2,qg)=>{"use strict";qg.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var Qc=m((P2,Hg)=>{"use strict";var js=["|","<",">","?",":"],Jc=js.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),iv=new Map(js.map((t,e)=>[t,Jc[e]])),nv=new Map(Jc.map((t,e)=>[t,js[e]]));Hg.exports={encode:t=>js.reduce((e,r)=>e.split(r).join(iv.get(r)),t),decode:t=>Jc.reduce((e,r)=>e.split(r).join(nv.get(r)),t)}});var el=m((L2,Ug)=>{var{isAbsolute:sv,parse:$g}=require("path").win32;Ug.exports=t=>{let e="",r=$g(t);for(;sv(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=$g(t)}return[e,t]}});var Gg=m((I2,jg)=>{"use strict";jg.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var ll=m((M2,nE)=>{"use strict";var Zg=Ts(),Jg=$s(),Qg=Ei(),mt=require("fs"),Wg=require("path"),dt=mi(),ov=Di(),eE=(t,e)=>e?(t=dt(t).replace(/^\.(\/|$)/,""),ov(e)+"/"+t):dt(t),uv=16*1024*1024,zg=Symbol("process"),Yg=Symbol("file"),Vg=Symbol("directory"),rl=Symbol("symlink"),Kg=Symbol("hardlink"),cn=Symbol("header"),Gs=Symbol("read"),il=Symbol("lstat"),Ws=Symbol("onlstat"),nl=Symbol("onread"),sl=Symbol("onreadlink"),ol=Symbol("openfile"),ul=Symbol("onopenfile"),sr=Symbol("close"),zs=Symbol("mode"),al=Symbol("awaitDrain"),tl=Symbol("ondrain"),gt=Symbol("prefix"),Xg=Symbol("hadError"),tE=Us(),av=Qc(),rE=el(),iE=Gg(),Ys=tE(class extends Zg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=dt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||uv,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=dt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?dt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=rE(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=av.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=dt(r.absolute||Wg.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ws](this.statCache.get(this.absolute)):this[il]()}emit(e,...r){return e==="error"&&(this[Xg]=!0),super.emit(e,...r)}[il](){mt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ws](r)})}[Ws](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=lv(e),this.emit("stat",e),this[zg]()}[zg](){switch(this.type){case"File":return this[Yg]();case"Directory":return this[Vg]();case"SymbolicLink":return this[rl]();default:return this.end()}}[zs](e){return iE(e,this.type==="Directory",this.portable)}[gt](e){return eE(e,this.prefix)}[cn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Qg({path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](this.linkpath):this.linkpath,mode:this[zs](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Jg({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[Vg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[cn](),this.end()}[rl](){mt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[sl](r)})}[sl](e){this.linkpath=dt(e),this[cn](),this.end()}[Kg](e){this.type="Link",this.linkpath=dt(Wg.relative(this.cwd,e)),this.stat.size=0,this[cn](),this.end()}[Yg](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[Kg](r)}this.linkCache.set(e,this.absolute)}if(this[cn](),this.stat.size===0)return this.end();this[ol]()}[ol](){mt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[ul](r)})}[ul](e){if(this.fd=e,this[Xg])return this[sr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Gs]()}[Gs](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;mt.read(e,r,i,n,s,(o,u)=>{if(o)return this[sr](()=>this.emit("error",o));this[nl](u)})}[sr](e){mt.close(this.fd,e)}[nl](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[sr](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[sr](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[tl]():this[al](()=>this[tl]())}[al](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[tl](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[sr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Gs]()}}),cl=class extends Ys{[il](){this[Ws](mt.lstatSync(this.absolute))}[rl](){this[sl](mt.readlinkSync(this.absolute))}[ol](){this[ul](mt.openSync(this.absolute,"r"))}[Gs](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=mt.readSync(r,i,n,s,o);this[nl](u),e=!1}finally{if(e)try{this[sr](()=>{})}catch{}}}[al](e){e()}[sr](e){mt.closeSync(this.fd),e()}},cv=tE(class extends Zg{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=dt(e.path),this.mode=this[zs](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=dt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=rE(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Qg({path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Jg({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[gt](this.path),linkpath:this.type==="Link"?this[gt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[gt](e){return eE(e,this.prefix)}[zs](e){return iE(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Ys.Sync=cl;Ys.Tar=cv;var lv=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";nE.exports=Ys});var oE=m((q2,sE)=>{"use strict";sE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var fl=m((H2,uE)=>{"use strict";uE.exports=W;W.Node=Or;W.create=W;function W(t){var e=this;if(e instanceof W||(e=new W),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}W.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};W.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};W.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};W.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)hv(this,arguments[t]);return this.length};W.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)pv(this,arguments[t]);return this.length};W.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};W.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};W.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};W.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};W.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};W.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};W.prototype.map=function(t,e){e=e||this;for(var r=new W,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};W.prototype.mapReverse=function(t,e){e=e||this;for(var r=new W,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};W.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};W.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};W.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};W.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};W.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new W;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};W.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new W;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};W.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=fv(this,n,r[i]);return s};W.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function fv(t,e,r){var i=e===t.head?new Or(r,null,e,t):new Or(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function hv(t,e){t.tail=new Or(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function pv(t,e){t.head=new Or(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function Or(t,e,r,i){if(!(this instanceof Or))return new Or(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{oE()(W)}catch{}});var ro=m((U2,dE)=>{"use strict";var eo=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},dv=Ts(),mv=jc(),gv=qs(),Al=ll(),Ev=Al.Sync,Dv=Al.Tar,yv=fl(),aE=Buffer.alloc(1024),Xs=Symbol("onStat"),Vs=Symbol("ended"),Et=Symbol("queue"),yi=Symbol("current"),Br=Symbol("process"),Ks=Symbol("processing"),cE=Symbol("processJob"),Dt=Symbol("jobs"),hl=Symbol("jobDone"),Zs=Symbol("addFSEntry"),lE=Symbol("addTarEntry"),gl=Symbol("stat"),El=Symbol("readdir"),Js=Symbol("onreaddir"),Qs=Symbol("pipe"),fE=Symbol("entry"),pl=Symbol("entryOpt"),Dl=Symbol("writeEntryClass"),pE=Symbol("write"),dl=Symbol("ondrain"),to=require("fs"),hE=require("path"),Av=Us(),ml=mi(),_l=Av(class extends dv{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=ml(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Dl]=Al,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new mv.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[dl]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[dl]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Et]=new yv,this[Dt]=0,this.jobs=+e.jobs||4,this[Ks]=!1,this[Vs]=!1}[pE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Vs]=!0,this[Br](),this}write(e){if(this[Vs])throw new Error("write after end");return e instanceof gv?this[lE](e):this[Zs](e),this.flowing}[lE](e){let r=ml(hE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new eo(e.path,r,!1);i.entry=new Dv(e,this[pl](i)),i.entry.on("end",n=>this[hl](i)),this[Dt]+=1,this[Et].push(i)}this[Br]()}[Zs](e){let r=ml(hE.resolve(this.cwd,e));this[Et].push(new eo(e,r)),this[Br]()}[gl](e){e.pending=!0,this[Dt]+=1;let r=this.follow?"stat":"lstat";to[r](e.absolute,(i,n)=>{e.pending=!1,this[Dt]-=1,i?this.emit("error",i):this[Xs](e,n)})}[Xs](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Br]()}[El](e){e.pending=!0,this[Dt]+=1,to.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Dt]-=1,r)return this.emit("error",r);this[Js](e,i)})}[Js](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Br]()}[Br](){if(!this[Ks]){this[Ks]=!0;for(let e=this[Et].head;e!==null&&this[Dt]<this.jobs;e=e.next)if(this[cE](e.value),e.value.ignore){let r=e.next;this[Et].removeNode(e),e.next=r}this[Ks]=!1,this[Vs]&&!this[Et].length&&this[Dt]===0&&(this.zip?this.zip.end(aE):(super.write(aE),super.end()))}}get[yi](){return this[Et]&&this[Et].head&&this[Et].head.value}[hl](e){this[Et].shift(),this[Dt]-=1,this[Br]()}[cE](e){if(!e.pending){if(e.entry){e===this[yi]&&!e.piped&&this[Qs](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Xs](e,this.statCache.get(e.absolute)):this[gl](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Js](e,this.readdirCache.get(e.absolute)):this[El](e),!e.readdir))){if(e.entry=this[fE](e),!e.entry){e.ignore=!0;return}e===this[yi]&&!e.piped&&this[Qs](e)}}}[pl](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[fE](e){this[Dt]+=1;try{return new this[Dl](e.path,this[pl](e)).on("end",()=>this[hl](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[dl](){this[yi]&&this[yi].entry&&this[yi].entry.resume()}[Qs](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Zs](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),yl=class extends _l{constructor(e){super(e),this[Dl]=Ev}pause(){}resume(){}[gl](e){let r=this.follow?"statSync":"lstatSync";this[Xs](e,to[r](e.absolute))}[El](e,r){this[Js](e,to.readdirSync(e.absolute))}[Qs](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Zs](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[pE](n)})}};_l.Sync=yl;dE.exports=_l});var xi=m(fn=>{"use strict";var _v=xc(),Sv=require("events").EventEmitter,ke=require("fs"),bl=ke.writev;if(!bl){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;bl=(r,i,n,s)=>{let o=(a,c)=>s(a,c,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var wi=Symbol("_autoClose"),it=Symbol("_close"),ln=Symbol("_ended"),K=Symbol("_fd"),mE=Symbol("_finished"),ur=Symbol("_flags"),Sl=Symbol("_flush"),wl=Symbol("_handleChunk"),Fl=Symbol("_makeBuf"),uo=Symbol("_mode"),io=Symbol("_needDrain"),Ci=Symbol("_onerror"),Fi=Symbol("_onopen"),Cl=Symbol("_onread"),_i=Symbol("_onwrite"),ar=Symbol("_open"),qt=Symbol("_path"),Pr=Symbol("_pos"),yt=Symbol("_queue"),Si=Symbol("_read"),gE=Symbol("_readSize"),or=Symbol("_reading"),no=Symbol("_remain"),EE=Symbol("_size"),so=Symbol("_write"),Ai=Symbol("_writing"),oo=Symbol("_defaultFlag"),bi=Symbol("_errored"),ao=class extends _v{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[bi]=!1,this[K]=typeof r.fd=="number"?r.fd:null,this[qt]=e,this[gE]=r.readSize||16*1024*1024,this[or]=!1,this[EE]=typeof r.size=="number"?r.size:1/0,this[no]=this[EE],this[wi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[K]=="number"?this[Si]():this[ar]()}get fd(){return this[K]}get path(){return this[qt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ar](){ke.open(this[qt],"r",(e,r)=>this[Fi](e,r))}[Fi](e,r){e?this[Ci](e):(this[K]=r,this.emit("open",r),this[Si]())}[Fl](){return Buffer.allocUnsafe(Math.min(this[gE],this[no]))}[Si](){if(!this[or]){this[or]=!0;let e=this[Fl]();if(e.length===0)return process.nextTick(()=>this[Cl](null,0,e));ke.read(this[K],e,0,e.length,null,(r,i,n)=>this[Cl](r,i,n))}}[Cl](e,r,i){this[or]=!1,e?this[Ci](e):this[wl](r,i)&&this[Si]()}[it](){if(this[wi]&&typeof this[K]=="number"){let e=this[K];this[K]=null,ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ci](e){this[or]=!0,this[it](),this.emit("error",e)}[wl](e,r){let i=!1;return this[no]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[no]<=0)&&(i=!1,this[it](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[K]=="number"&&this[Si]();break;case"error":return this[bi]?void 0:(this[bi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},xl=class extends ao{[ar](){let e=!0;try{this[Fi](null,ke.openSync(this[qt],"r")),e=!1}finally{e&&this[it]()}}[Si](){let e=!0;try{if(!this[or]){this[or]=!0;do{let r=this[Fl](),i=r.length===0?0:ke.readSync(this[K],r,0,r.length,null);if(!this[wl](i,r))break}while(!0);this[or]=!1}e=!1}finally{e&&this[it]()}}[it](){if(this[wi]&&typeof this[K]=="number"){let e=this[K];this[K]=null,ke.closeSync(e),this.emit("close")}}},co=class extends Sv{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[bi]=!1,this[Ai]=!1,this[ln]=!1,this[io]=!1,this[yt]=[],this[qt]=e,this[K]=typeof r.fd=="number"?r.fd:null,this[uo]=r.mode===void 0?438:r.mode,this[Pr]=typeof r.start=="number"?r.start:null,this[wi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Pr]!==null?"r+":"w";this[oo]=r.flags===void 0,this[ur]=this[oo]?i:r.flags,this[K]===null&&this[ar]()}emit(e,r){if(e==="error"){if(this[bi])return;this[bi]=!0}return super.emit(e,r)}get fd(){return this[K]}get path(){return this[qt]}[Ci](e){this[it](),this[Ai]=!0,this.emit("error",e)}[ar](){ke.open(this[qt],this[ur],this[uo],(e,r)=>this[Fi](e,r))}[Fi](e,r){this[oo]&&this[ur]==="r+"&&e&&e.code==="ENOENT"?(this[ur]="w",this[ar]()):e?this[Ci](e):(this[K]=r,this.emit("open",r),this[Sl]())}end(e,r){return e&&this.write(e,r),this[ln]=!0,!this[Ai]&&!this[yt].length&&typeof this[K]=="number"&&this[_i](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[ln]?(this.emit("error",new Error("write() after end()")),!1):this[K]===null||this[Ai]||this[yt].length?(this[yt].push(e),this[io]=!0,!1):(this[Ai]=!0,this[so](e),!0)}[so](e){ke.write(this[K],e,0,e.length,this[Pr],(r,i)=>this[_i](r,i))}[_i](e,r){e?this[Ci](e):(this[Pr]!==null&&(this[Pr]+=r),this[yt].length?this[Sl]():(this[Ai]=!1,this[ln]&&!this[mE]?(this[mE]=!0,this[it](),this.emit("finish")):this[io]&&(this[io]=!1,this.emit("drain"))))}[Sl](){if(this[yt].length===0)this[ln]&&this[_i](null,0);else if(this[yt].length===1)this[so](this[yt].pop());else{let e=this[yt];this[yt]=[],bl(this[K],e,this[Pr],(r,i)=>this[_i](r,i))}}[it](){if(this[wi]&&typeof this[K]=="number"){let e=this[K];this[K]=null,ke.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},vl=class extends co{[ar](){let e;if(this[oo]&&this[ur]==="r+")try{e=ke.openSync(this[qt],this[ur],this[uo])}catch(r){if(r.code==="ENOENT")return this[ur]="w",this[ar]();throw r}else e=ke.openSync(this[qt],this[ur],this[uo]);this[Fi](null,e)}[it](){if(this[wi]&&typeof this[K]=="number"){let e=this[K];this[K]=null,ke.closeSync(e),this.emit("close")}}[so](e){let r=!0;try{this[_i](null,ke.writeSync(this[K],e,0,e.length,this[Pr])),r=!1}finally{if(r)try{this[it]()}catch{}}}};fn.ReadStream=ao;fn.ReadStreamSync=xl;fn.WriteStream=co;fn.WriteStreamSync=vl});var Eo=m((W2,wE)=>{"use strict";var Cv=Us(),bv=Ei(),wv=require("events"),Fv=fl(),xv=1024*1024,vv=qs(),DE=$s(),Rv=jc(),{nextTick:Tv}=require("process"),Rl=Buffer.from([31,139]),Xe=Symbol("state"),Lr=Symbol("writeEntry"),Ht=Symbol("readEntry"),Tl=Symbol("nextEntry"),yE=Symbol("processEntry"),Ze=Symbol("extendedHeader"),hn=Symbol("globalExtendedHeader"),cr=Symbol("meta"),AE=Symbol("emitMeta"),re=Symbol("buffer"),$t=Symbol("queue"),Ir=Symbol("ended"),_E=Symbol("emittedEnd"),Nr=Symbol("emit"),Me=Symbol("unzip"),lo=Symbol("consumeChunk"),fo=Symbol("consumeChunkSub"),Ol=Symbol("consumeBody"),SE=Symbol("consumeMeta"),CE=Symbol("consumeHeader"),ho=Symbol("consuming"),Bl=Symbol("bufferConcat"),Pl=Symbol("maybeEnd"),pn=Symbol("writing"),lr=Symbol("aborted"),po=Symbol("onDone"),kr=Symbol("sawValidEntry"),mo=Symbol("sawNullBlock"),go=Symbol("sawEOF"),bE=Symbol("closeStream"),Ov=t=>!0;wE.exports=Cv(class extends wv{constructor(e){e=e||{},super(e),this.file=e.file||"",this[kr]=null,this.on(po,r=>{(this[Xe]==="begin"||this[kr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(po,e.ondone):this.on(po,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||xv,this.filter=typeof e.filter=="function"?e.filter:Ov,this.writable=!0,this.readable=!1,this[$t]=new Fv,this[re]=null,this[Ht]=null,this[Lr]=null,this[Xe]="begin",this[cr]="",this[Ze]=null,this[hn]=null,this[Ir]=!1,this[Me]=null,this[lr]=!1,this[mo]=!1,this[go]=!1,this.on("end",()=>this[bE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[CE](e,r){this[kr]===null&&(this[kr]=!1);let i;try{i=new bv(e,r,this[Ze],this[hn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[mo]?(this[go]=!0,this[Xe]==="begin"&&(this[Xe]="header"),this[Nr]("eof")):(this[mo]=!0,this[Nr]("nullBlock"));else if(this[mo]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[Lr]=new vv(i,this[Ze],this[hn]);if(!this[kr])if(s.remain){let o=()=>{s.invalid||(this[kr]=!0)};s.on("end",o)}else this[kr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Nr]("ignoredEntry",s),this[Xe]="ignore",s.resume()):s.size>0&&(this[cr]="",s.on("data",o=>this[cr]+=o),this[Xe]="meta"):(this[Ze]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Nr]("ignoredEntry",s),this[Xe]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Xe]="body":(this[Xe]="header",s.end()),this[Ht]?this[$t].push(s):(this[$t].push(s),this[Tl]())))}}}[bE](){Tv(()=>this.emit("close"))}[yE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Ht]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Tl]()),r=!1)):(this[Ht]=null,r=!1),r}[Tl](){do;while(this[yE](this[$t].shift()));if(!this[$t].length){let e=this[Ht];!e||e.flowing||e.size===e.remain?this[pn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Ol](e,r){let i=this[Lr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Xe]="header",this[Lr]=null,i.end()),s.length}[SE](e,r){let i=this[Lr],n=this[Ol](e,r);return this[Lr]||this[AE](i),n}[Nr](e,r,i){!this[$t].length&&!this[Ht]?this.emit(e,r,i):this[$t].push([e,r,i])}[AE](e){switch(this[Nr]("meta",this[cr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ze]=DE.parse(this[cr],this[Ze],!1);break;case"GlobalExtendedHeader":this[hn]=DE.parse(this[cr],this[hn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ze]=this[Ze]||Object.create(null),this[Ze].path=this[cr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ze]=this[Ze]||Object.create(null),this[Ze].linkpath=this[cr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[lr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[lr])return;if(this[Me]===null&&e){if(this[re]&&(e=Buffer.concat([this[re],e]),this[re]=null),e.length<Rl.length)return this[re]=e,!0;for(let i=0;this[Me]===null&&i<Rl.length;i++)e[i]!==Rl[i]&&(this[Me]=!1);if(this[Me]===null){let i=this[Ir];this[Ir]=!1,this[Me]=new Rv.Unzip,this[Me].on("data",s=>this[lo](s)),this[Me].on("error",s=>this.abort(s)),this[Me].on("end",s=>{this[Ir]=!0,this[lo]()}),this[pn]=!0;let n=this[Me][i?"end":"write"](e);return this[pn]=!1,n}}this[pn]=!0,this[Me]?this[Me].write(e):this[lo](e),this[pn]=!1;let r=this[$t].length?!1:this[Ht]?this[Ht].flowing:!0;return!r&&!this[$t].length&&this[Ht].once("drain",i=>this.emit("drain")),r}[Bl](e){e&&!this[lr]&&(this[re]=this[re]?Buffer.concat([this[re],e]):e)}[Pl](){if(this[Ir]&&!this[_E]&&!this[lr]&&!this[ho]){this[_E]=!0;let e=this[Lr];if(e&&e.blockRemain){let r=this[re]?this[re].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[re]&&e.write(this[re]),e.end()}this[Nr](po)}}[lo](e){if(this[ho])this[Bl](e);else if(!e&&!this[re])this[Pl]();else{if(this[ho]=!0,this[re]){this[Bl](e);let r=this[re];this[re]=null,this[fo](r)}else this[fo](e);for(;this[re]&&this[re].length>=512&&!this[lr]&&!this[go];){let r=this[re];this[re]=null,this[fo](r)}this[ho]=!1}(!this[re]||this[Ir])&&this[Pl]()}[fo](e){let r=0,i=e.length;for(;r+512<=i&&!this[lr]&&!this[go];)switch(this[Xe]){case"begin":case"header":this[CE](e,r),r+=512;break;case"ignore":case"body":r+=this[Ol](e,r);break;case"meta":r+=this[SE](e,r);break;default:throw new Error("invalid state: "+this[Xe])}r<i&&(this[re]?this[re]=Buffer.concat([e.slice(r),this[re]]):this[re]=e.slice(r))}end(e){this[lr]||(this[Me]?this[Me].end(e):(this[Ir]=!0,this.write(e)))}})});var Do=m((z2,RE)=>{"use strict";var Bv=li(),xE=Eo(),vi=require("fs"),Pv=xi(),FE=require("path"),Ll=Di();RE.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=Bv(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Iv(i,e),i.noResume||Lv(i),i.file&&i.sync?Nv(i):i.file?kv(i,r):vE(i)};var Lv=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},Iv=(t,e)=>{let r=new Map(e.map(s=>[Ll(s),!0])),i=t.filter,n=(s,o)=>{let u=o||FE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(FE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(Ll(s)):s=>n(Ll(s))},Nv=t=>{let e=vE(t),r=t.file,i=!0,n;try{let s=vi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(vi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=vi.openSync(r,"r");u<s.size;){let c=vi.readSync(n,a,0,o,u);u+=c,e.write(a.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{vi.closeSync(n)}catch{}}},kv=(t,e)=>{let r=new xE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),vi.stat(n,(a,c)=>{if(a)u(a);else{let l=new Pv.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},vE=t=>new xE(t)});var IE=m((Y2,LE)=>{"use strict";var Mv=li(),yo=ro(),TE=xi(),OE=Do(),BE=require("path");LE.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=Mv(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?qv(i,e):i.file?Hv(i,e,r):i.sync?$v(i,e):Uv(i,e)};var qv=(t,e)=>{let r=new yo.Sync(t),i=new TE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),PE(r,e)},Hv=(t,e,r)=>{let i=new yo(t),n=new TE.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return Il(i,e),r?s.then(r,r):s},PE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?OE({file:BE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Il=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return OE({file:BE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Il(t,e));t.add(r)}t.end()},$v=(t,e)=>{let r=new yo.Sync(t);return PE(r,e),r},Uv=(t,e)=>{let r=new yo(t);return Il(r,e),r}});var Nl=m((V2,UE)=>{"use strict";var jv=li(),NE=ro(),je=require("fs"),kE=xi(),ME=Do(),qE=require("path"),HE=Ei();UE.exports=(t,e,r)=>{let i=jv(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?Gv(i,e):zv(i,e,r)};var Gv=(t,e)=>{let r=new NE.Sync(t),i=!0,n,s;try{try{n=je.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=je.openSync(t.file,"w+");else throw a}let o=je.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=je.readSync(n,u,l,u.length-l,s+l),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let a=new HE(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,Wv(t,r,s,n,e)}finally{if(i)try{je.closeSync(n)}catch{}}},Wv=(t,e,r,i,n)=>{let s=new kE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),Yv(e,n)},zv=(t,e,r)=>{e=Array.from(e);let i=new NE(t),n=(o,u,a)=>{let c=(g,d)=>{g?je.close(o,D=>a(g)):a(null,d)},l=0;if(u===0)return c(null,0);let f=0,h=Buffer.alloc(512),E=(g,d)=>{if(g)return c(g);if(f+=d,f<512&&d)return je.read(o,h,f,h.length-f,l+f,E);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let D=new HE(h);if(!D.cksumValid)return c(null,l);let y=512*Math.ceil(D.size/512);if(l+y+512>u||(l+=y+512,l>=u))return c(null,l);t.mtimeCache&&t.mtimeCache.set(D.path,D.mtime),f=0,je.read(o,h,0,512,l,E)};je.read(o,h,0,512,l,E)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",je.open(t.file,a,c);if(l)return u(l);je.fstat(f,(h,E)=>{if(h)return je.close(f,()=>u(h));n(f,E.size,(g,d)=>{if(g)return u(g);let D=new kE.WriteStream(t.file,{fd:f,start:d});i.pipe(D),D.on("error",u),D.on("close",o),$E(i,e)})})};je.open(t.file,a,c)});return r?s.then(r,r):s},Yv=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?ME({file:qE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},$E=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return ME({file:qE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>$E(t,e));t.add(r)}t.end()}});var GE=m((K2,jE)=>{"use strict";var Vv=li(),Kv=Nl();jE.exports=(t,e,r)=>{let i=Vv(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),Xv(i),Kv(i,e,r)};var Xv=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var YE=m((X2,zE)=>{var{promisify:WE}=require("util"),fr=require("fs"),Zv=t=>{if(!t)t={mode:511,fs:fr};else if(typeof t=="object")t={mode:511,fs:fr,...t};else if(typeof t=="number")t={mode:t,fs:fr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:fr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||fr.mkdir,t.mkdirAsync=WE(t.mkdir),t.stat=t.stat||t.fs.stat||fr.stat,t.statAsync=WE(t.stat),t.statSync=t.statSync||t.fs.statSync||fr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||fr.mkdirSync,t};zE.exports=Zv});var KE=m((Z2,VE)=>{var Jv=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:Qv,parse:eR}=require("path"),tR=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=Qv(t),Jv==="win32"){let e=/[*|"<>?:]/,{root:r}=eR(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};VE.exports=tR});var eD=m((J2,QE)=>{var{dirname:XE}=require("path"),ZE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?ZE(t,XE(e),e):void 0),JE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?JE(t,XE(e),e):void 0}};QE.exports={findMade:ZE,findMadeSync:JE}});var ql=m((Q2,rD)=>{var{dirname:tD}=require("path"),kl=(t,e,r)=>{e.recursive=!1;let i=tD(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return kl(i,e).then(s=>kl(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Ml=(t,e,r)=>{let i=tD(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Ml(t,e,Ml(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};rD.exports={mkdirpManual:kl,mkdirpManualSync:Ml}});var sD=m((eP,nD)=>{var{dirname:iD}=require("path"),{findMade:rR,findMadeSync:iR}=eD(),{mkdirpManual:nR,mkdirpManualSync:sR}=ql(),oR=(t,e)=>(e.recursive=!0,iD(t)===t?e.mkdirAsync(t,e):rR(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return nR(t,e);throw n}))),uR=(t,e)=>{if(e.recursive=!0,iD(t)===t)return e.mkdirSync(t,e);let i=iR(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return sR(t,e);throw n}};nD.exports={mkdirpNative:oR,mkdirpNativeSync:uR}});var cD=m((tP,aD)=>{var oD=require("fs"),aR=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Hl=aR.replace(/^v/,"").split("."),uD=+Hl[0]>10||+Hl[0]==10&&+Hl[1]>=12,cR=uD?t=>t.mkdir===oD.mkdir:()=>!1,lR=uD?t=>t.mkdirSync===oD.mkdirSync:()=>!1;aD.exports={useNative:cR,useNativeSync:lR}});var mD=m((rP,dD)=>{var Ri=YE(),Ti=KE(),{mkdirpNative:lD,mkdirpNativeSync:fD}=sD(),{mkdirpManual:hD,mkdirpManualSync:pD}=ql(),{useNative:fR,useNativeSync:hR}=cD(),Oi=(t,e)=>(t=Ti(t),e=Ri(e),fR(e)?lD(t,e):hD(t,e)),pR=(t,e)=>(t=Ti(t),e=Ri(e),hR(e)?fD(t,e):pD(t,e));Oi.sync=pR;Oi.native=(t,e)=>lD(Ti(t),Ri(e));Oi.manual=(t,e)=>hD(Ti(t),Ri(e));Oi.nativeSync=(t,e)=>fD(Ti(t),Ri(e));Oi.manualSync=(t,e)=>pD(Ti(t),Ri(e));dD.exports=Oi});var SD=m((iP,_D)=>{"use strict";var Je=require("fs"),Mr=require("path"),dR=Je.lchown?"lchown":"chown",mR=Je.lchownSync?"lchownSync":"chownSync",ED=Je.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),gD=(t,e,r)=>{try{return Je[mR](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},gR=(t,e,r)=>{try{return Je.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},ER=ED?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Je.chown(t,e,r,i)}:(t,e,r,i)=>i,$l=ED?(t,e,r)=>{try{return gD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;gR(t,e,r)}}:(t,e,r)=>gD(t,e,r),DR=process.version,DD=(t,e,r)=>Je.readdir(t,e,r),yR=(t,e)=>Je.readdirSync(t,e);/^v4\./.test(DR)&&(DD=(t,e,r)=>Je.readdir(t,r));var Ao=(t,e,r,i)=>{Je[dR](t,e,r,ER(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},yD=(t,e,r,i,n)=>{if(typeof e=="string")return Je.lstat(Mr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,yD(t,o,r,i,n)});if(e.isDirectory())Ul(Mr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Mr.resolve(t,e.name);Ao(o,r,i,n)});else{let s=Mr.resolve(t,e.name);Ao(s,r,i,n)}},Ul=(t,e,r,i)=>{DD(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Ao(t,e,r,i);let o=s.length,u=null,a=c=>{if(!u){if(c)return i(u=c);if(--o===0)return Ao(t,e,r,i)}};s.forEach(c=>yD(t,c,e,r,a))})},AR=(t,e,r,i)=>{if(typeof e=="string")try{let n=Je.lstatSync(Mr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&AD(Mr.resolve(t,e.name),r,i),$l(Mr.resolve(t,e.name),r,i)},AD=(t,e,r)=>{let i;try{i=yR(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return $l(t,e,r);throw n}return i&&i.length&&i.forEach(n=>AR(t,n,e,r)),$l(t,e,r)};_D.exports=Ul;Ul.sync=AD});var FD=m((nP,jl)=>{"use strict";var CD=mD(),Qe=require("fs"),_o=require("path"),bD=SD(),nt=mi(),So=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Co=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},bo=(t,e)=>t.get(nt(e)),dn=(t,e,r)=>t.set(nt(e),r),_R=(t,e)=>{Qe.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Co(t,r&&r.code||"ENOTDIR")),e(r)})};jl.exports=(t,e,r)=>{t=nt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=nt(e.cwd),E=(D,y)=>{D?r(D):(dn(f,t,!0),y&&a?bD(y,o,u,w=>E(w)):s?Qe.chmod(t,n,r):r())};if(f&&bo(f,t)===!0)return E();if(t===h)return _R(t,E);if(c)return CD(t,{mode:n}).then(D=>E(null,D),E);let d=nt(_o.relative(h,t)).split("/");wo(h,d,n,f,l,h,null,E)};var wo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),c=nt(_o.resolve(t+"/"+a));if(bo(i,c))return wo(c,e,r,i,n,s,o,u);Qe.mkdir(c,r,wD(c,e,r,i,n,s,o,u))},wD=(t,e,r,i,n,s,o,u)=>a=>{a?Qe.lstat(t,(c,l)=>{if(c)c.path=c.path&&nt(c.path),u(c);else if(l.isDirectory())wo(t,e,r,i,n,s,o,u);else if(n)Qe.unlink(t,f=>{if(f)return u(f);Qe.mkdir(t,r,wD(t,e,r,i,n,s,o,u))});else{if(l.isSymbolicLink())return u(new So(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,wo(t,e,r,i,n,s,o,u))},SR=t=>{let e=!1,r="ENOTDIR";try{e=Qe.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Co(t,r)}};jl.exports.sync=(t,e)=>{t=nt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,c=e.unlink,l=e.cache,f=nt(e.cwd),h=D=>{dn(l,t,!0),D&&u&&bD.sync(D,s,o),n&&Qe.chmodSync(t,i)};if(l&&bo(l,t)===!0)return h();if(t===f)return SR(f),h();if(a)return h(CD.sync(t,i));let g=nt(_o.relative(f,t)).split("/"),d=null;for(let D=g.shift(),y=f;D&&(y+="/"+D);D=g.shift())if(y=nt(_o.resolve(y)),!bo(l,y))try{Qe.mkdirSync(y,i),d=d||y,dn(l,y,!0)}catch{let B=Qe.lstatSync(y);if(B.isDirectory()){dn(l,y,!0);continue}else if(c){Qe.unlinkSync(y),Qe.mkdirSync(y,i),d=d||y,dn(l,y,!0);continue}else if(B.isSymbolicLink())return new So(y,y+"/"+g.join("/"))}return h(d)}});var Wl=m((sP,xD)=>{var Gl=Object.create(null),{hasOwnProperty:CR}=Object.prototype;xD.exports=t=>(CR.call(Gl,t)||(Gl[t]=t.normalize("NFKD")),Gl[t])});var OD=m((oP,TD)=>{var vD=require("assert"),bR=Wl(),wR=Di(),{join:RD}=require("path"),FR=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,xR=FR==="win32";TD.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=RD(f[f.length-1],h)),f.push(h||"/"),f),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},s=c=>{let{paths:l,dirs:f}=n(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>u(c)),!0),u=c=>{if(!i.has(c))return!1;let{paths:l,dirs:f}=e.get(c),h=new Set;return l.forEach(E=>{let g=t.get(E);vD.equal(g[0],c),g.length===1?t.delete(E):(g.shift(),typeof g[0]=="function"?h.add(g[0]):g[0].forEach(d=>h.add(d)))}),f.forEach(E=>{let g=t.get(E);vD(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(E):g[0].size===1?(g.shift(),h.add(g[0])):g[0].delete(c)}),i.delete(c),h.forEach(E=>o(E)),!0};return{check:s,reserve:(c,l)=>{c=xR?["win32 parallelization disabled"]:c.map(h=>bR(wR(RD(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,E)=>h.concat(E)));return e.set(l,{dirs:f,paths:c}),c.forEach(h=>{let E=t.get(h);E?E.push(l):t.set(h,[l])}),f.forEach(h=>{let E=t.get(h);E?E[E.length-1]instanceof Set?E[E.length-1].add(l):E.push(new Set([l])):t.set(h,[new Set([l])])}),o(l)}}}});var LD=m((uP,PD)=>{var vR=process.env.__FAKE_PLATFORM__||process.platform,RR=vR==="win32",TR=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:OR,O_TRUNC:BR,O_WRONLY:PR,UV_FS_O_FILEMAP:BD=0}=TR.constants,LR=RR&&!!BD,IR=512*1024,NR=BD|BR|OR|PR;PD.exports=LR?t=>t<IR?NR:"w":()=>"w"});var ef=m((aP,VD)=>{"use strict";var kR=require("assert"),MR=Eo(),z=require("fs"),qR=xi(),Ut=require("path"),WD=FD(),ID=Qc(),HR=OD(),$R=el(),Ge=mi(),UR=Di(),jR=Wl(),ND=Symbol("onEntry"),Vl=Symbol("checkFs"),kD=Symbol("checkFs2"),vo=Symbol("pruneCache"),Kl=Symbol("isReusable"),et=Symbol("makeFs"),Xl=Symbol("file"),Zl=Symbol("directory"),Ro=Symbol("link"),MD=Symbol("symlink"),qD=Symbol("hardlink"),HD=Symbol("unsupported"),$D=Symbol("checkPath"),hr=Symbol("mkdir"),ve=Symbol("onError"),Fo=Symbol("pending"),UD=Symbol("pend"),Bi=Symbol("unpend"),zl=Symbol("ended"),Yl=Symbol("maybeClose"),Jl=Symbol("skip"),mn=Symbol("doChown"),gn=Symbol("uid"),En=Symbol("gid"),Dn=Symbol("checkedCwd"),zD=require("crypto"),YD=LD(),GR=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,yn=GR==="win32",WR=(t,e)=>{if(!yn)return z.unlink(t,e);let r=t+".DELETE."+zD.randomBytes(16).toString("hex");z.rename(t,r,i=>{if(i)return e(i);z.unlink(r,e)})},zR=t=>{if(!yn)return z.unlinkSync(t);let e=t+".DELETE."+zD.randomBytes(16).toString("hex");z.renameSync(t,e),z.unlinkSync(e)},jD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,GD=t=>jR(UR(Ge(t))).toLowerCase(),YR=(t,e)=>{e=GD(e);for(let r of t.keys()){let i=GD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},VR=t=>{for(let e of t.keys())t.delete(e)},An=class extends MR{constructor(e){if(e||(e={}),e.ondone=r=>{this[zl]=!0,this[Yl]()},super(e),this[Dn]=!1,this.reservations=HR(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Fo]=0,this[zl]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||yn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ge(Ut.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[ND](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Yl](){this[zl]&&this[Fo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[$D](e){if(this.strip){let r=Ge(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Ge(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ge(e.path),i=r.split("/");if(i.includes("..")||yn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=$R(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Ut.isAbsolute(e.path)?e.absolute=Ge(Ut.resolve(e.path)):e.absolute=Ge(Ut.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Ge(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Ut.win32.parse(e.absolute);e.absolute=r+ID.encode(e.absolute.slice(r.length));let{root:i}=Ut.win32.parse(e.path);e.path=i+ID.encode(e.path.slice(i.length))}return!0}[ND](e){if(!this[$D](e))return e.resume();switch(kR.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Vl](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[HD](e)}}[ve](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Bi](),r.resume())}[hr](e,r,i){WD(Ge(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[mn](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[gn](e){return jD(this.uid,e.uid,this.processUid)}[En](e){return jD(this.gid,e.gid,this.processGid)}[Xl](e,r){let i=e.mode&4095||this.fmode,n=new qR.WriteStream(e.absolute,{flags:YD(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&z.close(n.fd,()=>{}),n.write=()=>!0,this[ve](a,e),r()});let s=1,o=a=>{if(a){n.fd&&z.close(n.fd,()=>{}),this[ve](a,e),r();return}--s===0&&z.close(n.fd,c=>{c?this[ve](c,e):this[Bi](),r()})};n.on("finish",a=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;z.futimes(l,f,h,E=>E?z.utimes(c,f,h,g=>o(g&&E)):o())}if(this[mn](e)){s++;let f=this[gn](e),h=this[En](e);z.fchown(l,f,h,E=>E?z.chown(c,f,h,g=>o(g&&E)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[ve](a,e),r()}),e.pipe(u)),u.pipe(n)}[Zl](e,r){let i=e.mode&4095||this.dmode;this[hr](e.absolute,i,n=>{if(n){this[ve](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[Bi](),e.resume())};e.mtime&&!this.noMtime&&(s++,z.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[mn](e)&&(s++,z.chown(e.absolute,this[gn](e),this[En](e),o)),o()})}[HD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[MD](e,r){this[Ro](e,e.linkpath,"symlink",r)}[qD](e,r){let i=Ge(Ut.resolve(this.cwd,e.linkpath));this[Ro](e,i,"link",r)}[UD](){this[Fo]++}[Bi](){this[Fo]--,this[Yl]()}[Jl](e){this[Bi](),e.resume()}[Kl](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!yn}[Vl](e){this[UD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[kD](e,i))}[vo](e){e.type==="SymbolicLink"?VR(this.dirCache):e.type!=="Directory"&&YR(this.dirCache,e.absolute)}[kD](e,r){this[vo](e);let i=u=>{this[vo](e),r(u)},n=()=>{this[hr](this.cwd,this.dmode,u=>{if(u){this[ve](u,e),i();return}this[Dn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=Ge(Ut.dirname(e.absolute));if(u!==this.cwd)return this[hr](u,this.dmode,a=>{if(a){this[ve](a,e),i();return}o()})}o()},o=()=>{z.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[Jl](e),i();return}if(u||this[Kl](e,a))return this[et](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,l=f=>this[et](f,e,i);return c?z.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return z.rmdir(e.absolute,c=>this[et](c,e,i))}if(e.absolute===this.cwd)return this[et](null,e,i);WR(e.absolute,c=>this[et](c,e,i))})};this[Dn]?s():n()}[et](e,r,i){if(e){this[ve](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Xl](r,i);case"Link":return this[qD](r,i);case"SymbolicLink":return this[MD](r,i);case"Directory":case"GNUDumpDir":return this[Zl](r,i)}}[Ro](e,r,i,n){z[i](r,e.absolute,s=>{s?this[ve](s,e):(this[Bi](),e.resume()),n()})}},xo=t=>{try{return[null,t()]}catch(e){return[e,null]}},Ql=class extends An{[et](e,r){return super[et](e,r,()=>{})}[Vl](e){if(this[vo](e),!this[Dn]){let s=this[hr](this.cwd,this.dmode);if(s)return this[ve](s,e);this[Dn]=!0}if(e.absolute!==this.cwd){let s=Ge(Ut.dirname(e.absolute));if(s!==this.cwd){let o=this[hr](s,this.dmode);if(o)return this[ve](o,e)}}let[r,i]=xo(()=>z.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Jl](e);if(r||this[Kl](e,i))return this[et](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?xo(()=>{z.chmodSync(e.absolute,e.mode)}):[];return this[et](u,e)}let[s]=xo(()=>z.rmdirSync(e.absolute));this[et](s,e)}let[n]=e.absolute===this.cwd?[]:xo(()=>zR(e.absolute));this[et](n,e)}[Xl](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{z.closeSync(s)}catch(c){a=c}(u||a)&&this[ve](u||a,e),r()},s;try{s=z.openSync(e.absolute,YD(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[ve](u,e)),e.pipe(o)),o.on("data",u=>{try{z.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{z.futimesSync(s,c,l)}catch(f){try{z.utimesSync(e.absolute,c,l)}catch{a=f}}}if(this[mn](e)){let c=this[gn](e),l=this[En](e);try{z.fchownSync(s,c,l)}catch(f){try{z.chownSync(e.absolute,c,l)}catch{a=a||f}}}n(a)})}[Zl](e,r){let i=e.mode&4095||this.dmode,n=this[hr](e.absolute,i);if(n){this[ve](n,e),r();return}if(e.mtime&&!this.noMtime)try{z.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[mn](e))try{z.chownSync(e.absolute,this[gn](e),this[En](e))}catch{}r(),e.resume()}[hr](e,r){try{return WD.sync(Ge(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[Ro](e,r,i,n){try{z[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[ve](s,e)}}};An.Sync=Ql;VD.exports=An});var QD=m((cP,JD)=>{"use strict";var KR=li(),To=ef(),XD=require("fs"),ZD=xi(),KD=require("path"),tf=Di();JD.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=KR(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&XR(i,e),i.file&&i.sync?ZR(i):i.file?JR(i,r):i.sync?QR(i):eT(i)};var XR=(t,e)=>{let r=new Map(e.map(s=>[tf(s),!0])),i=t.filter,n=(s,o)=>{let u=o||KD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(KD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(tf(s)):s=>n(tf(s))},ZR=t=>{let e=new To.Sync(t),r=t.file,i=XD.statSync(r),n=t.maxReadSize||16*1024*1024;new ZD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},JR=(t,e)=>{let r=new To(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),XD.stat(n,(a,c)=>{if(a)u(a);else{let l=new ZD.ReadStream(n,{readSize:i,size:c.size});l.on("error",u),l.pipe(r)}})});return e?s.then(e,e):s},QR=t=>new To.Sync(t),eT=t=>new To(t)});var ey=m(de=>{"use strict";de.c=de.create=IE();de.r=de.replace=Nl();de.t=de.list=Do();de.u=de.update=GE();de.x=de.extract=QD();de.Pack=ro();de.Unpack=ef();de.Parse=Eo();de.ReadEntry=qs();de.WriteEntry=ll();de.Header=Ei();de.Pax=$s();de.types=zc()});var oy=m((dP,sy)=>{function tt(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}sy.exports=tt;tt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};tt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};tt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};tt.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};tt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};tt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};tt.prototype.start=tt.prototype.try;tt.prototype.errors=function(){return this._errors};tt.prototype.attempts=function(){return this._attempts};tt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var uy=m(qr=>{var nT=oy();qr.operation=function(t){var e=qr.timeouts(t);return new nT(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};qr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};qr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};qr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(a){var c=qr.operation(e),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(t,l)})}.bind(t,o),t[s].options=e}}});var cy=m((gP,ay)=>{ay.exports=uy()});var fy=m((EP,ly)=>{var sT=cy();function oT(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=sT.operation(s);function u(l){n(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):n(o.mainError())}function c(l){var f;try{f=t(u,l)}catch(h){a(h,l);return}Promise.resolve(f).then(i).catch(function(E){a(E,l)})}o.attempt(c)}return new Promise(r)}ly.exports=oT});var AT={};cf(AT,{default:()=>yT,hasLegacyEnvVarDependencies:()=>of,migrateConfig:()=>uf,migrateDependencies:()=>af,migrateGlobal:()=>gy,migratePipeline:()=>my,transformer:()=>Ey});module.exports=by(AT);var sf=V(require("path")),Sn=require("fs-extra");var wy=V(gf());function ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Li(t){return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Li(t)}function Mo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qo(t,e){if(e&&(Li(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mo(t)}function dr(t){return dr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dr(t)}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},St(t,e)}function Ho(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e)}function $o(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Uo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hr(t,e,r){return Uo()?Hr=Reflect.construct.bind():Hr=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),c=new a;return o&&St(c,o.prototype),c},Hr.apply(null,arguments)}function Ii(t){var e=typeof Map=="function"?new Map:void 0;return Ii=function(i){if(i===null||!$o(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Hr(i,arguments,dr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),St(n,i)},Ii(t)}var jo=V(require("find-up")),Fn=V(require("path")),xn=V(require("fs-extra")),Fy=function(t){Ho(e,t);function e(r){var i;return ko(this,e),i=qo(this,dr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Ii(Error));function xy(t,e){try{var r=xn.default.readJsonSync(Fn.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function vy(t){try{var e=xn.default.readJsonSync(Fn.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function Ry(t){var e=xn.default.existsSync(Fn.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function Ef(t){var e={current:void 0},r=(0,jo.sync)(function(i){return[vy(i),xy(i,e),Ry(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new Fy(t);return r===void 0?e.current:r}var Ty=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Oy=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,By=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Go={Space_Separator:Ty,ID_Start:Oy,ID_Continue:By},oe={isSpaceSeparator(t){return typeof t=="string"&&Go.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Go.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||Go.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},zo,Oe,bt,Rn,jt,rt,me,Ko,ki,Py=function(e,r){zo=String(e),Oe="start",bt=[],Rn=0,jt=1,rt=0,me=void 0,Ko=void 0,ki=void 0;do me=Ly(),ky[Oe]();while(me.type!=="eof");return typeof r=="function"?Yo({"":ki},"",r):ki};function Yo(t,e,r){let i=t[e];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let s=String(n),o=Yo(i,s,r);o===void 0?delete i[s]:Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let s=Yo(i,n,r);s===void 0?delete i[n]:Object.defineProperty(i,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,i)}var H,M,Ni,Ct,j;function Ly(){for(H="default",M="",Ni=!1,Ct=1;;){j=wt();let t=yf[H]();if(t)return t}}function wt(){if(zo[Rn])return String.fromCodePoint(zo.codePointAt(Rn))}function S(){let t=wt();return t===`
9
- `?(jt++,rt=0):t?rt+=t.length:rt++,t&&(Rn+=t.length),t}var yf={default(){switch(j){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
10
- `:case"\r":case"\u2028":case"\u2029":S();return;case"/":S(),H="comment";return;case void 0:return S(),ee("eof")}if(oe.isSpaceSeparator(j)){S();return}return yf[Oe]()},comment(){switch(j){case"*":S(),H="multiLineComment";return;case"/":S(),H="singleLineComment";return}throw te(S())},multiLineComment(){switch(j){case"*":S(),H="multiLineCommentAsterisk";return;case void 0:throw te(S())}S()},multiLineCommentAsterisk(){switch(j){case"*":S();return;case"/":S(),H="default";return;case void 0:throw te(S())}S(),H="multiLineComment"},singleLineComment(){switch(j){case`
11
- `:case"\r":case"\u2028":case"\u2029":S(),H="default";return;case void 0:return S(),ee("eof")}S()},value(){switch(j){case"{":case"[":return ee("punctuator",S());case"n":return S(),mr("ull"),ee("null",null);case"t":return S(),mr("rue"),ee("boolean",!0);case"f":return S(),mr("alse"),ee("boolean",!1);case"-":case"+":S()==="-"&&(Ct=-1),H="sign";return;case".":M=S(),H="decimalPointLeading";return;case"0":M=S(),H="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":M=S(),H="decimalInteger";return;case"I":return S(),mr("nfinity"),ee("numeric",1/0);case"N":return S(),mr("aN"),ee("numeric",NaN);case'"':case"'":Ni=S()==='"',M="",H="string";return}throw te(S())},identifierNameStartEscape(){if(j!=="u")throw te(S());S();let t=Vo();switch(t){case"$":case"_":break;default:if(!oe.isIdStartChar(t))throw Df();break}M+=t,H="identifierName"},identifierName(){switch(j){case"$":case"_":case"\u200C":case"\u200D":M+=S();return;case"\\":S(),H="identifierNameEscape";return}if(oe.isIdContinueChar(j)){M+=S();return}return ee("identifier",M)},identifierNameEscape(){if(j!=="u")throw te(S());S();let t=Vo();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!oe.isIdContinueChar(t))throw Df();break}M+=t,H="identifierName"},sign(){switch(j){case".":M=S(),H="decimalPointLeading";return;case"0":M=S(),H="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":M=S(),H="decimalInteger";return;case"I":return S(),mr("nfinity"),ee("numeric",Ct*(1/0));case"N":return S(),mr("aN"),ee("numeric",NaN)}throw te(S())},zero(){switch(j){case".":M+=S(),H="decimalPoint";return;case"e":case"E":M+=S(),H="decimalExponent";return;case"x":case"X":M+=S(),H="hexadecimal";return}return ee("numeric",Ct*0)},decimalInteger(){switch(j){case".":M+=S(),H="decimalPoint";return;case"e":case"E":M+=S(),H="decimalExponent";return}if(oe.isDigit(j)){M+=S();return}return ee("numeric",Ct*Number(M))},decimalPointLeading(){if(oe.isDigit(j)){M+=S(),H="decimalFraction";return}throw te(S())},decimalPoint(){switch(j){case"e":case"E":M+=S(),H="decimalExponent";return}if(oe.isDigit(j)){M+=S(),H="decimalFraction";return}return ee("numeric",Ct*Number(M))},decimalFraction(){switch(j){case"e":case"E":M+=S(),H="decimalExponent";return}if(oe.isDigit(j)){M+=S();return}return ee("numeric",Ct*Number(M))},decimalExponent(){switch(j){case"+":case"-":M+=S(),H="decimalExponentSign";return}if(oe.isDigit(j)){M+=S(),H="decimalExponentInteger";return}throw te(S())},decimalExponentSign(){if(oe.isDigit(j)){M+=S(),H="decimalExponentInteger";return}throw te(S())},decimalExponentInteger(){if(oe.isDigit(j)){M+=S();return}return ee("numeric",Ct*Number(M))},hexadecimal(){if(oe.isHexDigit(j)){M+=S(),H="hexadecimalInteger";return}throw te(S())},hexadecimalInteger(){if(oe.isHexDigit(j)){M+=S();return}return ee("numeric",Ct*Number(M))},string(){switch(j){case"\\":S(),M+=Iy();return;case'"':if(Ni)return S(),ee("string",M);M+=S();return;case"'":if(!Ni)return S(),ee("string",M);M+=S();return;case`
12
- `:case"\r":throw te(S());case"\u2028":case"\u2029":My(j);break;case void 0:throw te(S())}M+=S()},start(){switch(j){case"{":case"[":return ee("punctuator",S())}H="value"},beforePropertyName(){switch(j){case"$":case"_":M=S(),H="identifierName";return;case"\\":S(),H="identifierNameStartEscape";return;case"}":return ee("punctuator",S());case'"':case"'":Ni=S()==='"',H="string";return}if(oe.isIdStartChar(j)){M+=S(),H="identifierName";return}throw te(S())},afterPropertyName(){if(j===":")return ee("punctuator",S());throw te(S())},beforePropertyValue(){H="value"},afterPropertyValue(){switch(j){case",":case"}":return ee("punctuator",S())}throw te(S())},beforeArrayValue(){if(j==="]")return ee("punctuator",S());H="value"},afterArrayValue(){switch(j){case",":case"]":return ee("punctuator",S())}throw te(S())},end(){throw te(S())}};function ee(t,e){return{type:t,value:e,line:jt,column:rt}}function mr(t){for(let e of t){if(wt()!==e)throw te(S());S()}}function Iy(){switch(wt()){case"b":return S(),"\b";case"f":return S(),"\f";case"n":return S(),`
13
- `;case"r":return S(),"\r";case"t":return S()," ";case"v":return S(),"\v";case"0":if(S(),oe.isDigit(wt()))throw te(S());return"\0";case"x":return S(),Ny();case"u":return S(),Vo();case`
14
- `:case"\u2028":case"\u2029":return S(),"";case"\r":return S(),wt()===`
15
- `&&S(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw te(S());case void 0:throw te(S())}return S()}function Ny(){let t="",e=wt();if(!oe.isHexDigit(e)||(t+=S(),e=wt(),!oe.isHexDigit(e)))throw te(S());return t+=S(),String.fromCodePoint(parseInt(t,16))}function Vo(){let t="",e=4;for(;e-- >0;){let r=wt();if(!oe.isHexDigit(r))throw te(S());t+=S()}return String.fromCodePoint(parseInt(t,16))}var ky={start(){if(me.type==="eof")throw gr();Wo()},beforePropertyName(){switch(me.type){case"identifier":case"string":Ko=me.value,Oe="afterPropertyName";return;case"punctuator":vn();return;case"eof":throw gr()}},afterPropertyName(){if(me.type==="eof")throw gr();Oe="beforePropertyValue"},beforePropertyValue(){if(me.type==="eof")throw gr();Wo()},beforeArrayValue(){if(me.type==="eof")throw gr();if(me.type==="punctuator"&&me.value==="]"){vn();return}Wo()},afterPropertyValue(){if(me.type==="eof")throw gr();switch(me.value){case",":Oe="beforePropertyName";return;case"}":vn()}},afterArrayValue(){if(me.type==="eof")throw gr();switch(me.value){case",":Oe="beforeArrayValue";return;case"]":vn()}},end(){}};function Wo(){let t;switch(me.type){case"punctuator":switch(me.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=me.value;break}if(ki===void 0)ki=t;else{let e=bt[bt.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,Ko,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")bt.push(t),Array.isArray(t)?Oe="beforeArrayValue":Oe="beforePropertyName";else{let e=bt[bt.length-1];e==null?Oe="end":Array.isArray(e)?Oe="afterArrayValue":Oe="afterPropertyValue"}}function vn(){bt.pop();let t=bt[bt.length-1];t==null?Oe="end":Array.isArray(t)?Oe="afterArrayValue":Oe="afterPropertyValue"}function te(t){return Tn(t===void 0?`JSON5: invalid end of input at ${jt}:${rt}`:`JSON5: invalid character '${Af(t)}' at ${jt}:${rt}`)}function gr(){return Tn(`JSON5: invalid end of input at ${jt}:${rt}`)}function Df(){return rt-=5,Tn(`JSON5: invalid identifier character at ${jt}:${rt}`)}function My(t){console.warn(`JSON5: '${Af(t)}' in strings is not valid ECMAScript; consider escaping`)}function Af(t){let e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){let r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function Tn(t){let e=new SyntaxError(t);return e.lineNumber=jt,e.columnNumber=rt,e}var qy=function(e,r,i){let n=[],s="",o,u,a="",c;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(i=r.space,c=r.quote,r=r.replacer),typeof r=="function")u=r;else if(Array.isArray(r)){o=[];for(let d of r){let D;typeof d=="string"?D=d:(typeof d=="number"||d instanceof String||d instanceof Number)&&(D=String(d)),D!==void 0&&o.indexOf(D)<0&&o.push(D)}}return i instanceof Number?i=Number(i):i instanceof String&&(i=String(i)),typeof i=="number"?i>0&&(i=Math.min(10,Math.floor(i)),a=" ".substr(0,i)):typeof i=="string"&&(a=i.substr(0,10)),l("",{"":e});function l(d,D){let y=D[d];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(d):typeof y.toJSON=="function"&&(y=y.toJSON(d))),u&&(y=u.call(D,d,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return f(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?g(y):h(y)}function f(d){let D={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},w="";for(let q=0;q<d.length;q++){let v=d[q];switch(v){case"'":case'"':D[v]++,w+=v;continue;case"\0":if(oe.isDigit(d[q+1])){w+="\\x00";continue}}if(y[v]){w+=y[v];continue}if(v<" "){let $=v.charCodeAt(0).toString(16);w+="\\x"+("00"+$).substring($.length);continue}w+=v}let B=c||Object.keys(D).reduce((q,v)=>D[q]<D[v]?q:v);return w=w.replace(new RegExp(B,"g"),y[B]),B+w+B}function h(d){if(n.indexOf(d)>=0)throw TypeError("Converting circular structure to JSON5");n.push(d);let D=s;s=s+a;let y=o||Object.keys(d),w=[];for(let q of y){let v=l(q,d);if(v!==void 0){let $=E(q)+":";a!==""&&($+=" "),$+=v,w.push($)}}let B;if(w.length===0)B="{}";else{let q;if(a==="")q=w.join(","),B="{"+q+"}";else{let v=`,
16
- `+s;q=w.join(v),B=`{
17
- `+s+q+`,
18
- `+D+"}"}}return n.pop(),s=D,B}function E(d){if(d.length===0)return f(d,!0);let D=String.fromCodePoint(d.codePointAt(0));if(!oe.isIdStartChar(D))return f(d,!0);for(let y=D.length;y<d.length;y++)if(!oe.isIdContinueChar(String.fromCodePoint(d.codePointAt(y))))return f(d,!0);return d}function g(d){if(n.indexOf(d)>=0)throw TypeError("Converting circular structure to JSON5");n.push(d);let D=s;s=s+a;let y=[];for(let B=0;B<d.length;B++){let q=l(String(B),d);y.push(q!==void 0?q:"null")}let w;if(y.length===0)w="[]";else if(a==="")w="["+y.join(",")+"]";else{let B=`,
19
- `+s,q=y.join(B);w=`[
20
- `+s+q+`,
21
- `+D+"]"}return n.pop(),s=D,w}},Hy={parse:Py,stringify:qy},$y=Hy,On=$y;var Xo=V(require("fs")),Mi=V(require("path"));function Zo({target:t,cwd:e,contentCheck:r}){let i=Mi.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=Xo.default.readFileSync(Mi.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(Xo.default.existsSync(Mi.default.join(s,t))){n=!0;break}s=Mi.default.dirname(s)}return n?s:null}function Uy(t){let e=On.parse(t);return!(e&&"extends"in e)}var Jo={};function Qo(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,i=t||process.cwd();if(r&&Jo[i])return Jo[i];let n=Zo({target:"turbo.json",cwd:i,contentCheck:Uy});if(!n)try{if(n=Ef(i),!n)return null}catch{return null}return r&&(Jo[i]=n),n}var Vi=V(require("fs")),br=V(require("path"));function Nf(t){return typeof t=="undefined"||t===null}function jy(t){return typeof t=="object"&&t!==null}function Gy(t){return Array.isArray(t)?t:Nf(t)?[]:[t]}function Wy(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function zy(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Yy(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Vy=Nf,Ky=jy,Xy=Gy,Zy=zy,Jy=Yy,Qy=Wy,pe={isNothing:Vy,isObject:Ky,toArray:Xy,repeat:Zy,isNegativeZero:Jy,extend:Qy};function kf(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
4
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Fm=d((sI,Ii)=>{"use strict";var Pi=require("path"),Nm=Al(),Dm=t=>{t={cwd:process.cwd(),path:process.env[Nm()],execPath:process.execPath,...t};let e,r=Pi.resolve(t.cwd),i=[];for(;e!==r;)i.push(Pi.join(r,"node_modules/.bin")),e=r,r=Pi.resolve(r,"..");let n=Pi.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(Pi.delimiter)};Ii.exports=Dm;Ii.exports.default=Dm;Ii.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Nm({env:e});return t.path=e[r],e[r]=Ii.exports(t),e}});var Bm=d((oI,Nl)=>{"use strict";var Mm=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Nl.exports=Mm;Nl.exports.default=Mm});var Hm=d((aI,Wn)=>{"use strict";var cA=Bm(),jn=new WeakMap,qm=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(jn.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return cA(s,t),jn.set(s,i),s};Wn.exports=qm;Wn.exports.default=qm;Wn.exports.callCount=t=>{if(!jn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return jn.get(t)}});var $m=d(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.SIGNALS=void 0;var uA=[{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"}];Yn.SIGNALS=uA});var Dl=d(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.SIGRTMAX=Ur.getRealtimeSignals=void 0;var hA=function(){let t=Gm-Um+1;return Array.from({length:t},fA)};Ur.getRealtimeSignals=hA;var fA=function(t,e){return{name:`SIGRT${e+1}`,number:Um+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Um=34,Gm=64;Ur.SIGRTMAX=Gm});var jm=d(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.getSignals=void 0;var pA=require("os"),dA=$m(),mA=Dl(),gA=function(){let t=(0,mA.getRealtimeSignals)();return[...dA.SIGNALS,...t].map(yA)};zn.getSignals=gA;var yA=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=pA.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Ym=d(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.signalsByNumber=Gr.signalsByName=void 0;var _A=require("os"),Wm=jm(),EA=Dl(),SA=function(){return(0,Wm.getSignals)().reduce(bA,{})},bA=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}}},wA=SA();Gr.signalsByName=wA;var xA=function(){let t=(0,Wm.getSignals)(),e=EA.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>vA(n,t));return Object.assign({},...r)},vA=function(t,e){let r=RA(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:l}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:l}}},RA=function(t,e){let r=e.find(({name:i})=>_A.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},AA=xA();Gr.signalsByNumber=AA});var Km=d((fI,zm)=>{"use strict";var{signalsByName:TA}=Ym(),OA=({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:n,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${n})`:s!==void 0?`failed with exit code ${s}`:"failed",CA=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:TA[n].description,g=i&&i.code,y=`Command ${OA({timedOut:l,timeout:h,errorCode:g,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,w=Object.prototype.toString.call(i)==="[object Error]",x=w?`${y}
5
+ ${i.message}`:y,R=[x,e,t].filter(Boolean).join(`
6
+ `);return w?(i.originalMessage=i.message,i.message=R):i=new Error(R),i.shortMessage=x,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=c,i.killed=u&&!l,i};zm.exports=CA});var Xm=d((pI,Fl)=>{"use strict";var Kn=["stdin","stdout","stderr"],LA=t=>Kn.some(e=>t[e]!==void 0),Vm=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Kn.map(i=>t[i]);if(LA(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Kn.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Kn.length);return Array.from({length:r},(i,n)=>e[n])};Fl.exports=Vm;Fl.exports.node=t=>{let e=Vm(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Zm=d((dI,Vn)=>{Vn.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Vn.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Vn.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var rg=d((mI,Yr)=>{var Z=global.process,cr=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};cr(Z)?(Qm=require("assert"),jr=Zm(),Jm=/^win/i.test(Z.platform),ki=require("events"),typeof ki!="function"&&(ki=ki.EventEmitter),Z.__signal_exit_emitter__?le=Z.__signal_exit_emitter__:(le=Z.__signal_exit_emitter__=new ki,le.count=0,le.emitted={}),le.infinite||(le.setMaxListeners(1/0),le.infinite=!0),Yr.exports=function(t,e){if(!cr(global.process))return function(){};Qm.equal(typeof t,"function","a callback must be provided for exit handler"),Wr===!1&&Ml();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){le.removeListener(r,t),le.listeners("exit").length===0&&le.listeners("afterexit").length===0&&Xn()};return le.on(r,t),i},Xn=function(){!Wr||!cr(global.process)||(Wr=!1,jr.forEach(function(e){try{Z.removeListener(e,Zn[e])}catch{}}),Z.emit=Qn,Z.reallyExit=Bl,le.count-=1)},Yr.exports.unload=Xn,ur=function(e,r,i){le.emitted[e]||(le.emitted[e]=!0,le.emit(e,r,i))},Zn={},jr.forEach(function(t){Zn[t]=function(){if(cr(global.process)){var r=Z.listeners(t);r.length===le.count&&(Xn(),ur("exit",null,t),ur("afterexit",null,t),Jm&&t==="SIGHUP"&&(t="SIGINT"),Z.kill(Z.pid,t))}}}),Yr.exports.signals=function(){return jr},Wr=!1,Ml=function(){Wr||!cr(global.process)||(Wr=!0,le.count+=1,jr=jr.filter(function(e){try{return Z.on(e,Zn[e]),!0}catch{return!1}}),Z.emit=tg,Z.reallyExit=eg)},Yr.exports.load=Ml,Bl=Z.reallyExit,eg=function(e){cr(global.process)&&(Z.exitCode=e||0,ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),Bl.call(Z,Z.exitCode))},Qn=Z.emit,tg=function(e,r){if(e==="exit"&&cr(global.process)){r!==void 0&&(Z.exitCode=r);var i=Qn.apply(this,arguments);return ur("exit",Z.exitCode,null),ur("afterexit",Z.exitCode,null),i}else return Qn.apply(this,arguments)}):Yr.exports=function(){return function(){}};var Qm,jr,Jm,ki,le,Xn,ur,Zn,Wr,Ml,Bl,eg,Qn,tg});var ng=d((gI,ig)=>{"use strict";var PA=require("os"),IA=rg(),kA=1e3*5,NA=(t,e="SIGTERM",r={})=>{let i=t(e);return DA(t,e,r,i),i},DA=(t,e,r,i)=>{if(!FA(e,r,i))return;let n=BA(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},FA=(t,{forceKillAfterTimeout:e},r)=>MA(t)&&e!==!1&&r,MA=t=>t===PA.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",BA=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return kA;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},qA=(t,e)=>{t.kill()&&(e.isCanceled=!0)},HA=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},$A=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,l)=>{n=setTimeout(()=>{HA(t,r,l)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},UA=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},GA=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=IA(()=>{t.kill()});return i.finally(()=>{n()})};ig.exports={spawnedKill:NA,spawnedCancel:qA,setupTimeout:$A,validateTimeout:UA,setExitHandler:GA}});var og=d((yI,sg)=>{"use strict";var rt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";rt.writable=t=>rt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";rt.readable=t=>rt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";rt.duplex=t=>rt.writable(t)&&rt.readable(t);rt.transform=t=>rt.duplex(t)&&typeof t._transform=="function";sg.exports=rt});var lg=d((_I,ag)=>{"use strict";var{PassThrough:jA}=require("stream");ag.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new jA({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",l=>{a.push(l),n?o=a.length:o+=l.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var cg=d((EI,Ni)=>{"use strict";var{constants:WA}=require("buffer"),YA=require("stream"),{promisify:zA}=require("util"),KA=lg(),VA=zA(YA.pipeline),Jn=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function ql(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=KA(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=WA.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await VA(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Jn)})}),i.getBufferedValue()}Ni.exports=ql;Ni.exports.buffer=(t,e)=>ql(t,{...e,encoding:"buffer"});Ni.exports.array=(t,e)=>ql(t,{...e,array:!0});Ni.exports.MaxBufferError=Jn});var hg=d((SI,ug)=>{"use strict";var{PassThrough:XA}=require("stream");ug.exports=function(){var t=[],e=new XA({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var mg=d((bI,dg)=>{"use strict";var pg=og(),fg=cg(),ZA=hg(),QA=(t,e)=>{e===void 0||t.stdin===void 0||(pg(e)?e.pipe(t.stdin):t.stdin.end(e))},JA=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=ZA();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Hl=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},$l=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?fg(t,{encoding:e,maxBuffer:i}):fg.buffer(t,{maxBuffer:i})},eT=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=$l(t,{encoding:i,buffer:n,maxBuffer:s}),l=$l(e,{encoding:i,buffer:n,maxBuffer:s}),c=$l(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,l,c])}catch(u){return Promise.all([{error:u,signal:u.signal,timedOut:u.timedOut},Hl(t,a),Hl(e,l),Hl(r,c)])}},tT=({input:t})=>{if(pg(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};dg.exports={handleInput:QA,makeAllStream:JA,getSpawnedResult:eT,validateInputSync:tT}});var yg=d((wI,gg)=>{"use strict";var rT=(async()=>{})().constructor.prototype,iT=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(rT,t)]),nT=(t,e)=>{for(let[r,i]of iT){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},sT=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});gg.exports={mergePromise:nT,getSpawnedPromise:sT}});var Sg=d((xI,Eg)=>{"use strict";var _g=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],oT=/^[\w.-]+$/,aT=/"/g,lT=t=>typeof t!="string"||oT.test(t)?t:`"${t.replace(aT,'\\"')}"`,cT=(t,e)=>_g(t,e).join(" "),uT=(t,e)=>_g(t,e).map(r=>lT(r)).join(" "),hT=/ +/g,fT=t=>{let e=[];for(let r of t.trim().split(hT)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Eg.exports={joinCommand:cT,getEscapedCommand:uT,parseCommand:fT}});var Tg=d((vI,zr)=>{"use strict";var pT=require("path"),Ul=require("child_process"),dT=Pm(),mT=km(),gT=Fm(),yT=Hm(),es=Km(),wg=Xm(),{spawnedKill:_T,spawnedCancel:ET,setupTimeout:ST,validateTimeout:bT,setExitHandler:wT}=ng(),{handleInput:xT,getSpawnedResult:vT,makeAllStream:RT,validateInputSync:AT}=mg(),{mergePromise:bg,getSpawnedPromise:TT}=yg(),{joinCommand:xg,parseCommand:vg,getEscapedCommand:Rg}=Sg(),OT=1e3*1e3*100,CT=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?gT.env({env:s,cwd:i,execPath:n}):s},Ag=(t,e,r={})=>{let i=dT._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:OT,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=CT(r),r.stdio=wg(r),process.platform==="win32"&&pT.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Di=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?mT(e):e,ts=(t,e,r)=>{let i=Ag(t,e,r),n=xg(t,e),s=Rg(t,e);bT(i.options);let o;try{o=Ul.spawn(i.file,i.args,i.options)}catch(g){let m=new Ul.ChildProcess,y=Promise.reject(es({error:g,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return bg(m,y)}let a=TT(o),l=ST(o,i.options,a),c=wT(o,i.options,l),u={isCanceled:!1};o.kill=_T.bind(null,o.kill.bind(o)),o.cancel=ET.bind(null,o,u);let f=yT(async()=>{let[{error:g,exitCode:m,signal:y,timedOut:w},x,R,M]=await vT(o,i.options,c),re=Di(i.options,x),N=Di(i.options,R),q=Di(i.options,M);if(g||m!==0||y!==null){let P=es({error:g,exitCode:m,signal:y,stdout:re,stderr:N,all:q,command:n,escapedCommand:s,parsed:i,timedOut:w,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return P;throw P}return{command:n,escapedCommand:s,exitCode:0,stdout:re,stderr:N,all:q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return xT(o,i.options.input),o.all=RT(o,i.options),bg(o,f)};zr.exports=ts;zr.exports.sync=(t,e,r)=>{let i=Ag(t,e,r),n=xg(t,e),s=Rg(t,e);AT(i.options);let o;try{o=Ul.spawnSync(i.file,i.args,i.options)}catch(c){throw es({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=Di(i.options,o.stdout,o.error),l=Di(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=es({stdout:a,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};zr.exports.command=(t,e)=>{let[r,...i]=vg(t);return ts(r,i,e)};zr.exports.commandSync=(t,e)=>{let[r,...i]=vg(t);return ts.sync(r,i,e)};zr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=wg.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return ts(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var Kr=d((CI,Lg)=>{"use strict";var Cg=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);Lg.exports=t=>t?Object.keys(t).map(e=>[Cg.has(e)?Cg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var as=d((LI,qg)=>{"use strict";var Pg=typeof process=="object"&&process?process:{stdout:null,stderr:null},FT=require("events"),Ig=require("stream"),kg=require("string_decoder").StringDecoder,yt=Symbol("EOF"),_t=Symbol("maybeEmitEnd"),Ht=Symbol("emittedEnd"),rs=Symbol("emittingEnd"),Fi=Symbol("emittedError"),is=Symbol("closed"),Ng=Symbol("read"),ns=Symbol("flush"),Dg=Symbol("flushChunk"),Ae=Symbol("encoding"),Et=Symbol("decoder"),ss=Symbol("flowing"),Mi=Symbol("paused"),Vr=Symbol("resume"),ee=Symbol("buffer"),it=Symbol("pipes"),ce=Symbol("bufferLength"),Gl=Symbol("bufferPush"),jl=Symbol("bufferShift"),ge=Symbol("objectMode"),ye=Symbol("destroyed"),Wl=Symbol("emitData"),Fg=Symbol("emitEnd"),Yl=Symbol("emitEnd2"),St=Symbol("async"),Bi=t=>Promise.resolve().then(t),Mg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",MT=Mg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),BT=Mg&&Symbol.iterator||Symbol("iterator not implemented"),qT=t=>t==="end"||t==="finish"||t==="prefinish",HT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,$T=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),os=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Vr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},zl=class extends os{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};qg.exports=class Bg extends Ig{constructor(e){super(),this[ss]=!1,this[Mi]=!1,this[it]=[],this[ee]=[],this[ge]=e&&e.objectMode||!1,this[ge]?this[Ae]=null:this[Ae]=e&&e.encoding||null,this[Ae]==="buffer"&&(this[Ae]=null),this[St]=e&&!!e.async||!1,this[Et]=this[Ae]?new kg(this[Ae]):null,this[yt]=!1,this[Ht]=!1,this[rs]=!1,this[is]=!1,this[Fi]=null,this.writable=!0,this.readable=!0,this[ce]=0,this[ye]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ee]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[it]})}get bufferLength(){return this[ce]}get encoding(){return this[Ae]}set encoding(e){if(this[ge])throw new Error("cannot set encoding in objectMode");if(this[Ae]&&e!==this[Ae]&&(this[Et]&&this[Et].lastNeed||this[ce]))throw new Error("cannot change encoding");this[Ae]!==e&&(this[Et]=e?new kg(e):null,this[ee].length&&(this[ee]=this[ee].map(r=>this[Et].write(r)))),this[Ae]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ge]}set objectMode(e){this[ge]=this[ge]||!!e}get async(){return this[St]}set async(e){this[St]=this[St]||!!e}write(e,r,i){if(this[yt])throw new Error("write after end");if(this[ye])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[St]?Bi:s=>s();return!this[ge]&&!Buffer.isBuffer(e)&&($T(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):HT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ge]?(this.flowing&&this[ce]!==0&&this[ns](!0),this.flowing?this.emit("data",e):this[Gl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ae]&&!this[Et].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ae]&&(e=this[Et].write(e)),this.flowing&&this[ce]!==0&&this[ns](!0),this.flowing?this.emit("data",e):this[Gl](e),this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ce]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[ye])return null;if(this[ce]===0||e===0||e>this[ce])return this[_t](),null;this[ge]&&(e=null),this[ee].length>1&&!this[ge]&&(this.encoding?this[ee]=[this[ee].join("")]:this[ee]=[Buffer.concat(this[ee],this[ce])]);let r=this[Ng](e||null,this[ee][0]);return this[_t](),r}[Ng](e,r){return e===r.length||e===null?this[jl]():(this[ee][0]=r.slice(e),r=r.slice(0,e),this[ce]-=e),this.emit("data",r),!this[ee].length&&!this[yt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[yt]=!0,this.writable=!1,(this.flowing||!this[Mi])&&this[_t](),this}[Vr](){this[ye]||(this[Mi]=!1,this[ss]=!0,this.emit("resume"),this[ee].length?this[ns]():this[yt]?this[_t]():this.emit("drain"))}resume(){return this[Vr]()}pause(){this[ss]=!1,this[Mi]=!0}get destroyed(){return this[ye]}get flowing(){return this[ss]}get paused(){return this[Mi]}[Gl](e){this[ge]?this[ce]+=1:this[ce]+=e.length,this[ee].push(e)}[jl](){return this[ee].length&&(this[ge]?this[ce]-=1:this[ce]-=this[ee][0].length),this[ee].shift()}[ns](e){do;while(this[Dg](this[jl]()));!e&&!this[ee].length&&!this[yt]&&this.emit("drain")}[Dg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ye])return;let i=this[Ht];return r=r||{},e===Pg.stdout||e===Pg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[it].push(r.proxyErrors?new zl(this,e,r):new os(this,e,r)),this[St]?Bi(()=>this[Vr]()):this[Vr]()),e}unpipe(e){let r=this[it].find(i=>i.dest===e);r&&(this[it].splice(this[it].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[it].length&&!this.flowing?this[Vr]():e==="readable"&&this[ce]!==0?super.emit("readable"):qT(e)&&this[Ht]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Fi]&&(this[St]?Bi(()=>r.call(this,this[Fi])):r.call(this,this[Fi])),i}get emittedEnd(){return this[Ht]}[_t](){!this[rs]&&!this[Ht]&&!this[ye]&&this[ee].length===0&&this[yt]&&(this[rs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[is]&&this.emit("close"),this[rs]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==ye&&this[ye])return;if(e==="data")return r?this[St]?Bi(()=>this[Wl](r)):this[Wl](r):!1;if(e==="end")return this[Fg]();if(e==="close"){if(this[is]=!0,!this[Ht]&&!this[ye])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Fi]=r;let s=super.emit("error",r);return this[_t](),s}else if(e==="resume"){let s=super.emit("resume");return this[_t](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[_t](),n}[Wl](e){for(let i of this[it])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[_t](),r}[Fg](){this[Ht]||(this[Ht]=!0,this.readable=!1,this[St]?Bi(()=>this[Yl]()):this[Yl]())}[Yl](){if(this[Et]){let r=this[Et].end();if(r){for(let i of this[it])i.dest.write(r);super.emit("data",r)}}for(let r of this[it])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ge]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ge]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ge]?Promise.reject(new Error("cannot concat in objectMode")):this[Ae]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ye,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[MT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[yt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[yt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(ye,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[BT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ye]?(e?this.emit("error",e):this.emit(ye),this):(this[ye]=!0,this[ee].length=0,this[ce]=0,typeof this.close=="function"&&!this[is]&&this.close(),e?this.emit("error",e):this.emit(ye),this)}static isStream(e){return!!e&&(e instanceof Bg||e instanceof Ig||e instanceof FT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var $g=d((PI,Hg)=>{var UT=require("zlib").constants||{ZLIB_VERNUM:4736};Hg.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},UT))});var Jl=d((II,Xg)=>{"use strict";var Ug=typeof process=="object"&&process?process:{stdout:null,stderr:null},GT=require("events"),Gg=require("stream"),jg=require("string_decoder").StringDecoder,bt=Symbol("EOF"),wt=Symbol("maybeEmitEnd"),$t=Symbol("emittedEnd"),ls=Symbol("emittingEnd"),qi=Symbol("emittedError"),cs=Symbol("closed"),Wg=Symbol("read"),us=Symbol("flush"),Yg=Symbol("flushChunk"),Te=Symbol("encoding"),xt=Symbol("decoder"),hs=Symbol("flowing"),Hi=Symbol("paused"),Xr=Symbol("resume"),ue=Symbol("bufferLength"),Kl=Symbol("bufferPush"),Vl=Symbol("bufferShift"),_e=Symbol("objectMode"),Ee=Symbol("destroyed"),Xl=Symbol("emitData"),zg=Symbol("emitEnd"),Zl=Symbol("emitEnd2"),vt=Symbol("async"),$i=t=>Promise.resolve().then(t),Kg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",jT=Kg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),WT=Kg&&Symbol.iterator||Symbol("iterator not implemented"),YT=t=>t==="end"||t==="finish"||t==="prefinish",zT=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,KT=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),fs=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Xr](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ql=class extends fs{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};Xg.exports=class Vg extends Gg{constructor(e){super(),this[hs]=!1,this[Hi]=!1,this.pipes=[],this.buffer=[],this[_e]=e&&e.objectMode||!1,this[_e]?this[Te]=null:this[Te]=e&&e.encoding||null,this[Te]==="buffer"&&(this[Te]=null),this[vt]=e&&!!e.async||!1,this[xt]=this[Te]?new jg(this[Te]):null,this[bt]=!1,this[$t]=!1,this[ls]=!1,this[cs]=!1,this[qi]=null,this.writable=!0,this.readable=!0,this[ue]=0,this[Ee]=!1}get bufferLength(){return this[ue]}get encoding(){return this[Te]}set encoding(e){if(this[_e])throw new Error("cannot set encoding in objectMode");if(this[Te]&&e!==this[Te]&&(this[xt]&&this[xt].lastNeed||this[ue]))throw new Error("cannot change encoding");this[Te]!==e&&(this[xt]=e?new jg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[xt].write(r)))),this[Te]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_e]}set objectMode(e){this[_e]=this[_e]||!!e}get async(){return this[vt]}set async(e){this[vt]=this[vt]||!!e}write(e,r,i){if(this[bt])throw new Error("write after end");if(this[Ee])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[vt]?$i:s=>s();return!this[_e]&&!Buffer.isBuffer(e)&&(KT(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):zT(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[_e]?(this.flowing&&this[ue]!==0&&this[us](!0),this.flowing?this.emit("data",e):this[Kl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Te]&&!this[xt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Te]&&(e=this[xt].write(e)),this.flowing&&this[ue]!==0&&this[us](!0),this.flowing?this.emit("data",e):this[Kl](e),this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[ue]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ee])return null;if(this[ue]===0||e===0||e>this[ue])return this[wt](),null;this[_e]&&(e=null),this.buffer.length>1&&!this[_e]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ue])]);let r=this[Wg](e||null,this.buffer[0]);return this[wt](),r}[Wg](e,r){return e===r.length||e===null?this[Vl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ue]-=e),this.emit("data",r),!this.buffer.length&&!this[bt]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[bt]=!0,this.writable=!1,(this.flowing||!this[Hi])&&this[wt](),this}[Xr](){this[Ee]||(this[Hi]=!1,this[hs]=!0,this.emit("resume"),this.buffer.length?this[us]():this[bt]?this[wt]():this.emit("drain"))}resume(){return this[Xr]()}pause(){this[hs]=!1,this[Hi]=!0}get destroyed(){return this[Ee]}get flowing(){return this[hs]}get paused(){return this[Hi]}[Kl](e){this[_e]?this[ue]+=1:this[ue]+=e.length,this.buffer.push(e)}[Vl](){return this.buffer.length&&(this[_e]?this[ue]-=1:this[ue]-=this.buffer[0].length),this.buffer.shift()}[us](e){do;while(this[Yg](this[Vl]()));!e&&!this.buffer.length&&!this[bt]&&this.emit("drain")}[Yg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ee])return;let i=this[$t];return r=r||{},e===Ug.stdout||e===Ug.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Ql(this,e,r):new fs(this,e,r)),this[vt]?$i(()=>this[Xr]()):this[Xr]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Xr]():e==="readable"&&this[ue]!==0?super.emit("readable"):YT(e)&&this[$t]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[qi]&&(this[vt]?$i(()=>r.call(this,this[qi])):r.call(this,this[qi])),i}get emittedEnd(){return this[$t]}[wt](){!this[ls]&&!this[$t]&&!this[Ee]&&this.buffer.length===0&&this[bt]&&(this[ls]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[cs]&&this.emit("close"),this[ls]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ee&&this[Ee])return;if(e==="data")return r?this[vt]?$i(()=>this[Xl](r)):this[Xl](r):!1;if(e==="end")return this[zg]();if(e==="close"){if(this[cs]=!0,!this[$t]&&!this[Ee])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[qi]=r;let s=super.emit("error",r);return this[wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[wt](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[wt](),n}[Xl](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[wt](),r}[zg](){this[$t]||(this[$t]=!0,this.readable=!1,this[vt]?$i(()=>this[Zl]()):this[Zl]())}[Zl](){if(this[xt]){let r=this[xt].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[_e]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[_e]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_e]?Promise.reject(new Error("cannot concat in objectMode")):this[Te]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ee,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[jT](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[bt])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[bt]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},l=()=>s(new Error("stream destroyed"));return new Promise((c,u)=>{n=u,i=c,this.once(Ee,l),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[WT](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ee]?(e?this.emit("error",e):this.emit(Ee),this):(this[Ee]=!0,this.buffer.length=0,this[ue]=0,typeof this.close=="function"&&!this[cs]&&this.close(),e?this.emit("error",e):this.emit(Ee),this)}static isStream(e){return!!e&&(e instanceof Vg||e instanceof Gg||e instanceof GT&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var mc=d(Ie=>{"use strict";var nc=require("assert"),Ut=require("buffer").Buffer,Jg=require("zlib"),hr=Ie.constants=$g(),VT=Jl(),Zg=Ut.concat,fr=Symbol("_superWrite"),Qr=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},XT=Symbol("opts"),Ui=Symbol("flushFlag"),Qg=Symbol("finishFlushFlag"),dc=Symbol("fullFlushFlag"),z=Symbol("handle"),ps=Symbol("onError"),Zr=Symbol("sawError"),ec=Symbol("level"),tc=Symbol("strategy"),rc=Symbol("ended"),kI=Symbol("_defaultFullFlush"),ds=class extends VT{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Zr]=!1,this[rc]=!1,this[XT]=e,this[Ui]=e.flush,this[Qg]=e.finishFlush;try{this[z]=new Jg[r](e)}catch(i){throw new Qr(i)}this[ps]=i=>{this[Zr]||(this[Zr]=!0,this.close(),this.emit("error",i))},this[z].on("error",i=>this[ps](new Qr(i))),this.once("end",()=>this.close)}close(){this[z]&&(this[z].close(),this[z]=null,this.emit("close"))}reset(){if(!this[Zr])return nc(this[z],"zlib binding closed"),this[z].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[dc]),this.write(Object.assign(Ut.alloc(0),{[Ui]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Qg]),this[rc]=!0,super.end(null,null,i)}get ended(){return this[rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=Ut.from(e,r)),this[Zr])return;nc(this[z],"zlib binding closed");let n=this[z]._handle,s=n.close;n.close=()=>{};let o=this[z].close;this[z].close=()=>{},Ut.concat=c=>c;let a;try{let c=typeof e[Ui]=="number"?e[Ui]:this[Ui];a=this[z]._processChunk(e,c),Ut.concat=Zg}catch(c){Ut.concat=Zg,this[ps](new Qr(c))}finally{this[z]&&(this[z]._handle=n,n.close=s,this[z].close=o,this[z].removeAllListeners("error"))}this[z]&&this[z].on("error",c=>this[ps](new Qr(c)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[fr](Ut.from(a[0]));for(let c=1;c<a.length;c++)l=this[fr](a[c])}else l=this[fr](Ut.from(a));return i&&i(),l}[fr](e){return super.write(e)}},Rt=class extends ds{constructor(e,r){e=e||{},e.flush=e.flush||hr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hr.Z_FINISH,super(e,r),this[dc]=hr.Z_FULL_FLUSH,this[ec]=e.level,this[tc]=e.strategy}params(e,r){if(!this[Zr]){if(!this[z])throw new Error("cannot switch params when binding is closed");if(!this[z].params)throw new Error("not supported in this implementation");if(this[ec]!==e||this[tc]!==r){this.flush(hr.Z_SYNC_FLUSH),nc(this[z],"zlib binding closed");let i=this[z].flush;this[z].flush=(n,s)=>{this.flush(n),s()};try{this[z].params(e,r)}finally{this[z].flush=i}this[z]&&(this[ec]=e,this[tc]=r)}}}},sc=class extends Rt{constructor(e){super(e,"Deflate")}},oc=class extends Rt{constructor(e){super(e,"Inflate")}},ic=Symbol("_portable"),ac=class extends Rt{constructor(e){super(e,"Gzip"),this[ic]=e&&!!e.portable}[fr](e){return this[ic]?(this[ic]=!1,e[9]=255,super[fr](e)):super[fr](e)}},lc=class extends Rt{constructor(e){super(e,"Gunzip")}},cc=class extends Rt{constructor(e){super(e,"DeflateRaw")}},uc=class extends Rt{constructor(e){super(e,"InflateRaw")}},hc=class extends Rt{constructor(e){super(e,"Unzip")}},ms=class extends ds{constructor(e,r){e=e||{},e.flush=e.flush||hr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hr.BROTLI_OPERATION_FINISH,super(e,r),this[dc]=hr.BROTLI_OPERATION_FLUSH}},fc=class extends ms{constructor(e){super(e,"BrotliCompress")}},pc=class extends ms{constructor(e){super(e,"BrotliDecompress")}};Ie.Deflate=sc;Ie.Inflate=oc;Ie.Gzip=ac;Ie.Gunzip=lc;Ie.DeflateRaw=cc;Ie.InflateRaw=uc;Ie.Unzip=hc;typeof Jg.BrotliCompress=="function"?(Ie.BrotliCompress=fc,Ie.BrotliDecompress=pc):Ie.BrotliCompress=Ie.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Jr=d((FI,ey)=>{var ZT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;ey.exports=ZT!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var gs=d((BI,ty)=>{"use strict";var QT=as(),gc=Jr(),yc=Symbol("slurp");ty.exports=class extends QT{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=gc(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=gc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[yc](r),i&&this[yc](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[yc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?gc(e[i]):e[i])}}});var _c=d(ys=>{"use strict";ys.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);ys.code=new Map(Array.from(ys.name).map(t=>[t[1],t[0]]))});var sy=d((HI,ny)=>{"use strict";var JT=(t,e)=>{if(Number.isSafeInteger(t))t<0?tO(t,e):eO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},eO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},tO=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=ry(n):n===0?e[i-1]=0:(r=!0,e[i-1]=iy(n))}},rO=t=>{let e=t[0],r=e===128?nO(t.slice(1,t.length)):e===255?iO(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},iO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=ry(s):s===0?o=s:(i=!0,o=iy(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},nO=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},ry=t=>(255^t)&255,iy=t=>(255^t)+1&255;ny.exports={encode:JT,parse:rO}});var ti=d(($I,ay)=>{"use strict";var Ec=_c(),ei=require("path").posix,oy=sy(),Sc=Symbol("slurp"),ke=Symbol("type"),xc=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[ke]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pr(e,r,100),this.mode=Gt(e,r+100,8),this.uid=Gt(e,r+108,8),this.gid=Gt(e,r+116,8),this.size=Gt(e,r+124,12),this.mtime=bc(e,r+136,12),this.cksum=Gt(e,r+148,12),this[Sc](i),this[Sc](n,!0),this[ke]=pr(e,r+156,1),this[ke]===""&&(this[ke]="0"),this[ke]==="0"&&this.path.slice(-1)==="/"&&(this[ke]="5"),this[ke]==="5"&&(this.size=0),this.linkpath=pr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pr(e,r+265,32),this.gname=pr(e,r+297,32),this.devmaj=Gt(e,r+329,8),this.devmin=Gt(e,r+337,8),e[r+475]!==0){let o=pr(e,r+345,155);this.path=o+"/"+this.path}else{let o=pr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=bc(e,r+476,12),this.ctime=bc(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Sc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=sO(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=dr(e,r,100,s)||this.needPax,this.needPax=jt(e,r+100,8,this.mode)||this.needPax,this.needPax=jt(e,r+108,8,this.uid)||this.needPax,this.needPax=jt(e,r+116,8,this.gid)||this.needPax,this.needPax=jt(e,r+124,12,this.size)||this.needPax,this.needPax=wc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[ke].charCodeAt(0),this.needPax=dr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=dr(e,r+265,32,this.uname)||this.needPax,this.needPax=dr(e,r+297,32,this.gname)||this.needPax,this.needPax=jt(e,r+329,8,this.devmaj)||this.needPax,this.needPax=jt(e,r+337,8,this.devmin)||this.needPax,this.needPax=dr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=dr(e,r+345,155,o)||this.needPax:(this.needPax=dr(e,r+345,130,o)||this.needPax,this.needPax=wc(e,r+476,12,this.atime)||this.needPax,this.needPax=wc(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=r;l<r+148;l++)a+=e[l];for(let l=r+156;l<r+512;l++)a+=e[l];return this.cksum=a,jt(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Ec.name.get(this[ke])||this[ke]}get typeKey(){return this[ke]}set type(e){Ec.code.has(e)?this[ke]=Ec.code.get(e):this[ke]=e}},sO=(t,e)=>{let i=t,n="",s,o=ei.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=ei.dirname(i),i=ei.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=ei.join(ei.basename(n),i),n=ei.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),bc=(t,e,r)=>oO(Gt(t,e,r)),oO=t=>t===null?null:new Date(t*1e3),Gt=(t,e,r)=>t[e]&128?oy.parse(t.slice(e,e+r)):lO(t,e,r),aO=t=>isNaN(t)?null:t,lO=(t,e,r)=>aO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),cO={12:8589934591,8:2097151},jt=(t,e,r,i)=>i===null?!1:i>cO[r]||i<0?(oy.encode(i,t.slice(e,e+r)),!0):(uO(t,e,r,i),!1),uO=(t,e,r,i)=>t.write(hO(i,r),e,r,"ascii"),hO=(t,e)=>fO(Math.floor(t).toString(8),e),fO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",wc=(t,e,r,i)=>i===null?!1:jt(t,e,r,i.getTime()/1e3),pO=new Array(156).join("\0"),dr=(t,e,r,i)=>i===null?!1:(t.write(i+pO,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);ay.exports=xc});var _s=d((UI,ly)=>{"use strict";var dO=ti(),mO=require("path"),Gi=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new dO({path:("PaxHeader/"+mO.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
7
+ `,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Gi.parse=(t,e,r)=>new Gi(gO(yO(t),e),r);var gO=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,yO=t=>t.replace(/\n$/,"").split(`
8
+ `).reduce(_O,Object.create(null)),_O=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};ly.exports=Gi});var ri=d((GI,cy)=>{cy.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Es=d((jI,uy)=>{"use strict";uy.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var Rc=d((YI,hy)=>{"use strict";var Ss=["|","<",">","?",":"],vc=Ss.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),EO=new Map(Ss.map((t,e)=>[t,vc[e]])),SO=new Map(vc.map((t,e)=>[t,Ss[e]]));hy.exports={encode:t=>Ss.reduce((e,r)=>e.split(r).join(EO.get(r)),t),decode:t=>vc.reduce((e,r)=>e.split(r).join(SO.get(r)),t)}});var Ac=d((zI,py)=>{var{isAbsolute:bO,parse:fy}=require("path").win32;py.exports=t=>{let e="",r=fy(t);for(;bO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=fy(t)}return[e,t]}});var my=d((KI,dy)=>{"use strict";dy.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Fc=d((ZI,Cy)=>{"use strict";var wy=as(),xy=_s(),vy=ti(),st=require("fs"),gy=require("path"),nt=Jr(),wO=ri(),Ry=(t,e)=>e?(t=nt(t).replace(/^\.(\/|$)/,""),wO(e)+"/"+t):nt(t),xO=16*1024*1024,yy=Symbol("process"),_y=Symbol("file"),Ey=Symbol("directory"),Oc=Symbol("symlink"),Sy=Symbol("hardlink"),ji=Symbol("header"),bs=Symbol("read"),Cc=Symbol("lstat"),ws=Symbol("onlstat"),Lc=Symbol("onread"),Pc=Symbol("onreadlink"),Ic=Symbol("openfile"),kc=Symbol("onopenfile"),Wt=Symbol("close"),xs=Symbol("mode"),Nc=Symbol("awaitDrain"),Tc=Symbol("ondrain"),ot=Symbol("prefix"),by=Symbol("hadError"),Ay=Es(),vO=Rc(),Ty=Ac(),Oy=my(),vs=Ay(class extends wy{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=nt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||xO,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=nt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?nt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Ty(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=vO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=nt(r.absolute||gy.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[ws](this.statCache.get(this.absolute)):this[Cc]()}emit(e,...r){return e==="error"&&(this[by]=!0),super.emit(e,...r)}[Cc](){st.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[ws](r)})}[ws](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=AO(e),this.emit("stat",e),this[yy]()}[yy](){switch(this.type){case"File":return this[_y]();case"Directory":return this[Ey]();case"SymbolicLink":return this[Oc]();default:return this.end()}}[xs](e){return Oy(e,this.type==="Directory",this.portable)}[ot](e){return Ry(e,this.prefix)}[ji](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new vy({path:this[ot](this.path),linkpath:this.type==="Link"?this[ot](this.linkpath):this.linkpath,mode:this[xs](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new xy({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[ot](this.path),linkpath:this.type==="Link"?this[ot](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[Ey](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ji](),this.end()}[Oc](){st.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Pc](r)})}[Pc](e){this.linkpath=nt(e),this[ji](),this.end()}[Sy](e){this.type="Link",this.linkpath=nt(gy.relative(this.cwd,e)),this.stat.size=0,this[ji](),this.end()}[_y](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[Sy](r)}this.linkCache.set(e,this.absolute)}if(this[ji](),this.stat.size===0)return this.end();this[Ic]()}[Ic](){st.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[kc](r)})}[kc](e){if(this.fd=e,this[by])return this[Wt]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[bs]()}[bs](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;st.read(e,r,i,n,s,(o,a)=>{if(o)return this[Wt](()=>this.emit("error",o));this[Lc](a)})}[Wt](e){st.close(this.fd,e)}[Lc](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Wt](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Wt](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Tc]():this[Nc](()=>this[Tc]())}[Nc](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Tc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Wt](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[bs]()}}),Dc=class extends vs{[Cc](){this[ws](st.lstatSync(this.absolute))}[Oc](){this[Pc](st.readlinkSync(this.absolute))}[Ic](){this[kc](st.openSync(this.absolute,"r"))}[bs](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=st.readSync(r,i,n,s,o);this[Lc](a),e=!1}finally{if(e)try{this[Wt](()=>{})}catch{}}}[Nc](e){e()}[Wt](e){st.closeSync(this.fd),e()}},RO=Ay(class extends wy{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=nt(e.path),this.mode=this[xs](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=nt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Ty(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new vy({path:this[ot](this.path),linkpath:this.type==="Link"?this[ot](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new xy({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[ot](this.path),linkpath:this.type==="Link"?this[ot](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[ot](e){return Ry(e,this.prefix)}[xs](e){return Oy(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});vs.Sync=Dc;vs.Tar=RO;var AO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Cy.exports=vs});var Py=d((QI,Ly)=>{"use strict";Ly.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Mc=d((JI,Iy)=>{"use strict";Iy.exports=H;H.Node=mr;H.create=H;function H(t){var e=this;if(e instanceof H||(e=new H),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}H.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};H.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};H.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};H.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)OO(this,arguments[t]);return this.length};H.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)CO(this,arguments[t]);return this.length};H.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};H.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};H.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};H.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};H.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};H.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};H.prototype.map=function(t,e){e=e||this;for(var r=new H,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};H.prototype.mapReverse=function(t,e){e=e||this;for(var r=new H,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};H.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};H.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};H.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};H.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};H.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new H;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};H.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new H;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};H.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=TO(this,n,r[i]);return s};H.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function TO(t,e,r){var i=e===t.head?new mr(r,null,e,t):new mr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function OO(t,e){t.tail=new mr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function CO(t,e){t.head=new mr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function mr(t,e,r,i){if(!(this instanceof mr))return new mr(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Py()(H)}catch{}});var ks=d((tk,qy)=>{"use strict";var Ps=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},LO=as(),PO=mc(),IO=gs(),Yc=Fc(),kO=Yc.Sync,NO=Yc.Tar,DO=Mc(),ky=Buffer.alloc(1024),Ts=Symbol("onStat"),Rs=Symbol("ended"),at=Symbol("queue"),ii=Symbol("current"),gr=Symbol("process"),As=Symbol("processing"),Ny=Symbol("processJob"),lt=Symbol("jobs"),Bc=Symbol("jobDone"),Os=Symbol("addFSEntry"),Dy=Symbol("addTarEntry"),Uc=Symbol("stat"),Gc=Symbol("readdir"),Cs=Symbol("onreaddir"),Ls=Symbol("pipe"),Fy=Symbol("entry"),qc=Symbol("entryOpt"),jc=Symbol("writeEntryClass"),By=Symbol("write"),Hc=Symbol("ondrain"),Is=require("fs"),My=require("path"),FO=Es(),$c=Jr(),zc=FO(class extends LO{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=$c(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[jc]=Yc,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new PO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Hc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Hc]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[at]=new DO,this[lt]=0,this.jobs=+e.jobs||4,this[As]=!1,this[Rs]=!1}[By](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Rs]=!0,this[gr](),this}write(e){if(this[Rs])throw new Error("write after end");return e instanceof IO?this[Dy](e):this[Os](e),this.flowing}[Dy](e){let r=$c(My.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ps(e.path,r,!1);i.entry=new NO(e,this[qc](i)),i.entry.on("end",n=>this[Bc](i)),this[lt]+=1,this[at].push(i)}this[gr]()}[Os](e){let r=$c(My.resolve(this.cwd,e));this[at].push(new Ps(e,r)),this[gr]()}[Uc](e){e.pending=!0,this[lt]+=1;let r=this.follow?"stat":"lstat";Is[r](e.absolute,(i,n)=>{e.pending=!1,this[lt]-=1,i?this.emit("error",i):this[Ts](e,n)})}[Ts](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[gr]()}[Gc](e){e.pending=!0,this[lt]+=1,Is.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[lt]-=1,r)return this.emit("error",r);this[Cs](e,i)})}[Cs](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[gr]()}[gr](){if(!this[As]){this[As]=!0;for(let e=this[at].head;e!==null&&this[lt]<this.jobs;e=e.next)if(this[Ny](e.value),e.value.ignore){let r=e.next;this[at].removeNode(e),e.next=r}this[As]=!1,this[Rs]&&!this[at].length&&this[lt]===0&&(this.zip?this.zip.end(ky):(super.write(ky),super.end()))}}get[ii](){return this[at]&&this[at].head&&this[at].head.value}[Bc](e){this[at].shift(),this[lt]-=1,this[gr]()}[Ny](e){if(!e.pending){if(e.entry){e===this[ii]&&!e.piped&&this[Ls](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ts](e,this.statCache.get(e.absolute)):this[Uc](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Cs](e,this.readdirCache.get(e.absolute)):this[Gc](e),!e.readdir))){if(e.entry=this[Fy](e),!e.entry){e.ignore=!0;return}e===this[ii]&&!e.piped&&this[Ls](e)}}}[qc](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[Fy](e){this[lt]+=1;try{return new this[jc](e.path,this[qc](e)).on("end",()=>this[Bc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Hc](){this[ii]&&this[ii].entry&&this[ii].entry.resume()}[Ls](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Os](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Wc=class extends zc{constructor(e){super(e),this[jc]=kO}pause(){}resume(){}[Uc](e){let r=this.follow?"statSync":"lstatSync";this[Ts](e,Is[r](e.absolute))}[Gc](e,r){this[Cs](e,Is.readdirSync(e.absolute))}[Ls](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Os](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[By](n)})}};zc.Sync=Wc;qy.exports=zc});var hi=d(Yi=>{"use strict";var MO=Jl(),BO=require("events").EventEmitter,Oe=require("fs"),Xc=Oe.writev;if(!Xc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Xc=(r,i,n,s)=>{let o=(l,c)=>s(l,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var ci=Symbol("_autoClose"),ze=Symbol("_close"),Wi=Symbol("_ended"),j=Symbol("_fd"),Hy=Symbol("_finished"),zt=Symbol("_flags"),Kc=Symbol("_flush"),Zc=Symbol("_handleChunk"),Qc=Symbol("_makeBuf"),Bs=Symbol("_mode"),Ns=Symbol("_needDrain"),ai=Symbol("_onerror"),ui=Symbol("_onopen"),Vc=Symbol("_onread"),si=Symbol("_onwrite"),Kt=Symbol("_open"),At=Symbol("_path"),yr=Symbol("_pos"),ct=Symbol("_queue"),oi=Symbol("_read"),$y=Symbol("_readSize"),Yt=Symbol("_reading"),Ds=Symbol("_remain"),Uy=Symbol("_size"),Fs=Symbol("_write"),ni=Symbol("_writing"),Ms=Symbol("_defaultFlag"),li=Symbol("_errored"),qs=class extends MO{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[li]=!1,this[j]=typeof r.fd=="number"?r.fd:null,this[At]=e,this[$y]=r.readSize||16*1024*1024,this[Yt]=!1,this[Uy]=typeof r.size=="number"?r.size:1/0,this[Ds]=this[Uy],this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[j]=="number"?this[oi]():this[Kt]()}get fd(){return this[j]}get path(){return this[At]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Kt](){Oe.open(this[At],"r",(e,r)=>this[ui](e,r))}[ui](e,r){e?this[ai](e):(this[j]=r,this.emit("open",r),this[oi]())}[Qc](){return Buffer.allocUnsafe(Math.min(this[$y],this[Ds]))}[oi](){if(!this[Yt]){this[Yt]=!0;let e=this[Qc]();if(e.length===0)return process.nextTick(()=>this[Vc](null,0,e));Oe.read(this[j],e,0,e.length,null,(r,i,n)=>this[Vc](r,i,n))}}[Vc](e,r,i){this[Yt]=!1,e?this[ai](e):this[Zc](r,i)&&this[oi]()}[ze](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Oe.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ai](e){this[Yt]=!0,this[ze](),this.emit("error",e)}[Zc](e,r){let i=!1;return this[Ds]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[Ds]<=0)&&(i=!1,this[ze](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[j]=="number"&&this[oi]();break;case"error":return this[li]?void 0:(this[li]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Jc=class extends qs{[Kt](){let e=!0;try{this[ui](null,Oe.openSync(this[At],"r")),e=!1}finally{e&&this[ze]()}}[oi](){let e=!0;try{if(!this[Yt]){this[Yt]=!0;do{let r=this[Qc](),i=r.length===0?0:Oe.readSync(this[j],r,0,r.length,null);if(!this[Zc](i,r))break}while(!0);this[Yt]=!1}e=!1}finally{e&&this[ze]()}}[ze](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Oe.closeSync(e),this.emit("close")}}},Hs=class extends BO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[li]=!1,this[ni]=!1,this[Wi]=!1,this[Ns]=!1,this[ct]=[],this[At]=e,this[j]=typeof r.fd=="number"?r.fd:null,this[Bs]=r.mode===void 0?438:r.mode,this[yr]=typeof r.start=="number"?r.start:null,this[ci]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[yr]!==null?"r+":"w";this[Ms]=r.flags===void 0,this[zt]=this[Ms]?i:r.flags,this[j]===null&&this[Kt]()}emit(e,r){if(e==="error"){if(this[li])return;this[li]=!0}return super.emit(e,r)}get fd(){return this[j]}get path(){return this[At]}[ai](e){this[ze](),this[ni]=!0,this.emit("error",e)}[Kt](){Oe.open(this[At],this[zt],this[Bs],(e,r)=>this[ui](e,r))}[ui](e,r){this[Ms]&&this[zt]==="r+"&&e&&e.code==="ENOENT"?(this[zt]="w",this[Kt]()):e?this[ai](e):(this[j]=r,this.emit("open",r),this[Kc]())}end(e,r){return e&&this.write(e,r),this[Wi]=!0,!this[ni]&&!this[ct].length&&typeof this[j]=="number"&&this[si](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Wi]?(this.emit("error",new Error("write() after end()")),!1):this[j]===null||this[ni]||this[ct].length?(this[ct].push(e),this[Ns]=!0,!1):(this[ni]=!0,this[Fs](e),!0)}[Fs](e){Oe.write(this[j],e,0,e.length,this[yr],(r,i)=>this[si](r,i))}[si](e,r){e?this[ai](e):(this[yr]!==null&&(this[yr]+=r),this[ct].length?this[Kc]():(this[ni]=!1,this[Wi]&&!this[Hy]?(this[Hy]=!0,this[ze](),this.emit("finish")):this[Ns]&&(this[Ns]=!1,this.emit("drain"))))}[Kc](){if(this[ct].length===0)this[Wi]&&this[si](null,0);else if(this[ct].length===1)this[Fs](this[ct].pop());else{let e=this[ct];this[ct]=[],Xc(this[j],e,this[yr],(r,i)=>this[si](r,i))}}[ze](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Oe.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},eu=class extends Hs{[Kt](){let e;if(this[Ms]&&this[zt]==="r+")try{e=Oe.openSync(this[At],this[zt],this[Bs])}catch(r){if(r.code==="ENOENT")return this[zt]="w",this[Kt]();throw r}else e=Oe.openSync(this[At],this[zt],this[Bs]);this[ui](null,e)}[ze](){if(this[ci]&&typeof this[j]=="number"){let e=this[j];this[j]=null,Oe.closeSync(e),this.emit("close")}}[Fs](e){let r=!0;try{this[si](null,Oe.writeSync(this[j],e,0,e.length,this[yr])),r=!1}finally{if(r)try{this[ze]()}catch{}}}};Yi.ReadStream=qs;Yi.ReadStreamSync=Jc;Yi.WriteStream=Hs;Yi.WriteStreamSync=eu});var zs=d((nk,Xy)=>{"use strict";var qO=Es(),HO=ti(),$O=require("events"),UO=Mc(),GO=1024*1024,jO=gs(),Gy=_s(),WO=mc(),{nextTick:YO}=require("process"),tu=Buffer.from([31,139]),$e=Symbol("state"),_r=Symbol("writeEntry"),Tt=Symbol("readEntry"),ru=Symbol("nextEntry"),jy=Symbol("processEntry"),Ue=Symbol("extendedHeader"),zi=Symbol("globalExtendedHeader"),Vt=Symbol("meta"),Wy=Symbol("emitMeta"),V=Symbol("buffer"),Ot=Symbol("queue"),Er=Symbol("ended"),Yy=Symbol("emittedEnd"),Sr=Symbol("emit"),Ce=Symbol("unzip"),$s=Symbol("consumeChunk"),Us=Symbol("consumeChunkSub"),iu=Symbol("consumeBody"),zy=Symbol("consumeMeta"),Ky=Symbol("consumeHeader"),Gs=Symbol("consuming"),nu=Symbol("bufferConcat"),su=Symbol("maybeEnd"),Ki=Symbol("writing"),Xt=Symbol("aborted"),js=Symbol("onDone"),br=Symbol("sawValidEntry"),Ws=Symbol("sawNullBlock"),Ys=Symbol("sawEOF"),Vy=Symbol("closeStream"),zO=t=>!0;Xy.exports=qO(class extends $O{constructor(e){e=e||{},super(e),this.file=e.file||"",this[br]=null,this.on(js,r=>{(this[$e]==="begin"||this[br]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(js,e.ondone):this.on(js,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||GO,this.filter=typeof e.filter=="function"?e.filter:zO,this.writable=!0,this.readable=!1,this[Ot]=new UO,this[V]=null,this[Tt]=null,this[_r]=null,this[$e]="begin",this[Vt]="",this[Ue]=null,this[zi]=null,this[Er]=!1,this[Ce]=null,this[Xt]=!1,this[Ws]=!1,this[Ys]=!1,this.on("end",()=>this[Vy]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Ky](e,r){this[br]===null&&(this[br]=!1);let i;try{i=new HO(e,r,this[Ue],this[zi])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Ws]?(this[Ys]=!0,this[$e]==="begin"&&(this[$e]="header"),this[Sr]("eof")):(this[Ws]=!0,this[Sr]("nullBlock"));else if(this[Ws]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[_r]=new jO(i,this[Ue],this[zi]);if(!this[br])if(s.remain){let o=()=>{s.invalid||(this[br]=!0)};s.on("end",o)}else this[br]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Sr]("ignoredEntry",s),this[$e]="ignore",s.resume()):s.size>0&&(this[Vt]="",s.on("data",o=>this[Vt]+=o),this[$e]="meta"):(this[Ue]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Sr]("ignoredEntry",s),this[$e]=s.remain?"ignore":"header",s.resume()):(s.remain?this[$e]="body":(this[$e]="header",s.end()),this[Tt]?this[Ot].push(s):(this[Ot].push(s),this[ru]())))}}}[Vy](){YO(()=>this.emit("close"))}[jy](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Tt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[ru]()),r=!1)):(this[Tt]=null,r=!1),r}[ru](){do;while(this[jy](this[Ot].shift()));if(!this[Ot].length){let e=this[Tt];!e||e.flowing||e.size===e.remain?this[Ki]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[iu](e,r){let i=this[_r],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[$e]="header",this[_r]=null,i.end()),s.length}[zy](e,r){let i=this[_r],n=this[iu](e,r);return this[_r]||this[Wy](i),n}[Sr](e,r,i){!this[Ot].length&&!this[Tt]?this.emit(e,r,i):this[Ot].push([e,r,i])}[Wy](e){switch(this[Sr]("meta",this[Vt]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Ue]=Gy.parse(this[Vt],this[Ue],!1);break;case"GlobalExtendedHeader":this[zi]=Gy.parse(this[Vt],this[zi],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Ue]=this[Ue]||Object.create(null),this[Ue].path=this[Vt].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Ue]=this[Ue]||Object.create(null),this[Ue].linkpath=this[Vt].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Xt]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Xt])return;if(this[Ce]===null&&e){if(this[V]&&(e=Buffer.concat([this[V],e]),this[V]=null),e.length<tu.length)return this[V]=e,!0;for(let i=0;this[Ce]===null&&i<tu.length;i++)e[i]!==tu[i]&&(this[Ce]=!1);if(this[Ce]===null){let i=this[Er];this[Er]=!1,this[Ce]=new WO.Unzip,this[Ce].on("data",s=>this[$s](s)),this[Ce].on("error",s=>this.abort(s)),this[Ce].on("end",s=>{this[Er]=!0,this[$s]()}),this[Ki]=!0;let n=this[Ce][i?"end":"write"](e);return this[Ki]=!1,n}}this[Ki]=!0,this[Ce]?this[Ce].write(e):this[$s](e),this[Ki]=!1;let r=this[Ot].length?!1:this[Tt]?this[Tt].flowing:!0;return!r&&!this[Ot].length&&this[Tt].once("drain",i=>this.emit("drain")),r}[nu](e){e&&!this[Xt]&&(this[V]=this[V]?Buffer.concat([this[V],e]):e)}[su](){if(this[Er]&&!this[Yy]&&!this[Xt]&&!this[Gs]){this[Yy]=!0;let e=this[_r];if(e&&e.blockRemain){let r=this[V]?this[V].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[V]&&e.write(this[V]),e.end()}this[Sr](js)}}[$s](e){if(this[Gs])this[nu](e);else if(!e&&!this[V])this[su]();else{if(this[Gs]=!0,this[V]){this[nu](e);let r=this[V];this[V]=null,this[Us](r)}else this[Us](e);for(;this[V]&&this[V].length>=512&&!this[Xt]&&!this[Ys];){let r=this[V];this[V]=null,this[Us](r)}this[Gs]=!1}(!this[V]||this[Er])&&this[su]()}[Us](e){let r=0,i=e.length;for(;r+512<=i&&!this[Xt]&&!this[Ys];)switch(this[$e]){case"begin":case"header":this[Ky](e,r),r+=512;break;case"ignore":case"body":r+=this[iu](e,r);break;case"meta":r+=this[zy](e,r);break;default:throw new Error("invalid state: "+this[$e])}r<i&&(this[V]?this[V]=Buffer.concat([e.slice(r),this[V]]):this[V]=e.slice(r))}end(e){this[Xt]||(this[Ce]?this[Ce].end(e):(this[Er]=!0,this.write(e)))}})});var Ks=d((sk,e_)=>{"use strict";var KO=Kr(),Qy=zs(),fi=require("fs"),VO=hi(),Zy=require("path"),ou=ri();e_.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=KO(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&ZO(i,e),i.noResume||XO(i),i.file&&i.sync?QO(i):i.file?JO(i,r):Jy(i)};var XO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},ZO=(t,e)=>{let r=new Map(e.map(s=>[ou(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Zy.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(Zy.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(ou(s)):s=>n(ou(s))},QO=t=>{let e=Jy(t),r=t.file,i=!0,n;try{let s=fi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(fi.readFileSync(r));else{let a=0,l=Buffer.allocUnsafe(o);for(n=fi.openSync(r,"r");a<s.size;){let c=fi.readSync(n,l,0,o,a);a+=c,e.write(l.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{fi.closeSync(n)}catch{}}},JO=(t,e)=>{let r=new Qy(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),fi.stat(n,(l,c)=>{if(l)a(l);else{let u=new VO.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},Jy=t=>new Qy(t)});var o_=d((ok,s_)=>{"use strict";var eC=Kr(),Vs=ks(),t_=hi(),r_=Ks(),i_=require("path");s_.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=eC(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?tC(i,e):i.file?rC(i,e,r):i.sync?iC(i,e):nC(i,e)};var tC=(t,e)=>{let r=new Vs.Sync(t),i=new t_.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),n_(r,e)},rC=(t,e,r)=>{let i=new Vs(t),n=new t_.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return au(i,e),r?s.then(r,r):s},n_=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?r_({file:i_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},au=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return r_({file:i_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>au(t,e));t.add(r)}t.end()},iC=(t,e)=>{let r=new Vs.Sync(t);return n_(r,e),r},nC=(t,e)=>{let r=new Vs(t);return au(r,e),r}});var lu=d((ak,p_)=>{"use strict";var sC=Kr(),a_=ks(),Ne=require("fs"),l_=hi(),c_=Ks(),u_=require("path"),h_=ti();p_.exports=(t,e,r)=>{let i=sC(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?oC(i,e):lC(i,e,r)};var oC=(t,e)=>{let r=new a_.Sync(t),i=!0,n,s;try{try{n=Ne.openSync(t.file,"r+")}catch(l){if(l.code==="ENOENT")n=Ne.openSync(t.file,"w+");else throw l}let o=Ne.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let u=0,h=0;u<512;u+=h){if(h=Ne.readSync(n,a,u,a.length-u,s+u),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let l=new h_(a);if(!l.cksumValid)break;let c=512*Math.ceil(l.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(l.path,l.mtime)}i=!1,aC(t,r,s,n,e)}finally{if(i)try{Ne.closeSync(n)}catch{}}},aC=(t,e,r,i,n)=>{let s=new l_.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),cC(e,n)},lC=(t,e,r)=>{e=Array.from(e);let i=new a_(t),n=(o,a,l)=>{let c=(m,y)=>{m?Ne.close(o,w=>l(m)):l(null,y)},u=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),g=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return Ne.read(o,f,h,f.length-h,u+h,g);if(u===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,u);let w=new h_(f);if(!w.cksumValid)return c(null,u);let x=512*Math.ceil(w.size/512);if(u+x+512>a||(u+=x+512,u>=a))return c(null,u);t.mtimeCache&&t.mtimeCache.set(w.path,w.mtime),h=0,Ne.read(o,f,0,512,u,g)};Ne.read(o,f,0,512,u,g)},s=new Promise((o,a)=>{i.on("error",a);let l="r+",c=(u,h)=>{if(u&&u.code==="ENOENT"&&l==="r+")return l="w+",Ne.open(t.file,l,c);if(u)return a(u);Ne.fstat(h,(f,g)=>{if(f)return Ne.close(h,()=>a(f));n(h,g.size,(m,y)=>{if(m)return a(m);let w=new l_.WriteStream(t.file,{fd:h,start:y});i.pipe(w),w.on("error",a),w.on("close",o),f_(i,e)})})};Ne.open(t.file,l,c)});return r?s.then(r,r):s},cC=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?c_({file:u_.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},f_=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return c_({file:u_.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>f_(t,e));t.add(r)}t.end()}});var m_=d((lk,d_)=>{"use strict";var uC=Kr(),hC=lu();d_.exports=(t,e,r)=>{let i=uC(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),fC(i),hC(i,e,r)};var fC=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var __=d((ck,y_)=>{var{promisify:g_}=require("util"),Zt=require("fs"),pC=t=>{if(!t)t={mode:511,fs:Zt};else if(typeof t=="object")t={mode:511,fs:Zt,...t};else if(typeof t=="number")t={mode:t,fs:Zt};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Zt};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Zt.mkdir,t.mkdirAsync=g_(t.mkdir),t.stat=t.stat||t.fs.stat||Zt.stat,t.statAsync=g_(t.stat),t.statSync=t.statSync||t.fs.statSync||Zt.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zt.mkdirSync,t};y_.exports=pC});var S_=d((uk,E_)=>{var dC=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:mC,parse:gC}=require("path"),yC=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=mC(t),dC==="win32"){let e=/[*|"<>?:]/,{root:r}=gC(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};E_.exports=yC});var R_=d((hk,v_)=>{var{dirname:b_}=require("path"),w_=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?w_(t,b_(e),e):void 0),x_=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?x_(t,b_(e),e):void 0}};v_.exports={findMade:w_,findMadeSync:x_}});var hu=d((fk,T_)=>{var{dirname:A_}=require("path"),cu=(t,e,r)=>{e.recursive=!1;let i=A_(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return cu(i,e).then(s=>cu(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},uu=(t,e,r)=>{let i=A_(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return uu(t,e,uu(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};T_.exports={mkdirpManual:cu,mkdirpManualSync:uu}});var L_=d((pk,C_)=>{var{dirname:O_}=require("path"),{findMade:_C,findMadeSync:EC}=R_(),{mkdirpManual:SC,mkdirpManualSync:bC}=hu(),wC=(t,e)=>(e.recursive=!0,O_(t)===t?e.mkdirAsync(t,e):_C(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return SC(t,e);throw n}))),xC=(t,e)=>{if(e.recursive=!0,O_(t)===t)return e.mkdirSync(t,e);let i=EC(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return bC(t,e);throw n}};C_.exports={mkdirpNative:wC,mkdirpNativeSync:xC}});var N_=d((dk,k_)=>{var P_=require("fs"),vC=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,fu=vC.replace(/^v/,"").split("."),I_=+fu[0]>10||+fu[0]==10&&+fu[1]>=12,RC=I_?t=>t.mkdir===P_.mkdir:()=>!1,AC=I_?t=>t.mkdirSync===P_.mkdirSync:()=>!1;k_.exports={useNative:RC,useNativeSync:AC}});var H_=d((mk,q_)=>{var pi=__(),di=S_(),{mkdirpNative:D_,mkdirpNativeSync:F_}=L_(),{mkdirpManual:M_,mkdirpManualSync:B_}=hu(),{useNative:TC,useNativeSync:OC}=N_(),mi=(t,e)=>(t=di(t),e=pi(e),TC(e)?D_(t,e):M_(t,e)),CC=(t,e)=>(t=di(t),e=pi(e),OC(e)?F_(t,e):B_(t,e));mi.sync=CC;mi.native=(t,e)=>D_(di(t),pi(e));mi.manual=(t,e)=>M_(di(t),pi(e));mi.nativeSync=(t,e)=>F_(di(t),pi(e));mi.manualSync=(t,e)=>B_(di(t),pi(e));q_.exports=mi});var z_=d((gk,Y_)=>{"use strict";var Ge=require("fs"),wr=require("path"),LC=Ge.lchown?"lchown":"chown",PC=Ge.lchownSync?"lchownSync":"chownSync",U_=Ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),$_=(t,e,r)=>{try{return Ge[PC](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},IC=(t,e,r)=>{try{return Ge.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},kC=U_?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ge.chown(t,e,r,i)}:(t,e,r,i)=>i,pu=U_?(t,e,r)=>{try{return $_(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;IC(t,e,r)}}:(t,e,r)=>$_(t,e,r),NC=process.version,G_=(t,e,r)=>Ge.readdir(t,e,r),DC=(t,e)=>Ge.readdirSync(t,e);/^v4\./.test(NC)&&(G_=(t,e,r)=>Ge.readdir(t,r));var Xs=(t,e,r,i)=>{Ge[LC](t,e,r,kC(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},j_=(t,e,r,i,n)=>{if(typeof e=="string")return Ge.lstat(wr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,j_(t,o,r,i,n)});if(e.isDirectory())du(wr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=wr.resolve(t,e.name);Xs(o,r,i,n)});else{let s=wr.resolve(t,e.name);Xs(s,r,i,n)}},du=(t,e,r,i)=>{G_(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Xs(t,e,r,i);let o=s.length,a=null,l=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Xs(t,e,r,i)}};s.forEach(c=>j_(t,c,e,r,l))})},FC=(t,e,r,i)=>{if(typeof e=="string")try{let n=Ge.lstatSync(wr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&W_(wr.resolve(t,e.name),r,i),pu(wr.resolve(t,e.name),r,i)},W_=(t,e,r)=>{let i;try{i=DC(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return pu(t,e,r);throw n}return i&&i.length&&i.forEach(n=>FC(t,n,e,r)),pu(t,e,r)};Y_.exports=du;du.sync=W_});var Z_=d((yk,mu)=>{"use strict";var K_=H_(),je=require("fs"),Zs=require("path"),V_=z_(),Ke=Jr(),Qs=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Js=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},eo=(t,e)=>t.get(Ke(e)),Vi=(t,e,r)=>t.set(Ke(e),r),MC=(t,e)=>{je.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Js(t,r&&r.code||"ENOTDIR")),e(r)})};mu.exports=(t,e,r)=>{t=Ke(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,l=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,u=e.unlink,h=e.cache,f=Ke(e.cwd),g=(w,x)=>{w?r(w):(Vi(h,t,!0),x&&l?V_(x,o,a,R=>g(R)):s?je.chmod(t,n,r):r())};if(h&&eo(h,t)===!0)return g();if(t===f)return MC(t,g);if(c)return K_(t,{mode:n}).then(w=>g(null,w),g);let y=Ke(Zs.relative(f,t)).split("/");to(f,y,n,h,u,f,null,g)};var to=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let l=e.shift(),c=Ke(Zs.resolve(t+"/"+l));if(eo(i,c))return to(c,e,r,i,n,s,o,a);je.mkdir(c,r,X_(c,e,r,i,n,s,o,a))},X_=(t,e,r,i,n,s,o,a)=>l=>{l?je.lstat(t,(c,u)=>{if(c)c.path=c.path&&Ke(c.path),a(c);else if(u.isDirectory())to(t,e,r,i,n,s,o,a);else if(n)je.unlink(t,h=>{if(h)return a(h);je.mkdir(t,r,X_(t,e,r,i,n,s,o,a))});else{if(u.isSymbolicLink())return a(new Qs(t,t+"/"+e.join("/")));a(l)}}):(o=o||t,to(t,e,r,i,n,s,o,a))},BC=t=>{let e=!1,r="ENOTDIR";try{e=je.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Js(t,r)}};mu.exports.sync=(t,e)=>{t=Ke(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),l=e.preserve,c=e.unlink,u=e.cache,h=Ke(e.cwd),f=w=>{Vi(u,t,!0),w&&a&&V_.sync(w,s,o),n&&je.chmodSync(t,i)};if(u&&eo(u,t)===!0)return f();if(t===h)return BC(h),f();if(l)return f(K_.sync(t,i));let m=Ke(Zs.relative(h,t)).split("/"),y=null;for(let w=m.shift(),x=h;w&&(x+="/"+w);w=m.shift())if(x=Ke(Zs.resolve(x)),!eo(u,x))try{je.mkdirSync(x,i),y=y||x,Vi(u,x,!0)}catch{let M=je.lstatSync(x);if(M.isDirectory()){Vi(u,x,!0);continue}else if(c){je.unlinkSync(x),je.mkdirSync(x,i),y=y||x,Vi(u,x,!0);continue}else if(M.isSymbolicLink())return new Qs(x,x+"/"+m.join("/"))}return f(y)}});var yu=d((_k,Q_)=>{var gu=Object.create(null),{hasOwnProperty:qC}=Object.prototype;Q_.exports=t=>(qC.call(gu,t)||(gu[t]=t.normalize("NFKD")),gu[t])});var rE=d((Ek,tE)=>{var J_=require("assert"),HC=yu(),$C=ri(),{join:eE}=require("path"),UC=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,GC=UC==="win32";tE.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=eE(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let u=e.get(c);if(!u)throw new Error("function does not have any path reservations");return{paths:u.paths.map(h=>t.get(h)),dirs:[...u.dirs].map(h=>t.get(h))}},s=c=>{let{paths:u,dirs:h}=n(c);return u.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:u,dirs:h}=e.get(c),f=new Set;return u.forEach(g=>{let m=t.get(g);J_.equal(m[0],c),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(g=>{let m=t.get(g);J_(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(g=>o(g)),!0};return{check:s,reserve:(c,u)=>{c=GC?["win32 parallelization disabled"]:c.map(f=>HC($C(eE(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,g)=>f.concat(g)));return e.set(u,{dirs:h,paths:c}),c.forEach(f=>{let g=t.get(f);g?g.push(u):t.set(f,[u])}),h.forEach(f=>{let g=t.get(f);g?g[g.length-1]instanceof Set?g[g.length-1].add(u):g.push(new Set([u])):t.set(f,[new Set([u])])}),o(u)}}}});var sE=d((Sk,nE)=>{var jC=process.env.__FAKE_PLATFORM__||process.platform,WC=jC==="win32",YC=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:zC,O_TRUNC:KC,O_WRONLY:VC,UV_FS_O_FILEMAP:iE=0}=YC.constants,XC=WC&&!!iE,ZC=512*1024,QC=iE|KC|zC|VC;nE.exports=XC?t=>t<ZC?QC:"w":()=>"w"});var Au=d((bk,EE)=>{"use strict";var JC=require("assert"),e1=zs(),$=require("fs"),t1=hi(),Ct=require("path"),gE=Z_(),oE=Rc(),r1=rE(),i1=Ac(),De=Jr(),n1=ri(),s1=yu(),aE=Symbol("onEntry"),Su=Symbol("checkFs"),lE=Symbol("checkFs2"),no=Symbol("pruneCache"),bu=Symbol("isReusable"),We=Symbol("makeFs"),wu=Symbol("file"),xu=Symbol("directory"),so=Symbol("link"),cE=Symbol("symlink"),uE=Symbol("hardlink"),hE=Symbol("unsupported"),fE=Symbol("checkPath"),Qt=Symbol("mkdir"),Se=Symbol("onError"),ro=Symbol("pending"),pE=Symbol("pend"),gi=Symbol("unpend"),_u=Symbol("ended"),Eu=Symbol("maybeClose"),vu=Symbol("skip"),Xi=Symbol("doChown"),Zi=Symbol("uid"),Qi=Symbol("gid"),Ji=Symbol("checkedCwd"),yE=require("crypto"),_E=sE(),o1=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,en=o1==="win32",a1=(t,e)=>{if(!en)return $.unlink(t,e);let r=t+".DELETE."+yE.randomBytes(16).toString("hex");$.rename(t,r,i=>{if(i)return e(i);$.unlink(r,e)})},l1=t=>{if(!en)return $.unlinkSync(t);let e=t+".DELETE."+yE.randomBytes(16).toString("hex");$.renameSync(t,e),$.unlinkSync(e)},dE=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,mE=t=>s1(n1(De(t))).toLowerCase(),c1=(t,e)=>{e=mE(e);for(let r of t.keys()){let i=mE(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},u1=t=>{for(let e of t.keys())t.delete(e)},tn=class extends e1{constructor(e){if(e||(e={}),e.ondone=r=>{this[_u]=!0,this[Eu]()},super(e),this[Ji]=!1,this.reservations=r1(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ro]=0,this[_u]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||en,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=De(Ct.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[aE](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Eu](){this[_u]&&this[ro]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[fE](e){if(this.strip){let r=De(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=De(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=De(e.path),i=r.split("/");if(i.includes("..")||en&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=i1(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Ct.isAbsolute(e.path)?e.absolute=De(Ct.resolve(e.path)):e.absolute=De(Ct.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:De(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Ct.win32.parse(e.absolute);e.absolute=r+oE.encode(e.absolute.slice(r.length));let{root:i}=Ct.win32.parse(e.path);e.path=i+oE.encode(e.path.slice(i.length))}return!0}[aE](e){if(!this[fE](e))return e.resume();switch(JC.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Su](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[hE](e)}}[Se](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[gi](),r.resume())}[Qt](e,r,i){gE(De(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[Xi](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Zi](e){return dE(this.uid,e.uid,this.processUid)}[Qi](e){return dE(this.gid,e.gid,this.processGid)}[wu](e,r){let i=e.mode&4095||this.fmode,n=new t1.WriteStream(e.absolute,{flags:_E(e.size),mode:i,autoClose:!1});n.on("error",l=>{n.fd&&$.close(n.fd,()=>{}),n.write=()=>!0,this[Se](l,e),r()});let s=1,o=l=>{if(l){n.fd&&$.close(n.fd,()=>{}),this[Se](l,e),r();return}--s===0&&$.close(n.fd,c=>{c?this[Se](c,e):this[gi](),r()})};n.on("finish",l=>{let c=e.absolute,u=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;$.futimes(u,h,f,g=>g?$.utimes(c,h,f,m=>o(m&&g)):o())}if(this[Xi](e)){s++;let h=this[Zi](e),f=this[Qi](e);$.fchown(u,h,f,g=>g?$.chown(c,h,f,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>{this[Se](l,e),r()}),e.pipe(a)),a.pipe(n)}[xu](e,r){let i=e.mode&4095||this.dmode;this[Qt](e.absolute,i,n=>{if(n){this[Se](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[gi](),e.resume())};e.mtime&&!this.noMtime&&(s++,$.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Xi](e)&&(s++,$.chown(e.absolute,this[Zi](e),this[Qi](e),o)),o()})}[hE](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[cE](e,r){this[so](e,e.linkpath,"symlink",r)}[uE](e,r){let i=De(Ct.resolve(this.cwd,e.linkpath));this[so](e,i,"link",r)}[pE](){this[ro]++}[gi](){this[ro]--,this[Eu]()}[vu](e){this[gi](),e.resume()}[bu](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!en}[Su](e){this[pE]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[lE](e,i))}[no](e){e.type==="SymbolicLink"?u1(this.dirCache):e.type!=="Directory"&&c1(this.dirCache,e.absolute)}[lE](e,r){this[no](e);let i=a=>{this[no](e),r(a)},n=()=>{this[Qt](this.cwd,this.dmode,a=>{if(a){this[Se](a,e),i();return}this[Ji]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=De(Ct.dirname(e.absolute));if(a!==this.cwd)return this[Qt](a,this.dmode,l=>{if(l){this[Se](l,e),i();return}o()})}o()},o=()=>{$.lstat(e.absolute,(a,l)=>{if(l&&(this.keep||this.newer&&l.mtime>e.mtime)){this[vu](e),i();return}if(a||this[bu](e,l))return this[We](null,e,i);if(l.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(l.mode&4095)!==e.mode,u=h=>this[We](h,e,i);return c?$.chmod(e.absolute,e.mode,u):u()}if(e.absolute!==this.cwd)return $.rmdir(e.absolute,c=>this[We](c,e,i))}if(e.absolute===this.cwd)return this[We](null,e,i);a1(e.absolute,c=>this[We](c,e,i))})};this[Ji]?s():n()}[We](e,r,i){if(e){this[Se](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[wu](r,i);case"Link":return this[uE](r,i);case"SymbolicLink":return this[cE](r,i);case"Directory":case"GNUDumpDir":return this[xu](r,i)}}[so](e,r,i,n){$[i](r,e.absolute,s=>{s?this[Se](s,e):(this[gi](),e.resume()),n()})}},io=t=>{try{return[null,t()]}catch(e){return[e,null]}},Ru=class extends tn{[We](e,r){return super[We](e,r,()=>{})}[Su](e){if(this[no](e),!this[Ji]){let s=this[Qt](this.cwd,this.dmode);if(s)return this[Se](s,e);this[Ji]=!0}if(e.absolute!==this.cwd){let s=De(Ct.dirname(e.absolute));if(s!==this.cwd){let o=this[Qt](s,this.dmode);if(o)return this[Se](o,e)}}let[r,i]=io(()=>$.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[vu](e);if(r||this[bu](e,i))return this[We](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?io(()=>{$.chmodSync(e.absolute,e.mode)}):[];return this[We](a,e)}let[s]=io(()=>$.rmdirSync(e.absolute));this[We](s,e)}let[n]=e.absolute===this.cwd?[]:io(()=>l1(e.absolute));this[We](n,e)}[wu](e,r){let i=e.mode&4095||this.fmode,n=a=>{let l;try{$.closeSync(s)}catch(c){l=c}(a||l)&&this[Se](a||l,e),r()},s;try{s=$.openSync(e.absolute,_E(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Se](a,e)),e.pipe(o)),o.on("data",a=>{try{$.writeSync(s,a,0,a.length)}catch(l){n(l)}}),o.on("end",a=>{let l=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,u=e.mtime;try{$.futimesSync(s,c,u)}catch(h){try{$.utimesSync(e.absolute,c,u)}catch{l=h}}}if(this[Xi](e)){let c=this[Zi](e),u=this[Qi](e);try{$.fchownSync(s,c,u)}catch(h){try{$.chownSync(e.absolute,c,u)}catch{l=l||h}}}n(l)})}[xu](e,r){let i=e.mode&4095||this.dmode,n=this[Qt](e.absolute,i);if(n){this[Se](n,e),r();return}if(e.mtime&&!this.noMtime)try{$.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Xi](e))try{$.chownSync(e.absolute,this[Zi](e),this[Qi](e))}catch{}r(),e.resume()}[Qt](e,r){try{return gE.sync(De(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[so](e,r,i,n){try{$[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Se](s,e)}}};tn.Sync=Ru;EE.exports=tn});var vE=d((wk,xE)=>{"use strict";var h1=Kr(),oo=Au(),bE=require("fs"),wE=hi(),SE=require("path"),Tu=ri();xE.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=h1(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&f1(i,e),i.file&&i.sync?p1(i):i.file?d1(i,r):i.sync?m1(i):g1(i)};var f1=(t,e)=>{let r=new Map(e.map(s=>[Tu(s),!0])),i=t.filter,n=(s,o)=>{let a=o||SE.parse(s).root||".",l=s===a?!1:r.has(s)?r.get(s):n(SE.dirname(s),a);return r.set(s,l),l};t.filter=i?(s,o)=>i(s,o)&&n(Tu(s)):s=>n(Tu(s))},p1=t=>{let e=new oo.Sync(t),r=t.file,i=bE.statSync(r),n=t.maxReadSize||16*1024*1024;new wE.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},d1=(t,e)=>{let r=new oo(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),bE.stat(n,(l,c)=>{if(l)a(l);else{let u=new wE.ReadStream(n,{readSize:i,size:c.size});u.on("error",a),u.pipe(r)}})});return e?s.then(e,e):s},m1=t=>new oo.Sync(t),g1=t=>new oo(t)});var RE=d(ae=>{"use strict";ae.c=ae.create=o_();ae.r=ae.replace=lu();ae.t=ae.list=Ks();ae.u=ae.update=m_();ae.x=ae.extract=vE();ae.Pack=ks();ae.Unpack=Au();ae.Parse=zs();ae.ReadEntry=gs();ae.WriteEntry=Fc();ae.Header=ti();ae.Pax=_s();ae.types=_c()});var PE=d((Tk,LE)=>{function Ye(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}LE.exports=Ye;Ye.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ye.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ye.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};Ye.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ye.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ye.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ye.prototype.start=Ye.prototype.try;Ye.prototype.errors=function(){return this._errors};Ye.prototype.attempts=function(){return this._attempts};Ye.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var IE=d(xr=>{var S1=PE();xr.operation=function(t){var e=xr.timeouts(t);return new S1(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};xr.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};xr.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};xr.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(l){var c=xr.operation(e),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){l.apply(t,u)})}.bind(t,o),t[s].options=e}}});var NE=d((Ck,kE)=>{kE.exports=IE()});var FE=d((Lk,DE)=>{var b1=NE();function w1(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=b1.operation(s);function a(u){n(u||new Error("Aborted"))}function l(u,h){if(u.bail){a(u);return}o.retry(u)?s.onRetry&&s.onRetry(u,h):n(o.mainError())}function c(u){var h;try{h=t(a,u)}catch(f){l(f,u);return}Promise.resolve(h).then(i).catch(function(g){l(g,u)})}o.attempt(c)}return new Promise(r)}DE.exports=w1});var F1={};Nu(F1,{default:()=>D1,hasLegacyEnvVarDependencies:()=>Pu,migrateConfig:()=>Iu,migrateDependencies:()=>ku,migrateGlobal:()=>jE,migratePipeline:()=>GE,transformer:()=>WE});module.exports=QE(F1);var Lu=U(require("path")),ho=require("fs-extra");var JE=U($u());function mo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _i(t){return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(t)}function go(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yo(t,e){if(e&&(_i(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return go(t)}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},er(t)}function ft(t,e){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ft(t,e)}function _o(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ft(t,e)}function Eo(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function So(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vr(t,e,r){return So()?vr=Reflect.construct.bind():vr=function(n,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(n,a),c=new l;return o&&ft(c,o.prototype),c},vr.apply(null,arguments)}function Ei(t){var e=typeof Map=="function"?new Map:void 0;return Ei=function(i){if(i===null||!Eo(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return vr(i,arguments,er(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ft(n,i)},Ei(t)}var bo=U(require("find-up")),an=U(require("path")),ln=U(require("fs-extra")),eS=function(t){_o(e,t);function e(r){var i;return mo(this,e),i=yo(this,er(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Ei(Error));function tS(t,e){try{var r=ln.default.readJsonSync(an.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(i){if(i.code!=="ENOENT")throw i}}function rS(t){try{var e=ln.default.readJsonSync(an.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function iS(t){var e=ln.default.existsSync(an.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function Uu(t){var e={current:void 0},r=(0,bo.sync)(function(i){return[rS(i),tS(i,e),iS(i)].find(function(n){return n})},{cwd:t,type:"directory"});if(e.current===void 0)throw new eS(t);return r===void 0?e.current:r}var Gu=U(require("json5"));var wo=U(require("fs")),Si=U(require("path"));function xo({target:t,cwd:e,contentCheck:r}){let i=Si.default.parse(e).root,n=!1,s=e;for(;!n&&s!==i;){if(r)try{let o=wo.default.readFileSync(Si.default.join(s,t)).toString();if(r(o)){n=!0;break}}catch{}else if(wo.default.existsSync(Si.default.join(s,t))){n=!0;break}s=Si.default.dirname(s)}return n?s:null}function nS(t){let e=Gu.default.parse(t);return!(e&&"extends"in e)}var vo={};function Ro(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,i=t||process.cwd();if(r&&vo[i])return vo[i];let n=xo({target:"turbo.json",cwd:i,contentCheck:nS});if(!n)try{if(n=Uu(i),!n)return null}catch{return null}return r&&(vo[i]=n),n}var Li=U(require("fs")),lr=U(require("path"));function sh(t){return typeof t=="undefined"||t===null}function sS(t){return typeof t=="object"&&t!==null}function oS(t){return Array.isArray(t)?t:sh(t)?[]:[t]}function aS(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function lS(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function cS(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var uS=sh,hS=sS,fS=oS,pS=lS,dS=cS,mS=aS,oe={isNothing:uS,isObject:hS,toArray:fS,repeat:pS,isNegativeZero:dS,extend:mS};function oh(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
22
9
 
23
- `+t.mark.snippet),i+" "+r):i}function Hi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=kf(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Hi.prototype=Object.create(Error.prototype);Hi.prototype.constructor=Hi;Hi.prototype.toString=function(e){return this.name+": "+kf(this,e)};var Be=Hi;function eu(t,e,r,i,n){var s="",o="",u=Math.floor(n/2)-1;return i-e>u&&(s=" ... ",e=i-u+s.length),r-i>u&&(o=" ...",r=i+u-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function tu(t,e){return pe.repeat(" ",e-t.length)+t}function eA(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var u="",a,c,l=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+l+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)c=eu(t.buffer,i[o-a],n[o-a],t.position-(i[o]-i[o-a]),f),u=pe.repeat(" ",e.indent)+tu((t.line-a+1).toString(),l)+" | "+c.str+`
24
- `+u;for(c=eu(t.buffer,i[o],n[o],t.position,f),u+=pe.repeat(" ",e.indent)+tu((t.line+1).toString(),l)+" | "+c.str+`
25
- `,u+=pe.repeat("-",e.indent+l+3+c.pos)+`^
26
- `,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)c=eu(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),f),u+=pe.repeat(" ",e.indent)+tu((t.line+a+1).toString(),l)+" | "+c.str+`
27
- `;return u.replace(/\n$/,"")}var tA=eA,rA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],iA=["scalar","sequence","mapping"];function nA(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function sA(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(rA.indexOf(r)===-1)throw new Be('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=nA(e.styleAliases||null),iA.indexOf(this.kind)===-1)throw new Be('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Ae=sA;function _f(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function oA(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function iu(t){return this.extend(t)}iu.prototype.extend=function(e){var r=[],i=[];if(e instanceof Ae)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Be("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Ae))throw new Be("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Be("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Be("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Ae))throw new Be("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(iu.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=_f(n,"implicit"),n.compiledExplicit=_f(n,"explicit"),n.compiledTypeMap=oA(n.compiledImplicit,n.compiledExplicit),n};var Mf=iu,qf=new Ae("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Hf=new Ae("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),$f=new Ae("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Uf=new Mf({explicit:[qf,Hf,$f]});function uA(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function aA(){return null}function cA(t){return t===null}var jf=new Ae("tag:yaml.org,2002:null",{kind:"scalar",resolve:uA,construct:aA,predicate:cA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function lA(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function fA(t){return t==="true"||t==="True"||t==="TRUE"}function hA(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Gf=new Ae("tag:yaml.org,2002:bool",{kind:"scalar",resolve:lA,construct:fA,predicate:hA,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function pA(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function dA(t){return 48<=t&&t<=55}function mA(t){return 48<=t&&t<=57}function gA(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!pA(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!dA(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!mA(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function EA(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function DA(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!pe.isNegativeZero(t)}var Wf=new Ae("tag:yaml.org,2002:int",{kind:"scalar",resolve:gA,construct:EA,predicate:DA,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),yA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function AA(t){return!(t===null||!yA.test(t)||t[t.length-1]==="_")}function _A(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var SA=/^[-+]?[0-9]+e/;function CA(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pe.isNegativeZero(t))return"-0.0";return r=t.toString(10),SA.test(r)?r.replace("e",".e"):r}function bA(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||pe.isNegativeZero(t))}var zf=new Ae("tag:yaml.org,2002:float",{kind:"scalar",resolve:AA,construct:_A,predicate:bA,represent:CA,defaultStyle:"lowercase"}),Yf=Uf.extend({implicit:[jf,Gf,Wf,zf]}),Vf=Yf,Kf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Xf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function wA(t){return t===null?!1:Kf.exec(t)!==null||Xf.exec(t)!==null}function FA(t){var e,r,i,n,s,o,u,a=0,c=null,l,f,h;if(e=Kf.exec(t),e===null&&(e=Xf.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],u=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(l=+e[10],f=+(e[11]||0),c=(l*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,i,n,s,o,u,a)),c&&h.setTime(h.getTime()-c),h}function xA(t){return t.toISOString()}var Zf=new Ae("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wA,construct:FA,instanceOf:Date,represent:xA});function vA(t){return t==="<<"||t===null}var Jf=new Ae("tag:yaml.org,2002:merge",{kind:"scalar",resolve:vA}),au=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
28
- \r`;function RA(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=au;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function TA(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=au,o=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function OA(t){var e="",r=0,i,n,s=t.length,o=au;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function BA(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Qf=new Ae("tag:yaml.org,2002:binary",{kind:"scalar",resolve:RA,construct:TA,predicate:BA,represent:OA}),PA=Object.prototype.hasOwnProperty,LA=Object.prototype.toString;function IA(t){if(t===null)return!0;var e=[],r,i,n,s,o,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],o=!1,LA.call(n)!=="[object Object]")return!1;for(s in n)if(PA.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function NA(t){return t!==null?t:[]}var eh=new Ae("tag:yaml.org,2002:omap",{kind:"sequence",resolve:IA,construct:NA}),kA=Object.prototype.toString;function MA(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],kA.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function qA(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var th=new Ae("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:MA,construct:qA}),HA=Object.prototype.hasOwnProperty;function $A(t){if(t===null)return!0;var e,r=t;for(e in r)if(HA.call(r,e)&&r[e]!==null)return!1;return!0}function UA(t){return t!==null?t:{}}var rh=new Ae("tag:yaml.org,2002:set",{kind:"mapping",resolve:$A,construct:UA}),cu=Vf.extend({implicit:[Zf,Jf],explicit:[Qf,eh,th,rh]}),Wt=Object.prototype.hasOwnProperty,Bn=1,ih=2,nh=3,Pn=4,ru=1,jA=2,Sf=3,GA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,WA=/[\x85\u2028\u2029]/,zA=/[,\[\]\{\}]/,sh=/^(?:!|!!|![a-z\-]+!)$/i,oh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Cf(t){return Object.prototype.toString.call(t)}function ot(t){return t===10||t===13}function Dr(t){return t===9||t===32}function Pe(t){return t===9||t===32||t===10||t===13}function Ur(t){return t===44||t===91||t===93||t===123||t===125}function YA(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function VA(t){return t===120?2:t===117?4:t===85?8:0}function KA(t){return 48<=t&&t<=57?t-48:-1}function bf(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
29
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function XA(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var uh=new Array(256),ah=new Array(256);for(Er=0;Er<256;Er++)uh[Er]=bf(Er)?1:0,ah[Er]=bf(Er);var Er;function ZA(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||cu,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ch(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=tA(r),new Be(e,r)}function O(t,e){throw ch(t,e)}function Ln(t,e){t.onWarning&&t.onWarning.call(null,ch(t,e))}var wf={YAML:function(e,r,i){var n,s,o;e.version!==null&&O(e,"duplication of %YAML directive"),i.length!==1&&O(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&O(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&O(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Ln(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&O(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],sh.test(n)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),Wt.call(e.tagMap,n)&&O(e,'there is a previously declared suffix for "'+n+'" tag handle'),oh.test(s)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{O(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Gt(t,e,r,i){var n,s,o,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,s=u.length;n<s;n+=1)o=u.charCodeAt(n),o===9||32<=o&&o<=1114111||O(t,"expected valid JSON character");else GA.test(u)&&O(t,"the stream contains non-printable characters");t.result+=u}}function Ff(t,e,r,i){var n,s,o,u;for(pe.isObject(r)||O(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,u=n.length;o<u;o+=1)s=n[o],Wt.call(e,s)||(e[s]=r[s],i[s]=!0)}function jr(t,e,r,i,n,s,o,u,a){var c,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,l=n.length;c<l;c+=1)Array.isArray(n[c])&&O(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Cf(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Cf(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)Ff(t,e,s[c],r);else Ff(t,e,s,r);else!t.json&&!Wt.call(r,n)&&Wt.call(e,n)&&(t.line=o||t.line,t.lineStart=u||t.lineStart,t.position=a||t.position,O(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function lu(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ce(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Dr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(ot(n))for(lu(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&Ln(t,"deficient indentation"),i}function kn(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Pe(r)))}function fu(t,e){e===1?t.result+=" ":e>1&&(t.result+=pe.repeat(`
30
- `,e-1))}function JA(t,e,r){var i,n,s,o,u,a,c,l,f=t.kind,h=t.result,E;if(E=t.input.charCodeAt(t.position),Pe(E)||Ur(E)||E===35||E===38||E===42||E===33||E===124||E===62||E===39||E===34||E===37||E===64||E===96||(E===63||E===45)&&(n=t.input.charCodeAt(t.position+1),Pe(n)||r&&Ur(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;E!==0;){if(E===58){if(n=t.input.charCodeAt(t.position+1),Pe(n)||r&&Ur(n))break}else if(E===35){if(i=t.input.charCodeAt(t.position-1),Pe(i))break}else{if(t.position===t.lineStart&&kn(t)||r&&Ur(E))break;if(ot(E))if(a=t.line,c=t.lineStart,l=t.lineIndent,ce(t,!1,-1),t.lineIndent>=e){u=!0,E=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=c,t.lineIndent=l;break}}u&&(Gt(t,s,o,!1),fu(t,t.line-a),s=o=t.position,u=!1),Dr(E)||(o=t.position+1),E=t.input.charCodeAt(++t.position)}return Gt(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function QA(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Gt(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else ot(r)?(Gt(t,i,n,!0),fu(t,ce(t,!1,e)),i=n=t.position):t.position===t.lineStart&&kn(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}function e_(t,e){var r,i,n,s,o,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return Gt(t,r,t.position,!0),t.position++,!0;if(u===92){if(Gt(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),ot(u))ce(t,!1,e);else if(u<256&&uh[u])t.result+=ah[u],t.position++;else if((o=VA(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=YA(u))>=0?s=(s<<4)+o:O(t,"expected hexadecimal character");t.result+=XA(s),t.position++}else O(t,"unknown escape sequence");r=i=t.position}else ot(u)?(Gt(t,r,i,!0),fu(t,ce(t,!1,e)),r=i=t.position):t.position===t.lineStart&&kn(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}function t_(t,e){var r=!0,i,n,s,o=t.tag,u,a=t.anchor,c,l,f,h,E,g=Object.create(null),d,D,y,w;if(w=t.input.charCodeAt(t.position),w===91)l=93,E=!1,u=[];else if(w===123)l=125,E=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),w=t.input.charCodeAt(++t.position);w!==0;){if(ce(t,!0,e),w=t.input.charCodeAt(t.position),w===l)return t.position++,t.tag=o,t.anchor=a,t.kind=E?"mapping":"sequence",t.result=u,!0;r?w===44&&O(t,"expected the node content, but found ','"):O(t,"missed comma between flow collection entries"),D=d=y=null,f=h=!1,w===63&&(c=t.input.charCodeAt(t.position+1),Pe(c)&&(f=h=!0,t.position++,ce(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Gr(t,e,Bn,!1,!0),D=t.tag,d=t.result,ce(t,!0,e),w=t.input.charCodeAt(t.position),(h||t.line===i)&&w===58&&(f=!0,w=t.input.charCodeAt(++t.position),ce(t,!0,e),Gr(t,e,Bn,!1,!0),y=t.result),E?jr(t,u,g,D,d,y,i,n,s):f?u.push(jr(t,null,g,D,d,y,i,n,s)):u.push(d),ce(t,!0,e),w=t.input.charCodeAt(t.position),w===44?(r=!0,w=t.input.charCodeAt(++t.position)):r=!1}O(t,"unexpected end of the stream within a flow collection")}function r_(t,e){var r,i,n=ru,s=!1,o=!1,u=e,a=0,c=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)ru===n?n=f===43?Sf:jA:O(t,"repeat of a chomping mode identifier");else if((l=KA(f))>=0)l===0?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?O(t,"repeat of an indentation width identifier"):(u=e+l-1,o=!0);else break;if(Dr(f)){do f=t.input.charCodeAt(++t.position);while(Dr(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ot(f)&&f!==0)}for(;f!==0;){for(lu(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<u)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>u&&(u=t.lineIndent),ot(f)){a++;continue}if(t.lineIndent<u){n===Sf?t.result+=pe.repeat(`
31
- `,s?1+a:a):n===ru&&s&&(t.result+=`
32
- `);break}for(i?Dr(f)?(c=!0,t.result+=pe.repeat(`
33
- `,s?1+a:a)):c?(c=!1,t.result+=pe.repeat(`
34
- `,a+1)):a===0?s&&(t.result+=" "):t.result+=pe.repeat(`
35
- `,a):t.result+=pe.repeat(`
36
- `,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!ot(f)&&f!==0;)f=t.input.charCodeAt(++t.position);Gt(t,r,t.position,!1)}return!0}function xf(t,e){var r,i=t.tag,n=t.anchor,s=[],o,u=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!Pe(o))));){if(u=!0,t.position++,ce(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,Gr(t,e,nh,!1,!0),s.push(t.result),ce(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)O(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return u?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function i_(t,e,r){var i,n,s,o,u,a,c=t.tag,l=t.anchor,f={},h=Object.create(null),E=null,g=null,d=null,D=!1,y=!1,w;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),w=t.input.charCodeAt(t.position);w!==0;){if(!D&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(w===63||w===58)&&Pe(i))w===63?(D&&(jr(t,f,h,E,g,null,o,u,a),E=g=d=null),y=!0,D=!0,n=!0):D?(D=!1,n=!0):O(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,w=i;else{if(o=t.line,u=t.lineStart,a=t.position,!Gr(t,r,ih,!1,!0))break;if(t.line===s){for(w=t.input.charCodeAt(t.position);Dr(w);)w=t.input.charCodeAt(++t.position);if(w===58)w=t.input.charCodeAt(++t.position),Pe(w)||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(jr(t,f,h,E,g,null,o,u,a),E=g=d=null),y=!0,D=!1,n=!1,E=t.tag,g=t.result;else if(y)O(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(y)O(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(D&&(o=t.line,u=t.lineStart,a=t.position),Gr(t,e,Pn,!0,n)&&(D?g=t.result:d=t.result),D||(jr(t,f,h,E,g,d,o,u,a),E=g=d=null),ce(t,!0,-1),w=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&w!==0)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return D&&jr(t,f,h,E,g,null,o,u,a),y&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=f),y}function n_(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&O(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Pe(o);)o===33&&(i?O(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),sh.test(n)||O(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),zA.test(s)&&O(t,"tag suffix cannot contain flow indicator characters")}s&&!oh.test(s)&&O(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{O(t,"tag name is malformed: "+s)}return r?t.tag=s:Wt.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:O(t,'undeclared tag handle "'+n+'"'),!0}function s_(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&O(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Pe(r)&&!Ur(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function o_(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Pe(i)&&!Ur(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Wt.call(t.anchorMap,r)||O(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ce(t,!0,-1),!0}function Gr(t,e,r,i,n){var s,o,u,a=1,c=!1,l=!1,f,h,E,g,d,D;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=u=Pn===r||nh===r,i&&ce(t,!0,-1)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;n_(t)||s_(t);)ce(t,!0,-1)?(c=!0,u=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):u=!1;if(u&&(u=c||n),(a===1||Pn===r)&&(Bn===r||ih===r?d=e:d=e+1,D=t.position-t.lineStart,a===1?u&&(xf(t,D)||i_(t,D,d))||t_(t,d)?l=!0:(o&&r_(t,d)||QA(t,d)||e_(t,d)?l=!0:o_(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&O(t,"alias node should not have any properties")):JA(t,d,Bn===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(l=u&&xf(t,D))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(g=t.implicitTypes[f],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Wt.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,E=t.typeMap.multi[t.kind||"fallback"],f=0,h=E.length;f<h;f+=1)if(t.tag.slice(0,E[f].tag.length)===E[f].tag){g=E[f];break}g||O(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function u_(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(ce(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Pe(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&O(t,"directive name must not be less than one character in length");o!==0;){for(;Dr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!ot(o));break}if(ot(o))break;for(r=t.position;o!==0&&!Pe(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&lu(t),Wt.call(wf,i)?wf[i](t,i,n):Ln(t,'unknown document directive "'+i+'"')}if(ce(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,ce(t,!0,-1)):s&&O(t,"directives end mark is expected"),Gr(t,t.lineIndent-1,Pn,!1,!0),ce(t,!0,-1),t.checkLineBreaks&&WA.test(t.input.slice(e,t.position))&&Ln(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&kn(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,ce(t,!0,-1));return}if(t.position<t.length-1)O(t,"end of the stream or a document separator is expected");else return}function lh(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
37
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new ZA(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,O(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)u_(r);return r.documents}function a_(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=lh(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function c_(t,e){var r=lh(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Be("expected a single document in the stream, but found more")}}var l_=a_,f_=c_,fh={loadAll:l_,load:f_},hh=Object.prototype.toString,ph=Object.prototype.hasOwnProperty,hu=65279,h_=9,$i=10,p_=13,d_=32,m_=33,g_=34,nu=35,E_=37,D_=38,y_=39,A_=42,dh=44,__=45,In=58,S_=61,C_=62,b_=63,w_=64,mh=91,gh=93,F_=96,Eh=123,x_=124,Dh=125,_e={};_e[0]="\\0";_e[7]="\\a";_e[8]="\\b";_e[9]="\\t";_e[10]="\\n";_e[11]="\\v";_e[12]="\\f";_e[13]="\\r";_e[27]="\\e";_e[34]='\\"';_e[92]="\\\\";_e[133]="\\N";_e[160]="\\_";_e[8232]="\\L";_e[8233]="\\P";var v_=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],R_=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function T_(t,e){var r,i,n,s,o,u,a;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],u=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=t.compiledTypeMap.fallback[o],a&&ph.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function O_(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Be("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+pe.repeat("0",i-e.length)+e}var B_=1,Ui=2;function P_(t){this.schema=t.schema||cu,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=pe.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=T_(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Ui:B_,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function vf(t,e){for(var r=pe.repeat(" ",e),i=0,n=-1,s="",o,u=t.length;i<u;)n=t.indexOf(`
38
- `,i),n===-1?(o=t.slice(i),i=u):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
39
- `&&(s+=r),s+=o;return s}function su(t,e){return`
40
- `+pe.repeat(" ",t.indent*e)}function L_(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function Nn(t){return t===d_||t===h_}function ji(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==hu||65536<=t&&t<=1114111}function Rf(t){return ji(t)&&t!==hu&&t!==p_&&t!==$i}function Tf(t,e,r){var i=Rf(t),n=i&&!Nn(t);return(r?i:i&&t!==dh&&t!==mh&&t!==gh&&t!==Eh&&t!==Dh)&&t!==nu&&!(e===In&&!n)||Rf(e)&&!Nn(e)&&t===nu||e===In&&n}function I_(t){return ji(t)&&t!==hu&&!Nn(t)&&t!==__&&t!==b_&&t!==In&&t!==dh&&t!==mh&&t!==gh&&t!==Eh&&t!==Dh&&t!==nu&&t!==D_&&t!==A_&&t!==m_&&t!==x_&&t!==S_&&t!==C_&&t!==y_&&t!==g_&&t!==E_&&t!==w_&&t!==F_}function N_(t){return!Nn(t)&&t!==In}function qi(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function yh(t){var e=/^\n* /;return e.test(t)}var Ah=1,ou=2,_h=3,Sh=4,$r=5;function k_(t,e,r,i,n,s,o,u){var a,c=0,l=null,f=!1,h=!1,E=i!==-1,g=-1,d=I_(qi(t,0))&&N_(qi(t,t.length-1));if(e||o)for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=qi(t,a),!ji(c))return $r;d=d&&Tf(c,l,u),l=c}else{for(a=0;a<t.length;c>=65536?a+=2:a++){if(c=qi(t,a),c===$i)f=!0,E&&(h=h||a-g-1>i&&t[g+1]!==" ",g=a);else if(!ji(c))return $r;d=d&&Tf(c,l,u),l=c}h=h||E&&a-g-1>i&&t[g+1]!==" "}return!f&&!h?d&&!o&&!n(t)?Ah:s===Ui?$r:ou:r>9&&yh(t)?$r:o?s===Ui?$r:ou:h?Sh:_h}function M_(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===Ui?'""':"''";if(!t.noCompatMode&&(v_.indexOf(e)!==-1||R_.test(e)))return t.quotingType===Ui?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),u=i||t.flowLevel>-1&&r>=t.flowLevel;function a(c){return L_(t,c)}switch(k_(e,u,t.indent,o,a,t.quotingType,t.forceQuotes&&!i,n)){case Ah:return e;case ou:return"'"+e.replace(/'/g,"''")+"'";case _h:return"|"+Of(e,t.indent)+Bf(vf(e,s));case Sh:return">"+Of(e,t.indent)+Bf(vf(q_(e,o),s));case $r:return'"'+H_(e)+'"';default:throw new Be("impossible error: invalid scalar style")}}()}function Of(t,e){var r=yh(t)?String(e):"",i=t[t.length-1]===`
10
+ `+t.mark.snippet),i+" "+r):i}function wi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=oh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}wi.prototype=Object.create(Error.prototype);wi.prototype.constructor=wi;wi.prototype.toString=function(e){return this.name+": "+oh(this,e)};var xe=wi;function Ao(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function To(t,e){return oe.repeat(" ",e-t.length)+t}function gS(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=Ao(t.buffer,i[o-l],n[o-l],t.position-(i[o]-i[o-l]),h),a=oe.repeat(" ",e.indent)+To((t.line-l+1).toString(),u)+" | "+c.str+`
11
+ `+a;for(c=Ao(t.buffer,i[o],n[o],t.position,h),a+=oe.repeat(" ",e.indent)+To((t.line+1).toString(),u)+" | "+c.str+`
12
+ `,a+=oe.repeat("-",e.indent+u+3+c.pos)+`^
13
+ `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=Ao(t.buffer,i[o+l],n[o+l],t.position-(i[o]-i[o+l]),h),a+=oe.repeat(" ",e.indent)+To((t.line+l+1).toString(),u)+" | "+c.str+`
14
+ `;return a.replace(/\n$/,"")}var yS=gS,_S=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ES=["scalar","sequence","mapping"];function SS(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function bS(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(_S.indexOf(r)===-1)throw new xe('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=SS(e.styleAliases||null),ES.indexOf(this.kind)===-1)throw new xe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var fe=bS;function ju(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function wS(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Co(t){return this.extend(t)}Co.prototype.extend=function(e){var r=[],i=[];if(e instanceof fe)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new xe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof fe))throw new xe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new xe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new xe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof fe))throw new xe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Co.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=ju(n,"implicit"),n.compiledExplicit=ju(n,"explicit"),n.compiledTypeMap=wS(n.compiledImplicit,n.compiledExplicit),n};var ah=Co,lh=new fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ch=new fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),uh=new fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),hh=new ah({explicit:[lh,ch,uh]});function xS(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function vS(){return null}function RS(t){return t===null}var fh=new fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:xS,construct:vS,predicate:RS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function AS(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function TS(t){return t==="true"||t==="True"||t==="TRUE"}function OS(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var ph=new fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AS,construct:TS,predicate:OS,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function CS(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function LS(t){return 48<=t&&t<=55}function PS(t){return 48<=t&&t<=57}function IS(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!CS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!LS(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!PS(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function kS(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function NS(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!oe.isNegativeZero(t)}var dh=new fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:IS,construct:kS,predicate:NS,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),DS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function FS(t){return!(t===null||!DS.test(t)||t[t.length-1]==="_")}function MS(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var BS=/^[-+]?[0-9]+e/;function qS(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(oe.isNegativeZero(t))return"-0.0";return r=t.toString(10),BS.test(r)?r.replace("e",".e"):r}function HS(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||oe.isNegativeZero(t))}var mh=new fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:FS,construct:MS,predicate:HS,represent:qS,defaultStyle:"lowercase"}),gh=hh.extend({implicit:[fh,ph,dh,mh]}),yh=gh,_h=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Eh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function $S(t){return t===null?!1:_h.exec(t)!==null||Eh.exec(t)!==null}function US(t){var e,r,i,n,s,o,a,l=0,c=null,u,h,f;if(e=_h.exec(t),e===null&&(e=Eh.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&f.setTime(f.getTime()-c),f}function GS(t){return t.toISOString()}var Sh=new fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:$S,construct:US,instanceOf:Date,represent:GS});function jS(t){return t==="<<"||t===null}var bh=new fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:jS}),No=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
15
+ \r`;function WS(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=No;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function YS(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=No,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function zS(t){var e="",r=0,i,n,s=t.length,o=No;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function KS(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var wh=new fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:WS,construct:YS,predicate:KS,represent:zS}),VS=Object.prototype.hasOwnProperty,XS=Object.prototype.toString;function ZS(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,XS.call(n)!=="[object Object]")return!1;for(s in n)if(VS.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function QS(t){return t!==null?t:[]}var xh=new fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ZS,construct:QS}),JS=Object.prototype.toString;function eb(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],JS.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function tb(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var vh=new fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eb,construct:tb}),rb=Object.prototype.hasOwnProperty;function ib(t){if(t===null)return!0;var e,r=t;for(e in r)if(rb.call(r,e)&&r[e]!==null)return!1;return!0}function nb(t){return t!==null?t:{}}var Rh=new fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:ib,construct:nb}),Do=yh.extend({implicit:[Sh,bh],explicit:[wh,xh,vh,Rh]}),Pt=Object.prototype.hasOwnProperty,cn=1,Ah=2,Th=3,un=4,Oo=1,sb=2,Wu=3,ob=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ab=/[\x85\u2028\u2029]/,lb=/[,\[\]\{\}]/,Oh=/^(?:!|!!|![a-z\-]+!)$/i,Ch=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Yu(t){return Object.prototype.toString.call(t)}function Xe(t){return t===10||t===13}function rr(t){return t===9||t===32}function ve(t){return t===9||t===32||t===10||t===13}function Ar(t){return t===44||t===91||t===93||t===123||t===125}function cb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function ub(t){return t===120?2:t===117?4:t===85?8:0}function hb(t){return 48<=t&&t<=57?t-48:-1}function zu(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
16
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function fb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Lh=new Array(256),Ph=new Array(256);for(tr=0;tr<256;tr++)Lh[tr]=zu(tr)?1:0,Ph[tr]=zu(tr);var tr;function pb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Do,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ih(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=yS(r),new xe(e,r)}function C(t,e){throw Ih(t,e)}function hn(t,e){t.onWarning&&t.onWarning.call(null,Ih(t,e))}var Ku={YAML:function(e,r,i){var n,s,o;e.version!==null&&C(e,"duplication of %YAML directive"),i.length!==1&&C(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&C(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&C(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&hn(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&C(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Oh.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),Pt.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ch.test(s)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{C(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Lt(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||C(t,"expected valid JSON character");else ob.test(a)&&C(t,"the stream contains non-printable characters");t.result+=a}}function Vu(t,e,r,i){var n,s,o,a;for(oe.isObject(r)||C(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],Pt.call(e,s)||(e[s]=r[s],i[s]=!0)}function Tr(t,e,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&C(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Yu(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Yu(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)Vu(t,e,s[c],r);else Vu(t,e,s,r);else!t.json&&!Pt.call(r,n)&&Pt.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,C(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function Fo(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):C(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function te(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;rr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Xe(n))for(Fo(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&hn(t,"deficient indentation"),i}function dn(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||ve(r)))}function Mo(t,e){e===1?t.result+=" ":e>1&&(t.result+=oe.repeat(`
17
+ `,e-1))}function db(t,e,r){var i,n,s,o,a,l,c,u,h=t.kind,f=t.result,g;if(g=t.input.charCodeAt(t.position),ve(g)||Ar(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(n=t.input.charCodeAt(t.position+1),ve(n)||r&&Ar(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;g!==0;){if(g===58){if(n=t.input.charCodeAt(t.position+1),ve(n)||r&&Ar(n))break}else if(g===35){if(i=t.input.charCodeAt(t.position-1),ve(i))break}else{if(t.position===t.lineStart&&dn(t)||r&&Ar(g))break;if(Xe(g))if(l=t.line,c=t.lineStart,u=t.lineIndent,te(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(Lt(t,s,o,!1),Mo(t,t.line-l),s=o=t.position,a=!1),rr(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return Lt(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function mb(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Lt(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Xe(r)?(Lt(t,i,n,!0),Mo(t,te(t,!1,e)),i=n=t.position):t.position===t.lineStart&&dn(t)?C(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);C(t,"unexpected end of the stream within a single quoted scalar")}function gb(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Lt(t,r,t.position,!0),t.position++,!0;if(a===92){if(Lt(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Xe(a))te(t,!1,e);else if(a<256&&Lh[a])t.result+=Ph[a],t.position++;else if((o=ub(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=cb(a))>=0?s=(s<<4)+o:C(t,"expected hexadecimal character");t.result+=fb(s),t.position++}else C(t,"unknown escape sequence");r=i=t.position}else Xe(a)?(Lt(t,r,i,!0),Mo(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&dn(t)?C(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}C(t,"unexpected end of the stream within a double quoted scalar")}function yb(t,e){var r=!0,i,n,s,o=t.tag,a,l=t.anchor,c,u,h,f,g,m=Object.create(null),y,w,x,R;if(R=t.input.charCodeAt(t.position),R===91)u=93,g=!1,a=[];else if(R===123)u=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),R=t.input.charCodeAt(++t.position);R!==0;){if(te(t,!0,e),R=t.input.charCodeAt(t.position),R===u)return t.position++,t.tag=o,t.anchor=l,t.kind=g?"mapping":"sequence",t.result=a,!0;r?R===44&&C(t,"expected the node content, but found ','"):C(t,"missed comma between flow collection entries"),w=y=x=null,h=f=!1,R===63&&(c=t.input.charCodeAt(t.position+1),ve(c)&&(h=f=!0,t.position++,te(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Or(t,e,cn,!1,!0),w=t.tag,y=t.result,te(t,!0,e),R=t.input.charCodeAt(t.position),(f||t.line===i)&&R===58&&(h=!0,R=t.input.charCodeAt(++t.position),te(t,!0,e),Or(t,e,cn,!1,!0),x=t.result),g?Tr(t,a,m,w,y,x,i,n,s):h?a.push(Tr(t,null,m,w,y,x,i,n,s)):a.push(y),te(t,!0,e),R=t.input.charCodeAt(t.position),R===44?(r=!0,R=t.input.charCodeAt(++t.position)):r=!1}C(t,"unexpected end of the stream within a flow collection")}function _b(t,e){var r,i,n=Oo,s=!1,o=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Oo===n?n=h===43?Wu:sb:C(t,"repeat of a chomping mode identifier");else if((u=hb(h))>=0)u===0?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?C(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(rr(h)){do h=t.input.charCodeAt(++t.position);while(rr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Xe(h)&&h!==0)}for(;h!==0;){for(Fo(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Xe(h)){l++;continue}if(t.lineIndent<a){n===Wu?t.result+=oe.repeat(`
18
+ `,s?1+l:l):n===Oo&&s&&(t.result+=`
19
+ `);break}for(i?rr(h)?(c=!0,t.result+=oe.repeat(`
20
+ `,s?1+l:l)):c?(c=!1,t.result+=oe.repeat(`
21
+ `,l+1)):l===0?s&&(t.result+=" "):t.result+=oe.repeat(`
22
+ `,l):t.result+=oe.repeat(`
23
+ `,s?1+l:l),s=!0,o=!0,l=0,r=t.position;!Xe(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Lt(t,r,t.position,!1)}return!0}function Xu(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!ve(o))));){if(a=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Or(t,e,Th,!1,!0),s.push(t.result),te(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)C(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Eb(t,e,r){var i,n,s,o,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),g=null,m=null,y=null,w=!1,x=!1,R;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),R=t.input.charCodeAt(t.position);R!==0;){if(!w&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,C(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(R===63||R===58)&&ve(i))R===63?(w&&(Tr(t,h,f,g,m,null,o,a,l),g=m=y=null),x=!0,w=!0,n=!0):w?(w=!1,n=!0):C(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,R=i;else{if(o=t.line,a=t.lineStart,l=t.position,!Or(t,r,Ah,!1,!0))break;if(t.line===s){for(R=t.input.charCodeAt(t.position);rr(R);)R=t.input.charCodeAt(++t.position);if(R===58)R=t.input.charCodeAt(++t.position),ve(R)||C(t,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Tr(t,h,f,g,m,null,o,a,l),g=m=y=null),x=!0,w=!1,n=!1,g=t.tag,m=t.result;else if(x)C(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(x)C(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(w&&(o=t.line,a=t.lineStart,l=t.position),Or(t,e,un,!0,n)&&(w?m=t.result:y=t.result),w||(Tr(t,h,f,g,m,y,o,a,l),g=m=y=null),te(t,!0,-1),R=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&R!==0)C(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return w&&Tr(t,h,f,g,m,null,o,a,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),x}function Sb(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&C(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):C(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ve(o);)o===33&&(i?C(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Oh.test(n)||C(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),lb.test(s)&&C(t,"tag suffix cannot contain flow indicator characters")}s&&!Ch.test(s)&&C(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{C(t,"tag name is malformed: "+s)}return r?t.tag=s:Pt.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:C(t,'undeclared tag handle "'+n+'"'),!0}function bb(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&C(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!ve(r)&&!Ar(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function wb(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!ve(i)&&!Ar(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&C(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Pt.call(t.anchorMap,r)||C(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],te(t,!0,-1),!0}function Or(t,e,r,i,n){var s,o,a,l=1,c=!1,u=!1,h,f,g,m,y,w;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=un===r||Th===r,i&&te(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Sb(t)||bb(t);)te(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||un===r)&&(cn===r||Ah===r?y=e:y=e+1,w=t.position-t.lineStart,l===1?a&&(Xu(t,w)||Eb(t,w,y))||yb(t,y)?u=!0:(o&&_b(t,y)||mb(t,y)||gb(t,y)?u=!0:wb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&C(t,"alias node should not have any properties")):db(t,y,cn===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Xu(t,w))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(m=t.implicitTypes[h],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Pt.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,f=g.length;h<f;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){m=g[h];break}m||C(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function xb(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(te(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!ve(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&C(t,"directive name must not be less than one character in length");o!==0;){for(;rr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Xe(o));break}if(Xe(o))break;for(r=t.position;o!==0&&!ve(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Fo(t),Pt.call(Ku,i)?Ku[i](t,i,n):hn(t,'unknown document directive "'+i+'"')}if(te(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,te(t,!0,-1)):s&&C(t,"directives end mark is expected"),Or(t,t.lineIndent-1,un,!1,!0),te(t,!0,-1),t.checkLineBreaks&&ab.test(t.input.slice(e,t.position))&&hn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&dn(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,te(t,!0,-1));return}if(t.position<t.length-1)C(t,"end of the stream or a document separator is expected");else return}function kh(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
24
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new pb(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,C(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)xb(r);return r.documents}function vb(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=kh(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Rb(t,e){var r=kh(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new xe("expected a single document in the stream, but found more")}}var Ab=vb,Tb=Rb,Nh={loadAll:Ab,load:Tb},Dh=Object.prototype.toString,Fh=Object.prototype.hasOwnProperty,Bo=65279,Ob=9,xi=10,Cb=13,Lb=32,Pb=33,Ib=34,Lo=35,kb=37,Nb=38,Db=39,Fb=42,Mh=44,Mb=45,fn=58,Bb=61,qb=62,Hb=63,$b=64,Bh=91,qh=93,Ub=96,Hh=123,Gb=124,$h=125,pe={};pe[0]="\\0";pe[7]="\\a";pe[8]="\\b";pe[9]="\\t";pe[10]="\\n";pe[11]="\\v";pe[12]="\\f";pe[13]="\\r";pe[27]="\\e";pe[34]='\\"';pe[92]="\\\\";pe[133]="\\N";pe[160]="\\_";pe[8232]="\\L";pe[8233]="\\P";var jb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Wb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Yb(t,e){var r,i,n,s,o,a,l;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=t.compiledTypeMap.fallback[o],l&&Fh.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function zb(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new xe("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+oe.repeat("0",i-e.length)+e}var Kb=1,vi=2;function Vb(t){this.schema=t.schema||Do,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=oe.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Yb(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?vi:Kb,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Zu(t,e){for(var r=oe.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
25
+ `,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
26
+ `&&(s+=r),s+=o;return s}function Po(t,e){return`
27
+ `+oe.repeat(" ",t.indent*e)}function Xb(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function pn(t){return t===Lb||t===Ob}function Ri(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Bo||65536<=t&&t<=1114111}function Qu(t){return Ri(t)&&t!==Bo&&t!==Cb&&t!==xi}function Ju(t,e,r){var i=Qu(t),n=i&&!pn(t);return(r?i:i&&t!==Mh&&t!==Bh&&t!==qh&&t!==Hh&&t!==$h)&&t!==Lo&&!(e===fn&&!n)||Qu(e)&&!pn(e)&&t===Lo||e===fn&&n}function Zb(t){return Ri(t)&&t!==Bo&&!pn(t)&&t!==Mb&&t!==Hb&&t!==fn&&t!==Mh&&t!==Bh&&t!==qh&&t!==Hh&&t!==$h&&t!==Lo&&t!==Nb&&t!==Fb&&t!==Pb&&t!==Gb&&t!==Bb&&t!==qb&&t!==Db&&t!==Ib&&t!==kb&&t!==$b&&t!==Ub}function Qb(t){return!pn(t)&&t!==fn}function bi(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Uh(t){var e=/^\n* /;return e.test(t)}var Gh=1,Io=2,jh=3,Wh=4,Rr=5;function Jb(t,e,r,i,n,s,o,a){var l,c=0,u=null,h=!1,f=!1,g=i!==-1,m=-1,y=Zb(bi(t,0))&&Qb(bi(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=bi(t,l),!Ri(c))return Rr;y=y&&Ju(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=bi(t,l),c===xi)h=!0,g&&(f=f||l-m-1>i&&t[m+1]!==" ",m=l);else if(!Ri(c))return Rr;y=y&&Ju(c,u,a),u=c}f=f||g&&l-m-1>i&&t[m+1]!==" "}return!h&&!f?y&&!o&&!n(t)?Gh:s===vi?Rr:Io:r>9&&Uh(t)?Rr:o?s===vi?Rr:Io:f?Wh:jh}function e0(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===vi?'""':"''";if(!t.noCompatMode&&(jb.indexOf(e)!==-1||Wb.test(e)))return t.quotingType===vi?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return Xb(t,c)}switch(Jb(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case Gh:return e;case Io:return"'"+e.replace(/'/g,"''")+"'";case jh:return"|"+eh(e,t.indent)+th(Zu(e,s));case Wh:return">"+eh(e,t.indent)+th(Zu(t0(e,o),s));case Rr:return'"'+r0(e)+'"';default:throw new xe("impossible error: invalid scalar style")}}()}function eh(t,e){var r=Uh(t)?String(e):"",i=t[t.length-1]===`
41
28
  `,n=i&&(t[t.length-2]===`
42
29
  `||t===`
43
30
  `),s=n?"+":i?"":"-";return r+s+`
44
- `}function Bf(t){return t[t.length-1]===`
45
- `?t.slice(0,-1):t}function q_(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
46
- `);return c=c!==-1?c:t.length,r.lastIndex=c,Pf(t.slice(0,c),e)}(),n=t[0]===`
47
- `||t[0]===" ",s,o;o=r.exec(t);){var u=o[1],a=o[2];s=a[0]===" ",i+=u+(!n&&!s&&a!==""?`
48
- `:"")+Pf(a,e),n=s}return i}function Pf(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,u=0,a="";i=r.exec(t);)u=i.index,u-n>e&&(s=o>n?o:u,a+=`
49
- `+t.slice(n,s),n=s+1),o=u;return a+=`
50
- `,t.length-n>e&&o>n?a+=t.slice(n,o)+`
51
- `+t.slice(o+1):a+=t.slice(n),a.slice(1)}function H_(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=qi(t,n),i=_e[r],!i&&ji(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||O_(r);return e}function $_(t,e,r){var i="",n=t.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(Ft(t,e,u,!1,!1)||typeof u=="undefined"&&Ft(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function Lf(t,e,r,i){var n="",s=t.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(Ft(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&Ft(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=su(t,e)),t.dump&&$i===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function U_(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,u,a,c,l;for(o=0,u=s.length;o<u;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),a=s[o],c=r[a],t.replacer&&(c=t.replacer.call(r,a,c)),Ft(t,e,a,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ft(t,e,c,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function j_(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),u,a,c,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Be("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)h="",(!i||n!=="")&&(h+=su(t,e)),c=o[u],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Ft(t,e+1,c,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&$i===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=su(t,e)),Ft(t,e+1,l,!0,f)&&(t.dump&&$i===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function If(t,e,r){var i,n,s,o,u,a;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(u=n[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof e=="object"&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(r?u.multi&&u.representName?t.tag=u.representName(e):t.tag=u.tag:t.tag="?",u.represent){if(a=t.styleMap[u.tag]||u.defaultStyle,hh.call(u.represent)==="[object Function]")i=u.represent(e,a);else if(ph.call(u.represent,a))i=u.represent[a](e,a);else throw new Be("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');t.dump=i}return!0}return!1}function Ft(t,e,r,i,n,s,o){t.tag=null,t.dump=r,If(t,r,!1)||If(t,r,!0);var u=hh.call(t.dump),a=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=u==="[object Object]"||u==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(n=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),u==="[object Object]")i&&Object.keys(t.dump).length!==0?(j_(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(U_(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(u==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?Lf(t,e-1,t.dump,n):Lf(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):($_(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&M_(t,t.dump,e,s,a);else{if(u==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Be("unacceptable kind of an object to dump "+u)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function G_(t,e){var r=[],i=[],n,s;for(uu(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function uu(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)uu(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)uu(t[i[n]],e,r)}function W_(t,e){e=e||{};var r=new P_(e);r.noRefs||G_(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Ft(r,0,i,!0,!0)?r.dump+`
52
- `:""}var z_=W_,Y_={dump:z_};function pu(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var V_=Ae,K_=Mf,X_=Uf,Z_=Yf,J_=Vf,Q_=cu,eS=fh.load,tS=fh.loadAll,rS=Y_.dump,iS=Be,nS={binary:Qf,float:zf,map:$f,null:jf,pairs:th,set:rh,timestamp:Zf,bool:Gf,int:Wf,merge:Jf,omap:eh,seq:Hf,str:qf},sS=pu("safeLoad","load"),oS=pu("safeLoadAll","loadAll"),uS=pu("safeDump","dump"),aS={Type:V_,Schema:K_,FAILSAFE_SCHEMA:X_,JSON_SCHEMA:Z_,CORE_SCHEMA:J_,DEFAULT_SCHEMA:Q_,load:eS,loadAll:tS,dump:rS,YAMLException:iS,types:nS,safeLoad:sS,safeLoadAll:oS,safeDump:uS},Ch=aS;var ym=V(lm());var Ke={};cf(Ke,{bold:()=>dw,dimmed:()=>gw,error:()=>Dm,grey:()=>Ew,info:()=>pw,item:()=>Dw,log:()=>Qt,turboBlue:()=>ti,turboGradient:()=>hw,turboLoader:()=>Em,turboRed:()=>mm,underline:()=>mw,warn:()=>Ka,yellow:()=>gm});var Jt=V(require("chalk")),fm=V(require("ora")),hm=V(require("gradient-string")),pm="#0099F7",dm="#F11712",fw="#FFFF00",hw=(0,hm.default)(pm,dm),ti=Jt.default.hex(pm),mm=Jt.default.hex(dm),gm=Jt.default.hex(fw),Em=t=>(0,fm.default)({text:t,spinner:{frames:[" ",ti("> "),ti(">> "),ti(">>>")]}}),pw=(...t)=>{Qt(ti.bold(">>>"),...t)},dw=(...t)=>{Qt(Jt.default.bold(...t))},mw=(...t)=>{Qt(Jt.default.underline(...t))},gw=(...t)=>{Qt(Jt.default.dim(...t))},Ew=(...t)=>{Qt(Jt.default.grey(...t))},Dw=(...t)=>{Qt(ti.bold(" \u2022"),...t)},Qt=(...t)=>{console.log(...t)},Ka=(...t)=>{console.error(gm.bold(">>>"),...t)},Dm=(...t)=>{console.error(mm.bold(">>>"),...t)};var yw="turbo.json";var Xa={};function Aw(t){try{if(Vi.default.existsSync(br.default.join(t,"pnpm-workspace.yaml")))return Ch.load(Vi.default.readFileSync(br.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(Vi.default.readFileSync(br.default.join(t,"package.json"),"utf8"));if(e.workspaces){if("packages"in e.workspaces)return e.workspaces.packages||[];if(Array.isArray(e.workspaces))return e.workspaces}return[]}catch{return[]}}function Za(t,e){var s;let r=Qo(t,e),i=[],n=(s=e==null?void 0:e.cache)!=null?s:!0;if(n&&t&&t in Xa)return Xa[t];if(r){let u=Aw(r).map(c=>`${c}/turbo.json`);(0,ym.sync)([yw,...u],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(c=>br.default.join(r,c)).forEach(c=>{try{let l=Vi.default.readFileSync(c,"utf8"),f=On.parse(l),h=br.default.dirname(c)===r;if(h){if("extends"in f)return}else if(!("extends"in f))return;i.push({config:f,turboConfigPath:c,workspacePath:br.default.dirname(c),isRootConfig:h})}catch(l){Ka(l)}})}return n&&t&&(Xa[t]=i),i}var dx=V(require("os")),mx=V(rg());var gx=V(require("fs-extra"));var Ex=V(require("path")),Dx=V(require("fs-extra")),yx=V(require("chalk"));var ty=require("stream"),ry=require("util"),tT=require("path"),rT=require("os"),iy=require("fs"),iT=V(ey());var fP=(0,ry.promisify)(ty.Stream.pipeline);var ny=require("fs-extra");var pT=V(require("path")),dT=V(fy()),mT=V(require("chalk")),rf=require("fs-extra");var Lo=V(require("chalk"));var st=V(require("chalk")),Pi=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(st.default.green(" MODIFIED "),...e,this.dry?st.default.dim("(dry run)"):"")}unchanged(...e){this._log(st.default.gray(" UNCHANGED "),...e,this.dry?st.default.dim("(dry run)"):"")}skipped(...e){this._log(st.default.yellow(" SKIPPED "),...e,this.dry?st.default.dim("(dry run)"):"")}error(...e){this._log(st.default.red(" ERROR "),...e,this.dry?st.default.dim("(dry run)"):"")}info(...e){this._log(st.default.bold(" INFO "),...e,this.dry?st.default.dim("(dry run)"):"")}};var hy=V(require("os")),nf=V(require("path"));var Oo=V(require("chalk")),Po=require("diff"),pr=require("fs-extra"),Bo=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{nf.default.extname(e.filePath)===".json"?this.before=(0,pr.readJsonSync)(e.filePath):this.before=(0,pr.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,Po.diffJson)(this.before,e.after):this.changes=(0,Po.diffLines)(this.before,e.after):this.changes=[]}fileName(){return nf.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,pr.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,pr.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(Oo.default.green(r.value)):r.removed?process.stdout.write(Oo.default.red(r.value)):process.stdout.write(Oo.default.dim(r.value))}),Ke.log(hy.default.EOL)):Ke.log(this.after)}};var _n=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Pi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new Bo({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(Lo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(Lo.default.bold(n.fileName()))}catch(o){let u="Unknown error";o instanceof Error&&(u=o.message),s.error=new Error(u),s.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(Lo.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(Ke.log(),r.length>0){Ke.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),Ke.log()}}};function py({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Pi(i),s=new _n(i);return{log:n,runner:s}}var dy="migrate-env-var-dependencies",gT='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',ET="1.5.0";function of(t){let r=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(i=>{var n;return(n=i.dependsOn)!=null?n:[]})].flat().filter(i=>i==null?void 0:i.startsWith("$"));return{hasKeys:!!r.length,envVars:r}}function af({env:t,deps:e}){let r=new Set(t),i=[];return e==null||e.forEach(n=>{n.startsWith("$")?r.add(n.slice(1)):i.push(n)}),r.size?{deps:i,env:Array.from(r)}:{env:t,deps:e}}function my(t){let{deps:e,env:r}=af({env:t.env,deps:t.dependsOn}),i={...t};return e?i.dependsOn=e:delete i.dependsOn,r!=null&&r.length?i.env=r:delete i.env,i}function gy(t){if("extends"in t)return t;let{deps:e,env:r}=af({env:t.globalEnv,deps:t.globalDependencies}),i={...t};return e!=null&&e.length?i.globalDependencies=e:delete i.globalDependencies,r!=null&&r.length?i.globalEnv=r:delete i.globalEnv,i}function uf(t){let e=gy(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,r in t.pipeline){let i=e.pipeline[r];e.pipeline[r]={...i,...my(i)}}}),e}function Ey({root:t,options:e}){let{log:r,runner:i}=py({transformer:dy,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=sf.default.join(t,"package.json"),s={};try{s=(0,Sn.readJsonSync)(n)}catch{}if("turbo"in s)return i.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});let o=sf.default.join(t,"turbo.json");if(!(0,Sn.existsSync)(o))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let u=(0,Sn.readJsonSync)(o);return of(u).hasKeys&&(u=uf(u)),i.modifyFile({filePath:o,after:u}),Za(t).forEach(c=>{let{config:l,turboConfigPath:f}=c;"pipeline"in l&&of(l).hasKeys&&i.modifyFile({filePath:f,after:uf(l)})}),i.finish()}var DT={name:dy,description:gT,introducedIn:ET,transformer:Ey},yT=DT;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
31
+ `}function th(t){return t[t.length-1]===`
32
+ `?t.slice(0,-1):t}function t0(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
33
+ `);return c=c!==-1?c:t.length,r.lastIndex=c,rh(t.slice(0,c),e)}(),n=t[0]===`
34
+ `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
35
+ `:"")+rh(l,e),n=s}return i}function rh(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,l+=`
36
+ `+t.slice(n,s),n=s+1),o=a;return l+=`
37
+ `,t.length-n>e&&o>n?l+=t.slice(n,o)+`
38
+ `+t.slice(o+1):l+=t.slice(n),l.slice(1)}function r0(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=bi(t,n),i=pe[r],!i&&Ri(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||zb(r);return e}function i0(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(pt(t,e,a,!1,!1)||typeof a=="undefined"&&pt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function ih(t,e,r,i){var n="",s=t.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],t.replacer&&(l=t.replacer.call(r,String(o),l)),(pt(t,e+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&pt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Po(t,e)),t.dump&&xi===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function n0(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),pt(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),pt(t,e,c,!1,!1)&&(u+=t.dump,i+=u));t.tag=n,t.dump="{"+i+"}"}function s0(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,l,c,u,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new xe("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Po(t,e)),c=o[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),pt(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&xi===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Po(t,e)),pt(t,e+1,u,!0,h)&&(t.dump&&xi===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function nh(t,e,r){var i,n,s,o,a,l;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,Dh.call(a.represent)==="[object Function]")i=a.represent(e,l);else if(Fh.call(a.represent,l))i=a.represent[l](e,l);else throw new xe("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function pt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,nh(t,r,!1)||nh(t,r,!0);var a=Dh.call(t.dump),l=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,f;if(u&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(s0(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(n0(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?ih(t,e-1,t.dump,n):ih(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(i0(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&e0(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new xe("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function o0(t,e){var r=[],i=[],n,s;for(ko(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function ko(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)ko(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)ko(t[i[n]],e,r)}function a0(t,e){e=e||{};var r=new Vb(e);r.noRefs||o0(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),pt(r,0,i,!0,!0)?r.dump+`
39
+ `:""}var l0=a0,c0={dump:l0};function qo(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var u0=fe,h0=ah,f0=hh,p0=gh,d0=yh,m0=Do,g0=Nh.load,y0=Nh.loadAll,_0=c0.dump,E0=xe,S0={binary:wh,float:mh,map:uh,null:fh,pairs:vh,set:Rh,timestamp:Sh,bool:ph,int:dh,merge:bh,omap:xh,seq:ch,str:lh},b0=qo("safeLoad","load"),w0=qo("safeLoadAll","loadAll"),x0=qo("safeDump","dump"),v0={Type:u0,Schema:h0,FAILSAFE_SCHEMA:f0,JSON_SCHEMA:p0,CORE_SCHEMA:d0,DEFAULT_SCHEMA:m0,load:g0,loadAll:y0,dump:_0,YAMLException:E0,types:S0,safeLoad:b0,safeLoadAll:w0,safeDump:x0},Yh=v0;var Gd=U(Nd()),jd=U(require("json5"));var He={};Nu(He,{bold:()=>LR,dimmed:()=>IR,error:()=>Ud,grey:()=>kR,info:()=>CR,item:()=>NR,log:()=>qt,turboBlue:()=>qr,turboGradient:()=>OR,turboLoader:()=>$d,turboRed:()=>qd,underline:()=>PR,warn:()=>bl,yellow:()=>Hd});var Bt=U(require("chalk")),Dd=U(require("ora")),Fd=U(require("gradient-string")),Md="#0099F7",Bd="#F11712",TR="#FFFF00",OR=(0,Fd.default)(Md,Bd),qr=Bt.default.hex(Md),qd=Bt.default.hex(Bd),Hd=Bt.default.hex(TR),$d=t=>(0,Dd.default)({text:t,spinner:{frames:[" ",qr("> "),qr(">> "),qr(">>>")]}}),CR=(...t)=>{qt(qr.bold(">>>"),...t)},LR=(...t)=>{qt(Bt.default.bold(...t))},PR=(...t)=>{qt(Bt.default.underline(...t))},IR=(...t)=>{qt(Bt.default.dim(...t))},kR=(...t)=>{qt(Bt.default.grey(...t))},NR=(...t)=>{qt(qr.bold(" \u2022"),...t)},qt=(...t)=>{console.log(...t)},bl=(...t)=>{console.error(Hd.bold(">>>"),...t)},Ud=(...t)=>{console.error(qd.bold(">>>"),...t)};var DR="turbo.json";var wl={};function FR(t){try{if(Li.default.existsSync(lr.default.join(t,"pnpm-workspace.yaml")))return Yh.load(Li.default.readFileSync(lr.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(Li.default.readFileSync(lr.default.join(t,"package.json"),"utf8"));if(e.workspaces){if("packages"in e.workspaces)return e.workspaces.packages||[];if(Array.isArray(e.workspaces))return e.workspaces}return[]}catch{return[]}}function xl(t,e){var s;let r=Ro(t,e),i=[],n=(s=e==null?void 0:e.cache)!=null?s:!0;if(n&&t&&t in wl)return wl[t];if(r){let a=FR(r).map(c=>`${c}/turbo.json`);(0,Gd.sync)([DR,...a],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(c=>lr.default.join(r,c)).forEach(c=>{try{let u=Li.default.readFileSync(c,"utf8"),h=jd.default.parse(u),f=lr.default.dirname(c)===r;if(f){if("extends"in h)return}else if(!("extends"in h))return;i.push({config:h,turboConfigPath:c,workspacePath:lr.default.dirname(c),isRootConfig:f})}catch(u){bl(u)}})}return n&&t&&(wl[t]=i),i}var LT=U(require("os")),PT=U(Tg());var IT=U(require("fs-extra"));var kT=U(require("path")),NT=U(require("fs-extra")),DT=U(require("chalk"));var AE=require("stream"),TE=require("util"),y1=require("path"),_1=require("os"),OE=require("fs"),E1=U(RE());var vk=(0,TE.promisify)(AE.Stream.pipeline);var CE=require("fs-extra");var C1=U(require("path")),L1=U(FE()),P1=U(require("chalk")),Ou=require("fs-extra");var uo=U(require("chalk"));var Ve=U(require("chalk")),yi=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(Ve.default.green(" MODIFIED "),...e,this.dry?Ve.default.dim("(dry run)"):"")}unchanged(...e){this._log(Ve.default.gray(" UNCHANGED "),...e,this.dry?Ve.default.dim("(dry run)"):"")}skipped(...e){this._log(Ve.default.yellow(" SKIPPED "),...e,this.dry?Ve.default.dim("(dry run)"):"")}error(...e){this._log(Ve.default.red(" ERROR "),...e,this.dry?Ve.default.dim("(dry run)"):"")}info(...e){this._log(Ve.default.bold(" INFO "),...e,this.dry?Ve.default.dim("(dry run)"):"")}};var ME=U(require("os")),Cu=U(require("path"));var ao=U(require("chalk")),co=require("diff"),Jt=require("fs-extra"),lo=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{Cu.default.extname(e.filePath)===".json"?this.before=(0,Jt.readJsonSync)(e.filePath):this.before=(0,Jt.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,co.diffJson)(this.before,e.after):this.changes=(0,co.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Cu.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Jt.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Jt.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(ao.default.green(r.value)):r.removed?process.stdout.write(ao.default.red(r.value)):process.stdout.write(ao.default.dim(r.value))}),He.log(ME.default.EOL)):He.log(this.after)}};var rn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new yi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new lo({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(uo.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(uo.default.bold(n.fileName()))}catch(o){let a="Unknown error";o instanceof Error&&(a=o.message),s.error=new Error(a),s.action="error",this.logger.error(n.fileName(),a)}this.print&&n.log({diff:!0})}else this.logger.unchanged(uo.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(He.log(),r.length>0){He.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),He.log()}}};function BE({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new yi(i),s=new rn(i);return{log:n,runner:s}}var qE=require("fs-extra"),HE=require("json5");function $E(t){let e=(0,qE.readFileSync)(t,"utf8");return(0,HE.parse)(e)}var UE="migrate-env-var-dependencies",I1='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',k1="1.5.0";function Pu(t){let r=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(i=>{var n;return(n=i.dependsOn)!=null?n:[]})].flat().filter(i=>i==null?void 0:i.startsWith("$"));return{hasKeys:!!r.length,envVars:r}}function ku({env:t,deps:e}){let r=new Set(t),i=[];return e==null||e.forEach(n=>{n.startsWith("$")?r.add(n.slice(1)):i.push(n)}),r.size?{deps:i,env:Array.from(r)}:{env:t,deps:e}}function GE(t){let{deps:e,env:r}=ku({env:t.env,deps:t.dependsOn}),i={...t};return e?i.dependsOn=e:delete i.dependsOn,r!=null&&r.length?i.env=r:delete i.env,i}function jE(t){if("extends"in t)return t;let{deps:e,env:r}=ku({env:t.globalEnv,deps:t.globalDependencies}),i={...t};return e!=null&&e.length?i.globalDependencies=e:delete i.globalDependencies,r!=null&&r.length?i.globalEnv=r:delete i.globalEnv,i}function Iu(t){let e=jE(t);return Object.keys(t.pipeline).forEach(r=>{if(t.pipeline,r in t.pipeline){let i=e.pipeline[r];e.pipeline[r]={...i,...GE(i)}}}),e}function WE({root:t,options:e}){let{log:r,runner:i}=BE({transformer:UE,rootPath:t,options:e});r.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let n=Lu.default.join(t,"package.json"),s={};try{s=(0,ho.readJsonSync)(n)}catch{}if("turbo"in s)return i.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});let o=Lu.default.join(t,"turbo.json");if(!(0,ho.existsSync)(o))return i.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let a=$E(o);return Pu(a).hasKeys&&(a=Iu(a)),i.modifyFile({filePath:o,after:a}),xl(t).forEach(c=>{let{config:u,turboConfigPath:h}=c;"pipeline"in u&&Pu(u).hasKeys&&i.modifyFile({filePath:h,after:Iu(u)})}),i.finish()}var N1={name:UE,description:I1,introducedIn:k1,transformer:WE},D1=N1;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
53
40
  /*! Bundled license information:
54
41
 
55
42
  @babel/runtime/helpers/regeneratorRuntime.js: