@turbo/gen 2.7.2-canary.0 → 2.7.2-canary.1
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.
- package/dist/cli.js +50 -50
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var ZA=Object.create;var ba=Object.defineProperty;var JA=Object.getOwnPropertyDescriptor;var QA=Object.getOwnPropertyNames;var ev=Object.getPrototypeOf,tv=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rv=(e,t)=>{for(var r in t)ba(e,r,{get:t[r],enumerable:!0})},nv=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of QA(t))!tv.call(e,i)&&i!==r&&ba(e,i,{get:()=>t[i],enumerable:!(n=JA(t,i))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?ZA(ev(e)):{},nv(t||!e||!e.__esModule?ba(r,"default",{value:e,enumerable:!0}):r,e));var Qp=g((qP,Ut)=>{function _a(e){return Ut.exports=_a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut.exports.__esModule=!0,Ut.exports.default=Ut.exports,_a(e)}Ut.exports=_a,Ut.exports.__esModule=!0,Ut.exports.default=Ut.exports});var r0=g((jP,Wt)=>{var e0=Qp().default;function t0(){"use strict";Wt.exports=t0=function(){return t},Wt.exports.__esModule=!0,Wt.exports.default=Wt.exports;var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(b,C,x){b[C]=x.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(b,C,x){return Object.defineProperty(b,C,{value:x,enumerable:!0,configurable:!0,writable:!0}),b[C]}try{c({},"")}catch{c=function(x,O,$){return x[O]=$}}function l(b,C,x,O){var $=C&&C.prototype instanceof A?C:A,P=Object.create($.prototype),oe=new Xe(O||[]);return i(P,"_invoke",{value:ge(b,x,oe)}),P}function f(b,C,x){try{return{type:"normal",arg:b.call(C,x)}}catch(O){return{type:"throw",arg:O}}}t.wrap=l;var p="suspendedStart",_="suspendedYield",E="executing",m="completed",D={};function A(){}function R(){}function M(){}var W={};c(W,o,function(){return this});var L=Object.getPrototypeOf,X=L&&L(L(v([])));X&&X!==r&&n.call(X,o)&&(W=X);var G=M.prototype=A.prototype=Object.create(W);function U(b){["next","throw","return"].forEach(function(C){c(b,C,function(x){return this._invoke(C,x)})})}function J(b,C){function x($,P,oe,xe){var ne=f(b[$],b,P);if(ne.type!=="throw"){var ye=ne.arg,z=ye.value;return z&&e0(z)=="object"&&n.call(z,"__await")?C.resolve(z.__await).then(function(ze){x("next",ze,oe,xe)},function(ze){x("throw",ze,oe,xe)}):C.resolve(z).then(function(ze){ye.value=ze,oe(ye)},function(ze){return x("throw",ze,oe,xe)})}xe(ne.arg)}var O;i(this,"_invoke",{value:function(P,oe){function xe(){return new C(function(ne,ye){x(P,oe,ne,ye)})}return O=O?O.then(xe,xe):xe()}})}function ge(b,C,x){var O=p;return function($,P){if(O===E)throw new Error("Generator is already running");if(O===m){if($==="throw")throw P;return{value:e,done:!0}}for(x.method=$,x.arg=P;;){var oe=x.delegate;if(oe){var xe=w(oe,x);if(xe){if(xe===D)continue;return xe}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(O===p)throw O=m,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);O=E;var ne=f(b,C,x);if(ne.type==="normal"){if(O=x.done?m:_,ne.arg===D)continue;return{value:ne.arg,done:x.done}}ne.type==="throw"&&(O=m,x.method="throw",x.arg=ne.arg)}}}function w(b,C){var x=C.method,O=b.iterator[x];if(O===e)return C.delegate=null,x==="throw"&&b.iterator.return&&(C.method="return",C.arg=e,w(b,C),C.method==="throw")||x!=="return"&&(C.method="throw",C.arg=new TypeError("The iterator does not provide a '"+x+"' method")),D;var $=f(O,b.iterator,C.arg);if($.type==="throw")return C.method="throw",C.arg=$.arg,C.delegate=null,D;var P=$.arg;return P?P.done?(C[b.resultName]=P.value,C.next=b.nextLoc,C.method!=="return"&&(C.method="next",C.arg=e),C.delegate=null,D):P:(C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,D)}function se(b){var C={tryLoc:b[0]};1 in b&&(C.catchLoc=b[1]),2 in b&&(C.finallyLoc=b[2],C.afterLoc=b[3]),this.tryEntries.push(C)}function re(b){var C=b.completion||{};C.type="normal",delete C.arg,b.completion=C}function Xe(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(se,this),this.reset(!0)}function v(b){if(b||b===""){var C=b[o];if(C)return C.call(b);if(typeof b.next=="function")return b;if(!isNaN(b.length)){var x=-1,O=function $(){for(;++x<b.length;)if(n.call(b,x))return $.value=b[x],$.done=!1,$;return $.value=e,$.done=!0,$};return O.next=O}}throw new TypeError(e0(b)+" is not iterable")}return R.prototype=M,i(G,"constructor",{value:M,configurable:!0}),i(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,a,"GeneratorFunction"),t.isGeneratorFunction=function(b){var C=typeof b=="function"&&b.constructor;return!!C&&(C===R||(C.displayName||C.name)==="GeneratorFunction")},t.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,M):(b.__proto__=M,c(b,a,"GeneratorFunction")),b.prototype=Object.create(G),b},t.awrap=function(b){return{__await:b}},U(J.prototype),c(J.prototype,u,function(){return this}),t.AsyncIterator=J,t.async=function(b,C,x,O,$){$===void 0&&($=Promise);var P=new J(l(b,C,x,O),$);return t.isGeneratorFunction(C)?P:P.next().then(function(oe){return oe.done?oe.value:P.next()})},U(G),c(G,a,"Generator"),c(G,o,function(){return this}),c(G,"toString",function(){return"[object Generator]"}),t.keys=function(b){var C=Object(b),x=[];for(var O in C)x.push(O);return x.reverse(),function $(){for(;x.length;){var P=x.pop();if(P in C)return $.value=P,$.done=!1,$}return $.done=!0,$}},t.values=v,Xe.prototype={constructor:Xe,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(re),!C)for(var x in this)x.charAt(0)==="t"&&n.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var x=this;function O(ye,z){return oe.type="throw",oe.arg=C,x.next=ye,z&&(x.method="next",x.arg=e),!!z}for(var $=this.tryEntries.length-1;$>=0;--$){var P=this.tryEntries[$],oe=P.completion;if(P.tryLoc==="root")return O("end");if(P.tryLoc<=this.prev){var xe=n.call(P,"catchLoc"),ne=n.call(P,"finallyLoc");if(xe&&ne){if(this.prev<P.catchLoc)return O(P.catchLoc,!0);if(this.prev<P.finallyLoc)return O(P.finallyLoc)}else if(xe){if(this.prev<P.catchLoc)return O(P.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return O(P.finallyLoc)}}}},abrupt:function(C,x){for(var O=this.tryEntries.length-1;O>=0;--O){var $=this.tryEntries[O];if($.tryLoc<=this.prev&&n.call($,"finallyLoc")&&this.prev<$.finallyLoc){var P=$;break}}P&&(C==="break"||C==="continue")&&P.tryLoc<=x&&x<=P.finallyLoc&&(P=null);var oe=P?P.completion:{};return oe.type=C,oe.arg=x,P?(this.method="next",this.next=P.finallyLoc,D):this.complete(oe)},complete:function(C,x){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&x&&(this.next=x),D},finish:function(C){for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x];if(O.finallyLoc===C)return this.complete(O.completion,O.afterLoc),re(O),D}},catch:function(C){for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x];if(O.tryLoc===C){var $=O.completion;if($.type==="throw"){var P=$.arg;re(O)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(C,x,O){return this.delegate={iterator:v(C),resultName:x,nextLoc:O},this.method==="next"&&(this.arg=e),D}},t}Wt.exports=t0,Wt.exports.__esModule=!0,Wt.exports.default=Wt.exports});var i0=g(($P,n0)=>{var Cs=r0()();n0.exports=Cs;try{regeneratorRuntime=Cs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Cs:Function("r","regeneratorRuntime = r")(Cs)}});var o0=g((c8,Sa)=>{"use strict";var s0=(e,...t)=>new Promise(r=>{r(e(...t))});Sa.exports=s0;Sa.exports.default=s0});var a0=g((l8,Fa)=>{"use strict";var iv=o0(),u0=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(u,a,...c)=>{r++;let l=iv(u,...c);a(l),l.then(n,n)},s=(u,a,...c)=>{r<e?i(u,a,...c):t.push(i.bind(null,u,a,...c))},o=(u,...a)=>new Promise(c=>s(u,c,...a));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Fa.exports=u0;Fa.exports.default=u0});var f0=g((f8,Ra)=>{"use strict";var c0=a0(),Ss=class extends Error{constructor(t){super(),this.value=t}},sv=async(e,t)=>t(await e),ov=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Ss(t[0]);return!1},l0=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=c0(r.concurrency),i=[...e].map(o=>[o,n(sv,o,t)]),s=c0(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(ov,o)))}catch(o){if(o instanceof Ss)return o.value;throw o}};Ra.exports=l0;Ra.exports.default=l0});var y0=g((h8,Oa)=>{"use strict";var h0=require("path"),Fs=require("fs"),{promisify:p0}=require("util"),uv=f0(),av=p0(Fs.stat),cv=p0(Fs.lstat),d0={directory:"isDirectory",file:"isFile"};function m0({type:e}){if(!(e in d0))throw new Error(`Invalid type specified: ${e}`)}var g0=(e,t)=>e===void 0||t[d0[e]]();Oa.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},m0(t);let r=t.allowSymlinks?av:cv;return uv(e,async n=>{try{let i=await r(h0.resolve(t.cwd,n));return g0(t.type,i)}catch{return!1}},t)};Oa.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},m0(t);let r=t.allowSymlinks?Fs.statSync:Fs.lstatSync;for(let n of e)try{let i=r(h0.resolve(t.cwd,n));if(g0(t.type,i))return n}catch{}}});var b0=g((p8,Ta)=>{"use strict";var E0=require("fs"),{promisify:lv}=require("util"),fv=lv(E0.access);Ta.exports=async e=>{try{return await fv(e),!0}catch{return!1}};Ta.exports.sync=e=>{try{return E0.accessSync(e),!0}catch{return!1}}});var D0=g((d8,yn)=>{"use strict";var dr=require("path"),Rs=y0(),_0=b0(),ka=Symbol("findUp.stop");yn.exports=async(e,t={})=>{let r=dr.resolve(t.cwd||""),{root:n}=dr.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Rs(i,o);let u=await e(o.cwd);return typeof u=="string"?Rs([u],o):u};for(;;){let o=await s({...t,cwd:r});if(o===ka)return;if(o)return dr.resolve(r,o);if(r===n)return;r=dr.dirname(r)}};yn.exports.sync=(e,t={})=>{let r=dr.resolve(t.cwd||""),{root:n}=dr.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Rs.sync(i,o);let u=e(o.cwd);return typeof u=="string"?Rs.sync([u],o):u};for(;;){let o=s({...t,cwd:r});if(o===ka)return;if(o)return dr.resolve(r,o);if(r===n)return;r=dr.dirname(r)}};yn.exports.exists=_0;yn.exports.sync.exists=_0.sync;yn.exports.stop=ka});var Rd=g(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.splitWhen=An.flatten=void 0;function Xw(e){return e.reduce((t,r)=>[].concat(t,r),[])}An.flatten=Xw;function Zw(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}An.splitWhen=Zw});var Od=g(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.isEnoentCodeError=void 0;function Jw(e){return e.code==="ENOENT"}Hs.isEnoentCodeError=Jw});var Td=g(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.createDirentFromStats=void 0;var rc=class{constructor(t,r){this.name=t,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 Qw(e,t){return new rc(e,t)}Gs.createDirentFromStats=Qw});var kd=g(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.removeLeadingDotSegment=Ot.escape=Ot.makeAbsolute=Ot.unixify=void 0;var eC=require("path"),tC=2,rC=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function nC(e){return e.replace(/\\/g,"/")}Ot.unixify=nC;function iC(e,t){return eC.resolve(e,t)}Ot.makeAbsolute=iC;function sC(e){return e.replace(rC,"\\$2")}Ot.escape=sC;function oC(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(tC)}return e}Ot.removeLeadingDotSegment=oC});var Pd=g((P8,Bd)=>{Bd.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Nd=g((I8,Ld)=>{var uC=Pd(),Id={"{":"}","(":")","[":"]"},aC=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var u=e[t+1];t+=2;var a=Id[u];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},cC=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Id[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Ld.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(uC(t))return!0;var n=aC;return r&&r.strict===!1&&(n=cC),n(t)}});var qd=g((L8,Md)=>{"use strict";var lC=Nd(),fC=require("path").posix.dirname,hC=require("os").platform()==="win32",nc="/",pC=/\\/g,dC=/[\{\[].*[\}\]]$/,mC=/(^|[^\\])([\{\[]|\([^\)]+$)/,gC=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Md.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&hC&&t.indexOf(nc)<0&&(t=t.replace(pC,nc)),dC.test(t)&&(t+=nc),t+="a";do t=fC(t);while(lC(t)||mC.test(t));return t.replace(gC,"$1")}});var Us=g(dt=>{"use strict";dt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;dt.find=(e,t)=>e.nodes.find(r=>r.type===t);dt.exceedsLimit=(e,t,r=1,n)=>n===!1||!dt.isInteger(e)||!dt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;dt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};dt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);dt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;dt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;dt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);dt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Ws=g((M8,$d)=>{"use strict";var jd=Us();$d.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&jd.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u="";if(n.value)return(s||o)&&jd.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let a of n.nodes)u+=r(a);return u};return r(e)}});var Gd=g((q8,Hd)=>{"use strict";Hd.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Jd=g((j8,Zd)=>{"use strict";var Ud=Gd(),zr=(e,t,r)=>{if(Ud(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Ud(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),u=String(n.wrap),a=e+":"+t+"="+i+s+o+u;if(zr.cache.hasOwnProperty(a))return zr.cache[a].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let f=Xd(e)||Xd(t),p={min:e,max:t,a:c,b:l},_=[],E=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),c<0){let m=l<0?Math.abs(l):1;E=Wd(m,Math.abs(c),p,n),c=p.a=0}return l>=0&&(_=Wd(c,l,p,n)),p.negatives=E,p.positives=_,p.result=yC(E,_,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&_.length+E.length>1&&(p.result=`(?:${p.result})`),zr.cache[a]=p,p.result};function yC(e,t,r){let n=ic(e,t,"-",!1,r)||[],i=ic(t,e,"",!1,r)||[],s=ic(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function EC(e,t){let r=1,n=1,i=Yd(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Yd(e,r);for(i=Vd(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Vd(t+1,n)-1;return s=[...s],s.sort(DC),s}function bC(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=_C(e,t),i=n.length,s="",o=0;for(let u=0;u<i;u++){let[a,c]=n[u];a===c?s+=a:a!=="0"||c!=="9"?s+=AC(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Wd(e,t,r,n){let i=EC(e,t),s=[],o=e,u;for(let a=0;a<i.length;a++){let c=i[a],l=bC(String(o),String(c),n),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+Kd(u.count),o=c+1;continue}r.isPadded&&(f=vC(c,r,n)),l.string=f+l.pattern+Kd(l.count),s.push(l),o=c+1,u=l}return s}function ic(e,t,r,n,i){let s=[];for(let o of e){let{string:u}=o;!n&&!zd(t,"string",u)&&s.push(r+u),n&&zd(t,"string",u)&&s.push(r+u)}return s}function _C(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function DC(e,t){return e>t?1:t>e?-1:0}function zd(e,t,r){return e.some(n=>n[t]===r)}function Yd(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Vd(e,t){return e-e%Math.pow(10,t)}function Kd(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function AC(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Xd(e){return/^-?(0+)\d/.test(e)}function vC(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}zr.cache={};zr.clearCache=()=>zr.cache={};Zd.exports=zr});var uc=g(($8,sm)=>{"use strict";var xC=require("util"),em=Jd(),Qd=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),wC=e=>t=>e===!0?Number(t):String(t),sc=e=>typeof e=="number"||typeof e=="string"&&e!=="",Li=e=>Number.isInteger(+e),oc=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},CC=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,SC=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Ys=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},FC=(e,t,r)=>{e.negatives.sort((u,a)=>u<a?-1:u>a?1:0),e.positives.sort((u,a)=>u<a?-1:u>a?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(u=>Ys(String(u),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(u=>Ys(String(u),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},tm=(e,t,r,n)=>{if(r)return em(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},rm=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return em(e,t,r)},nm=(...e)=>new RangeError("Invalid range arguments: "+xC.inspect(...e)),im=(e,t,r)=>{if(r.strictRanges===!0)throw nm([e,t]);return[]},RC=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},OC=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw nm([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,u=String(e),a=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=oc(u)||oc(a)||oc(c),f=l?Math.max(u.length,a.length,c.length):0,p=l===!1&&CC(e,t,n)===!1,_=n.transform||wC(p);if(n.toRegex&&r===1)return tm(Ys(e,f),Ys(t,f),!0,n);let E={negatives:[],positives:[]},m=R=>E[R<0?"negatives":"positives"].push(Math.abs(R)),D=[],A=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):D.push(SC(_(i,A),f,p)),i=o?i-r:i+r,A++;return n.toRegex===!0?r>1?FC(E,n,f):rm(D,null,{wrap:!1,...n}):D},TC=(e,t,r=1,n={})=>{if(!Li(e)&&e.length>1||!Li(t)&&t.length>1)return im(e,t,n);let i=n.transform||(p=>String.fromCharCode(p)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),u=s>o,a=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return tm(a,c,!1,n);let l=[],f=0;for(;u?s>=o:s<=o;)l.push(i(s,f)),s=u?s-r:s+r,f++;return n.toRegex===!0?rm(l,null,{wrap:!1,options:n}):l},zs=(e,t,r,n={})=>{if(t==null&&sc(e))return[e];if(!sc(e)||!sc(t))return im(e,t,n);if(typeof r=="function")return zs(e,t,1,{transform:r});if(Qd(r))return zs(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Li(r)?Li(e)&&Li(t)?OC(e,t,r,i):TC(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Qd(r)?RC(r,i):zs(e,t,1,r)};sm.exports=zs});var am=g((H8,um)=>{"use strict";var kC=uc(),om=Us(),BC=(e,t={})=>{let r=(n,i={})=>{let s=om.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u=s===!0||o===!0,a=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return a+n.value;if(n.isClose===!0)return console.log("node.isClose",a,n.value),a+n.value;if(n.type==="open")return u?a+n.value:"(";if(n.type==="close")return u?a+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":u?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=om.reduce(n.nodes),f=kC(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(e)};um.exports=BC});var fm=g((G8,lm)=>{"use strict";var PC=uc(),cm=Ws(),vn=Us(),Yr=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?vn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Yr(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Yr(i,s,r):i+s);return vn.flatten(n)},IC=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(i.invalid||i.dollar){u.push(Yr(u.pop(),cm(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){u.push(Yr(u.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=vn.reduce(i.nodes);if(vn.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=PC(...f,t);p.length===0&&(p=cm(i,t)),u.push(Yr(u.pop(),p)),i.nodes=[];return}let a=vn.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let p=i.nodes[f];if(p.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(p.type==="close"){u.push(Yr(u.pop(),c,a));continue}if(p.value&&p.type!=="open"){c.push(Yr(c.pop(),p.value));continue}p.nodes&&n(p,i)}return c};return vn.flatten(n(e))};lm.exports=IC});var pm=g((U8,hm)=>{"use strict";hm.exports={MAX_LENGTH:1e4,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:`
|
|
3
|
-
`,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 Em=g((W8,ym)=>{"use strict";var LC=Ws(),{MAX_LENGTH:dm,CHAR_BACKSLASH:ac,CHAR_BACKTICK:NC,CHAR_COMMA:MC,CHAR_DOT:qC,CHAR_LEFT_PARENTHESES:jC,CHAR_RIGHT_PARENTHESES:$C,CHAR_LEFT_CURLY_BRACE:HC,CHAR_RIGHT_CURLY_BRACE:GC,CHAR_LEFT_SQUARE_BRACKET:mm,CHAR_RIGHT_SQUARE_BRACKET:gm,CHAR_DOUBLE_QUOTE:UC,CHAR_SINGLE_QUOTE:WC,CHAR_NO_BREAK_SPACE:zC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:YC}=pm(),VC=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(dm,r.maxLength):dm;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,u=i,a=0,c=e.length,l=0,f=0,p,_=()=>e[l++],E=m=>{if(m.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&m.type==="text"){u.value+=m.value;return}return o.nodes.push(m),m.parent=o,m.prev=u,u=m,m};for(E({type:"bos"});l<c;)if(o=s[s.length-1],p=_(),!(p===YC||p===zC)){if(p===ac){E({type:"text",value:(t.keepEscaping?p:"")+_()});continue}if(p===gm){E({type:"text",value:"\\"+p});continue}if(p===mm){a++;let m;for(;l<c&&(m=_());){if(p+=m,m===mm){a++;continue}if(m===ac){p+=_();continue}if(m===gm&&(a--,a===0))break}E({type:"text",value:p});continue}if(p===jC){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:p});continue}if(p===$C){if(o.type!=="paren"){E({type:"text",value:p});continue}o=s.pop(),E({type:"text",value:p}),o=s[s.length-1];continue}if(p===UC||p===WC||p===NC){let m=p,D;for(t.keepQuotes!==!0&&(p="");l<c&&(D=_());){if(D===ac){p+=D+_();continue}if(D===m){t.keepQuotes===!0&&(p+=D);break}p+=D}E({type:"text",value:p});continue}if(p===HC){f++;let D={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=E(D),s.push(o),E({type:"open",value:p});continue}if(p===GC){if(o.type!=="brace"){E({type:"text",value:p});continue}let m="close";o=s.pop(),o.close=!0,E({type:m,value:p}),f--,o=s[s.length-1];continue}if(p===MC&&f>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:LC(o)}]}E({type:"comma",value:p}),o.commas++;continue}if(p===qC&&f>0&&o.commas===0){let m=o.nodes;if(f===0||m.length===0){E({type:"text",value:p});continue}if(u.type==="dot"){if(o.range=[],u.value+=p,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"){m.pop();let D=m[m.length-1];D.value+=u.value+p,u=D,o.ranges--;continue}E({type:"dot",value:p});continue}E({type:"text",value:p})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(A=>{A.nodes||(A.type==="open"&&(A.isOpen=!0),A.type==="close"&&(A.isClose=!0),A.nodes||(A.type="text"),A.invalid=!0)});let m=s[s.length-1],D=m.nodes.indexOf(o);m.nodes.splice(D,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};ym.exports=VC});var Dm=g((z8,_m)=>{"use strict";var bm=Ws(),KC=am(),XC=fm(),ZC=Em(),ot=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ot.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ot.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ot.parse=(e,t={})=>ZC(e,t);ot.stringify=(e,t={})=>bm(typeof e=="string"?ot.parse(e,t):e,t);ot.compile=(e,t={})=>(typeof e=="string"&&(e=ot.parse(e,t)),KC(e,t));ot.expand=(e,t={})=>{typeof e=="string"&&(e=ot.parse(e,t));let r=XC(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ot.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ot.compile(e,t):ot.expand(e,t);_m.exports=ot});var Ni=g((Y8,Cm)=>{"use strict";var JC=require("path"),Tt="\\\\/",Am=`[^${Tt}]`,Zt="\\.",QC="\\+",eS="\\?",Vs="\\/",tS="(?=.)",vm="[^/]",cc=`(?:${Vs}|$)`,xm=`(?:^|${Vs})`,lc=`${Zt}{1,2}${cc}`,rS=`(?!${Zt})`,nS=`(?!${xm}${lc})`,iS=`(?!${Zt}{0,1}${cc})`,sS=`(?!${lc})`,oS=`[^.${Vs}]`,uS=`${vm}*?`,wm={DOT_LITERAL:Zt,PLUS_LITERAL:QC,QMARK_LITERAL:eS,SLASH_LITERAL:Vs,ONE_CHAR:tS,QMARK:vm,END_ANCHOR:cc,DOTS_SLASH:lc,NO_DOT:rS,NO_DOTS:nS,NO_DOT_SLASH:iS,NO_DOTS_SLASH:sS,QMARK_NO_DOT:oS,STAR:uS,START_ANCHOR:xm},aS={...wm,SLASH_LITERAL:`[${Tt}]`,QMARK:Am,STAR:`${Am}*?`,DOTS_SLASH:`${Zt}{1,2}(?:[${Tt}]|$)`,NO_DOT:`(?!${Zt})`,NO_DOTS:`(?!(?:^|[${Tt}])${Zt}{1,2}(?:[${Tt}]|$))`,NO_DOT_SLASH:`(?!${Zt}{0,1}(?:[${Tt}]|$))`,NO_DOTS_SLASH:`(?!${Zt}{1,2}(?:[${Tt}]|$))`,QMARK_NO_DOT:`[^.${Tt}]`,START_ANCHOR:`(?:^|[${Tt}])`,END_ANCHOR:`(?:[${Tt}]|$)`},cS={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"};Cm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:cS,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:JC.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?aS:wm}}});var Mi=g(Je=>{"use strict";var lS=require("path"),fS=process.platform==="win32",{REGEX_BACKSLASH:hS,REGEX_REMOVE_BACKSLASH:pS,REGEX_SPECIAL_CHARS:dS,REGEX_SPECIAL_CHARS_GLOBAL:mS}=Ni();Je.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Je.hasRegexChars=e=>dS.test(e);Je.isRegexChar=e=>e.length===1&&Je.hasRegexChars(e);Je.escapeRegex=e=>e.replace(mS,"\\$1");Je.toPosixSlashes=e=>e.replace(hS,"/");Je.removeBackslashes=e=>e.replace(pS,t=>t==="\\"?"":t);Je.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Je.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:fS===!0||lS.sep==="\\";Je.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Je.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Je.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Je.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Pm=g((K8,Bm)=>{"use strict";var Sm=Mi(),{CHAR_ASTERISK:fc,CHAR_AT:gS,CHAR_BACKWARD_SLASH:qi,CHAR_COMMA:yS,CHAR_DOT:hc,CHAR_EXCLAMATION_MARK:pc,CHAR_FORWARD_SLASH:km,CHAR_LEFT_CURLY_BRACE:dc,CHAR_LEFT_PARENTHESES:mc,CHAR_LEFT_SQUARE_BRACKET:ES,CHAR_PLUS:bS,CHAR_QUESTION_MARK:Fm,CHAR_RIGHT_CURLY_BRACE:_S,CHAR_RIGHT_PARENTHESES:Rm,CHAR_RIGHT_SQUARE_BRACKET:DS}=Ni(),Om=e=>e===km||e===qi,Tm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},AS=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=e,c=-1,l=0,f=0,p=!1,_=!1,E=!1,m=!1,D=!1,A=!1,R=!1,M=!1,W=!1,L=!1,X=0,G,U,J={value:"",depth:0,isGlob:!1},ge=()=>c>=n,w=()=>a.charCodeAt(c+1),se=()=>(G=U,a.charCodeAt(++c));for(;c<n;){U=se();let C;if(U===qi){R=J.backslashes=!0,U=se(),U===dc&&(A=!0);continue}if(A===!0||U===dc){for(X++;ge()!==!0&&(U=se());){if(U===qi){R=J.backslashes=!0,se();continue}if(U===dc){X++;continue}if(A!==!0&&U===hc&&(U=se())===hc){if(p=J.isBrace=!0,E=J.isGlob=!0,L=!0,i===!0)continue;break}if(A!==!0&&U===yS){if(p=J.isBrace=!0,E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===_S&&(X--,X===0)){A=!1,p=J.isBrace=!0,L=!0;break}}if(i===!0)continue;break}if(U===km){if(s.push(c),o.push(J),J={value:"",depth:0,isGlob:!1},L===!0)continue;if(G===hc&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(U===bS||U===gS||U===fc||U===Fm||U===pc)===!0&&w()===mc){if(E=J.isGlob=!0,m=J.isExtglob=!0,L=!0,U===pc&&c===l&&(W=!0),i===!0){for(;ge()!==!0&&(U=se());){if(U===qi){R=J.backslashes=!0,U=se();continue}if(U===Rm){E=J.isGlob=!0,L=!0;break}}continue}break}if(U===fc){if(G===fc&&(D=J.isGlobstar=!0),E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===Fm){if(E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===ES){for(;ge()!==!0&&(C=se());){if(C===qi){R=J.backslashes=!0,se();continue}if(C===DS){_=J.isBracket=!0,E=J.isGlob=!0,L=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&U===pc&&c===l){M=J.negated=!0,l++;continue}if(r.noparen!==!0&&U===mc){if(E=J.isGlob=!0,i===!0){for(;ge()!==!0&&(U=se());){if(U===mc){R=J.backslashes=!0,U=se();continue}if(U===Rm){L=!0;break}}continue}break}if(E===!0){if(L=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,E=!1);let re=a,Xe="",v="";l>0&&(Xe=a.slice(0,l),a=a.slice(l),f-=l),re&&E===!0&&f>0?(re=a.slice(0,f),v=a.slice(f)):E===!0?(re="",v=a):re=a,re&&re!==""&&re!=="/"&&re!==a&&Om(re.charCodeAt(re.length-1))&&(re=re.slice(0,-1)),r.unescape===!0&&(v&&(v=Sm.removeBackslashes(v)),re&&R===!0&&(re=Sm.removeBackslashes(re)));let b={prefix:Xe,input:e,start:l,base:re,glob:v,isBrace:p,isBracket:_,isGlob:E,isExtglob:m,isGlobstar:D,negated:M,negatedExtglob:W};if(r.tokens===!0&&(b.maxDepth=0,Om(U)||o.push(J),b.tokens=o),r.parts===!0||r.tokens===!0){let C;for(let x=0;x<s.length;x++){let O=C?C+1:l,$=s[x],P=e.slice(O,$);r.tokens&&(x===0&&l!==0?(o[x].isPrefix=!0,o[x].value=Xe):o[x].value=P,Tm(o[x]),b.maxDepth+=o[x].depth),(x!==0||P!=="")&&u.push(P),C=$}if(C&&C+1<e.length){let x=e.slice(C+1);u.push(x),r.tokens&&(o[o.length-1].value=x,Tm(o[o.length-1]),b.maxDepth+=o[o.length-1].depth)}b.slashes=s,b.parts=u}return b};Bm.exports=AS});var Nm=g((X8,Lm)=>{"use strict";var Ks=Ni(),ut=Mi(),{MAX_LENGTH:Xs,POSIX_REGEX_SOURCE:vS,REGEX_NON_SPECIAL_CHARS:xS,REGEX_SPECIAL_CHARS_BACKREF:wS,REPLACEMENTS:Im}=Ks,CS=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>ut.escapeRegex(i)).join("..")}return r},xn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,gc=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Im[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Xs,r.maxLength):Xs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],u=r.capture?"":"?:",a=ut.isWindows(t),c=Ks.globChars(a),l=Ks.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:E,DOTS_SLASH:m,NO_DOT:D,NO_DOT_SLASH:A,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:W,STAR:L,START_ANCHOR:X}=c,G=k=>`(${u}(?:(?!${X}${k.dot?m:f}).)*?)`,U=r.dot?"":D,J=r.dot?M:W,ge=r.bash===!0?G(r):L;r.capture&&(ge=`(${ge})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={input:e,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};e=ut.removePrefix(e,w),i=e.length;let se=[],re=[],Xe=[],v=s,b,C=()=>w.index===i-1,x=w.peek=(k=1)=>e[w.index+k],O=w.advance=()=>e[++w.index]||"",$=()=>e.slice(w.index+1),P=(k="",ae=0)=>{w.consumed+=k,w.index+=ae},oe=k=>{w.output+=k.output!=null?k.output:k.value,P(k.value)},xe=()=>{let k=1;for(;x()==="!"&&(x(2)!=="("||x(3)==="?");)O(),w.start++,k++;return k%2===0?!1:(w.negated=!0,w.start++,!0)},ne=k=>{w[k]++,Xe.push(k)},ye=k=>{w[k]--,Xe.pop()},z=k=>{if(v.type==="globstar"){let ae=w.braces>0&&(k.type==="comma"||k.type==="brace"),T=k.extglob===!0||se.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!ae&&!T&&(w.output=w.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=ge,w.output+=v.output)}if(se.length&&k.type!=="paren"&&(se[se.length-1].inner+=k.value),(k.value||k.output)&&oe(k),v&&v.type==="text"&&k.type==="text"){v.value+=k.value,v.output=(v.output||"")+k.value;return}k.prev=v,o.push(k),v=k},ze=(k,ae)=>{let T={...l[ae],conditions:1,inner:""};T.prev=v,T.parens=w.parens,T.output=w.output;let h=(r.capture?"(":"")+T.open;ne("parens"),z({type:k,value:ae,output:w.output?"":E}),z({type:"paren",extglob:!0,value:O(),output:h}),se.push(T)},st=k=>{let ae=k.close+(r.capture?")":""),T;if(k.type==="negate"){let h=ge;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(h=G(r)),(h!==ge||C()||/^\)+$/.test($()))&&(ae=k.close=`)$))${h}`),k.inner.includes("*")&&(T=$())&&/^\.[^\\/.]+$/.test(T)){let y=gc(T,{...t,fastpaths:!1}).output;ae=k.close=`)${y})${h})`}k.prev.type==="bos"&&(w.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:b,output:ae}),ye("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,ae=e.replace(wS,(T,h,y,d,F,N)=>d==="\\"?(k=!0,T):d==="?"?h?h+d+(F?M.repeat(F.length):""):N===0?J+(F?M.repeat(F.length):""):M.repeat(y.length):d==="."?f.repeat(y.length):d==="*"?h?h+d+(F?ge:""):ge:h?T:`\\${T}`);return k===!0&&(r.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,T=>T.length%2===0?"\\\\":T?"\\":"")),ae===e&&r.contains===!0?(w.output=e,w):(w.output=ut.wrapOutput(ae,w,t),w)}for(;!C();){if(b=O(),b==="\0")continue;if(b==="\\"){let T=x();if(T==="/"&&r.bash!==!0||T==="."||T===";")continue;if(!T){b+="\\",z({type:"text",value:b});continue}let h=/^\\+/.exec($()),y=0;if(h&&h[0].length>2&&(y=h[0].length,w.index+=y,y%2!==0&&(b+="\\")),r.unescape===!0?b=O():b+=O(),w.brackets===0){z({type:"text",value:b});continue}}if(w.brackets>0&&(b!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&b===":"){let T=v.value.slice(1);if(T.includes("[")&&(v.posix=!0,T.includes(":"))){let h=v.value.lastIndexOf("["),y=v.value.slice(0,h),d=v.value.slice(h+2),F=vS[d];if(F){v.value=y+F,w.backtrack=!0,O(),!s.output&&o.indexOf(v)===1&&(s.output=E);continue}}}(b==="["&&x()!==":"||b==="-"&&x()==="]")&&(b=`\\${b}`),b==="]"&&(v.value==="["||v.value==="[^")&&(b=`\\${b}`),r.posix===!0&&b==="!"&&v.value==="["&&(b="^"),v.value+=b,oe({value:b});continue}if(w.quotes===1&&b!=='"'){b=ut.escapeRegex(b),v.value+=b,oe({value:b});continue}if(b==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:b});continue}if(b==="("){ne("parens"),z({type:"paren",value:b});continue}if(b===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(xn("opening","("));let T=se[se.length-1];if(T&&w.parens===T.parens+1){st(se.pop());continue}z({type:"paren",value:b,output:w.parens?")":"\\)"}),ye("parens");continue}if(b==="["){if(r.nobracket===!0||!$().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));b=`\\${b}`}else ne("brackets");z({type:"bracket",value:b});continue}if(b==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){z({type:"text",value:b,output:`\\${b}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(xn("opening","["));z({type:"text",value:b,output:`\\${b}`});continue}ye("brackets");let T=v.value.slice(1);if(v.posix!==!0&&T[0]==="^"&&!T.includes("/")&&(b=`/${b}`),v.value+=b,oe({value:b}),r.literalBrackets===!1||ut.hasRegexChars(T))continue;let h=ut.escapeRegex(v.value);if(w.output=w.output.slice(0,-v.value.length),r.literalBrackets===!0){w.output+=h,v.value=h;continue}v.value=`(${u}${h}|${v.value})`,w.output+=v.value;continue}if(b==="{"&&r.nobrace!==!0){ne("braces");let T={type:"brace",value:b,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};re.push(T),z(T);continue}if(b==="}"){let T=re[re.length-1];if(r.nobrace===!0||!T){z({type:"text",value:b,output:b});continue}let h=")";if(T.dots===!0){let y=o.slice(),d=[];for(let F=y.length-1;F>=0&&(o.pop(),y[F].type!=="brace");F--)y[F].type!=="dots"&&d.unshift(y[F].value);h=CS(d,r),w.backtrack=!0}if(T.comma!==!0&&T.dots!==!0){let y=w.output.slice(0,T.outputIndex),d=w.tokens.slice(T.tokensIndex);T.value=T.output="\\{",b=h="\\}",w.output=y;for(let F of d)w.output+=F.output||F.value}z({type:"brace",value:b,output:h}),ye("braces"),re.pop();continue}if(b==="|"){se.length>0&&se[se.length-1].conditions++,z({type:"text",value:b});continue}if(b===","){let T=b,h=re[re.length-1];h&&Xe[Xe.length-1]==="braces"&&(h.comma=!0,T="|"),z({type:"comma",value:b,output:T});continue}if(b==="/"){if(v.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",o.pop(),v=s;continue}z({type:"slash",value:b,output:_});continue}if(b==="."){if(w.braces>0&&v.type==="dot"){v.value==="."&&(v.output=f);let T=re[re.length-1];v.type="dots",v.output+=b,v.value+=b,T.dots=!0;continue}if(w.braces+w.parens===0&&v.type!=="bos"&&v.type!=="slash"){z({type:"text",value:b,output:f});continue}z({type:"dot",value:b,output:f});continue}if(b==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&x()==="("&&x(2)!=="?"){ze("qmark",b);continue}if(v&&v.type==="paren"){let h=x(),y=b;if(h==="<"&&!ut.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(h)||h==="<"&&!/<([!=]|\w+>)/.test($()))&&(y=`\\${b}`),z({type:"text",value:b,output:y});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){z({type:"qmark",value:b,output:W});continue}z({type:"qmark",value:b,output:M});continue}if(b==="!"){if(r.noextglob!==!0&&x()==="("&&(x(2)!=="?"||!/[!=<:]/.test(x(3)))){ze("negate",b);continue}if(r.nonegate!==!0&&w.index===0){xe();continue}}if(b==="+"){if(r.noextglob!==!0&&x()==="("&&x(2)!=="?"){ze("plus",b);continue}if(v&&v.value==="("||r.regex===!1){z({type:"plus",value:b,output:p});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||w.parens>0){z({type:"plus",value:b});continue}z({type:"plus",value:p});continue}if(b==="@"){if(r.noextglob!==!0&&x()==="("&&x(2)!=="?"){z({type:"at",extglob:!0,value:b,output:""});continue}z({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let T=xS.exec($());T&&(b+=T[0],w.index+=T[0].length),z({type:"text",value:b});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=b,v.output=ge,w.backtrack=!0,w.globstar=!0,P(b);continue}let k=$();if(r.noextglob!==!0&&/^\([^?]/.test(k)){ze("star",b);continue}if(v.type==="star"){if(r.noglobstar===!0){P(b);continue}let T=v.prev,h=T.prev,y=T.type==="slash"||T.type==="bos",d=h&&(h.type==="star"||h.type==="globstar");if(r.bash===!0&&(!y||k[0]&&k[0]!=="/")){z({type:"star",value:b,output:""});continue}let F=w.braces>0&&(T.type==="comma"||T.type==="brace"),N=se.length&&(T.type==="pipe"||T.type==="paren");if(!y&&T.type!=="paren"&&!F&&!N){z({type:"star",value:b,output:""});continue}for(;k.slice(0,3)==="/**";){let I=e[w.index+4];if(I&&I!=="/")break;k=k.slice(3),P("/**",3)}if(T.type==="bos"&&C()){v.type="globstar",v.value+=b,v.output=G(r),w.output=v.output,w.globstar=!0,P(b);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&!d&&C()){w.output=w.output.slice(0,-(T.output+v.output).length),T.output=`(?:${T.output}`,v.type="globstar",v.output=G(r)+(r.strictSlashes?")":"|$)"),v.value+=b,w.globstar=!0,w.output+=T.output+v.output,P(b);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&k[0]==="/"){let I=k[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(T.output+v.output).length),T.output=`(?:${T.output}`,v.type="globstar",v.output=`${G(r)}${_}|${_}${I})`,v.value+=b,w.output+=T.output+v.output,w.globstar=!0,P(b+O()),z({type:"slash",value:"/",output:""});continue}if(T.type==="bos"&&k[0]==="/"){v.type="globstar",v.value+=b,v.output=`(?:^|${_}|${G(r)}${_})`,w.output=v.output,w.globstar=!0,P(b+O()),z({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-v.output.length),v.type="globstar",v.output=G(r),v.value+=b,w.output+=v.output,w.globstar=!0,P(b);continue}let ae={type:"star",value:b,output:ge};if(r.bash===!0){ae.output=".*?",(v.type==="bos"||v.type==="slash")&&(ae.output=U+ae.output),z(ae);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){ae.output=b,z(ae);continue}(w.index===w.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(w.output+=A,v.output+=A):r.dot===!0?(w.output+=R,v.output+=R):(w.output+=U,v.output+=U),x()!=="*"&&(w.output+=E,v.output+=E)),z(ae)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));w.output=ut.escapeLast(w.output,"["),ye("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing",")"));w.output=ut.escapeLast(w.output,"("),ye("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","}"));w.output=ut.escapeLast(w.output,"{"),ye("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${_}?`}),w.backtrack===!0){w.output="";for(let k of w.tokens)w.output+=k.output!=null?k.output:k.value,k.suffix&&(w.output+=k.suffix)}return w};gc.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Xs,r.maxLength):Xs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Im[e]||e;let s=ut.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:_,START_ANCHOR:E}=Ks.globChars(s),m=r.dot?f:l,D=r.dot?p:l,A=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":_;r.capture&&(M=`(${M})`);let W=U=>U.noglobstar===!0?M:`(${A}(?:(?!${E}${U.dot?c:o}).)*?)`,L=U=>{switch(U){case"*":return`${m}${a}${M}`;case".*":return`${o}${a}${M}`;case"*.*":return`${m}${M}${o}${a}${M}`;case"*/*":return`${m}${M}${u}${a}${D}${M}`;case"**":return m+W(r);case"**/*":return`(?:${m}${W(r)}${u})?${D}${a}${M}`;case"**/*.*":return`(?:${m}${W(r)}${u})?${D}${M}${o}${a}${M}`;case"**/.*":return`(?:${m}${W(r)}${u})?${o}${a}${M}`;default:{let J=/^(.*?)\.(\w+)$/.exec(U);if(!J)return;let ge=L(J[1]);return ge?ge+o+J[2]:void 0}}},X=ut.removePrefix(e,R),G=L(X);return G&&r.strictSlashes!==!0&&(G+=`${u}?`),G};Lm.exports=gc});var qm=g((Z8,Mm)=>{"use strict";var SS=require("path"),FS=Pm(),yc=Nm(),Ec=Mi(),RS=Ni(),OS=e=>e&&typeof e=="object"&&!Array.isArray(e),_e=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(p=>_e(p,t,r));return p=>{for(let _ of l){let E=_(p);if(E)return E}return!1}}let n=OS(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Ec.isWindows(t),o=n?_e.compileRe(e,t):_e.makeRe(e,t,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};a=_e(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:p,match:_,output:E}=_e.test(l,o,t,{glob:e,posix:s}),m={glob:e,state:u,regex:o,posix:s,input:l,output:E,match:_,isMatch:p};return typeof i.onResult=="function"&&i.onResult(m),p===!1?(m.isMatch=!1,f?m:!1):a(l)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,f?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),f?m:!0)};return r&&(c.state=u),c};_e.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Ec.toPosixSlashes:null),u=e===n,a=u&&o?o(e):e;return u===!1&&(a=o?o(e):e,u=a===n),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=_e.matchBase(e,t,r,i):u=t.exec(a)),{isMatch:!!u,match:u,output:a}};_e.matchBase=(e,t,r,n=Ec.isWindows(r))=>(t instanceof RegExp?t:_e.makeRe(t,r)).test(SS.basename(e));_e.isMatch=(e,t,r)=>_e(t,r)(e);_e.parse=(e,t)=>Array.isArray(e)?e.map(r=>_e.parse(r,t)):yc(e,{...t,fastpaths:!1});_e.scan=(e,t)=>FS(e,t);_e.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",u=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let a=_e.toRegex(u,t);return n===!0&&(a.state=e),a};_e.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=yc.fastpaths(e,t)),i.output||(i=yc(e,t)),_e.compileRe(i,t,r,n)};_e.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};_e.constants=RS;Mm.exports=_e});var $m=g((J8,jm)=>{"use strict";jm.exports=qm()});var Ym=g((Q8,zm)=>{"use strict";var Gm=require("util"),Um=Dm(),kt=$m(),bc=Mi(),Hm=e=>e===""||e==="./",Wm=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},he=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,u=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let f=kt(String(t[l]),{...r,onResult:u},!0),p=f.state.negated||f.state.negatedExtglob;p&&o++;for(let _ of e){let E=f(_,!0);(p?!E.isMatch:E.isMatch)&&(p?n.add(E.output):(n.delete(E.output),i.add(E.output)))}}let c=(o===t.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};he.match=he;he.matcher=(e,t)=>kt(e,t);he.isMatch=(e,t,r)=>kt(t,r)(e);he.any=he.isMatch;he.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=u=>{r.onResult&&r.onResult(u),i.push(u.output)},o=new Set(he(e,t,{...r,onResult:s}));for(let u of i)o.has(u)||n.add(u);return[...n]};he.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Gm.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>he.contains(e,n,r));if(typeof t=="string"){if(Hm(e)||Hm(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return he.isMatch(e,t,{...r,contains:!0})};he.matchKeys=(e,t,r)=>{if(!bc.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=he(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};he.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=kt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};he.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=kt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};he.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Gm.inspect(e)}"`);return[].concat(t).every(n=>kt(n,r)(e))};he.capture=(e,t,r)=>{let n=bc.isWindows(r),s=kt.makeRe(String(e),{...r,capture:!0}).exec(n?bc.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};he.makeRe=(...e)=>kt.makeRe(...e);he.scan=(...e)=>kt.scan(...e);he.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Um(String(n),t))r.push(kt.parse(i,t));return r};he.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!Wm(e)?[e]:Um(e,t)};he.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return he.braces(e,{...t,expand:!0})};he.hasBraces=Wm;zm.exports=he});var tg=g(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.matchAny=V.convertPatternsToRe=V.makeRe=V.getPatternParts=V.expandBraceExpansion=V.expandPatternsWithBraceExpansion=V.isAffectDepthOfReadingPattern=V.endsWithSlashGlobStar=V.hasGlobStar=V.getBaseDirectory=V.isPatternRelatedToParentDirectory=V.getPatternsOutsideCurrentDirectory=V.getPatternsInsideCurrentDirectory=V.getPositivePatterns=V.getNegativePatterns=V.isPositivePattern=V.isNegativePattern=V.convertToNegativePattern=V.convertToPositivePattern=V.isDynamicPattern=V.isStaticPattern=void 0;var TS=require("path"),kS=qd(),_c=Ym(),Vm="**",BS="\\",PS=/[*?]|^!/,IS=/\[[^[]*]/,LS=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,NS=/[!*+?@]\([^(]*\)/,MS=/,|\.\./;function Km(e,t={}){return!Xm(e,t)}V.isStaticPattern=Km;function Xm(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(BS)||PS.test(e)||IS.test(e)||LS.test(e)||t.extglob!==!1&&NS.test(e)||t.braceExpansion!==!1&&qS(e))}V.isDynamicPattern=Xm;function qS(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return MS.test(n)}function jS(e){return Zs(e)?e.slice(1):e}V.convertToPositivePattern=jS;function $S(e){return"!"+e}V.convertToNegativePattern=$S;function Zs(e){return e.startsWith("!")&&e[1]!=="("}V.isNegativePattern=Zs;function Zm(e){return!Zs(e)}V.isPositivePattern=Zm;function HS(e){return e.filter(Zs)}V.getNegativePatterns=HS;function GS(e){return e.filter(Zm)}V.getPositivePatterns=GS;function US(e){return e.filter(t=>!Dc(t))}V.getPatternsInsideCurrentDirectory=US;function WS(e){return e.filter(Dc)}V.getPatternsOutsideCurrentDirectory=WS;function Dc(e){return e.startsWith("..")||e.startsWith("./..")}V.isPatternRelatedToParentDirectory=Dc;function zS(e){return kS(e,{flipBackslashes:!1})}V.getBaseDirectory=zS;function YS(e){return e.includes(Vm)}V.hasGlobStar=YS;function Jm(e){return e.endsWith("/"+Vm)}V.endsWithSlashGlobStar=Jm;function VS(e){let t=TS.basename(e);return Jm(e)||Km(t)}V.isAffectDepthOfReadingPattern=VS;function KS(e){return e.reduce((t,r)=>t.concat(Qm(r)),[])}V.expandPatternsWithBraceExpansion=KS;function Qm(e){return _c.braces(e,{expand:!0,nodupes:!0})}V.expandBraceExpansion=Qm;function XS(e,t){let{parts:r}=_c.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}V.getPatternParts=XS;function eg(e,t){return _c.makeRe(e,t)}V.makeRe=eg;function ZS(e,t){return e.map(r=>eg(r,t))}V.convertPatternsToRe=ZS;function JS(e,t){return t.some(r=>r.test(e))}V.matchAny=JS});var sg=g((t6,ig)=>{"use strict";var QS=require("stream"),rg=QS.PassThrough,e5=Array.prototype.slice;ig.exports=t5;function t5(){let e=[],t=e5.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=rg(n);function u(){for(let l=0,f=arguments.length;l<f;l++)e.push(ng(arguments[l],n));return a(),this}function a(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function p(){--f>0||(r=!1,a())}function _(E){function m(){E.removeListener("merge2UnpipeEnd",m),E.removeListener("end",m),s&&E.removeListener("error",D),p()}function D(A){o.emit("error",A)}if(E._readableState.endEmitted)return p();E.on("merge2UnpipeEnd",m),E.on("end",m),s&&E.on("error",D),E.pipe(o,{end:!1}),E.resume()}for(let E=0;E<l.length;E++)_(l[E]);p()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&u.apply(null,t),o}function ng(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ng(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(rg(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var ug=g(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.merge=void 0;var r5=sg();function n5(e){let t=r5(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>og(e)),t.once("end",()=>og(e)),t}Js.merge=n5;function og(e){e.forEach(t=>t.emit("close"))}});var ag=g(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.isEmpty=wn.isString=void 0;function i5(e){return typeof e=="string"}wn.isString=i5;function s5(e){return e===""}wn.isEmpty=s5});var Jt=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.string=Me.stream=Me.pattern=Me.path=Me.fs=Me.errno=Me.array=void 0;var o5=Rd();Me.array=o5;var u5=Od();Me.errno=u5;var a5=Td();Me.fs=a5;var c5=kd();Me.path=c5;var l5=tg();Me.pattern=l5;var f5=ug();Me.stream=f5;var h5=ag();Me.string=h5});var fg=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.convertPatternGroupToTask=qe.convertPatternGroupsToTasks=qe.groupPatternsByBaseDirectory=qe.getNegativePatternsAsPositive=qe.getPositivePatterns=qe.convertPatternsToTasks=qe.generate=void 0;var Qt=Jt();function p5(e,t){let r=cg(e),n=lg(e,t.ignore),i=r.filter(a=>Qt.pattern.isStaticPattern(a,t)),s=r.filter(a=>Qt.pattern.isDynamicPattern(a,t)),o=Ac(i,n,!1),u=Ac(s,n,!0);return o.concat(u)}qe.generate=p5;function Ac(e,t,r){let n=[],i=Qt.pattern.getPatternsOutsideCurrentDirectory(e),s=Qt.pattern.getPatternsInsideCurrentDirectory(e),o=vc(i),u=vc(s);return n.push(...xc(o,t,r)),"."in u?n.push(wc(".",s,t,r)):n.push(...xc(u,t,r)),n}qe.convertPatternsToTasks=Ac;function cg(e){return Qt.pattern.getPositivePatterns(e)}qe.getPositivePatterns=cg;function lg(e,t){return Qt.pattern.getNegativePatterns(e).concat(t).map(Qt.pattern.convertToPositivePattern)}qe.getNegativePatternsAsPositive=lg;function vc(e){let t={};return e.reduce((r,n)=>{let i=Qt.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}qe.groupPatternsByBaseDirectory=vc;function xc(e,t,r){return Object.keys(e).map(n=>wc(n,e[n],t,r))}qe.convertPatternGroupsToTasks=xc;function wc(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Qt.pattern.convertToNegativePattern))}}qe.convertPatternGroupToTask=wc});var pg=g(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.removeDuplicateSlashes=Cn.transform=void 0;var d5=/(?!^)\/{2,}/g;function m5(e){return e.map(t=>hg(t))}Cn.transform=m5;function hg(e){return e.replace(d5,"/")}Cn.removeDuplicateSlashes=hg});var mg=g(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.read=void 0;function g5(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){dg(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Cc(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){dg(r,s);return}Cc(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Cc(r,o)})})}Qs.read=g5;function dg(e,t){e(t)}function Cc(e,t){e(null,t)}});var gg=g(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.read=void 0;function y5(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}eo.read=y5});var yg=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.createFileSystemAdapter=Er.FILE_SYSTEM_ADAPTER=void 0;var to=require("fs");Er.FILE_SYSTEM_ADAPTER={lstat:to.lstat,stat:to.stat,lstatSync:to.lstatSync,statSync:to.statSync};function E5(e){return e===void 0?Er.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Er.FILE_SYSTEM_ADAPTER),e)}Er.createFileSystemAdapter=E5});var Eg=g(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var b5=yg(),Sc=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=b5.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};Fc.default=Sc});var Vr=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.statSync=br.stat=br.Settings=void 0;var bg=mg(),_5=gg(),Rc=Eg();br.Settings=Rc.default;function D5(e,t,r){if(typeof t=="function"){bg.read(e,Oc(),t);return}bg.read(e,Oc(t),r)}br.stat=D5;function A5(e,t){let r=Oc(t);return _5.read(e,r)}br.statSync=A5;function Oc(e={}){return e instanceof Rc.default?e:new Rc.default(e)}});var Ag=g((h6,Dg)=>{var _g;Dg.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(_g||(_g=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var xg=g((p6,vg)=>{vg.exports=x5;var v5=Ag();function x5(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(a){function c(){t&&t(a,r),t=null}s?v5(c):c()}function u(a,c,l){r[a]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(a){e[a](function(c,l){u(a,c,l)})}):e.forEach(function(a,c){a(function(l,f){u(c,l,f)})}):o(null),s=!1}});var Tc=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ro=process.versions.node.split(".");if(ro[0]===void 0||ro[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var wg=Number.parseInt(ro[0],10),w5=Number.parseInt(ro[1],10),Cg=10,C5=10,S5=wg>Cg,F5=wg===Cg&&w5>=C5;no.IS_SUPPORT_READDIR_WITH_FILE_TYPES=S5||F5});var Sg=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.createDirentFromStats=void 0;var kc=class{constructor(t,r){this.name=t,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 R5(e,t){return new kc(e,t)}io.createDirentFromStats=R5});var Bc=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.fs=void 0;var O5=Sg();so.fs=O5});var Pc=g(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.joinPathSegments=void 0;function T5(e,t,r){return e.endsWith(r)?e+t:e+r+t}oo.joinPathSegments=T5});var Bg=g(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.readdir=_r.readdirWithFileTypes=_r.read=void 0;var k5=Vr(),Fg=xg(),B5=Tc(),Rg=Bc(),Og=Pc();function P5(e,t,r){if(!t.stats&&B5.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Tg(e,t,r);return}kg(e,t,r)}_r.read=P5;function Tg(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){uo(r,n);return}let s=i.map(u=>({dirent:u,name:u.name,path:Og.joinPathSegments(e,u.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ic(r,s);return}let o=s.map(u=>I5(u,t));Fg(o,(u,a)=>{if(u!==null){uo(r,u);return}Ic(r,a)})})}_r.readdirWithFileTypes=Tg;function I5(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Rg.fs.createDirentFromStats(e.name,i),r(null,e)})}}function kg(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){uo(r,n);return}let s=i.map(o=>{let u=Og.joinPathSegments(e,o,t.pathSegmentSeparator);return a=>{k5.stat(u,t.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:Rg.fs.createDirentFromStats(o,l)};t.stats&&(f.stats=l),a(null,f)})}});Fg(s,(o,u)=>{if(o!==null){uo(r,o);return}Ic(r,u)})})}_r.readdir=kg;function uo(e,t){e(t)}function Ic(e,t){e(null,t)}});var Mg=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.readdir=Dr.readdirWithFileTypes=Dr.read=void 0;var L5=Vr(),N5=Tc(),Pg=Bc(),Ig=Pc();function M5(e,t){return!t.stats&&N5.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Lg(e,t):Ng(e,t)}Dr.read=M5;function Lg(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Ig.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Pg.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Dr.readdirWithFileTypes=Lg;function Ng(e,t){return t.fs.readdirSync(e).map(n=>{let i=Ig.joinPathSegments(e,n,t.pathSegmentSeparator),s=L5.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Pg.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Dr.readdir=Ng});var qg=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.createFileSystemAdapter=Ar.FILE_SYSTEM_ADAPTER=void 0;var Sn=require("fs");Ar.FILE_SYSTEM_ADAPTER={lstat:Sn.lstat,stat:Sn.stat,lstatSync:Sn.lstatSync,statSync:Sn.statSync,readdir:Sn.readdir,readdirSync:Sn.readdirSync};function q5(e){return e===void 0?Ar.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ar.FILE_SYSTEM_ADAPTER),e)}Ar.createFileSystemAdapter=q5});var jg=g(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var j5=require("path"),$5=Vr(),H5=qg(),Lc=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=H5.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,j5.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $5.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};Nc.default=Lc});var ao=g(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Settings=vr.scandirSync=vr.scandir=void 0;var $g=Bg(),G5=Mg(),Mc=jg();vr.Settings=Mc.default;function U5(e,t,r){if(typeof t=="function"){$g.read(e,qc(),t);return}$g.read(e,qc(t),r)}vr.scandir=U5;function W5(e,t){let r=qc(t);return G5.read(e,r)}vr.scandirSync=W5;function qc(e={}){return e instanceof Mc.default?e:new Mc.default(e)}});var Gg=g((v6,Hg)=>{"use strict";function z5(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Hg.exports=z5});var Wg=g((x6,jc)=>{"use strict";var Y5=Gg();function Ug(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Y5(V5),i=null,s=null,o=0,u=null,a={push:m,drain:mt,saturated:mt,pause:l,paused:!1,concurrency:r,running:c,resume:_,idle:E,length:f,getQueue:p,unshift:D,empty:mt,kill:R,killAndDrain:M,error:W};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var L=i,X=0;L;)L=L.next,X++;return X}function p(){for(var L=i,X=[];L;)X.push(L.value),L=L.next;return X}function _(){if(a.paused){a.paused=!1;for(var L=0;L<a.concurrency;L++)o++,A()}}function E(){return o===0&&a.length()===0}function m(L,X){var G=n.get();G.context=e,G.release=A,G.value=L,G.callback=X||mt,G.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=G,s=G):(i=G,s=G,a.saturated()):(o++,t.call(e,G.value,G.worked))}function D(L,X){var G=n.get();G.context=e,G.release=A,G.value=L,G.callback=X||mt,o===a.concurrency||a.paused?i?(G.next=i,i=G):(i=G,s=G,a.saturated()):(o++,t.call(e,G.value,G.worked))}function A(L){L&&n.release(L);var X=i;X?a.paused?o--:(s===i&&(s=null),i=X.next,X.next=null,t.call(e,X.value,X.worked),s===null&&a.empty()):--o===0&&a.drain()}function R(){i=null,s=null,a.drain=mt}function M(){i=null,s=null,a.drain(),a.drain=mt}function W(L){u=L}}function mt(){}function V5(){this.value=null,this.callback=mt,this.next=null,this.release=mt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=mt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function K5(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,f){t.call(this,l).then(function(p){f(null,p)},f)}var i=Ug(e,n,r),s=i.push,o=i.unshift;return i.push=u,i.unshift=a,i.drained=c,i;function u(l){var f=new Promise(function(p,_){s(l,function(E,m){if(E){_(E);return}p(m)})});return f.catch(mt),f}function a(l){var f=new Promise(function(p,_){o(l,function(E,m){if(E){_(E);return}p(m)})});return f.catch(mt),f}function c(){var l=i.drain,f=new Promise(function(p){i.drain=function(){l(),p()}});return f}}jc.exports=Ug;jc.exports.promise=K5});var co=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.joinPathSegments=Bt.replacePathSegmentSeparator=Bt.isAppliedFilter=Bt.isFatalError=void 0;function X5(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Bt.isFatalError=X5;function Z5(e,t){return e===null||e(t)}Bt.isAppliedFilter=Z5;function J5(e,t){return e.split(/[/\\]/).join(t)}Bt.replacePathSegmentSeparator=J5;function Q5(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Bt.joinPathSegments=Q5});var Gc=g(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var eF=co(),$c=class{constructor(t,r){this._root=t,this._settings=r,this._root=eF.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Hc.default=$c});var zc=g(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var tF=require("events"),rF=ao(),nF=Wg(),lo=co(),iF=Gc(),Uc=class extends iF.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=rF.scandir,this._emitter=new tF.EventEmitter,this._queue=nF(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!lo.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=lo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),lo.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&lo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Wc.default=Uc});var zg=g(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var sF=zc(),Yc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sF.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{oF(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{uF(t,this._storage)}),this._reader.read()}};Vc.default=Yc;function oF(e,t){e(t)}function uF(e,t){e(null,t)}});var Yg=g(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var aF=require("stream"),cF=zc(),Kc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new cF.default(this._root,this._settings),this._stream=new aF.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Xc.default=Kc});var Vg=g(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var lF=ao(),fo=co(),fF=Gc(),Zc=class extends fF.default{constructor(){super(...arguments),this._scandir=lF.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(fo.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=fo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),fo.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&fo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Jc.default=Zc});var Kg=g(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var hF=Vg(),Qc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new hF.default(this._root,this._settings)}read(){return this._reader.read()}};el.default=Qc});var Xg=g(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var pF=require("path"),dF=ao(),tl=class{constructor(t={}){this._options=t,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,pF.sep),this.fsScandirSettings=new dF.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};rl.default=tl});var po=g(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Settings=Pt.walkStream=Pt.walkSync=Pt.walk=void 0;var Zg=zg(),mF=Yg(),gF=Kg(),nl=Xg();Pt.Settings=nl.default;function yF(e,t,r){if(typeof t=="function"){new Zg.default(e,ho()).read(t);return}new Zg.default(e,ho(t)).read(r)}Pt.walk=yF;function EF(e,t){let r=ho(t);return new gF.default(e,r).read()}Pt.walkSync=EF;function bF(e,t){let r=ho(t);return new mF.default(e,r).read()}Pt.walkStream=bF;function ho(e={}){return e instanceof nl.default?e:new nl.default(e)}});var mo=g(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var _F=require("path"),DF=Vr(),Jg=Jt(),il=class{constructor(t){this._settings=t,this._fsStatSettings=new DF.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return _F.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Jg.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Jg.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};sl.default=il});var al=g(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var AF=require("stream"),vF=Vr(),xF=po(),wF=mo(),ol=class extends wF.default{constructor(){super(...arguments),this._walkStream=xF.walkStream,this._stat=vF.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new AF.PassThrough({objectMode:!0});i._write=(s,o,u)=>this._getEntry(n[s],t[s],r).then(a=>{a!==null&&r.entryFilter(a)&&i.push(a),s===n.length-1&&i.end(),u()}).catch(u);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};ul.default=ol});var Qg=g(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var CF=po(),SF=mo(),FF=al(),cl=class extends SF.default{constructor(){super(...arguments),this._walkAsync=CF.walk,this._readerStream=new FF.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",u=>n.push(u)),i.once("end",()=>s(n))})}};ll.default=cl});var e1=g(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var Fn=Jt(),fl=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Fn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Fn.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Fn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Fn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Fn.array.splitWhen(t,r=>r.dynamic&&Fn.pattern.hasGlobStar(r.pattern))}};hl.default=fl});var t1=g(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var RF=e1(),pl=class extends RF.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>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}};dl.default=pl});var r1=g(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var go=Jt(),OF=t1(),ml=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new OF.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(go.pattern.isAffectDepthOfReadingPattern);return go.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=go.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!go.pattern.matchAny(t,r)}};gl.default=ml});var n1=g(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Kr=Jt(),yl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Kr.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Kr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Kr.path.makeAbsolute(this._settings.cwd,t);return Kr.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Kr.path.removeLeadingDotSegment(t),s=Kr.pattern.matchAny(i,r);return!s&&n?Kr.pattern.matchAny(i+"/",r):s}};El.default=yl});var i1=g(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var TF=Jt(),bl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return TF.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};_l.default=bl});var o1=g(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var s1=Jt(),Dl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=s1.path.makeAbsolute(this._settings.cwd,r),r=s1.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Al.default=Dl});var yo=g(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var kF=require("path"),BF=r1(),PF=n1(),IF=i1(),LF=o1(),vl=class{constructor(t){this._settings=t,this.errorFilter=new IF.default(this._settings),this.entryFilter=new PF.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new BF.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new LF.default(this._settings)}_getRootDirectory(t){return kF.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};xl.default=vl});var u1=g(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var NF=Qg(),MF=yo(),wl=class extends MF.default{constructor(){super(...arguments),this._reader=new NF.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Cl.default=wl});var a1=g(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var qF=require("stream"),jF=al(),$F=yo(),Sl=class extends $F.default{constructor(){super(...arguments),this._reader=new jF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new qF.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Fl.default=Sl});var c1=g(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var HF=Vr(),GF=po(),UF=mo(),Rl=class extends UF.default{constructor(){super(...arguments),this._walkSync=GF.walkSync,this._statSync=HF.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Ol.default=Rl});var l1=g(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var WF=c1(),zF=yo(),Tl=class extends zF.default{constructor(){super(...arguments),this._reader=new WF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};kl.default=Tl});var f1=g(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Rn=require("fs"),YF=require("os"),VF=Math.max(YF.cpus().length,1);On.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Rn.lstat,lstatSync:Rn.lstatSync,stat:Rn.stat,statSync:Rn.statSync,readdir:Rn.readdir,readdirSync:Rn.readdirSync};var Bl=class{constructor(t={}){this._options=t,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,VF),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},On.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};On.default=Bl});var m1=g((K6,d1)=>{"use strict";var h1=fg(),p1=pg(),KF=u1(),XF=a1(),ZF=l1(),Pl=f1(),Xr=Jt();async function Il(e,t){Tn(e);let r=Ll(e,KF.default,t),n=await Promise.all(r);return Xr.array.flatten(n)}(function(e){function t(o,u){Tn(o);let a=Ll(o,ZF.default,u);return Xr.array.flatten(a)}e.sync=t;function r(o,u){Tn(o);let a=Ll(o,XF.default,u);return Xr.stream.merge(a)}e.stream=r;function n(o,u){Tn(o);let a=p1.transform([].concat(o)),c=new Pl.default(u);return h1.generate(a,c)}e.generateTasks=n;function i(o,u){Tn(o);let a=new Pl.default(u);return Xr.pattern.isDynamicPattern(o,a)}e.isDynamicPattern=i;function s(o){return Tn(o),Xr.path.escape(o)}e.escapePath=s})(Il||(Il={}));function Ll(e,t,r){let n=p1.transform([].concat(e)),i=new Pl.default(r),s=h1.generate(n,i),o=new t(i);return s.map(o.read,o)}function Tn(e){if(![].concat(e).every(n=>Xr.string.isString(n)&&!Xr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}d1.exports=Il});var y1=g((X6,g1)=>{"use strict";g1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Nl=g((Z6,b1)=>{var ji=y1(),E1={};for(let e of Object.keys(ji))E1[ji[e]]=e;var q={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};b1.exports=q;for(let e of Object.keys(q)){if(!("channels"in q[e]))throw new Error("missing channels property: "+e);if(!("labels"in q[e]))throw new Error("missing channel labels property: "+e);if(q[e].labels.length!==q[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=q[e];delete q[e].channels,delete q[e].labels,Object.defineProperty(q[e],"channels",{value:t}),Object.defineProperty(q[e],"labels",{value:r})}q.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,u,a;s===i?u=0:t===s?u=(r-n)/o:r===s?u=2+(n-t)/o:n===s&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360);let c=(i+s)/2;return s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[u,a*100,c*100]};q.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,u=e[1]/255,a=e[2]/255,c=Math.max(o,u,a),l=c-Math.min(o,u,a),f=function(p){return(c-p)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,t=f(o),r=f(u),n=f(a),o===c?i=n-r:u===c?i=1/3+t-n:a===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};q.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=q.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};q.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,u=(1-n-i)/(1-i)||0;return[s*100,o*100,u*100,i*100]};function JF(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}q.rgb.keyword=function(e){let t=E1[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(ji)){let s=ji[i],o=JF(e,s);o<r&&(r=o,n=i)}return n};q.keyword.rgb=function(e){return ji[e]};q.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};q.rgb.lab=function(e){let t=q.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),u=200*(n-i);return[s,o,u]};q.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let u=2*n-i,a=[0,0,0];for(let c=0;c<3;c++)s=t+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=u+(i-u)*6*s:2*s<1?o=i:3*s<2?o=u+(i-u)*(2/3-s)*6:o=u,a[c]=o*255;return a};q.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,u=n===0?2*i/(s+i):2*r/(n+r);return[t,u*100,o*100]};q.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[u,n,o];case 2:return[o,n,a];case 3:return[o,u,n];case 4:return[a,o,n];case 5:return[n,o,u]}};q.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let u=(2-r)*i;return s=r*i,s/=u<=1?u:2-u,s=s||0,o/=2,[t,s*100,o*100]};q.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),u=1-n;s=6*t-o,o&1&&(s=1-s);let a=r+s*(u-r),c,l,f;switch(o){default:case 6:case 0:c=u,l=a,f=r;break;case 1:c=a,l=u,f=r;break;case 2:c=r,l=u,f=a;break;case 3:c=r,l=a,f=u;break;case 4:c=a,l=r,f=u;break;case 5:c=u,l=r,f=a;break}return[c*255,l*255,f*255]};q.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,u*255]};q.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};q.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};q.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let u=s**3,a=i**3,c=o**3;return s=u>.008856?u:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};q.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};q.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};q.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?q.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};q.hsv.ansi16=function(e){return q.rgb.ansi16(q.hsv.rgb(e),e[2])};q.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};q.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};q.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};q.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};q.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(u=>u+u).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};q.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,u,a;return o<1?u=s/(1-o):u=0,o<=0?a=0:i===t?a=(r-n)/o%6:i===r?a=2+(n-t)/o:a=4+(t-r)/o,a/=6,a%=1,[a*360,o*100,u*100]};q.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};q.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};q.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,u=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};q.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};q.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};q.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};q.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};q.gray.hsl=function(e){return[0,0,e[0]]};q.gray.hsv=q.gray.hsl;q.gray.hwb=function(e){return[0,100,e[0]]};q.gray.cmyk=function(e){return[0,0,0,e[0]]};q.gray.lab=function(e){return[e[0],0,0]};q.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var D1=g((J6,_1)=>{var Eo=Nl();function QF(){let e={},t=Object.keys(Eo);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function eR(e){let t=QF(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Eo[n]);for(let s=i.length,o=0;o<s;o++){let u=i[o],a=t[u];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(u))}}return t}function tR(e,t){return function(r){return t(e(r))}}function rR(e,t){let r=[t[e].parent,e],n=Eo[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=tR(Eo[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}_1.exports=function(e){let t=eR(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=rR(o,t))}return r}});var v1=g((Q6,A1)=>{var Ml=Nl(),nR=D1(),kn={},iR=Object.keys(Ml);function sR(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function oR(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}iR.forEach(e=>{kn[e]={},Object.defineProperty(kn[e],"channels",{value:Ml[e].channels}),Object.defineProperty(kn[e],"labels",{value:Ml[e].labels});let t=nR(e);Object.keys(t).forEach(n=>{let i=t[n];kn[e][n]=oR(i),kn[e][n].raw=sR(i)})});A1.exports=kn});var jl=g((eI,F1)=>{"use strict";var x1=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,w1=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},C1=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},bo=e=>e,S1=(e,t,r)=>[e,t,r],Bn=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ql,Pn=(e,t,r,n)=>{ql===void 0&&(ql=v1());let i=n?10:0,s={};for(let[o,u]of Object.entries(ql)){let a=o==="ansi16"?"ansi":o;o===t?s[a]=e(r,i):typeof u=="object"&&(s[a]=e(u[t],i))}return s};function uR(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Bn(t.color,"ansi",()=>Pn(x1,"ansi16",bo,!1)),Bn(t.color,"ansi256",()=>Pn(w1,"ansi256",bo,!1)),Bn(t.color,"ansi16m",()=>Pn(C1,"rgb",S1,!1)),Bn(t.bgColor,"ansi",()=>Pn(x1,"ansi16",bo,!0)),Bn(t.bgColor,"ansi256",()=>Pn(w1,"ansi256",bo,!0)),Bn(t.bgColor,"ansi16m",()=>Pn(C1,"rgb",S1,!0)),t}Object.defineProperty(F1,"exports",{enumerable:!0,get:uR})});var O1=g((tI,R1)=>{"use strict";R1.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Gl=g((rI,k1)=>{"use strict";var aR=require("os"),T1=require("tty"),gt=O1(),{env:Fe}=process,xr;gt("no-color")||gt("no-colors")||gt("color=false")||gt("color=never")?xr=0:(gt("color")||gt("colors")||gt("color=true")||gt("color=always"))&&(xr=1);"FORCE_COLOR"in Fe&&(Fe.FORCE_COLOR==="true"?xr=1:Fe.FORCE_COLOR==="false"?xr=0:xr=Fe.FORCE_COLOR.length===0?1:Math.min(parseInt(Fe.FORCE_COLOR,10),3));function $l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Hl(e,t){if(xr===0)return 0;if(gt("color=16m")||gt("color=full")||gt("color=truecolor"))return 3;if(gt("color=256"))return 2;if(e&&!t&&xr===void 0)return 0;let r=xr||0;if(Fe.TERM==="dumb")return r;if(process.platform==="win32"){let n=aR.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Fe)||Fe.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fe.TEAMCITY_VERSION)?1:0;if(Fe.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Fe){let n=parseInt((Fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fe.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fe.TERM)||"COLORTERM"in Fe?1:r}function cR(e){let t=Hl(e,e&&e.isTTY);return $l(t)}k1.exports={supportsColor:cR,stdout:$l(Hl(!0,T1.isatty(1))),stderr:$l(Hl(!0,T1.isatty(2)))}});var P1=g((nI,B1)=>{"use strict";var lR=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},fR=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
2
|
+
"use strict";var QA=Object.create;var Da=Object.defineProperty;var ev=Object.getOwnPropertyDescriptor;var tv=Object.getOwnPropertyNames;var rv=Object.getPrototypeOf,nv=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),iv=(e,t)=>{for(var r in t)Da(e,r,{get:t[r],enumerable:!0})},sv=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tv(t))!nv.call(e,i)&&i!==r&&Da(e,i,{get:()=>t[i],enumerable:!(n=ev(t,i))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?QA(rv(e)):{},sv(t||!e||!e.__esModule?Da(r,"default",{value:e,enumerable:!0}):r,e));var r0=g(($P,Ut)=>{function Aa(e){return Ut.exports=Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut.exports.__esModule=!0,Ut.exports.default=Ut.exports,Aa(e)}Ut.exports=Aa,Ut.exports.__esModule=!0,Ut.exports.default=Ut.exports});var s0=g((HP,Wt)=>{var n0=r0().default;function i0(){"use strict";Wt.exports=i0=function(){return t},Wt.exports.__esModule=!0,Wt.exports.default=Wt.exports;var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(b,C,x){b[C]=x.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(b,C,x){return Object.defineProperty(b,C,{value:x,enumerable:!0,configurable:!0,writable:!0}),b[C]}try{c({},"")}catch{c=function(x,O,$){return x[O]=$}}function l(b,C,x,O){var $=C&&C.prototype instanceof D?C:D,P=Object.create($.prototype),oe=new Xe(O||[]);return i(P,"_invoke",{value:ge(b,x,oe)}),P}function f(b,C,x){try{return{type:"normal",arg:b.call(C,x)}}catch(O){return{type:"throw",arg:O}}}t.wrap=l;var p="suspendedStart",_="suspendedYield",E="executing",m="completed",A={};function D(){}function R(){}function M(){}var W={};c(W,o,function(){return this});var L=Object.getPrototypeOf,X=L&&L(L(v([])));X&&X!==r&&n.call(X,o)&&(W=X);var G=M.prototype=D.prototype=Object.create(W);function U(b){["next","throw","return"].forEach(function(C){c(b,C,function(x){return this._invoke(C,x)})})}function J(b,C){function x($,P,oe,xe){var ne=f(b[$],b,P);if(ne.type!=="throw"){var ye=ne.arg,z=ye.value;return z&&n0(z)=="object"&&n.call(z,"__await")?C.resolve(z.__await).then(function(ze){x("next",ze,oe,xe)},function(ze){x("throw",ze,oe,xe)}):C.resolve(z).then(function(ze){ye.value=ze,oe(ye)},function(ze){return x("throw",ze,oe,xe)})}xe(ne.arg)}var O;i(this,"_invoke",{value:function(P,oe){function xe(){return new C(function(ne,ye){x(P,oe,ne,ye)})}return O=O?O.then(xe,xe):xe()}})}function ge(b,C,x){var O=p;return function($,P){if(O===E)throw new Error("Generator is already running");if(O===m){if($==="throw")throw P;return{value:e,done:!0}}for(x.method=$,x.arg=P;;){var oe=x.delegate;if(oe){var xe=w(oe,x);if(xe){if(xe===A)continue;return xe}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(O===p)throw O=m,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);O=E;var ne=f(b,C,x);if(ne.type==="normal"){if(O=x.done?m:_,ne.arg===A)continue;return{value:ne.arg,done:x.done}}ne.type==="throw"&&(O=m,x.method="throw",x.arg=ne.arg)}}}function w(b,C){var x=C.method,O=b.iterator[x];if(O===e)return C.delegate=null,x==="throw"&&b.iterator.return&&(C.method="return",C.arg=e,w(b,C),C.method==="throw")||x!=="return"&&(C.method="throw",C.arg=new TypeError("The iterator does not provide a '"+x+"' method")),A;var $=f(O,b.iterator,C.arg);if($.type==="throw")return C.method="throw",C.arg=$.arg,C.delegate=null,A;var P=$.arg;return P?P.done?(C[b.resultName]=P.value,C.next=b.nextLoc,C.method!=="return"&&(C.method="next",C.arg=e),C.delegate=null,A):P:(C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,A)}function se(b){var C={tryLoc:b[0]};1 in b&&(C.catchLoc=b[1]),2 in b&&(C.finallyLoc=b[2],C.afterLoc=b[3]),this.tryEntries.push(C)}function re(b){var C=b.completion||{};C.type="normal",delete C.arg,b.completion=C}function Xe(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(se,this),this.reset(!0)}function v(b){if(b||b===""){var C=b[o];if(C)return C.call(b);if(typeof b.next=="function")return b;if(!isNaN(b.length)){var x=-1,O=function $(){for(;++x<b.length;)if(n.call(b,x))return $.value=b[x],$.done=!1,$;return $.value=e,$.done=!0,$};return O.next=O}}throw new TypeError(n0(b)+" is not iterable")}return R.prototype=M,i(G,"constructor",{value:M,configurable:!0}),i(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,a,"GeneratorFunction"),t.isGeneratorFunction=function(b){var C=typeof b=="function"&&b.constructor;return!!C&&(C===R||(C.displayName||C.name)==="GeneratorFunction")},t.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,M):(b.__proto__=M,c(b,a,"GeneratorFunction")),b.prototype=Object.create(G),b},t.awrap=function(b){return{__await:b}},U(J.prototype),c(J.prototype,u,function(){return this}),t.AsyncIterator=J,t.async=function(b,C,x,O,$){$===void 0&&($=Promise);var P=new J(l(b,C,x,O),$);return t.isGeneratorFunction(C)?P:P.next().then(function(oe){return oe.done?oe.value:P.next()})},U(G),c(G,a,"Generator"),c(G,o,function(){return this}),c(G,"toString",function(){return"[object Generator]"}),t.keys=function(b){var C=Object(b),x=[];for(var O in C)x.push(O);return x.reverse(),function $(){for(;x.length;){var P=x.pop();if(P in C)return $.value=P,$.done=!1,$}return $.done=!0,$}},t.values=v,Xe.prototype={constructor:Xe,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(re),!C)for(var x in this)x.charAt(0)==="t"&&n.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var x=this;function O(ye,z){return oe.type="throw",oe.arg=C,x.next=ye,z&&(x.method="next",x.arg=e),!!z}for(var $=this.tryEntries.length-1;$>=0;--$){var P=this.tryEntries[$],oe=P.completion;if(P.tryLoc==="root")return O("end");if(P.tryLoc<=this.prev){var xe=n.call(P,"catchLoc"),ne=n.call(P,"finallyLoc");if(xe&&ne){if(this.prev<P.catchLoc)return O(P.catchLoc,!0);if(this.prev<P.finallyLoc)return O(P.finallyLoc)}else if(xe){if(this.prev<P.catchLoc)return O(P.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return O(P.finallyLoc)}}}},abrupt:function(C,x){for(var O=this.tryEntries.length-1;O>=0;--O){var $=this.tryEntries[O];if($.tryLoc<=this.prev&&n.call($,"finallyLoc")&&this.prev<$.finallyLoc){var P=$;break}}P&&(C==="break"||C==="continue")&&P.tryLoc<=x&&x<=P.finallyLoc&&(P=null);var oe=P?P.completion:{};return oe.type=C,oe.arg=x,P?(this.method="next",this.next=P.finallyLoc,A):this.complete(oe)},complete:function(C,x){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&x&&(this.next=x),A},finish:function(C){for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x];if(O.finallyLoc===C)return this.complete(O.completion,O.afterLoc),re(O),A}},catch:function(C){for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x];if(O.tryLoc===C){var $=O.completion;if($.type==="throw"){var P=$.arg;re(O)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(C,x,O){return this.delegate={iterator:v(C),resultName:x,nextLoc:O},this.method==="next"&&(this.arg=e),A}},t}Wt.exports=i0,Wt.exports.__esModule=!0,Wt.exports.default=Wt.exports});var u0=g((GP,o0)=>{var Cs=s0()();o0.exports=Cs;try{regeneratorRuntime=Cs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Cs:Function("r","regeneratorRuntime = r")(Cs)}});var c0=g((f8,Ra)=>{"use strict";var a0=(e,...t)=>new Promise(r=>{r(e(...t))});Ra.exports=a0;Ra.exports.default=a0});var f0=g((h8,Oa)=>{"use strict";var ov=c0(),l0=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(u,a,...c)=>{r++;let l=ov(u,...c);a(l),l.then(n,n)},s=(u,a,...c)=>{r<e?i(u,a,...c):t.push(i.bind(null,u,a,...c))},o=(u,...a)=>new Promise(c=>s(u,c,...a));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Oa.exports=l0;Oa.exports.default=l0});var d0=g((p8,Ta)=>{"use strict";var h0=f0(),Ss=class extends Error{constructor(t){super(),this.value=t}},uv=async(e,t)=>t(await e),av=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Ss(t[0]);return!1},p0=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=h0(r.concurrency),i=[...e].map(o=>[o,n(uv,o,t)]),s=h0(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(av,o)))}catch(o){if(o instanceof Ss)return o.value;throw o}};Ta.exports=p0;Ta.exports.default=p0});var _0=g((d8,ka)=>{"use strict";var m0=require("path"),Fs=require("fs"),{promisify:g0}=require("util"),cv=d0(),lv=g0(Fs.stat),fv=g0(Fs.lstat),y0={directory:"isDirectory",file:"isFile"};function E0({type:e}){if(!(e in y0))throw new Error(`Invalid type specified: ${e}`)}var b0=(e,t)=>e===void 0||t[y0[e]]();ka.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},E0(t);let r=t.allowSymlinks?lv:fv;return cv(e,async n=>{try{let i=await r(m0.resolve(t.cwd,n));return b0(t.type,i)}catch{return!1}},t)};ka.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},E0(t);let r=t.allowSymlinks?Fs.statSync:Fs.lstatSync;for(let n of e)try{let i=r(m0.resolve(t.cwd,n));if(b0(t.type,i))return n}catch{}}});var A0=g((m8,Ba)=>{"use strict";var D0=require("fs"),{promisify:hv}=require("util"),pv=hv(D0.access);Ba.exports=async e=>{try{return await pv(e),!0}catch{return!1}};Ba.exports.sync=e=>{try{return D0.accessSync(e),!0}catch{return!1}}});var x0=g((g8,yn)=>{"use strict";var dr=require("path"),Rs=_0(),v0=A0(),Pa=Symbol("findUp.stop");yn.exports=async(e,t={})=>{let r=dr.resolve(t.cwd||""),{root:n}=dr.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Rs(i,o);let u=await e(o.cwd);return typeof u=="string"?Rs([u],o):u};for(;;){let o=await s({...t,cwd:r});if(o===Pa)return;if(o)return dr.resolve(r,o);if(r===n)return;r=dr.dirname(r)}};yn.exports.sync=(e,t={})=>{let r=dr.resolve(t.cwd||""),{root:n}=dr.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Rs.sync(i,o);let u=e(o.cwd);return typeof u=="string"?Rs.sync([u],o):u};for(;;){let o=s({...t,cwd:r});if(o===Pa)return;if(o)return dr.resolve(r,o);if(r===n)return;r=dr.dirname(r)}};yn.exports.exists=v0;yn.exports.sync.exists=v0.sync;yn.exports.stop=Pa});var kd=g(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.splitWhen=An.flatten=void 0;function Jw(e){return e.reduce((t,r)=>[].concat(t,r),[])}An.flatten=Jw;function Qw(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}An.splitWhen=Qw});var Bd=g(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.isEnoentCodeError=void 0;function eC(e){return e.code==="ENOENT"}Hs.isEnoentCodeError=eC});var Pd=g(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.createDirentFromStats=void 0;var ic=class{constructor(t,r){this.name=t,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 tC(e,t){return new ic(e,t)}Gs.createDirentFromStats=tC});var Id=g(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.removeLeadingDotSegment=Ot.escape=Ot.makeAbsolute=Ot.unixify=void 0;var rC=require("path"),nC=2,iC=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function sC(e){return e.replace(/\\/g,"/")}Ot.unixify=sC;function oC(e,t){return rC.resolve(e,t)}Ot.makeAbsolute=oC;function uC(e){return e.replace(iC,"\\$2")}Ot.escape=uC;function aC(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(nC)}return e}Ot.removeLeadingDotSegment=aC});var Nd=g((L8,Ld)=>{Ld.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var jd=g((N8,qd)=>{var cC=Nd(),Md={"{":"}","(":")","[":"]"},lC=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var u=e[t+1];t+=2;var a=Md[u];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},fC=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Md[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};qd.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(cC(t))return!0;var n=lC;return r&&r.strict===!1&&(n=fC),n(t)}});var Hd=g((M8,$d)=>{"use strict";var hC=jd(),pC=require("path").posix.dirname,dC=require("os").platform()==="win32",sc="/",mC=/\\/g,gC=/[\{\[].*[\}\]]$/,yC=/(^|[^\\])([\{\[]|\([^\)]+$)/,EC=/\\([\!\*\?\|\[\]\(\)\{\}])/g;$d.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&dC&&t.indexOf(sc)<0&&(t=t.replace(mC,sc)),gC.test(t)&&(t+=sc),t+="a";do t=pC(t);while(hC(t)||yC.test(t));return t.replace(EC,"$1")}});var Us=g(dt=>{"use strict";dt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;dt.find=(e,t)=>e.nodes.find(r=>r.type===t);dt.exceedsLimit=(e,t,r=1,n)=>n===!1||!dt.isInteger(e)||!dt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;dt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};dt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);dt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;dt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;dt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);dt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Ws=g((j8,Ud)=>{"use strict";var Gd=Us();Ud.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Gd.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u="";if(n.value)return(s||o)&&Gd.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let a of n.nodes)u+=r(a);return u};return r(e)}});var zd=g(($8,Wd)=>{"use strict";Wd.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var tm=g((H8,em)=>{"use strict";var Yd=zd(),zr=(e,t,r)=>{if(Yd(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Yd(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),u=String(n.wrap),a=e+":"+t+"="+i+s+o+u;if(zr.cache.hasOwnProperty(a))return zr.cache[a].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let f=Qd(e)||Qd(t),p={min:e,max:t,a:c,b:l},_=[],E=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),c<0){let m=l<0?Math.abs(l):1;E=Vd(m,Math.abs(c),p,n),c=p.a=0}return l>=0&&(_=Vd(c,l,p,n)),p.negatives=E,p.positives=_,p.result=bC(E,_,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&_.length+E.length>1&&(p.result=`(?:${p.result})`),zr.cache[a]=p,p.result};function bC(e,t,r){let n=oc(e,t,"-",!1,r)||[],i=oc(t,e,"",!1,r)||[],s=oc(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function _C(e,t){let r=1,n=1,i=Xd(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Xd(e,r);for(i=Zd(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Zd(t+1,n)-1;return s=[...s],s.sort(vC),s}function DC(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=AC(e,t),i=n.length,s="",o=0;for(let u=0;u<i;u++){let[a,c]=n[u];a===c?s+=a:a!=="0"||c!=="9"?s+=xC(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Vd(e,t,r,n){let i=_C(e,t),s=[],o=e,u;for(let a=0;a<i.length;a++){let c=i[a],l=DC(String(o),String(c),n),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+Jd(u.count),o=c+1;continue}r.isPadded&&(f=wC(c,r,n)),l.string=f+l.pattern+Jd(l.count),s.push(l),o=c+1,u=l}return s}function oc(e,t,r,n,i){let s=[];for(let o of e){let{string:u}=o;!n&&!Kd(t,"string",u)&&s.push(r+u),n&&Kd(t,"string",u)&&s.push(r+u)}return s}function AC(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function vC(e,t){return e>t?1:t>e?-1:0}function Kd(e,t,r){return e.some(n=>n[t]===r)}function Xd(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Zd(e,t){return e-e%Math.pow(10,t)}function Jd(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function xC(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Qd(e){return/^-?(0+)\d/.test(e)}function wC(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}zr.cache={};zr.clearCache=()=>zr.cache={};em.exports=zr});var cc=g((G8,am)=>{"use strict";var CC=require("util"),nm=tm(),rm=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),SC=e=>t=>e===!0?Number(t):String(t),uc=e=>typeof e=="number"||typeof e=="string"&&e!=="",Li=e=>Number.isInteger(+e),ac=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},FC=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,RC=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Ys=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},OC=(e,t,r)=>{e.negatives.sort((u,a)=>u<a?-1:u>a?1:0),e.positives.sort((u,a)=>u<a?-1:u>a?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(u=>Ys(String(u),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(u=>Ys(String(u),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},im=(e,t,r,n)=>{if(r)return nm(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},sm=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return nm(e,t,r)},om=(...e)=>new RangeError("Invalid range arguments: "+CC.inspect(...e)),um=(e,t,r)=>{if(r.strictRanges===!0)throw om([e,t]);return[]},TC=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},kC=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw om([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,u=String(e),a=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=ac(u)||ac(a)||ac(c),f=l?Math.max(u.length,a.length,c.length):0,p=l===!1&&FC(e,t,n)===!1,_=n.transform||SC(p);if(n.toRegex&&r===1)return im(Ys(e,f),Ys(t,f),!0,n);let E={negatives:[],positives:[]},m=R=>E[R<0?"negatives":"positives"].push(Math.abs(R)),A=[],D=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):A.push(RC(_(i,D),f,p)),i=o?i-r:i+r,D++;return n.toRegex===!0?r>1?OC(E,n,f):sm(A,null,{wrap:!1,...n}):A},BC=(e,t,r=1,n={})=>{if(!Li(e)&&e.length>1||!Li(t)&&t.length>1)return um(e,t,n);let i=n.transform||(p=>String.fromCharCode(p)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),u=s>o,a=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return im(a,c,!1,n);let l=[],f=0;for(;u?s>=o:s<=o;)l.push(i(s,f)),s=u?s-r:s+r,f++;return n.toRegex===!0?sm(l,null,{wrap:!1,options:n}):l},zs=(e,t,r,n={})=>{if(t==null&&uc(e))return[e];if(!uc(e)||!uc(t))return um(e,t,n);if(typeof r=="function")return zs(e,t,1,{transform:r});if(rm(r))return zs(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Li(r)?Li(e)&&Li(t)?kC(e,t,r,i):BC(e,t,Math.max(Math.abs(r),1),i):r!=null&&!rm(r)?TC(r,i):zs(e,t,1,r)};am.exports=zs});var fm=g((U8,lm)=>{"use strict";var PC=cc(),cm=Us(),IC=(e,t={})=>{let r=(n,i={})=>{let s=cm.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u=s===!0||o===!0,a=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return a+n.value;if(n.isClose===!0)return console.log("node.isClose",a,n.value),a+n.value;if(n.type==="open")return u?a+n.value:"(";if(n.type==="close")return u?a+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":u?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=cm.reduce(n.nodes),f=PC(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(e)};lm.exports=IC});var dm=g((W8,pm)=>{"use strict";var LC=cc(),hm=Ws(),vn=Us(),Yr=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?vn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Yr(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Yr(i,s,r):i+s);return vn.flatten(n)},NC=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(i.invalid||i.dollar){u.push(Yr(u.pop(),hm(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){u.push(Yr(u.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=vn.reduce(i.nodes);if(vn.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=LC(...f,t);p.length===0&&(p=hm(i,t)),u.push(Yr(u.pop(),p)),i.nodes=[];return}let a=vn.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let p=i.nodes[f];if(p.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(p.type==="close"){u.push(Yr(u.pop(),c,a));continue}if(p.value&&p.type!=="open"){c.push(Yr(c.pop(),p.value));continue}p.nodes&&n(p,i)}return c};return vn.flatten(n(e))};pm.exports=NC});var gm=g((z8,mm)=>{"use strict";mm.exports={MAX_LENGTH:1e4,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:`
|
|
3
|
+
`,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 Dm=g((Y8,_m)=>{"use strict";var MC=Ws(),{MAX_LENGTH:ym,CHAR_BACKSLASH:lc,CHAR_BACKTICK:qC,CHAR_COMMA:jC,CHAR_DOT:$C,CHAR_LEFT_PARENTHESES:HC,CHAR_RIGHT_PARENTHESES:GC,CHAR_LEFT_CURLY_BRACE:UC,CHAR_RIGHT_CURLY_BRACE:WC,CHAR_LEFT_SQUARE_BRACKET:Em,CHAR_RIGHT_SQUARE_BRACKET:bm,CHAR_DOUBLE_QUOTE:zC,CHAR_SINGLE_QUOTE:YC,CHAR_NO_BREAK_SPACE:VC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:KC}=gm(),XC=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ym,r.maxLength):ym;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,u=i,a=0,c=e.length,l=0,f=0,p,_=()=>e[l++],E=m=>{if(m.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&m.type==="text"){u.value+=m.value;return}return o.nodes.push(m),m.parent=o,m.prev=u,u=m,m};for(E({type:"bos"});l<c;)if(o=s[s.length-1],p=_(),!(p===KC||p===VC)){if(p===lc){E({type:"text",value:(t.keepEscaping?p:"")+_()});continue}if(p===bm){E({type:"text",value:"\\"+p});continue}if(p===Em){a++;let m;for(;l<c&&(m=_());){if(p+=m,m===Em){a++;continue}if(m===lc){p+=_();continue}if(m===bm&&(a--,a===0))break}E({type:"text",value:p});continue}if(p===HC){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:p});continue}if(p===GC){if(o.type!=="paren"){E({type:"text",value:p});continue}o=s.pop(),E({type:"text",value:p}),o=s[s.length-1];continue}if(p===zC||p===YC||p===qC){let m=p,A;for(t.keepQuotes!==!0&&(p="");l<c&&(A=_());){if(A===lc){p+=A+_();continue}if(A===m){t.keepQuotes===!0&&(p+=A);break}p+=A}E({type:"text",value:p});continue}if(p===UC){f++;let A={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=E(A),s.push(o),E({type:"open",value:p});continue}if(p===WC){if(o.type!=="brace"){E({type:"text",value:p});continue}let m="close";o=s.pop(),o.close=!0,E({type:m,value:p}),f--,o=s[s.length-1];continue}if(p===jC&&f>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:MC(o)}]}E({type:"comma",value:p}),o.commas++;continue}if(p===$C&&f>0&&o.commas===0){let m=o.nodes;if(f===0||m.length===0){E({type:"text",value:p});continue}if(u.type==="dot"){if(o.range=[],u.value+=p,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"){m.pop();let A=m[m.length-1];A.value+=u.value+p,u=A,o.ranges--;continue}E({type:"dot",value:p});continue}E({type:"text",value:p})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let m=s[s.length-1],A=m.nodes.indexOf(o);m.nodes.splice(A,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};_m.exports=XC});var xm=g((V8,vm)=>{"use strict";var Am=Ws(),ZC=fm(),JC=dm(),QC=Dm(),ut=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ut.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ut.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ut.parse=(e,t={})=>QC(e,t);ut.stringify=(e,t={})=>Am(typeof e=="string"?ut.parse(e,t):e,t);ut.compile=(e,t={})=>(typeof e=="string"&&(e=ut.parse(e,t)),ZC(e,t));ut.expand=(e,t={})=>{typeof e=="string"&&(e=ut.parse(e,t));let r=JC(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ut.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ut.compile(e,t):ut.expand(e,t);vm.exports=ut});var Ni=g((K8,Rm)=>{"use strict";var eS=require("path"),Tt="\\\\/",wm=`[^${Tt}]`,Zt="\\.",tS="\\+",rS="\\?",Vs="\\/",nS="(?=.)",Cm="[^/]",fc=`(?:${Vs}|$)`,Sm=`(?:^|${Vs})`,hc=`${Zt}{1,2}${fc}`,iS=`(?!${Zt})`,sS=`(?!${Sm}${hc})`,oS=`(?!${Zt}{0,1}${fc})`,uS=`(?!${hc})`,aS=`[^.${Vs}]`,cS=`${Cm}*?`,Fm={DOT_LITERAL:Zt,PLUS_LITERAL:tS,QMARK_LITERAL:rS,SLASH_LITERAL:Vs,ONE_CHAR:nS,QMARK:Cm,END_ANCHOR:fc,DOTS_SLASH:hc,NO_DOT:iS,NO_DOTS:sS,NO_DOT_SLASH:oS,NO_DOTS_SLASH:uS,QMARK_NO_DOT:aS,STAR:cS,START_ANCHOR:Sm},lS={...Fm,SLASH_LITERAL:`[${Tt}]`,QMARK:wm,STAR:`${wm}*?`,DOTS_SLASH:`${Zt}{1,2}(?:[${Tt}]|$)`,NO_DOT:`(?!${Zt})`,NO_DOTS:`(?!(?:^|[${Tt}])${Zt}{1,2}(?:[${Tt}]|$))`,NO_DOT_SLASH:`(?!${Zt}{0,1}(?:[${Tt}]|$))`,NO_DOTS_SLASH:`(?!${Zt}{1,2}(?:[${Tt}]|$))`,QMARK_NO_DOT:`[^.${Tt}]`,START_ANCHOR:`(?:^|[${Tt}])`,END_ANCHOR:`(?:[${Tt}]|$)`},fS={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"};Rm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:fS,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:eS.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?lS:Fm}}});var Mi=g(Je=>{"use strict";var hS=require("path"),pS=process.platform==="win32",{REGEX_BACKSLASH:dS,REGEX_REMOVE_BACKSLASH:mS,REGEX_SPECIAL_CHARS:gS,REGEX_SPECIAL_CHARS_GLOBAL:yS}=Ni();Je.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Je.hasRegexChars=e=>gS.test(e);Je.isRegexChar=e=>e.length===1&&Je.hasRegexChars(e);Je.escapeRegex=e=>e.replace(yS,"\\$1");Je.toPosixSlashes=e=>e.replace(dS,"/");Je.removeBackslashes=e=>e.replace(mS,t=>t==="\\"?"":t);Je.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Je.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:pS===!0||hS.sep==="\\";Je.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Je.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Je.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Je.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Nm=g((Z8,Lm)=>{"use strict";var Om=Mi(),{CHAR_ASTERISK:pc,CHAR_AT:ES,CHAR_BACKWARD_SLASH:qi,CHAR_COMMA:bS,CHAR_DOT:dc,CHAR_EXCLAMATION_MARK:mc,CHAR_FORWARD_SLASH:Im,CHAR_LEFT_CURLY_BRACE:gc,CHAR_LEFT_PARENTHESES:yc,CHAR_LEFT_SQUARE_BRACKET:_S,CHAR_PLUS:DS,CHAR_QUESTION_MARK:Tm,CHAR_RIGHT_CURLY_BRACE:AS,CHAR_RIGHT_PARENTHESES:km,CHAR_RIGHT_SQUARE_BRACKET:vS}=Ni(),Bm=e=>e===Im||e===qi,Pm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},xS=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=e,c=-1,l=0,f=0,p=!1,_=!1,E=!1,m=!1,A=!1,D=!1,R=!1,M=!1,W=!1,L=!1,X=0,G,U,J={value:"",depth:0,isGlob:!1},ge=()=>c>=n,w=()=>a.charCodeAt(c+1),se=()=>(G=U,a.charCodeAt(++c));for(;c<n;){U=se();let C;if(U===qi){R=J.backslashes=!0,U=se(),U===gc&&(D=!0);continue}if(D===!0||U===gc){for(X++;ge()!==!0&&(U=se());){if(U===qi){R=J.backslashes=!0,se();continue}if(U===gc){X++;continue}if(D!==!0&&U===dc&&(U=se())===dc){if(p=J.isBrace=!0,E=J.isGlob=!0,L=!0,i===!0)continue;break}if(D!==!0&&U===bS){if(p=J.isBrace=!0,E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===AS&&(X--,X===0)){D=!1,p=J.isBrace=!0,L=!0;break}}if(i===!0)continue;break}if(U===Im){if(s.push(c),o.push(J),J={value:"",depth:0,isGlob:!1},L===!0)continue;if(G===dc&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(U===DS||U===ES||U===pc||U===Tm||U===mc)===!0&&w()===yc){if(E=J.isGlob=!0,m=J.isExtglob=!0,L=!0,U===mc&&c===l&&(W=!0),i===!0){for(;ge()!==!0&&(U=se());){if(U===qi){R=J.backslashes=!0,U=se();continue}if(U===km){E=J.isGlob=!0,L=!0;break}}continue}break}if(U===pc){if(G===pc&&(A=J.isGlobstar=!0),E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===Tm){if(E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===_S){for(;ge()!==!0&&(C=se());){if(C===qi){R=J.backslashes=!0,se();continue}if(C===vS){_=J.isBracket=!0,E=J.isGlob=!0,L=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&U===mc&&c===l){M=J.negated=!0,l++;continue}if(r.noparen!==!0&&U===yc){if(E=J.isGlob=!0,i===!0){for(;ge()!==!0&&(U=se());){if(U===yc){R=J.backslashes=!0,U=se();continue}if(U===km){L=!0;break}}continue}break}if(E===!0){if(L=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,E=!1);let re=a,Xe="",v="";l>0&&(Xe=a.slice(0,l),a=a.slice(l),f-=l),re&&E===!0&&f>0?(re=a.slice(0,f),v=a.slice(f)):E===!0?(re="",v=a):re=a,re&&re!==""&&re!=="/"&&re!==a&&Bm(re.charCodeAt(re.length-1))&&(re=re.slice(0,-1)),r.unescape===!0&&(v&&(v=Om.removeBackslashes(v)),re&&R===!0&&(re=Om.removeBackslashes(re)));let b={prefix:Xe,input:e,start:l,base:re,glob:v,isBrace:p,isBracket:_,isGlob:E,isExtglob:m,isGlobstar:A,negated:M,negatedExtglob:W};if(r.tokens===!0&&(b.maxDepth=0,Bm(U)||o.push(J),b.tokens=o),r.parts===!0||r.tokens===!0){let C;for(let x=0;x<s.length;x++){let O=C?C+1:l,$=s[x],P=e.slice(O,$);r.tokens&&(x===0&&l!==0?(o[x].isPrefix=!0,o[x].value=Xe):o[x].value=P,Pm(o[x]),b.maxDepth+=o[x].depth),(x!==0||P!=="")&&u.push(P),C=$}if(C&&C+1<e.length){let x=e.slice(C+1);u.push(x),r.tokens&&(o[o.length-1].value=x,Pm(o[o.length-1]),b.maxDepth+=o[o.length-1].depth)}b.slashes=s,b.parts=u}return b};Lm.exports=xS});var jm=g((J8,qm)=>{"use strict";var Ks=Ni(),at=Mi(),{MAX_LENGTH:Xs,POSIX_REGEX_SOURCE:wS,REGEX_NON_SPECIAL_CHARS:CS,REGEX_SPECIAL_CHARS_BACKREF:SS,REPLACEMENTS:Mm}=Ks,FS=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>at.escapeRegex(i)).join("..")}return r},xn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Ec=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Mm[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Xs,r.maxLength):Xs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],u=r.capture?"":"?:",a=at.isWindows(t),c=Ks.globChars(a),l=Ks.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:E,DOTS_SLASH:m,NO_DOT:A,NO_DOT_SLASH:D,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:W,STAR:L,START_ANCHOR:X}=c,G=k=>`(${u}(?:(?!${X}${k.dot?m:f}).)*?)`,U=r.dot?"":A,J=r.dot?M:W,ge=r.bash===!0?G(r):L;r.capture&&(ge=`(${ge})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={input:e,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};e=at.removePrefix(e,w),i=e.length;let se=[],re=[],Xe=[],v=s,b,C=()=>w.index===i-1,x=w.peek=(k=1)=>e[w.index+k],O=w.advance=()=>e[++w.index]||"",$=()=>e.slice(w.index+1),P=(k="",ae=0)=>{w.consumed+=k,w.index+=ae},oe=k=>{w.output+=k.output!=null?k.output:k.value,P(k.value)},xe=()=>{let k=1;for(;x()==="!"&&(x(2)!=="("||x(3)==="?");)O(),w.start++,k++;return k%2===0?!1:(w.negated=!0,w.start++,!0)},ne=k=>{w[k]++,Xe.push(k)},ye=k=>{w[k]--,Xe.pop()},z=k=>{if(v.type==="globstar"){let ae=w.braces>0&&(k.type==="comma"||k.type==="brace"),T=k.extglob===!0||se.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!ae&&!T&&(w.output=w.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=ge,w.output+=v.output)}if(se.length&&k.type!=="paren"&&(se[se.length-1].inner+=k.value),(k.value||k.output)&&oe(k),v&&v.type==="text"&&k.type==="text"){v.value+=k.value,v.output=(v.output||"")+k.value;return}k.prev=v,o.push(k),v=k},ze=(k,ae)=>{let T={...l[ae],conditions:1,inner:""};T.prev=v,T.parens=w.parens,T.output=w.output;let h=(r.capture?"(":"")+T.open;ne("parens"),z({type:k,value:ae,output:w.output?"":E}),z({type:"paren",extglob:!0,value:O(),output:h}),se.push(T)},ot=k=>{let ae=k.close+(r.capture?")":""),T;if(k.type==="negate"){let h=ge;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(h=G(r)),(h!==ge||C()||/^\)+$/.test($()))&&(ae=k.close=`)$))${h}`),k.inner.includes("*")&&(T=$())&&/^\.[^\\/.]+$/.test(T)){let y=Ec(T,{...t,fastpaths:!1}).output;ae=k.close=`)${y})${h})`}k.prev.type==="bos"&&(w.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:b,output:ae}),ye("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,ae=e.replace(SS,(T,h,y,d,F,N)=>d==="\\"?(k=!0,T):d==="?"?h?h+d+(F?M.repeat(F.length):""):N===0?J+(F?M.repeat(F.length):""):M.repeat(y.length):d==="."?f.repeat(y.length):d==="*"?h?h+d+(F?ge:""):ge:h?T:`\\${T}`);return k===!0&&(r.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,T=>T.length%2===0?"\\\\":T?"\\":"")),ae===e&&r.contains===!0?(w.output=e,w):(w.output=at.wrapOutput(ae,w,t),w)}for(;!C();){if(b=O(),b==="\0")continue;if(b==="\\"){let T=x();if(T==="/"&&r.bash!==!0||T==="."||T===";")continue;if(!T){b+="\\",z({type:"text",value:b});continue}let h=/^\\+/.exec($()),y=0;if(h&&h[0].length>2&&(y=h[0].length,w.index+=y,y%2!==0&&(b+="\\")),r.unescape===!0?b=O():b+=O(),w.brackets===0){z({type:"text",value:b});continue}}if(w.brackets>0&&(b!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&b===":"){let T=v.value.slice(1);if(T.includes("[")&&(v.posix=!0,T.includes(":"))){let h=v.value.lastIndexOf("["),y=v.value.slice(0,h),d=v.value.slice(h+2),F=wS[d];if(F){v.value=y+F,w.backtrack=!0,O(),!s.output&&o.indexOf(v)===1&&(s.output=E);continue}}}(b==="["&&x()!==":"||b==="-"&&x()==="]")&&(b=`\\${b}`),b==="]"&&(v.value==="["||v.value==="[^")&&(b=`\\${b}`),r.posix===!0&&b==="!"&&v.value==="["&&(b="^"),v.value+=b,oe({value:b});continue}if(w.quotes===1&&b!=='"'){b=at.escapeRegex(b),v.value+=b,oe({value:b});continue}if(b==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:b});continue}if(b==="("){ne("parens"),z({type:"paren",value:b});continue}if(b===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(xn("opening","("));let T=se[se.length-1];if(T&&w.parens===T.parens+1){ot(se.pop());continue}z({type:"paren",value:b,output:w.parens?")":"\\)"}),ye("parens");continue}if(b==="["){if(r.nobracket===!0||!$().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));b=`\\${b}`}else ne("brackets");z({type:"bracket",value:b});continue}if(b==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){z({type:"text",value:b,output:`\\${b}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(xn("opening","["));z({type:"text",value:b,output:`\\${b}`});continue}ye("brackets");let T=v.value.slice(1);if(v.posix!==!0&&T[0]==="^"&&!T.includes("/")&&(b=`/${b}`),v.value+=b,oe({value:b}),r.literalBrackets===!1||at.hasRegexChars(T))continue;let h=at.escapeRegex(v.value);if(w.output=w.output.slice(0,-v.value.length),r.literalBrackets===!0){w.output+=h,v.value=h;continue}v.value=`(${u}${h}|${v.value})`,w.output+=v.value;continue}if(b==="{"&&r.nobrace!==!0){ne("braces");let T={type:"brace",value:b,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};re.push(T),z(T);continue}if(b==="}"){let T=re[re.length-1];if(r.nobrace===!0||!T){z({type:"text",value:b,output:b});continue}let h=")";if(T.dots===!0){let y=o.slice(),d=[];for(let F=y.length-1;F>=0&&(o.pop(),y[F].type!=="brace");F--)y[F].type!=="dots"&&d.unshift(y[F].value);h=FS(d,r),w.backtrack=!0}if(T.comma!==!0&&T.dots!==!0){let y=w.output.slice(0,T.outputIndex),d=w.tokens.slice(T.tokensIndex);T.value=T.output="\\{",b=h="\\}",w.output=y;for(let F of d)w.output+=F.output||F.value}z({type:"brace",value:b,output:h}),ye("braces"),re.pop();continue}if(b==="|"){se.length>0&&se[se.length-1].conditions++,z({type:"text",value:b});continue}if(b===","){let T=b,h=re[re.length-1];h&&Xe[Xe.length-1]==="braces"&&(h.comma=!0,T="|"),z({type:"comma",value:b,output:T});continue}if(b==="/"){if(v.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",o.pop(),v=s;continue}z({type:"slash",value:b,output:_});continue}if(b==="."){if(w.braces>0&&v.type==="dot"){v.value==="."&&(v.output=f);let T=re[re.length-1];v.type="dots",v.output+=b,v.value+=b,T.dots=!0;continue}if(w.braces+w.parens===0&&v.type!=="bos"&&v.type!=="slash"){z({type:"text",value:b,output:f});continue}z({type:"dot",value:b,output:f});continue}if(b==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&x()==="("&&x(2)!=="?"){ze("qmark",b);continue}if(v&&v.type==="paren"){let h=x(),y=b;if(h==="<"&&!at.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(h)||h==="<"&&!/<([!=]|\w+>)/.test($()))&&(y=`\\${b}`),z({type:"text",value:b,output:y});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){z({type:"qmark",value:b,output:W});continue}z({type:"qmark",value:b,output:M});continue}if(b==="!"){if(r.noextglob!==!0&&x()==="("&&(x(2)!=="?"||!/[!=<:]/.test(x(3)))){ze("negate",b);continue}if(r.nonegate!==!0&&w.index===0){xe();continue}}if(b==="+"){if(r.noextglob!==!0&&x()==="("&&x(2)!=="?"){ze("plus",b);continue}if(v&&v.value==="("||r.regex===!1){z({type:"plus",value:b,output:p});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||w.parens>0){z({type:"plus",value:b});continue}z({type:"plus",value:p});continue}if(b==="@"){if(r.noextglob!==!0&&x()==="("&&x(2)!=="?"){z({type:"at",extglob:!0,value:b,output:""});continue}z({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let T=CS.exec($());T&&(b+=T[0],w.index+=T[0].length),z({type:"text",value:b});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=b,v.output=ge,w.backtrack=!0,w.globstar=!0,P(b);continue}let k=$();if(r.noextglob!==!0&&/^\([^?]/.test(k)){ze("star",b);continue}if(v.type==="star"){if(r.noglobstar===!0){P(b);continue}let T=v.prev,h=T.prev,y=T.type==="slash"||T.type==="bos",d=h&&(h.type==="star"||h.type==="globstar");if(r.bash===!0&&(!y||k[0]&&k[0]!=="/")){z({type:"star",value:b,output:""});continue}let F=w.braces>0&&(T.type==="comma"||T.type==="brace"),N=se.length&&(T.type==="pipe"||T.type==="paren");if(!y&&T.type!=="paren"&&!F&&!N){z({type:"star",value:b,output:""});continue}for(;k.slice(0,3)==="/**";){let I=e[w.index+4];if(I&&I!=="/")break;k=k.slice(3),P("/**",3)}if(T.type==="bos"&&C()){v.type="globstar",v.value+=b,v.output=G(r),w.output=v.output,w.globstar=!0,P(b);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&!d&&C()){w.output=w.output.slice(0,-(T.output+v.output).length),T.output=`(?:${T.output}`,v.type="globstar",v.output=G(r)+(r.strictSlashes?")":"|$)"),v.value+=b,w.globstar=!0,w.output+=T.output+v.output,P(b);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&k[0]==="/"){let I=k[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(T.output+v.output).length),T.output=`(?:${T.output}`,v.type="globstar",v.output=`${G(r)}${_}|${_}${I})`,v.value+=b,w.output+=T.output+v.output,w.globstar=!0,P(b+O()),z({type:"slash",value:"/",output:""});continue}if(T.type==="bos"&&k[0]==="/"){v.type="globstar",v.value+=b,v.output=`(?:^|${_}|${G(r)}${_})`,w.output=v.output,w.globstar=!0,P(b+O()),z({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-v.output.length),v.type="globstar",v.output=G(r),v.value+=b,w.output+=v.output,w.globstar=!0,P(b);continue}let ae={type:"star",value:b,output:ge};if(r.bash===!0){ae.output=".*?",(v.type==="bos"||v.type==="slash")&&(ae.output=U+ae.output),z(ae);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){ae.output=b,z(ae);continue}(w.index===w.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(w.output+=D,v.output+=D):r.dot===!0?(w.output+=R,v.output+=R):(w.output+=U,v.output+=U),x()!=="*"&&(w.output+=E,v.output+=E)),z(ae)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));w.output=at.escapeLast(w.output,"["),ye("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing",")"));w.output=at.escapeLast(w.output,"("),ye("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","}"));w.output=at.escapeLast(w.output,"{"),ye("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${_}?`}),w.backtrack===!0){w.output="";for(let k of w.tokens)w.output+=k.output!=null?k.output:k.value,k.suffix&&(w.output+=k.suffix)}return w};Ec.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Xs,r.maxLength):Xs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Mm[e]||e;let s=at.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:_,START_ANCHOR:E}=Ks.globChars(s),m=r.dot?f:l,A=r.dot?p:l,D=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":_;r.capture&&(M=`(${M})`);let W=U=>U.noglobstar===!0?M:`(${D}(?:(?!${E}${U.dot?c:o}).)*?)`,L=U=>{switch(U){case"*":return`${m}${a}${M}`;case".*":return`${o}${a}${M}`;case"*.*":return`${m}${M}${o}${a}${M}`;case"*/*":return`${m}${M}${u}${a}${A}${M}`;case"**":return m+W(r);case"**/*":return`(?:${m}${W(r)}${u})?${A}${a}${M}`;case"**/*.*":return`(?:${m}${W(r)}${u})?${A}${M}${o}${a}${M}`;case"**/.*":return`(?:${m}${W(r)}${u})?${o}${a}${M}`;default:{let J=/^(.*?)\.(\w+)$/.exec(U);if(!J)return;let ge=L(J[1]);return ge?ge+o+J[2]:void 0}}},X=at.removePrefix(e,R),G=L(X);return G&&r.strictSlashes!==!0&&(G+=`${u}?`),G};qm.exports=Ec});var Hm=g((Q8,$m)=>{"use strict";var RS=require("path"),OS=Nm(),bc=jm(),_c=Mi(),TS=Ni(),kS=e=>e&&typeof e=="object"&&!Array.isArray(e),_e=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(p=>_e(p,t,r));return p=>{for(let _ of l){let E=_(p);if(E)return E}return!1}}let n=kS(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=_c.isWindows(t),o=n?_e.compileRe(e,t):_e.makeRe(e,t,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};a=_e(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:p,match:_,output:E}=_e.test(l,o,t,{glob:e,posix:s}),m={glob:e,state:u,regex:o,posix:s,input:l,output:E,match:_,isMatch:p};return typeof i.onResult=="function"&&i.onResult(m),p===!1?(m.isMatch=!1,f?m:!1):a(l)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,f?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),f?m:!0)};return r&&(c.state=u),c};_e.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?_c.toPosixSlashes:null),u=e===n,a=u&&o?o(e):e;return u===!1&&(a=o?o(e):e,u=a===n),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=_e.matchBase(e,t,r,i):u=t.exec(a)),{isMatch:!!u,match:u,output:a}};_e.matchBase=(e,t,r,n=_c.isWindows(r))=>(t instanceof RegExp?t:_e.makeRe(t,r)).test(RS.basename(e));_e.isMatch=(e,t,r)=>_e(t,r)(e);_e.parse=(e,t)=>Array.isArray(e)?e.map(r=>_e.parse(r,t)):bc(e,{...t,fastpaths:!1});_e.scan=(e,t)=>OS(e,t);_e.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",u=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let a=_e.toRegex(u,t);return n===!0&&(a.state=e),a};_e.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=bc.fastpaths(e,t)),i.output||(i=bc(e,t)),_e.compileRe(i,t,r,n)};_e.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};_e.constants=TS;$m.exports=_e});var Um=g((e6,Gm)=>{"use strict";Gm.exports=Hm()});var Xm=g((t6,Km)=>{"use strict";var zm=require("util"),Ym=xm(),kt=Um(),Dc=Mi(),Wm=e=>e===""||e==="./",Vm=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},he=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,u=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let f=kt(String(t[l]),{...r,onResult:u},!0),p=f.state.negated||f.state.negatedExtglob;p&&o++;for(let _ of e){let E=f(_,!0);(p?!E.isMatch:E.isMatch)&&(p?n.add(E.output):(n.delete(E.output),i.add(E.output)))}}let c=(o===t.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};he.match=he;he.matcher=(e,t)=>kt(e,t);he.isMatch=(e,t,r)=>kt(t,r)(e);he.any=he.isMatch;he.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=u=>{r.onResult&&r.onResult(u),i.push(u.output)},o=new Set(he(e,t,{...r,onResult:s}));for(let u of i)o.has(u)||n.add(u);return[...n]};he.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${zm.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>he.contains(e,n,r));if(typeof t=="string"){if(Wm(e)||Wm(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return he.isMatch(e,t,{...r,contains:!0})};he.matchKeys=(e,t,r)=>{if(!Dc.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=he(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};he.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=kt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};he.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=kt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};he.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${zm.inspect(e)}"`);return[].concat(t).every(n=>kt(n,r)(e))};he.capture=(e,t,r)=>{let n=Dc.isWindows(r),s=kt.makeRe(String(e),{...r,capture:!0}).exec(n?Dc.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};he.makeRe=(...e)=>kt.makeRe(...e);he.scan=(...e)=>kt.scan(...e);he.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Ym(String(n),t))r.push(kt.parse(i,t));return r};he.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!Vm(e)?[e]:Ym(e,t)};he.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return he.braces(e,{...t,expand:!0})};he.hasBraces=Vm;Km.exports=he});var ig=g(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.matchAny=V.convertPatternsToRe=V.makeRe=V.getPatternParts=V.expandBraceExpansion=V.expandPatternsWithBraceExpansion=V.isAffectDepthOfReadingPattern=V.endsWithSlashGlobStar=V.hasGlobStar=V.getBaseDirectory=V.isPatternRelatedToParentDirectory=V.getPatternsOutsideCurrentDirectory=V.getPatternsInsideCurrentDirectory=V.getPositivePatterns=V.getNegativePatterns=V.isPositivePattern=V.isNegativePattern=V.convertToNegativePattern=V.convertToPositivePattern=V.isDynamicPattern=V.isStaticPattern=void 0;var BS=require("path"),PS=Hd(),Ac=Xm(),Zm="**",IS="\\",LS=/[*?]|^!/,NS=/\[[^[]*]/,MS=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,qS=/[!*+?@]\([^(]*\)/,jS=/,|\.\./;function Jm(e,t={}){return!Qm(e,t)}V.isStaticPattern=Jm;function Qm(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(IS)||LS.test(e)||NS.test(e)||MS.test(e)||t.extglob!==!1&&qS.test(e)||t.braceExpansion!==!1&&$S(e))}V.isDynamicPattern=Qm;function $S(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return jS.test(n)}function HS(e){return Zs(e)?e.slice(1):e}V.convertToPositivePattern=HS;function GS(e){return"!"+e}V.convertToNegativePattern=GS;function Zs(e){return e.startsWith("!")&&e[1]!=="("}V.isNegativePattern=Zs;function eg(e){return!Zs(e)}V.isPositivePattern=eg;function US(e){return e.filter(Zs)}V.getNegativePatterns=US;function WS(e){return e.filter(eg)}V.getPositivePatterns=WS;function zS(e){return e.filter(t=>!vc(t))}V.getPatternsInsideCurrentDirectory=zS;function YS(e){return e.filter(vc)}V.getPatternsOutsideCurrentDirectory=YS;function vc(e){return e.startsWith("..")||e.startsWith("./..")}V.isPatternRelatedToParentDirectory=vc;function VS(e){return PS(e,{flipBackslashes:!1})}V.getBaseDirectory=VS;function KS(e){return e.includes(Zm)}V.hasGlobStar=KS;function tg(e){return e.endsWith("/"+Zm)}V.endsWithSlashGlobStar=tg;function XS(e){let t=BS.basename(e);return tg(e)||Jm(t)}V.isAffectDepthOfReadingPattern=XS;function ZS(e){return e.reduce((t,r)=>t.concat(rg(r)),[])}V.expandPatternsWithBraceExpansion=ZS;function rg(e){return Ac.braces(e,{expand:!0,nodupes:!0})}V.expandBraceExpansion=rg;function JS(e,t){let{parts:r}=Ac.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}V.getPatternParts=JS;function ng(e,t){return Ac.makeRe(e,t)}V.makeRe=ng;function QS(e,t){return e.map(r=>ng(r,t))}V.convertPatternsToRe=QS;function e5(e,t){return t.some(r=>r.test(e))}V.matchAny=e5});var ag=g((n6,ug)=>{"use strict";var t5=require("stream"),sg=t5.PassThrough,r5=Array.prototype.slice;ug.exports=n5;function n5(){let e=[],t=r5.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=sg(n);function u(){for(let l=0,f=arguments.length;l<f;l++)e.push(og(arguments[l],n));return a(),this}function a(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function p(){--f>0||(r=!1,a())}function _(E){function m(){E.removeListener("merge2UnpipeEnd",m),E.removeListener("end",m),s&&E.removeListener("error",A),p()}function A(D){o.emit("error",D)}if(E._readableState.endEmitted)return p();E.on("merge2UnpipeEnd",m),E.on("end",m),s&&E.on("error",A),E.pipe(o,{end:!1}),E.resume()}for(let E=0;E<l.length;E++)_(l[E]);p()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&u.apply(null,t),o}function og(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=og(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(sg(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var lg=g(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.merge=void 0;var i5=ag();function s5(e){let t=i5(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>cg(e)),t.once("end",()=>cg(e)),t}Js.merge=s5;function cg(e){e.forEach(t=>t.emit("close"))}});var fg=g(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.isEmpty=wn.isString=void 0;function o5(e){return typeof e=="string"}wn.isString=o5;function u5(e){return e===""}wn.isEmpty=u5});var Jt=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.string=Me.stream=Me.pattern=Me.path=Me.fs=Me.errno=Me.array=void 0;var a5=kd();Me.array=a5;var c5=Bd();Me.errno=c5;var l5=Pd();Me.fs=l5;var f5=Id();Me.path=f5;var h5=ig();Me.pattern=h5;var p5=lg();Me.stream=p5;var d5=fg();Me.string=d5});var dg=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.convertPatternGroupToTask=qe.convertPatternGroupsToTasks=qe.groupPatternsByBaseDirectory=qe.getNegativePatternsAsPositive=qe.getPositivePatterns=qe.convertPatternsToTasks=qe.generate=void 0;var Qt=Jt();function m5(e,t){let r=hg(e),n=pg(e,t.ignore),i=r.filter(a=>Qt.pattern.isStaticPattern(a,t)),s=r.filter(a=>Qt.pattern.isDynamicPattern(a,t)),o=xc(i,n,!1),u=xc(s,n,!0);return o.concat(u)}qe.generate=m5;function xc(e,t,r){let n=[],i=Qt.pattern.getPatternsOutsideCurrentDirectory(e),s=Qt.pattern.getPatternsInsideCurrentDirectory(e),o=wc(i),u=wc(s);return n.push(...Cc(o,t,r)),"."in u?n.push(Sc(".",s,t,r)):n.push(...Cc(u,t,r)),n}qe.convertPatternsToTasks=xc;function hg(e){return Qt.pattern.getPositivePatterns(e)}qe.getPositivePatterns=hg;function pg(e,t){return Qt.pattern.getNegativePatterns(e).concat(t).map(Qt.pattern.convertToPositivePattern)}qe.getNegativePatternsAsPositive=pg;function wc(e){let t={};return e.reduce((r,n)=>{let i=Qt.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}qe.groupPatternsByBaseDirectory=wc;function Cc(e,t,r){return Object.keys(e).map(n=>Sc(n,e[n],t,r))}qe.convertPatternGroupsToTasks=Cc;function Sc(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Qt.pattern.convertToNegativePattern))}}qe.convertPatternGroupToTask=Sc});var gg=g(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.removeDuplicateSlashes=Cn.transform=void 0;var g5=/(?!^)\/{2,}/g;function y5(e){return e.map(t=>mg(t))}Cn.transform=y5;function mg(e){return e.replace(g5,"/")}Cn.removeDuplicateSlashes=mg});var Eg=g(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.read=void 0;function E5(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){yg(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Fc(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){yg(r,s);return}Fc(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Fc(r,o)})})}Qs.read=E5;function yg(e,t){e(t)}function Fc(e,t){e(null,t)}});var bg=g(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.read=void 0;function b5(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}eo.read=b5});var _g=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.createFileSystemAdapter=Er.FILE_SYSTEM_ADAPTER=void 0;var to=require("fs");Er.FILE_SYSTEM_ADAPTER={lstat:to.lstat,stat:to.stat,lstatSync:to.lstatSync,statSync:to.statSync};function _5(e){return e===void 0?Er.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Er.FILE_SYSTEM_ADAPTER),e)}Er.createFileSystemAdapter=_5});var Dg=g(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var D5=_g(),Rc=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=D5.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};Oc.default=Rc});var Vr=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.statSync=br.stat=br.Settings=void 0;var Ag=Eg(),A5=bg(),Tc=Dg();br.Settings=Tc.default;function v5(e,t,r){if(typeof t=="function"){Ag.read(e,kc(),t);return}Ag.read(e,kc(t),r)}br.stat=v5;function x5(e,t){let r=kc(t);return A5.read(e,r)}br.statSync=x5;function kc(e={}){return e instanceof Tc.default?e:new Tc.default(e)}});var wg=g((d6,xg)=>{var vg;xg.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(vg||(vg=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Sg=g((m6,Cg)=>{Cg.exports=C5;var w5=wg();function C5(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(a){function c(){t&&t(a,r),t=null}s?w5(c):c()}function u(a,c,l){r[a]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(a){e[a](function(c,l){u(a,c,l)})}):e.forEach(function(a,c){a(function(l,f){u(c,l,f)})}):o(null),s=!1}});var Bc=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ro=process.versions.node.split(".");if(ro[0]===void 0||ro[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fg=Number.parseInt(ro[0],10),S5=Number.parseInt(ro[1],10),Rg=10,F5=10,R5=Fg>Rg,O5=Fg===Rg&&S5>=F5;no.IS_SUPPORT_READDIR_WITH_FILE_TYPES=R5||O5});var Og=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.createDirentFromStats=void 0;var Pc=class{constructor(t,r){this.name=t,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 T5(e,t){return new Pc(e,t)}io.createDirentFromStats=T5});var Ic=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.fs=void 0;var k5=Og();so.fs=k5});var Lc=g(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.joinPathSegments=void 0;function B5(e,t,r){return e.endsWith(r)?e+t:e+r+t}oo.joinPathSegments=B5});var Lg=g(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.readdir=_r.readdirWithFileTypes=_r.read=void 0;var P5=Vr(),Tg=Sg(),I5=Bc(),kg=Ic(),Bg=Lc();function L5(e,t,r){if(!t.stats&&I5.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Pg(e,t,r);return}Ig(e,t,r)}_r.read=L5;function Pg(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){uo(r,n);return}let s=i.map(u=>({dirent:u,name:u.name,path:Bg.joinPathSegments(e,u.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Nc(r,s);return}let o=s.map(u=>N5(u,t));Tg(o,(u,a)=>{if(u!==null){uo(r,u);return}Nc(r,a)})})}_r.readdirWithFileTypes=Pg;function N5(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=kg.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Ig(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){uo(r,n);return}let s=i.map(o=>{let u=Bg.joinPathSegments(e,o,t.pathSegmentSeparator);return a=>{P5.stat(u,t.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:kg.fs.createDirentFromStats(o,l)};t.stats&&(f.stats=l),a(null,f)})}});Tg(s,(o,u)=>{if(o!==null){uo(r,o);return}Nc(r,u)})})}_r.readdir=Ig;function uo(e,t){e(t)}function Nc(e,t){e(null,t)}});var $g=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.readdir=Dr.readdirWithFileTypes=Dr.read=void 0;var M5=Vr(),q5=Bc(),Ng=Ic(),Mg=Lc();function j5(e,t){return!t.stats&&q5.IS_SUPPORT_READDIR_WITH_FILE_TYPES?qg(e,t):jg(e,t)}Dr.read=j5;function qg(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Mg.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Ng.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Dr.readdirWithFileTypes=qg;function jg(e,t){return t.fs.readdirSync(e).map(n=>{let i=Mg.joinPathSegments(e,n,t.pathSegmentSeparator),s=M5.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Ng.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Dr.readdir=jg});var Hg=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.createFileSystemAdapter=Ar.FILE_SYSTEM_ADAPTER=void 0;var Sn=require("fs");Ar.FILE_SYSTEM_ADAPTER={lstat:Sn.lstat,stat:Sn.stat,lstatSync:Sn.lstatSync,statSync:Sn.statSync,readdir:Sn.readdir,readdirSync:Sn.readdirSync};function $5(e){return e===void 0?Ar.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ar.FILE_SYSTEM_ADAPTER),e)}Ar.createFileSystemAdapter=$5});var Gg=g(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var H5=require("path"),G5=Vr(),U5=Hg(),Mc=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=U5.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,H5.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new G5.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};qc.default=Mc});var ao=g(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Settings=vr.scandirSync=vr.scandir=void 0;var Ug=Lg(),W5=$g(),jc=Gg();vr.Settings=jc.default;function z5(e,t,r){if(typeof t=="function"){Ug.read(e,$c(),t);return}Ug.read(e,$c(t),r)}vr.scandir=z5;function Y5(e,t){let r=$c(t);return W5.read(e,r)}vr.scandirSync=Y5;function $c(e={}){return e instanceof jc.default?e:new jc.default(e)}});var zg=g((w6,Wg)=>{"use strict";function V5(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Wg.exports=V5});var Vg=g((C6,Hc)=>{"use strict";var K5=zg();function Yg(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=K5(X5),i=null,s=null,o=0,u=null,a={push:m,drain:mt,saturated:mt,pause:l,paused:!1,concurrency:r,running:c,resume:_,idle:E,length:f,getQueue:p,unshift:A,empty:mt,kill:R,killAndDrain:M,error:W};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var L=i,X=0;L;)L=L.next,X++;return X}function p(){for(var L=i,X=[];L;)X.push(L.value),L=L.next;return X}function _(){if(a.paused){a.paused=!1;for(var L=0;L<a.concurrency;L++)o++,D()}}function E(){return o===0&&a.length()===0}function m(L,X){var G=n.get();G.context=e,G.release=D,G.value=L,G.callback=X||mt,G.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=G,s=G):(i=G,s=G,a.saturated()):(o++,t.call(e,G.value,G.worked))}function A(L,X){var G=n.get();G.context=e,G.release=D,G.value=L,G.callback=X||mt,o===a.concurrency||a.paused?i?(G.next=i,i=G):(i=G,s=G,a.saturated()):(o++,t.call(e,G.value,G.worked))}function D(L){L&&n.release(L);var X=i;X?a.paused?o--:(s===i&&(s=null),i=X.next,X.next=null,t.call(e,X.value,X.worked),s===null&&a.empty()):--o===0&&a.drain()}function R(){i=null,s=null,a.drain=mt}function M(){i=null,s=null,a.drain(),a.drain=mt}function W(L){u=L}}function mt(){}function X5(){this.value=null,this.callback=mt,this.next=null,this.release=mt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=mt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Z5(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,f){t.call(this,l).then(function(p){f(null,p)},f)}var i=Yg(e,n,r),s=i.push,o=i.unshift;return i.push=u,i.unshift=a,i.drained=c,i;function u(l){var f=new Promise(function(p,_){s(l,function(E,m){if(E){_(E);return}p(m)})});return f.catch(mt),f}function a(l){var f=new Promise(function(p,_){o(l,function(E,m){if(E){_(E);return}p(m)})});return f.catch(mt),f}function c(){var l=i.drain,f=new Promise(function(p){i.drain=function(){l(),p()}});return f}}Hc.exports=Yg;Hc.exports.promise=Z5});var co=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.joinPathSegments=Bt.replacePathSegmentSeparator=Bt.isAppliedFilter=Bt.isFatalError=void 0;function J5(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Bt.isFatalError=J5;function Q5(e,t){return e===null||e(t)}Bt.isAppliedFilter=Q5;function eF(e,t){return e.split(/[/\\]/).join(t)}Bt.replacePathSegmentSeparator=eF;function tF(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Bt.joinPathSegments=tF});var Wc=g(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var rF=co(),Gc=class{constructor(t,r){this._root=t,this._settings=r,this._root=rF.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Uc.default=Gc});var Vc=g(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var nF=require("events"),iF=ao(),sF=Vg(),lo=co(),oF=Wc(),zc=class extends oF.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=iF.scandir,this._emitter=new nF.EventEmitter,this._queue=sF(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!lo.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=lo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),lo.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&lo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Yc.default=zc});var Kg=g(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var uF=Vc(),Kc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new uF.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{aF(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{cF(t,this._storage)}),this._reader.read()}};Xc.default=Kc;function aF(e,t){e(t)}function cF(e,t){e(null,t)}});var Xg=g(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var lF=require("stream"),fF=Vc(),Zc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new fF.default(this._root,this._settings),this._stream=new lF.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Jc.default=Zc});var Zg=g(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var hF=ao(),fo=co(),pF=Wc(),Qc=class extends pF.default{constructor(){super(...arguments),this._scandir=hF.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(fo.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=fo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),fo.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&fo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};el.default=Qc});var Jg=g(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var dF=Zg(),tl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new dF.default(this._root,this._settings)}read(){return this._reader.read()}};rl.default=tl});var Qg=g(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var mF=require("path"),gF=ao(),nl=class{constructor(t={}){this._options=t,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,mF.sep),this.fsScandirSettings=new gF.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};il.default=nl});var po=g(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Settings=Pt.walkStream=Pt.walkSync=Pt.walk=void 0;var e1=Kg(),yF=Xg(),EF=Jg(),sl=Qg();Pt.Settings=sl.default;function bF(e,t,r){if(typeof t=="function"){new e1.default(e,ho()).read(t);return}new e1.default(e,ho(t)).read(r)}Pt.walk=bF;function _F(e,t){let r=ho(t);return new EF.default(e,r).read()}Pt.walkSync=_F;function DF(e,t){let r=ho(t);return new yF.default(e,r).read()}Pt.walkStream=DF;function ho(e={}){return e instanceof sl.default?e:new sl.default(e)}});var mo=g(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var AF=require("path"),vF=Vr(),t1=Jt(),ol=class{constructor(t){this._settings=t,this._fsStatSettings=new vF.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return AF.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:t1.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!t1.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};ul.default=ol});var ll=g(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var xF=require("stream"),wF=Vr(),CF=po(),SF=mo(),al=class extends SF.default{constructor(){super(...arguments),this._walkStream=CF.walkStream,this._stat=wF.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new xF.PassThrough({objectMode:!0});i._write=(s,o,u)=>this._getEntry(n[s],t[s],r).then(a=>{a!==null&&r.entryFilter(a)&&i.push(a),s===n.length-1&&i.end(),u()}).catch(u);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};cl.default=al});var r1=g(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var FF=po(),RF=mo(),OF=ll(),fl=class extends RF.default{constructor(){super(...arguments),this._walkAsync=FF.walk,this._readerStream=new OF.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",u=>n.push(u)),i.once("end",()=>s(n))})}};hl.default=fl});var n1=g(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var Fn=Jt(),pl=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Fn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Fn.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Fn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Fn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Fn.array.splitWhen(t,r=>r.dynamic&&Fn.pattern.hasGlobStar(r.pattern))}};dl.default=pl});var i1=g(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var TF=n1(),ml=class extends TF.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>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}};gl.default=ml});var s1=g(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var go=Jt(),kF=i1(),yl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new kF.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(go.pattern.isAffectDepthOfReadingPattern);return go.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=go.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!go.pattern.matchAny(t,r)}};El.default=yl});var o1=g(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Kr=Jt(),bl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Kr.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Kr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Kr.path.makeAbsolute(this._settings.cwd,t);return Kr.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Kr.path.removeLeadingDotSegment(t),s=Kr.pattern.matchAny(i,r);return!s&&n?Kr.pattern.matchAny(i+"/",r):s}};_l.default=bl});var u1=g(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var BF=Jt(),Dl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return BF.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Al.default=Dl});var c1=g(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var a1=Jt(),vl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=a1.path.makeAbsolute(this._settings.cwd,r),r=a1.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};xl.default=vl});var yo=g(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var PF=require("path"),IF=s1(),LF=o1(),NF=u1(),MF=c1(),wl=class{constructor(t){this._settings=t,this.errorFilter=new NF.default(this._settings),this.entryFilter=new LF.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new IF.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new MF.default(this._settings)}_getRootDirectory(t){return PF.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};Cl.default=wl});var l1=g(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var qF=r1(),jF=yo(),Sl=class extends jF.default{constructor(){super(...arguments),this._reader=new qF.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Fl.default=Sl});var f1=g(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var $F=require("stream"),HF=ll(),GF=yo(),Rl=class extends GF.default{constructor(){super(...arguments),this._reader=new HF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new $F.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ol.default=Rl});var h1=g(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var UF=Vr(),WF=po(),zF=mo(),Tl=class extends zF.default{constructor(){super(...arguments),this._walkSync=WF.walkSync,this._statSync=UF.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};kl.default=Tl});var p1=g(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var YF=h1(),VF=yo(),Bl=class extends VF.default{constructor(){super(...arguments),this._reader=new YF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Pl.default=Bl});var d1=g(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Rn=require("fs"),KF=require("os"),XF=Math.max(KF.cpus().length,1);On.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Rn.lstat,lstatSync:Rn.lstatSync,stat:Rn.stat,statSync:Rn.statSync,readdir:Rn.readdir,readdirSync:Rn.readdirSync};var Il=class{constructor(t={}){this._options=t,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,XF),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},On.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};On.default=Il});var E1=g((Z6,y1)=>{"use strict";var m1=dg(),g1=gg(),ZF=l1(),JF=f1(),QF=p1(),Ll=d1(),Xr=Jt();async function Nl(e,t){Tn(e);let r=Ml(e,ZF.default,t),n=await Promise.all(r);return Xr.array.flatten(n)}(function(e){function t(o,u){Tn(o);let a=Ml(o,QF.default,u);return Xr.array.flatten(a)}e.sync=t;function r(o,u){Tn(o);let a=Ml(o,JF.default,u);return Xr.stream.merge(a)}e.stream=r;function n(o,u){Tn(o);let a=g1.transform([].concat(o)),c=new Ll.default(u);return m1.generate(a,c)}e.generateTasks=n;function i(o,u){Tn(o);let a=new Ll.default(u);return Xr.pattern.isDynamicPattern(o,a)}e.isDynamicPattern=i;function s(o){return Tn(o),Xr.path.escape(o)}e.escapePath=s})(Nl||(Nl={}));function Ml(e,t,r){let n=g1.transform([].concat(e)),i=new Ll.default(r),s=m1.generate(n,i),o=new t(i);return s.map(o.read,o)}function Tn(e){if(![].concat(e).every(n=>Xr.string.isString(n)&&!Xr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}y1.exports=Nl});var _1=g((J6,b1)=>{"use strict";b1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ql=g((Q6,A1)=>{var ji=_1(),D1={};for(let e of Object.keys(ji))D1[ji[e]]=e;var q={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};A1.exports=q;for(let e of Object.keys(q)){if(!("channels"in q[e]))throw new Error("missing channels property: "+e);if(!("labels"in q[e]))throw new Error("missing channel labels property: "+e);if(q[e].labels.length!==q[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=q[e];delete q[e].channels,delete q[e].labels,Object.defineProperty(q[e],"channels",{value:t}),Object.defineProperty(q[e],"labels",{value:r})}q.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,u,a;s===i?u=0:t===s?u=(r-n)/o:r===s?u=2+(n-t)/o:n===s&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360);let c=(i+s)/2;return s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[u,a*100,c*100]};q.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,u=e[1]/255,a=e[2]/255,c=Math.max(o,u,a),l=c-Math.min(o,u,a),f=function(p){return(c-p)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,t=f(o),r=f(u),n=f(a),o===c?i=n-r:u===c?i=1/3+t-n:a===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};q.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=q.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};q.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,u=(1-n-i)/(1-i)||0;return[s*100,o*100,u*100,i*100]};function eR(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}q.rgb.keyword=function(e){let t=D1[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(ji)){let s=ji[i],o=eR(e,s);o<r&&(r=o,n=i)}return n};q.keyword.rgb=function(e){return ji[e]};q.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};q.rgb.lab=function(e){let t=q.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),u=200*(n-i);return[s,o,u]};q.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let u=2*n-i,a=[0,0,0];for(let c=0;c<3;c++)s=t+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=u+(i-u)*6*s:2*s<1?o=i:3*s<2?o=u+(i-u)*(2/3-s)*6:o=u,a[c]=o*255;return a};q.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,u=n===0?2*i/(s+i):2*r/(n+r);return[t,u*100,o*100]};q.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[u,n,o];case 2:return[o,n,a];case 3:return[o,u,n];case 4:return[a,o,n];case 5:return[n,o,u]}};q.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let u=(2-r)*i;return s=r*i,s/=u<=1?u:2-u,s=s||0,o/=2,[t,s*100,o*100]};q.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),u=1-n;s=6*t-o,o&1&&(s=1-s);let a=r+s*(u-r),c,l,f;switch(o){default:case 6:case 0:c=u,l=a,f=r;break;case 1:c=a,l=u,f=r;break;case 2:c=r,l=u,f=a;break;case 3:c=r,l=a,f=u;break;case 4:c=a,l=r,f=u;break;case 5:c=u,l=r,f=a;break}return[c*255,l*255,f*255]};q.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,u*255]};q.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};q.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};q.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let u=s**3,a=i**3,c=o**3;return s=u>.008856?u:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};q.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};q.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};q.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?q.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};q.hsv.ansi16=function(e){return q.rgb.ansi16(q.hsv.rgb(e),e[2])};q.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};q.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};q.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};q.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};q.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(u=>u+u).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};q.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,u,a;return o<1?u=s/(1-o):u=0,o<=0?a=0:i===t?a=(r-n)/o%6:i===r?a=2+(n-t)/o:a=4+(t-r)/o,a/=6,a%=1,[a*360,o*100,u*100]};q.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};q.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};q.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,u=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};q.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};q.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};q.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};q.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};q.gray.hsl=function(e){return[0,0,e[0]]};q.gray.hsv=q.gray.hsl;q.gray.hwb=function(e){return[0,100,e[0]]};q.gray.cmyk=function(e){return[0,0,0,e[0]]};q.gray.lab=function(e){return[e[0],0,0]};q.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var x1=g((eI,v1)=>{var Eo=ql();function tR(){let e={},t=Object.keys(Eo);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function rR(e){let t=tR(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Eo[n]);for(let s=i.length,o=0;o<s;o++){let u=i[o],a=t[u];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(u))}}return t}function nR(e,t){return function(r){return t(e(r))}}function iR(e,t){let r=[t[e].parent,e],n=Eo[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=nR(Eo[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}v1.exports=function(e){let t=rR(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=iR(o,t))}return r}});var C1=g((tI,w1)=>{var jl=ql(),sR=x1(),kn={},oR=Object.keys(jl);function uR(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function aR(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}oR.forEach(e=>{kn[e]={},Object.defineProperty(kn[e],"channels",{value:jl[e].channels}),Object.defineProperty(kn[e],"labels",{value:jl[e].labels});let t=sR(e);Object.keys(t).forEach(n=>{let i=t[n];kn[e][n]=aR(i),kn[e][n].raw=uR(i)})});w1.exports=kn});var Hl=g((rI,T1)=>{"use strict";var S1=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,F1=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},R1=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},bo=e=>e,O1=(e,t,r)=>[e,t,r],Bn=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},$l,Pn=(e,t,r,n)=>{$l===void 0&&($l=C1());let i=n?10:0,s={};for(let[o,u]of Object.entries($l)){let a=o==="ansi16"?"ansi":o;o===t?s[a]=e(r,i):typeof u=="object"&&(s[a]=e(u[t],i))}return s};function cR(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Bn(t.color,"ansi",()=>Pn(S1,"ansi16",bo,!1)),Bn(t.color,"ansi256",()=>Pn(F1,"ansi256",bo,!1)),Bn(t.color,"ansi16m",()=>Pn(R1,"rgb",O1,!1)),Bn(t.bgColor,"ansi",()=>Pn(S1,"ansi16",bo,!0)),Bn(t.bgColor,"ansi256",()=>Pn(F1,"ansi256",bo,!0)),Bn(t.bgColor,"ansi16m",()=>Pn(R1,"rgb",O1,!0)),t}Object.defineProperty(T1,"exports",{enumerable:!0,get:cR})});var B1=g((nI,k1)=>{"use strict";k1.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Wl=g((iI,I1)=>{"use strict";var lR=require("os"),P1=require("tty"),gt=B1(),{env:Fe}=process,xr;gt("no-color")||gt("no-colors")||gt("color=false")||gt("color=never")?xr=0:(gt("color")||gt("colors")||gt("color=true")||gt("color=always"))&&(xr=1);"FORCE_COLOR"in Fe&&(Fe.FORCE_COLOR==="true"?xr=1:Fe.FORCE_COLOR==="false"?xr=0:xr=Fe.FORCE_COLOR.length===0?1:Math.min(parseInt(Fe.FORCE_COLOR,10),3));function Gl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ul(e,t){if(xr===0)return 0;if(gt("color=16m")||gt("color=full")||gt("color=truecolor"))return 3;if(gt("color=256"))return 2;if(e&&!t&&xr===void 0)return 0;let r=xr||0;if(Fe.TERM==="dumb")return r;if(process.platform==="win32"){let n=lR.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Fe)||Fe.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fe.TEAMCITY_VERSION)?1:0;if(Fe.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Fe){let n=parseInt((Fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fe.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fe.TERM)||"COLORTERM"in Fe?1:r}function fR(e){let t=Ul(e,e&&e.isTTY);return Gl(t)}I1.exports={supportsColor:fR,stdout:Gl(Ul(!0,P1.isatty(1))),stderr:Gl(Ul(!0,P1.isatty(2)))}});var N1=g((sI,L1)=>{"use strict";var hR=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},pR=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
4
4
|
`:`
|
|
5
5
|
`)+r,i=n+1,n=e.indexOf(`
|
|
6
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};
|
|
7
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
8
|
-
`);return s!==-1&&(t=bR(t,i,n,s)),n+t+i},Ul,vR=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ul===void 0&&(Ul=q1()),Ul(e,i.join(""))};Object.defineProperties(_o.prototype,In);var Hi=_o();Hi.supportsColor=Wl;Hi.stderr=_o({level:zl?zl.level:0});Hi.stderr.supportsColor=zl;Hi.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};G1.exports=Hi});var z1=g((oI,Kl)=>{"use strict";var W1=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Kl.exports=W1;Kl.exports.default=W1});var Xl=g((uI,vo)=>{"use strict";var xR=z1(),Ao=new WeakMap,Y1=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Ao.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return xR(s,e),Ao.set(s,n),s};vo.exports=Y1;vo.exports.default=Y1;vo.exports.callCount=e=>{if(!Ao.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ao.get(e)}});var V1=g((aI,xo)=>{xo.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&xo.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&xo.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Ql=g((cI,Mn)=>{var de=global.process,Zr=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Zr(de)?(K1=require("assert"),Ln=V1(),X1=/^win/i.test(de.platform),Gi=require("events"),typeof Gi!="function"&&(Gi=Gi.EventEmitter),de.__signal_exit_emitter__?Re=de.__signal_exit_emitter__:(Re=de.__signal_exit_emitter__=new Gi,Re.count=0,Re.emitted={}),Re.infinite||(Re.setMaxListeners(1/0),Re.infinite=!0),Mn.exports=function(e,t){if(!Zr(global.process))return function(){};K1.equal(typeof e,"function","a callback must be provided for exit handler"),Nn===!1&&Zl();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Re.removeListener(r,e),Re.listeners("exit").length===0&&Re.listeners("afterexit").length===0&&wo()};return Re.on(r,e),n},wo=function(){!Nn||!Zr(global.process)||(Nn=!1,Ln.forEach(function(t){try{de.removeListener(t,Co[t])}catch{}}),de.emit=So,de.reallyExit=Jl,Re.count-=1)},Mn.exports.unload=wo,Jr=function(t,r,n){Re.emitted[t]||(Re.emitted[t]=!0,Re.emit(t,r,n))},Co={},Ln.forEach(function(e){Co[e]=function(){if(Zr(global.process)){var r=de.listeners(e);r.length===Re.count&&(wo(),Jr("exit",null,e),Jr("afterexit",null,e),X1&&e==="SIGHUP"&&(e="SIGINT"),de.kill(de.pid,e))}}}),Mn.exports.signals=function(){return Ln},Nn=!1,Zl=function(){Nn||!Zr(global.process)||(Nn=!0,Re.count+=1,Ln=Ln.filter(function(t){try{return de.on(t,Co[t]),!0}catch{return!1}}),de.emit=J1,de.reallyExit=Z1)},Mn.exports.load=Zl,Jl=de.reallyExit,Z1=function(t){Zr(global.process)&&(de.exitCode=t||0,Jr("exit",de.exitCode,null),Jr("afterexit",de.exitCode,null),Jl.call(de,de.exitCode))},So=de.emit,J1=function(t,r){if(t==="exit"&&Zr(global.process)){r!==void 0&&(de.exitCode=r);var n=So.apply(this,arguments);return Jr("exit",de.exitCode,null),Jr("afterexit",de.exitCode,null),n}else return So.apply(this,arguments)}):Mn.exports=function(){return function(){}};var K1,Ln,X1,Gi,Re,wo,Jr,Co,Nn,Zl,Jl,Z1,So,J1});var ey=g((lI,Q1)=>{"use strict";var wR=Xl(),CR=Ql();Q1.exports=wR(()=>{CR(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var ty=g(qn=>{"use strict";var SR=ey(),Fo=!1;qn.show=(e=process.stderr)=>{e.isTTY&&(Fo=!1,e.write("\x1B[?25h"))};qn.hide=(e=process.stderr)=>{e.isTTY&&(SR(),Fo=!0,e.write("\x1B[?25l"))};qn.toggle=(e,t)=>{e!==void 0&&(Fo=e),Fo?qn.show(t):qn.hide(t)}});var ry=g((hI,FR)=>{FR.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var sy=g((pI,iy)=>{"use strict";var Ro=Object.assign({},ry()),ny=Object.keys(Ro);Object.defineProperty(Ro,"random",{get(){let e=Math.floor(Math.random()*ny.length),t=ny[e];return Ro[t]}});iy.exports=Ro});var uy=g((dI,oy)=>{"use strict";var RR=/[|\\{}()[\]^$+*?.]/g;oy.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(RR,"\\$&")}});var cy=g((mI,ay)=>{"use strict";ay.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ef=g((gI,py)=>{var Qr=cy(),hy={};for(Oo in Qr)Qr.hasOwnProperty(Oo)&&(hy[Qr[Oo]]=Oo);var Oo,j=py.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ke in j)if(j.hasOwnProperty(Ke)){if(!("channels"in j[Ke]))throw new Error("missing channels property: "+Ke);if(!("labels"in j[Ke]))throw new Error("missing channel labels property: "+Ke);if(j[Ke].labels.length!==j[Ke].channels)throw new Error("channel and label counts mismatch: "+Ke);ly=j[Ke].channels,fy=j[Ke].labels,delete j[Ke].channels,delete j[Ke].labels,Object.defineProperty(j[Ke],"channels",{value:ly}),Object.defineProperty(j[Ke],"labels",{value:fy})}var ly,fy,Ke;j.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,u,a,c;return s===i?u=0:t===s?u=(r-n)/o:r===s?u=2+(n-t)/o:n===s&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360),c=(i+s)/2,s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[u,a*100,c*100]};j.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,u=e[1]/255,a=e[2]/255,c=Math.max(o,u,a),l=c-Math.min(o,u,a),f=function(p){return(c-p)/6/l+1/2};return l===0?i=s=0:(s=l/c,t=f(o),r=f(u),n=f(a),o===c?i=n-r:u===c?i=1/3+t-n:a===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};j.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=j.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};j.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,u;return u=Math.min(1-t,1-r,1-n),i=(1-t-u)/(1-u)||0,s=(1-r-u)/(1-u)||0,o=(1-n-u)/(1-u)||0,[i*100,s*100,o*100,u*100]};function OR(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}j.rgb.keyword=function(e){var t=hy[e];if(t)return t;var r=1/0,n;for(var i in Qr)if(Qr.hasOwnProperty(i)){var s=Qr[i],o=OR(e,s);o<r&&(r=o,n=i)}return n};j.keyword.rgb=function(e){return Qr[e]};j.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};j.rgb.lab=function(e){var t=j.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,u;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),u=200*(n-i),[s,o,u]};j.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,u,a;if(r===0)return a=n*255,[a,a,a];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,u=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?a=i+(s-i)*6*o:2*o<1?a=s:3*o<2?a=i+(s-i)*(2/3-o)*6:a=i,u[c]=a*255;return u};j.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,u;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,u=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,u*100]};j.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[u,n,o];case 2:return[o,n,a];case 3:return[o,u,n];case 4:return[a,o,n];case 5:return[n,o,u]}};j.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,u;return u=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,u/=2,[t,o*100,u*100]};j.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,u,a;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,u=6*t-s,s&1&&(u=1-u),a=r+u*(o-r);var c,l,f;switch(s){default:case 6:case 0:c=o,l=a,f=r;break;case 1:c=a,l=o,f=r;break;case 2:c=r,l=o,f=a;break;case 3:c=r,l=a,f=o;break;case 4:c=a,l=r,f=o;break;case 5:c=o,l=r,f=a;break}return[c*255,l*255,f*255]};j.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,u;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i),[s*255,o*255,u*255]};j.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};j.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};j.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var u=Math.pow(s,3),a=Math.pow(i,3),c=Math.pow(o,3);return s=u>.008856?u:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};j.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};j.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};j.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:j.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};j.hsv.ansi16=function(e){return j.rgb.ansi16(j.hsv.rgb(e),e[2])};j.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};j.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};j.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};j.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};j.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(u){return u+u}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};j.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,u,a;return o<1?u=s/(1-o):u=0,o<=0?a=0:i===t?a=(r-n)/o%6:i===r?a=2+(n-t)/o:a=4+(t-r)/o+4,a/=6,a%=1,[a*360,o*100,u*100]};j.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};j.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};j.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,u=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};j.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};j.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};j.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};j.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};j.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};j.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};j.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};j.gray.hsl=j.gray.hsv=function(e){return[0,0,e[0]]};j.gray.hwb=function(e){return[0,100,e[0]]};j.gray.cmyk=function(e){return[0,0,0,e[0]]};j.gray.lab=function(e){return[e[0],0,0]};j.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};j.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var my=g((yI,dy)=>{var To=ef();function TR(){for(var e={},t=Object.keys(To),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function kR(e){var t=TR(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(To[n]),s=i.length,o=0;o<s;o++){var u=i[o],a=t[u];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(u))}return t}function BR(e,t){return function(r){return t(e(r))}}function PR(e,t){for(var r=[t[e].parent,e],n=To[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=BR(To[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}dy.exports=function(e){for(var t=kR(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],u=t[o];u.parent!==null&&(r[o]=PR(o,t))}return r}});var yy=g((EI,gy)=>{var tf=ef(),IR=my(),jn={},LR=Object.keys(tf);function NR(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function MR(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}LR.forEach(function(e){jn[e]={},Object.defineProperty(jn[e],"channels",{value:tf[e].channels}),Object.defineProperty(jn[e],"labels",{value:tf[e].labels});var t=IR(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];jn[e][n]=MR(i),jn[e][n].raw=NR(i)})});gy.exports=jn});var by=g((bI,Ey)=>{"use strict";var $n=yy(),ko=(e,t)=>function(){return`\x1B[${e.apply($n,arguments)+t}m`},Bo=(e,t)=>function(){let r=e.apply($n,arguments);return`\x1B[${38+t};5;${r}m`},Po=(e,t)=>function(){let r=e.apply($n,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function qR(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let u=s[o];t[o]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},s[o]=t[o],e.set(u[0],u[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:ko(r,0)},t.color.ansi256={ansi256:Bo(r,0)},t.color.ansi16m={rgb:Po(n,0)},t.bgColor.ansi={ansi:ko(r,10)},t.bgColor.ansi256={ansi256:Bo(r,10)},t.bgColor.ansi16m={rgb:Po(n,10)};for(let i of Object.keys($n)){if(typeof $n[i]!="object")continue;let s=$n[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=ko(s.ansi16,0),t.bgColor.ansi[i]=ko(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=Bo(s.ansi256,0),t.bgColor.ansi256[i]=Bo(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Po(s.rgb,0),t.bgColor.ansi16m[i]=Po(s.rgb,10))}return t}Object.defineProperty(Ey,"exports",{enumerable:!0,get:qR})});var Dy=g((_I,_y)=>{"use strict";_y.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var vy=g((DI,Ay)=>{"use strict";var jR=require("os"),Ct=Dy(),je=process.env,Hn;Ct("no-color")||Ct("no-colors")||Ct("color=false")?Hn=!1:(Ct("color")||Ct("colors")||Ct("color=true")||Ct("color=always"))&&(Hn=!0);"FORCE_COLOR"in je&&(Hn=je.FORCE_COLOR.length===0||parseInt(je.FORCE_COLOR,10)!==0);function $R(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function HR(e){if(Hn===!1)return 0;if(Ct("color=16m")||Ct("color=full")||Ct("color=truecolor"))return 3;if(Ct("color=256"))return 2;if(e&&!e.isTTY&&Hn!==!0)return 0;let t=Hn?1:0;if(process.platform==="win32"){let r=jR.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in je)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in je)||je.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in je)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(je.TEAMCITY_VERSION)?1:0;if(je.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in je){let r=parseInt((je.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(je.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(je.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(je.TERM)||"COLORTERM"in je?1:(je.TERM==="dumb",t)}function rf(e){let t=HR(e);return $R(t)}Ay.exports={supportsColor:rf,stdout:rf(process.stdout),stderr:rf(process.stderr)}});var Fy=g((AI,Sy)=>{"use strict";var GR=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,xy=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,UR=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,WR=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,zR=new Map([["n",`
|
|
9
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Cy(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):zR.get(e)||e}function YR(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(UR))r.push(i[2].replace(WR,(o,u,a)=>u?Cy(u):a));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function VR(e){xy.lastIndex=0;let t=[],r;for(;(r=xy.exec(e))!==null;){let n=r[1];if(r[2]){let i=YR(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function wy(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Sy.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(GR,(s,o,u,a,c,l)=>{if(o)i.push(Cy(o));else if(a){let f=i.join("");i=[],n.push(r.length===0?f:wy(e,r)(f)),r.push({inverse:u,styles:VR(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(wy(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var By=g((vI,Wi)=>{"use strict";var sf=uy(),ve=by(),nf=vy().stdout,KR=Fy(),Oy=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Ty=["ansi","ansi","ansi256","ansi16m"],ky=new Set(["gray"]),Gn=Object.create(null);function Ry(e,t){t=t||{};let r=nf?nf.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Ui(e){if(!this||!(this instanceof Ui)||this.template){let t={};return Ry(t,e),t.template=function(){let r=[].slice.call(arguments);return JR.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Ui.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Ui,t.template}Ry(this,e)}Oy&&(ve.blue.open="\x1B[94m");for(let e of Object.keys(ve))ve[e].closeRe=new RegExp(sf(ve[e].close),"g"),Gn[e]={get(){let t=ve[e];return Io.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Gn.visible={get(){return Io.call(this,this._styles||[],!0,"visible")}};ve.color.closeRe=new RegExp(sf(ve.color.close),"g");for(let e of Object.keys(ve.color.ansi))ky.has(e)||(Gn[e]={get(){let t=this.level;return function(){let n={open:ve.color[Ty[t]][e].apply(null,arguments),close:ve.color.close,closeRe:ve.color.closeRe};return Io.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});ve.bgColor.closeRe=new RegExp(sf(ve.bgColor.close),"g");for(let e of Object.keys(ve.bgColor.ansi)){if(ky.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Gn[t]={get(){let r=this.level;return function(){let i={open:ve.bgColor[Ty[r]][e].apply(null,arguments),close:ve.bgColor.close,closeRe:ve.bgColor.closeRe};return Io.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var XR=Object.defineProperties(()=>{},Gn);function Io(e,t,r){let n=function(){return ZR.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=XR,n}function ZR(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=ve.dim.open;Oy&&this.hasGrey&&(ve.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return ve.dim.open=n,r}function JR(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return KR(e,n.join(""))}Object.defineProperties(Ui.prototype,Gn);Wi.exports=Ui();Wi.exports.supportsColor=nf;Wi.exports.default=Wi.exports});var Iy=g((xI,Py)=>{"use strict";var wr=By(),QR=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",eO={info:wr.blue("\u2139"),success:wr.green("\u2714"),warning:wr.yellow("\u26A0"),error:wr.red("\u2716")},tO={info:wr.blue("i"),success:wr.green("\u221A"),warning:wr.yellow("\u203C"),error:wr.red("\xD7")};Py.exports=QR?eO:tO});var Ny=g((wI,Ly)=>{"use strict";Ly.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var qy=g((CI,My)=>{"use strict";var rO=Ny();My.exports=e=>typeof e=="string"?e.replace(rO(),""):e});var jy=g((SI,Lo)=>{var nO=function(){"use strict";function e(o,u,a,c){var l;typeof u=="object"&&(a=u.depth,c=u.prototype,l=u.filter,u=u.circular);var f=[],p=[],_=typeof Buffer!="undefined";typeof u=="undefined"&&(u=!0),typeof a=="undefined"&&(a=1/0);function E(m,D){if(m===null)return null;if(D==0)return m;var A,R;if(typeof m!="object")return m;if(e.__isArray(m))A=[];else if(e.__isRegExp(m))A=new RegExp(m.source,s(m)),m.lastIndex&&(A.lastIndex=m.lastIndex);else if(e.__isDate(m))A=new Date(m.getTime());else{if(_&&Buffer.isBuffer(m))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(m.length):A=new Buffer(m.length),m.copy(A),A;typeof c=="undefined"?(R=Object.getPrototypeOf(m),A=Object.create(R)):(A=Object.create(c),R=c)}if(u){var M=f.indexOf(m);if(M!=-1)return p[M];f.push(m),p.push(A)}for(var W in m){var L;R&&(L=Object.getOwnPropertyDescriptor(R,W)),!(L&&L.set==null)&&(A[W]=E(m[W],D-1))}return A}return E(o,a)}e.clonePrototype=function(u){if(u===null)return null;var a=function(){};return a.prototype=u,new a};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var u="";return o.global&&(u+="g"),o.ignoreCase&&(u+="i"),o.multiline&&(u+="m"),u}return e.__getRegExpFlags=s,e}();typeof Lo=="object"&&Lo.exports&&(Lo.exports=nO)});var Hy=g((FI,$y)=>{var iO=jy();$y.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]=="undefined"&&(e[r]=iO(t[r]))}),e}});var Uy=g((RI,Gy)=>{Gy.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Vy=g((OI,of)=>{"use strict";var sO=Hy(),zi=Uy(),zy={nul:0,control:0};of.exports=function(t){return Yy(t,zy)};of.exports.config=function(e){return e=sO(e||{},zy),function(r){return Yy(r,e)}};function Yy(e,t){if(typeof e!="string")return Wy(e,t);for(var r=0,n=0;n<e.length;n++){var i=Wy(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Wy(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:oO(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function oO(e){var t=0,r=zi.length-1,n;if(e<zi[0][0]||e>zi[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>zi[n][1])t=n+1;else if(e<zi[n][0])r=n-1;else return!0;return!1}});var Xy=g((TI,Ky)=>{"use strict";Ky.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Jy=g((kI,Zy)=>{var uf=require("stream");Zy.exports=Oe;function Oe(e){uf.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}Oe.prototype=Object.create(uf.prototype);Object.defineProperty(Oe.prototype,"constructor",{value:Oe,enumerable:!1});Oe.prototype.mute=function(){this.muted=!0};Oe.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Oe.prototype,"_onpipe",{value:uO,enumerable:!1,writable:!0,configurable:!0});function uO(e){this._src=e}Object.defineProperty(Oe.prototype,"isTTY",{get:aO,set:cO,enumerable:!0,configurable:!0});function aO(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function cO(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Oe.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Oe.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Oe.prototype.pipe=function(e,t){return this._dest=e,uf.prototype.pipe.call(this,e,t)};Oe.prototype.pause=function(){if(this._src)return this._src.pause()};Oe.prototype.resume=function(){if(this._src)return this._src.resume()};Oe.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)};Oe.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function af(e){return function(){var t=this._dest,r=this._src;t&&t[e]&&t[e].apply(t,arguments),r&&r[e]&&r[e].apply(r,arguments)}}Oe.prototype.destroy=af("destroy");Oe.prototype.destroySoon=af("destroySoon");Oe.prototype.close=af("close")});var eE=g((BI,ff)=>{"use strict";var lO=require("readline"),fO=U1(),Qy=ty(),No=sy(),Mo=Iy(),hO=qy(),pO=Vy(),dO=Xy(),mO=Jy(),cf=Symbol("text"),qo=Symbol("prefixText"),gO=3,lf=class{constructor(){this.requests=0,this.mutedStream=new mO,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let t=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(t.requests>0||s.emit===t.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(gO)&&process.emit("SIGINT"),Reflect.apply(t.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=lO.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},jo,$o=class{constructor(t){jo||(jo=new lf),typeof t=="string"&&(t={text:t}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...t},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:dO({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=t}_updateInterval(t){t!==void 0&&(this.interval=t)}get spinner(){return this._spinner}set spinner(t){if(this.frameIndex=0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=t}else if(process.platform==="win32")this._spinner=No.line;else if(t===void 0)this._spinner=No.dots;else if(No[t])this._spinner=No[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[cf]}get prefixText(){return this[qo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let t=this.stream.columns||80,r=typeof this[qo]=="string"?this[qo]+"-":"";this.lineCount=hO(r+"--"+this[cf]).split(`
|
|
10
|
-
`).reduce((n,i)=>n+Math.max(1,Math.ceil(
|
|
11
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&
|
|
12
|
-
`),this}},
|
|
6
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};L1.exports={stringReplaceAll:hR,stringEncaseCRLFWithFirstIndex:pR}});var H1=g((oI,$1)=>{"use strict";var dR=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,M1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,mR=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,gR=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,yR=new Map([["n",`
|
|
7
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function j1(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):yR.get(e)||e}function ER(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(mR))r.push(i[2].replace(gR,(u,a,c)=>a?j1(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function bR(e){M1.lastIndex=0;let t=[],r;for(;(r=M1.exec(e))!==null;){let n=r[1];if(r[2]){let i=ER(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function q1(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}$1.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(dR,(s,o,u,a,c,l)=>{if(o)i.push(j1(o));else if(a){let f=i.join("");i=[],n.push(r.length===0?f:q1(e,r)(f)),r.push({inverse:u,styles:bR(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(q1(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Y1=g((uI,z1)=>{"use strict";var $i=Hl(),{stdout:Yl,stderr:Vl}=Wl(),{stringReplaceAll:_R,stringEncaseCRLFWithFirstIndex:DR}=N1(),G1=["ansi","ansi","ansi256","ansi16m"],In=Object.create(null),AR=(e,t={})=>{if(t.level>3||t.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=Yl?Yl.level:0;e.level=t.level===void 0?r:t.level},Kl=class{constructor(t){return U1(t)}},U1=e=>{let t={};return AR(t,e),t.template=(...r)=>wR(t.template,...r),Object.setPrototypeOf(t,_o.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Kl,t.template};function _o(e){return U1(e)}for(let[e,t]of Object.entries($i))In[e]={get(){let r=Do(this,Xl(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};In.visible={get(){let e=Do(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var W1=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of W1)In[e]={get(){let{level:t}=this;return function(...r){let n=Xl($i.color[G1[t]][e](...r),$i.color.close,this._styler);return Do(this,n,this._isEmpty)}}};for(let e of W1){let t="bg"+e[0].toUpperCase()+e.slice(1);In[t]={get(){let{level:r}=this;return function(...n){let i=Xl($i.bgColor[G1[r]][e](...n),$i.bgColor.close,this._styler);return Do(this,i,this._isEmpty)}}}}var vR=Object.defineProperties(()=>{},{...In,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Xl=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Do=(e,t,r)=>{let n=(...i)=>xR(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=vR,n._generator=e,n._styler=t,n._isEmpty=r,n},xR=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=_R(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
8
|
+
`);return s!==-1&&(t=DR(t,i,n,s)),n+t+i},zl,wR=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return zl===void 0&&(zl=H1()),zl(e,i.join(""))};Object.defineProperties(_o.prototype,In);var Hi=_o();Hi.supportsColor=Yl;Hi.stderr=_o({level:Vl?Vl.level:0});Hi.stderr.supportsColor=Vl;Hi.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};z1.exports=Hi});var K1=g((aI,Zl)=>{"use strict";var V1=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Zl.exports=V1;Zl.exports.default=V1});var Jl=g((cI,vo)=>{"use strict";var CR=K1(),Ao=new WeakMap,X1=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Ao.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return CR(s,e),Ao.set(s,n),s};vo.exports=X1;vo.exports.default=X1;vo.exports.callCount=e=>{if(!Ao.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ao.get(e)}});var Z1=g((lI,xo)=>{xo.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&xo.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&xo.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var tf=g((fI,Mn)=>{var de=global.process,Zr=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Zr(de)?(J1=require("assert"),Ln=Z1(),Q1=/^win/i.test(de.platform),Gi=require("events"),typeof Gi!="function"&&(Gi=Gi.EventEmitter),de.__signal_exit_emitter__?Re=de.__signal_exit_emitter__:(Re=de.__signal_exit_emitter__=new Gi,Re.count=0,Re.emitted={}),Re.infinite||(Re.setMaxListeners(1/0),Re.infinite=!0),Mn.exports=function(e,t){if(!Zr(global.process))return function(){};J1.equal(typeof e,"function","a callback must be provided for exit handler"),Nn===!1&&Ql();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Re.removeListener(r,e),Re.listeners("exit").length===0&&Re.listeners("afterexit").length===0&&wo()};return Re.on(r,e),n},wo=function(){!Nn||!Zr(global.process)||(Nn=!1,Ln.forEach(function(t){try{de.removeListener(t,Co[t])}catch{}}),de.emit=So,de.reallyExit=ef,Re.count-=1)},Mn.exports.unload=wo,Jr=function(t,r,n){Re.emitted[t]||(Re.emitted[t]=!0,Re.emit(t,r,n))},Co={},Ln.forEach(function(e){Co[e]=function(){if(Zr(global.process)){var r=de.listeners(e);r.length===Re.count&&(wo(),Jr("exit",null,e),Jr("afterexit",null,e),Q1&&e==="SIGHUP"&&(e="SIGINT"),de.kill(de.pid,e))}}}),Mn.exports.signals=function(){return Ln},Nn=!1,Ql=function(){Nn||!Zr(global.process)||(Nn=!0,Re.count+=1,Ln=Ln.filter(function(t){try{return de.on(t,Co[t]),!0}catch{return!1}}),de.emit=ty,de.reallyExit=ey)},Mn.exports.load=Ql,ef=de.reallyExit,ey=function(t){Zr(global.process)&&(de.exitCode=t||0,Jr("exit",de.exitCode,null),Jr("afterexit",de.exitCode,null),ef.call(de,de.exitCode))},So=de.emit,ty=function(t,r){if(t==="exit"&&Zr(global.process)){r!==void 0&&(de.exitCode=r);var n=So.apply(this,arguments);return Jr("exit",de.exitCode,null),Jr("afterexit",de.exitCode,null),n}else return So.apply(this,arguments)}):Mn.exports=function(){return function(){}};var J1,Ln,Q1,Gi,Re,wo,Jr,Co,Nn,Ql,ef,ey,So,ty});var ny=g((hI,ry)=>{"use strict";var SR=Jl(),FR=tf();ry.exports=SR(()=>{FR(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var iy=g(qn=>{"use strict";var RR=ny(),Fo=!1;qn.show=(e=process.stderr)=>{e.isTTY&&(Fo=!1,e.write("\x1B[?25h"))};qn.hide=(e=process.stderr)=>{e.isTTY&&(RR(),Fo=!0,e.write("\x1B[?25l"))};qn.toggle=(e,t)=>{e!==void 0&&(Fo=e),Fo?qn.show(t):qn.hide(t)}});var sy=g((dI,OR)=>{OR.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var ay=g((mI,uy)=>{"use strict";var Ro=Object.assign({},sy()),oy=Object.keys(Ro);Object.defineProperty(Ro,"random",{get(){let e=Math.floor(Math.random()*oy.length),t=oy[e];return Ro[t]}});uy.exports=Ro});var ly=g((gI,cy)=>{"use strict";var TR=/[|\\{}()[\]^$+*?.]/g;cy.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(TR,"\\$&")}});var hy=g((yI,fy)=>{"use strict";fy.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var rf=g((EI,gy)=>{var Qr=hy(),my={};for(Oo in Qr)Qr.hasOwnProperty(Oo)&&(my[Qr[Oo]]=Oo);var Oo,j=gy.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ke in j)if(j.hasOwnProperty(Ke)){if(!("channels"in j[Ke]))throw new Error("missing channels property: "+Ke);if(!("labels"in j[Ke]))throw new Error("missing channel labels property: "+Ke);if(j[Ke].labels.length!==j[Ke].channels)throw new Error("channel and label counts mismatch: "+Ke);py=j[Ke].channels,dy=j[Ke].labels,delete j[Ke].channels,delete j[Ke].labels,Object.defineProperty(j[Ke],"channels",{value:py}),Object.defineProperty(j[Ke],"labels",{value:dy})}var py,dy,Ke;j.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,u,a,c;return s===i?u=0:t===s?u=(r-n)/o:r===s?u=2+(n-t)/o:n===s&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360),c=(i+s)/2,s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[u,a*100,c*100]};j.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,u=e[1]/255,a=e[2]/255,c=Math.max(o,u,a),l=c-Math.min(o,u,a),f=function(p){return(c-p)/6/l+1/2};return l===0?i=s=0:(s=l/c,t=f(o),r=f(u),n=f(a),o===c?i=n-r:u===c?i=1/3+t-n:a===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};j.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=j.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};j.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,u;return u=Math.min(1-t,1-r,1-n),i=(1-t-u)/(1-u)||0,s=(1-r-u)/(1-u)||0,o=(1-n-u)/(1-u)||0,[i*100,s*100,o*100,u*100]};function kR(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}j.rgb.keyword=function(e){var t=my[e];if(t)return t;var r=1/0,n;for(var i in Qr)if(Qr.hasOwnProperty(i)){var s=Qr[i],o=kR(e,s);o<r&&(r=o,n=i)}return n};j.keyword.rgb=function(e){return Qr[e]};j.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};j.rgb.lab=function(e){var t=j.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,u;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),u=200*(n-i),[s,o,u]};j.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,u,a;if(r===0)return a=n*255,[a,a,a];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,u=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?a=i+(s-i)*6*o:2*o<1?a=s:3*o<2?a=i+(s-i)*(2/3-o)*6:a=i,u[c]=a*255;return u};j.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,u;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,u=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,u*100]};j.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[u,n,o];case 2:return[o,n,a];case 3:return[o,u,n];case 4:return[a,o,n];case 5:return[n,o,u]}};j.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,u;return u=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,u/=2,[t,o*100,u*100]};j.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,u,a;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,u=6*t-s,s&1&&(u=1-u),a=r+u*(o-r);var c,l,f;switch(s){default:case 6:case 0:c=o,l=a,f=r;break;case 1:c=a,l=o,f=r;break;case 2:c=r,l=o,f=a;break;case 3:c=r,l=a,f=o;break;case 4:c=a,l=r,f=o;break;case 5:c=o,l=r,f=a;break}return[c*255,l*255,f*255]};j.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,u;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i),[s*255,o*255,u*255]};j.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};j.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};j.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var u=Math.pow(s,3),a=Math.pow(i,3),c=Math.pow(o,3);return s=u>.008856?u:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};j.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};j.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};j.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:j.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};j.hsv.ansi16=function(e){return j.rgb.ansi16(j.hsv.rgb(e),e[2])};j.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};j.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};j.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};j.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};j.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(u){return u+u}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};j.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,u,a;return o<1?u=s/(1-o):u=0,o<=0?a=0:i===t?a=(r-n)/o%6:i===r?a=2+(n-t)/o:a=4+(t-r)/o+4,a/=6,a%=1,[a*360,o*100,u*100]};j.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};j.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};j.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,u=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};j.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};j.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};j.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};j.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};j.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};j.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};j.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};j.gray.hsl=j.gray.hsv=function(e){return[0,0,e[0]]};j.gray.hwb=function(e){return[0,100,e[0]]};j.gray.cmyk=function(e){return[0,0,0,e[0]]};j.gray.lab=function(e){return[e[0],0,0]};j.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};j.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Ey=g((bI,yy)=>{var To=rf();function BR(){for(var e={},t=Object.keys(To),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function PR(e){var t=BR(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(To[n]),s=i.length,o=0;o<s;o++){var u=i[o],a=t[u];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(u))}return t}function IR(e,t){return function(r){return t(e(r))}}function LR(e,t){for(var r=[t[e].parent,e],n=To[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=IR(To[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}yy.exports=function(e){for(var t=PR(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],u=t[o];u.parent!==null&&(r[o]=LR(o,t))}return r}});var _y=g((_I,by)=>{var nf=rf(),NR=Ey(),jn={},MR=Object.keys(nf);function qR(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function jR(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}MR.forEach(function(e){jn[e]={},Object.defineProperty(jn[e],"channels",{value:nf[e].channels}),Object.defineProperty(jn[e],"labels",{value:nf[e].labels});var t=NR(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];jn[e][n]=jR(i),jn[e][n].raw=qR(i)})});by.exports=jn});var Ay=g((DI,Dy)=>{"use strict";var $n=_y(),ko=(e,t)=>function(){return`\x1B[${e.apply($n,arguments)+t}m`},Bo=(e,t)=>function(){let r=e.apply($n,arguments);return`\x1B[${38+t};5;${r}m`},Po=(e,t)=>function(){let r=e.apply($n,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function $R(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let u=s[o];t[o]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},s[o]=t[o],e.set(u[0],u[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:ko(r,0)},t.color.ansi256={ansi256:Bo(r,0)},t.color.ansi16m={rgb:Po(n,0)},t.bgColor.ansi={ansi:ko(r,10)},t.bgColor.ansi256={ansi256:Bo(r,10)},t.bgColor.ansi16m={rgb:Po(n,10)};for(let i of Object.keys($n)){if(typeof $n[i]!="object")continue;let s=$n[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=ko(s.ansi16,0),t.bgColor.ansi[i]=ko(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=Bo(s.ansi256,0),t.bgColor.ansi256[i]=Bo(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Po(s.rgb,0),t.bgColor.ansi16m[i]=Po(s.rgb,10))}return t}Object.defineProperty(Dy,"exports",{enumerable:!0,get:$R})});var xy=g((AI,vy)=>{"use strict";vy.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Cy=g((vI,wy)=>{"use strict";var HR=require("os"),Ct=xy(),je=process.env,Hn;Ct("no-color")||Ct("no-colors")||Ct("color=false")?Hn=!1:(Ct("color")||Ct("colors")||Ct("color=true")||Ct("color=always"))&&(Hn=!0);"FORCE_COLOR"in je&&(Hn=je.FORCE_COLOR.length===0||parseInt(je.FORCE_COLOR,10)!==0);function GR(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function UR(e){if(Hn===!1)return 0;if(Ct("color=16m")||Ct("color=full")||Ct("color=truecolor"))return 3;if(Ct("color=256"))return 2;if(e&&!e.isTTY&&Hn!==!0)return 0;let t=Hn?1:0;if(process.platform==="win32"){let r=HR.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in je)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in je)||je.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in je)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(je.TEAMCITY_VERSION)?1:0;if(je.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in je){let r=parseInt((je.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(je.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(je.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(je.TERM)||"COLORTERM"in je?1:(je.TERM==="dumb",t)}function sf(e){let t=UR(e);return GR(t)}wy.exports={supportsColor:sf,stdout:sf(process.stdout),stderr:sf(process.stderr)}});var Ty=g((xI,Oy)=>{"use strict";var WR=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Sy=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,zR=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,YR=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,VR=new Map([["n",`
|
|
9
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ry(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):VR.get(e)||e}function KR(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(zR))r.push(i[2].replace(YR,(o,u,a)=>u?Ry(u):a));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function XR(e){Sy.lastIndex=0;let t=[],r;for(;(r=Sy.exec(e))!==null;){let n=r[1];if(r[2]){let i=KR(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Fy(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Oy.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(WR,(s,o,u,a,c,l)=>{if(o)i.push(Ry(o));else if(a){let f=i.join("");i=[],n.push(r.length===0?f:Fy(e,r)(f)),r.push({inverse:u,styles:XR(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Fy(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Ly=g((wI,Wi)=>{"use strict";var uf=ly(),ve=Ay(),of=Cy().stdout,ZR=Ty(),By=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Py=["ansi","ansi","ansi256","ansi16m"],Iy=new Set(["gray"]),Gn=Object.create(null);function ky(e,t){t=t||{};let r=of?of.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Ui(e){if(!this||!(this instanceof Ui)||this.template){let t={};return ky(t,e),t.template=function(){let r=[].slice.call(arguments);return eO.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Ui.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Ui,t.template}ky(this,e)}By&&(ve.blue.open="\x1B[94m");for(let e of Object.keys(ve))ve[e].closeRe=new RegExp(uf(ve[e].close),"g"),Gn[e]={get(){let t=ve[e];return Io.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Gn.visible={get(){return Io.call(this,this._styles||[],!0,"visible")}};ve.color.closeRe=new RegExp(uf(ve.color.close),"g");for(let e of Object.keys(ve.color.ansi))Iy.has(e)||(Gn[e]={get(){let t=this.level;return function(){let n={open:ve.color[Py[t]][e].apply(null,arguments),close:ve.color.close,closeRe:ve.color.closeRe};return Io.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});ve.bgColor.closeRe=new RegExp(uf(ve.bgColor.close),"g");for(let e of Object.keys(ve.bgColor.ansi)){if(Iy.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Gn[t]={get(){let r=this.level;return function(){let i={open:ve.bgColor[Py[r]][e].apply(null,arguments),close:ve.bgColor.close,closeRe:ve.bgColor.closeRe};return Io.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var JR=Object.defineProperties(()=>{},Gn);function Io(e,t,r){let n=function(){return QR.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=JR,n}function QR(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=ve.dim.open;By&&this.hasGrey&&(ve.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return ve.dim.open=n,r}function eO(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return ZR(e,n.join(""))}Object.defineProperties(Ui.prototype,Gn);Wi.exports=Ui();Wi.exports.supportsColor=of;Wi.exports.default=Wi.exports});var My=g((CI,Ny)=>{"use strict";var wr=Ly(),tO=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",rO={info:wr.blue("\u2139"),success:wr.green("\u2714"),warning:wr.yellow("\u26A0"),error:wr.red("\u2716")},nO={info:wr.blue("i"),success:wr.green("\u221A"),warning:wr.yellow("\u203C"),error:wr.red("\xD7")};Ny.exports=tO?rO:nO});var jy=g((SI,qy)=>{"use strict";qy.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Hy=g((FI,$y)=>{"use strict";var iO=jy();$y.exports=e=>typeof e=="string"?e.replace(iO(),""):e});var Gy=g((RI,Lo)=>{var sO=function(){"use strict";function e(o,u,a,c){var l;typeof u=="object"&&(a=u.depth,c=u.prototype,l=u.filter,u=u.circular);var f=[],p=[],_=typeof Buffer!="undefined";typeof u=="undefined"&&(u=!0),typeof a=="undefined"&&(a=1/0);function E(m,A){if(m===null)return null;if(A==0)return m;var D,R;if(typeof m!="object")return m;if(e.__isArray(m))D=[];else if(e.__isRegExp(m))D=new RegExp(m.source,s(m)),m.lastIndex&&(D.lastIndex=m.lastIndex);else if(e.__isDate(m))D=new Date(m.getTime());else{if(_&&Buffer.isBuffer(m))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(m.length):D=new Buffer(m.length),m.copy(D),D;typeof c=="undefined"?(R=Object.getPrototypeOf(m),D=Object.create(R)):(D=Object.create(c),R=c)}if(u){var M=f.indexOf(m);if(M!=-1)return p[M];f.push(m),p.push(D)}for(var W in m){var L;R&&(L=Object.getOwnPropertyDescriptor(R,W)),!(L&&L.set==null)&&(D[W]=E(m[W],A-1))}return D}return E(o,a)}e.clonePrototype=function(u){if(u===null)return null;var a=function(){};return a.prototype=u,new a};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var u="";return o.global&&(u+="g"),o.ignoreCase&&(u+="i"),o.multiline&&(u+="m"),u}return e.__getRegExpFlags=s,e}();typeof Lo=="object"&&Lo.exports&&(Lo.exports=sO)});var Wy=g((OI,Uy)=>{var oO=Gy();Uy.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]=="undefined"&&(e[r]=oO(t[r]))}),e}});var Yy=g((TI,zy)=>{zy.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Zy=g((kI,af)=>{"use strict";var uO=Wy(),zi=Yy(),Ky={nul:0,control:0};af.exports=function(t){return Xy(t,Ky)};af.exports.config=function(e){return e=uO(e||{},Ky),function(r){return Xy(r,e)}};function Xy(e,t){if(typeof e!="string")return Vy(e,t);for(var r=0,n=0;n<e.length;n++){var i=Vy(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Vy(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:aO(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function aO(e){var t=0,r=zi.length-1,n;if(e<zi[0][0]||e>zi[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>zi[n][1])t=n+1;else if(e<zi[n][0])r=n-1;else return!0;return!1}});var Qy=g((BI,Jy)=>{"use strict";Jy.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var tE=g((PI,eE)=>{var cf=require("stream");eE.exports=Oe;function Oe(e){cf.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}Oe.prototype=Object.create(cf.prototype);Object.defineProperty(Oe.prototype,"constructor",{value:Oe,enumerable:!1});Oe.prototype.mute=function(){this.muted=!0};Oe.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Oe.prototype,"_onpipe",{value:cO,enumerable:!1,writable:!0,configurable:!0});function cO(e){this._src=e}Object.defineProperty(Oe.prototype,"isTTY",{get:lO,set:fO,enumerable:!0,configurable:!0});function lO(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function fO(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Oe.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Oe.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Oe.prototype.pipe=function(e,t){return this._dest=e,cf.prototype.pipe.call(this,e,t)};Oe.prototype.pause=function(){if(this._src)return this._src.pause()};Oe.prototype.resume=function(){if(this._src)return this._src.resume()};Oe.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)};Oe.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function lf(e){return function(){var t=this._dest,r=this._src;t&&t[e]&&t[e].apply(t,arguments),r&&r[e]&&r[e].apply(r,arguments)}}Oe.prototype.destroy=lf("destroy");Oe.prototype.destroySoon=lf("destroySoon");Oe.prototype.close=lf("close")});var nE=g((II,pf)=>{"use strict";var hO=require("readline"),pO=Y1(),rE=iy(),No=ay(),Mo=My(),dO=Hy(),mO=Zy(),gO=Qy(),yO=tE(),ff=Symbol("text"),qo=Symbol("prefixText"),EO=3,hf=class{constructor(){this.requests=0,this.mutedStream=new yO,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let t=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(t.requests>0||s.emit===t.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(EO)&&process.emit("SIGINT"),Reflect.apply(t.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=hO.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},jo,$o=class{constructor(t){jo||(jo=new hf),typeof t=="string"&&(t={text:t}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...t},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:gO({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=t}_updateInterval(t){t!==void 0&&(this.interval=t)}get spinner(){return this._spinner}set spinner(t){if(this.frameIndex=0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=t}else if(process.platform==="win32")this._spinner=No.line;else if(t===void 0)this._spinner=No.dots;else if(No[t])this._spinner=No[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[ff]}get prefixText(){return this[qo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let t=this.stream.columns||80,r=typeof this[qo]=="string"?this[qo]+"-":"";this.lineCount=dO(r+"--"+this[ff]).split(`
|
|
10
|
+
`).reduce((n,i)=>n+Math.max(1,Math.ceil(mO(i)/t)),0)}set text(t){this[ff]=t,this.updateLineCount()}set prefixText(t){this[qo]=t,this.updateLineCount()}frame(){let{frames:t}=this.spinner,r=t[this.frameIndex];this.color&&(r=pO[this.color](r)),this.frameIndex=++this.frameIndex%t.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let t=0;t<this.linesToClear;t++)t>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(t){return t&&(this.text=t),this.isEnabled?this.isSpinning?this:(this.hideCursor&&rE.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,jo.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
11
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&rE.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(jo.stop(),this.isDiscardingStdin=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Mo.success,text:t})}fail(t){return this.stopAndPersist({symbol:Mo.error,text:t})}warn(t){return this.stopAndPersist({symbol:Mo.warning,text:t})}info(t){return this.stopAndPersist({symbol:Mo.info,text:t})}stopAndPersist(t={}){let r=t.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=t.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${t.symbol||" "}${s}
|
|
12
|
+
`),this}},bO=function(e){return new $o(e)};pf.exports=bO;pf.exports.promise=(e,t)=>{if(typeof e.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new $o(t);return r.start(),(async()=>{try{await e,r.succeed()}catch{r.fail()}})(),r}});var sE=g((LI,iE)=>{"use strict";var _O=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},DO=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
13
13
|
`:`
|
|
14
14
|
`)+r,i=n+1,n=e.indexOf(`
|
|
15
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};
|
|
16
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
17
|
-
`);return s!==-1&&(t=SO(t,i,n,s)),n+t+i},hf,hE=(e,...t)=>{let[r]=t;if(!Ho(r)||!Ho(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return hf===void 0&&(hf=uE()),hf(e,i.join(""))};Object.defineProperties(Go.prototype,Un);var Wo=Go();Wo.supportsColor=pf;Wo.stderr=Go({level:df?df.level:0});Wo.stderr.supportsColor=df;pE.exports=Wo});var mE=g((NI,zo)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,s=e.min,o=e.max,u=e.random;function a(h,y){if(h=h||"",y=y||{},h instanceof a)return h;if(!(this instanceof a))return new a(h,y);var d=c(h);this._originalInput=h,this._r=d.r,this._g=d.g,this._b=d.b,this._a=d.a,this._roundA=i(100*this._a)/100,this._format=y.format||d.format,this._gradientType=y.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=d.ok,this._tc_id=n++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),y,d,F,N,I,ie;return y=h.r/255,d=h.g/255,F=h.b/255,y<=.03928?N=y/12.92:N=e.pow((y+.055)/1.055,2.4),d<=.03928?I=d/12.92:I=e.pow((d+.055)/1.055,2.4),F<=.03928?ie=F/12.92:ie=e.pow((F+.055)/1.055,2.4),.2126*N+.7152*I+.0722*ie},setAlpha:function(h){return this._a=x(h),this._roundA=i(100*this._a)/100,this},toHsv:function(){var h=_(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=_(this._r,this._g,this._b),y=i(h.h*360),d=i(h.s*100),F=i(h.v*100);return this._a==1?"hsv("+y+", "+d+"%, "+F+"%)":"hsva("+y+", "+d+"%, "+F+"%, "+this._roundA+")"},toHsl:function(){var h=f(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=f(this._r,this._g,this._b),y=i(h.h*360),d=i(h.s*100),F=i(h.l*100);return this._a==1?"hsl("+y+", "+d+"%, "+F+"%)":"hsla("+y+", "+d+"%, "+F+"%, "+this._roundA+")"},toHex:function(h){return m(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return D(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(O(this._r,255)*100)+"%",g:i(O(this._g,255)*100)+"%",b:i(O(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(O(this._r,255)*100)+"%, "+i(O(this._g,255)*100)+"%, "+i(O(this._b,255)*100)+"%)":"rgba("+i(O(this._r,255)*100)+"%, "+i(O(this._g,255)*100)+"%, "+i(O(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:b[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var y="#"+A(this._r,this._g,this._b,this._a),d=y,F=this._gradientType?"GradientType = 1, ":"";if(h){var N=a(h);d="#"+A(N._r,N._g,N._b,N._a)}return"progid:DXImageTransform.Microsoft.gradient("+F+"startColorstr="+y+",endColorstr="+d+")"},toString:function(h){var y=!!h;h=h||this._format;var d=!1,F=this._a<1&&this._a>=0,N=!y&&F&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return N?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(d=this.toRgbString()),h==="prgb"&&(d=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(d=this.toHexString()),h==="hex3"&&(d=this.toHexString(!0)),h==="hex4"&&(d=this.toHex8String(!0)),h==="hex8"&&(d=this.toHex8String()),h==="name"&&(d=this.toName()),h==="hsl"&&(d=this.toHslString()),h==="hsv"&&(d=this.toHsvString()),d||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(h,y){var d=h.apply(null,[this].concat([].slice.call(y)));return this._r=d._r,this._g=d._g,this._b=d._b,this.setAlpha(d._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(X,arguments)},darken:function(){return this._applyModification(G,arguments)},desaturate:function(){return this._applyModification(R,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(W,arguments)},spin:function(){return this._applyModification(U,arguments)},_applyCombination:function(h,y){return h.apply(null,[this].concat([].slice.call(y)))},analogous:function(){return this._applyCombination(re,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(Xe,arguments)},splitcomplement:function(){return this._applyCombination(se,arguments)},triad:function(){return this._applyCombination(ge,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},a.fromRatio=function(h,y){if(typeof h=="object"){var d={};for(var F in h)h.hasOwnProperty(F)&&(F==="a"?d[F]=h[F]:d[F]=ye(h[F]));h=d}return a(h,y)};function c(h){var y={r:0,g:0,b:0},d=1,F=null,N=null,I=null,ie=!1,me=!1;return typeof h=="string"&&(h=ae(h)),typeof h=="object"&&(k(h.r)&&k(h.g)&&k(h.b)?(y=l(h.r,h.g,h.b),ie=!0,me=String(h.r).substr(-1)==="%"?"prgb":"rgb"):k(h.h)&&k(h.s)&&k(h.v)?(F=ye(h.s),N=ye(h.v),y=E(h.h,F,N),ie=!0,me="hsv"):k(h.h)&&k(h.s)&&k(h.l)&&(F=ye(h.s),I=ye(h.l),y=p(h.h,F,I),ie=!0,me="hsl"),h.hasOwnProperty("a")&&(d=h.a)),d=x(d),{ok:ie,format:h.format||me,r:s(255,o(y.r,0)),g:s(255,o(y.g,0)),b:s(255,o(y.b,0)),a:d}}function l(h,y,d){return{r:O(h,255)*255,g:O(y,255)*255,b:O(d,255)*255}}function f(h,y,d){h=O(h,255),y=O(y,255),d=O(d,255);var F=o(h,y,d),N=s(h,y,d),I,ie,me=(F+N)/2;if(F==N)I=ie=0;else{var Ee=F-N;switch(ie=me>.5?Ee/(2-F-N):Ee/(F+N),F){case h:I=(y-d)/Ee+(y<d?6:0);break;case y:I=(d-h)/Ee+2;break;case d:I=(h-y)/Ee+4;break}I/=6}return{h:I,s:ie,l:me}}function p(h,y,d){var F,N,I;h=O(h,360),y=O(y,100),d=O(d,100);function ie(pt,vi,xt){return xt<0&&(xt+=1),xt>1&&(xt-=1),xt<1/6?pt+(vi-pt)*6*xt:xt<1/2?vi:xt<2/3?pt+(vi-pt)*(2/3-xt)*6:pt}if(y===0)F=N=I=d;else{var me=d<.5?d*(1+y):d+y-d*y,Ee=2*d-me;F=ie(Ee,me,h+1/3),N=ie(Ee,me,h),I=ie(Ee,me,h-1/3)}return{r:F*255,g:N*255,b:I*255}}function _(h,y,d){h=O(h,255),y=O(y,255),d=O(d,255);var F=o(h,y,d),N=s(h,y,d),I,ie,me=F,Ee=F-N;if(ie=F===0?0:Ee/F,F==N)I=0;else{switch(F){case h:I=(y-d)/Ee+(y<d?6:0);break;case y:I=(d-h)/Ee+2;break;case d:I=(h-y)/Ee+4;break}I/=6}return{h:I,s:ie,v:me}}function E(h,y,d){h=O(h,360)*6,y=O(y,100),d=O(d,100);var F=e.floor(h),N=h-F,I=d*(1-y),ie=d*(1-N*y),me=d*(1-(1-N)*y),Ee=F%6,pt=[d,ie,I,I,me,d][Ee],vi=[me,d,d,ie,I,I][Ee],xt=[I,I,me,d,d,ie][Ee];return{r:pt*255,g:vi*255,b:xt*255}}function m(h,y,d,F){var N=[ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16))];return F&&N[0].charAt(0)==N[0].charAt(1)&&N[1].charAt(0)==N[1].charAt(1)&&N[2].charAt(0)==N[2].charAt(1)?N[0].charAt(0)+N[1].charAt(0)+N[2].charAt(0):N.join("")}function D(h,y,d,F,N){var I=[ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16)),ne(z(F))];return N&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)&&I[3].charAt(0)==I[3].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0)+I[3].charAt(0):I.join("")}function A(h,y,d,F){var N=[ne(z(F)),ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16))];return N.join("")}a.equals=function(h,y){return!h||!y?!1:a(h).toRgbString()==a(y).toRgbString()},a.random=function(){return a.fromRatio({r:u(),g:u(),b:u()})};function R(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.s-=y/100,d.s=$(d.s),a(d)}function M(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.s+=y/100,d.s=$(d.s),a(d)}function W(h){return a(h).desaturate(100)}function L(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.l+=y/100,d.l=$(d.l),a(d)}function X(h,y){y=y===0?0:y||10;var d=a(h).toRgb();return d.r=o(0,s(255,d.r-i(255*-(y/100)))),d.g=o(0,s(255,d.g-i(255*-(y/100)))),d.b=o(0,s(255,d.b-i(255*-(y/100)))),a(d)}function G(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.l-=y/100,d.l=$(d.l),a(d)}function U(h,y){var d=a(h).toHsl(),F=(d.h+y)%360;return d.h=F<0?360+F:F,a(d)}function J(h){var y=a(h).toHsl();return y.h=(y.h+180)%360,a(y)}function ge(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+120)%360,s:y.s,l:y.l}),a({h:(d+240)%360,s:y.s,l:y.l})]}function w(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+90)%360,s:y.s,l:y.l}),a({h:(d+180)%360,s:y.s,l:y.l}),a({h:(d+270)%360,s:y.s,l:y.l})]}function se(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+72)%360,s:y.s,l:y.l}),a({h:(d+216)%360,s:y.s,l:y.l})]}function re(h,y,d){y=y||6,d=d||30;var F=a(h).toHsl(),N=360/d,I=[a(h)];for(F.h=(F.h-(N*y>>1)+720)%360;--y;)F.h=(F.h+N)%360,I.push(a(F));return I}function Xe(h,y){y=y||6;for(var d=a(h).toHsv(),F=d.h,N=d.s,I=d.v,ie=[],me=1/y;y--;)ie.push(a({h:F,s:N,v:I})),I=(I+me)%1;return ie}a.mix=function(h,y,d){d=d===0?0:d||50;var F=a(h).toRgb(),N=a(y).toRgb(),I=d/100,ie={r:(N.r-F.r)*I+F.r,g:(N.g-F.g)*I+F.g,b:(N.b-F.b)*I+F.b,a:(N.a-F.a)*I+F.a};return a(ie)},a.readability=function(h,y){var d=a(h),F=a(y);return(e.max(d.getLuminance(),F.getLuminance())+.05)/(e.min(d.getLuminance(),F.getLuminance())+.05)},a.isReadable=function(h,y,d){var F=a.readability(h,y),N,I;switch(I=!1,N=T(d),N.level+N.size){case"AAsmall":case"AAAlarge":I=F>=4.5;break;case"AAlarge":I=F>=3;break;case"AAAsmall":I=F>=7;break}return I},a.mostReadable=function(h,y,d){var F=null,N=0,I,ie,me,Ee;d=d||{},ie=d.includeFallbackColors,me=d.level,Ee=d.size;for(var pt=0;pt<y.length;pt++)I=a.readability(h,y[pt]),I>N&&(N=I,F=a(y[pt]));return a.isReadable(h,F,{level:me,size:Ee})||!ie?F:(d.includeFallbackColors=!1,a.mostReadable(h,["#fff","#000"],d))};var v=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},b=a.hexNames=C(v);function C(h){var y={};for(var d in h)h.hasOwnProperty(d)&&(y[h[d]]=d);return y}function x(h){return h=parseFloat(h),(isNaN(h)||h<0||h>1)&&(h=1),h}function O(h,y){oe(h)&&(h="100%");var d=xe(h);return h=s(y,o(0,parseFloat(h))),d&&(h=parseInt(h*y,10)/100),e.abs(h-y)<1e-6?1:h%y/parseFloat(y)}function $(h){return s(1,o(0,h))}function P(h){return parseInt(h,16)}function oe(h){return typeof h=="string"&&h.indexOf(".")!=-1&&parseFloat(h)===1}function xe(h){return typeof h=="string"&&h.indexOf("%")!=-1}function ne(h){return h.length==1?"0"+h:""+h}function ye(h){return h<=1&&(h=h*100+"%"),h}function z(h){return e.round(parseFloat(h)*255).toString(16)}function ze(h){return P(h)/255}var st=function(){var h="[-\\+]?\\d+%?",y="[-\\+]?\\d*\\.\\d+%?",d="(?:"+y+")|(?:"+h+")",F="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?",N="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?";return{CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function k(h){return!!st.CSS_UNIT.exec(h)}function ae(h){h=h.replace(t,"").replace(r,"").toLowerCase();var y=!1;if(v[h])h=v[h],y=!0;else if(h=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var d;return(d=st.rgb.exec(h))?{r:d[1],g:d[2],b:d[3]}:(d=st.rgba.exec(h))?{r:d[1],g:d[2],b:d[3],a:d[4]}:(d=st.hsl.exec(h))?{h:d[1],s:d[2],l:d[3]}:(d=st.hsla.exec(h))?{h:d[1],s:d[2],l:d[3],a:d[4]}:(d=st.hsv.exec(h))?{h:d[1],s:d[2],v:d[3]}:(d=st.hsva.exec(h))?{h:d[1],s:d[2],v:d[3],a:d[4]}:(d=st.hex8.exec(h))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),a:ze(d[4]),format:y?"name":"hex8"}:(d=st.hex6.exec(h))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),format:y?"name":"hex"}:(d=st.hex4.exec(h))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),a:ze(d[4]+""+d[4]),format:y?"name":"hex8"}:(d=st.hex3.exec(h))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),format:y?"name":"hex"}:!1}function T(h){var y,d;return h=h||{level:"AA",size:"small"},y=(h.level||"AA").toUpperCase(),d=(h.size||"small").toLowerCase(),y!=="AA"&&y!=="AAA"&&(y="AA"),d!=="small"&&d!=="large"&&(d="small"),{level:y,size:d}}typeof zo!="undefined"&&zo.exports?zo.exports=a:typeof define=="function"&&define.amd?define(function(){return a}):window.tinycolor=a})(Math)});var AE=g((MI,DE)=>{var Vi=mE(),bE={r:256,g:256,b:256,a:1},_E={h:360,s:1,v:1,a:1};function Ef(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function bf(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function yf(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=Ef(n,i,r),o=[e.color];for(let u=1;u<r;u++){let a=bf(s,n,u,bE);o.push(Vi(a))}return o}function gE(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return yf(e,t,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let u=Ef(i,s,r),a=[e.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,u.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=bf(u,i,l,_E);a.push(Vi(f))}return a}function yE(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==t;)if(i<t){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function EE(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let a=0,c=e.length;a<c-1;a++)if(t>=e[a].pos&&t<e[a+1].pos){i=e[a],s=e[a+1];break}i||(i=s=e[e.length-1]);let o=Ef(i.color[r](),s.color[r](),(s.pos-i.pos)*100),u=bf(o,i.color[r](),(t-i.pos)*100,n);return Vi(u)}var Wn=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,u)=>{let a=o.pos!==void 0;if(r^a)throw new Error("Cannot mix positionned and not posionned color stops");if(a){let c=o.color!==void 0;if(!c&&(s||u===0||u===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?Vi(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Vi(o.color!==void 0?o.color:o),pos:u/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new Wn(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Wn(t.concat(r.reverse()))}rgb(t){let r=yE(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=yf(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=yf(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=yE(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=gE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let u=gE(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...u)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return EE(this.stops,t,"toRgb",bE)}hsvAt(t){return EE(this.stops,t,"toHsv",_E)}};DE.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Wn(e)}});var SE=g((qI,Yo)=>{"use strict";var xE=dE(),OO=AE(),vE=/\s/g;function _f(...e){let t=OO.apply(this,e),r=(n,i)=>TO(n?n.toString():"",t,i);return r.multiline=(n,i)=>kO(n?n.toString():"",t,i),r}var wE=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function TO(e,t,r){let n=CE(r),i=Math.max(e.replace(vE,"").length,t.stops.length),s=wE(t,n,i),o="";for(let u of e)o+=u.match(vE)?u:xE.hex(s.shift().toHex())(u);return o}function kO(e,t,r){let n=CE(r),i=e.split(`
|
|
18
|
-
`),s=Math.max.apply(null,i.map(a=>a.length).concat([t.stops.length])),o=
|
|
19
|
-
`)}function
|
|
15
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};iE.exports={stringReplaceAll:_O,stringEncaseCRLFWithFirstIndex:DO}});var lE=g((NI,cE)=>{"use strict";var AO=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,oE=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,vO=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,xO=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,wO=new Map([["n",`
|
|
16
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function aE(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):wO.get(e)||e}function CO(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(vO))r.push(i[2].replace(xO,(u,a,c)=>a?aE(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function SO(e){oE.lastIndex=0;let t=[],r;for(;(r=oE.exec(e))!==null;){let n=r[1];if(r[2]){let i=CO(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function uE(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}cE.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(AO,(s,o,u,a,c,l)=>{if(o)i.push(aE(o));else if(a){let f=i.join("");i=[],n.push(r.length===0?f:uE(e,r)(f)),r.push({inverse:u,styles:SO(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(uE(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var yE=g((MI,gE)=>{"use strict";var Yi=Hl(),{stdout:mf,stderr:gf}=Wl(),{stringReplaceAll:FO,stringEncaseCRLFWithFirstIndex:RO}=sE(),{isArray:Ho}=Array,hE=["ansi","ansi","ansi256","ansi16m"],Un=Object.create(null),OO=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=mf?mf.level:0;e.level=t.level===void 0?r:t.level},yf=class{constructor(t){return pE(t)}},pE=e=>{let t={};return OO(t,e),t.template=(...r)=>mE(t.template,...r),Object.setPrototypeOf(t,Go.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=yf,t.template};function Go(e){return pE(e)}for(let[e,t]of Object.entries(Yi))Un[e]={get(){let r=Uo(this,Ef(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Un.visible={get(){let e=Uo(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var dE=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of dE)Un[e]={get(){let{level:t}=this;return function(...r){let n=Ef(Yi.color[hE[t]][e](...r),Yi.color.close,this._styler);return Uo(this,n,this._isEmpty)}}};for(let e of dE){let t="bg"+e[0].toUpperCase()+e.slice(1);Un[t]={get(){let{level:r}=this;return function(...n){let i=Ef(Yi.bgColor[hE[r]][e](...n),Yi.bgColor.close,this._styler);return Uo(this,i,this._isEmpty)}}}}var TO=Object.defineProperties(()=>{},{...Un,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Ef=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Uo=(e,t,r)=>{let n=(...i)=>Ho(i[0])&&Ho(i[0].raw)?fE(n,mE(n,...i)):fE(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,TO),n._generator=e,n._styler=t,n._isEmpty=r,n},fE=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=FO(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
17
|
+
`);return s!==-1&&(t=RO(t,i,n,s)),n+t+i},df,mE=(e,...t)=>{let[r]=t;if(!Ho(r)||!Ho(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return df===void 0&&(df=lE()),df(e,i.join(""))};Object.defineProperties(Go.prototype,Un);var Wo=Go();Wo.supportsColor=mf;Wo.stderr=Go({level:gf?gf.level:0});Wo.stderr.supportsColor=gf;gE.exports=Wo});var EE=g((qI,zo)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,s=e.min,o=e.max,u=e.random;function a(h,y){if(h=h||"",y=y||{},h instanceof a)return h;if(!(this instanceof a))return new a(h,y);var d=c(h);this._originalInput=h,this._r=d.r,this._g=d.g,this._b=d.b,this._a=d.a,this._roundA=i(100*this._a)/100,this._format=y.format||d.format,this._gradientType=y.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=d.ok,this._tc_id=n++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),y,d,F,N,I,ie;return y=h.r/255,d=h.g/255,F=h.b/255,y<=.03928?N=y/12.92:N=e.pow((y+.055)/1.055,2.4),d<=.03928?I=d/12.92:I=e.pow((d+.055)/1.055,2.4),F<=.03928?ie=F/12.92:ie=e.pow((F+.055)/1.055,2.4),.2126*N+.7152*I+.0722*ie},setAlpha:function(h){return this._a=x(h),this._roundA=i(100*this._a)/100,this},toHsv:function(){var h=_(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=_(this._r,this._g,this._b),y=i(h.h*360),d=i(h.s*100),F=i(h.v*100);return this._a==1?"hsv("+y+", "+d+"%, "+F+"%)":"hsva("+y+", "+d+"%, "+F+"%, "+this._roundA+")"},toHsl:function(){var h=f(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=f(this._r,this._g,this._b),y=i(h.h*360),d=i(h.s*100),F=i(h.l*100);return this._a==1?"hsl("+y+", "+d+"%, "+F+"%)":"hsla("+y+", "+d+"%, "+F+"%, "+this._roundA+")"},toHex:function(h){return m(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return A(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(O(this._r,255)*100)+"%",g:i(O(this._g,255)*100)+"%",b:i(O(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(O(this._r,255)*100)+"%, "+i(O(this._g,255)*100)+"%, "+i(O(this._b,255)*100)+"%)":"rgba("+i(O(this._r,255)*100)+"%, "+i(O(this._g,255)*100)+"%, "+i(O(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:b[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var y="#"+D(this._r,this._g,this._b,this._a),d=y,F=this._gradientType?"GradientType = 1, ":"";if(h){var N=a(h);d="#"+D(N._r,N._g,N._b,N._a)}return"progid:DXImageTransform.Microsoft.gradient("+F+"startColorstr="+y+",endColorstr="+d+")"},toString:function(h){var y=!!h;h=h||this._format;var d=!1,F=this._a<1&&this._a>=0,N=!y&&F&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return N?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(d=this.toRgbString()),h==="prgb"&&(d=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(d=this.toHexString()),h==="hex3"&&(d=this.toHexString(!0)),h==="hex4"&&(d=this.toHex8String(!0)),h==="hex8"&&(d=this.toHex8String()),h==="name"&&(d=this.toName()),h==="hsl"&&(d=this.toHslString()),h==="hsv"&&(d=this.toHsvString()),d||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(h,y){var d=h.apply(null,[this].concat([].slice.call(y)));return this._r=d._r,this._g=d._g,this._b=d._b,this.setAlpha(d._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(X,arguments)},darken:function(){return this._applyModification(G,arguments)},desaturate:function(){return this._applyModification(R,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(W,arguments)},spin:function(){return this._applyModification(U,arguments)},_applyCombination:function(h,y){return h.apply(null,[this].concat([].slice.call(y)))},analogous:function(){return this._applyCombination(re,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(Xe,arguments)},splitcomplement:function(){return this._applyCombination(se,arguments)},triad:function(){return this._applyCombination(ge,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},a.fromRatio=function(h,y){if(typeof h=="object"){var d={};for(var F in h)h.hasOwnProperty(F)&&(F==="a"?d[F]=h[F]:d[F]=ye(h[F]));h=d}return a(h,y)};function c(h){var y={r:0,g:0,b:0},d=1,F=null,N=null,I=null,ie=!1,me=!1;return typeof h=="string"&&(h=ae(h)),typeof h=="object"&&(k(h.r)&&k(h.g)&&k(h.b)?(y=l(h.r,h.g,h.b),ie=!0,me=String(h.r).substr(-1)==="%"?"prgb":"rgb"):k(h.h)&&k(h.s)&&k(h.v)?(F=ye(h.s),N=ye(h.v),y=E(h.h,F,N),ie=!0,me="hsv"):k(h.h)&&k(h.s)&&k(h.l)&&(F=ye(h.s),I=ye(h.l),y=p(h.h,F,I),ie=!0,me="hsl"),h.hasOwnProperty("a")&&(d=h.a)),d=x(d),{ok:ie,format:h.format||me,r:s(255,o(y.r,0)),g:s(255,o(y.g,0)),b:s(255,o(y.b,0)),a:d}}function l(h,y,d){return{r:O(h,255)*255,g:O(y,255)*255,b:O(d,255)*255}}function f(h,y,d){h=O(h,255),y=O(y,255),d=O(d,255);var F=o(h,y,d),N=s(h,y,d),I,ie,me=(F+N)/2;if(F==N)I=ie=0;else{var Ee=F-N;switch(ie=me>.5?Ee/(2-F-N):Ee/(F+N),F){case h:I=(y-d)/Ee+(y<d?6:0);break;case y:I=(d-h)/Ee+2;break;case d:I=(h-y)/Ee+4;break}I/=6}return{h:I,s:ie,l:me}}function p(h,y,d){var F,N,I;h=O(h,360),y=O(y,100),d=O(d,100);function ie(pt,vi,xt){return xt<0&&(xt+=1),xt>1&&(xt-=1),xt<1/6?pt+(vi-pt)*6*xt:xt<1/2?vi:xt<2/3?pt+(vi-pt)*(2/3-xt)*6:pt}if(y===0)F=N=I=d;else{var me=d<.5?d*(1+y):d+y-d*y,Ee=2*d-me;F=ie(Ee,me,h+1/3),N=ie(Ee,me,h),I=ie(Ee,me,h-1/3)}return{r:F*255,g:N*255,b:I*255}}function _(h,y,d){h=O(h,255),y=O(y,255),d=O(d,255);var F=o(h,y,d),N=s(h,y,d),I,ie,me=F,Ee=F-N;if(ie=F===0?0:Ee/F,F==N)I=0;else{switch(F){case h:I=(y-d)/Ee+(y<d?6:0);break;case y:I=(d-h)/Ee+2;break;case d:I=(h-y)/Ee+4;break}I/=6}return{h:I,s:ie,v:me}}function E(h,y,d){h=O(h,360)*6,y=O(y,100),d=O(d,100);var F=e.floor(h),N=h-F,I=d*(1-y),ie=d*(1-N*y),me=d*(1-(1-N)*y),Ee=F%6,pt=[d,ie,I,I,me,d][Ee],vi=[me,d,d,ie,I,I][Ee],xt=[I,I,me,d,d,ie][Ee];return{r:pt*255,g:vi*255,b:xt*255}}function m(h,y,d,F){var N=[ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16))];return F&&N[0].charAt(0)==N[0].charAt(1)&&N[1].charAt(0)==N[1].charAt(1)&&N[2].charAt(0)==N[2].charAt(1)?N[0].charAt(0)+N[1].charAt(0)+N[2].charAt(0):N.join("")}function A(h,y,d,F,N){var I=[ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16)),ne(z(F))];return N&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)&&I[3].charAt(0)==I[3].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0)+I[3].charAt(0):I.join("")}function D(h,y,d,F){var N=[ne(z(F)),ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16))];return N.join("")}a.equals=function(h,y){return!h||!y?!1:a(h).toRgbString()==a(y).toRgbString()},a.random=function(){return a.fromRatio({r:u(),g:u(),b:u()})};function R(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.s-=y/100,d.s=$(d.s),a(d)}function M(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.s+=y/100,d.s=$(d.s),a(d)}function W(h){return a(h).desaturate(100)}function L(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.l+=y/100,d.l=$(d.l),a(d)}function X(h,y){y=y===0?0:y||10;var d=a(h).toRgb();return d.r=o(0,s(255,d.r-i(255*-(y/100)))),d.g=o(0,s(255,d.g-i(255*-(y/100)))),d.b=o(0,s(255,d.b-i(255*-(y/100)))),a(d)}function G(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.l-=y/100,d.l=$(d.l),a(d)}function U(h,y){var d=a(h).toHsl(),F=(d.h+y)%360;return d.h=F<0?360+F:F,a(d)}function J(h){var y=a(h).toHsl();return y.h=(y.h+180)%360,a(y)}function ge(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+120)%360,s:y.s,l:y.l}),a({h:(d+240)%360,s:y.s,l:y.l})]}function w(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+90)%360,s:y.s,l:y.l}),a({h:(d+180)%360,s:y.s,l:y.l}),a({h:(d+270)%360,s:y.s,l:y.l})]}function se(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+72)%360,s:y.s,l:y.l}),a({h:(d+216)%360,s:y.s,l:y.l})]}function re(h,y,d){y=y||6,d=d||30;var F=a(h).toHsl(),N=360/d,I=[a(h)];for(F.h=(F.h-(N*y>>1)+720)%360;--y;)F.h=(F.h+N)%360,I.push(a(F));return I}function Xe(h,y){y=y||6;for(var d=a(h).toHsv(),F=d.h,N=d.s,I=d.v,ie=[],me=1/y;y--;)ie.push(a({h:F,s:N,v:I})),I=(I+me)%1;return ie}a.mix=function(h,y,d){d=d===0?0:d||50;var F=a(h).toRgb(),N=a(y).toRgb(),I=d/100,ie={r:(N.r-F.r)*I+F.r,g:(N.g-F.g)*I+F.g,b:(N.b-F.b)*I+F.b,a:(N.a-F.a)*I+F.a};return a(ie)},a.readability=function(h,y){var d=a(h),F=a(y);return(e.max(d.getLuminance(),F.getLuminance())+.05)/(e.min(d.getLuminance(),F.getLuminance())+.05)},a.isReadable=function(h,y,d){var F=a.readability(h,y),N,I;switch(I=!1,N=T(d),N.level+N.size){case"AAsmall":case"AAAlarge":I=F>=4.5;break;case"AAlarge":I=F>=3;break;case"AAAsmall":I=F>=7;break}return I},a.mostReadable=function(h,y,d){var F=null,N=0,I,ie,me,Ee;d=d||{},ie=d.includeFallbackColors,me=d.level,Ee=d.size;for(var pt=0;pt<y.length;pt++)I=a.readability(h,y[pt]),I>N&&(N=I,F=a(y[pt]));return a.isReadable(h,F,{level:me,size:Ee})||!ie?F:(d.includeFallbackColors=!1,a.mostReadable(h,["#fff","#000"],d))};var v=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},b=a.hexNames=C(v);function C(h){var y={};for(var d in h)h.hasOwnProperty(d)&&(y[h[d]]=d);return y}function x(h){return h=parseFloat(h),(isNaN(h)||h<0||h>1)&&(h=1),h}function O(h,y){oe(h)&&(h="100%");var d=xe(h);return h=s(y,o(0,parseFloat(h))),d&&(h=parseInt(h*y,10)/100),e.abs(h-y)<1e-6?1:h%y/parseFloat(y)}function $(h){return s(1,o(0,h))}function P(h){return parseInt(h,16)}function oe(h){return typeof h=="string"&&h.indexOf(".")!=-1&&parseFloat(h)===1}function xe(h){return typeof h=="string"&&h.indexOf("%")!=-1}function ne(h){return h.length==1?"0"+h:""+h}function ye(h){return h<=1&&(h=h*100+"%"),h}function z(h){return e.round(parseFloat(h)*255).toString(16)}function ze(h){return P(h)/255}var ot=function(){var h="[-\\+]?\\d+%?",y="[-\\+]?\\d*\\.\\d+%?",d="(?:"+y+")|(?:"+h+")",F="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?",N="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?";return{CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function k(h){return!!ot.CSS_UNIT.exec(h)}function ae(h){h=h.replace(t,"").replace(r,"").toLowerCase();var y=!1;if(v[h])h=v[h],y=!0;else if(h=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var d;return(d=ot.rgb.exec(h))?{r:d[1],g:d[2],b:d[3]}:(d=ot.rgba.exec(h))?{r:d[1],g:d[2],b:d[3],a:d[4]}:(d=ot.hsl.exec(h))?{h:d[1],s:d[2],l:d[3]}:(d=ot.hsla.exec(h))?{h:d[1],s:d[2],l:d[3],a:d[4]}:(d=ot.hsv.exec(h))?{h:d[1],s:d[2],v:d[3]}:(d=ot.hsva.exec(h))?{h:d[1],s:d[2],v:d[3],a:d[4]}:(d=ot.hex8.exec(h))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),a:ze(d[4]),format:y?"name":"hex8"}:(d=ot.hex6.exec(h))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),format:y?"name":"hex"}:(d=ot.hex4.exec(h))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),a:ze(d[4]+""+d[4]),format:y?"name":"hex8"}:(d=ot.hex3.exec(h))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),format:y?"name":"hex"}:!1}function T(h){var y,d;return h=h||{level:"AA",size:"small"},y=(h.level||"AA").toUpperCase(),d=(h.size||"small").toLowerCase(),y!=="AA"&&y!=="AAA"&&(y="AA"),d!=="small"&&d!=="large"&&(d="small"),{level:y,size:d}}typeof zo!="undefined"&&zo.exports?zo.exports=a:typeof define=="function"&&define.amd?define(function(){return a}):window.tinycolor=a})(Math)});var wE=g((jI,xE)=>{var Vi=EE(),AE={r:256,g:256,b:256,a:1},vE={h:360,s:1,v:1,a:1};function _f(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function Df(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function bf(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=_f(n,i,r),o=[e.color];for(let u=1;u<r;u++){let a=Df(s,n,u,AE);o.push(Vi(a))}return o}function bE(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return bf(e,t,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let u=_f(i,s,r),a=[e.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,u.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=Df(u,i,l,vE);a.push(Vi(f))}return a}function _E(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==t;)if(i<t){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function DE(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let a=0,c=e.length;a<c-1;a++)if(t>=e[a].pos&&t<e[a+1].pos){i=e[a],s=e[a+1];break}i||(i=s=e[e.length-1]);let o=_f(i.color[r](),s.color[r](),(s.pos-i.pos)*100),u=Df(o,i.color[r](),(t-i.pos)*100,n);return Vi(u)}var Wn=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,u)=>{let a=o.pos!==void 0;if(r^a)throw new Error("Cannot mix positionned and not posionned color stops");if(a){let c=o.color!==void 0;if(!c&&(s||u===0||u===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?Vi(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Vi(o.color!==void 0?o.color:o),pos:u/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new Wn(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Wn(t.concat(r.reverse()))}rgb(t){let r=_E(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=bf(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=bf(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=_E(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=bE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let u=bE(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...u)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return DE(this.stops,t,"toRgb",AE)}hsvAt(t){return DE(this.stops,t,"toHsv",vE)}};xE.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Wn(e)}});var OE=g(($I,Yo)=>{"use strict";var SE=yE(),kO=wE(),CE=/\s/g;function Af(...e){let t=kO.apply(this,e),r=(n,i)=>BO(n?n.toString():"",t,i);return r.multiline=(n,i)=>PO(n?n.toString():"",t,i),r}var FE=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function BO(e,t,r){let n=RE(r),i=Math.max(e.replace(CE,"").length,t.stops.length),s=FE(t,n,i),o="";for(let u of e)o+=u.match(CE)?u:SE.hex(s.shift().toHex())(u);return o}function PO(e,t,r){let n=RE(r),i=e.split(`
|
|
18
|
+
`),s=Math.max.apply(null,i.map(a=>a.length).concat([t.stops.length])),o=FE(t,n,s),u=[];for(let a of i){let c=o.slice(0),l="";for(let f of a)l+=SE.hex(c.shift().toHex())(f);u.push(l)}return u.join(`
|
|
19
|
+
`)}function RE(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Ki={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Yo.exports=Af;for(let e in Ki)Yo.exports[e]=t=>new Af(Ki[e].colors)(t,Ki[e].options),Yo.exports[e].multiline=t=>new Af(Ki[e].colors).multiline(t,Ki[e].options)});var GE=g((zI,HE)=>{HE.exports=$E;$E.sync=YO;var qE=require("fs");function zO(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function jE(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:zO(t,r)}function $E(e,t,r){qE.stat(e,function(n,i){r(n,n?!1:jE(i,e,t))})}function YO(e,t){return jE(qE.statSync(e),e,t)}});var VE=g((YI,YE)=>{YE.exports=WE;WE.sync=VO;var UE=require("fs");function WE(e,t,r){UE.stat(e,function(n,i){r(n,n?!1:zE(i,t))})}function VO(e,t){return zE(UE.statSync(e),t)}function zE(e,t){return e.isFile()&&KO(e,t)}function KO(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.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&&i===o||r&u&&n===s||r&l&&s===0;return f}});var XE=g((KI,KE)=>{var VI=require("fs"),Vo;process.platform==="win32"||global.TESTING_WINDOWS?Vo=GE():Vo=VE();KE.exports=Sf;Sf.sync=XO;function Sf(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Sf(e,t||{},function(s,o){s?i(s):n(o)})})}Vo(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function XO(e,t){try{return Vo.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var nb=g((XI,rb)=>{var Vn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ZE=require("path"),ZO=Vn?";":":",JE=XE(),QE=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),eb=(e,t)=>{let r=t.colon||ZO,n=e.match(/\//)||Vn&&e.match(/\\/)?[""]:[...Vn?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Vn?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Vn?i.split(r):[""];return Vn&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},tb=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=eb(e,t),o=[],u=c=>new Promise((l,f)=>{if(c===n.length)return t.all&&o.length?l(o):f(QE(e));let p=n[c],_=/^".*"$/.test(p)?p.slice(1,-1):p,E=ZE.join(_,e),m=!_&&/^\.[\\\/]/.test(e)?e.slice(0,2)+E:E;l(a(m,c,0))}),a=(c,l,f)=>new Promise((p,_)=>{if(f===i.length)return p(u(l+1));let E=i[f];JE(c+E,{pathExt:s},(m,A)=>{if(!m&&A)if(t.all)o.push(c+E);else return p(c+E);return p(a(c,l,f+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},JO=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=eb(e,t),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=ZE.join(a,e),l=!a&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let f=0;f<n.length;f++){let p=l+n[f];try{if(JE.sync(p,{pathExt:i}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw QE(e)};rb.exports=tb;tb.sync=JO});var Rf=g((ZI,Ff)=>{"use strict";var ib=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Ff.exports=ib;Ff.exports.default=ib});var ab=g((JI,ub)=>{"use strict";var sb=require("path"),QO=nb(),eT=Rf();function ob(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=QO.sync(e.command,{path:r[eT({env:r})],pathExt:t?sb.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=sb.resolve(i?e.options.cwd:"",o)),o}function tT(e){return ob(e)||ob(e,!0)}ub.exports=tT});var cb=g((QI,Tf)=>{"use strict";var Of=/([()\][%!^"`<>&|;, *?])/g;function rT(e){return e=e.replace(Of,"^$1"),e}function nT(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Of,"^$1"),t&&(e=e.replace(Of,"^$1")),e}Tf.exports.command=rT;Tf.exports.argument=nT});var fb=g((eL,lb)=>{"use strict";lb.exports=/^#!(.*)/});var pb=g((tL,hb)=>{"use strict";var iT=fb();hb.exports=(e="")=>{let t=e.match(iT);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var mb=g((rL,db)=>{"use strict";var kf=require("fs"),sT=pb();function oT(e){let r=Buffer.alloc(150),n;try{n=kf.openSync(e,"r"),kf.readSync(n,r,0,150,0),kf.closeSync(n)}catch{}return sT(r.toString())}db.exports=oT});var bb=g((nL,Eb)=>{"use strict";var uT=require("path"),gb=ab(),yb=cb(),aT=mb(),cT=process.platform==="win32",lT=/\.(?:com|exe)$/i,fT=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function hT(e){e.file=gb(e);let t=e.file&&aT(e.file);return t?(e.args.unshift(e.file),e.command=t,gb(e)):e.file}function pT(e){if(!cT)return e;let t=hT(e),r=!lT.test(t);if(e.options.forceShell||r){let n=fT.test(t);e.command=uT.normalize(e.command),e.command=yb.command(e.command),e.args=e.args.map(s=>yb.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function dT(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:pT(n)}Eb.exports=dT});var Ab=g((iL,Db)=>{"use strict";var Bf=process.platform==="win32";function Pf(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function mT(e,t){if(!Bf)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=_b(i,t,"spawn");if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function _b(e,t){return Bf&&e===1&&!t.file?Pf(t.original,"spawn"):null}function gT(e,t){return Bf&&e===1&&!t.file?Pf(t.original,"spawnSync"):null}Db.exports={hookChildProcess:mT,verifyENOENT:_b,verifyENOENTSync:gT,notFoundError:Pf}});var wb=g((sL,Kn)=>{"use strict";var vb=require("child_process"),If=bb(),Lf=Ab();function xb(e,t,r){let n=If(e,t,r),i=vb.spawn(n.command,n.args,n.options);return Lf.hookChildProcess(i,n),i}function yT(e,t,r){let n=If(e,t,r),i=vb.spawnSync(n.command,n.args,n.options);return i.error=i.error||Lf.verifyENOENTSync(i.status,n),i}Kn.exports=xb;Kn.exports.spawn=xb;Kn.exports.sync=yT;Kn.exports._parse=If;Kn.exports._enoent=Lf});var Sb=g((oL,Cb)=>{"use strict";Cb.exports=e=>{let t=typeof e=="string"?`
|
|
20
20
|
`:`
|
|
21
|
-
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}});var
|
|
22
|
-
${n.message}`:m,R=[
|
|
23
|
-
`);return D?(n.originalMessage=n.message,n.message=R):n=new Error(R),n.shortMessage=A,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=l&&!a,n};Pb.exports=IT});var Nb=g((fL,Lf)=>{"use strict";var Zo=["stdin","stdout","stderr"],LT=e=>Zo.some(t=>e[t]!==void 0),Lb=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Zo.map(n=>e[n]);if(LT(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Zo.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Zo.length);return Array.from({length:r},(n,i)=>t[i])};Lf.exports=Lb;Lf.exports.node=e=>{let t=Lb(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var qb=g((hL,Mb)=>{"use strict";var NT=require("os"),MT=Ql(),qT=1e3*5,jT=(e,t="SIGTERM",r={})=>{let n=e(t);return $T(e,t,r,n),n},$T=(e,t,r,n)=>{if(!HT(t,r,n))return;let i=UT(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},HT=(e,{forceKillAfterTimeout:t},r)=>GT(e)&&t!==!1&&r,GT=e=>e===NT.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",UT=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return qT;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},WT=(e,t)=>{e.kill()&&(t.isCanceled=!0)},zT=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},YT=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{zT(e,r,a)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},VT=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},KT=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=MT(()=>{e.kill()});return n.finally(()=>{i()})};Mb.exports={spawnedKill:jT,spawnedCancel:WT,setupTimeout:YT,validateTimeout:VT,setExitHandler:KT}});var $b=g((pL,jb)=>{"use strict";var It=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";It.writable=e=>It(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";It.readable=e=>It(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";It.duplex=e=>It.writable(e)&&It.readable(e);It.transform=e=>It.duplex(e)&&typeof e._transform=="function";jb.exports=It});var Gb=g((dL,Hb)=>{"use strict";var{PassThrough:XT}=require("stream");Hb.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new XT({objectMode:i});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),i?o=u.length:o+=a.length}),s.getBufferedValue=()=>t?u:n?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Ub=g((mL,Qi)=>{"use strict";var{constants:ZT}=require("buffer"),JT=require("stream"),{promisify:QT}=require("util"),ek=Gb(),tk=QT(JT.pipeline),Jo=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Nf(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=ek(t);return await new Promise((i,s)=>{let o=u=>{u&&n.getBufferedLength()<=ZT.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)};(async()=>{try{await tk(e,n),i()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Jo)})}),n.getBufferedValue()}Qi.exports=Nf;Qi.exports.buffer=(e,t)=>Nf(e,{...t,encoding:"buffer"});Qi.exports.array=(e,t)=>Nf(e,{...t,array:!0});Qi.exports.MaxBufferError=Jo});var zb=g((gL,Wb)=>{"use strict";var{PassThrough:rk}=require("stream");Wb.exports=function(){var e=[],t=new rk({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var Xb=g((yL,Kb)=>{"use strict";var Vb=$b(),Yb=Ub(),nk=zb(),ik=(e,t)=>{t===void 0||e.stdin===void 0||(Vb(t)?t.pipe(e.stdin):e.stdin.end(t))},sk=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=nk();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Mf=async(e,t)=>{if(e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},qf=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?Yb(e,{encoding:t,maxBuffer:n}):Yb.buffer(e,{maxBuffer:n})},ok=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=qf(e,{encoding:n,buffer:i,maxBuffer:s}),a=qf(t,{encoding:n,buffer:i,maxBuffer:s}),c=qf(r,{encoding:n,buffer:i,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},Mf(e,u),Mf(t,a),Mf(r,c)])}},uk=({input:e})=>{if(Vb(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};Kb.exports={handleInput:ik,makeAllStream:sk,getSpawnedResult:ok,validateInputSync:uk}});var Jb=g((EL,Zb)=>{"use strict";var ak=(async()=>{})().constructor.prototype,ck=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(ak,e)]),lk=(e,t)=>{for(let[r,n]of ck){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},fk=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});Zb.exports={mergePromise:lk,getSpawnedPromise:fk}});var t_=g((bL,e_)=>{"use strict";var Qb=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],hk=/^[\w.-]+$/,pk=/"/g,dk=e=>typeof e!="string"||hk.test(e)?e:`"${e.replace(pk,'\\"')}"`,mk=(e,t)=>Qb(e,t).join(" "),gk=(e,t)=>Qb(e,t).map(r=>dk(r)).join(" "),yk=/ +/g,Ek=e=>{let t=[];for(let r of e.trim().split(yk)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${r}`:t.push(r)}return t};e_.exports={joinCommand:mk,getEscapedCommand:gk,parseCommand:Ek}});var a_=g((_L,Jn)=>{"use strict";var bk=require("path"),jf=require("child_process"),_k=Ab(),Dk=xb(),Ak=Sb(),vk=Xl(),Qo=Ib(),n_=Nb(),{spawnedKill:xk,spawnedCancel:wk,setupTimeout:Ck,validateTimeout:Sk,setExitHandler:Fk}=qb(),{handleInput:Rk,getSpawnedResult:Ok,makeAllStream:Tk,validateInputSync:kk}=Xb(),{mergePromise:r_,getSpawnedPromise:Bk}=Jb(),{joinCommand:i_,parseCommand:s_,getEscapedCommand:o_}=t_(),Pk=1e3*1e3*100,Ik=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...process.env,...e}:e;return r?Ak.env({env:s,cwd:n,execPath:i}):s},u_=(e,t,r={})=>{let n=_k._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Pk,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=Ik(r),r.stdio=n_(r),process.platform==="win32"&&bk.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},es=(e,t,r)=>typeof t!="string"&&!Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?Dk(t):t,eu=(e,t,r)=>{let n=u_(e,t,r),i=i_(e,t),s=o_(e,t);Sk(n.options);let o;try{o=jf.spawn(n.file,n.args,n.options)}catch(_){let E=new jf.ChildProcess,m=Promise.reject(Qo({error:_,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return r_(E,m)}let u=Bk(o),a=Ck(o,n.options,u),c=Fk(o,n.options,a),l={isCanceled:!1};o.kill=xk.bind(null,o.kill.bind(o)),o.cancel=wk.bind(null,o,l);let p=vk(async()=>{let[{error:_,exitCode:E,signal:m,timedOut:D},A,R,M]=await Ok(o,n.options,c),W=es(n.options,A),L=es(n.options,R),X=es(n.options,M);if(_||E!==0||m!==null){let G=Qo({error:_,exitCode:E,signal:m,stdout:W,stderr:L,all:X,command:i,escapedCommand:s,parsed:n,timedOut:D,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return G;throw G}return{command:i,escapedCommand:s,exitCode:0,stdout:W,stderr:L,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Rk(o,n.options.input),o.all=Tk(o,n.options),r_(o,p)};Jn.exports=eu;Jn.exports.sync=(e,t,r)=>{let n=u_(e,t,r),i=i_(e,t),s=o_(e,t);kk(n.options);let o;try{o=jf.spawnSync(n.file,n.args,n.options)}catch(c){throw Qo({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=es(n.options,o.stdout,o.error),a=es(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Qo({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Jn.exports.command=(e,t)=>{let[r,...n]=s_(e);return eu(r,n,t)};Jn.exports.commandSync=(e,t)=>{let[r,...n]=s_(e);return eu.sync(r,n,t)};Jn.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=n_.node(r),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return eu(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Qn=g((wL,f_)=>{"use strict";var l_=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"]]);f_.exports=e=>e?Object.keys(e).map(t=>[l_.has(t)?l_.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var uu=g((CL,__)=>{"use strict";var h_=typeof process=="object"&&process?process:{stdout:null,stderr:null},qk=require("events"),p_=require("stream"),d_=require("string_decoder").StringDecoder,er=Symbol("EOF"),tr=Symbol("maybeEmitEnd"),Sr=Symbol("emittedEnd"),ru=Symbol("emittingEnd"),rs=Symbol("emittedError"),nu=Symbol("closed"),m_=Symbol("read"),iu=Symbol("flush"),g_=Symbol("flushChunk"),tt=Symbol("encoding"),rr=Symbol("decoder"),su=Symbol("flowing"),ns=Symbol("paused"),ei=Symbol("resume"),De=Symbol("buffer"),Lt=Symbol("pipes"),ke=Symbol("bufferLength"),Uf=Symbol("bufferPush"),Wf=Symbol("bufferShift"),$e=Symbol("objectMode"),He=Symbol("destroyed"),zf=Symbol("emitData"),y_=Symbol("emitEnd"),Yf=Symbol("emitEnd2"),nr=Symbol("async"),is=e=>Promise.resolve().then(e),E_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",jk=E_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$k=E_&&Symbol.iterator||Symbol("iterator not implemented"),Hk=e=>e==="end"||e==="finish"||e==="prefinish",Gk=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Uk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),ou=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ei](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Vf=class extends ou{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};__.exports=class b_ extends p_{constructor(t){super(),this[su]=!1,this[ns]=!1,this[Lt]=[],this[De]=[],this[$e]=t&&t.objectMode||!1,this[$e]?this[tt]=null:this[tt]=t&&t.encoding||null,this[tt]==="buffer"&&(this[tt]=null),this[nr]=t&&!!t.async||!1,this[rr]=this[tt]?new d_(this[tt]):null,this[er]=!1,this[Sr]=!1,this[ru]=!1,this[nu]=!1,this[rs]=null,this.writable=!0,this.readable=!0,this[ke]=0,this[He]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[De]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Lt]})}get bufferLength(){return this[ke]}get encoding(){return this[tt]}set encoding(t){if(this[$e])throw new Error("cannot set encoding in objectMode");if(this[tt]&&t!==this[tt]&&(this[rr]&&this[rr].lastNeed||this[ke]))throw new Error("cannot change encoding");this[tt]!==t&&(this[rr]=t?new d_(t):null,this[De].length&&(this[De]=this[De].map(r=>this[rr].write(r)))),this[tt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[$e]}set objectMode(t){this[$e]=this[$e]||!!t}get async(){return this[nr]}set async(t){this[nr]=this[nr]||!!t}write(t,r,n){if(this[er])throw new Error("write after end");if(this[He])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[nr]?is:s=>s();return!this[$e]&&!Buffer.isBuffer(t)&&(Uk(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Gk(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[$e]?(this.flowing&&this[ke]!==0&&this[iu](!0),this.flowing?this.emit("data",t):this[Uf](t),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[tt]&&!this[rr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[tt]&&(t=this[rr].write(t)),this.flowing&&this[ke]!==0&&this[iu](!0),this.flowing?this.emit("data",t):this[Uf](t),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[He])return null;if(this[ke]===0||t===0||t>this[ke])return this[tr](),null;this[$e]&&(t=null),this[De].length>1&&!this[$e]&&(this.encoding?this[De]=[this[De].join("")]:this[De]=[Buffer.concat(this[De],this[ke])]);let r=this[m_](t||null,this[De][0]);return this[tr](),r}[m_](t,r){return t===r.length||t===null?this[Wf]():(this[De][0]=r.slice(t),r=r.slice(0,t),this[ke]-=t),this.emit("data",r),!this[De].length&&!this[er]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[er]=!0,this.writable=!1,(this.flowing||!this[ns])&&this[tr](),this}[ei](){this[He]||(this[ns]=!1,this[su]=!0,this.emit("resume"),this[De].length?this[iu]():this[er]?this[tr]():this.emit("drain"))}resume(){return this[ei]()}pause(){this[su]=!1,this[ns]=!0}get destroyed(){return this[He]}get flowing(){return this[su]}get paused(){return this[ns]}[Uf](t){this[$e]?this[ke]+=1:this[ke]+=t.length,this[De].push(t)}[Wf](){return this[De].length&&(this[$e]?this[ke]-=1:this[ke]-=this[De][0].length),this[De].shift()}[iu](t){do;while(this[g_](this[Wf]()));!t&&!this[De].length&&!this[er]&&this.emit("drain")}[g_](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[He])return;let n=this[Sr];return r=r||{},t===h_.stdout||t===h_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Lt].push(r.proxyErrors?new Vf(this,t,r):new ou(this,t,r)),this[nr]?is(()=>this[ei]()):this[ei]()),t}unpipe(t){let r=this[Lt].find(n=>n.dest===t);r&&(this[Lt].splice(this[Lt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Lt].length&&!this.flowing?this[ei]():t==="readable"&&this[ke]!==0?super.emit("readable"):Hk(t)&&this[Sr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[rs]&&(this[nr]?is(()=>r.call(this,this[rs])):r.call(this,this[rs])),n}get emittedEnd(){return this[Sr]}[tr](){!this[ru]&&!this[Sr]&&!this[He]&&this[De].length===0&&this[er]&&(this[ru]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[nu]&&this.emit("close"),this[ru]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==He&&this[He])return;if(t==="data")return r?this[nr]?is(()=>this[zf](r)):this[zf](r):!1;if(t==="end")return this[y_]();if(t==="close"){if(this[nu]=!0,!this[Sr]&&!this[He])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[rs]=r;let s=super.emit("error",r);return this[tr](),s}else if(t==="resume"){let s=super.emit("resume");return this[tr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[tr](),i}[zf](t){for(let n of this[Lt])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[tr](),r}[y_](){this[Sr]||(this[Sr]=!0,this.readable=!1,this[nr]?is(()=>this[Yf]()):this[Yf]())}[Yf](){if(this[rr]){let r=this[rr].end();if(r){for(let n of this[Lt])n.dest.write(r);super.emit("data",r)}}for(let r of this[Lt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[$e]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[$e]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[$e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[$e]?Promise.reject(new Error("cannot concat in objectMode")):this[tt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(He,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[jk](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[er])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[er]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(He,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[$k](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[He]?(t?this.emit("error",t):this.emit(He),this):(this[He]=!0,this[De].length=0,this[ke]=0,typeof this.close=="function"&&!this[nu]&&this.close(),t?this.emit("error",t):this.emit(He),this)}static isStream(t){return!!t&&(t instanceof b_||t instanceof p_||t instanceof qk&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var A_=g((SL,D_)=>{var Wk=require("zlib").constants||{ZLIB_VERNUM:4736};D_.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},Wk))});var eh=g((FL,T_)=>{"use strict";var v_=typeof process=="object"&&process?process:{stdout:null,stderr:null},zk=require("events"),x_=require("stream"),w_=require("string_decoder").StringDecoder,ir=Symbol("EOF"),sr=Symbol("maybeEmitEnd"),Fr=Symbol("emittedEnd"),au=Symbol("emittingEnd"),ss=Symbol("emittedError"),cu=Symbol("closed"),C_=Symbol("read"),lu=Symbol("flush"),S_=Symbol("flushChunk"),rt=Symbol("encoding"),or=Symbol("decoder"),fu=Symbol("flowing"),os=Symbol("paused"),ti=Symbol("resume"),Be=Symbol("bufferLength"),Kf=Symbol("bufferPush"),Xf=Symbol("bufferShift"),Ge=Symbol("objectMode"),Ue=Symbol("destroyed"),Zf=Symbol("emitData"),F_=Symbol("emitEnd"),Jf=Symbol("emitEnd2"),ur=Symbol("async"),us=e=>Promise.resolve().then(e),R_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Yk=R_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Vk=R_&&Symbol.iterator||Symbol("iterator not implemented"),Kk=e=>e==="end"||e==="finish"||e==="prefinish",Xk=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Zk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),hu=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ti](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Qf=class extends hu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};T_.exports=class O_ extends x_{constructor(t){super(),this[fu]=!1,this[os]=!1,this.pipes=[],this.buffer=[],this[Ge]=t&&t.objectMode||!1,this[Ge]?this[rt]=null:this[rt]=t&&t.encoding||null,this[rt]==="buffer"&&(this[rt]=null),this[ur]=t&&!!t.async||!1,this[or]=this[rt]?new w_(this[rt]):null,this[ir]=!1,this[Fr]=!1,this[au]=!1,this[cu]=!1,this[ss]=null,this.writable=!0,this.readable=!0,this[Be]=0,this[Ue]=!1}get bufferLength(){return this[Be]}get encoding(){return this[rt]}set encoding(t){if(this[Ge])throw new Error("cannot set encoding in objectMode");if(this[rt]&&t!==this[rt]&&(this[or]&&this[or].lastNeed||this[Be]))throw new Error("cannot change encoding");this[rt]!==t&&(this[or]=t?new w_(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[or].write(r)))),this[rt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Ge]}set objectMode(t){this[Ge]=this[Ge]||!!t}get async(){return this[ur]}set async(t){this[ur]=this[ur]||!!t}write(t,r,n){if(this[ir])throw new Error("write after end");if(this[Ue])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[ur]?us:s=>s();return!this[Ge]&&!Buffer.isBuffer(t)&&(Zk(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Xk(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Ge]?(this.flowing&&this[Be]!==0&&this[lu](!0),this.flowing?this.emit("data",t):this[Kf](t),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[rt]&&!this[or].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[rt]&&(t=this[or].write(t)),this.flowing&&this[Be]!==0&&this[lu](!0),this.flowing?this.emit("data",t):this[Kf](t),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Ue])return null;if(this[Be]===0||t===0||t>this[Be])return this[sr](),null;this[Ge]&&(t=null),this.buffer.length>1&&!this[Ge]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Be])]);let r=this[C_](t||null,this.buffer[0]);return this[sr](),r}[C_](t,r){return t===r.length||t===null?this[Xf]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[Be]-=t),this.emit("data",r),!this.buffer.length&&!this[ir]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[ir]=!0,this.writable=!1,(this.flowing||!this[os])&&this[sr](),this}[ti](){this[Ue]||(this[os]=!1,this[fu]=!0,this.emit("resume"),this.buffer.length?this[lu]():this[ir]?this[sr]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[fu]=!1,this[os]=!0}get destroyed(){return this[Ue]}get flowing(){return this[fu]}get paused(){return this[os]}[Kf](t){this[Ge]?this[Be]+=1:this[Be]+=t.length,this.buffer.push(t)}[Xf](){return this.buffer.length&&(this[Ge]?this[Be]-=1:this[Be]-=this.buffer[0].length),this.buffer.shift()}[lu](t){do;while(this[S_](this[Xf]()));!t&&!this.buffer.length&&!this[ir]&&this.emit("drain")}[S_](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Ue])return;let n=this[Fr];return r=r||{},t===v_.stdout||t===v_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new Qf(this,t,r):new hu(this,t,r)),this[ur]?us(()=>this[ti]()):this[ti]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[ti]():t==="readable"&&this[Be]!==0?super.emit("readable"):Kk(t)&&this[Fr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[ss]&&(this[ur]?us(()=>r.call(this,this[ss])):r.call(this,this[ss])),n}get emittedEnd(){return this[Fr]}[sr](){!this[au]&&!this[Fr]&&!this[Ue]&&this.buffer.length===0&&this[ir]&&(this[au]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[cu]&&this.emit("close"),this[au]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Ue&&this[Ue])return;if(t==="data")return r?this[ur]?us(()=>this[Zf](r)):this[Zf](r):!1;if(t==="end")return this[F_]();if(t==="close"){if(this[cu]=!0,!this[Fr]&&!this[Ue])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[ss]=r;let s=super.emit("error",r);return this[sr](),s}else if(t==="resume"){let s=super.emit("resume");return this[sr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[sr](),i}[Zf](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[sr](),r}[F_](){this[Fr]||(this[Fr]=!0,this.readable=!1,this[ur]?us(()=>this[Jf]()):this[Jf]())}[Jf](){if(this[or]){let r=this[or].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Ge]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Ge]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Ge]?Promise.reject(new Error("cannot concat in objectMode")):this[rt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Ue,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Yk](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ir])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[ir]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ue,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Vk](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Ue]?(t?this.emit("error",t):this.emit(Ue),this):(this[Ue]=!0,this.buffer.length=0,this[Be]=0,typeof this.close=="function"&&!this[cu]&&this.close(),t?this.emit("error",t):this.emit(Ue),this)}static isStream(t){return!!t&&(t instanceof O_||t instanceof x_||t instanceof zk&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var gh=g(at=>{"use strict";var sh=require("assert"),Rr=require("buffer").Buffer,P_=require("zlib"),en=at.constants=A_(),Jk=eh(),k_=Rr.concat,tn=Symbol("_superWrite"),ni=class extends Error{constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},Qk=Symbol("opts"),as=Symbol("flushFlag"),B_=Symbol("finishFlushFlag"),mh=Symbol("fullFlushFlag"),ce=Symbol("handle"),pu=Symbol("onError"),ri=Symbol("sawError"),th=Symbol("level"),rh=Symbol("strategy"),nh=Symbol("ended"),RL=Symbol("_defaultFullFlush"),du=class extends Jk{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[ri]=!1,this[nh]=!1,this[Qk]=t,this[as]=t.flush,this[B_]=t.finishFlush;try{this[ce]=new P_[r](t)}catch(n){throw new ni(n)}this[pu]=n=>{this[ri]||(this[ri]=!0,this.close(),this.emit("error",n))},this[ce].on("error",n=>this[pu](new ni(n))),this.once("end",()=>this.close)}close(){this[ce]&&(this[ce].close(),this[ce]=null,this.emit("close"))}reset(){if(!this[ri])return sh(this[ce],"zlib binding closed"),this[ce].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[mh]),this.write(Object.assign(Rr.alloc(0),{[as]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[B_]),this[nh]=!0,super.end(null,null,n)}get ended(){return this[nh]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=Rr.from(t,r)),this[ri])return;sh(this[ce],"zlib binding closed");let i=this[ce]._handle,s=i.close;i.close=()=>{};let o=this[ce].close;this[ce].close=()=>{},Rr.concat=c=>c;let u;try{let c=typeof t[as]=="number"?t[as]:this[as];u=this[ce]._processChunk(t,c),Rr.concat=k_}catch(c){Rr.concat=k_,this[pu](new ni(c))}finally{this[ce]&&(this[ce]._handle=i,i.close=s,this[ce].close=o,this[ce].removeAllListeners("error"))}this[ce]&&this[ce].on("error",c=>this[pu](new ni(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[tn](Rr.from(u[0]));for(let c=1;c<u.length;c++)a=this[tn](u[c])}else a=this[tn](Rr.from(u));return n&&n(),a}[tn](t){return super.write(t)}},ar=class extends du{constructor(t,r){t=t||{},t.flush=t.flush||en.Z_NO_FLUSH,t.finishFlush=t.finishFlush||en.Z_FINISH,super(t,r),this[mh]=en.Z_FULL_FLUSH,this[th]=t.level,this[rh]=t.strategy}params(t,r){if(!this[ri]){if(!this[ce])throw new Error("cannot switch params when binding is closed");if(!this[ce].params)throw new Error("not supported in this implementation");if(this[th]!==t||this[rh]!==r){this.flush(en.Z_SYNC_FLUSH),sh(this[ce],"zlib binding closed");let n=this[ce].flush;this[ce].flush=(i,s)=>{this.flush(i),s()};try{this[ce].params(t,r)}finally{this[ce].flush=n}this[ce]&&(this[th]=t,this[rh]=r)}}}},oh=class extends ar{constructor(t){super(t,"Deflate")}},uh=class extends ar{constructor(t){super(t,"Inflate")}},ih=Symbol("_portable"),ah=class extends ar{constructor(t){super(t,"Gzip"),this[ih]=t&&!!t.portable}[tn](t){return this[ih]?(this[ih]=!1,t[9]=255,super[tn](t)):super[tn](t)}},ch=class extends ar{constructor(t){super(t,"Gunzip")}},lh=class extends ar{constructor(t){super(t,"DeflateRaw")}},fh=class extends ar{constructor(t){super(t,"InflateRaw")}},hh=class extends ar{constructor(t){super(t,"Unzip")}},mu=class extends du{constructor(t,r){t=t||{},t.flush=t.flush||en.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||en.BROTLI_OPERATION_FINISH,super(t,r),this[mh]=en.BROTLI_OPERATION_FLUSH}},ph=class extends mu{constructor(t){super(t,"BrotliCompress")}},dh=class extends mu{constructor(t){super(t,"BrotliDecompress")}};at.Deflate=oh;at.Inflate=uh;at.Gzip=ah;at.Gunzip=ch;at.DeflateRaw=lh;at.InflateRaw=fh;at.Unzip=hh;typeof P_.BrotliCompress=="function"?(at.BrotliCompress=ph,at.BrotliDecompress=dh):at.BrotliCompress=at.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ii=g((kL,I_)=>{var e3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;I_.exports=e3!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var gu=g((PL,L_)=>{"use strict";var t3=uu(),yh=ii(),Eh=Symbol("slurp");L_.exports=class extends t3{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.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=yh(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=yh(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[Eh](r),n&&this[Eh](n,!0)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(t):super.write(t.slice(0,n))}[Eh](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?yh(t[n]):t[n])}}});var bh=g(yu=>{"use strict";yu.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"]]);yu.code=new Map(Array.from(yu.name).map(e=>[e[1],e[0]]))});var j_=g((LL,q_)=>{"use strict";var r3=(e,t)=>{if(Number.isSafeInteger(e))e<0?i3(e,t):n3(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},n3=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},i3=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=N_(i):i===0?t[n-1]=0:(r=!0,t[n-1]=M_(i))}},s3=e=>{let t=e[0],r=t===128?u3(e.slice(1,e.length)):t===255?o3(e):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},o3=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],o;n?o=N_(s):s===0?o=s:(n=!0,o=M_(s)),o!==0&&(r-=o*Math.pow(256,t-i-1))}return r},u3=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},N_=e=>(255^e)&255,M_=e=>(255^e)+1&255;q_.exports={encode:r3,parse:s3}});var oi=g((NL,H_)=>{"use strict";var _h=bh(),si=require("path").posix,$_=j_(),Dh=Symbol("slurp"),ct=Symbol("type"),xh=class{constructor(t,r,n,i){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[ct]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=rn(t,r,100),this.mode=Or(t,r+100,8),this.uid=Or(t,r+108,8),this.gid=Or(t,r+116,8),this.size=Or(t,r+124,12),this.mtime=Ah(t,r+136,12),this.cksum=Or(t,r+148,12),this[Dh](n),this[Dh](i,!0),this[ct]=rn(t,r+156,1),this[ct]===""&&(this[ct]="0"),this[ct]==="0"&&this.path.slice(-1)==="/"&&(this[ct]="5"),this[ct]==="5"&&(this.size=0),this.linkpath=rn(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=rn(t,r+265,32),this.gname=rn(t,r+297,32),this.devmaj=Or(t,r+329,8),this.devmin=Or(t,r+337,8),t[r+475]!==0){let o=rn(t,r+345,155);this.path=o+"/"+this.path}else{let o=rn(t,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ah(t,r+476,12),this.ctime=Ah(t,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=t[o];for(let o=r+156;o<r+512;o++)s+=t[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Dh](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=a3(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=nn(t,r,100,s)||this.needPax,this.needPax=Tr(t,r+100,8,this.mode)||this.needPax,this.needPax=Tr(t,r+108,8,this.uid)||this.needPax,this.needPax=Tr(t,r+116,8,this.gid)||this.needPax,this.needPax=Tr(t,r+124,12,this.size)||this.needPax,this.needPax=vh(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[ct].charCodeAt(0),this.needPax=nn(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=nn(t,r+265,32,this.uname)||this.needPax,this.needPax=nn(t,r+297,32,this.gname)||this.needPax,this.needPax=Tr(t,r+329,8,this.devmaj)||this.needPax,this.needPax=Tr(t,r+337,8,this.devmin)||this.needPax,this.needPax=nn(t,r+345,n,o)||this.needPax,t[r+475]!==0?this.needPax=nn(t,r+345,155,o)||this.needPax:(this.needPax=nn(t,r+345,130,o)||this.needPax,this.needPax=vh(t,r+476,12,this.atime)||this.needPax,this.needPax=vh(t,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=t[a];for(let a=r+156;a<r+512;a++)u+=t[a];return this.cksum=u,Tr(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return _h.name.get(this[ct])||this[ct]}get typeKey(){return this[ct]}set type(t){_h.code.has(t)?this[ct]=_h.code.get(t):this[ct]=t}},a3=(e,t)=>{let n=e,i="",s,o=si.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=si.dirname(n),n=si.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,100-1),i,!0]:(n=si.join(si.basename(i),n),i=si.dirname(i));while(i!==o&&!s);s||(s=[e.slice(0,100-1),"",!0])}return s},rn=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),Ah=(e,t,r)=>c3(Or(e,t,r)),c3=e=>e===null?null:new Date(e*1e3),Or=(e,t,r)=>e[t]&128?$_.parse(e.slice(t,t+r)):f3(e,t,r),l3=e=>isNaN(e)?null:e,f3=(e,t,r)=>l3(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),h3={12:8589934591,8:2097151},Tr=(e,t,r,n)=>n===null?!1:n>h3[r]||n<0?($_.encode(n,e.slice(t,t+r)),!0):(p3(e,t,r,n),!1),p3=(e,t,r,n)=>e.write(d3(n,r),t,r,"ascii"),d3=(e,t)=>m3(Math.floor(e).toString(8),t),m3=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",vh=(e,t,r,n)=>n===null?!1:Tr(e,t,r,n.getTime()/1e3),g3=new Array(156).join("\0"),nn=(e,t,r,n)=>n===null?!1:(e.write(n+g3,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);H_.exports=xh});var Eu=g((ML,G_)=>{"use strict";var y3=oi(),E3=require("path"),cs=class{constructor(t,r){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new y3({path:("PaxHeader/"+E3.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(i),i.write(t,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}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(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
|
24
|
-
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};cs.parse=(e,t,r)=>new cs(
|
|
25
|
-
`).reduce(D3,Object.create(null)),D3=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};G_.exports=cs});var ui=g((qL,U_)=>{U_.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var bu=g((jL,W_)=>{"use strict";W_.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${t}: ${r}`),n))}}});var Ch=g((HL,z_)=>{"use strict";var _u=["|","<",">","?",":"],wh=_u.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),A3=new Map(_u.map((e,t)=>[e,wh[t]])),v3=new Map(wh.map((e,t)=>[e,_u[t]]));z_.exports={encode:e=>_u.reduce((t,r)=>t.split(r).join(A3.get(r)),e),decode:e=>wh.reduce((t,r)=>t.split(r).join(v3.get(r)),e)}});var Sh=g((GL,V_)=>{var{isAbsolute:x3,parse:Y_}=require("path").win32;V_.exports=e=>{let t="",r=Y_(e);for(;x3(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=Y_(e)}return[t,e]}});var X_=g((UL,K_)=>{"use strict";K_.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var Nh=g((YL,lD)=>{"use strict";var nD=uu(),iD=Eu(),sD=oi(),Mt=require("fs"),Z_=require("path"),Nt=ii(),w3=ui(),oD=(e,t)=>t?(e=Nt(e).replace(/^\.(\/|$)/,""),w3(t)+"/"+e):Nt(e),C3=16*1024*1024,J_=Symbol("process"),Q_=Symbol("file"),eD=Symbol("directory"),Rh=Symbol("symlink"),tD=Symbol("hardlink"),ls=Symbol("header"),Du=Symbol("read"),Oh=Symbol("lstat"),Au=Symbol("onlstat"),Th=Symbol("onread"),kh=Symbol("onreadlink"),Bh=Symbol("openfile"),Ph=Symbol("onopenfile"),kr=Symbol("close"),vu=Symbol("mode"),Ih=Symbol("awaitDrain"),Fh=Symbol("ondrain"),qt=Symbol("prefix"),rD=Symbol("hadError"),uD=bu(),S3=Ch(),aD=Sh(),cD=X_(),xu=uD(class extends nD{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Nt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||C3,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 n=!1;if(!this.preservePaths){let[i,s]=aD(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=S3.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Nt(r.absolute||Z_.resolve(this.cwd,t)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Au](this.statCache.get(this.absolute)):this[Oh]()}emit(t,...r){return t==="error"&&(this[rD]=!0),super.emit(t,...r)}[Oh](){Mt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Au](r)})}[Au](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=R3(t),this.emit("stat",t),this[J_]()}[J_](){switch(this.type){case"File":return this[Q_]();case"Directory":return this[eD]();case"SymbolicLink":return this[Rh]();default:return this.end()}}[vu](t){return cD(t,this.type==="Directory",this.portable)}[qt](t){return oD(t,this.prefix)}[ls](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new sD({path:this[qt](this.path),linkpath:this.type==="Link"?this[qt](this.linkpath):this.linkpath,mode:this[vu](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 iD({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[qt](this.path),linkpath:this.type==="Link"?this[qt](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)}[eD](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ls](),this.end()}[Rh](){Mt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[kh](r)})}[kh](t){this.linkpath=Nt(t),this[ls](),this.end()}[tD](t){this.type="Link",this.linkpath=Nt(Z_.relative(this.cwd,t)),this.stat.size=0,this[ls](),this.end()}[Q_](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[tD](r)}this.linkCache.set(t,this.absolute)}if(this[ls](),this.stat.size===0)return this.end();this[Bh]()}[Bh](){Mt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[Ph](r)})}[Ph](t){if(this.fd=t,this[rD])return this[kr]();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[Du]()}[Du](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Mt.read(t,r,n,i,s,(o,u)=>{if(o)return this[kr](()=>this.emit("error",o));this[Th](u)})}[kr](t){Mt.close(this.fd,t)}[Th](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[kr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[kr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[Fh]():this[Ih](()=>this[Fh]())}[Ih](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[Fh](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[kr](t=>t?this.emit("error",t):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[Du]()}}),Lh=class extends xu{[Oh](){this[Au](Mt.lstatSync(this.absolute))}[Rh](){this[kh](Mt.readlinkSync(this.absolute))}[Bh](){this[Ph](Mt.openSync(this.absolute,"r"))}[Du](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,u=Mt.readSync(r,n,i,s,o);this[Th](u),t=!1}finally{if(t)try{this[kr](()=>{})}catch{}}}[Ih](t){t()}[kr](t){Mt.closeSync(this.fd),t()}},F3=uD(class extends nD{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Nt(t.path),this.mode=this[vu](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Nt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=aD(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new sD({path:this[qt](this.path),linkpath:this.type==="Link"?this[qt](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}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new iD({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[qt](this.path),linkpath:this.type==="Link"?this[qt](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),t.pipe(this)}[qt](t){return oD(t,this.prefix)}[vu](t){return cD(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});xu.Sync=Lh;xu.Tar=F3;var R3=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";lD.exports=xu});var hD=g((VL,fD)=>{"use strict";fD.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Mh=g((KL,pD)=>{"use strict";pD.exports=ee;ee.Node=sn;ee.create=ee;function ee(e){var t=this;if(t instanceof ee||(t=new ee),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}ee.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ee.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ee.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ee.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)T3(this,arguments[e]);return this.length};ee.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)k3(this,arguments[e]);return this.length};ee.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ee.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ee.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};ee.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};ee.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};ee.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};ee.prototype.map=function(e,t){t=t||this;for(var r=new ee,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};ee.prototype.mapReverse=function(e,t){t=t||this;for(var r=new ee,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};ee.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};ee.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};ee.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};ee.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};ee.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ee;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};ee.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ee;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};ee.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=O3(this,i,r[n]);return s};ee.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function O3(e,t,r){var n=t===e.head?new sn(r,null,t,e):new sn(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function T3(e,t){e.tail=new sn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function k3(e,t){e.head=new sn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function sn(e,t,r,n){if(!(this instanceof sn))return new sn(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{hD()(ee)}catch{}});var Bu=g((ZL,_D)=>{"use strict";var Tu=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},B3=uu(),P3=gh(),I3=gu(),Yh=Nh(),L3=Yh.Sync,N3=Yh.Tar,M3=Mh(),dD=Buffer.alloc(1024),Su=Symbol("onStat"),wu=Symbol("ended"),jt=Symbol("queue"),ai=Symbol("current"),on=Symbol("process"),Cu=Symbol("processing"),mD=Symbol("processJob"),$t=Symbol("jobs"),qh=Symbol("jobDone"),Fu=Symbol("addFSEntry"),gD=Symbol("addTarEntry"),Gh=Symbol("stat"),Uh=Symbol("readdir"),Ru=Symbol("onreaddir"),Ou=Symbol("pipe"),yD=Symbol("entry"),jh=Symbol("entryOpt"),Wh=Symbol("writeEntryClass"),bD=Symbol("write"),$h=Symbol("ondrain"),ku=require("fs"),ED=require("path"),q3=bu(),Hh=ii(),Vh=q3(class extends B3{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=Hh(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[Wh]=Yh,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new P3.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[$h]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[$h]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[jt]=new M3,this[$t]=0,this.jobs=+t.jobs||4,this[Cu]=!1,this[wu]=!1}[bD](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[wu]=!0,this[on](),this}write(t){if(this[wu])throw new Error("write after end");return t instanceof I3?this[gD](t):this[Fu](t),this.flowing}[gD](t){let r=Hh(ED.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new Tu(t.path,r,!1);n.entry=new N3(t,this[jh](n)),n.entry.on("end",i=>this[qh](n)),this[$t]+=1,this[jt].push(n)}this[on]()}[Fu](t){let r=Hh(ED.resolve(this.cwd,t));this[jt].push(new Tu(t,r)),this[on]()}[Gh](t){t.pending=!0,this[$t]+=1;let r=this.follow?"stat":"lstat";ku[r](t.absolute,(n,i)=>{t.pending=!1,this[$t]-=1,n?this.emit("error",n):this[Su](t,i)})}[Su](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[on]()}[Uh](t){t.pending=!0,this[$t]+=1,ku.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[$t]-=1,r)return this.emit("error",r);this[Ru](t,n)})}[Ru](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[on]()}[on](){if(!this[Cu]){this[Cu]=!0;for(let t=this[jt].head;t!==null&&this[$t]<this.jobs;t=t.next)if(this[mD](t.value),t.value.ignore){let r=t.next;this[jt].removeNode(t),t.next=r}this[Cu]=!1,this[wu]&&!this[jt].length&&this[$t]===0&&(this.zip?this.zip.end(dD):(super.write(dD),super.end()))}}get[ai](){return this[jt]&&this[jt].head&&this[jt].head.value}[qh](t){this[jt].shift(),this[$t]-=1,this[on]()}[mD](t){if(!t.pending){if(t.entry){t===this[ai]&&!t.piped&&this[Ou](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[Su](t,this.statCache.get(t.absolute)):this[Gh](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[Ru](t,this.readdirCache.get(t.absolute)):this[Uh](t),!t.readdir))){if(t.entry=this[yD](t),!t.entry){t.ignore=!0;return}t===this[ai]&&!t.piped&&this[Ou](t)}}}[jh](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[yD](t){this[$t]+=1;try{return new this[Wh](t.path,this[jh](t)).on("end",()=>this[qh](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[$h](){this[ai]&&this[ai].entry&&this[ai].entry.resume()}[Ou](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Fu](o+i)});let r=t.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),zh=class extends Vh{constructor(t){super(t),this[Wh]=L3}pause(){}resume(){}[Gh](t){let r=this.follow?"statSync":"lstatSync";this[Su](t,ku[r](t.absolute))}[Uh](t,r){this[Ru](t,ku.readdirSync(t.absolute))}[Ou](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Fu](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[bD](i)})}};Vh.Sync=zh;_D.exports=Vh});var gi=g(hs=>{"use strict";var j3=eh(),$3=require("events").EventEmitter,nt=require("fs"),Zh=nt.writev;if(!Zh){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;Zh=(r,n,i,s)=>{let o=(a,c)=>s(a,c,n),u=new t;u.oncomplete=o,e.writeBuffers(r,n,i,u)}}var di=Symbol("_autoClose"),St=Symbol("_close"),fs=Symbol("_ended"),ue=Symbol("_fd"),DD=Symbol("_finished"),Pr=Symbol("_flags"),Kh=Symbol("_flush"),Jh=Symbol("_handleChunk"),Qh=Symbol("_makeBuf"),Mu=Symbol("_mode"),Pu=Symbol("_needDrain"),hi=Symbol("_onerror"),mi=Symbol("_onopen"),Xh=Symbol("_onread"),li=Symbol("_onwrite"),Ir=Symbol("_open"),cr=Symbol("_path"),un=Symbol("_pos"),Ht=Symbol("_queue"),fi=Symbol("_read"),AD=Symbol("_readSize"),Br=Symbol("_reading"),Iu=Symbol("_remain"),vD=Symbol("_size"),Lu=Symbol("_write"),ci=Symbol("_writing"),Nu=Symbol("_defaultFlag"),pi=Symbol("_errored"),qu=class extends j3{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[pi]=!1,this[ue]=typeof r.fd=="number"?r.fd:null,this[cr]=t,this[AD]=r.readSize||16*1024*1024,this[Br]=!1,this[vD]=typeof r.size=="number"?r.size:1/0,this[Iu]=this[vD],this[di]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ue]=="number"?this[fi]():this[Ir]()}get fd(){return this[ue]}get path(){return this[cr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ir](){nt.open(this[cr],"r",(t,r)=>this[mi](t,r))}[mi](t,r){t?this[hi](t):(this[ue]=r,this.emit("open",r),this[fi]())}[Qh](){return Buffer.allocUnsafe(Math.min(this[AD],this[Iu]))}[fi](){if(!this[Br]){this[Br]=!0;let t=this[Qh]();if(t.length===0)return process.nextTick(()=>this[Xh](null,0,t));nt.read(this[ue],t,0,t.length,null,(r,n,i)=>this[Xh](r,n,i))}}[Xh](t,r,n){this[Br]=!1,t?this[hi](t):this[Jh](r,n)&&this[fi]()}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[hi](t){this[Br]=!0,this[St](),this.emit("error",t)}[Jh](t,r){let n=!1;return this[Iu]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[Iu]<=0)&&(n=!1,this[St](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[ue]=="number"&&this[fi]();break;case"error":return this[pi]?void 0:(this[pi]=!0,super.emit(t,r));default:return super.emit(t,r)}}},ep=class extends qu{[Ir](){let t=!0;try{this[mi](null,nt.openSync(this[cr],"r")),t=!1}finally{t&&this[St]()}}[fi](){let t=!0;try{if(!this[Br]){this[Br]=!0;do{let r=this[Qh](),n=r.length===0?0:nt.readSync(this[ue],r,0,r.length,null);if(!this[Jh](n,r))break}while(!0);this[Br]=!1}t=!1}finally{t&&this[St]()}}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.closeSync(t),this.emit("close")}}},ju=class extends $3{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[pi]=!1,this[ci]=!1,this[fs]=!1,this[Pu]=!1,this[Ht]=[],this[cr]=t,this[ue]=typeof r.fd=="number"?r.fd:null,this[Mu]=r.mode===void 0?438:r.mode,this[un]=typeof r.start=="number"?r.start:null,this[di]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[un]!==null?"r+":"w";this[Nu]=r.flags===void 0,this[Pr]=this[Nu]?n:r.flags,this[ue]===null&&this[Ir]()}emit(t,r){if(t==="error"){if(this[pi])return;this[pi]=!0}return super.emit(t,r)}get fd(){return this[ue]}get path(){return this[cr]}[hi](t){this[St](),this[ci]=!0,this.emit("error",t)}[Ir](){nt.open(this[cr],this[Pr],this[Mu],(t,r)=>this[mi](t,r))}[mi](t,r){this[Nu]&&this[Pr]==="r+"&&t&&t.code==="ENOENT"?(this[Pr]="w",this[Ir]()):t?this[hi](t):(this[ue]=r,this.emit("open",r),this[Kh]())}end(t,r){return t&&this.write(t,r),this[fs]=!0,!this[ci]&&!this[Ht].length&&typeof this[ue]=="number"&&this[li](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[fs]?(this.emit("error",new Error("write() after end()")),!1):this[ue]===null||this[ci]||this[Ht].length?(this[Ht].push(t),this[Pu]=!0,!1):(this[ci]=!0,this[Lu](t),!0)}[Lu](t){nt.write(this[ue],t,0,t.length,this[un],(r,n)=>this[li](r,n))}[li](t,r){t?this[hi](t):(this[un]!==null&&(this[un]+=r),this[Ht].length?this[Kh]():(this[ci]=!1,this[fs]&&!this[DD]?(this[DD]=!0,this[St](),this.emit("finish")):this[Pu]&&(this[Pu]=!1,this.emit("drain"))))}[Kh](){if(this[Ht].length===0)this[fs]&&this[li](null,0);else if(this[Ht].length===1)this[Lu](this[Ht].pop());else{let t=this[Ht];this[Ht]=[],Zh(this[ue],t,this[un],(r,n)=>this[li](r,n))}}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},tp=class extends ju{[Ir](){let t;if(this[Nu]&&this[Pr]==="r+")try{t=nt.openSync(this[cr],this[Pr],this[Mu])}catch(r){if(r.code==="ENOENT")return this[Pr]="w",this[Ir]();throw r}else t=nt.openSync(this[cr],this[Pr],this[Mu]);this[mi](null,t)}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.closeSync(t),this.emit("close")}}[Lu](t){let r=!0;try{this[li](null,nt.writeSync(this[ue],t,0,t.length,this[un])),r=!1}finally{if(r)try{this[St]()}catch{}}}};hs.ReadStream=qu;hs.ReadStreamSync=ep;hs.WriteStream=ju;hs.WriteStreamSync=tp});var Yu=g((eN,TD)=>{"use strict";var H3=bu(),G3=oi(),U3=require("events"),W3=Mh(),z3=1024*1024,Y3=gu(),xD=Eu(),V3=gh(),{nextTick:K3}=require("process"),rp=Buffer.from([31,139]),yt=Symbol("state"),an=Symbol("writeEntry"),lr=Symbol("readEntry"),np=Symbol("nextEntry"),wD=Symbol("processEntry"),Et=Symbol("extendedHeader"),ps=Symbol("globalExtendedHeader"),Lr=Symbol("meta"),CD=Symbol("emitMeta"),pe=Symbol("buffer"),fr=Symbol("queue"),cn=Symbol("ended"),SD=Symbol("emittedEnd"),ln=Symbol("emit"),it=Symbol("unzip"),$u=Symbol("consumeChunk"),Hu=Symbol("consumeChunkSub"),ip=Symbol("consumeBody"),FD=Symbol("consumeMeta"),RD=Symbol("consumeHeader"),Gu=Symbol("consuming"),sp=Symbol("bufferConcat"),op=Symbol("maybeEnd"),ds=Symbol("writing"),Nr=Symbol("aborted"),Uu=Symbol("onDone"),fn=Symbol("sawValidEntry"),Wu=Symbol("sawNullBlock"),zu=Symbol("sawEOF"),OD=Symbol("closeStream"),X3=e=>!0;TD.exports=H3(class extends U3{constructor(t){t=t||{},super(t),this.file=t.file||"",this[fn]=null,this.on(Uu,r=>{(this[yt]==="begin"||this[fn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Uu,t.ondone):this.on(Uu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||z3,this.filter=typeof t.filter=="function"?t.filter:X3,this.writable=!0,this.readable=!1,this[fr]=new W3,this[pe]=null,this[lr]=null,this[an]=null,this[yt]="begin",this[Lr]="",this[Et]=null,this[ps]=null,this[cn]=!1,this[it]=null,this[Nr]=!1,this[Wu]=!1,this[zu]=!1,this.on("end",()=>this[OD]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[RD](t,r){this[fn]===null&&(this[fn]=!1);let n;try{n=new G3(t,r,this[Et],this[ps])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Wu]?(this[zu]=!0,this[yt]==="begin"&&(this[yt]="header"),this[ln]("eof")):(this[Wu]=!0,this[ln]("nullBlock"));else if(this[Wu]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[an]=new Y3(n,this[Et],this[ps]);if(!this[fn])if(s.remain){let o=()=>{s.invalid||(this[fn]=!0)};s.on("end",o)}else this[fn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[ln]("ignoredEntry",s),this[yt]="ignore",s.resume()):s.size>0&&(this[Lr]="",s.on("data",o=>this[Lr]+=o),this[yt]="meta"):(this[Et]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[ln]("ignoredEntry",s),this[yt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[yt]="body":(this[yt]="header",s.end()),this[lr]?this[fr].push(s):(this[fr].push(s),this[np]())))}}}[OD](){K3(()=>this.emit("close"))}[wD](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[lr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[np]()),r=!1)):(this[lr]=null,r=!1),r}[np](){do;while(this[wD](this[fr].shift()));if(!this[fr].length){let t=this[lr];!t||t.flowing||t.size===t.remain?this[ds]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[ip](t,r){let n=this[an],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[yt]="header",this[an]=null,n.end()),s.length}[FD](t,r){let n=this[an],i=this[ip](t,r);return this[an]||this[CD](n),i}[ln](t,r,n){!this[fr].length&&!this[lr]?this.emit(t,r,n):this[fr].push([t,r,n])}[CD](t){switch(this[ln]("meta",this[Lr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[Et]=xD.parse(this[Lr],this[Et],!1);break;case"GlobalExtendedHeader":this[ps]=xD.parse(this[Lr],this[ps],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Et]=this[Et]||Object.create(null),this[Et].path=this[Lr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Et]=this[Et]||Object.create(null),this[Et].linkpath=this[Lr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Nr]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[Nr])return;if(this[it]===null&&t){if(this[pe]&&(t=Buffer.concat([this[pe],t]),this[pe]=null),t.length<rp.length)return this[pe]=t,!0;for(let n=0;this[it]===null&&n<rp.length;n++)t[n]!==rp[n]&&(this[it]=!1);if(this[it]===null){let n=this[cn];this[cn]=!1,this[it]=new V3.Unzip,this[it].on("data",s=>this[$u](s)),this[it].on("error",s=>this.abort(s)),this[it].on("end",s=>{this[cn]=!0,this[$u]()}),this[ds]=!0;let i=this[it][n?"end":"write"](t);return this[ds]=!1,i}}this[ds]=!0,this[it]?this[it].write(t):this[$u](t),this[ds]=!1;let r=this[fr].length?!1:this[lr]?this[lr].flowing:!0;return!r&&!this[fr].length&&this[lr].once("drain",n=>this.emit("drain")),r}[sp](t){t&&!this[Nr]&&(this[pe]=this[pe]?Buffer.concat([this[pe],t]):t)}[op](){if(this[cn]&&!this[SD]&&!this[Nr]&&!this[Gu]){this[SD]=!0;let t=this[an];if(t&&t.blockRemain){let r=this[pe]?this[pe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[pe]&&t.write(this[pe]),t.end()}this[ln](Uu)}}[$u](t){if(this[Gu])this[sp](t);else if(!t&&!this[pe])this[op]();else{if(this[Gu]=!0,this[pe]){this[sp](t);let r=this[pe];this[pe]=null,this[Hu](r)}else this[Hu](t);for(;this[pe]&&this[pe].length>=512&&!this[Nr]&&!this[zu];){let r=this[pe];this[pe]=null,this[Hu](r)}this[Gu]=!1}(!this[pe]||this[cn])&&this[op]()}[Hu](t){let r=0,n=t.length;for(;r+512<=n&&!this[Nr]&&!this[zu];)switch(this[yt]){case"begin":case"header":this[RD](t,r),r+=512;break;case"ignore":case"body":r+=this[ip](t,r);break;case"meta":r+=this[FD](t,r);break;default:throw new Error("invalid state: "+this[yt])}r<n&&(this[pe]?this[pe]=Buffer.concat([t.slice(r),this[pe]]):this[pe]=t.slice(r))}end(t){this[Nr]||(this[it]?this[it].end(t):(this[cn]=!0,this.write(t)))}})});var Vu=g((tN,ID)=>{"use strict";var Z3=Qn(),BD=Yu(),yi=require("fs"),J3=gi(),kD=require("path"),up=ui();ID.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=Z3(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&eB(n,t),n.noResume||Q3(n),n.file&&n.sync?tB(n):n.file?rB(n,r):PD(n)};var Q3=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},eB=(e,t)=>{let r=new Map(t.map(s=>[up(s),!0])),n=e.filter,i=(s,o)=>{let u=o||kD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(kD.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(up(s)):s=>i(up(s))},tB=e=>{let t=PD(e),r=e.file,n=!0,i;try{let s=yi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(yi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(i=yi.openSync(r,"r");u<s.size;){let c=yi.readSync(i,a,0,o,u);u+=c,t.write(a.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{yi.closeSync(i)}catch{}}},rB=(e,t)=>{let r=new BD(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),yi.stat(i,(a,c)=>{if(a)u(a);else{let l=new J3.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},PD=e=>new BD(e)});var $D=g((rN,jD)=>{"use strict";var nB=Qn(),Ku=Bu(),LD=gi(),ND=Vu(),MD=require("path");jD.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=nB(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?iB(n,t):n.file?sB(n,t,r):n.sync?oB(n,t):uB(n,t)};var iB=(e,t)=>{let r=new Ku.Sync(e),n=new LD.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),qD(r,t)},sB=(e,t,r)=>{let n=new Ku(e),i=new LD.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,u)=>{i.on("error",u),i.on("close",o),n.on("error",u)});return ap(n,t),r?s.then(r,r):s},qD=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?ND({file:MD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},ap=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return ND({file:MD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>ap(e,t));e.add(r)}e.end()},oB=(e,t)=>{let r=new Ku.Sync(e);return qD(r,t),r},uB=(e,t)=>{let r=new Ku(e);return ap(r,t),r}});var cp=g((nN,VD)=>{"use strict";var aB=Qn(),HD=Bu(),lt=require("fs"),GD=gi(),UD=Vu(),WD=require("path"),zD=oi();VD.exports=(e,t,r)=>{let n=aB(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?cB(n,t):fB(n,t,r)};var cB=(e,t)=>{let r=new HD.Sync(e),n=!0,i,s;try{try{i=lt.openSync(e.file,"r+")}catch(a){if(a.code==="ENOENT")i=lt.openSync(e.file,"w+");else throw a}let o=lt.fstatSync(i),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=lt.readSync(i,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 zD(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(a.path,a.mtime)}n=!1,lB(e,r,s,i,t)}finally{if(n)try{lt.closeSync(i)}catch{}}},lB=(e,t,r,n,i)=>{let s=new GD.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),hB(t,i)},fB=(e,t,r)=>{t=Array.from(t);let n=new HD(e),i=(o,u,a)=>{let c=(E,m)=>{E?lt.close(o,D=>a(E)):a(null,m)},l=0;if(u===0)return c(null,0);let f=0,p=Buffer.alloc(512),_=(E,m)=>{if(E)return c(E);if(f+=m,f<512&&m)return lt.read(o,p,f,p.length-f,l+f,_);if(l===0&&p[0]===31&&p[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let D=new zD(p);if(!D.cksumValid)return c(null,l);let A=512*Math.ceil(D.size/512);if(l+A+512>u||(l+=A+512,l>=u))return c(null,l);e.mtimeCache&&e.mtimeCache.set(D.path,D.mtime),f=0,lt.read(o,p,0,512,l,_)};lt.read(o,p,0,512,l,_)},s=new Promise((o,u)=>{n.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",lt.open(e.file,a,c);if(l)return u(l);lt.fstat(f,(p,_)=>{if(p)return lt.close(f,()=>u(p));i(f,_.size,(E,m)=>{if(E)return u(E);let D=new GD.WriteStream(e.file,{fd:f,start:m});n.pipe(D),D.on("error",u),D.on("close",o),YD(n,t)})})};lt.open(e.file,a,c)});return r?s.then(r,r):s},hB=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?UD({file:WD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},YD=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return UD({file:WD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>YD(e,t));e.add(r)}e.end()}});var XD=g((iN,KD)=>{"use strict";var pB=Qn(),dB=cp();KD.exports=(e,t,r)=>{let n=pB(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),mB(n),dB(n,t,r)};var mB=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var QD=g((sN,JD)=>{var{promisify:ZD}=require("util"),Mr=require("fs"),gB=e=>{if(!e)e={mode:511,fs:Mr};else if(typeof e=="object")e={mode:511,fs:Mr,...e};else if(typeof e=="number")e={mode:e,fs:Mr};else if(typeof e=="string")e={mode:parseInt(e,8),fs:Mr};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||Mr.mkdir,e.mkdirAsync=ZD(e.mkdir),e.stat=e.stat||e.fs.stat||Mr.stat,e.statAsync=ZD(e.stat),e.statSync=e.statSync||e.fs.statSync||Mr.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||Mr.mkdirSync,e};JD.exports=gB});var t2=g((oN,e2)=>{var yB=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:EB,parse:bB}=require("path"),_B=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=EB(e),yB==="win32"){let t=/[*|"<>?:]/,{root:r}=bB(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};e2.exports=_B});var o2=g((uN,s2)=>{var{dirname:r2}=require("path"),n2=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?n2(e,r2(t),t):void 0),i2=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?i2(e,r2(t),t):void 0}};s2.exports={findMade:n2,findMadeSync:i2}});var hp=g((aN,a2)=>{var{dirname:u2}=require("path"),lp=(e,t,r)=>{t.recursive=!1;let n=u2(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return lp(n,t).then(s=>lp(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},fp=(e,t,r)=>{let n=u2(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return fp(e,t,fp(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};a2.exports={mkdirpManual:lp,mkdirpManualSync:fp}});var f2=g((cN,l2)=>{var{dirname:c2}=require("path"),{findMade:DB,findMadeSync:AB}=o2(),{mkdirpManual:vB,mkdirpManualSync:xB}=hp(),wB=(e,t)=>(t.recursive=!0,c2(e)===e?t.mkdirAsync(e,t):DB(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return vB(e,t);throw i}))),CB=(e,t)=>{if(t.recursive=!0,c2(e)===e)return t.mkdirSync(e,t);let n=AB(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return xB(e,t);throw i}};l2.exports={mkdirpNative:wB,mkdirpNativeSync:CB}});var m2=g((lN,d2)=>{var h2=require("fs"),SB=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,pp=SB.replace(/^v/,"").split("."),p2=+pp[0]>10||+pp[0]==10&&+pp[1]>=12,FB=p2?e=>e.mkdir===h2.mkdir:()=>!1,RB=p2?e=>e.mkdirSync===h2.mkdirSync:()=>!1;d2.exports={useNative:FB,useNativeSync:RB}});var D2=g((fN,_2)=>{var Ei=QD(),bi=t2(),{mkdirpNative:g2,mkdirpNativeSync:y2}=f2(),{mkdirpManual:E2,mkdirpManualSync:b2}=hp(),{useNative:OB,useNativeSync:TB}=m2(),_i=(e,t)=>(e=bi(e),t=Ei(t),OB(t)?g2(e,t):E2(e,t)),kB=(e,t)=>(e=bi(e),t=Ei(t),TB(t)?y2(e,t):b2(e,t));_i.sync=kB;_i.native=(e,t)=>g2(bi(e),Ei(t));_i.manual=(e,t)=>E2(bi(e),Ei(t));_i.nativeSync=(e,t)=>y2(bi(e),Ei(t));_i.manualSync=(e,t)=>b2(bi(e),Ei(t));_2.exports=_i});var F2=g((hN,S2)=>{"use strict";var bt=require("fs"),hn=require("path"),BB=bt.lchown?"lchown":"chown",PB=bt.lchownSync?"lchownSync":"chownSync",v2=bt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),A2=(e,t,r)=>{try{return bt[PB](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},IB=(e,t,r)=>{try{return bt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},LB=v2?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):bt.chown(e,t,r,n)}:(e,t,r,n)=>n,dp=v2?(e,t,r)=>{try{return A2(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;IB(e,t,r)}}:(e,t,r)=>A2(e,t,r),NB=process.version,x2=(e,t,r)=>bt.readdir(e,t,r),MB=(e,t)=>bt.readdirSync(e,t);/^v4\./.test(NB)&&(x2=(e,t,r)=>bt.readdir(e,r));var Xu=(e,t,r,n)=>{bt[BB](e,t,r,LB(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},w2=(e,t,r,n,i)=>{if(typeof t=="string")return bt.lstat(hn.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,w2(e,o,r,n,i)});if(t.isDirectory())mp(hn.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=hn.resolve(e,t.name);Xu(o,r,n,i)});else{let s=hn.resolve(e,t.name);Xu(s,r,n,i)}},mp=(e,t,r,n)=>{x2(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return Xu(e,t,r,n);let o=s.length,u=null,a=c=>{if(!u){if(c)return n(u=c);if(--o===0)return Xu(e,t,r,n)}};s.forEach(c=>w2(e,c,t,r,a))})},qB=(e,t,r,n)=>{if(typeof t=="string")try{let i=bt.lstatSync(hn.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&C2(hn.resolve(e,t.name),r,n),dp(hn.resolve(e,t.name),r,n)},C2=(e,t,r)=>{let n;try{n=MB(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return dp(e,t,r);throw i}return n&&n.length&&n.forEach(i=>qB(e,i,t,r)),dp(e,t,r)};S2.exports=mp;mp.sync=C2});var k2=g((pN,gp)=>{"use strict";var R2=D2(),_t=require("fs"),Zu=require("path"),O2=F2(),Ft=ii(),Ju=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},Qu=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},ea=(e,t)=>e.get(Ft(t)),ms=(e,t,r)=>e.set(Ft(t),r),jB=(e,t)=>{_t.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new Qu(e,r&&r.code||"ENOTDIR")),t(r)})};gp.exports=(e,t,r)=>{e=Ft(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,u=t.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==t.processUid||u!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,p=Ft(t.cwd),_=(D,A)=>{D?r(D):(ms(f,e,!0),A&&a?O2(A,o,u,R=>_(R)):s?_t.chmod(e,i,r):r())};if(f&&ea(f,e)===!0)return _();if(e===p)return jB(e,_);if(c)return R2(e,{mode:i}).then(D=>_(null,D),_);let m=Ft(Zu.relative(p,e)).split("/");ta(p,m,i,f,l,p,null,_)};var ta=(e,t,r,n,i,s,o,u)=>{if(!t.length)return u(null,o);let a=t.shift(),c=Ft(Zu.resolve(e+"/"+a));if(ea(n,c))return ta(c,t,r,n,i,s,o,u);_t.mkdir(c,r,T2(c,t,r,n,i,s,o,u))},T2=(e,t,r,n,i,s,o,u)=>a=>{a?_t.lstat(e,(c,l)=>{if(c)c.path=c.path&&Ft(c.path),u(c);else if(l.isDirectory())ta(e,t,r,n,i,s,o,u);else if(i)_t.unlink(e,f=>{if(f)return u(f);_t.mkdir(e,r,T2(e,t,r,n,i,s,o,u))});else{if(l.isSymbolicLink())return u(new Ju(e,e+"/"+t.join("/")));u(a)}}):(o=o||e,ta(e,t,r,n,i,s,o,u))},$B=e=>{let t=!1,r="ENOTDIR";try{t=_t.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new Qu(e,r)}};gp.exports.sync=(e,t)=>{e=Ft(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),a=t.preserve,c=t.unlink,l=t.cache,f=Ft(t.cwd),p=D=>{ms(l,e,!0),D&&u&&O2.sync(D,s,o),i&&_t.chmodSync(e,n)};if(l&&ea(l,e)===!0)return p();if(e===f)return $B(f),p();if(a)return p(R2.sync(e,n));let E=Ft(Zu.relative(f,e)).split("/"),m=null;for(let D=E.shift(),A=f;D&&(A+="/"+D);D=E.shift())if(A=Ft(Zu.resolve(A)),!ea(l,A))try{_t.mkdirSync(A,n),m=m||A,ms(l,A,!0)}catch{let M=_t.lstatSync(A);if(M.isDirectory()){ms(l,A,!0);continue}else if(c){_t.unlinkSync(A),_t.mkdirSync(A,n),m=m||A,ms(l,A,!0);continue}else if(M.isSymbolicLink())return new Ju(A,A+"/"+E.join("/"))}return p(m)}});var Ep=g((dN,B2)=>{var yp=Object.create(null),{hasOwnProperty:HB}=Object.prototype;B2.exports=e=>(HB.call(yp,e)||(yp[e]=e.normalize("NFKD")),yp[e])});var N2=g((mN,L2)=>{var P2=require("assert"),GB=Ep(),UB=ui(),{join:I2}=require("path"),WB=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,zB=WB==="win32";L2.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,p)=>(f.length&&(p=I2(f[f.length-1],p)),f.push(p||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(p=>p[0]===c)&&f.every(p=>p[0]instanceof Set&&p[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>u(c)),!0),u=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=t.get(c),p=new Set;return l.forEach(_=>{let E=e.get(_);P2.equal(E[0],c),E.length===1?e.delete(_):(E.shift(),typeof E[0]=="function"?p.add(E[0]):E[0].forEach(m=>p.add(m)))}),f.forEach(_=>{let E=e.get(_);P2(E[0]instanceof Set),E[0].size===1&&E.length===1?e.delete(_):E[0].size===1?(E.shift(),p.add(E[0])):E[0].delete(c)}),n.delete(c),p.forEach(_=>o(_)),!0};return{check:s,reserve:(c,l)=>{c=zB?["win32 parallelization disabled"]:c.map(p=>GB(UB(I2(p))).toLowerCase());let f=new Set(c.map(p=>r(p)).reduce((p,_)=>p.concat(_)));return t.set(l,{dirs:f,paths:c}),c.forEach(p=>{let _=e.get(p);_?_.push(l):e.set(p,[l])}),f.forEach(p=>{let _=e.get(p);_?_[_.length-1]instanceof Set?_[_.length-1].add(l):_.push(new Set([l])):e.set(p,[new Set([l])])}),o(l)}}}});var j2=g((gN,q2)=>{var YB=process.env.__FAKE_PLATFORM__||process.platform,VB=YB==="win32",KB=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:XB,O_TRUNC:ZB,O_WRONLY:JB,UV_FS_O_FILEMAP:M2=0}=KB.constants,QB=VB&&!!M2,eP=512*1024,tP=M2|ZB|XB|JB;q2.exports=QB?e=>e<eP?tP:"w":()=>"w"});var Sp=g((yN,eA)=>{"use strict";var rP=require("assert"),nP=Yu(),te=require("fs"),iP=gi(),hr=require("path"),Z2=k2(),$2=Ch(),sP=N2(),oP=Sh(),ft=ii(),uP=ui(),aP=Ep(),H2=Symbol("onEntry"),Dp=Symbol("checkFs"),G2=Symbol("checkFs2"),ia=Symbol("pruneCache"),Ap=Symbol("isReusable"),Dt=Symbol("makeFs"),vp=Symbol("file"),xp=Symbol("directory"),sa=Symbol("link"),U2=Symbol("symlink"),W2=Symbol("hardlink"),z2=Symbol("unsupported"),Y2=Symbol("checkPath"),qr=Symbol("mkdir"),We=Symbol("onError"),ra=Symbol("pending"),V2=Symbol("pend"),Di=Symbol("unpend"),bp=Symbol("ended"),_p=Symbol("maybeClose"),wp=Symbol("skip"),gs=Symbol("doChown"),ys=Symbol("uid"),Es=Symbol("gid"),bs=Symbol("checkedCwd"),J2=require("crypto"),Q2=j2(),cP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,_s=cP==="win32",lP=(e,t)=>{if(!_s)return te.unlink(e,t);let r=e+".DELETE."+J2.randomBytes(16).toString("hex");te.rename(e,r,n=>{if(n)return t(n);te.unlink(r,t)})},fP=e=>{if(!_s)return te.unlinkSync(e);let t=e+".DELETE."+J2.randomBytes(16).toString("hex");te.renameSync(e,t),te.unlinkSync(t)},K2=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,X2=e=>aP(uP(ft(e))).toLowerCase(),hP=(e,t)=>{t=X2(t);for(let r of e.keys()){let n=X2(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},pP=e=>{for(let t of e.keys())e.delete(t)},Ds=class extends nP{constructor(t){if(t||(t={}),t.ondone=r=>{this[bp]=!0,this[_p]()},super(t),this[bs]=!1,this.reservations=sP(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[ra]=0,this[bp]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||_s,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=ft(hr.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[H2](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[_p](){this[bp]&&this[ra]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Y2](t){if(this.strip){let r=ft(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=ft(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=ft(t.path),n=r.split("/");if(n.includes("..")||_s&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=oP(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(hr.isAbsolute(t.path)?t.absolute=ft(hr.resolve(t.path)):t.absolute=ft(hr.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:ft(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=hr.win32.parse(t.absolute);t.absolute=r+$2.encode(t.absolute.slice(r.length));let{root:n}=hr.win32.parse(t.path);t.path=n+$2.encode(t.path.slice(n.length))}return!0}[H2](t){if(!this[Y2](t))return t.resume();switch(rP.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Dp](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[z2](t)}}[We](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Di](),r.resume())}[qr](t,r,n){Z2(ft(t),{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},n)}[gs](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ys](t){return K2(this.uid,t.uid,this.processUid)}[Es](t){return K2(this.gid,t.gid,this.processGid)}[vp](t,r){let n=t.mode&4095||this.fmode,i=new iP.WriteStream(t.absolute,{flags:Q2(t.size),mode:n,autoClose:!1});i.on("error",a=>{i.fd&&te.close(i.fd,()=>{}),i.write=()=>!0,this[We](a,t),r()});let s=1,o=a=>{if(a){i.fd&&te.close(i.fd,()=>{}),this[We](a,t),r();return}--s===0&&te.close(i.fd,c=>{c?this[We](c,t):this[Di](),r()})};i.on("finish",a=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,p=t.mtime;te.futimes(l,f,p,_=>_?te.utimes(c,f,p,E=>o(E&&_)):o())}if(this[gs](t)){s++;let f=this[ys](t),p=this[Es](t);te.fchown(l,f,p,_=>_?te.chown(c,f,p,E=>o(E&&_)):o())}o()});let u=this.transform&&this.transform(t)||t;u!==t&&(u.on("error",a=>{this[We](a,t),r()}),t.pipe(u)),u.pipe(i)}[xp](t,r){let n=t.mode&4095||this.dmode;this[qr](t.absolute,n,i=>{if(i){this[We](i,t),r();return}let s=1,o=u=>{--s===0&&(r(),this[Di](),t.resume())};t.mtime&&!this.noMtime&&(s++,te.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[gs](t)&&(s++,te.chown(t.absolute,this[ys](t),this[Es](t),o)),o()})}[z2](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[U2](t,r){this[sa](t,t.linkpath,"symlink",r)}[W2](t,r){let n=ft(hr.resolve(this.cwd,t.linkpath));this[sa](t,n,"link",r)}[V2](){this[ra]++}[Di](){this[ra]--,this[_p]()}[wp](t){this[Di](),t.resume()}[Ap](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!_s}[Dp](t){this[V2]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[G2](t,n))}[ia](t){t.type==="SymbolicLink"?pP(this.dirCache):t.type!=="Directory"&&hP(this.dirCache,t.absolute)}[G2](t,r){this[ia](t);let n=u=>{this[ia](t),r(u)},i=()=>{this[qr](this.cwd,this.dmode,u=>{if(u){this[We](u,t),n();return}this[bs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let u=ft(hr.dirname(t.absolute));if(u!==this.cwd)return this[qr](u,this.dmode,a=>{if(a){this[We](a,t),n();return}o()})}o()},o=()=>{te.lstat(t.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>t.mtime)){this[wp](t),n();return}if(u||this[Ap](t,a))return this[Dt](null,t,n);if(a.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(a.mode&4095)!==t.mode,l=f=>this[Dt](f,t,n);return c?te.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return te.rmdir(t.absolute,c=>this[Dt](c,t,n))}if(t.absolute===this.cwd)return this[Dt](null,t,n);lP(t.absolute,c=>this[Dt](c,t,n))})};this[bs]?s():i()}[Dt](t,r,n){if(t){this[We](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[vp](r,n);case"Link":return this[W2](r,n);case"SymbolicLink":return this[U2](r,n);case"Directory":case"GNUDumpDir":return this[xp](r,n)}}[sa](t,r,n,i){te[n](r,t.absolute,s=>{s?this[We](s,t):(this[Di](),t.resume()),i()})}},na=e=>{try{return[null,e()]}catch(t){return[t,null]}},Cp=class extends Ds{[Dt](t,r){return super[Dt](t,r,()=>{})}[Dp](t){if(this[ia](t),!this[bs]){let s=this[qr](this.cwd,this.dmode);if(s)return this[We](s,t);this[bs]=!0}if(t.absolute!==this.cwd){let s=ft(hr.dirname(t.absolute));if(s!==this.cwd){let o=this[qr](s,this.dmode);if(o)return this[We](o,t)}}let[r,n]=na(()=>te.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[wp](t);if(r||this[Ap](t,n))return this[Dt](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[u]=o?na(()=>{te.chmodSync(t.absolute,t.mode)}):[];return this[Dt](u,t)}let[s]=na(()=>te.rmdirSync(t.absolute));this[Dt](s,t)}let[i]=t.absolute===this.cwd?[]:na(()=>fP(t.absolute));this[Dt](i,t)}[vp](t,r){let n=t.mode&4095||this.fmode,i=u=>{let a;try{te.closeSync(s)}catch(c){a=c}(u||a)&&this[We](u||a,t),r()},s;try{s=te.openSync(t.absolute,Q2(t.size),n)}catch(u){return i(u)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",u=>this[We](u,t)),t.pipe(o)),o.on("data",u=>{try{te.writeSync(s,u,0,u.length)}catch(a){i(a)}}),o.on("end",u=>{let a=null;if(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{te.futimesSync(s,c,l)}catch(f){try{te.utimesSync(t.absolute,c,l)}catch{a=f}}}if(this[gs](t)){let c=this[ys](t),l=this[Es](t);try{te.fchownSync(s,c,l)}catch(f){try{te.chownSync(t.absolute,c,l)}catch{a=a||f}}}i(a)})}[xp](t,r){let n=t.mode&4095||this.dmode,i=this[qr](t.absolute,n);if(i){this[We](i,t),r();return}if(t.mtime&&!this.noMtime)try{te.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[gs](t))try{te.chownSync(t.absolute,this[ys](t),this[Es](t))}catch{}r(),t.resume()}[qr](t,r){try{return Z2.sync(ft(t),{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(n){return n}}[sa](t,r,n,i){try{te[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[We](s,t)}}};Ds.Sync=Cp;eA.exports=Ds});var sA=g((EN,iA)=>{"use strict";var dP=Qn(),oa=Sp(),rA=require("fs"),nA=gi(),tA=require("path"),Fp=ui();iA.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=dP(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&mP(n,t),n.file&&n.sync?gP(n):n.file?yP(n,r):n.sync?EP(n):bP(n)};var mP=(e,t)=>{let r=new Map(t.map(s=>[Fp(s),!0])),n=e.filter,i=(s,o)=>{let u=o||tA.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(tA.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(Fp(s)):s=>i(Fp(s))},gP=e=>{let t=new oa.Sync(e),r=e.file,n=rA.statSync(r),i=e.maxReadSize||16*1024*1024;new nA.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},yP=(e,t)=>{let r=new oa(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),rA.stat(i,(a,c)=>{if(a)u(a);else{let l=new nA.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},EP=e=>new oa.Sync(e),bP=e=>new oa(e)});var oA=g(Ce=>{"use strict";Ce.c=Ce.create=$D();Ce.r=Ce.replace=cp();Ce.t=Ce.list=Vu();Ce.u=Ce.update=XD();Ce.x=Ce.extract=sA();Ce.Pack=Bu();Ce.Unpack=Sp();Ce.Parse=Yu();Ce.ReadEntry=gu();Ce.WriteEntry=Nh();Ce.Header=oi();Ce.Pax=Eu();Ce.types=bh()});var dA=g((vN,pA)=>{function At(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}pA.exports=At;At.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};At.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};At.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};At.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};At.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};At.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};At.prototype.start=At.prototype.try;At.prototype.errors=function(){return this._errors};At.prototype.attempts=function(){return this._attempts};At.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var mA=g(pn=>{var xP=dA();pn.operation=function(e){var t=pn.timeouts(e);return new xP(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};pn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};pn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};pn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(a){var c=pn.operation(t),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(e,l)})}.bind(e,o),e[s].options=t}}});var yA=g((wN,gA)=>{gA.exports=mA()});var bA=g((CN,EA)=>{var wP=yA();function CP(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=wP.operation(s);function u(l){i(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=e(u,l)}catch(p){a(p,l);return}Promise.resolve(f).then(n).catch(function(_){a(_,l)})}o.attempt(c)}return new Promise(r)}EA.exports=CP});var zA=Y(require("http")),YA=Y(require("https")),VA=Y(require("picocolors")),Le=require("commander");var hv=Y(i0());function Da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(e){return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function Aa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function va(e,t){if(t&&(xi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(e)}function $r(e){return $r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$r(e)}function zt(e,t){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zt(e,t)}function xa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zt(e,t)}function wa(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ca(){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 gn(e,t,r){return Ca()?gn=Reflect.construct.bind():gn=function(i,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(i,u),c=new a;return o&&zt(c,o.prototype),c},gn.apply(null,arguments)}function wi(e){var t=typeof Map=="function"?new Map:void 0;return wi=function(n){if(n===null||!wa(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return gn(n,arguments,$r(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zt(i,n)},wi(e)}var Ba=Y(D0()),Os=Y(require("path")),Ts=Y(require("fs-extra")),pv=function(e){xa(t,e);function t(r){var n;return Da(this,t),n=va(this,$r(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(wi(Error));function dv(e,t){try{var r=Ts.default.readJsonSync(Os.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function mv(e){try{var t=Ts.default.readJsonSync(Os.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function gv(e){var t=Ts.default.existsSync(Os.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function A0(e){var t={current:void 0},r=(0,Ba.sync)(function(n){return[mv(n),dv(n,t),gv(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new pv(e);return r===void 0?t.current:r}var yv=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ev=/[\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]/,bv=/[\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]/,Pa={Space_Separator:yv,ID_Start:Ev,ID_Continue:bv},be={isSpaceSeparator(e){return typeof e=="string"&&Pa.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Pa.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Pa.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},La,Ye,Vt,Bs,mr,wt,Se,qa,Si,_v=function(t,r){La=String(t),Ye="start",Vt=[],Bs=0,mr=1,wt=0,Se=void 0,qa=void 0,Si=void 0;do Se=Dv(),xv[Ye]();while(Se.type!=="eof");return typeof r=="function"?Na({"":Si},"",r):Si};function Na(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=Na(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=Na(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var Z,K,Ci,Yt,Q;function Dv(){for(Z="default",K="",Ci=!1,Yt=1;;){Q=Kt();let e=x0[Z]();if(e)return e}}function Kt(){if(La[Bs])return String.fromCodePoint(La.codePointAt(Bs))}function S(){let e=Kt();return e===`
|
|
26
|
-
`?(mr++,wt=0):e?wt+=e.length:wt++,e&&(Bs+=e.length),e}var
|
|
27
|
-
`:case"\r":case"\u2028":case"\u2029":S();return;case"/":S(),Z="comment";return;case void 0:return S(),le("eof")}if(be.isSpaceSeparator(Q)){S();return}return
|
|
28
|
-
`:case"\r":case"\u2028":case"\u2029":S(),Z="default";return;case void 0:return S(),le("eof")}S()},value(){switch(Q){case"{":case"[":return le("punctuator",S());case"n":return S(),Hr("ull"),le("null",null);case"t":return S(),Hr("rue"),le("boolean",!0);case"f":return S(),Hr("alse"),le("boolean",!1);case"-":case"+":S()==="-"&&(Yt=-1),Z="sign";return;case".":K=S(),Z="decimalPointLeading";return;case"0":K=S(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":K=S(),Z="decimalInteger";return;case"I":return S(),Hr("nfinity"),le("numeric",1/0);case"N":return S(),Hr("aN"),le("numeric",NaN);case'"':case"'":Ci=S()==='"',K="",Z="string";return}throw fe(S())},identifierNameStartEscape(){if(Q!=="u")throw fe(S());S();let e=
|
|
29
|
-
`:case"\r":throw fe(S());case"\u2028":case"\u2029":
|
|
30
|
-
`;case"r":return S(),"\r";case"t":return S()," ";case"v":return S(),"\v";case"0":if(S(),be.isDigit(Kt()))throw fe(S());return"\0";case"x":return S(),
|
|
21
|
+
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}});var Ob=g((uL,Ji)=>{"use strict";var Zi=require("path"),Fb=Rf(),Rb=e=>{e={cwd:process.cwd(),path:process.env[Fb()],execPath:process.execPath,...e};let t,r=Zi.resolve(e.cwd),n=[];for(;t!==r;)n.push(Zi.join(r,"node_modules/.bin")),t=r,r=Zi.resolve(r,"..");let i=Zi.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(Zi.delimiter)};Ji.exports=Rb;Ji.exports.default=Rb;Ji.exports.env=e=>{e={env:process.env,...e};let t={...e.env},r=Fb({env:t});return e.path=t[r],t[r]=Ji.exports(e),t}});var Tb=g(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.SIGNALS=void 0;var ET=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ko.SIGNALS=ET});var Nf=g(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.SIGRTMAX=Xn.getRealtimeSignals=void 0;var bT=function(){let e=Bb-kb+1;return Array.from({length:e},_T)};Xn.getRealtimeSignals=bT;var _T=function(e,t){return{name:`SIGRT${t+1}`,number:kb+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},kb=34,Bb=64;Xn.SIGRTMAX=Bb});var Pb=g(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.getSignals=void 0;var DT=require("os"),AT=Tb(),vT=Nf(),xT=function(){let e=(0,vT.getRealtimeSignals)();return[...AT.SIGNALS,...e].map(wT)};Xo.getSignals=xT;var wT=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[e]:o}}=DT.constants,u=o!==void 0;return{name:e,number:u?o:t,description:r,supported:u,action:n,forced:i,standard:s}}});var Lb=g(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.signalsByNumber=Zn.signalsByName=void 0;var CT=require("os"),Ib=Pb(),ST=Nf(),FT=function(){return(0,Ib.getSignals)().reduce(RT,{})},RT=function(e,{name:t,number:r,description:n,supported:i,action:s,forced:o,standard:u}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:s,forced:o,standard:u}}},OT=FT();Zn.signalsByName=OT;var TT=function(){let e=(0,Ib.getSignals)(),t=ST.SIGRTMAX+1,r=Array.from({length:t},(n,i)=>kT(i,e));return Object.assign({},...r)},kT=function(e,t){let r=BT(e,t);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:u,standard:a}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:u,standard:a}}},BT=function(e,t){let r=t.find(({name:n})=>CT.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},PT=TT();Zn.signalsByNumber=PT});var Mb=g((hL,Nb)=>{"use strict";var{signalsByName:IT}=Lb(),LT=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",NT=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let p=i===void 0?void 0:IT[i].description,_=n&&n.code,m=`Command ${LT({timedOut:a,timeout:f,errorCode:_,signal:i,signalDescription:p,exitCode:s,isCanceled:c})}: ${o}`,A=Object.prototype.toString.call(n)==="[object Error]",D=A?`${m}
|
|
22
|
+
${n.message}`:m,R=[D,t,e].filter(Boolean).join(`
|
|
23
|
+
`);return A?(n.originalMessage=n.message,n.message=R):n=new Error(R),n.shortMessage=D,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=l&&!a,n};Nb.exports=NT});var jb=g((pL,Mf)=>{"use strict";var Zo=["stdin","stdout","stderr"],MT=e=>Zo.some(t=>e[t]!==void 0),qb=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Zo.map(n=>e[n]);if(MT(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Zo.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Zo.length);return Array.from({length:r},(n,i)=>t[i])};Mf.exports=qb;Mf.exports.node=e=>{let t=qb(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var Hb=g((dL,$b)=>{"use strict";var qT=require("os"),jT=tf(),$T=1e3*5,HT=(e,t="SIGTERM",r={})=>{let n=e(t);return GT(e,t,r,n),n},GT=(e,t,r,n)=>{if(!UT(t,r,n))return;let i=zT(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},UT=(e,{forceKillAfterTimeout:t},r)=>WT(e)&&t!==!1&&r,WT=e=>e===qT.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",zT=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return $T;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},YT=(e,t)=>{e.kill()&&(t.isCanceled=!0)},VT=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},KT=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{VT(e,r,a)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},XT=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},ZT=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=jT(()=>{e.kill()});return n.finally(()=>{i()})};$b.exports={spawnedKill:HT,spawnedCancel:YT,setupTimeout:KT,validateTimeout:XT,setExitHandler:ZT}});var Ub=g((mL,Gb)=>{"use strict";var It=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";It.writable=e=>It(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";It.readable=e=>It(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";It.duplex=e=>It.writable(e)&&It.readable(e);It.transform=e=>It.duplex(e)&&typeof e._transform=="function";Gb.exports=It});var zb=g((gL,Wb)=>{"use strict";var{PassThrough:JT}=require("stream");Wb.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new JT({objectMode:i});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),i?o=u.length:o+=a.length}),s.getBufferedValue=()=>t?u:n?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Yb=g((yL,Qi)=>{"use strict";var{constants:QT}=require("buffer"),ek=require("stream"),{promisify:tk}=require("util"),rk=zb(),nk=tk(ek.pipeline),Jo=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function qf(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=rk(t);return await new Promise((i,s)=>{let o=u=>{u&&n.getBufferedLength()<=QT.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)};(async()=>{try{await nk(e,n),i()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Jo)})}),n.getBufferedValue()}Qi.exports=qf;Qi.exports.buffer=(e,t)=>qf(e,{...t,encoding:"buffer"});Qi.exports.array=(e,t)=>qf(e,{...t,array:!0});Qi.exports.MaxBufferError=Jo});var Kb=g((EL,Vb)=>{"use strict";var{PassThrough:ik}=require("stream");Vb.exports=function(){var e=[],t=new ik({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var Qb=g((bL,Jb)=>{"use strict";var Zb=Ub(),Xb=Yb(),sk=Kb(),ok=(e,t)=>{t===void 0||e.stdin===void 0||(Zb(t)?t.pipe(e.stdin):e.stdin.end(t))},uk=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=sk();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},jf=async(e,t)=>{if(e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},$f=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?Xb(e,{encoding:t,maxBuffer:n}):Xb.buffer(e,{maxBuffer:n})},ak=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=$f(e,{encoding:n,buffer:i,maxBuffer:s}),a=$f(t,{encoding:n,buffer:i,maxBuffer:s}),c=$f(r,{encoding:n,buffer:i,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},jf(e,u),jf(t,a),jf(r,c)])}},ck=({input:e})=>{if(Zb(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};Jb.exports={handleInput:ok,makeAllStream:uk,getSpawnedResult:ak,validateInputSync:ck}});var t_=g((_L,e_)=>{"use strict";var lk=(async()=>{})().constructor.prototype,fk=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(lk,e)]),hk=(e,t)=>{for(let[r,n]of fk){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},pk=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});e_.exports={mergePromise:hk,getSpawnedPromise:pk}});var i_=g((DL,n_)=>{"use strict";var r_=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],dk=/^[\w.-]+$/,mk=/"/g,gk=e=>typeof e!="string"||dk.test(e)?e:`"${e.replace(mk,'\\"')}"`,yk=(e,t)=>r_(e,t).join(" "),Ek=(e,t)=>r_(e,t).map(r=>gk(r)).join(" "),bk=/ +/g,_k=e=>{let t=[];for(let r of e.trim().split(bk)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${r}`:t.push(r)}return t};n_.exports={joinCommand:yk,getEscapedCommand:Ek,parseCommand:_k}});var f_=g((AL,Jn)=>{"use strict";var Dk=require("path"),Hf=require("child_process"),Ak=wb(),vk=Sb(),xk=Ob(),wk=Jl(),Qo=Mb(),o_=jb(),{spawnedKill:Ck,spawnedCancel:Sk,setupTimeout:Fk,validateTimeout:Rk,setExitHandler:Ok}=Hb(),{handleInput:Tk,getSpawnedResult:kk,makeAllStream:Bk,validateInputSync:Pk}=Qb(),{mergePromise:s_,getSpawnedPromise:Ik}=t_(),{joinCommand:u_,parseCommand:a_,getEscapedCommand:c_}=i_(),Lk=1e3*1e3*100,Nk=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...process.env,...e}:e;return r?xk.env({env:s,cwd:n,execPath:i}):s},l_=(e,t,r={})=>{let n=Ak._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Lk,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=Nk(r),r.stdio=o_(r),process.platform==="win32"&&Dk.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},es=(e,t,r)=>typeof t!="string"&&!Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?vk(t):t,eu=(e,t,r)=>{let n=l_(e,t,r),i=u_(e,t),s=c_(e,t);Rk(n.options);let o;try{o=Hf.spawn(n.file,n.args,n.options)}catch(_){let E=new Hf.ChildProcess,m=Promise.reject(Qo({error:_,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return s_(E,m)}let u=Ik(o),a=Fk(o,n.options,u),c=Ok(o,n.options,a),l={isCanceled:!1};o.kill=Ck.bind(null,o.kill.bind(o)),o.cancel=Sk.bind(null,o,l);let p=wk(async()=>{let[{error:_,exitCode:E,signal:m,timedOut:A},D,R,M]=await kk(o,n.options,c),W=es(n.options,D),L=es(n.options,R),X=es(n.options,M);if(_||E!==0||m!==null){let G=Qo({error:_,exitCode:E,signal:m,stdout:W,stderr:L,all:X,command:i,escapedCommand:s,parsed:n,timedOut:A,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return G;throw G}return{command:i,escapedCommand:s,exitCode:0,stdout:W,stderr:L,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Tk(o,n.options.input),o.all=Bk(o,n.options),s_(o,p)};Jn.exports=eu;Jn.exports.sync=(e,t,r)=>{let n=l_(e,t,r),i=u_(e,t),s=c_(e,t);Pk(n.options);let o;try{o=Hf.spawnSync(n.file,n.args,n.options)}catch(c){throw Qo({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=es(n.options,o.stdout,o.error),a=es(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Qo({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Jn.exports.command=(e,t)=>{let[r,...n]=a_(e);return eu(r,n,t)};Jn.exports.commandSync=(e,t)=>{let[r,...n]=a_(e);return eu.sync(r,n,t)};Jn.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=o_.node(r),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return eu(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Qn=g((SL,d_)=>{"use strict";var p_=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"]]);d_.exports=e=>e?Object.keys(e).map(t=>[p_.has(t)?p_.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var uu=g((FL,v_)=>{"use strict";var m_=typeof process=="object"&&process?process:{stdout:null,stderr:null},$k=require("events"),g_=require("stream"),y_=require("string_decoder").StringDecoder,er=Symbol("EOF"),tr=Symbol("maybeEmitEnd"),Sr=Symbol("emittedEnd"),ru=Symbol("emittingEnd"),rs=Symbol("emittedError"),nu=Symbol("closed"),E_=Symbol("read"),iu=Symbol("flush"),b_=Symbol("flushChunk"),tt=Symbol("encoding"),rr=Symbol("decoder"),su=Symbol("flowing"),ns=Symbol("paused"),ei=Symbol("resume"),De=Symbol("buffer"),Lt=Symbol("pipes"),ke=Symbol("bufferLength"),zf=Symbol("bufferPush"),Yf=Symbol("bufferShift"),$e=Symbol("objectMode"),He=Symbol("destroyed"),Vf=Symbol("emitData"),__=Symbol("emitEnd"),Kf=Symbol("emitEnd2"),nr=Symbol("async"),is=e=>Promise.resolve().then(e),D_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Hk=D_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Gk=D_&&Symbol.iterator||Symbol("iterator not implemented"),Uk=e=>e==="end"||e==="finish"||e==="prefinish",Wk=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,zk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),ou=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ei](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Xf=class extends ou{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};v_.exports=class A_ extends g_{constructor(t){super(),this[su]=!1,this[ns]=!1,this[Lt]=[],this[De]=[],this[$e]=t&&t.objectMode||!1,this[$e]?this[tt]=null:this[tt]=t&&t.encoding||null,this[tt]==="buffer"&&(this[tt]=null),this[nr]=t&&!!t.async||!1,this[rr]=this[tt]?new y_(this[tt]):null,this[er]=!1,this[Sr]=!1,this[ru]=!1,this[nu]=!1,this[rs]=null,this.writable=!0,this.readable=!0,this[ke]=0,this[He]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[De]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Lt]})}get bufferLength(){return this[ke]}get encoding(){return this[tt]}set encoding(t){if(this[$e])throw new Error("cannot set encoding in objectMode");if(this[tt]&&t!==this[tt]&&(this[rr]&&this[rr].lastNeed||this[ke]))throw new Error("cannot change encoding");this[tt]!==t&&(this[rr]=t?new y_(t):null,this[De].length&&(this[De]=this[De].map(r=>this[rr].write(r)))),this[tt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[$e]}set objectMode(t){this[$e]=this[$e]||!!t}get async(){return this[nr]}set async(t){this[nr]=this[nr]||!!t}write(t,r,n){if(this[er])throw new Error("write after end");if(this[He])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[nr]?is:s=>s();return!this[$e]&&!Buffer.isBuffer(t)&&(zk(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Wk(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[$e]?(this.flowing&&this[ke]!==0&&this[iu](!0),this.flowing?this.emit("data",t):this[zf](t),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[tt]&&!this[rr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[tt]&&(t=this[rr].write(t)),this.flowing&&this[ke]!==0&&this[iu](!0),this.flowing?this.emit("data",t):this[zf](t),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[He])return null;if(this[ke]===0||t===0||t>this[ke])return this[tr](),null;this[$e]&&(t=null),this[De].length>1&&!this[$e]&&(this.encoding?this[De]=[this[De].join("")]:this[De]=[Buffer.concat(this[De],this[ke])]);let r=this[E_](t||null,this[De][0]);return this[tr](),r}[E_](t,r){return t===r.length||t===null?this[Yf]():(this[De][0]=r.slice(t),r=r.slice(0,t),this[ke]-=t),this.emit("data",r),!this[De].length&&!this[er]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[er]=!0,this.writable=!1,(this.flowing||!this[ns])&&this[tr](),this}[ei](){this[He]||(this[ns]=!1,this[su]=!0,this.emit("resume"),this[De].length?this[iu]():this[er]?this[tr]():this.emit("drain"))}resume(){return this[ei]()}pause(){this[su]=!1,this[ns]=!0}get destroyed(){return this[He]}get flowing(){return this[su]}get paused(){return this[ns]}[zf](t){this[$e]?this[ke]+=1:this[ke]+=t.length,this[De].push(t)}[Yf](){return this[De].length&&(this[$e]?this[ke]-=1:this[ke]-=this[De][0].length),this[De].shift()}[iu](t){do;while(this[b_](this[Yf]()));!t&&!this[De].length&&!this[er]&&this.emit("drain")}[b_](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[He])return;let n=this[Sr];return r=r||{},t===m_.stdout||t===m_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Lt].push(r.proxyErrors?new Xf(this,t,r):new ou(this,t,r)),this[nr]?is(()=>this[ei]()):this[ei]()),t}unpipe(t){let r=this[Lt].find(n=>n.dest===t);r&&(this[Lt].splice(this[Lt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Lt].length&&!this.flowing?this[ei]():t==="readable"&&this[ke]!==0?super.emit("readable"):Uk(t)&&this[Sr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[rs]&&(this[nr]?is(()=>r.call(this,this[rs])):r.call(this,this[rs])),n}get emittedEnd(){return this[Sr]}[tr](){!this[ru]&&!this[Sr]&&!this[He]&&this[De].length===0&&this[er]&&(this[ru]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[nu]&&this.emit("close"),this[ru]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==He&&this[He])return;if(t==="data")return r?this[nr]?is(()=>this[Vf](r)):this[Vf](r):!1;if(t==="end")return this[__]();if(t==="close"){if(this[nu]=!0,!this[Sr]&&!this[He])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[rs]=r;let s=super.emit("error",r);return this[tr](),s}else if(t==="resume"){let s=super.emit("resume");return this[tr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[tr](),i}[Vf](t){for(let n of this[Lt])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[tr](),r}[__](){this[Sr]||(this[Sr]=!0,this.readable=!1,this[nr]?is(()=>this[Kf]()):this[Kf]())}[Kf](){if(this[rr]){let r=this[rr].end();if(r){for(let n of this[Lt])n.dest.write(r);super.emit("data",r)}}for(let r of this[Lt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[$e]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[$e]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[$e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[$e]?Promise.reject(new Error("cannot concat in objectMode")):this[tt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(He,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Hk](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[er])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[er]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(He,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Gk](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[He]?(t?this.emit("error",t):this.emit(He),this):(this[He]=!0,this[De].length=0,this[ke]=0,typeof this.close=="function"&&!this[nu]&&this.close(),t?this.emit("error",t):this.emit(He),this)}static isStream(t){return!!t&&(t instanceof A_||t instanceof g_||t instanceof $k&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var w_=g((RL,x_)=>{var Yk=require("zlib").constants||{ZLIB_VERNUM:4736};x_.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},Yk))});var rh=g((OL,P_)=>{"use strict";var C_=typeof process=="object"&&process?process:{stdout:null,stderr:null},Vk=require("events"),S_=require("stream"),F_=require("string_decoder").StringDecoder,ir=Symbol("EOF"),sr=Symbol("maybeEmitEnd"),Fr=Symbol("emittedEnd"),au=Symbol("emittingEnd"),ss=Symbol("emittedError"),cu=Symbol("closed"),R_=Symbol("read"),lu=Symbol("flush"),O_=Symbol("flushChunk"),rt=Symbol("encoding"),or=Symbol("decoder"),fu=Symbol("flowing"),os=Symbol("paused"),ti=Symbol("resume"),Be=Symbol("bufferLength"),Zf=Symbol("bufferPush"),Jf=Symbol("bufferShift"),Ge=Symbol("objectMode"),Ue=Symbol("destroyed"),Qf=Symbol("emitData"),T_=Symbol("emitEnd"),eh=Symbol("emitEnd2"),ur=Symbol("async"),us=e=>Promise.resolve().then(e),k_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Kk=k_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Xk=k_&&Symbol.iterator||Symbol("iterator not implemented"),Zk=e=>e==="end"||e==="finish"||e==="prefinish",Jk=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Qk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),hu=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ti](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},th=class extends hu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};P_.exports=class B_ extends S_{constructor(t){super(),this[fu]=!1,this[os]=!1,this.pipes=[],this.buffer=[],this[Ge]=t&&t.objectMode||!1,this[Ge]?this[rt]=null:this[rt]=t&&t.encoding||null,this[rt]==="buffer"&&(this[rt]=null),this[ur]=t&&!!t.async||!1,this[or]=this[rt]?new F_(this[rt]):null,this[ir]=!1,this[Fr]=!1,this[au]=!1,this[cu]=!1,this[ss]=null,this.writable=!0,this.readable=!0,this[Be]=0,this[Ue]=!1}get bufferLength(){return this[Be]}get encoding(){return this[rt]}set encoding(t){if(this[Ge])throw new Error("cannot set encoding in objectMode");if(this[rt]&&t!==this[rt]&&(this[or]&&this[or].lastNeed||this[Be]))throw new Error("cannot change encoding");this[rt]!==t&&(this[or]=t?new F_(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[or].write(r)))),this[rt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Ge]}set objectMode(t){this[Ge]=this[Ge]||!!t}get async(){return this[ur]}set async(t){this[ur]=this[ur]||!!t}write(t,r,n){if(this[ir])throw new Error("write after end");if(this[Ue])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[ur]?us:s=>s();return!this[Ge]&&!Buffer.isBuffer(t)&&(Qk(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Jk(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Ge]?(this.flowing&&this[Be]!==0&&this[lu](!0),this.flowing?this.emit("data",t):this[Zf](t),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[rt]&&!this[or].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[rt]&&(t=this[or].write(t)),this.flowing&&this[Be]!==0&&this[lu](!0),this.flowing?this.emit("data",t):this[Zf](t),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Ue])return null;if(this[Be]===0||t===0||t>this[Be])return this[sr](),null;this[Ge]&&(t=null),this.buffer.length>1&&!this[Ge]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Be])]);let r=this[R_](t||null,this.buffer[0]);return this[sr](),r}[R_](t,r){return t===r.length||t===null?this[Jf]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[Be]-=t),this.emit("data",r),!this.buffer.length&&!this[ir]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[ir]=!0,this.writable=!1,(this.flowing||!this[os])&&this[sr](),this}[ti](){this[Ue]||(this[os]=!1,this[fu]=!0,this.emit("resume"),this.buffer.length?this[lu]():this[ir]?this[sr]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[fu]=!1,this[os]=!0}get destroyed(){return this[Ue]}get flowing(){return this[fu]}get paused(){return this[os]}[Zf](t){this[Ge]?this[Be]+=1:this[Be]+=t.length,this.buffer.push(t)}[Jf](){return this.buffer.length&&(this[Ge]?this[Be]-=1:this[Be]-=this.buffer[0].length),this.buffer.shift()}[lu](t){do;while(this[O_](this[Jf]()));!t&&!this.buffer.length&&!this[ir]&&this.emit("drain")}[O_](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Ue])return;let n=this[Fr];return r=r||{},t===C_.stdout||t===C_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new th(this,t,r):new hu(this,t,r)),this[ur]?us(()=>this[ti]()):this[ti]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[ti]():t==="readable"&&this[Be]!==0?super.emit("readable"):Zk(t)&&this[Fr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[ss]&&(this[ur]?us(()=>r.call(this,this[ss])):r.call(this,this[ss])),n}get emittedEnd(){return this[Fr]}[sr](){!this[au]&&!this[Fr]&&!this[Ue]&&this.buffer.length===0&&this[ir]&&(this[au]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[cu]&&this.emit("close"),this[au]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Ue&&this[Ue])return;if(t==="data")return r?this[ur]?us(()=>this[Qf](r)):this[Qf](r):!1;if(t==="end")return this[T_]();if(t==="close"){if(this[cu]=!0,!this[Fr]&&!this[Ue])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[ss]=r;let s=super.emit("error",r);return this[sr](),s}else if(t==="resume"){let s=super.emit("resume");return this[sr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[sr](),i}[Qf](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[sr](),r}[T_](){this[Fr]||(this[Fr]=!0,this.readable=!1,this[ur]?us(()=>this[eh]()):this[eh]())}[eh](){if(this[or]){let r=this[or].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Ge]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Ge]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Ge]?Promise.reject(new Error("cannot concat in objectMode")):this[rt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Ue,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Kk](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ir])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[ir]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ue,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Xk](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Ue]?(t?this.emit("error",t):this.emit(Ue),this):(this[Ue]=!0,this.buffer.length=0,this[Be]=0,typeof this.close=="function"&&!this[cu]&&this.close(),t?this.emit("error",t):this.emit(Ue),this)}static isStream(t){return!!t&&(t instanceof B_||t instanceof S_||t instanceof Vk&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var Eh=g(ct=>{"use strict";var uh=require("assert"),Rr=require("buffer").Buffer,N_=require("zlib"),en=ct.constants=w_(),e3=rh(),I_=Rr.concat,tn=Symbol("_superWrite"),ni=class extends Error{constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},t3=Symbol("opts"),as=Symbol("flushFlag"),L_=Symbol("finishFlushFlag"),yh=Symbol("fullFlushFlag"),ce=Symbol("handle"),pu=Symbol("onError"),ri=Symbol("sawError"),nh=Symbol("level"),ih=Symbol("strategy"),sh=Symbol("ended"),TL=Symbol("_defaultFullFlush"),du=class extends e3{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[ri]=!1,this[sh]=!1,this[t3]=t,this[as]=t.flush,this[L_]=t.finishFlush;try{this[ce]=new N_[r](t)}catch(n){throw new ni(n)}this[pu]=n=>{this[ri]||(this[ri]=!0,this.close(),this.emit("error",n))},this[ce].on("error",n=>this[pu](new ni(n))),this.once("end",()=>this.close)}close(){this[ce]&&(this[ce].close(),this[ce]=null,this.emit("close"))}reset(){if(!this[ri])return uh(this[ce],"zlib binding closed"),this[ce].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[yh]),this.write(Object.assign(Rr.alloc(0),{[as]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[L_]),this[sh]=!0,super.end(null,null,n)}get ended(){return this[sh]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=Rr.from(t,r)),this[ri])return;uh(this[ce],"zlib binding closed");let i=this[ce]._handle,s=i.close;i.close=()=>{};let o=this[ce].close;this[ce].close=()=>{},Rr.concat=c=>c;let u;try{let c=typeof t[as]=="number"?t[as]:this[as];u=this[ce]._processChunk(t,c),Rr.concat=I_}catch(c){Rr.concat=I_,this[pu](new ni(c))}finally{this[ce]&&(this[ce]._handle=i,i.close=s,this[ce].close=o,this[ce].removeAllListeners("error"))}this[ce]&&this[ce].on("error",c=>this[pu](new ni(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[tn](Rr.from(u[0]));for(let c=1;c<u.length;c++)a=this[tn](u[c])}else a=this[tn](Rr.from(u));return n&&n(),a}[tn](t){return super.write(t)}},ar=class extends du{constructor(t,r){t=t||{},t.flush=t.flush||en.Z_NO_FLUSH,t.finishFlush=t.finishFlush||en.Z_FINISH,super(t,r),this[yh]=en.Z_FULL_FLUSH,this[nh]=t.level,this[ih]=t.strategy}params(t,r){if(!this[ri]){if(!this[ce])throw new Error("cannot switch params when binding is closed");if(!this[ce].params)throw new Error("not supported in this implementation");if(this[nh]!==t||this[ih]!==r){this.flush(en.Z_SYNC_FLUSH),uh(this[ce],"zlib binding closed");let n=this[ce].flush;this[ce].flush=(i,s)=>{this.flush(i),s()};try{this[ce].params(t,r)}finally{this[ce].flush=n}this[ce]&&(this[nh]=t,this[ih]=r)}}}},ah=class extends ar{constructor(t){super(t,"Deflate")}},ch=class extends ar{constructor(t){super(t,"Inflate")}},oh=Symbol("_portable"),lh=class extends ar{constructor(t){super(t,"Gzip"),this[oh]=t&&!!t.portable}[tn](t){return this[oh]?(this[oh]=!1,t[9]=255,super[tn](t)):super[tn](t)}},fh=class extends ar{constructor(t){super(t,"Gunzip")}},hh=class extends ar{constructor(t){super(t,"DeflateRaw")}},ph=class extends ar{constructor(t){super(t,"InflateRaw")}},dh=class extends ar{constructor(t){super(t,"Unzip")}},mu=class extends du{constructor(t,r){t=t||{},t.flush=t.flush||en.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||en.BROTLI_OPERATION_FINISH,super(t,r),this[yh]=en.BROTLI_OPERATION_FLUSH}},mh=class extends mu{constructor(t){super(t,"BrotliCompress")}},gh=class extends mu{constructor(t){super(t,"BrotliDecompress")}};ct.Deflate=ah;ct.Inflate=ch;ct.Gzip=lh;ct.Gunzip=fh;ct.DeflateRaw=hh;ct.InflateRaw=ph;ct.Unzip=dh;typeof N_.BrotliCompress=="function"?(ct.BrotliCompress=mh,ct.BrotliDecompress=gh):ct.BrotliCompress=ct.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ii=g((PL,M_)=>{var r3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;M_.exports=r3!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var gu=g((LL,q_)=>{"use strict";var n3=uu(),bh=ii(),_h=Symbol("slurp");q_.exports=class extends n3{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.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=bh(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=bh(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[_h](r),n&&this[_h](n,!0)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(t):super.write(t.slice(0,n))}[_h](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?bh(t[n]):t[n])}}});var Dh=g(yu=>{"use strict";yu.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"]]);yu.code=new Map(Array.from(yu.name).map(e=>[e[1],e[0]]))});var G_=g((ML,H_)=>{"use strict";var i3=(e,t)=>{if(Number.isSafeInteger(e))e<0?o3(e,t):s3(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},s3=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},o3=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=j_(i):i===0?t[n-1]=0:(r=!0,t[n-1]=$_(i))}},u3=e=>{let t=e[0],r=t===128?c3(e.slice(1,e.length)):t===255?a3(e):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},a3=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],o;n?o=j_(s):s===0?o=s:(n=!0,o=$_(s)),o!==0&&(r-=o*Math.pow(256,t-i-1))}return r},c3=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},j_=e=>(255^e)&255,$_=e=>(255^e)+1&255;H_.exports={encode:i3,parse:u3}});var oi=g((qL,W_)=>{"use strict";var Ah=Dh(),si=require("path").posix,U_=G_(),vh=Symbol("slurp"),lt=Symbol("type"),Ch=class{constructor(t,r,n,i){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[lt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=rn(t,r,100),this.mode=Or(t,r+100,8),this.uid=Or(t,r+108,8),this.gid=Or(t,r+116,8),this.size=Or(t,r+124,12),this.mtime=xh(t,r+136,12),this.cksum=Or(t,r+148,12),this[vh](n),this[vh](i,!0),this[lt]=rn(t,r+156,1),this[lt]===""&&(this[lt]="0"),this[lt]==="0"&&this.path.slice(-1)==="/"&&(this[lt]="5"),this[lt]==="5"&&(this.size=0),this.linkpath=rn(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=rn(t,r+265,32),this.gname=rn(t,r+297,32),this.devmaj=Or(t,r+329,8),this.devmin=Or(t,r+337,8),t[r+475]!==0){let o=rn(t,r+345,155);this.path=o+"/"+this.path}else{let o=rn(t,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=xh(t,r+476,12),this.ctime=xh(t,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=t[o];for(let o=r+156;o<r+512;o++)s+=t[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[vh](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=l3(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=nn(t,r,100,s)||this.needPax,this.needPax=Tr(t,r+100,8,this.mode)||this.needPax,this.needPax=Tr(t,r+108,8,this.uid)||this.needPax,this.needPax=Tr(t,r+116,8,this.gid)||this.needPax,this.needPax=Tr(t,r+124,12,this.size)||this.needPax,this.needPax=wh(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[lt].charCodeAt(0),this.needPax=nn(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=nn(t,r+265,32,this.uname)||this.needPax,this.needPax=nn(t,r+297,32,this.gname)||this.needPax,this.needPax=Tr(t,r+329,8,this.devmaj)||this.needPax,this.needPax=Tr(t,r+337,8,this.devmin)||this.needPax,this.needPax=nn(t,r+345,n,o)||this.needPax,t[r+475]!==0?this.needPax=nn(t,r+345,155,o)||this.needPax:(this.needPax=nn(t,r+345,130,o)||this.needPax,this.needPax=wh(t,r+476,12,this.atime)||this.needPax,this.needPax=wh(t,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=t[a];for(let a=r+156;a<r+512;a++)u+=t[a];return this.cksum=u,Tr(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return Ah.name.get(this[lt])||this[lt]}get typeKey(){return this[lt]}set type(t){Ah.code.has(t)?this[lt]=Ah.code.get(t):this[lt]=t}},l3=(e,t)=>{let n=e,i="",s,o=si.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=si.dirname(n),n=si.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,100-1),i,!0]:(n=si.join(si.basename(i),n),i=si.dirname(i));while(i!==o&&!s);s||(s=[e.slice(0,100-1),"",!0])}return s},rn=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),xh=(e,t,r)=>f3(Or(e,t,r)),f3=e=>e===null?null:new Date(e*1e3),Or=(e,t,r)=>e[t]&128?U_.parse(e.slice(t,t+r)):p3(e,t,r),h3=e=>isNaN(e)?null:e,p3=(e,t,r)=>h3(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),d3={12:8589934591,8:2097151},Tr=(e,t,r,n)=>n===null?!1:n>d3[r]||n<0?(U_.encode(n,e.slice(t,t+r)),!0):(m3(e,t,r,n),!1),m3=(e,t,r,n)=>e.write(g3(n,r),t,r,"ascii"),g3=(e,t)=>y3(Math.floor(e).toString(8),t),y3=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",wh=(e,t,r,n)=>n===null?!1:Tr(e,t,r,n.getTime()/1e3),E3=new Array(156).join("\0"),nn=(e,t,r,n)=>n===null?!1:(e.write(n+E3,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);W_.exports=Ch});var Eu=g((jL,z_)=>{"use strict";var b3=oi(),_3=require("path"),cs=class{constructor(t,r){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new b3({path:("PaxHeader/"+_3.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(i),i.write(t,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}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(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
|
24
|
+
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};cs.parse=(e,t,r)=>new cs(D3(A3(e),t),r);var D3=(e,t)=>t?Object.keys(e).reduce((r,n)=>(r[n]=e[n],r),t):e,A3=e=>e.replace(/\n$/,"").split(`
|
|
25
|
+
`).reduce(v3,Object.create(null)),v3=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};z_.exports=cs});var ui=g(($L,Y_)=>{Y_.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var bu=g((HL,V_)=>{"use strict";V_.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${t}: ${r}`),n))}}});var Fh=g((UL,K_)=>{"use strict";var _u=["|","<",">","?",":"],Sh=_u.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),x3=new Map(_u.map((e,t)=>[e,Sh[t]])),w3=new Map(Sh.map((e,t)=>[e,_u[t]]));K_.exports={encode:e=>_u.reduce((t,r)=>t.split(r).join(x3.get(r)),e),decode:e=>Sh.reduce((t,r)=>t.split(r).join(w3.get(r)),e)}});var Rh=g((WL,Z_)=>{var{isAbsolute:C3,parse:X_}=require("path").win32;Z_.exports=e=>{let t="",r=X_(e);for(;C3(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=X_(e)}return[t,e]}});var Q_=g((zL,J_)=>{"use strict";J_.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var qh=g((KL,pD)=>{"use strict";var oD=uu(),uD=Eu(),aD=oi(),Mt=require("fs"),eD=require("path"),Nt=ii(),S3=ui(),cD=(e,t)=>t?(e=Nt(e).replace(/^\.(\/|$)/,""),S3(t)+"/"+e):Nt(e),F3=16*1024*1024,tD=Symbol("process"),rD=Symbol("file"),nD=Symbol("directory"),Th=Symbol("symlink"),iD=Symbol("hardlink"),ls=Symbol("header"),Du=Symbol("read"),kh=Symbol("lstat"),Au=Symbol("onlstat"),Bh=Symbol("onread"),Ph=Symbol("onreadlink"),Ih=Symbol("openfile"),Lh=Symbol("onopenfile"),kr=Symbol("close"),vu=Symbol("mode"),Nh=Symbol("awaitDrain"),Oh=Symbol("ondrain"),qt=Symbol("prefix"),sD=Symbol("hadError"),lD=bu(),R3=Fh(),fD=Rh(),hD=Q_(),xu=lD(class extends oD{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Nt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||F3,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 n=!1;if(!this.preservePaths){let[i,s]=fD(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=R3.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Nt(r.absolute||eD.resolve(this.cwd,t)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Au](this.statCache.get(this.absolute)):this[kh]()}emit(t,...r){return t==="error"&&(this[sD]=!0),super.emit(t,...r)}[kh](){Mt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Au](r)})}[Au](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=T3(t),this.emit("stat",t),this[tD]()}[tD](){switch(this.type){case"File":return this[rD]();case"Directory":return this[nD]();case"SymbolicLink":return this[Th]();default:return this.end()}}[vu](t){return hD(t,this.type==="Directory",this.portable)}[qt](t){return cD(t,this.prefix)}[ls](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new aD({path:this[qt](this.path),linkpath:this.type==="Link"?this[qt](this.linkpath):this.linkpath,mode:this[vu](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 uD({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[qt](this.path),linkpath:this.type==="Link"?this[qt](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)}[nD](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ls](),this.end()}[Th](){Mt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Ph](r)})}[Ph](t){this.linkpath=Nt(t),this[ls](),this.end()}[iD](t){this.type="Link",this.linkpath=Nt(eD.relative(this.cwd,t)),this.stat.size=0,this[ls](),this.end()}[rD](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[iD](r)}this.linkCache.set(t,this.absolute)}if(this[ls](),this.stat.size===0)return this.end();this[Ih]()}[Ih](){Mt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[Lh](r)})}[Lh](t){if(this.fd=t,this[sD])return this[kr]();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[Du]()}[Du](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Mt.read(t,r,n,i,s,(o,u)=>{if(o)return this[kr](()=>this.emit("error",o));this[Bh](u)})}[kr](t){Mt.close(this.fd,t)}[Bh](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[kr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[kr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[Oh]():this[Nh](()=>this[Oh]())}[Nh](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[Oh](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[kr](t=>t?this.emit("error",t):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[Du]()}}),Mh=class extends xu{[kh](){this[Au](Mt.lstatSync(this.absolute))}[Th](){this[Ph](Mt.readlinkSync(this.absolute))}[Ih](){this[Lh](Mt.openSync(this.absolute,"r"))}[Du](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,u=Mt.readSync(r,n,i,s,o);this[Bh](u),t=!1}finally{if(t)try{this[kr](()=>{})}catch{}}}[Nh](t){t()}[kr](t){Mt.closeSync(this.fd),t()}},O3=lD(class extends oD{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Nt(t.path),this.mode=this[vu](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Nt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=fD(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new aD({path:this[qt](this.path),linkpath:this.type==="Link"?this[qt](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}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new uD({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[qt](this.path),linkpath:this.type==="Link"?this[qt](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),t.pipe(this)}[qt](t){return cD(t,this.prefix)}[vu](t){return hD(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});xu.Sync=Mh;xu.Tar=O3;var T3=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";pD.exports=xu});var mD=g((XL,dD)=>{"use strict";dD.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var jh=g((ZL,gD)=>{"use strict";gD.exports=ee;ee.Node=sn;ee.create=ee;function ee(e){var t=this;if(t instanceof ee||(t=new ee),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}ee.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ee.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ee.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ee.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)B3(this,arguments[e]);return this.length};ee.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)P3(this,arguments[e]);return this.length};ee.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ee.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ee.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};ee.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};ee.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};ee.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};ee.prototype.map=function(e,t){t=t||this;for(var r=new ee,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};ee.prototype.mapReverse=function(e,t){t=t||this;for(var r=new ee,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};ee.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};ee.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};ee.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};ee.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};ee.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ee;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};ee.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ee;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};ee.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=k3(this,i,r[n]);return s};ee.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function k3(e,t,r){var n=t===e.head?new sn(r,null,t,e):new sn(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function B3(e,t){e.tail=new sn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function P3(e,t){e.head=new sn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function sn(e,t,r,n){if(!(this instanceof sn))return new sn(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{mD()(ee)}catch{}});var Bu=g((QL,vD)=>{"use strict";var Tu=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},I3=uu(),L3=Eh(),N3=gu(),Kh=qh(),M3=Kh.Sync,q3=Kh.Tar,j3=jh(),yD=Buffer.alloc(1024),Su=Symbol("onStat"),wu=Symbol("ended"),jt=Symbol("queue"),ai=Symbol("current"),on=Symbol("process"),Cu=Symbol("processing"),ED=Symbol("processJob"),$t=Symbol("jobs"),$h=Symbol("jobDone"),Fu=Symbol("addFSEntry"),bD=Symbol("addTarEntry"),Wh=Symbol("stat"),zh=Symbol("readdir"),Ru=Symbol("onreaddir"),Ou=Symbol("pipe"),_D=Symbol("entry"),Hh=Symbol("entryOpt"),Yh=Symbol("writeEntryClass"),AD=Symbol("write"),Gh=Symbol("ondrain"),ku=require("fs"),DD=require("path"),$3=bu(),Uh=ii(),Xh=$3(class extends I3{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=Uh(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[Yh]=Kh,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new L3.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Gh]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Gh]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[jt]=new j3,this[$t]=0,this.jobs=+t.jobs||4,this[Cu]=!1,this[wu]=!1}[AD](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[wu]=!0,this[on](),this}write(t){if(this[wu])throw new Error("write after end");return t instanceof N3?this[bD](t):this[Fu](t),this.flowing}[bD](t){let r=Uh(DD.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new Tu(t.path,r,!1);n.entry=new q3(t,this[Hh](n)),n.entry.on("end",i=>this[$h](n)),this[$t]+=1,this[jt].push(n)}this[on]()}[Fu](t){let r=Uh(DD.resolve(this.cwd,t));this[jt].push(new Tu(t,r)),this[on]()}[Wh](t){t.pending=!0,this[$t]+=1;let r=this.follow?"stat":"lstat";ku[r](t.absolute,(n,i)=>{t.pending=!1,this[$t]-=1,n?this.emit("error",n):this[Su](t,i)})}[Su](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[on]()}[zh](t){t.pending=!0,this[$t]+=1,ku.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[$t]-=1,r)return this.emit("error",r);this[Ru](t,n)})}[Ru](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[on]()}[on](){if(!this[Cu]){this[Cu]=!0;for(let t=this[jt].head;t!==null&&this[$t]<this.jobs;t=t.next)if(this[ED](t.value),t.value.ignore){let r=t.next;this[jt].removeNode(t),t.next=r}this[Cu]=!1,this[wu]&&!this[jt].length&&this[$t]===0&&(this.zip?this.zip.end(yD):(super.write(yD),super.end()))}}get[ai](){return this[jt]&&this[jt].head&&this[jt].head.value}[$h](t){this[jt].shift(),this[$t]-=1,this[on]()}[ED](t){if(!t.pending){if(t.entry){t===this[ai]&&!t.piped&&this[Ou](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[Su](t,this.statCache.get(t.absolute)):this[Wh](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[Ru](t,this.readdirCache.get(t.absolute)):this[zh](t),!t.readdir))){if(t.entry=this[_D](t),!t.entry){t.ignore=!0;return}t===this[ai]&&!t.piped&&this[Ou](t)}}}[Hh](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[_D](t){this[$t]+=1;try{return new this[Yh](t.path,this[Hh](t)).on("end",()=>this[$h](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Gh](){this[ai]&&this[ai].entry&&this[ai].entry.resume()}[Ou](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Fu](o+i)});let r=t.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Vh=class extends Xh{constructor(t){super(t),this[Yh]=M3}pause(){}resume(){}[Wh](t){let r=this.follow?"statSync":"lstatSync";this[Su](t,ku[r](t.absolute))}[zh](t,r){this[Ru](t,ku.readdirSync(t.absolute))}[Ou](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Fu](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[AD](i)})}};Xh.Sync=Vh;vD.exports=Xh});var gi=g(hs=>{"use strict";var H3=rh(),G3=require("events").EventEmitter,nt=require("fs"),Qh=nt.writev;if(!Qh){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;Qh=(r,n,i,s)=>{let o=(a,c)=>s(a,c,n),u=new t;u.oncomplete=o,e.writeBuffers(r,n,i,u)}}var di=Symbol("_autoClose"),St=Symbol("_close"),fs=Symbol("_ended"),ue=Symbol("_fd"),xD=Symbol("_finished"),Pr=Symbol("_flags"),Zh=Symbol("_flush"),ep=Symbol("_handleChunk"),tp=Symbol("_makeBuf"),Mu=Symbol("_mode"),Pu=Symbol("_needDrain"),hi=Symbol("_onerror"),mi=Symbol("_onopen"),Jh=Symbol("_onread"),li=Symbol("_onwrite"),Ir=Symbol("_open"),cr=Symbol("_path"),un=Symbol("_pos"),Ht=Symbol("_queue"),fi=Symbol("_read"),wD=Symbol("_readSize"),Br=Symbol("_reading"),Iu=Symbol("_remain"),CD=Symbol("_size"),Lu=Symbol("_write"),ci=Symbol("_writing"),Nu=Symbol("_defaultFlag"),pi=Symbol("_errored"),qu=class extends H3{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[pi]=!1,this[ue]=typeof r.fd=="number"?r.fd:null,this[cr]=t,this[wD]=r.readSize||16*1024*1024,this[Br]=!1,this[CD]=typeof r.size=="number"?r.size:1/0,this[Iu]=this[CD],this[di]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ue]=="number"?this[fi]():this[Ir]()}get fd(){return this[ue]}get path(){return this[cr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ir](){nt.open(this[cr],"r",(t,r)=>this[mi](t,r))}[mi](t,r){t?this[hi](t):(this[ue]=r,this.emit("open",r),this[fi]())}[tp](){return Buffer.allocUnsafe(Math.min(this[wD],this[Iu]))}[fi](){if(!this[Br]){this[Br]=!0;let t=this[tp]();if(t.length===0)return process.nextTick(()=>this[Jh](null,0,t));nt.read(this[ue],t,0,t.length,null,(r,n,i)=>this[Jh](r,n,i))}}[Jh](t,r,n){this[Br]=!1,t?this[hi](t):this[ep](r,n)&&this[fi]()}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[hi](t){this[Br]=!0,this[St](),this.emit("error",t)}[ep](t,r){let n=!1;return this[Iu]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[Iu]<=0)&&(n=!1,this[St](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[ue]=="number"&&this[fi]();break;case"error":return this[pi]?void 0:(this[pi]=!0,super.emit(t,r));default:return super.emit(t,r)}}},rp=class extends qu{[Ir](){let t=!0;try{this[mi](null,nt.openSync(this[cr],"r")),t=!1}finally{t&&this[St]()}}[fi](){let t=!0;try{if(!this[Br]){this[Br]=!0;do{let r=this[tp](),n=r.length===0?0:nt.readSync(this[ue],r,0,r.length,null);if(!this[ep](n,r))break}while(!0);this[Br]=!1}t=!1}finally{t&&this[St]()}}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.closeSync(t),this.emit("close")}}},ju=class extends G3{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[pi]=!1,this[ci]=!1,this[fs]=!1,this[Pu]=!1,this[Ht]=[],this[cr]=t,this[ue]=typeof r.fd=="number"?r.fd:null,this[Mu]=r.mode===void 0?438:r.mode,this[un]=typeof r.start=="number"?r.start:null,this[di]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[un]!==null?"r+":"w";this[Nu]=r.flags===void 0,this[Pr]=this[Nu]?n:r.flags,this[ue]===null&&this[Ir]()}emit(t,r){if(t==="error"){if(this[pi])return;this[pi]=!0}return super.emit(t,r)}get fd(){return this[ue]}get path(){return this[cr]}[hi](t){this[St](),this[ci]=!0,this.emit("error",t)}[Ir](){nt.open(this[cr],this[Pr],this[Mu],(t,r)=>this[mi](t,r))}[mi](t,r){this[Nu]&&this[Pr]==="r+"&&t&&t.code==="ENOENT"?(this[Pr]="w",this[Ir]()):t?this[hi](t):(this[ue]=r,this.emit("open",r),this[Zh]())}end(t,r){return t&&this.write(t,r),this[fs]=!0,!this[ci]&&!this[Ht].length&&typeof this[ue]=="number"&&this[li](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[fs]?(this.emit("error",new Error("write() after end()")),!1):this[ue]===null||this[ci]||this[Ht].length?(this[Ht].push(t),this[Pu]=!0,!1):(this[ci]=!0,this[Lu](t),!0)}[Lu](t){nt.write(this[ue],t,0,t.length,this[un],(r,n)=>this[li](r,n))}[li](t,r){t?this[hi](t):(this[un]!==null&&(this[un]+=r),this[Ht].length?this[Zh]():(this[ci]=!1,this[fs]&&!this[xD]?(this[xD]=!0,this[St](),this.emit("finish")):this[Pu]&&(this[Pu]=!1,this.emit("drain"))))}[Zh](){if(this[Ht].length===0)this[fs]&&this[li](null,0);else if(this[Ht].length===1)this[Lu](this[Ht].pop());else{let t=this[Ht];this[Ht]=[],Qh(this[ue],t,this[un],(r,n)=>this[li](r,n))}}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},np=class extends ju{[Ir](){let t;if(this[Nu]&&this[Pr]==="r+")try{t=nt.openSync(this[cr],this[Pr],this[Mu])}catch(r){if(r.code==="ENOENT")return this[Pr]="w",this[Ir]();throw r}else t=nt.openSync(this[cr],this[Pr],this[Mu]);this[mi](null,t)}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.closeSync(t),this.emit("close")}}[Lu](t){let r=!0;try{this[li](null,nt.writeSync(this[ue],t,0,t.length,this[un])),r=!1}finally{if(r)try{this[St]()}catch{}}}};hs.ReadStream=qu;hs.ReadStreamSync=rp;hs.WriteStream=ju;hs.WriteStreamSync=np});var Yu=g((rN,PD)=>{"use strict";var U3=bu(),W3=oi(),z3=require("events"),Y3=jh(),V3=1024*1024,K3=gu(),SD=Eu(),X3=Eh(),{nextTick:Z3}=require("process"),ip=Buffer.from([31,139]),yt=Symbol("state"),an=Symbol("writeEntry"),lr=Symbol("readEntry"),sp=Symbol("nextEntry"),FD=Symbol("processEntry"),Et=Symbol("extendedHeader"),ps=Symbol("globalExtendedHeader"),Lr=Symbol("meta"),RD=Symbol("emitMeta"),pe=Symbol("buffer"),fr=Symbol("queue"),cn=Symbol("ended"),OD=Symbol("emittedEnd"),ln=Symbol("emit"),it=Symbol("unzip"),$u=Symbol("consumeChunk"),Hu=Symbol("consumeChunkSub"),op=Symbol("consumeBody"),TD=Symbol("consumeMeta"),kD=Symbol("consumeHeader"),Gu=Symbol("consuming"),up=Symbol("bufferConcat"),ap=Symbol("maybeEnd"),ds=Symbol("writing"),Nr=Symbol("aborted"),Uu=Symbol("onDone"),fn=Symbol("sawValidEntry"),Wu=Symbol("sawNullBlock"),zu=Symbol("sawEOF"),BD=Symbol("closeStream"),J3=e=>!0;PD.exports=U3(class extends z3{constructor(t){t=t||{},super(t),this.file=t.file||"",this[fn]=null,this.on(Uu,r=>{(this[yt]==="begin"||this[fn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Uu,t.ondone):this.on(Uu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||V3,this.filter=typeof t.filter=="function"?t.filter:J3,this.writable=!0,this.readable=!1,this[fr]=new Y3,this[pe]=null,this[lr]=null,this[an]=null,this[yt]="begin",this[Lr]="",this[Et]=null,this[ps]=null,this[cn]=!1,this[it]=null,this[Nr]=!1,this[Wu]=!1,this[zu]=!1,this.on("end",()=>this[BD]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[kD](t,r){this[fn]===null&&(this[fn]=!1);let n;try{n=new W3(t,r,this[Et],this[ps])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Wu]?(this[zu]=!0,this[yt]==="begin"&&(this[yt]="header"),this[ln]("eof")):(this[Wu]=!0,this[ln]("nullBlock"));else if(this[Wu]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[an]=new K3(n,this[Et],this[ps]);if(!this[fn])if(s.remain){let o=()=>{s.invalid||(this[fn]=!0)};s.on("end",o)}else this[fn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[ln]("ignoredEntry",s),this[yt]="ignore",s.resume()):s.size>0&&(this[Lr]="",s.on("data",o=>this[Lr]+=o),this[yt]="meta"):(this[Et]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[ln]("ignoredEntry",s),this[yt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[yt]="body":(this[yt]="header",s.end()),this[lr]?this[fr].push(s):(this[fr].push(s),this[sp]())))}}}[BD](){Z3(()=>this.emit("close"))}[FD](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[lr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[sp]()),r=!1)):(this[lr]=null,r=!1),r}[sp](){do;while(this[FD](this[fr].shift()));if(!this[fr].length){let t=this[lr];!t||t.flowing||t.size===t.remain?this[ds]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[op](t,r){let n=this[an],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[yt]="header",this[an]=null,n.end()),s.length}[TD](t,r){let n=this[an],i=this[op](t,r);return this[an]||this[RD](n),i}[ln](t,r,n){!this[fr].length&&!this[lr]?this.emit(t,r,n):this[fr].push([t,r,n])}[RD](t){switch(this[ln]("meta",this[Lr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[Et]=SD.parse(this[Lr],this[Et],!1);break;case"GlobalExtendedHeader":this[ps]=SD.parse(this[Lr],this[ps],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Et]=this[Et]||Object.create(null),this[Et].path=this[Lr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Et]=this[Et]||Object.create(null),this[Et].linkpath=this[Lr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Nr]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[Nr])return;if(this[it]===null&&t){if(this[pe]&&(t=Buffer.concat([this[pe],t]),this[pe]=null),t.length<ip.length)return this[pe]=t,!0;for(let n=0;this[it]===null&&n<ip.length;n++)t[n]!==ip[n]&&(this[it]=!1);if(this[it]===null){let n=this[cn];this[cn]=!1,this[it]=new X3.Unzip,this[it].on("data",s=>this[$u](s)),this[it].on("error",s=>this.abort(s)),this[it].on("end",s=>{this[cn]=!0,this[$u]()}),this[ds]=!0;let i=this[it][n?"end":"write"](t);return this[ds]=!1,i}}this[ds]=!0,this[it]?this[it].write(t):this[$u](t),this[ds]=!1;let r=this[fr].length?!1:this[lr]?this[lr].flowing:!0;return!r&&!this[fr].length&&this[lr].once("drain",n=>this.emit("drain")),r}[up](t){t&&!this[Nr]&&(this[pe]=this[pe]?Buffer.concat([this[pe],t]):t)}[ap](){if(this[cn]&&!this[OD]&&!this[Nr]&&!this[Gu]){this[OD]=!0;let t=this[an];if(t&&t.blockRemain){let r=this[pe]?this[pe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[pe]&&t.write(this[pe]),t.end()}this[ln](Uu)}}[$u](t){if(this[Gu])this[up](t);else if(!t&&!this[pe])this[ap]();else{if(this[Gu]=!0,this[pe]){this[up](t);let r=this[pe];this[pe]=null,this[Hu](r)}else this[Hu](t);for(;this[pe]&&this[pe].length>=512&&!this[Nr]&&!this[zu];){let r=this[pe];this[pe]=null,this[Hu](r)}this[Gu]=!1}(!this[pe]||this[cn])&&this[ap]()}[Hu](t){let r=0,n=t.length;for(;r+512<=n&&!this[Nr]&&!this[zu];)switch(this[yt]){case"begin":case"header":this[kD](t,r),r+=512;break;case"ignore":case"body":r+=this[op](t,r);break;case"meta":r+=this[TD](t,r);break;default:throw new Error("invalid state: "+this[yt])}r<n&&(this[pe]?this[pe]=Buffer.concat([t.slice(r),this[pe]]):this[pe]=t.slice(r))}end(t){this[Nr]||(this[it]?this[it].end(t):(this[cn]=!0,this.write(t)))}})});var Vu=g((nN,MD)=>{"use strict";var Q3=Qn(),LD=Yu(),yi=require("fs"),eB=gi(),ID=require("path"),cp=ui();MD.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=Q3(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&rB(n,t),n.noResume||tB(n),n.file&&n.sync?nB(n):n.file?iB(n,r):ND(n)};var tB=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},rB=(e,t)=>{let r=new Map(t.map(s=>[cp(s),!0])),n=e.filter,i=(s,o)=>{let u=o||ID.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(ID.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(cp(s)):s=>i(cp(s))},nB=e=>{let t=ND(e),r=e.file,n=!0,i;try{let s=yi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(yi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(i=yi.openSync(r,"r");u<s.size;){let c=yi.readSync(i,a,0,o,u);u+=c,t.write(a.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{yi.closeSync(i)}catch{}}},iB=(e,t)=>{let r=new LD(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),yi.stat(i,(a,c)=>{if(a)u(a);else{let l=new eB.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},ND=e=>new LD(e)});var UD=g((iN,GD)=>{"use strict";var sB=Qn(),Ku=Bu(),qD=gi(),jD=Vu(),$D=require("path");GD.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=sB(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?oB(n,t):n.file?uB(n,t,r):n.sync?aB(n,t):cB(n,t)};var oB=(e,t)=>{let r=new Ku.Sync(e),n=new qD.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),HD(r,t)},uB=(e,t,r)=>{let n=new Ku(e),i=new qD.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,u)=>{i.on("error",u),i.on("close",o),n.on("error",u)});return lp(n,t),r?s.then(r,r):s},HD=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?jD({file:$D.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},lp=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return jD({file:$D.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>lp(e,t));e.add(r)}e.end()},aB=(e,t)=>{let r=new Ku.Sync(e);return HD(r,t),r},cB=(e,t)=>{let r=new Ku(e);return lp(r,t),r}});var fp=g((sN,ZD)=>{"use strict";var lB=Qn(),WD=Bu(),ft=require("fs"),zD=gi(),YD=Vu(),VD=require("path"),KD=oi();ZD.exports=(e,t,r)=>{let n=lB(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?fB(n,t):pB(n,t,r)};var fB=(e,t)=>{let r=new WD.Sync(e),n=!0,i,s;try{try{i=ft.openSync(e.file,"r+")}catch(a){if(a.code==="ENOENT")i=ft.openSync(e.file,"w+");else throw a}let o=ft.fstatSync(i),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=ft.readSync(i,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 KD(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(a.path,a.mtime)}n=!1,hB(e,r,s,i,t)}finally{if(n)try{ft.closeSync(i)}catch{}}},hB=(e,t,r,n,i)=>{let s=new zD.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),dB(t,i)},pB=(e,t,r)=>{t=Array.from(t);let n=new WD(e),i=(o,u,a)=>{let c=(E,m)=>{E?ft.close(o,A=>a(E)):a(null,m)},l=0;if(u===0)return c(null,0);let f=0,p=Buffer.alloc(512),_=(E,m)=>{if(E)return c(E);if(f+=m,f<512&&m)return ft.read(o,p,f,p.length-f,l+f,_);if(l===0&&p[0]===31&&p[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let A=new KD(p);if(!A.cksumValid)return c(null,l);let D=512*Math.ceil(A.size/512);if(l+D+512>u||(l+=D+512,l>=u))return c(null,l);e.mtimeCache&&e.mtimeCache.set(A.path,A.mtime),f=0,ft.read(o,p,0,512,l,_)};ft.read(o,p,0,512,l,_)},s=new Promise((o,u)=>{n.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",ft.open(e.file,a,c);if(l)return u(l);ft.fstat(f,(p,_)=>{if(p)return ft.close(f,()=>u(p));i(f,_.size,(E,m)=>{if(E)return u(E);let A=new zD.WriteStream(e.file,{fd:f,start:m});n.pipe(A),A.on("error",u),A.on("close",o),XD(n,t)})})};ft.open(e.file,a,c)});return r?s.then(r,r):s},dB=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?YD({file:VD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},XD=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return YD({file:VD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>XD(e,t));e.add(r)}e.end()}});var QD=g((oN,JD)=>{"use strict";var mB=Qn(),gB=fp();JD.exports=(e,t,r)=>{let n=mB(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),yB(n),gB(n,t,r)};var yB=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var r2=g((uN,t2)=>{var{promisify:e2}=require("util"),Mr=require("fs"),EB=e=>{if(!e)e={mode:511,fs:Mr};else if(typeof e=="object")e={mode:511,fs:Mr,...e};else if(typeof e=="number")e={mode:e,fs:Mr};else if(typeof e=="string")e={mode:parseInt(e,8),fs:Mr};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||Mr.mkdir,e.mkdirAsync=e2(e.mkdir),e.stat=e.stat||e.fs.stat||Mr.stat,e.statAsync=e2(e.stat),e.statSync=e.statSync||e.fs.statSync||Mr.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||Mr.mkdirSync,e};t2.exports=EB});var i2=g((aN,n2)=>{var bB=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:_B,parse:DB}=require("path"),AB=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=_B(e),bB==="win32"){let t=/[*|"<>?:]/,{root:r}=DB(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};n2.exports=AB});var c2=g((cN,a2)=>{var{dirname:s2}=require("path"),o2=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?o2(e,s2(t),t):void 0),u2=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?u2(e,s2(t),t):void 0}};a2.exports={findMade:o2,findMadeSync:u2}});var dp=g((lN,f2)=>{var{dirname:l2}=require("path"),hp=(e,t,r)=>{t.recursive=!1;let n=l2(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return hp(n,t).then(s=>hp(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},pp=(e,t,r)=>{let n=l2(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return pp(e,t,pp(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};f2.exports={mkdirpManual:hp,mkdirpManualSync:pp}});var d2=g((fN,p2)=>{var{dirname:h2}=require("path"),{findMade:vB,findMadeSync:xB}=c2(),{mkdirpManual:wB,mkdirpManualSync:CB}=dp(),SB=(e,t)=>(t.recursive=!0,h2(e)===e?t.mkdirAsync(e,t):vB(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return wB(e,t);throw i}))),FB=(e,t)=>{if(t.recursive=!0,h2(e)===e)return t.mkdirSync(e,t);let n=xB(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return CB(e,t);throw i}};p2.exports={mkdirpNative:SB,mkdirpNativeSync:FB}});var E2=g((hN,y2)=>{var m2=require("fs"),RB=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,mp=RB.replace(/^v/,"").split("."),g2=+mp[0]>10||+mp[0]==10&&+mp[1]>=12,OB=g2?e=>e.mkdir===m2.mkdir:()=>!1,TB=g2?e=>e.mkdirSync===m2.mkdirSync:()=>!1;y2.exports={useNative:OB,useNativeSync:TB}});var x2=g((pN,v2)=>{var Ei=r2(),bi=i2(),{mkdirpNative:b2,mkdirpNativeSync:_2}=d2(),{mkdirpManual:D2,mkdirpManualSync:A2}=dp(),{useNative:kB,useNativeSync:BB}=E2(),_i=(e,t)=>(e=bi(e),t=Ei(t),kB(t)?b2(e,t):D2(e,t)),PB=(e,t)=>(e=bi(e),t=Ei(t),BB(t)?_2(e,t):A2(e,t));_i.sync=PB;_i.native=(e,t)=>b2(bi(e),Ei(t));_i.manual=(e,t)=>D2(bi(e),Ei(t));_i.nativeSync=(e,t)=>_2(bi(e),Ei(t));_i.manualSync=(e,t)=>A2(bi(e),Ei(t));v2.exports=_i});var T2=g((dN,O2)=>{"use strict";var bt=require("fs"),hn=require("path"),IB=bt.lchown?"lchown":"chown",LB=bt.lchownSync?"lchownSync":"chownSync",C2=bt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),w2=(e,t,r)=>{try{return bt[LB](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},NB=(e,t,r)=>{try{return bt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},MB=C2?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):bt.chown(e,t,r,n)}:(e,t,r,n)=>n,gp=C2?(e,t,r)=>{try{return w2(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;NB(e,t,r)}}:(e,t,r)=>w2(e,t,r),qB=process.version,S2=(e,t,r)=>bt.readdir(e,t,r),jB=(e,t)=>bt.readdirSync(e,t);/^v4\./.test(qB)&&(S2=(e,t,r)=>bt.readdir(e,r));var Xu=(e,t,r,n)=>{bt[IB](e,t,r,MB(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},F2=(e,t,r,n,i)=>{if(typeof t=="string")return bt.lstat(hn.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,F2(e,o,r,n,i)});if(t.isDirectory())yp(hn.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=hn.resolve(e,t.name);Xu(o,r,n,i)});else{let s=hn.resolve(e,t.name);Xu(s,r,n,i)}},yp=(e,t,r,n)=>{S2(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return Xu(e,t,r,n);let o=s.length,u=null,a=c=>{if(!u){if(c)return n(u=c);if(--o===0)return Xu(e,t,r,n)}};s.forEach(c=>F2(e,c,t,r,a))})},$B=(e,t,r,n)=>{if(typeof t=="string")try{let i=bt.lstatSync(hn.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&R2(hn.resolve(e,t.name),r,n),gp(hn.resolve(e,t.name),r,n)},R2=(e,t,r)=>{let n;try{n=jB(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return gp(e,t,r);throw i}return n&&n.length&&n.forEach(i=>$B(e,i,t,r)),gp(e,t,r)};O2.exports=yp;yp.sync=R2});var I2=g((mN,Ep)=>{"use strict";var k2=x2(),_t=require("fs"),Zu=require("path"),B2=T2(),Ft=ii(),Ju=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},Qu=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},ea=(e,t)=>e.get(Ft(t)),ms=(e,t,r)=>e.set(Ft(t),r),HB=(e,t)=>{_t.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new Qu(e,r&&r.code||"ENOTDIR")),t(r)})};Ep.exports=(e,t,r)=>{e=Ft(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,u=t.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==t.processUid||u!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,p=Ft(t.cwd),_=(A,D)=>{A?r(A):(ms(f,e,!0),D&&a?B2(D,o,u,R=>_(R)):s?_t.chmod(e,i,r):r())};if(f&&ea(f,e)===!0)return _();if(e===p)return HB(e,_);if(c)return k2(e,{mode:i}).then(A=>_(null,A),_);let m=Ft(Zu.relative(p,e)).split("/");ta(p,m,i,f,l,p,null,_)};var ta=(e,t,r,n,i,s,o,u)=>{if(!t.length)return u(null,o);let a=t.shift(),c=Ft(Zu.resolve(e+"/"+a));if(ea(n,c))return ta(c,t,r,n,i,s,o,u);_t.mkdir(c,r,P2(c,t,r,n,i,s,o,u))},P2=(e,t,r,n,i,s,o,u)=>a=>{a?_t.lstat(e,(c,l)=>{if(c)c.path=c.path&&Ft(c.path),u(c);else if(l.isDirectory())ta(e,t,r,n,i,s,o,u);else if(i)_t.unlink(e,f=>{if(f)return u(f);_t.mkdir(e,r,P2(e,t,r,n,i,s,o,u))});else{if(l.isSymbolicLink())return u(new Ju(e,e+"/"+t.join("/")));u(a)}}):(o=o||e,ta(e,t,r,n,i,s,o,u))},GB=e=>{let t=!1,r="ENOTDIR";try{t=_t.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new Qu(e,r)}};Ep.exports.sync=(e,t)=>{e=Ft(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),a=t.preserve,c=t.unlink,l=t.cache,f=Ft(t.cwd),p=A=>{ms(l,e,!0),A&&u&&B2.sync(A,s,o),i&&_t.chmodSync(e,n)};if(l&&ea(l,e)===!0)return p();if(e===f)return GB(f),p();if(a)return p(k2.sync(e,n));let E=Ft(Zu.relative(f,e)).split("/"),m=null;for(let A=E.shift(),D=f;A&&(D+="/"+A);A=E.shift())if(D=Ft(Zu.resolve(D)),!ea(l,D))try{_t.mkdirSync(D,n),m=m||D,ms(l,D,!0)}catch{let M=_t.lstatSync(D);if(M.isDirectory()){ms(l,D,!0);continue}else if(c){_t.unlinkSync(D),_t.mkdirSync(D,n),m=m||D,ms(l,D,!0);continue}else if(M.isSymbolicLink())return new Ju(D,D+"/"+E.join("/"))}return p(m)}});var _p=g((gN,L2)=>{var bp=Object.create(null),{hasOwnProperty:UB}=Object.prototype;L2.exports=e=>(UB.call(bp,e)||(bp[e]=e.normalize("NFKD")),bp[e])});var j2=g((yN,q2)=>{var N2=require("assert"),WB=_p(),zB=ui(),{join:M2}=require("path"),YB=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,VB=YB==="win32";q2.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,p)=>(f.length&&(p=M2(f[f.length-1],p)),f.push(p||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(p=>p[0]===c)&&f.every(p=>p[0]instanceof Set&&p[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>u(c)),!0),u=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=t.get(c),p=new Set;return l.forEach(_=>{let E=e.get(_);N2.equal(E[0],c),E.length===1?e.delete(_):(E.shift(),typeof E[0]=="function"?p.add(E[0]):E[0].forEach(m=>p.add(m)))}),f.forEach(_=>{let E=e.get(_);N2(E[0]instanceof Set),E[0].size===1&&E.length===1?e.delete(_):E[0].size===1?(E.shift(),p.add(E[0])):E[0].delete(c)}),n.delete(c),p.forEach(_=>o(_)),!0};return{check:s,reserve:(c,l)=>{c=VB?["win32 parallelization disabled"]:c.map(p=>WB(zB(M2(p))).toLowerCase());let f=new Set(c.map(p=>r(p)).reduce((p,_)=>p.concat(_)));return t.set(l,{dirs:f,paths:c}),c.forEach(p=>{let _=e.get(p);_?_.push(l):e.set(p,[l])}),f.forEach(p=>{let _=e.get(p);_?_[_.length-1]instanceof Set?_[_.length-1].add(l):_.push(new Set([l])):e.set(p,[new Set([l])])}),o(l)}}}});var G2=g((EN,H2)=>{var KB=process.env.__FAKE_PLATFORM__||process.platform,XB=KB==="win32",ZB=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:JB,O_TRUNC:QB,O_WRONLY:eP,UV_FS_O_FILEMAP:$2=0}=ZB.constants,tP=XB&&!!$2,rP=512*1024,nP=$2|QB|JB|eP;H2.exports=tP?e=>e<rP?nP:"w":()=>"w"});var Rp=g((bN,nA)=>{"use strict";var iP=require("assert"),sP=Yu(),te=require("fs"),oP=gi(),hr=require("path"),eA=I2(),U2=Fh(),uP=j2(),aP=Rh(),ht=ii(),cP=ui(),lP=_p(),W2=Symbol("onEntry"),vp=Symbol("checkFs"),z2=Symbol("checkFs2"),ia=Symbol("pruneCache"),xp=Symbol("isReusable"),Dt=Symbol("makeFs"),wp=Symbol("file"),Cp=Symbol("directory"),sa=Symbol("link"),Y2=Symbol("symlink"),V2=Symbol("hardlink"),K2=Symbol("unsupported"),X2=Symbol("checkPath"),qr=Symbol("mkdir"),We=Symbol("onError"),ra=Symbol("pending"),Z2=Symbol("pend"),Di=Symbol("unpend"),Dp=Symbol("ended"),Ap=Symbol("maybeClose"),Sp=Symbol("skip"),gs=Symbol("doChown"),ys=Symbol("uid"),Es=Symbol("gid"),bs=Symbol("checkedCwd"),tA=require("crypto"),rA=G2(),fP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,_s=fP==="win32",hP=(e,t)=>{if(!_s)return te.unlink(e,t);let r=e+".DELETE."+tA.randomBytes(16).toString("hex");te.rename(e,r,n=>{if(n)return t(n);te.unlink(r,t)})},pP=e=>{if(!_s)return te.unlinkSync(e);let t=e+".DELETE."+tA.randomBytes(16).toString("hex");te.renameSync(e,t),te.unlinkSync(t)},J2=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,Q2=e=>lP(cP(ht(e))).toLowerCase(),dP=(e,t)=>{t=Q2(t);for(let r of e.keys()){let n=Q2(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},mP=e=>{for(let t of e.keys())e.delete(t)},Ds=class extends sP{constructor(t){if(t||(t={}),t.ondone=r=>{this[Dp]=!0,this[Ap]()},super(t),this[bs]=!1,this.reservations=uP(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[ra]=0,this[Dp]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||_s,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=ht(hr.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[W2](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[Ap](){this[Dp]&&this[ra]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[X2](t){if(this.strip){let r=ht(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=ht(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=ht(t.path),n=r.split("/");if(n.includes("..")||_s&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=aP(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(hr.isAbsolute(t.path)?t.absolute=ht(hr.resolve(t.path)):t.absolute=ht(hr.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:ht(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=hr.win32.parse(t.absolute);t.absolute=r+U2.encode(t.absolute.slice(r.length));let{root:n}=hr.win32.parse(t.path);t.path=n+U2.encode(t.path.slice(n.length))}return!0}[W2](t){if(!this[X2](t))return t.resume();switch(iP.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[vp](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[K2](t)}}[We](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Di](),r.resume())}[qr](t,r,n){eA(ht(t),{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},n)}[gs](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ys](t){return J2(this.uid,t.uid,this.processUid)}[Es](t){return J2(this.gid,t.gid,this.processGid)}[wp](t,r){let n=t.mode&4095||this.fmode,i=new oP.WriteStream(t.absolute,{flags:rA(t.size),mode:n,autoClose:!1});i.on("error",a=>{i.fd&&te.close(i.fd,()=>{}),i.write=()=>!0,this[We](a,t),r()});let s=1,o=a=>{if(a){i.fd&&te.close(i.fd,()=>{}),this[We](a,t),r();return}--s===0&&te.close(i.fd,c=>{c?this[We](c,t):this[Di](),r()})};i.on("finish",a=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,p=t.mtime;te.futimes(l,f,p,_=>_?te.utimes(c,f,p,E=>o(E&&_)):o())}if(this[gs](t)){s++;let f=this[ys](t),p=this[Es](t);te.fchown(l,f,p,_=>_?te.chown(c,f,p,E=>o(E&&_)):o())}o()});let u=this.transform&&this.transform(t)||t;u!==t&&(u.on("error",a=>{this[We](a,t),r()}),t.pipe(u)),u.pipe(i)}[Cp](t,r){let n=t.mode&4095||this.dmode;this[qr](t.absolute,n,i=>{if(i){this[We](i,t),r();return}let s=1,o=u=>{--s===0&&(r(),this[Di](),t.resume())};t.mtime&&!this.noMtime&&(s++,te.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[gs](t)&&(s++,te.chown(t.absolute,this[ys](t),this[Es](t),o)),o()})}[K2](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[Y2](t,r){this[sa](t,t.linkpath,"symlink",r)}[V2](t,r){let n=ht(hr.resolve(this.cwd,t.linkpath));this[sa](t,n,"link",r)}[Z2](){this[ra]++}[Di](){this[ra]--,this[Ap]()}[Sp](t){this[Di](),t.resume()}[xp](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!_s}[vp](t){this[Z2]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[z2](t,n))}[ia](t){t.type==="SymbolicLink"?mP(this.dirCache):t.type!=="Directory"&&dP(this.dirCache,t.absolute)}[z2](t,r){this[ia](t);let n=u=>{this[ia](t),r(u)},i=()=>{this[qr](this.cwd,this.dmode,u=>{if(u){this[We](u,t),n();return}this[bs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let u=ht(hr.dirname(t.absolute));if(u!==this.cwd)return this[qr](u,this.dmode,a=>{if(a){this[We](a,t),n();return}o()})}o()},o=()=>{te.lstat(t.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>t.mtime)){this[Sp](t),n();return}if(u||this[xp](t,a))return this[Dt](null,t,n);if(a.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(a.mode&4095)!==t.mode,l=f=>this[Dt](f,t,n);return c?te.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return te.rmdir(t.absolute,c=>this[Dt](c,t,n))}if(t.absolute===this.cwd)return this[Dt](null,t,n);hP(t.absolute,c=>this[Dt](c,t,n))})};this[bs]?s():i()}[Dt](t,r,n){if(t){this[We](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[wp](r,n);case"Link":return this[V2](r,n);case"SymbolicLink":return this[Y2](r,n);case"Directory":case"GNUDumpDir":return this[Cp](r,n)}}[sa](t,r,n,i){te[n](r,t.absolute,s=>{s?this[We](s,t):(this[Di](),t.resume()),i()})}},na=e=>{try{return[null,e()]}catch(t){return[t,null]}},Fp=class extends Ds{[Dt](t,r){return super[Dt](t,r,()=>{})}[vp](t){if(this[ia](t),!this[bs]){let s=this[qr](this.cwd,this.dmode);if(s)return this[We](s,t);this[bs]=!0}if(t.absolute!==this.cwd){let s=ht(hr.dirname(t.absolute));if(s!==this.cwd){let o=this[qr](s,this.dmode);if(o)return this[We](o,t)}}let[r,n]=na(()=>te.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[Sp](t);if(r||this[xp](t,n))return this[Dt](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[u]=o?na(()=>{te.chmodSync(t.absolute,t.mode)}):[];return this[Dt](u,t)}let[s]=na(()=>te.rmdirSync(t.absolute));this[Dt](s,t)}let[i]=t.absolute===this.cwd?[]:na(()=>pP(t.absolute));this[Dt](i,t)}[wp](t,r){let n=t.mode&4095||this.fmode,i=u=>{let a;try{te.closeSync(s)}catch(c){a=c}(u||a)&&this[We](u||a,t),r()},s;try{s=te.openSync(t.absolute,rA(t.size),n)}catch(u){return i(u)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",u=>this[We](u,t)),t.pipe(o)),o.on("data",u=>{try{te.writeSync(s,u,0,u.length)}catch(a){i(a)}}),o.on("end",u=>{let a=null;if(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{te.futimesSync(s,c,l)}catch(f){try{te.utimesSync(t.absolute,c,l)}catch{a=f}}}if(this[gs](t)){let c=this[ys](t),l=this[Es](t);try{te.fchownSync(s,c,l)}catch(f){try{te.chownSync(t.absolute,c,l)}catch{a=a||f}}}i(a)})}[Cp](t,r){let n=t.mode&4095||this.dmode,i=this[qr](t.absolute,n);if(i){this[We](i,t),r();return}if(t.mtime&&!this.noMtime)try{te.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[gs](t))try{te.chownSync(t.absolute,this[ys](t),this[Es](t))}catch{}r(),t.resume()}[qr](t,r){try{return eA.sync(ht(t),{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(n){return n}}[sa](t,r,n,i){try{te[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[We](s,t)}}};Ds.Sync=Fp;nA.exports=Ds});var aA=g((_N,uA)=>{"use strict";var gP=Qn(),oa=Rp(),sA=require("fs"),oA=gi(),iA=require("path"),Op=ui();uA.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=gP(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&yP(n,t),n.file&&n.sync?EP(n):n.file?bP(n,r):n.sync?_P(n):DP(n)};var yP=(e,t)=>{let r=new Map(t.map(s=>[Op(s),!0])),n=e.filter,i=(s,o)=>{let u=o||iA.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(iA.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(Op(s)):s=>i(Op(s))},EP=e=>{let t=new oa.Sync(e),r=e.file,n=sA.statSync(r),i=e.maxReadSize||16*1024*1024;new oA.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},bP=(e,t)=>{let r=new oa(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),sA.stat(i,(a,c)=>{if(a)u(a);else{let l=new oA.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},_P=e=>new oa.Sync(e),DP=e=>new oa(e)});var cA=g(Ce=>{"use strict";Ce.c=Ce.create=UD();Ce.r=Ce.replace=fp();Ce.t=Ce.list=Vu();Ce.u=Ce.update=QD();Ce.x=Ce.extract=aA();Ce.Pack=Bu();Ce.Unpack=Rp();Ce.Parse=Yu();Ce.ReadEntry=gu();Ce.WriteEntry=qh();Ce.Header=oi();Ce.Pax=Eu();Ce.types=Dh()});var gA=g((wN,mA)=>{function At(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}mA.exports=At;At.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};At.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};At.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};At.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};At.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};At.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};At.prototype.start=At.prototype.try;At.prototype.errors=function(){return this._errors};At.prototype.attempts=function(){return this._attempts};At.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var yA=g(pn=>{var CP=gA();pn.operation=function(e){var t=pn.timeouts(e);return new CP(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};pn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};pn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};pn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(a){var c=pn.operation(t),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(e,l)})}.bind(e,o),e[s].options=t}}});var bA=g((SN,EA)=>{EA.exports=yA()});var DA=g((FN,_A)=>{var SP=bA();function FP(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=SP.operation(s);function u(l){i(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=e(u,l)}catch(p){a(p,l);return}Promise.resolve(f).then(n).catch(function(_){a(_,l)})}o.attempt(c)}return new Promise(r)}_A.exports=FP});var VA=Y(require("http")),KA=Y(require("https")),XA=Y(require("picocolors")),Le=require("commander");var dv=Y(u0());function va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(e){return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function xa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wa(e,t){if(t&&(xi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function $r(e){return $r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$r(e)}function zt(e,t){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zt(e,t)}function Ca(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zt(e,t)}function Sa(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fa(){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 gn(e,t,r){return Fa()?gn=Reflect.construct.bind():gn=function(i,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(i,u),c=new a;return o&&zt(c,o.prototype),c},gn.apply(null,arguments)}function wi(e){var t=typeof Map=="function"?new Map:void 0;return wi=function(n){if(n===null||!Sa(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return gn(n,arguments,$r(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zt(i,n)},wi(e)}var Ia=Y(x0()),Os=Y(require("path")),Ts=Y(require("fs-extra")),mv=function(e){Ca(t,e);function t(r){var n;return va(this,t),n=wa(this,$r(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(wi(Error));function gv(e,t){try{var r=Ts.default.readJsonSync(Os.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function yv(e){try{var t=Ts.default.readJsonSync(Os.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function Ev(e){var t=Ts.default.existsSync(Os.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function w0(e){var t={current:void 0},r=(0,Ia.sync)(function(n){return[yv(n),gv(n,t),Ev(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new mv(e);return r===void 0?t.current:r}var bv=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,_v=/[\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]/,Dv=/[\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]/,La={Space_Separator:bv,ID_Start:_v,ID_Continue:Dv},be={isSpaceSeparator(e){return typeof e=="string"&&La.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||La.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||La.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Ma,Ye,Vt,Bs,mr,wt,Se,$a,Si,Av=function(t,r){Ma=String(t),Ye="start",Vt=[],Bs=0,mr=1,wt=0,Se=void 0,$a=void 0,Si=void 0;do Se=vv(),Cv[Ye]();while(Se.type!=="eof");return typeof r=="function"?qa({"":Si},"",r):Si};function qa(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=qa(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=qa(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var Z,K,Ci,Yt,Q;function vv(){for(Z="default",K="",Ci=!1,Yt=1;;){Q=Kt();let e=S0[Z]();if(e)return e}}function Kt(){if(Ma[Bs])return String.fromCodePoint(Ma.codePointAt(Bs))}function S(){let e=Kt();return e===`
|
|
26
|
+
`?(mr++,wt=0):e?wt+=e.length:wt++,e&&(Bs+=e.length),e}var S0={default(){switch(Q){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
27
|
+
`:case"\r":case"\u2028":case"\u2029":S();return;case"/":S(),Z="comment";return;case void 0:return S(),le("eof")}if(be.isSpaceSeparator(Q)){S();return}return S0[Ye]()},comment(){switch(Q){case"*":S(),Z="multiLineComment";return;case"/":S(),Z="singleLineComment";return}throw fe(S())},multiLineComment(){switch(Q){case"*":S(),Z="multiLineCommentAsterisk";return;case void 0:throw fe(S())}S()},multiLineCommentAsterisk(){switch(Q){case"*":S();return;case"/":S(),Z="default";return;case void 0:throw fe(S())}S(),Z="multiLineComment"},singleLineComment(){switch(Q){case`
|
|
28
|
+
`:case"\r":case"\u2028":case"\u2029":S(),Z="default";return;case void 0:return S(),le("eof")}S()},value(){switch(Q){case"{":case"[":return le("punctuator",S());case"n":return S(),Hr("ull"),le("null",null);case"t":return S(),Hr("rue"),le("boolean",!0);case"f":return S(),Hr("alse"),le("boolean",!1);case"-":case"+":S()==="-"&&(Yt=-1),Z="sign";return;case".":K=S(),Z="decimalPointLeading";return;case"0":K=S(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":K=S(),Z="decimalInteger";return;case"I":return S(),Hr("nfinity"),le("numeric",1/0);case"N":return S(),Hr("aN"),le("numeric",NaN);case'"':case"'":Ci=S()==='"',K="",Z="string";return}throw fe(S())},identifierNameStartEscape(){if(Q!=="u")throw fe(S());S();let e=ja();switch(e){case"$":case"_":break;default:if(!be.isIdStartChar(e))throw C0();break}K+=e,Z="identifierName"},identifierName(){switch(Q){case"$":case"_":case"\u200C":case"\u200D":K+=S();return;case"\\":S(),Z="identifierNameEscape";return}if(be.isIdContinueChar(Q)){K+=S();return}return le("identifier",K)},identifierNameEscape(){if(Q!=="u")throw fe(S());S();let e=ja();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!be.isIdContinueChar(e))throw C0();break}K+=e,Z="identifierName"},sign(){switch(Q){case".":K=S(),Z="decimalPointLeading";return;case"0":K=S(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":K=S(),Z="decimalInteger";return;case"I":return S(),Hr("nfinity"),le("numeric",Yt*(1/0));case"N":return S(),Hr("aN"),le("numeric",NaN)}throw fe(S())},zero(){switch(Q){case".":K+=S(),Z="decimalPoint";return;case"e":case"E":K+=S(),Z="decimalExponent";return;case"x":case"X":K+=S(),Z="hexadecimal";return}return le("numeric",Yt*0)},decimalInteger(){switch(Q){case".":K+=S(),Z="decimalPoint";return;case"e":case"E":K+=S(),Z="decimalExponent";return}if(be.isDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},decimalPointLeading(){if(be.isDigit(Q)){K+=S(),Z="decimalFraction";return}throw fe(S())},decimalPoint(){switch(Q){case"e":case"E":K+=S(),Z="decimalExponent";return}if(be.isDigit(Q)){K+=S(),Z="decimalFraction";return}return le("numeric",Yt*Number(K))},decimalFraction(){switch(Q){case"e":case"E":K+=S(),Z="decimalExponent";return}if(be.isDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},decimalExponent(){switch(Q){case"+":case"-":K+=S(),Z="decimalExponentSign";return}if(be.isDigit(Q)){K+=S(),Z="decimalExponentInteger";return}throw fe(S())},decimalExponentSign(){if(be.isDigit(Q)){K+=S(),Z="decimalExponentInteger";return}throw fe(S())},decimalExponentInteger(){if(be.isDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},hexadecimal(){if(be.isHexDigit(Q)){K+=S(),Z="hexadecimalInteger";return}throw fe(S())},hexadecimalInteger(){if(be.isHexDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},string(){switch(Q){case"\\":S(),K+=xv();return;case'"':if(Ci)return S(),le("string",K);K+=S();return;case"'":if(!Ci)return S(),le("string",K);K+=S();return;case`
|
|
29
|
+
`:case"\r":throw fe(S());case"\u2028":case"\u2029":Sv(Q);break;case void 0:throw fe(S())}K+=S()},start(){switch(Q){case"{":case"[":return le("punctuator",S())}Z="value"},beforePropertyName(){switch(Q){case"$":case"_":K=S(),Z="identifierName";return;case"\\":S(),Z="identifierNameStartEscape";return;case"}":return le("punctuator",S());case'"':case"'":Ci=S()==='"',Z="string";return}if(be.isIdStartChar(Q)){K+=S(),Z="identifierName";return}throw fe(S())},afterPropertyName(){if(Q===":")return le("punctuator",S());throw fe(S())},beforePropertyValue(){Z="value"},afterPropertyValue(){switch(Q){case",":case"}":return le("punctuator",S())}throw fe(S())},beforeArrayValue(){if(Q==="]")return le("punctuator",S());Z="value"},afterArrayValue(){switch(Q){case",":case"]":return le("punctuator",S())}throw fe(S())},end(){throw fe(S())}};function le(e,t){return{type:e,value:t,line:mr,column:wt}}function Hr(e){for(let t of e){if(Kt()!==t)throw fe(S());S()}}function xv(){switch(Kt()){case"b":return S(),"\b";case"f":return S(),"\f";case"n":return S(),`
|
|
30
|
+
`;case"r":return S(),"\r";case"t":return S()," ";case"v":return S(),"\v";case"0":if(S(),be.isDigit(Kt()))throw fe(S());return"\0";case"x":return S(),wv();case"u":return S(),ja();case`
|
|
31
31
|
`:case"\u2028":case"\u2029":return S(),"";case"\r":return S(),Kt()===`
|
|
32
|
-
`&&S(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw fe(S());case void 0:throw fe(S())}return S()}function
|
|
32
|
+
`&&S(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw fe(S());case void 0:throw fe(S())}return S()}function wv(){let e="",t=Kt();if(!be.isHexDigit(t)||(e+=S(),t=Kt(),!be.isHexDigit(t)))throw fe(S());return e+=S(),String.fromCodePoint(parseInt(e,16))}function ja(){let e="",t=4;for(;t-- >0;){let r=Kt();if(!be.isHexDigit(r))throw fe(S());e+=S()}return String.fromCodePoint(parseInt(e,16))}var Cv={start(){if(Se.type==="eof")throw Gr();Na()},beforePropertyName(){switch(Se.type){case"identifier":case"string":$a=Se.value,Ye="afterPropertyName";return;case"punctuator":ks();return;case"eof":throw Gr()}},afterPropertyName(){if(Se.type==="eof")throw Gr();Ye="beforePropertyValue"},beforePropertyValue(){if(Se.type==="eof")throw Gr();Na()},beforeArrayValue(){if(Se.type==="eof")throw Gr();if(Se.type==="punctuator"&&Se.value==="]"){ks();return}Na()},afterPropertyValue(){if(Se.type==="eof")throw Gr();switch(Se.value){case",":Ye="beforePropertyName";return;case"}":ks()}},afterArrayValue(){if(Se.type==="eof")throw Gr();switch(Se.value){case",":Ye="beforeArrayValue";return;case"]":ks()}},end(){}};function Na(){let e;switch(Se.type){case"punctuator":switch(Se.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Se.value;break}if(Si===void 0)Si=e;else{let t=Vt[Vt.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,$a,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")Vt.push(e),Array.isArray(e)?Ye="beforeArrayValue":Ye="beforePropertyName";else{let t=Vt[Vt.length-1];t==null?Ye="end":Array.isArray(t)?Ye="afterArrayValue":Ye="afterPropertyValue"}}function ks(){Vt.pop();let e=Vt[Vt.length-1];e==null?Ye="end":Array.isArray(e)?Ye="afterArrayValue":Ye="afterPropertyValue"}function fe(e){return Ps(e===void 0?`JSON5: invalid end of input at ${mr}:${wt}`:`JSON5: invalid character '${F0(e)}' at ${mr}:${wt}`)}function Gr(){return Ps(`JSON5: invalid end of input at ${mr}:${wt}`)}function C0(){return wt-=5,Ps(`JSON5: invalid identifier character at ${mr}:${wt}`)}function Sv(e){console.warn(`JSON5: '${F0(e)}' in strings is not valid ECMAScript; consider escaping`)}function F0(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function Ps(e){let t=new SyntaxError(e);return t.lineNumber=mr,t.columnNumber=wt,t}var Fv=function(t,r,n){let i=[],s="",o,u,a="",c;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,c=r.quote,r=r.replacer),typeof r=="function")u=r;else if(Array.isArray(r)){o=[];for(let m of r){let A;typeof m=="string"?A=m:(typeof m=="number"||m instanceof String||m instanceof Number)&&(A=String(m)),A!==void 0&&o.indexOf(A)<0&&o.push(A)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),a=" ".substr(0,n)):typeof n=="string"&&(a=n.substr(0,10)),l("",{"":t});function l(m,A){let D=A[m];switch(D!=null&&(typeof D.toJSON5=="function"?D=D.toJSON5(m):typeof D.toJSON=="function"&&(D=D.toJSON(m))),u&&(D=u.call(A,m,D)),D instanceof Number?D=Number(D):D instanceof String?D=String(D):D instanceof Boolean&&(D=D.valueOf()),D){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof D=="string")return f(D,!1);if(typeof D=="number")return String(D);if(typeof D=="object")return Array.isArray(D)?E(D):p(D)}function f(m){let A={"'":.1,'"':.2},D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},R="";for(let W=0;W<m.length;W++){let L=m[W];switch(L){case"'":case'"':A[L]++,R+=L;continue;case"\0":if(be.isDigit(m[W+1])){R+="\\x00";continue}}if(D[L]){R+=D[L];continue}if(L<" "){let X=L.charCodeAt(0).toString(16);R+="\\x"+("00"+X).substring(X.length);continue}R+=L}let M=c||Object.keys(A).reduce((W,L)=>A[W]<A[L]?W:L);return R=R.replace(new RegExp(M,"g"),D[M]),M+R+M}function p(m){if(i.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let A=s;s=s+a;let D=o||Object.keys(m),R=[];for(let W of D){let L=l(W,m);if(L!==void 0){let X=_(W)+":";a!==""&&(X+=" "),X+=L,R.push(X)}}let M;if(R.length===0)M="{}";else{let W;if(a==="")W=R.join(","),M="{"+W+"}";else{let L=`,
|
|
33
33
|
`+s;W=R.join(L),M=`{
|
|
34
34
|
`+s+W+`,
|
|
35
|
-
`+
|
|
36
|
-
`+s,W=
|
|
35
|
+
`+A+"}"}}return i.pop(),s=A,M}function _(m){if(m.length===0)return f(m,!0);let A=String.fromCodePoint(m.codePointAt(0));if(!be.isIdStartChar(A))return f(m,!0);for(let D=A.length;D<m.length;D++)if(!be.isIdContinueChar(String.fromCodePoint(m.codePointAt(D))))return f(m,!0);return m}function E(m){if(i.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let A=s;s=s+a;let D=[];for(let M=0;M<m.length;M++){let W=l(String(M),m);D.push(W!==void 0?W:"null")}let R;if(D.length===0)R="[]";else if(a==="")R="["+D.join(",")+"]";else{let M=`,
|
|
36
|
+
`+s,W=D.join(M);R=`[
|
|
37
37
|
`+s+W+`,
|
|
38
|
-
`+
|
|
38
|
+
`+A+"]"}return i.pop(),s=A,R}},Rv={parse:Av,stringify:Fv},Ov=Rv,Is=Ov;var Ha=Y(require("fs")),Fi=Y(require("path"));function Ri({target:e,cwd:t,contentCheck:r}){let n=Fi.default.parse(t).root,i=!1,s=t;for(;!i&&s!==n;){if(r)try{let o=Ha.default.readFileSync(Fi.default.join(s,e)).toString();if(r(o)){i=!0;break}}catch{}else if(Ha.default.existsSync(Fi.default.join(s,e))){i=!0;break}s=Fi.default.dirname(s)}return i?s:null}function Tv(e){let t=Is.parse(e);return!(t&&"extends"in t)}var Ga={};function Oi(e,t){var s;let r=(s=t==null?void 0:t.cache)!=null?s:!0,n=e||process.cwd();if(r&&Ga[n])return Ga[n];let i=Ri({target:"turbo.json",cwd:n,contentCheck:Tv});if(!i)try{if(i=w0(n),!i)return null}catch{return null}return r&&(Ga[n]=i),i}var Xi=Y(require("fs")),Cr=Y(require("path"));function U0(e){return typeof e=="undefined"||e===null}function kv(e){return typeof e=="object"&&e!==null}function Bv(e){return Array.isArray(e)?e:U0(e)?[]:[e]}function Pv(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function Iv(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function Lv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Nv=U0,Mv=kv,qv=Bv,jv=Iv,$v=Lv,Hv=Pv,we={isNothing:Nv,isObject:Mv,toArray:qv,repeat:jv,isNegativeZero:$v,extend:Hv};function W0(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
39
39
|
|
|
40
|
-
`+e.mark.snippet),n+" "+r):n}function ki(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=
|
|
41
|
-
`+u;for(c=
|
|
40
|
+
`+e.mark.snippet),n+" "+r):n}function ki(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=W0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ki.prototype=Object.create(Error.prototype);ki.prototype.constructor=ki;ki.prototype.toString=function(t){return this.name+": "+W0(this,t)};var Ve=ki;function Ua(e,t,r,n,i){var s="",o="",u=Math.floor(i/2)-1;return n-t>u&&(s=" ... ",t=n-u+s.length),r-n>u&&(o=" ...",r=n+u-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Wa(e,t){return we.repeat(" ",t-e.length)+e}function Gv(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var u="",a,c,l=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+l+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=Ua(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),f),u=we.repeat(" ",t.indent)+Wa((e.line-a+1).toString(),l)+" | "+c.str+`
|
|
41
|
+
`+u;for(c=Ua(e.buffer,n[o],i[o],e.position,f),u+=we.repeat(" ",t.indent)+Wa((e.line+1).toString(),l)+" | "+c.str+`
|
|
42
42
|
`,u+=we.repeat("-",t.indent+l+3+c.pos)+`^
|
|
43
|
-
`,a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=
|
|
44
|
-
`;return u.replace(/\n$/,"")}var
|
|
45
|
-
\r`;function
|
|
46
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
47
|
-
`,t-1))}function
|
|
48
|
-
`,s?1+a:a):i===
|
|
43
|
+
`,a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=Ua(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),f),u+=we.repeat(" ",t.indent)+Wa((e.line+a+1).toString(),l)+" | "+c.str+`
|
|
44
|
+
`;return u.replace(/\n$/,"")}var Uv=Gv,Wv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zv=["scalar","sequence","mapping"];function Yv(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function Vv(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Wv.indexOf(r)===-1)throw new Ve('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Yv(t.styleAliases||null),zv.indexOf(this.kind)===-1)throw new Ve('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Pe=Vv;function R0(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function Kv(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Ya(e){return this.extend(e)}Ya.prototype.extend=function(t){var r=[],n=[];if(t instanceof Pe)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Ve("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Pe))throw new Ve("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ve("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 Ve("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Pe))throw new Ve("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ya.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=R0(i,"implicit"),i.compiledExplicit=R0(i,"explicit"),i.compiledTypeMap=Kv(i.compiledImplicit,i.compiledExplicit),i};var z0=Ya,Y0=new Pe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),V0=new Pe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),K0=new Pe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),X0=new z0({explicit:[Y0,V0,K0]});function Xv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Zv(){return null}function Jv(e){return e===null}var Z0=new Pe("tag:yaml.org,2002:null",{kind:"scalar",resolve:Xv,construct:Zv,predicate:Jv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Qv(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function ex(e){return e==="true"||e==="True"||e==="TRUE"}function tx(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var J0=new Pe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Qv,construct:ex,predicate:tx,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function rx(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function nx(e){return 48<=e&&e<=55}function ix(e){return 48<=e&&e<=57}function sx(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!rx(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!nx(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!ix(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function ox(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function ux(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!we.isNegativeZero(e)}var Q0=new Pe("tag:yaml.org,2002:int",{kind:"scalar",resolve:sx,construct:ox,predicate:ux,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ax=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function cx(e){return!(e===null||!ax.test(e)||e[e.length-1]==="_")}function lx(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var fx=/^[-+]?[0-9]+e/;function hx(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(we.isNegativeZero(e))return"-0.0";return r=e.toString(10),fx.test(r)?r.replace("e",".e"):r}function px(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||we.isNegativeZero(e))}var ed=new Pe("tag:yaml.org,2002:float",{kind:"scalar",resolve:cx,construct:lx,predicate:px,represent:hx,defaultStyle:"lowercase"}),td=X0.extend({implicit:[Z0,J0,Q0,ed]}),rd=td,nd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),id=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 dx(e){return e===null?!1:nd.exec(e)!==null||id.exec(e)!==null}function mx(e){var t,r,n,i,s,o,u,a=0,c=null,l,f,p;if(t=nd.exec(e),t===null&&(t=id.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],u=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(r,n,i,s,o,u,a)),c&&p.setTime(p.getTime()-c),p}function gx(e){return e.toISOString()}var sd=new Pe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:dx,construct:mx,instanceOf:Date,represent:gx});function yx(e){return e==="<<"||e===null}var od=new Pe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yx}),Ja=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
45
|
+
\r`;function Ex(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Ja;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function bx(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Ja,o=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%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 _x(e){var t="",r=0,n,i,s=e.length,o=Ja;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function Dx(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var ud=new Pe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ex,construct:bx,predicate:Dx,represent:_x}),Ax=Object.prototype.hasOwnProperty,vx=Object.prototype.toString;function xx(e){if(e===null)return!0;var t=[],r,n,i,s,o,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],o=!1,vx.call(i)!=="[object Object]")return!1;for(s in i)if(Ax.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function wx(e){return e!==null?e:[]}var ad=new Pe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:xx,construct:wx}),Cx=Object.prototype.toString;function Sx(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],Cx.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function Fx(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var cd=new Pe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Sx,construct:Fx}),Rx=Object.prototype.hasOwnProperty;function Ox(e){if(e===null)return!0;var t,r=e;for(t in r)if(Rx.call(r,t)&&r[t]!==null)return!1;return!0}function Tx(e){return e!==null?e:{}}var ld=new Pe("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ox,construct:Tx}),Qa=rd.extend({implicit:[sd,od],explicit:[ud,ad,cd,ld]}),yr=Object.prototype.hasOwnProperty,Ls=1,fd=2,hd=3,Ns=4,za=1,kx=2,O0=3,Bx=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Px=/[\x85\u2028\u2029]/,Ix=/[,\[\]\{\}]/,pd=/^(?:!|!!|![a-z\-]+!)$/i,dd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function T0(e){return Object.prototype.toString.call(e)}function Rt(e){return e===10||e===13}function Wr(e){return e===9||e===32}function Ze(e){return e===9||e===32||e===10||e===13}function bn(e){return e===44||e===91||e===93||e===123||e===125}function Lx(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Nx(e){return e===120?2:e===117?4:e===85?8:0}function Mx(e){return 48<=e&&e<=57?e-48:-1}function k0(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
46
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function qx(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var md=new Array(256),gd=new Array(256);for(Ur=0;Ur<256;Ur++)md[Ur]=k0(Ur)?1:0,gd[Ur]=k0(Ur);var Ur;function jx(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qa,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function yd(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Uv(r),new Ve(t,r)}function H(e,t){throw yd(e,t)}function Ms(e,t){e.onWarning&&e.onWarning.call(null,yd(e,t))}var B0={YAML:function(t,r,n){var i,s,o;t.version!==null&&H(t,"duplication of %YAML directive"),n.length!==1&&H(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&H(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&H(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Ms(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&H(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],pd.test(i)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),yr.call(t.tagMap,i)&&H(t,'there is a previously declared suffix for "'+i+'" tag handle'),dd.test(s)||H(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{H(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function gr(e,t,r,n){var i,s,o,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,s=u.length;i<s;i+=1)o=u.charCodeAt(i),o===9||32<=o&&o<=1114111||H(e,"expected valid JSON character");else Bx.test(u)&&H(e,"the stream contains non-printable characters");e.result+=u}}function P0(e,t,r,n){var i,s,o,u;for(we.isObject(r)||H(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,u=i.length;o<u;o+=1)s=i[o],yr.call(t,s)||(t[s]=r[s],n[s]=!0)}function _n(e,t,r,n,i,s,o,u,a){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&H(e,"nested arrays are not supported inside keys"),typeof i=="object"&&T0(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&T0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)P0(e,t,s[c],r);else P0(e,t,s,r);else!e.json&&!yr.call(r,i)&&yr.call(t,i)&&(e.line=o||e.line,e.lineStart=u||e.lineStart,e.position=a||e.position,H(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function ec(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ae(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Wr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Rt(i))for(ec(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Ms(e,"deficient indentation"),n}function $s(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ze(r)))}function tc(e,t){t===1?e.result+=" ":t>1&&(e.result+=we.repeat(`
|
|
47
|
+
`,t-1))}function $x(e,t,r){var n,i,s,o,u,a,c,l,f=e.kind,p=e.result,_;if(_=e.input.charCodeAt(e.position),Ze(_)||bn(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(i=e.input.charCodeAt(e.position+1),Ze(i)||r&&bn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,u=!1;_!==0;){if(_===58){if(i=e.input.charCodeAt(e.position+1),Ze(i)||r&&bn(i))break}else if(_===35){if(n=e.input.charCodeAt(e.position-1),Ze(n))break}else{if(e.position===e.lineStart&&$s(e)||r&&bn(_))break;if(Rt(_))if(a=e.line,c=e.lineStart,l=e.lineIndent,Ae(e,!1,-1),e.lineIndent>=t){u=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=c,e.lineIndent=l;break}}u&&(gr(e,s,o,!1),tc(e,e.line-a),s=o=e.position,u=!1),Wr(_)||(o=e.position+1),_=e.input.charCodeAt(++e.position)}return gr(e,s,o,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function Hx(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(gr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Rt(r)?(gr(e,n,i,!0),tc(e,Ae(e,!1,t)),n=i=e.position):e.position===e.lineStart&&$s(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function Gx(e,t){var r,n,i,s,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return gr(e,r,e.position,!0),e.position++,!0;if(u===92){if(gr(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),Rt(u))Ae(e,!1,t);else if(u<256&&md[u])e.result+=gd[u],e.position++;else if((o=Nx(u))>0){for(i=o,s=0;i>0;i--)u=e.input.charCodeAt(++e.position),(o=Lx(u))>=0?s=(s<<4)+o:H(e,"expected hexadecimal character");e.result+=qx(s),e.position++}else H(e,"unknown escape sequence");r=n=e.position}else Rt(u)?(gr(e,r,n,!0),tc(e,Ae(e,!1,t)),r=n=e.position):e.position===e.lineStart&&$s(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function Ux(e,t){var r=!0,n,i,s,o=e.tag,u,a=e.anchor,c,l,f,p,_,E=Object.create(null),m,A,D,R;if(R=e.input.charCodeAt(e.position),R===91)l=93,_=!1,u=[];else if(R===123)l=125,_=!0,u={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),R=e.input.charCodeAt(++e.position);R!==0;){if(Ae(e,!0,t),R=e.input.charCodeAt(e.position),R===l)return e.position++,e.tag=o,e.anchor=a,e.kind=_?"mapping":"sequence",e.result=u,!0;r?R===44&&H(e,"expected the node content, but found ','"):H(e,"missed comma between flow collection entries"),A=m=D=null,f=p=!1,R===63&&(c=e.input.charCodeAt(e.position+1),Ze(c)&&(f=p=!0,e.position++,Ae(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Dn(e,t,Ls,!1,!0),A=e.tag,m=e.result,Ae(e,!0,t),R=e.input.charCodeAt(e.position),(p||e.line===n)&&R===58&&(f=!0,R=e.input.charCodeAt(++e.position),Ae(e,!0,t),Dn(e,t,Ls,!1,!0),D=e.result),_?_n(e,u,E,A,m,D,n,i,s):f?u.push(_n(e,null,E,A,m,D,n,i,s)):u.push(m),Ae(e,!0,t),R=e.input.charCodeAt(e.position),R===44?(r=!0,R=e.input.charCodeAt(++e.position)):r=!1}H(e,"unexpected end of the stream within a flow collection")}function Wx(e,t){var r,n,i=za,s=!1,o=!1,u=t,a=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)za===i?i=f===43?O0:kx:H(e,"repeat of a chomping mode identifier");else if((l=Mx(f))>=0)l===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?H(e,"repeat of an indentation width identifier"):(u=t+l-1,o=!0);else break;if(Wr(f)){do f=e.input.charCodeAt(++e.position);while(Wr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Rt(f)&&f!==0)}for(;f!==0;){for(ec(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineIndent),Rt(f)){a++;continue}if(e.lineIndent<u){i===O0?e.result+=we.repeat(`
|
|
48
|
+
`,s?1+a:a):i===za&&s&&(e.result+=`
|
|
49
49
|
`);break}for(n?Wr(f)?(c=!0,e.result+=we.repeat(`
|
|
50
50
|
`,s?1+a:a)):c?(c=!1,e.result+=we.repeat(`
|
|
51
51
|
`,a+1)):a===0?s&&(e.result+=" "):e.result+=we.repeat(`
|
|
52
52
|
`,a):e.result+=we.repeat(`
|
|
53
|
-
`,s?1+a:a),s=!0,o=!0,a=0,r=e.position;!Rt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);gr(e,r,e.position,!1)}return!0}function
|
|
54
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
53
|
+
`,s?1+a:a),s=!0,o=!0,a=0,r=e.position;!Rt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);gr(e,r,e.position,!1)}return!0}function I0(e,t){var r,n=e.tag,i=e.anchor,s=[],o,u=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),!(a!==45||(o=e.input.charCodeAt(e.position+1),!Ze(o))));){if(u=!0,e.position++,Ae(e,!0,-1)&&e.lineIndent<=t){s.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Dn(e,t,hd,!1,!0),s.push(e.result),Ae(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function zx(e,t,r){var n,i,s,o,u,a,c=e.tag,l=e.anchor,f={},p=Object.create(null),_=null,E=null,m=null,A=!1,D=!1,R;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),R=e.input.charCodeAt(e.position);R!==0;){if(!A&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(R===63||R===58)&&Ze(n))R===63?(A&&(_n(e,f,p,_,E,null,o,u,a),_=E=m=null),D=!0,A=!0,i=!0):A?(A=!1,i=!0):H(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,R=n;else{if(o=e.line,u=e.lineStart,a=e.position,!Dn(e,r,fd,!1,!0))break;if(e.line===s){for(R=e.input.charCodeAt(e.position);Wr(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),Ze(R)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(_n(e,f,p,_,E,null,o,u,a),_=E=m=null),D=!0,A=!1,i=!1,_=e.tag,E=e.result;else if(D)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(D)H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===s||e.lineIndent>t)&&(A&&(o=e.line,u=e.lineStart,a=e.position),Dn(e,t,Ns,!0,i)&&(A?E=e.result:m=e.result),A||(_n(e,f,p,_,E,m,o,u,a),_=E=m=null),Ae(e,!0,-1),R=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&R!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return A&&_n(e,f,p,_,E,null,o,u,a),D&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),D}function Yx(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ze(o);)o===33&&(n?H(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),pd.test(i)||H(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Ix.test(s)&&H(e,"tag suffix cannot contain flow indicator characters")}s&&!dd.test(s)&&H(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{H(e,"tag name is malformed: "+s)}return r?e.tag=s:yr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:H(e,'undeclared tag handle "'+i+'"'),!0}function Vx(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ze(r)&&!bn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Kx(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ze(n)&&!bn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),yr.call(e.anchorMap,r)||H(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ae(e,!0,-1),!0}function Dn(e,t,r,n,i){var s,o,u,a=1,c=!1,l=!1,f,p,_,E,m,A;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=u=Ns===r||hd===r,n&&Ae(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;Yx(e)||Vx(e);)Ae(e,!0,-1)?(c=!0,u=s,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):u=!1;if(u&&(u=c||i),(a===1||Ns===r)&&(Ls===r||fd===r?m=t:m=t+1,A=e.position-e.lineStart,a===1?u&&(I0(e,A)||zx(e,A,m))||Ux(e,m)?l=!0:(o&&Wx(e,m)||Hx(e,m)||Gx(e,m)?l=!0:Kx(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):$x(e,m,Ls===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(l=u&&I0(e,A))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&H(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(E=e.implicitTypes[f],E.resolve(e.result)){e.result=E.construct(e.result),e.tag=E.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(yr.call(e.typeMap[e.kind||"fallback"],e.tag))E=e.typeMap[e.kind||"fallback"][e.tag];else for(E=null,_=e.typeMap.multi[e.kind||"fallback"],f=0,p=_.length;f<p;f+=1)if(e.tag.slice(0,_[f].tag.length)===_[f].tag){E=_[f];break}E||H(e,"unknown tag !<"+e.tag+">"),e.result!==null&&E.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+E.kind+'", not "'+e.kind+'"'),E.resolve(e.result,e.tag)?(e.result=E.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Xx(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ae(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Ze(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&H(e,"directive name must not be less than one character in length");o!==0;){for(;Wr(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Rt(o));break}if(Rt(o))break;for(r=e.position;o!==0&&!Ze(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&ec(e),yr.call(B0,n)?B0[n](e,n,i):Ms(e,'unknown document directive "'+n+'"')}if(Ae(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ae(e,!0,-1)):s&&H(e,"directives end mark is expected"),Dn(e,e.lineIndent-1,Ns,!1,!0),Ae(e,!0,-1),e.checkLineBreaks&&Px.test(e.input.slice(t,e.position))&&Ms(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&$s(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ae(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function Ed(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
54
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new jx(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,H(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;)Xx(r);return r.documents}function Zx(e,t,r){t!==null&&typeof t=="object"&&typeof r=="undefined"&&(r=t,t=null);var n=Ed(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function Jx(e,t){var r=Ed(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ve("expected a single document in the stream, but found more")}}var Qx=Zx,ew=Jx,bd={loadAll:Qx,load:ew},_d=Object.prototype.toString,Dd=Object.prototype.hasOwnProperty,rc=65279,tw=9,Bi=10,rw=13,nw=32,iw=33,sw=34,Va=35,ow=37,uw=38,aw=39,cw=42,Ad=44,lw=45,qs=58,fw=61,hw=62,pw=63,dw=64,vd=91,xd=93,mw=96,wd=123,gw=124,Cd=125,Ne={};Ne[0]="\\0";Ne[7]="\\a";Ne[8]="\\b";Ne[9]="\\t";Ne[10]="\\n";Ne[11]="\\v";Ne[12]="\\f";Ne[13]="\\r";Ne[27]="\\e";Ne[34]='\\"';Ne[92]="\\\\";Ne[133]="\\N";Ne[160]="\\_";Ne[8232]="\\L";Ne[8233]="\\P";var yw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ew=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function bw(e,t){var r,n,i,s,o,u,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],u=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap.fallback[o],a&&Dd.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function _w(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Ve("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+we.repeat("0",n-t.length)+t}var Dw=1,Pi=2;function Aw(e){this.schema=e.schema||Qa,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=we.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=bw(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Pi:Dw,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function L0(e,t){for(var r=we.repeat(" ",t),n=0,i=-1,s="",o,u=e.length;n<u;)i=e.indexOf(`
|
|
55
55
|
`,n),i===-1?(o=e.slice(n),n=u):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
56
|
-
`&&(s+=r),s+=o;return s}function
|
|
57
|
-
`+we.repeat(" ",e.indent*t)}function
|
|
56
|
+
`&&(s+=r),s+=o;return s}function Ka(e,t){return`
|
|
57
|
+
`+we.repeat(" ",e.indent*t)}function vw(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function js(e){return e===nw||e===tw}function Ii(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==rc||65536<=e&&e<=1114111}function N0(e){return Ii(e)&&e!==rc&&e!==rw&&e!==Bi}function M0(e,t,r){var n=N0(e),i=n&&!js(e);return(r?n:n&&e!==Ad&&e!==vd&&e!==xd&&e!==wd&&e!==Cd)&&e!==Va&&!(t===qs&&!i)||N0(t)&&!js(t)&&e===Va||t===qs&&i}function xw(e){return Ii(e)&&e!==rc&&!js(e)&&e!==lw&&e!==pw&&e!==qs&&e!==Ad&&e!==vd&&e!==xd&&e!==wd&&e!==Cd&&e!==Va&&e!==uw&&e!==cw&&e!==iw&&e!==gw&&e!==fw&&e!==hw&&e!==aw&&e!==sw&&e!==ow&&e!==dw&&e!==mw}function ww(e){return!js(e)&&e!==qs}function Ti(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Sd(e){var t=/^\n* /;return t.test(e)}var Fd=1,Xa=2,Rd=3,Od=4,En=5;function Cw(e,t,r,n,i,s,o,u){var a,c=0,l=null,f=!1,p=!1,_=n!==-1,E=-1,m=xw(Ti(e,0))&&ww(Ti(e,e.length-1));if(t||o)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Ti(e,a),!Ii(c))return En;m=m&&M0(c,l,u),l=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Ti(e,a),c===Bi)f=!0,_&&(p=p||a-E-1>n&&e[E+1]!==" ",E=a);else if(!Ii(c))return En;m=m&&M0(c,l,u),l=c}p=p||_&&a-E-1>n&&e[E+1]!==" "}return!f&&!p?m&&!o&&!i(e)?Fd:s===Pi?En:Xa:r>9&&Sd(e)?En:o?s===Pi?En:Xa:p?Od:Rd}function Sw(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Pi?'""':"''";if(!e.noCompatMode&&(yw.indexOf(t)!==-1||Ew.test(t)))return e.quotingType===Pi?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),u=n||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return vw(e,c)}switch(Cw(t,u,e.indent,o,a,e.quotingType,e.forceQuotes&&!n,i)){case Fd:return t;case Xa:return"'"+t.replace(/'/g,"''")+"'";case Rd:return"|"+q0(t,e.indent)+j0(L0(t,s));case Od:return">"+q0(t,e.indent)+j0(L0(Fw(t,o),s));case En:return'"'+Rw(t)+'"';default:throw new Ve("impossible error: invalid scalar style")}}()}function q0(e,t){var r=Sd(e)?String(t):"",n=e[e.length-1]===`
|
|
58
58
|
`,i=n&&(e[e.length-2]===`
|
|
59
59
|
`||e===`
|
|
60
60
|
`),s=i?"+":n?"":"-";return r+s+`
|
|
61
|
-
`}function
|
|
62
|
-
`?e.slice(0,-1):e}function
|
|
63
|
-
`);return c=c!==-1?c:e.length,r.lastIndex=c
|
|
61
|
+
`}function j0(e){return e[e.length-1]===`
|
|
62
|
+
`?e.slice(0,-1):e}function Fw(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
|
|
63
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,$0(e.slice(0,c),t)}(),i=e[0]===`
|
|
64
64
|
`||e[0]===" ",s,o;o=r.exec(e);){var u=o[1],a=o[2];s=a[0]===" ",n+=u+(!i&&!s&&a!==""?`
|
|
65
|
-
`:"")
|
|
65
|
+
`:"")+$0(a,t),i=s}return n}function $0(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,u=0,a="";n=r.exec(e);)u=n.index,u-i>t&&(s=o>i?o:u,a+=`
|
|
66
66
|
`+e.slice(i,s),i=s+1),o=u;return a+=`
|
|
67
67
|
`,e.length-i>t&&o>i?a+=e.slice(i,o)+`
|
|
68
|
-
`+e.slice(o+1):a+=e.slice(i),a.slice(1)}function
|
|
69
|
-
`:""}var
|
|
70
|
-
Please use either turbo.json or turbo.jsonc, but not both.`;throw Te(_),new Error(_)}let p=f[0];try{let _=Xi.default.readFileSync(p,"utf8"),E=Is.parse(_),m=Cr.default.dirname(p)===r;if(m){if("extends"in E)continue}else if(!("extends"in E))continue;n.push({config:E,turboConfigPath:p,workspacePath:Cr.default.dirname(p),isRootConfig:m})}catch(_){Yn(_)}}}return i&&e&&(
|
|
71
|
-
For faster downloads, install git: https://git-scm.com/downloads`),await
|
|
68
|
+
`+e.slice(o+1):a+=e.slice(i),a.slice(1)}function Rw(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Ti(e,i),n=Ne[r],!n&&Ii(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||_w(r);return t}function Ow(e,t,r){var n="",i=e.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],e.replacer&&(u=e.replacer.call(r,String(s),u)),(Xt(e,t,u,!1,!1)||typeof u=="undefined"&&Xt(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function H0(e,t,r,n){var i="",s=e.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],e.replacer&&(a=e.replacer.call(r,String(o),a)),(Xt(e,t+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&Xt(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Ka(e,t)),e.dump&&Bi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Tw(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,u,a,c,l;for(o=0,u=s.length;o<u;o+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),a=s[o],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),Xt(e,t,a,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Xt(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function kw(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),u,a,c,l,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Ve("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)p="",(!n||i!=="")&&(p+=Ka(e,t)),c=o[u],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),Xt(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Bi===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Ka(e,t)),Xt(e,t+1,l,!0,f)&&(e.dump&&Bi===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=s,e.dump=i||"{}"}function G0(e,t,r){var n,i,s,o,u,a;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(u=i[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(r?u.multi&&u.representName?e.tag=u.representName(t):e.tag=u.tag:e.tag="?",u.represent){if(a=e.styleMap[u.tag]||u.defaultStyle,_d.call(u.represent)==="[object Function]")n=u.represent(t,a);else if(Dd.call(u.represent,a))n=u.represent[a](t,a);else throw new Ve("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function Xt(e,t,r,n,i,s,o){e.tag=null,e.dump=r,G0(e,r,!1)||G0(e,r,!0);var u=_d.call(e.dump),a=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var l=u==="[object Object]"||u==="[object Array]",f,p;if(l&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(l&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),u==="[object Object]")n&&Object.keys(e.dump).length!==0?(kw(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(Tw(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(u==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?H0(e,t-1,e.dump,i):H0(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(Ow(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(u==="[object String]")e.tag!=="?"&&Sw(e,e.dump,t,s,a);else{if(u==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ve("unacceptable kind of an object to dump "+u)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Bw(e,t){var r=[],n=[],i,s;for(Za(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Za(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Za(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Za(e[n[i]],t,r)}function Pw(e,t){t=t||{};var r=new Aw(t);r.noRefs||Bw(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Xt(r,0,n,!0,!0)?r.dump+`
|
|
69
|
+
`:""}var Iw=Pw,Lw={dump:Iw};function nc(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Nw=Pe,Mw=z0,qw=X0,jw=td,$w=rd,Hw=Qa,Gw=bd.load,Uw=bd.loadAll,Ww=Lw.dump,zw=Ve,Yw={binary:ud,float:ed,map:K0,null:Z0,pairs:cd,set:ld,timestamp:sd,bool:J0,int:Q0,merge:od,omap:ad,seq:V0,str:Y0},Vw=nc("safeLoad","load"),Kw=nc("safeLoadAll","loadAll"),Xw=nc("safeDump","dump"),Zw={Type:Nw,Schema:Mw,FAILSAFE_SCHEMA:qw,JSON_SCHEMA:jw,CORE_SCHEMA:$w,DEFAULT_SCHEMA:Hw,load:Gw,loadAll:Uw,dump:Ww,YAMLException:zw,types:Yw,safeLoad:Vw,safeLoadAll:Kw,safeDump:Xw},Td=Zw;var ME=Y(E1());var B={};iv(B,{bold:()=>MO,dimmed:()=>jO,error:()=>Te,grey:()=>$O,info:()=>NO,item:()=>HO,log:()=>et,turboBlue:()=>zn,turboGradient:()=>LO,turboLoader:()=>xf,turboRed:()=>IE,underline:()=>qO,warn:()=>Yn,yellow:()=>LE});var Qe=require("picocolors"),TE=Y(nE()),kE=Y(OE()),BE="#0099F7",PE="#F11712",IO="#FFFF00",vf=e=>{let t=GO(e);return r=>`\x1B[38;5;${t}m${r}${(0,Qe.reset)("")}`},LO=(0,kE.default)(BE,PE),zn=vf(BE),IE=vf(PE),LE=vf(IO),xf=e=>(0,TE.default)({text:e,spinner:{frames:[" ",zn("> "),zn(">> "),zn(">>>")]}}),NO=(...e)=>{et(zn((0,Qe.bold)(">>>")),e.join(" "))},MO=(...e)=>{et((0,Qe.bold)(e.join(" ")))},qO=(...e)=>{et((0,Qe.underline)(e.join(" ")))},jO=(...e)=>{et((0,Qe.dim)(e.join(" ")))},$O=(...e)=>{et((0,Qe.gray)(e.join(" ")))},HO=(...e)=>{et(zn((0,Qe.bold)(" \u2022")),e.join(" "))},et=(...e)=>{console.log(...e)},Yn=(...e)=>{console.error(LE((0,Qe.bold)(">>>")),e.join(" "))},Te=(...e)=>{console.error(IE((0,Qe.bold)(">>>")),e.join(" "))};function GO(e){let t=parseInt(e.slice(1),16),r=Math.floor(t/(256*256))%256,n=Math.floor(t/256)%256,i=t%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}var NE="{turbo.json,turbo.jsonc}";var wf={};function WO(e){try{if(Xi.default.existsSync(Cr.default.join(e,"pnpm-workspace.yaml")))return Td.load(Xi.default.readFileSync(Cr.default.join(e,"pnpm-workspace.yaml"),"utf8")).packages||[];let t=JSON.parse(Xi.default.readFileSync(Cr.default.join(e,"package.json"),"utf8"));if(t.workspaces){if("packages"in t.workspaces)return t.workspaces.packages||[];if(Array.isArray(t.workspaces))return t.workspaces}return[]}catch{return[]}}function Cf(e,t){var s;let r=Oi(e,t),n=[],i=(s=t==null?void 0:t.cache)!=null?s:!0;if(i&&e&&e in wf)return wf[e];if(r){let u=WO(r).map(l=>`${l}/${NE}`),a=(0,ME.sync)([NE,...u],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(l=>Cr.default.join(r,l)),c={};for(let l of a){let f=Cr.default.dirname(l);c[f]||(c[f]=[]),c[f].push(l)}for(let[l,f]of Object.entries(c)){if(f.length>1){let _=`Found both turbo.json and turbo.jsonc in the same directory: ${l}
|
|
70
|
+
Please use either turbo.json or turbo.jsonc, but not both.`;throw Te(_),new Error(_)}let p=f[0];try{let _=Xi.default.readFileSync(p,"utf8"),E=Is.parse(_),m=Cr.default.dirname(p)===r;if(m){if("extends"in E)continue}else if(!("extends"in E))continue;n.push({config:E,turboConfigPath:p,workspacePath:Cr.default.dirname(p),isRootConfig:m})}catch(_){Yn(_)}}}return i&&e&&(wf[e]=n),n}var Mk=Y(require("os")),qk=Y(f_());var h_=Y(require("fs-extra")),jk=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function ts(e){let t=h_.default.readdirSync(e).filter(r=>!jk.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:t.length===0,conflicts:t}}var Gf=Y(require("path")),Uf=Y(require("fs-extra")),Wf=Y(require("picocolors"));function tu(e){let t=Gf.default.resolve(e),r=Gf.default.basename(t),n=Uf.default.existsSync(t),i=Uf.default.lstatSync(t,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:t,projectName:r,error:`${Wf.default.dim(r)} is not a directory - please try a different location`};if(n){let{isEmpty:s,conflicts:o}=ts(t);if(!s)return{valid:!1,root:t,projectName:r,error:`${Wf.default.dim(r)} (${t}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:t,projectName:r}}var lA=require("stream"),fA=require("stream/promises"),hA=require("zlib"),Gt=require("fs"),ca=require("fs/promises"),st=require("path"),pA=require("os"),ua=require("child_process"),la=Y(cA());var AP=1e4,dA=12e4;async function Tp(e,t={},r=AP){let n=new AbortController,i=setTimeout(()=>{n.abort()},r);try{return await fetch(e,{...t,signal:n.signal})}finally{clearTimeout(i)}}async function aa(e){try{return(await Tp(e,{method:"HEAD"})).ok}catch{return!1}}async function kp(e,t){let[,r,n,i,s,...o]=e.pathname.split("/"),u=t?t.replace(/^\//,""):o.join("/");if(i===void 0||i===""&&s===void 0)try{let c=await Tp(`https://api.github.com/repos/${r}/${n}`);if(!c.ok)return;let l=await c.json();return{username:r,name:n,branch:l.default_branch,filePath:u}}catch{return}let a=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${u}|/$`),""):s;if(r&&n&&a&&i==="tree")return{username:r,name:n,branch:a,filePath:u}}function Bp({username:e,name:t,branch:r,filePath:n}){let i=`https://api.github.com/repos/${e}/${t}/contents`,s=`${n?`/${n}`:""}/package.json`;return aa(`${i+s}?ref=${r}`)}function Pp(e){try{let t=new URL(e);return aa(t.href)}catch{return aa(`https://api.github.com/repos/vercel/turborepo/contents/examples/${encodeURIComponent(e)}`)}}function vP(e,t,r){if(t.includes("\0"))return!1;let i=t.replace(/\\/g,"/").normalize("NFC"),s=r!=null?r:(0,st.resolve)(e),o=(0,st.resolve)(s,i);return!(0,st.relative)(s,o).startsWith("..")&&(0,st.resolve)(o)===o}function xP(e){return e==="SymbolicLink"||e==="Link"}async function wP({url:e,root:t,strip:r,filter:n}){let i=new AbortController,s=setTimeout(()=>{i.abort()},dA),o=[],u=(0,st.resolve)(t),a=new Set;try{let c=await fetch(e,{signal:i.signal});if(!c.ok||!c.body)throw new Error(`Failed to download: ${c.status}`);let l=lA.Readable.fromWeb(c.body),f=null,p=[],_=new la.Parse({filter:E=>{if(f===null){let m=E.split("/");f=m.length?m[0]:null}return n(E,f)},onentry:E=>{let A=E.path.split("/").slice(r).join("/");if(!A){E.resume();return}if(!vP(t,A,u)){Te(`Blocked path traversal attempt: ${E.path}`),E.resume();return}if(E.type&&xP(E.type)){Yn(`Blocked symlink: ${E.path}`),E.resume();return}let D=(0,st.resolve)(u,A);if(E.type==="Directory")a.has(D)||((0,Gt.mkdirSync)(D,{recursive:!0}),a.add(D)),E.resume();else if(E.type==="File"){let R=(0,st.dirname)(D);a.has(R)||((0,Gt.mkdirSync)(R,{recursive:!0}),a.add(R));let M=(0,Gt.createWriteStream)(D);o.push(M),p.push(new Promise((W,L)=>{M.on("finish",W),M.on("error",L)})),E.pipe(M)}else E.resume()}});await(0,fA.pipeline)(l,(0,hA.createGunzip)(),_),await Promise.all(p)}finally{clearTimeout(s);for(let c of o)c.destroy()}}async function Ip(e,{username:t,name:r,branch:n,filePath:i}){let s=`https://codeload.github.com/${t}/${r}/tar.gz/${n}`,o=(0,st.join)((0,pA.tmpdir)(),`turbo-download-${Date.now()}.tar.gz`),u=await Tp(s,{},dA);if(!u.ok||!u.body)throw new Error(`Failed to download: ${u.status}`);let a=Buffer.from(await u.arrayBuffer());await(0,ca.writeFile)(o,a);let c=null;try{await(0,la.extract)({file:o,cwd:e,strip:i?i.split("/").length+1:1,filter:l=>{if(c===null){let f=l.split("/");c=f.length?f[0]:null}return l.startsWith(`${c}${i?`/${i}/`:"/"}`)}})}finally{await(0,ca.unlink)(o)}}async function Lp(e,t){let r=(0,st.join)(e,".turbo-clone-temp");try{(0,ua.execFileSync)("git",["clone","--filter=blob:none","--no-checkout","--depth","1","--sparse","https://github.com/vercel/turborepo.git",r],{stdio:"pipe"}),(0,ua.execFileSync)("git",["sparse-checkout","set",`examples/${t}`],{cwd:r,stdio:"pipe"}),(0,ua.execFileSync)("git",["checkout"],{cwd:r,stdio:"pipe"});let n=(0,st.join)(r,"examples",t);(0,Gt.cpSync)(n,e,{recursive:!0})}catch{(0,Gt.rmSync)(r,{recursive:!0,force:!0}),Yn(`Git is not available. Downloading example via tarball (slower).
|
|
71
|
+
For faster downloads, install git: https://git-scm.com/downloads`),await wP({url:"https://codeload.github.com/vercel/turborepo/tar.gz/main",root:e,strip:3,filter:(i,s)=>i.startsWith(`${s}/examples/${t}/`)});return}(0,Gt.rmSync)(r,{recursive:!0,force:!0})}var Np=Y(require("fs-extra"));async function Mp(e){try{return await Np.default.access(e,Np.default.constants.W_OK),!0}catch{return!1}}var Ai=Y(require("path")),qp=Y(DA()),dn=Y(require("picocolors")),fa=Y(require("fs-extra"));function RP(e){return typeof e=="object"&&e!==null&&typeof e.message=="string"}var ha=class extends Error{};function OP(e){return e.hostname==="github.com"}async function jp({appPath:e,example:t,isDefaultExample:r,examplePath:n}){let i,s;et();let o=xf("Downloading files...");o.start();try{if(!r){try{s=new URL(t)}catch(A){A.code!=="ERR_INVALID_URL"&&(o.stop(),Te(A),process.exit(1))}s?(OP(s)||(o.stop(),Te(`Invalid URL: ${dn.default.red(`"${t}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),i=await kp(s,n),i||(o.stop(),Te(`Unable to fetch repository information from: ${dn.default.red(`"${t}"`)}. Please fix the URL and try again.`),process.exit(1)),await Bp(i)||(o.stop(),Te(`Could not locate the repository for ${dn.default.red(`"${t}"`)}. Please check that the repository exists and try again.`),process.exit(1))):(await Pp(t)||(o.stop(),Te(`Could not locate an example named ${dn.default.red(`"${t}"`)}. It could be due to the following:
|
|
72
72
|
`,`1. Your spelling of example ${dn.default.red(`"${t}"`)} might be incorrect.
|
|
73
|
-
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let u=Ai.default.resolve(e);await Ip(Ai.default.dirname(u))||(o.stop(),Te("The application path is not writable, please check folder permissions and try again."),Te("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Ai.default.basename(u);try{await ca.default.mkdir(u,{recursive:!0})}catch(D){o.stop(),Te("Unable to create project directory"),Te(D),process.exit(1)}let{isEmpty:c,conflicts:l}=ts(u);c||(o.stop(),Te(`${dn.default.dim(u)} has ${l.length} conflicting ${l.length===1?"file":"files"} - please try a different location`),process.exit(1));let f=process.cwd();if(process.chdir(u),!r&&i){let D=i;await(0,Lp.default)(()=>kp(u,D),{retries:3})}else await(0,Lp.default)(()=>Bp(u,t),{retries:3});o.stop();let p=Ai.default.join(u,"package.json"),_=ca.default.existsSync(p),E=[];if(_){let D;try{D=ca.default.readJsonSync(p)}catch{}D&&E.push(...Object.keys(D.scripts||{}))}let m=e;return Ai.default.join(f,a)===e&&(m=a),{cdPath:m,hasPackageJson:_,availableScripts:E,repoInfo:i}}catch(u){throw o.stop(),new la(SP(u)?u.message:String(u))}}function Mp(e,t={to:"camel"}){switch(t.to){case"camel":return e.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var fa=Y(require("picocolors")),_A=Y(require("update-check"));function qp(e){let{packageInfo:t,upgradeCommand:r}=e,n=(0,_A.default)(t).catch(()=>null);return async function(s=0){try{let o=await n;if(o!=null&&o.latest){et(),et(fa.default.yellow(fa.default.bold(`A new version of \`${t.name}\` is available!`)));let u=typeof r=="function"?await r():r;u&&et(`You can update by running: ${fa.default.cyan(u)}`),et()}process.exit(s)}catch(o){process.env.DEBUG&&Te("Update check failed:",o),process.exit(s)}}}var KA=require("proxy-agent");var jp={name:"@turbo/gen",version:"2.7.2-canary.0",description:"Extend a Turborepo",type:"commonjs",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"git+https://github.com/vercel/turborepo.git",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","package:types":"attw --profile node16 --pack"},dependencies:{"@turbo/workspaces":"workspace:*",commander:"10.0.0","fs-extra":"10.1.0",inquirer:"8.2.4",minimatch:"9.0.0","node-plop":"0.26.3",picocolors:"1.0.1","proxy-agent":"6.5.0","ts-node":"10.9.2","update-check":"1.5.4","validate-npm-package-name":"5.0.0"},devDependencies:{"@arethetypeswrong/cli":"0.18.2","@jest/globals":"29.7.0","@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"9.0.13","@types/inquirer":"8.2.5","@types/node":"18.17.4","@types/validate-npm-package-name":"4.0.0",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"],publishConfig:{access:"public"}};var DA=require("@turbo/workspaces");async function ha({root:e}){let t=e||process.cwd(),r=Oi(t);if(!r)B.error("Unable to infer repository root - override with --root");else try{return(0,DA.getWorkspaceDetails)({root:r})}catch{B.error(`Unable to determine workspace details. Make sure "${t}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var pr=Y(require("path")),da=Y(require("fs-extra")),pa=Y(require("node-plop")),AA=require("ts-node"),vA=require("inquirer");var Ie=class extends Error{constructor(r,n){var i;super(r);this.name="GenerateError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,Ie)}};var xA=["ts","js","cjs"],OP=pr.default.join("turbo","generators"),wA=xA.map(e=>pr.default.join(OP,`config.${e}`)),TP=[...wA,...xA.map(e=>pr.default.join(`plopfile.${e}`))];function CA({project:e,configPath:t}){(0,AA.register)({transpileOnly:!0,cwd:e.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=BP({project:e}),n;if(t){if(!da.default.existsSync(t))throw new Ie(`No config at "${t}"`,{type:"plop_no_config"});try{n=(0,pa.default)(t,{destBasePath:t,force:!1})}catch(i){B.error(i)}}else{for(let i of TP){let s=pr.default.join(e.paths.root,i);if(da.default.existsSync(s))try{n=(0,pa.default)(s,{destBasePath:e.paths.root,force:!1});break}catch(o){B.error(o)}}!n&&r.length>0&&(n=(0,pa.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){B.error(s)}}),n}function $p({project:e,configPath:t}){let r=CA({project:e,configPath:t});if(!r)return[];let i=r.getGeneratorList().map(u=>r.getGenerator(u.name)),s={};i.forEach(u=>{let a=u,c=e.workspaceData.workspaces.find(l=>{if(a.basePath===e.paths.root)return!1;let f=a.basePath.split(pr.default.sep);return f.pop(),f.pop(),pr.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(a)):("root"in s||(s.root=[]),s.root.push(a))});let o=[];return Object.keys(s).forEach(u=>{o.push(new vA.Separator(u)),o.push(...s[u])}),o}function kP({project:e,generator:t}){let r={cwd:process.cwd(),root:e.paths.root,workspace:t.basePath?Ri({cwd:t.basePath,target:"package.json"}):void 0},n={};try{n=xf(t.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function BP({project:e}){let t=[];return e.workspaceData.workspaces.forEach(r=>{for(let n of wA)da.default.existsSync(pr.default.join(r.paths.root,n))&&t.push({config:pr.default.join(r.paths.root,n),root:r.paths.root})}),t}async function SA({project:e,generator:t,bypassArgs:r,configPath:n}){let i=CA({project:e,configPath:n});if(!i)throw new Ie("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(t);if(!s)throw new Ie(`Generator ${t} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),u=await s.runActions({...o,...kP({project:e,generator:s})},{onComment:a=>{B.dimmed(a)}});if(u.failures.length>0)throw u.failures.forEach(a=>{a instanceof Error?B.error(`Error - ${a.message}`):B.error(`Error - ${a.error}. Unable to ${a.type} to "${a.path}"`)}),new Ie(`Failed to run "${t}" generator`,{type:"plop_error_running_generator"});u.changes.length>0&&(B.info("Changes made:"),u.changes.forEach(a=>{a.path&&B.item(`${a.path} (${a.type})`)}))}var mn=require("inquirer");async function FA({generators:e,generator:t}){if(t){if(e.find(n=>!(n instanceof mn.Separator)&&n.name===t))return{selectedGenerator:t};B.warn(`Generator "${t}" not found`),B.log()}return await(0,mn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:e.map(n=>n instanceof mn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function RA(){return(0,mn.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function OA({message:e}){return(0,mn.prompt)({type:"confirm",name:"answer",message:e})}var Hp=Y(require("path")),Gp=Y(require("fs-extra"));async function TA({project:e,template:t}){let r=Hp.default.join(e.paths.root,"turbo","generators"),n=`simple-${t}`;if(await Gp.default.pathExists(r))throw new Ie(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await Gp.default.copy(Hp.default.join(__dirname,"templates",n),r,{recursive:!0})}async function Up({generator:e,project:t,opts:r}){let n=!1,i=$p({project:t,configPath:r.config});if(!i.length){B.error("No generators found."),B.log();let{answer:o}=await OA({message:`Would you like to add a config with a sample custom generator to ${t.name}?`});if(o){n=!0;let{answer:u}=await RA();try{await TA({project:t,template:u})}catch(a){throw a instanceof Ie||B.error("Failed to create generator config"),a}if(B.log(),B.info("Generator config successfully created!"),B.info("Loading generator config..."),B.log(),i=$p({project:t,configPath:r.config}),!i.length){B.error("Error loading generator");return}}else{B.log(),B.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators");return}}let{selectedGenerator:s}=await FA({generators:i,generator:e});try{await SA({project:t,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof Ie)throw o;let u="Failed to run generator";throw o instanceof Error&&(u=o.message),new Ie(u,{type:"plop_error_running_generator"})}finally{n&&(B.log(),B.info("Congrats! You just ran your first Turborepo generator"),B.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators"))}B.log(),B.bold(B.turboGradient(">>> Success!"))}var Vp=Y(require("path")),Ea=Y(require("fs-extra")),HA=Y(require("picocolors"));var As=Y(require("path")),IA=Y(require("fs-extra")),vt=require("inquirer"),LA=require("minimatch"),Yp=Y(require("validate-npm-package-name"));var Wp=Y(require("path"));var kA=Y(require("path"));function BA({project:e}){let r=e.workspaceData.workspaces.map(i=>kA.default.relative(e.paths.root,i.paths.root)),n=new Set;return e.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function zp({project:e,workspace:t}){return Wp.default.relative(e.paths.root,t.paths.root).split(Wp.default.sep)[0]}function ma({project:e}){let t=BA({project:e}),r=t.includes("apps"),n=t.includes("packages"),i={},s=[];return e.workspaceData.workspaces.forEach(o=>{let u=zp({project:e,workspace:o});u!=="apps"&&s.push(o),u in i||(i[u]=[]),i[u].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var PA=require("inquirer");function ga({project:e,type:t,showAllDependencies:r}){let n=ma({project:e}),i=[],s=e.workspaceData.workspaces;r||(t==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:t==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(u=>{let a=zp({project:e,workspace:u});a!==o&&i.push(new PA.Separator(a)),o=a,i.push(u)}),i}async function NA({override:e,suggestion:t,workspaceType:r}){let{validForNewPackages:n}=(0,Yp.default)(e||"");return e&&n?{answer:e}:(0,vt.prompt)({type:"input",name:"answer",default:t,validate:i=>{let{validForNewPackages:s}=(0,Yp.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function MA({override:e,message:t}){return e?{answer:e}:(0,vt.prompt)({type:"list",name:"answer",message:t!=null?t:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function qA({workspaceType:e,workspaceName:t,destination:r,project:n}){let i=t.includes("/")?t.split("/")[1]:t;if(r){let{valid:a,root:c}=tu(r);if(a)return{absolute:c,relative:As.default.relative(n.paths.root,c)}}let s,o=ma({project:n});e==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:e==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:u}=await(0,vt.prompt)({type:"input",name:"answer",message:`Where should "${t}" be added?`,default:s?As.default.relative(n.paths.root,s):void 0,validate:a=>{let c=As.default.join(n.paths.root,a),{valid:l,error:f}=tu(c),p=n.workspaceData.globs.some(_=>(0,LA.minimatch)(a,_));return l&&p?!0:p?f:`${a} is not a valid workspace location`}});return{absolute:As.default.join(n.paths.root,u),relative:u}}async function jA({override:e,workspaces:t,workspaceName:r}){if(e){let i=t.find(s=>s instanceof vt.Separator?!1:s.name===e);if(i)return{answer:i};B.warn(`Workspace "${e}" not found`),B.log()}return await(0,vt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:t.map(i=>i instanceof vt.Separator?i:{name:` ${i.name}`,value:i})})}async function $A({workspaceName:e,project:t,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await IP({message:`Add workspace dependencies to "${e}"?`});if(!s)return i;let{answer:o}=await(0,vt.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${e}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),u=ga({project:t,type:"package",showAllDependencies:n}),a=r?IA.default.readJsonSync(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,vt.prompt)({type:"checkbox",name:"answer",default:a&&Object.keys(a[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${e}?`,loop:!1,choices:u.map(p=>p instanceof vt.Separator?p:{name:` ${p.name}`,value:p.name})}),f=(a==null?void 0:a[c])||{};if(Object.keys(f).length){let p=new Set(Object.keys(f));l.forEach(_=>{p.has(_)||(f[_]=t.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((p,_)=>({...p,[_]:t.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function IP({message:e}){return(0,vt.prompt)({type:"confirm",name:"answer",message:e})}async function ya({project:e,opts:t}){var a;let r,n=t.method==="copy"&&t.copy.type==="external"?((a=t.examplePath)==null?void 0:a.split("/").pop())||t.copy.source.split("/").pop():void 0,{answer:i}=await MA({override:t.type,message:t.method==="copy"&&t.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await NA({override:t.name,workspaceType:i,suggestion:n});if(t.method==="copy"&&t.copy.type==="internal"){let{answer:c}=await jA({override:t.copy.source,workspaces:ga({project:e,type:i}),workspaceName:s});r=c}let o=await qA({workspaceType:i,workspaceName:s,project:e,destination:t.destination}),u=await $A({workspaceName:s,project:e,workspaceSource:r,showAllDependencies:t.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:u}}async function Kp({project:e,opts:t}){let{name:r,location:n,dependencies:i}=await ya({project:e,opts:t}),s={name:r,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(o=>{let u=i[o];u&&Object.keys(u).length>0&&(s[o]=u)}),Ea.default.mkdirSync(n.absolute,{recursive:!0}),Ea.default.writeFileSync(Vp.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),Ea.default.writeFileSync(Vp.default.join(n.absolute,"README.md"),`# \`${r}\``),B.log(),B.log(`${HA.default.bold(B.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var Xp=Y(require("path")),jr=Y(require("fs-extra")),GA=Y(require("picocolors"));async function Zp({project:e,opts:t}){let{name:r,type:n,location:i,source:s,dependencies:o}=await ya({project:e,opts:t}),u=Xp.default.join(i.absolute,"package.json");if(t.copy.type==="external"){B.log(),B.warn("Some manual modifications may be required."),B.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await Np({appPath:i.absolute,example:t.copy.source,examplePath:t.examplePath});try{if(jr.default.existsSync(u)){if((await jr.default.readJSON(u)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if(jr.default.existsSync(Xp.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(c){let l="UNKNOWN_ERROR";c instanceof Error&&(l=c.message),B.error(l),await jr.default.rm(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=B.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await jr.default.copy(s.paths.root,i.absolute,{filter:c}),l.stop()}let a=await jr.default.readJSON(u);a.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(a[c]=l)}),await jr.default.writeJSON(u,a,{spaces:2}),B.log(),B.log(`${GA.default.bold(B.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function NP(e){let{copy:t,...r}=e,n=t===!0||typeof t=="string"?"copy":"empty",i=typeof t=="string"?t:"",s=typeof t=="string"&&t.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function vs(e){let t=await ha(e),r=NP(e);B.log();let n={project:t,opts:r};r.method==="copy"?(r.copy.type==="external"?B.info(`Copy a remote workspace from ${r.copy.source}`):B.info(`Copy an existing workspace from "${t.name}"`),B.log(),await Zp(n)):(B.info(`Add an empty workspace to "${t.name}"`),B.log(),await Kp(n))}async function xs(e,t){let r=await ha(t);B.log(),B.info(`Modify "${r.name}" using custom generators`),B.log(),await Up({generator:e,project:r,opts:t})}function UA(e){try{let t=JSON.parse(e),r={};for(let n in t){let i=Mp(n,{to:"camel"});r[i]=t[n]}return r}catch(t){B.error("Error parsing arguments",t),process.exit(1)}}async function Jp(e,t){var r;if(e==="workspace"){let n=UA(t.json);n.showAllDependencies=(r=n.showAllDependencies)!=null?r:!1;let i=!1,s=n.empty||!0;n.copy===""||n.copy===!0?(i=!0,s=!1):n.copy&&n.copy.length>0&&(i=n.copy,s=!1),n.copy=i,n.empty=s,await vs(n)}else if(e==="run"){let n=UA(t.json),{generatorName:i,...s}=n;await xs(i,s)}else B.error(`Received unknown command - "${e}" (must be one of "workspace" | "run")`),process.exit(1)}var WA=qp({packageInfo:jp}),XA=new KA.ProxyAgent;zA.default.globalAgent=XA;YA.default.globalAgent=XA;var ws=new Le.Command;ws.name(VA.default.bold(B.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(jp.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);ws.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Le.Argument("[generator-name]","The name of the generator to run")).addOption(new Le.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(xs);ws.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Le.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Le.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Le.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
|
73
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1)),i={username:"vercel",name:"turborepo",branch:"main",filePath:`examples/${t}`})}let u=Ai.default.resolve(e);await Mp(Ai.default.dirname(u))||(o.stop(),Te("The application path is not writable, please check folder permissions and try again."),Te("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Ai.default.basename(u);try{await fa.default.mkdir(u,{recursive:!0})}catch(A){o.stop(),Te("Unable to create project directory"),Te(A),process.exit(1)}let{isEmpty:c,conflicts:l}=ts(u);c||(o.stop(),Te(`${dn.default.dim(u)} has ${l.length} conflicting ${l.length===1?"file":"files"} - please try a different location`),process.exit(1));let f=process.cwd();process.chdir(u),r||i?await(0,qp.default)(()=>Ip(u,i!=null?i:{username:"vercel",name:"turborepo",branch:"main",filePath:"examples/basic"}),{retries:3}):await(0,qp.default)(()=>Lp(u,t),{retries:3}),o.stop();let p=Ai.default.join(u,"package.json"),_=fa.default.existsSync(p),E=[];if(_){let A;try{A=fa.default.readJsonSync(p)}catch{}A&&E.push(...Object.keys(A.scripts||{}))}let m=e;return Ai.default.join(f,a)===e&&(m=a),{cdPath:m,hasPackageJson:_,availableScripts:E,repoInfo:i}}catch(u){throw o.stop(),new ha(RP(u)?u.message:String(u))}}function $p(e,t={to:"camel"}){switch(t.to){case"camel":return e.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var pa=Y(require("picocolors")),AA=Y(require("update-check"));function Hp(e){let{packageInfo:t,upgradeCommand:r}=e,n=(0,AA.default)(t).catch(()=>null);return async function(s=0){try{let o=await n;if(o!=null&&o.latest){et(),et(pa.default.yellow(pa.default.bold(`A new version of \`${t.name}\` is available!`)));let u=typeof r=="function"?await r():r;u&&et(`You can update by running: ${pa.default.cyan(u)}`),et()}process.exit(s)}catch(o){process.env.DEBUG&&Te("Update check failed:",o),process.exit(s)}}}var ZA=require("proxy-agent");var Gp={name:"@turbo/gen",version:"2.7.2-canary.1",description:"Extend a Turborepo",type:"commonjs",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"git+https://github.com/vercel/turborepo.git",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","package:types":"attw --profile node16 --pack"},dependencies:{"@turbo/workspaces":"workspace:*",commander:"10.0.0","fs-extra":"10.1.0",inquirer:"8.2.4",minimatch:"9.0.0","node-plop":"0.26.3",picocolors:"1.0.1","proxy-agent":"6.5.0","ts-node":"10.9.2","update-check":"1.5.4","validate-npm-package-name":"5.0.0"},devDependencies:{"@arethetypeswrong/cli":"0.18.2","@jest/globals":"29.7.0","@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"9.0.13","@types/inquirer":"8.2.5","@types/node":"18.17.4","@types/validate-npm-package-name":"4.0.0",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"],publishConfig:{access:"public"}};var vA=require("@turbo/workspaces");async function da({root:e}){let t=e||process.cwd(),r=Oi(t);if(!r)B.error("Unable to infer repository root - override with --root");else try{return(0,vA.getWorkspaceDetails)({root:r})}catch{B.error(`Unable to determine workspace details. Make sure "${t}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var pr=Y(require("path")),ga=Y(require("fs-extra")),ma=Y(require("node-plop")),xA=require("ts-node"),wA=require("inquirer");var Ie=class extends Error{constructor(r,n){var i;super(r);this.name="GenerateError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,Ie)}};var CA=["ts","js","cjs"],kP=pr.default.join("turbo","generators"),SA=CA.map(e=>pr.default.join(kP,`config.${e}`)),BP=[...SA,...CA.map(e=>pr.default.join(`plopfile.${e}`))];function FA({project:e,configPath:t}){(0,xA.register)({transpileOnly:!0,cwd:e.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=IP({project:e}),n;if(t){if(!ga.default.existsSync(t))throw new Ie(`No config at "${t}"`,{type:"plop_no_config"});try{n=(0,ma.default)(t,{destBasePath:t,force:!1})}catch(i){B.error(i)}}else{for(let i of BP){let s=pr.default.join(e.paths.root,i);if(ga.default.existsSync(s))try{n=(0,ma.default)(s,{destBasePath:e.paths.root,force:!1});break}catch(o){B.error(o)}}!n&&r.length>0&&(n=(0,ma.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){B.error(s)}}),n}function Up({project:e,configPath:t}){let r=FA({project:e,configPath:t});if(!r)return[];let i=r.getGeneratorList().map(u=>r.getGenerator(u.name)),s={};i.forEach(u=>{let a=u,c=e.workspaceData.workspaces.find(l=>{if(a.basePath===e.paths.root)return!1;let f=a.basePath.split(pr.default.sep);return f.pop(),f.pop(),pr.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(a)):("root"in s||(s.root=[]),s.root.push(a))});let o=[];return Object.keys(s).forEach(u=>{o.push(new wA.Separator(u)),o.push(...s[u])}),o}function PP({project:e,generator:t}){let r={cwd:process.cwd(),root:e.paths.root,workspace:t.basePath?Ri({cwd:t.basePath,target:"package.json"}):void 0},n={};try{n=Cf(t.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function IP({project:e}){let t=[];return e.workspaceData.workspaces.forEach(r=>{for(let n of SA)ga.default.existsSync(pr.default.join(r.paths.root,n))&&t.push({config:pr.default.join(r.paths.root,n),root:r.paths.root})}),t}async function RA({project:e,generator:t,bypassArgs:r,configPath:n}){let i=FA({project:e,configPath:n});if(!i)throw new Ie("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(t);if(!s)throw new Ie(`Generator ${t} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),u=await s.runActions({...o,...PP({project:e,generator:s})},{onComment:a=>{B.dimmed(a)}});if(u.failures.length>0)throw u.failures.forEach(a=>{a instanceof Error?B.error(`Error - ${a.message}`):B.error(`Error - ${a.error}. Unable to ${a.type} to "${a.path}"`)}),new Ie(`Failed to run "${t}" generator`,{type:"plop_error_running_generator"});u.changes.length>0&&(B.info("Changes made:"),u.changes.forEach(a=>{a.path&&B.item(`${a.path} (${a.type})`)}))}var mn=require("inquirer");async function OA({generators:e,generator:t}){if(t){if(e.find(n=>!(n instanceof mn.Separator)&&n.name===t))return{selectedGenerator:t};B.warn(`Generator "${t}" not found`),B.log()}return await(0,mn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:e.map(n=>n instanceof mn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function TA(){return(0,mn.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function kA({message:e}){return(0,mn.prompt)({type:"confirm",name:"answer",message:e})}var Wp=Y(require("path")),zp=Y(require("fs-extra"));async function BA({project:e,template:t}){let r=Wp.default.join(e.paths.root,"turbo","generators"),n=`simple-${t}`;if(await zp.default.pathExists(r))throw new Ie(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await zp.default.copy(Wp.default.join(__dirname,"templates",n),r,{recursive:!0})}async function Yp({generator:e,project:t,opts:r}){let n=!1,i=Up({project:t,configPath:r.config});if(!i.length){B.error("No generators found."),B.log();let{answer:o}=await kA({message:`Would you like to add a config with a sample custom generator to ${t.name}?`});if(o){n=!0;let{answer:u}=await TA();try{await BA({project:t,template:u})}catch(a){throw a instanceof Ie||B.error("Failed to create generator config"),a}if(B.log(),B.info("Generator config successfully created!"),B.info("Loading generator config..."),B.log(),i=Up({project:t,configPath:r.config}),!i.length){B.error("Error loading generator");return}}else{B.log(),B.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators");return}}let{selectedGenerator:s}=await OA({generators:i,generator:e});try{await RA({project:t,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof Ie)throw o;let u="Failed to run generator";throw o instanceof Error&&(u=o.message),new Ie(u,{type:"plop_error_running_generator"})}finally{n&&(B.log(),B.info("Congrats! You just ran your first Turborepo generator"),B.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators"))}B.log(),B.bold(B.turboGradient(">>> Success!"))}var Zp=Y(require("path")),_a=Y(require("fs-extra")),UA=Y(require("picocolors"));var As=Y(require("path")),NA=Y(require("fs-extra")),vt=require("inquirer"),MA=require("minimatch"),Xp=Y(require("validate-npm-package-name"));var Vp=Y(require("path"));var PA=Y(require("path"));function IA({project:e}){let r=e.workspaceData.workspaces.map(i=>PA.default.relative(e.paths.root,i.paths.root)),n=new Set;return e.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function Kp({project:e,workspace:t}){return Vp.default.relative(e.paths.root,t.paths.root).split(Vp.default.sep)[0]}function ya({project:e}){let t=IA({project:e}),r=t.includes("apps"),n=t.includes("packages"),i={},s=[];return e.workspaceData.workspaces.forEach(o=>{let u=Kp({project:e,workspace:o});u!=="apps"&&s.push(o),u in i||(i[u]=[]),i[u].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var LA=require("inquirer");function Ea({project:e,type:t,showAllDependencies:r}){let n=ya({project:e}),i=[],s=e.workspaceData.workspaces;r||(t==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:t==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(u=>{let a=Kp({project:e,workspace:u});a!==o&&i.push(new LA.Separator(a)),o=a,i.push(u)}),i}async function qA({override:e,suggestion:t,workspaceType:r}){let{validForNewPackages:n}=(0,Xp.default)(e||"");return e&&n?{answer:e}:(0,vt.prompt)({type:"input",name:"answer",default:t,validate:i=>{let{validForNewPackages:s}=(0,Xp.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function jA({override:e,message:t}){return e?{answer:e}:(0,vt.prompt)({type:"list",name:"answer",message:t!=null?t:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function $A({workspaceType:e,workspaceName:t,destination:r,project:n}){let i=t.includes("/")?t.split("/")[1]:t;if(r){let{valid:a,root:c}=tu(r);if(a)return{absolute:c,relative:As.default.relative(n.paths.root,c)}}let s,o=ya({project:n});e==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:e==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:u}=await(0,vt.prompt)({type:"input",name:"answer",message:`Where should "${t}" be added?`,default:s?As.default.relative(n.paths.root,s):void 0,validate:a=>{let c=As.default.join(n.paths.root,a),{valid:l,error:f}=tu(c),p=n.workspaceData.globs.some(_=>(0,MA.minimatch)(a,_));return l&&p?!0:p?f:`${a} is not a valid workspace location`}});return{absolute:As.default.join(n.paths.root,u),relative:u}}async function HA({override:e,workspaces:t,workspaceName:r}){if(e){let i=t.find(s=>s instanceof vt.Separator?!1:s.name===e);if(i)return{answer:i};B.warn(`Workspace "${e}" not found`),B.log()}return await(0,vt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:t.map(i=>i instanceof vt.Separator?i:{name:` ${i.name}`,value:i})})}async function GA({workspaceName:e,project:t,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await NP({message:`Add workspace dependencies to "${e}"?`});if(!s)return i;let{answer:o}=await(0,vt.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${e}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),u=Ea({project:t,type:"package",showAllDependencies:n}),a=r?NA.default.readJsonSync(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,vt.prompt)({type:"checkbox",name:"answer",default:a&&Object.keys(a[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${e}?`,loop:!1,choices:u.map(p=>p instanceof vt.Separator?p:{name:` ${p.name}`,value:p.name})}),f=(a==null?void 0:a[c])||{};if(Object.keys(f).length){let p=new Set(Object.keys(f));l.forEach(_=>{p.has(_)||(f[_]=t.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((p,_)=>({...p,[_]:t.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function NP({message:e}){return(0,vt.prompt)({type:"confirm",name:"answer",message:e})}async function ba({project:e,opts:t}){var a;let r,n=t.method==="copy"&&t.copy.type==="external"?((a=t.examplePath)==null?void 0:a.split("/").pop())||t.copy.source.split("/").pop():void 0,{answer:i}=await jA({override:t.type,message:t.method==="copy"&&t.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await qA({override:t.name,workspaceType:i,suggestion:n});if(t.method==="copy"&&t.copy.type==="internal"){let{answer:c}=await HA({override:t.copy.source,workspaces:Ea({project:e,type:i}),workspaceName:s});r=c}let o=await $A({workspaceType:i,workspaceName:s,project:e,destination:t.destination}),u=await GA({workspaceName:s,project:e,workspaceSource:r,showAllDependencies:t.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:u}}async function Jp({project:e,opts:t}){let{name:r,location:n,dependencies:i}=await ba({project:e,opts:t}),s={name:r,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(o=>{let u=i[o];u&&Object.keys(u).length>0&&(s[o]=u)}),_a.default.mkdirSync(n.absolute,{recursive:!0}),_a.default.writeFileSync(Zp.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),_a.default.writeFileSync(Zp.default.join(n.absolute,"README.md"),`# \`${r}\``),B.log(),B.log(`${UA.default.bold(B.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var Qp=Y(require("path")),jr=Y(require("fs-extra")),WA=Y(require("picocolors"));async function e0({project:e,opts:t}){let{name:r,type:n,location:i,source:s,dependencies:o}=await ba({project:e,opts:t}),u=Qp.default.join(i.absolute,"package.json");if(t.copy.type==="external"){B.log(),B.warn("Some manual modifications may be required."),B.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await jp({appPath:i.absolute,example:t.copy.source,examplePath:t.examplePath});try{if(jr.default.existsSync(u)){if((await jr.default.readJSON(u)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if(jr.default.existsSync(Qp.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(c){let l="UNKNOWN_ERROR";c instanceof Error&&(l=c.message),B.error(l),await jr.default.rm(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=B.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await jr.default.copy(s.paths.root,i.absolute,{filter:c}),l.stop()}let a=await jr.default.readJSON(u);a.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(a[c]=l)}),await jr.default.writeJSON(u,a,{spaces:2}),B.log(),B.log(`${WA.default.bold(B.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function qP(e){let{copy:t,...r}=e,n=t===!0||typeof t=="string"?"copy":"empty",i=typeof t=="string"?t:"",s=typeof t=="string"&&t.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function vs(e){let t=await da(e),r=qP(e);B.log();let n={project:t,opts:r};r.method==="copy"?(r.copy.type==="external"?B.info(`Copy a remote workspace from ${r.copy.source}`):B.info(`Copy an existing workspace from "${t.name}"`),B.log(),await e0(n)):(B.info(`Add an empty workspace to "${t.name}"`),B.log(),await Jp(n))}async function xs(e,t){let r=await da(t);B.log(),B.info(`Modify "${r.name}" using custom generators`),B.log(),await Yp({generator:e,project:r,opts:t})}function zA(e){try{let t=JSON.parse(e),r={};for(let n in t){let i=$p(n,{to:"camel"});r[i]=t[n]}return r}catch(t){B.error("Error parsing arguments",t),process.exit(1)}}async function t0(e,t){var r;if(e==="workspace"){let n=zA(t.json);n.showAllDependencies=(r=n.showAllDependencies)!=null?r:!1;let i=!1,s=n.empty||!0;n.copy===""||n.copy===!0?(i=!0,s=!1):n.copy&&n.copy.length>0&&(i=n.copy,s=!1),n.copy=i,n.empty=s,await vs(n)}else if(e==="run"){let n=zA(t.json),{generatorName:i,...s}=n;await xs(i,s)}else B.error(`Received unknown command - "${e}" (must be one of "workspace" | "run")`),process.exit(1)}var YA=Hp({packageInfo:Gp}),JA=new ZA.ProxyAgent;VA.default.globalAgent=JA;KA.default.globalAgent=JA;var ws=new Le.Command;ws.name(XA.default.bold(B.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(Gp.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);ws.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Le.Argument("[generator-name]","The name of the generator to run")).addOption(new Le.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(xs);ws.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Le.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Le.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Le.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
|
74
74
|
within your monorepo, or a fully qualified GitHub URL with any branch and/or subdirectory.
|
|
75
75
|
`).conflicts("empty")).addOption(new Le.Option("-d, --destination <dir>","Where the new workspace should be created")).addOption(new Le.Option("-t, --type <type>","The type of workspace to create").choices(["app","package"])).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-p, --example-path <path-to-example>",`In a rare case, your GitHub URL might contain a branch name with
|
|
76
76
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
|
77
77
|
In this case, you must specify the path to the example separately:
|
|
78
78
|
--example-path foo/bar
|
|
79
|
-
`).implies({copy:!0})).addOption(new Le.Option("--show-all-dependencies","Do not filter available dependencies by the workspace type").default(!1)).action(vs);ws.command("raw",{hidden:!0}).argument("<type>","The type of generator to run").addOption(new Le.Option("--json <arguments>","Arguments as raw JSON")).action(
|
|
79
|
+
`).implies({copy:!0})).addOption(new Le.Option("--show-all-dependencies","Do not filter available dependencies by the workspace type").default(!1)).action(vs);ws.command("raw",{hidden:!0}).argument("<type>","The type of generator to run").addOption(new Le.Option("--json <arguments>","Arguments as raw JSON")).action(t0);ws.parseAsync().then(()=>YA()).catch(async e=>{B.log(),e instanceof Ie?B.error(e.message):(B.error("Unexpected error. Please report it as a bug:"),B.log(e)),B.log(),await YA(1)});
|
|
80
80
|
/*! Bundled license information:
|
|
81
81
|
|
|
82
82
|
@babel/runtime/helpers/regeneratorRuntime.js:
|