@tsmodule/tsmodule 35.0.0 → 36.0.0
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/commands/build/index.js +12 -12
- package/dist/commands/dev/index.js +14 -14
- package/dist/commands/index.js +14 -14
- package/dist/index.js +11 -11
- package/dist/types/index.js +14 -14
- package/package.json +1 -1
@@ -1,37 +1,37 @@
|
|
1
1
|
|
2
2
|
typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
|
3
3
|
|
4
|
-
var cc=Object.create;var Ds=Object.defineProperty;var hc=Object.getOwnPropertyDescriptor;var dc=Object.getOwnPropertyNames;var pc=Object.getPrototypeOf,_c=Object.prototype.hasOwnProperty;var D=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dc(t))!_c.call(e,i)&&i!==r&&Ds(e,i,{get:()=>t[i],enumerable:!(n=hc(t,i))||n.enumerable});return e};var Qe=(e,t,r)=>(r=e!=null?cc(pc(e)):{},gc(t||!e||!e.__esModule?Ds(r,"default",{value:e,enumerable:!0}):r,e));var Ws=g(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.splitWhen=dt.flatten=void 0;function Pc(e){return e.reduce((t,r)=>[].concat(t,r),[])}dt.flatten=Pc;function Lc(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}dt.splitWhen=Lc});var Vs=g(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.isEnoentCodeError=void 0;function Mc(e){return e.code==="ENOENT"}fr.isEnoentCodeError=Mc});var Ks=g(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.createDirentFromStats=void 0;var Ys=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 Dc(e,t){return new Ys(e,t)}cr.createDirentFromStats=Dc});var Qs=g(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.removeLeadingDotSegment=Ee.escape=Ee.makeAbsolute=Ee.unixify=void 0;var Bc=D("path"),Ic=2,Nc=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function kc(e){return e.replace(/\\/g,"/")}Ee.unixify=kc;function Fc(e,t){return Bc.resolve(e,t)}Ee.makeAbsolute=Fc;function qc(e){return e.replace(Nc,"\\$2")}Ee.escape=qc;function jc(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Ic)}return e}Ee.removeLeadingDotSegment=jc});var Js=g((ay,Xs)=>{Xs.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 eo=g((ly,zs)=>{var $c=Js(),Zs={"{":"}","(":")","[":"]"},Hc=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 a=e[t+1];t+=2;var l=Zs[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},Gc=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=Zs[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};zs.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if($c(t))return!0;var n=Hc;return r&&r.strict===!1&&(n=Gc),n(t)}});var ro=g((uy,to)=>{"use strict";var Uc=eo(),Wc=D("path").posix.dirname,Vc=D("os").platform()==="win32",En="/",Yc=/\\/g,Kc=/[\{\[].*[\}\]]$/,Qc=/(^|[^\\])([\{\[]|\([^\)]+$)/,Xc=/\\([\!\*\?\|\[\]\(\)\{\}])/g;to.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Vc&&t.indexOf(En)<0&&(t=t.replace(Yc,En)),Kc.test(t)&&(t+=En),t+="a";do t=Wc(t);while(Uc(t)||Qc.test(t));return t.replace(Xc,"$1")}});var hr=g(fe=>{"use strict";fe.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;fe.find=(e,t)=>e.nodes.find(r=>r.type===t);fe.exceedsLimit=(e,t,r=1,n)=>n===!1||!fe.isInteger(e)||!fe.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;fe.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)};fe.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;fe.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;fe.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;fe.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);fe.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var dr=g((cy,io)=>{"use strict";var no=hr();io.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&no.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&no.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var oo=g((hy,so)=>{"use strict";so.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var go=g((dy,_o)=>{"use strict";var ao=oo(),Xe=(e,t,r)=>{if(ao(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ao(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),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(Xe.cache.hasOwnProperty(l))return Xe.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let h=po(e)||po(t),c={min:e,max:t,a:f,b:u},S=[],y=[];if(h&&(c.isPadded=h,c.maxLen=String(c.max).length),f<0){let m=u<0?Math.abs(u):1;y=lo(m,Math.abs(f),c,n),f=c.a=0}return u>=0&&(S=lo(f,u,c,n)),c.negatives=y,c.positives=S,c.result=Jc(y,S,n),n.capture===!0?c.result=`(${c.result})`:n.wrap!==!1&&S.length+y.length>1&&(c.result=`(?:${c.result})`),Xe.cache[l]=c,c.result};function Jc(e,t,r){let n=vn(e,t,"-",!1,r)||[],i=vn(t,e,"",!1,r)||[],s=vn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Zc(e,t){let r=1,n=1,i=fo(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=fo(e,r);for(i=co(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=co(t+1,n)-1;return s=[...s],s.sort(th),s}function zc(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=eh(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,f]=n[a];l===f?s+=l:l!=="0"||f!=="9"?s+=rh(l,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function lo(e,t,r,n){let i=Zc(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let f=i[l],u=zc(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+ho(a.count),o=f+1;continue}r.isPadded&&(h=nh(f,r,n)),u.string=h+u.pattern+ho(u.count),s.push(u),o=f+1,a=u}return s}function vn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!uo(t,"string",a)&&s.push(r+a),n&&uo(t,"string",a)&&s.push(r+a)}return s}function eh(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function th(e,t){return e>t?1:t>e?-1:0}function uo(e,t,r){return e.some(n=>n[t]===r)}function fo(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function co(e,t){return e-e%Math.pow(10,t)}function ho(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function rh(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function po(e){return/^-?(0+)\d/.test(e)}function nh(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}}`}}Xe.cache={};Xe.clearCache=()=>Xe.cache={};_o.exports=Xe});var wn=g((py,Ro)=>{"use strict";var ih=D("util"),bo=go(),mo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),sh=e=>t=>e===!0?Number(t):String(t),Sn=e=>typeof e=="number"||typeof e=="string"&&e!=="",kt=e=>Number.isInteger(+e),Rn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},oh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ah=(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},yo=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},lh=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},xo=(e,t,r,n)=>{if(r)return bo(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Eo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return bo(e,t,r)},vo=(...e)=>new RangeError("Invalid range arguments: "+ih.inspect(...e)),So=(e,t,r)=>{if(r.strictRanges===!0)throw vo([e,t]);return[]},uh=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},fh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw vo([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),f=String(r);r=Math.max(Math.abs(r),1);let u=Rn(a)||Rn(l)||Rn(f),h=u?Math.max(a.length,l.length,f.length):0,c=u===!1&&oh(e,t,n)===!1,S=n.transform||sh(c);if(n.toRegex&&r===1)return xo(yo(e,h),yo(t,h),!0,n);let y={negatives:[],positives:[]},m=C=>y[C<0?"negatives":"positives"].push(Math.abs(C)),R=[],v=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):R.push(ah(S(i,v),h,c)),i=o?i-r:i+r,v++;return n.toRegex===!0?r>1?lh(y,n):Eo(R,null,{wrap:!1,...n}):R},ch=(e,t,r=1,n={})=>{if(!kt(e)&&e.length>1||!kt(t)&&t.length>1)return So(e,t,n);let i=n.transform||(c=>String.fromCharCode(c)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return xo(l,f,!1,n);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Eo(u,null,{wrap:!1,options:n}):u},pr=(e,t,r,n={})=>{if(t==null&&Sn(e))return[e];if(!Sn(e)||!Sn(t))return So(e,t,n);if(typeof r=="function")return pr(e,t,1,{transform:r});if(mo(r))return pr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,kt(r)?kt(e)&&kt(t)?fh(e,t,r,i):ch(e,t,Math.max(Math.abs(r),1),i):r!=null&&!mo(r)?uh(r,i):pr(e,t,1,r)};Ro.exports=pr});var To=g((_y,Ao)=>{"use strict";var hh=wn(),wo=hr(),dh=(e,t={})=>{let r=(n,i={})=>{let s=wo.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=wo.reduce(n.nodes),h=hh(...u,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};Ao.exports=dh});var Po=g((gy,Oo)=>{"use strict";var ph=wn(),Co=dr(),pt=hr(),Je=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?pt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Je(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Je(i,s,r):i+s);return pt.flatten(n)},_h=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Je(a.pop(),Co(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Je(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=pt.reduce(i.nodes);if(pt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=ph(...h,t);c.length===0&&(c=Co(i,t)),a.push(Je(a.pop(),c)),i.nodes=[];return}let l=pt.encloseBrace(i),f=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let h=0;h<i.nodes.length;h++){let c=i.nodes[h];if(c.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(c.type==="close"){a.push(Je(a.pop(),f,l));continue}if(c.value&&c.type!=="open"){f.push(Je(f.pop(),c.value));continue}c.nodes&&n(c,i)}return f};return pt.flatten(n(e))};Oo.exports=_h});var Mo=g((my,Lo)=>{"use strict";Lo.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
5
|
-
`,CHAR_NO_BREAK_SPACE:" ",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 ko=g((yy,No)=>{"use strict";var gh=dr(),{MAX_LENGTH:Do,CHAR_BACKSLASH:An,CHAR_BACKTICK:mh,CHAR_COMMA:yh,CHAR_DOT:bh,CHAR_LEFT_PARENTHESES:xh,CHAR_RIGHT_PARENTHESES:Eh,CHAR_LEFT_CURLY_BRACE:vh,CHAR_RIGHT_CURLY_BRACE:Sh,CHAR_LEFT_SQUARE_BRACKET:Bo,CHAR_RIGHT_SQUARE_BRACKET:Io,CHAR_DOUBLE_QUOTE:Rh,CHAR_SINGLE_QUOTE:wh,CHAR_NO_BREAK_SPACE:Ah,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Th}=Mo(),Ch=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Do,r.maxLength):Do;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,a=i,l=0,f=e.length,u=0,h=0,c,S={},y=()=>e[u++],m=R=>{if(R.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&R.type==="text"){a.value+=R.value;return}return o.nodes.push(R),R.parent=o,R.prev=a,a=R,R};for(m({type:"bos"});u<f;)if(o=s[s.length-1],c=y(),!(c===Th||c===Ah)){if(c===An){m({type:"text",value:(t.keepEscaping?c:"")+y()});continue}if(c===Io){m({type:"text",value:"\\"+c});continue}if(c===Bo){l++;let R=!0,v;for(;u<f&&(v=y());){if(c+=v,v===Bo){l++;continue}if(v===An){c+=y();continue}if(v===Io&&(l--,l===0))break}m({type:"text",value:c});continue}if(c===xh){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:c});continue}if(c===Eh){if(o.type!=="paren"){m({type:"text",value:c});continue}o=s.pop(),m({type:"text",value:c}),o=s[s.length-1];continue}if(c===Rh||c===wh||c===mh){let R=c,v;for(t.keepQuotes!==!0&&(c="");u<f&&(v=y());){if(v===An){c+=v+y();continue}if(v===R){t.keepQuotes===!0&&(c+=v);break}c+=v}m({type:"text",value:c});continue}if(c===vh){h++;let R=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=m({type:"brace",open:!0,close:!1,dollar:R,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),m({type:"open",value:c});continue}if(c===Sh){if(o.type!=="brace"){m({type:"text",value:c});continue}let R="close";o=s.pop(),o.close=!0,m({type:R,value:c}),h--,o=s[s.length-1];continue}if(c===yh&&h>0){if(o.ranges>0){o.ranges=0;let R=o.nodes.shift();o.nodes=[R,{type:"text",value:gh(o)}]}m({type:"comma",value:c}),o.commas++;continue}if(c===bh&&h>0&&o.commas===0){let R=o.nodes;if(h===0||R.length===0){m({type:"text",value:c});continue}if(a.type==="dot"){if(o.range=[],a.value+=c,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){R.pop();let v=R[R.length-1];v.value+=a.value+c,a=v,o.ranges--;continue}m({type:"dot",value:c});continue}m({type:"text",value:c})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let R=s[s.length-1],v=R.nodes.indexOf(o);R.nodes.splice(v,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),i};No.exports=Ch});var jo=g((by,qo)=>{"use strict";var Fo=dr(),Oh=To(),Ph=Po(),Lh=ko(),ae=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ae.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ae.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ae.parse=(e,t={})=>Lh(e,t);ae.stringify=(e,t={})=>Fo(typeof e=="string"?ae.parse(e,t):e,t);ae.compile=(e,t={})=>(typeof e=="string"&&(e=ae.parse(e,t)),Oh(e,t));ae.expand=(e,t={})=>{typeof e=="string"&&(e=ae.parse(e,t));let r=Ph(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ae.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ae.compile(e,t):ae.expand(e,t);qo.exports=ae});var Ft=g((xy,Wo)=>{"use strict";var Mh=D("path"),ve="\\\\/",$o=`[^${ve}]`,Oe="\\.",Dh="\\+",Bh="\\?",_r="\\/",Ih="(?=.)",Ho="[^/]",Tn=`(?:${_r}|$)`,Go=`(?:^|${_r})`,Cn=`${Oe}{1,2}${Tn}`,Nh=`(?!${Oe})`,kh=`(?!${Go}${Cn})`,Fh=`(?!${Oe}{0,1}${Tn})`,qh=`(?!${Cn})`,jh=`[^.${_r}]`,$h=`${Ho}*?`,Uo={DOT_LITERAL:Oe,PLUS_LITERAL:Dh,QMARK_LITERAL:Bh,SLASH_LITERAL:_r,ONE_CHAR:Ih,QMARK:Ho,END_ANCHOR:Tn,DOTS_SLASH:Cn,NO_DOT:Nh,NO_DOTS:kh,NO_DOT_SLASH:Fh,NO_DOTS_SLASH:qh,QMARK_NO_DOT:jh,STAR:$h,START_ANCHOR:Go},Hh={...Uo,SLASH_LITERAL:`[${ve}]`,QMARK:$o,STAR:`${$o}*?`,DOTS_SLASH:`${Oe}{1,2}(?:[${ve}]|$)`,NO_DOT:`(?!${Oe})`,NO_DOTS:`(?!(?:^|[${ve}])${Oe}{1,2}(?:[${ve}]|$))`,NO_DOT_SLASH:`(?!${Oe}{0,1}(?:[${ve}]|$))`,NO_DOTS_SLASH:`(?!${Oe}{1,2}(?:[${ve}]|$))`,QMARK_NO_DOT:`[^.${ve}]`,START_ANCHOR:`(?:^|[${ve}])`,END_ANCHOR:`(?:[${ve}]|$)`},Gh={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"};Wo.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Gh,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:Mh.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?Hh:Uo}}});var qt=g(se=>{"use strict";var Uh=D("path"),Wh=process.platform==="win32",{REGEX_BACKSLASH:Vh,REGEX_REMOVE_BACKSLASH:Yh,REGEX_SPECIAL_CHARS:Kh,REGEX_SPECIAL_CHARS_GLOBAL:Qh}=Ft();se.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);se.hasRegexChars=e=>Kh.test(e);se.isRegexChar=e=>e.length===1&&se.hasRegexChars(e);se.escapeRegex=e=>e.replace(Qh,"\\$1");se.toPosixSlashes=e=>e.replace(Vh,"/");se.removeBackslashes=e=>e.replace(Yh,t=>t==="\\"?"":t);se.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};se.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Wh===!0||Uh.sep==="\\";se.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?se.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};se.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};se.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var zo=g((vy,Zo)=>{"use strict";var Vo=qt(),{CHAR_ASTERISK:On,CHAR_AT:Xh,CHAR_BACKWARD_SLASH:jt,CHAR_COMMA:Jh,CHAR_DOT:Pn,CHAR_EXCLAMATION_MARK:Ln,CHAR_FORWARD_SLASH:Jo,CHAR_LEFT_CURLY_BRACE:Mn,CHAR_LEFT_PARENTHESES:Dn,CHAR_LEFT_SQUARE_BRACKET:Zh,CHAR_PLUS:zh,CHAR_QUESTION_MARK:Yo,CHAR_RIGHT_CURLY_BRACE:ed,CHAR_RIGHT_PARENTHESES:Ko,CHAR_RIGHT_SQUARE_BRACKET:td}=Ft(),Qo=e=>e===Jo||e===jt,Xo=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},rd=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=e,f=-1,u=0,h=0,c=!1,S=!1,y=!1,m=!1,R=!1,v=!1,C=!1,N=!1,Z=!1,A=!1,j=0,O,w,E={value:"",depth:0,isGlob:!1},q=()=>f>=n,_=()=>l.charCodeAt(f+1),k=()=>(O=w,l.charCodeAt(++f));for(;f<n;){w=k();let ne;if(w===jt){C=E.backslashes=!0,w=k(),w===Mn&&(v=!0);continue}if(v===!0||w===Mn){for(j++;q()!==!0&&(w=k());){if(w===jt){C=E.backslashes=!0,k();continue}if(w===Mn){j++;continue}if(v!==!0&&w===Pn&&(w=k())===Pn){if(c=E.isBrace=!0,y=E.isGlob=!0,A=!0,i===!0)continue;break}if(v!==!0&&w===Jh){if(c=E.isBrace=!0,y=E.isGlob=!0,A=!0,i===!0)continue;break}if(w===ed&&(j--,j===0)){v=!1,c=E.isBrace=!0,A=!0;break}}if(i===!0)continue;break}if(w===Jo){if(s.push(f),o.push(E),E={value:"",depth:0,isGlob:!1},A===!0)continue;if(O===Pn&&f===u+1){u+=2;continue}h=f+1;continue}if(r.noext!==!0&&(w===zh||w===Xh||w===On||w===Yo||w===Ln)===!0&&_()===Dn){if(y=E.isGlob=!0,m=E.isExtglob=!0,A=!0,w===Ln&&f===u&&(Z=!0),i===!0){for(;q()!==!0&&(w=k());){if(w===jt){C=E.backslashes=!0,w=k();continue}if(w===Ko){y=E.isGlob=!0,A=!0;break}}continue}break}if(w===On){if(O===On&&(R=E.isGlobstar=!0),y=E.isGlob=!0,A=!0,i===!0)continue;break}if(w===Yo){if(y=E.isGlob=!0,A=!0,i===!0)continue;break}if(w===Zh){for(;q()!==!0&&(ne=k());){if(ne===jt){C=E.backslashes=!0,k();continue}if(ne===td){S=E.isBracket=!0,y=E.isGlob=!0,A=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&w===Ln&&f===u){N=E.negated=!0,u++;continue}if(r.noparen!==!0&&w===Dn){if(y=E.isGlob=!0,i===!0){for(;q()!==!0&&(w=k());){if(w===Dn){C=E.backslashes=!0,w=k();continue}if(w===Ko){A=!0;break}}continue}break}if(y===!0){if(A=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,y=!1);let H=l,Ie="",d="";u>0&&(Ie=l.slice(0,u),l=l.slice(u),h-=u),H&&y===!0&&h>0?(H=l.slice(0,h),d=l.slice(h)):y===!0?(H="",d=l):H=l,H&&H!==""&&H!=="/"&&H!==l&&Qo(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),r.unescape===!0&&(d&&(d=Vo.removeBackslashes(d)),H&&C===!0&&(H=Vo.removeBackslashes(H)));let p={prefix:Ie,input:e,start:u,base:H,glob:d,isBrace:c,isBracket:S,isGlob:y,isExtglob:m,isGlobstar:R,negated:N,negatedExtglob:Z};if(r.tokens===!0&&(p.maxDepth=0,Qo(w)||o.push(E),p.tokens=o),r.parts===!0||r.tokens===!0){let ne;for(let I=0;I<s.length;I++){let be=ne?ne+1:u,xe=s[I],oe=e.slice(be,xe);r.tokens&&(I===0&&u!==0?(o[I].isPrefix=!0,o[I].value=Ie):o[I].value=oe,Xo(o[I]),p.maxDepth+=o[I].depth),(I!==0||oe!=="")&&a.push(oe),ne=xe}if(ne&&ne+1<e.length){let I=e.slice(ne+1);a.push(I),r.tokens&&(o[o.length-1].value=I,Xo(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};Zo.exports=rd});var ra=g((Sy,ta)=>{"use strict";var gr=Ft(),le=qt(),{MAX_LENGTH:mr,POSIX_REGEX_SOURCE:nd,REGEX_NON_SPECIAL_CHARS:id,REGEX_SPECIAL_CHARS_BACKREF:sd,REPLACEMENTS:ea}=gr,od=(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=>le.escapeRegex(i)).join("..")}return r},_t=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Bn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ea[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(mr,r.maxLength):mr,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],a=r.capture?"":"?:",l=le.isWindows(t),f=gr.globChars(l),u=gr.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:c,SLASH_LITERAL:S,ONE_CHAR:y,DOTS_SLASH:m,NO_DOT:R,NO_DOT_SLASH:v,NO_DOTS_SLASH:C,QMARK:N,QMARK_NO_DOT:Z,STAR:A,START_ANCHOR:j}=f,O=x=>`(${a}(?:(?!${j}${x.dot?m:h}).)*?)`,w=r.dot?"":R,E=r.dot?N:Z,q=r.bash===!0?O(r):A;r.capture&&(q=`(${q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={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=le.removePrefix(e,_),i=e.length;let k=[],H=[],Ie=[],d=s,p,ne=()=>_.index===i-1,I=_.peek=(x=1)=>e[_.index+x],be=_.advance=()=>e[++_.index]||"",xe=()=>e.slice(_.index+1),oe=(x="",G=0)=>{_.consumed+=x,_.index+=G},ir=x=>{_.output+=x.output!=null?x.output:x.value,oe(x.value)},uc=()=>{let x=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)be(),_.start++,x++;return x%2===0?!1:(_.negated=!0,_.start++,!0)},sr=x=>{_[x]++,Ie.push(x)},Ke=x=>{_[x]--,Ie.pop()},M=x=>{if(d.type==="globstar"){let G=_.braces>0&&(x.type==="comma"||x.type==="brace"),b=x.extglob===!0||k.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!G&&!b&&(_.output=_.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=q,_.output+=d.output)}if(k.length&&x.type!=="paren"&&(k[k.length-1].inner+=x.value),(x.value||x.output)&&ir(x),d&&d.type==="text"&&x.type==="text"){d.value+=x.value,d.output=(d.output||"")+x.value;return}x.prev=d,o.push(x),d=x},or=(x,G)=>{let b={...u[G],conditions:1,inner:""};b.prev=d,b.parens=_.parens,b.output=_.output;let P=(r.capture?"(":"")+b.open;sr("parens"),M({type:x,value:G,output:_.output?"":y}),M({type:"paren",extglob:!0,value:be(),output:P}),k.push(b)},fc=x=>{let G=x.close+(r.capture?")":""),b;if(x.type==="negate"){let P=q;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(P=O(r)),(P!==q||ne()||/^\)+$/.test(xe()))&&(G=x.close=`)$))${P}`),x.inner.includes("*")&&(b=xe())&&/^\.[^\\/.]+$/.test(b)){let V=Bn(b,{...t,fastpaths:!1}).output;G=x.close=`)${V})${P})`}x.prev.type==="bos"&&(_.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:p,output:G}),Ke("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let x=!1,G=e.replace(sd,(b,P,V,ie,J,gn)=>ie==="\\"?(x=!0,b):ie==="?"?P?P+ie+(J?N.repeat(J.length):""):gn===0?E+(J?N.repeat(J.length):""):N.repeat(V.length):ie==="."?h.repeat(V.length):ie==="*"?P?P+ie+(J?q:""):q:P?b:`\\${b}`);return x===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),G===e&&r.contains===!0?(_.output=e,_):(_.output=le.wrapOutput(G,_,t),_)}for(;!ne();){if(p=be(),p==="\0")continue;if(p==="\\"){let b=I();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){p+="\\",M({type:"text",value:p});continue}let P=/^\\+/.exec(xe()),V=0;if(P&&P[0].length>2&&(V=P[0].length,_.index+=V,V%2!==0&&(p+="\\")),r.unescape===!0?p=be():p+=be(),_.brackets===0){M({type:"text",value:p});continue}}if(_.brackets>0&&(p!=="]"||d.value==="["||d.value==="[^")){if(r.posix!==!1&&p===":"){let b=d.value.slice(1);if(b.includes("[")&&(d.posix=!0,b.includes(":"))){let P=d.value.lastIndexOf("["),V=d.value.slice(0,P),ie=d.value.slice(P+2),J=nd[ie];if(J){d.value=V+J,_.backtrack=!0,be(),!s.output&&o.indexOf(d)===1&&(s.output=y);continue}}}(p==="["&&I()!==":"||p==="-"&&I()==="]")&&(p=`\\${p}`),p==="]"&&(d.value==="["||d.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&d.value==="["&&(p="^"),d.value+=p,ir({value:p});continue}if(_.quotes===1&&p!=='"'){p=le.escapeRegex(p),d.value+=p,ir({value:p});continue}if(p==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:p});continue}if(p==="("){sr("parens"),M({type:"paren",value:p});continue}if(p===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(_t("opening","("));let b=k[k.length-1];if(b&&_.parens===b.parens+1){fc(k.pop());continue}M({type:"paren",value:p,output:_.parens?")":"\\)"}),Ke("parens");continue}if(p==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));p=`\\${p}`}else sr("brackets");M({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){M({type:"text",value:p,output:`\\${p}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(_t("opening","["));M({type:"text",value:p,output:`\\${p}`});continue}Ke("brackets");let b=d.value.slice(1);if(d.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(p=`/${p}`),d.value+=p,ir({value:p}),r.literalBrackets===!1||le.hasRegexChars(b))continue;let P=le.escapeRegex(d.value);if(_.output=_.output.slice(0,-d.value.length),r.literalBrackets===!0){_.output+=P,d.value=P;continue}d.value=`(${a}${P}|${d.value})`,_.output+=d.value;continue}if(p==="{"&&r.nobrace!==!0){sr("braces");let b={type:"brace",value:p,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};H.push(b),M(b);continue}if(p==="}"){let b=H[H.length-1];if(r.nobrace===!0||!b){M({type:"text",value:p,output:p});continue}let P=")";if(b.dots===!0){let V=o.slice(),ie=[];for(let J=V.length-1;J>=0&&(o.pop(),V[J].type!=="brace");J--)V[J].type!=="dots"&&ie.unshift(V[J].value);P=od(ie,r),_.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let V=_.output.slice(0,b.outputIndex),ie=_.tokens.slice(b.tokensIndex);b.value=b.output="\\{",p=P="\\}",_.output=V;for(let J of ie)_.output+=J.output||J.value}M({type:"brace",value:p,output:P}),Ke("braces"),H.pop();continue}if(p==="|"){k.length>0&&k[k.length-1].conditions++,M({type:"text",value:p});continue}if(p===","){let b=p,P=H[H.length-1];P&&Ie[Ie.length-1]==="braces"&&(P.comma=!0,b="|"),M({type:"comma",value:p,output:b});continue}if(p==="/"){if(d.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",o.pop(),d=s;continue}M({type:"slash",value:p,output:S});continue}if(p==="."){if(_.braces>0&&d.type==="dot"){d.value==="."&&(d.output=h);let b=H[H.length-1];d.type="dots",d.output+=p,d.value+=p,b.dots=!0;continue}if(_.braces+_.parens===0&&d.type!=="bos"&&d.type!=="slash"){M({type:"text",value:p,output:h});continue}M({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(d&&d.value==="(")&&r.noextglob!==!0&&I()==="("&&I(2)!=="?"){or("qmark",p);continue}if(d&&d.type==="paren"){let P=I(),V=p;if(P==="<"&&!le.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(d.value==="("&&!/[!=<:]/.test(P)||P==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(V=`\\${p}`),M({type:"text",value:p,output:V});continue}if(r.dot!==!0&&(d.type==="slash"||d.type==="bos")){M({type:"qmark",value:p,output:Z});continue}M({type:"qmark",value:p,output:N});continue}if(p==="!"){if(r.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){or("negate",p);continue}if(r.nonegate!==!0&&_.index===0){uc();continue}}if(p==="+"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){or("plus",p);continue}if(d&&d.value==="("||r.regex===!1){M({type:"plus",value:p,output:c});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||_.parens>0){M({type:"plus",value:p});continue}M({type:"plus",value:c});continue}if(p==="@"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){M({type:"at",extglob:!0,value:p,output:""});continue}M({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let b=id.exec(xe());b&&(p+=b[0],_.index+=b[0].length),M({type:"text",value:p});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=p,d.output=q,_.backtrack=!0,_.globstar=!0,oe(p);continue}let x=xe();if(r.noextglob!==!0&&/^\([^?]/.test(x)){or("star",p);continue}if(d.type==="star"){if(r.noglobstar===!0){oe(p);continue}let b=d.prev,P=b.prev,V=b.type==="slash"||b.type==="bos",ie=P&&(P.type==="star"||P.type==="globstar");if(r.bash===!0&&(!V||x[0]&&x[0]!=="/")){M({type:"star",value:p,output:""});continue}let J=_.braces>0&&(b.type==="comma"||b.type==="brace"),gn=k.length&&(b.type==="pipe"||b.type==="paren");if(!V&&b.type!=="paren"&&!J&&!gn){M({type:"star",value:p,output:""});continue}for(;x.slice(0,3)==="/**";){let ar=e[_.index+4];if(ar&&ar!=="/")break;x=x.slice(3),oe("/**",3)}if(b.type==="bos"&&ne()){d.type="globstar",d.value+=p,d.output=O(r),_.output=d.output,_.globstar=!0,oe(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!ie&&ne()){_.output=_.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=O(r)+(r.strictSlashes?")":"|$)"),d.value+=p,_.globstar=!0,_.output+=b.output+d.output,oe(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&x[0]==="/"){let ar=x[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=`${O(r)}${S}|${S}${ar})`,d.value+=p,_.output+=b.output+d.output,_.globstar=!0,oe(p+be()),M({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&x[0]==="/"){d.type="globstar",d.value+=p,d.output=`(?:^|${S}|${O(r)}${S})`,_.output=d.output,_.globstar=!0,oe(p+be()),M({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-d.output.length),d.type="globstar",d.output=O(r),d.value+=p,_.output+=d.output,_.globstar=!0,oe(p);continue}let G={type:"star",value:p,output:q};if(r.bash===!0){G.output=".*?",(d.type==="bos"||d.type==="slash")&&(G.output=w+G.output),M(G);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&r.regex===!0){G.output=p,M(G);continue}(_.index===_.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(_.output+=v,d.output+=v):r.dot===!0?(_.output+=C,d.output+=C):(_.output+=w,d.output+=w),I()!=="*"&&(_.output+=y,d.output+=y)),M(G)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));_.output=le.escapeLast(_.output,"["),Ke("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing",")"));_.output=le.escapeLast(_.output,"("),Ke("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","}"));_.output=le.escapeLast(_.output,"{"),Ke("braces")}if(r.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${S}?`}),_.backtrack===!0){_.output="";for(let x of _.tokens)_.output+=x.output!=null?x.output:x.value,x.suffix&&(_.output+=x.suffix)}return _};Bn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(mr,r.maxLength):mr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=ea[e]||e;let s=le.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:c,STAR:S,START_ANCHOR:y}=gr.globChars(s),m=r.dot?h:u,R=r.dot?c:u,v=r.capture?"":"?:",C={negated:!1,prefix:""},N=r.bash===!0?".*?":S;r.capture&&(N=`(${N})`);let Z=w=>w.noglobstar===!0?N:`(${v}(?:(?!${y}${w.dot?f:o}).)*?)`,A=w=>{switch(w){case"*":return`${m}${l}${N}`;case".*":return`${o}${l}${N}`;case"*.*":return`${m}${N}${o}${l}${N}`;case"*/*":return`${m}${N}${a}${l}${R}${N}`;case"**":return m+Z(r);case"**/*":return`(?:${m}${Z(r)}${a})?${R}${l}${N}`;case"**/*.*":return`(?:${m}${Z(r)}${a})?${R}${N}${o}${l}${N}`;case"**/.*":return`(?:${m}${Z(r)}${a})?${o}${l}${N}`;default:{let E=/^(.*?)\.(\w+)$/.exec(w);if(!E)return;let q=A(E[1]);return q?q+o+E[2]:void 0}}},j=le.removePrefix(e,C),O=A(j);return O&&r.strictSlashes!==!0&&(O+=`${a}?`),O};ta.exports=Bn});var ia=g((Ry,na)=>{"use strict";var ad=D("path"),ld=zo(),In=ra(),Nn=qt(),ud=Ft(),fd=e=>e&&typeof e=="object"&&!Array.isArray(e),K=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(c=>K(c,t,r));return c=>{for(let S of u){let y=S(c);if(y)return y}return!1}}let n=fd(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=Nn.isWindows(t),o=n?K.compileRe(e,t):K.makeRe(e,t,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=K(i.ignore,u,r)}let f=(u,h=!1)=>{let{isMatch:c,match:S,output:y}=K.test(u,o,t,{glob:e,posix:s}),m={glob:e,state:a,regex:o,posix:s,input:u,output:y,match:S,isMatch:c};return typeof i.onResult=="function"&&i.onResult(m),c===!1?(m.isMatch=!1,h?m:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,h?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),h?m:!0)};return r&&(f.state=a),f};K.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?Nn.toPosixSlashes:null),a=e===n,l=a&&o?o(e):e;return a===!1&&(l=o?o(e):e,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=K.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:Boolean(a),match:a,output:l}};K.matchBase=(e,t,r,n=Nn.isWindows(r))=>(t instanceof RegExp?t:K.makeRe(t,r)).test(ad.basename(e));K.isMatch=(e,t,r)=>K(t,r)(e);K.parse=(e,t)=>Array.isArray(e)?e.map(r=>K.parse(r,t)):In(e,{...t,fastpaths:!1});K.scan=(e,t)=>ld(e,t);K.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let l=K.toRegex(a,t);return n===!0&&(l.state=e),l};K.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=In.fastpaths(e,t)),i.output||(i=In(e,t)),K.compileRe(i,t,r,n)};K.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/$^/}};K.constants=ud;na.exports=K});var oa=g((wy,sa)=>{"use strict";sa.exports=ia()});var ca=g((Ay,fa)=>{"use strict";var la=D("util"),ua=jo(),Se=oa(),kn=qt(),aa=e=>e===""||e==="./",U=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let h=Se(String(t[u]),{...r,onResult:a},!0),c=h.state.negated||h.state.negatedExtglob;c&&o++;for(let S of e){let y=h(S,!0);!(c?!y.isMatch:y.isMatch)||(c?n.add(y.output):(n.delete(y.output),i.add(y.output)))}}let f=(o===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&f.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(u=>u.replace(/\\/g,"")):t}return f};U.match=U;U.matcher=(e,t)=>Se(e,t);U.isMatch=(e,t,r)=>Se(t,r)(e);U.any=U.isMatch;U.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(U(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};U.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${la.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>U.contains(e,n,r));if(typeof t=="string"){if(aa(e)||aa(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return U.isMatch(e,t,{...r,contains:!0})};U.matchKeys=(e,t,r)=>{if(!kn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=U(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};U.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Se(String(i),r);if(n.some(o=>s(o)))return!0}return!1};U.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Se(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};U.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${la.inspect(e)}"`);return[].concat(t).every(n=>Se(n,r)(e))};U.capture=(e,t,r)=>{let n=kn.isWindows(r),s=Se.makeRe(String(e),{...r,capture:!0}).exec(n?kn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};U.makeRe=(...e)=>Se.makeRe(...e);U.scan=(...e)=>Se.scan(...e);U.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of ua(String(n),t))r.push(Se.parse(i,t));return r};U.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:ua(e,t)};U.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return U.braces(e,{...t,expand:!0})};fa.exports=U});var ba=g(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.matchAny=T.convertPatternsToRe=T.makeRe=T.getPatternParts=T.expandBraceExpansion=T.expandPatternsWithBraceExpansion=T.isAffectDepthOfReadingPattern=T.endsWithSlashGlobStar=T.hasGlobStar=T.getBaseDirectory=T.isPatternRelatedToParentDirectory=T.getPatternsOutsideCurrentDirectory=T.getPatternsInsideCurrentDirectory=T.getPositivePatterns=T.getNegativePatterns=T.isPositivePattern=T.isNegativePattern=T.convertToNegativePattern=T.convertToPositivePattern=T.isDynamicPattern=T.isStaticPattern=void 0;var cd=D("path"),hd=ro(),Fn=ca(),ha="**",dd="\\",pd=/[*?]|^!/,_d=/\[[^[]*]/,gd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,md=/[!*+?@]\([^(]*\)/,yd=/,|\.\./;function da(e,t={}){return!pa(e,t)}T.isStaticPattern=da;function pa(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(dd)||pd.test(e)||_d.test(e)||gd.test(e)||t.extglob!==!1&&md.test(e)||t.braceExpansion!==!1&&bd(e))}T.isDynamicPattern=pa;function bd(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 yd.test(n)}function xd(e){return yr(e)?e.slice(1):e}T.convertToPositivePattern=xd;function Ed(e){return"!"+e}T.convertToNegativePattern=Ed;function yr(e){return e.startsWith("!")&&e[1]!=="("}T.isNegativePattern=yr;function _a(e){return!yr(e)}T.isPositivePattern=_a;function vd(e){return e.filter(yr)}T.getNegativePatterns=vd;function Sd(e){return e.filter(_a)}T.getPositivePatterns=Sd;function Rd(e){return e.filter(t=>!qn(t))}T.getPatternsInsideCurrentDirectory=Rd;function wd(e){return e.filter(qn)}T.getPatternsOutsideCurrentDirectory=wd;function qn(e){return e.startsWith("..")||e.startsWith("./..")}T.isPatternRelatedToParentDirectory=qn;function Ad(e){return hd(e,{flipBackslashes:!1})}T.getBaseDirectory=Ad;function Td(e){return e.includes(ha)}T.hasGlobStar=Td;function ga(e){return e.endsWith("/"+ha)}T.endsWithSlashGlobStar=ga;function Cd(e){let t=cd.basename(e);return ga(e)||da(t)}T.isAffectDepthOfReadingPattern=Cd;function Od(e){return e.reduce((t,r)=>t.concat(ma(r)),[])}T.expandPatternsWithBraceExpansion=Od;function ma(e){return Fn.braces(e,{expand:!0,nodupes:!0})}T.expandBraceExpansion=ma;function Pd(e,t){let{parts:r}=Fn.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}T.getPatternParts=Pd;function ya(e,t){return Fn.makeRe(e,t)}T.makeRe=ya;function Ld(e,t){return e.map(r=>ya(r,t))}T.convertPatternsToRe=Ld;function Md(e,t){return t.some(r=>r.test(e))}T.matchAny=Md});var Sa=g((Cy,va)=>{"use strict";var Dd=D("stream"),xa=Dd.PassThrough,Bd=Array.prototype.slice;va.exports=Id;function Id(){let e=[],t=Bd.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=xa(n);function a(){for(let u=0,h=arguments.length;u<h;u++)e.push(Ea(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(f);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function c(){--h>0||(r=!1,l())}function S(y){function m(){y.removeListener("merge2UnpipeEnd",m),y.removeListener("end",m),s&&y.removeListener("error",R),c()}function R(v){o.emit("error",v)}if(y._readableState.endEmitted)return c();y.on("merge2UnpipeEnd",m),y.on("end",m),s&&y.on("error",R),y.pipe(o,{end:!1}),y.resume()}for(let y=0;y<u.length;y++)S(u[y]);c()}function f(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function Ea(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Ea(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(xa(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var wa=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.merge=void 0;var Nd=Sa();function kd(e){let t=Nd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Ra(e)),t.once("end",()=>Ra(e)),t}br.merge=kd;function Ra(e){e.forEach(t=>t.emit("close"))}});var Aa=g(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.isEmpty=gt.isString=void 0;function Fd(e){return typeof e=="string"}gt.isString=Fd;function qd(e){return e===""}gt.isEmpty=qd});var Pe=g(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.string=ee.stream=ee.pattern=ee.path=ee.fs=ee.errno=ee.array=void 0;var jd=Ws();ee.array=jd;var $d=Vs();ee.errno=$d;var Hd=Ks();ee.fs=Hd;var Gd=Qs();ee.path=Gd;var Ud=ba();ee.pattern=Ud;var Wd=wa();ee.stream=Wd;var Vd=Aa();ee.string=Vd});var Oa=g(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.convertPatternGroupToTask=te.convertPatternGroupsToTasks=te.groupPatternsByBaseDirectory=te.getNegativePatternsAsPositive=te.getPositivePatterns=te.convertPatternsToTasks=te.generate=void 0;var Le=Pe();function Yd(e,t){let r=Ta(e),n=Ca(e,t.ignore),i=r.filter(l=>Le.pattern.isStaticPattern(l,t)),s=r.filter(l=>Le.pattern.isDynamicPattern(l,t)),o=jn(i,n,!1),a=jn(s,n,!0);return o.concat(a)}te.generate=Yd;function jn(e,t,r){let n=[],i=Le.pattern.getPatternsOutsideCurrentDirectory(e),s=Le.pattern.getPatternsInsideCurrentDirectory(e),o=$n(i),a=$n(s);return n.push(...Hn(o,t,r)),"."in a?n.push(Gn(".",s,t,r)):n.push(...Hn(a,t,r)),n}te.convertPatternsToTasks=jn;function Ta(e){return Le.pattern.getPositivePatterns(e)}te.getPositivePatterns=Ta;function Ca(e,t){return Le.pattern.getNegativePatterns(e).concat(t).map(Le.pattern.convertToPositivePattern)}te.getNegativePatternsAsPositive=Ca;function $n(e){let t={};return e.reduce((r,n)=>{let i=Le.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}te.groupPatternsByBaseDirectory=$n;function Hn(e,t,r){return Object.keys(e).map(n=>Gn(n,e[n],t,r))}te.convertPatternGroupsToTasks=Hn;function Gn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Le.pattern.convertToNegativePattern))}}te.convertPatternGroupToTask=Gn});var La=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.removeDuplicateSlashes=mt.transform=void 0;var Kd=/(?!^)\/{2,}/g;function Qd(e){return e.map(t=>Pa(t))}mt.transform=Qd;function Pa(e){return e.replace(Kd,"/")}mt.removeDuplicateSlashes=Pa});var Da=g(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.read=void 0;function Xd(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Ma(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Un(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Ma(r,s);return}Un(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Un(r,o)})})}xr.read=Xd;function Ma(e,t){e(t)}function Un(e,t){e(null,t)}});var Ba=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.read=void 0;function Jd(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}}Er.read=Jd});var Ia=g(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createFileSystemAdapter=Ne.FILE_SYSTEM_ADAPTER=void 0;var vr=D("fs");Ne.FILE_SYSTEM_ADAPTER={lstat:vr.lstat,stat:vr.stat,lstatSync:vr.lstatSync,statSync:vr.statSync};function Zd(e){return e===void 0?Ne.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ne.FILE_SYSTEM_ADAPTER),e)}Ne.createFileSystemAdapter=Zd});var ka=g(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});var zd=Ia(),Na=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=zd.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??r}};Wn.default=Na});var Ze=g(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.statSync=ke.stat=ke.Settings=void 0;var Fa=Da(),ep=Ba(),Vn=ka();ke.Settings=Vn.default;function tp(e,t,r){if(typeof t=="function"){Fa.read(e,Yn(),t);return}Fa.read(e,Yn(t),r)}ke.stat=tp;function rp(e,t){let r=Yn(t);return ep.read(e,r)}ke.statSync=rp;function Yn(e={}){return e instanceof Vn.default?e:new Vn.default(e)}});var $a=g((qy,ja)=>{var qa;ja.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(qa||(qa=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ga=g((jy,Ha)=>{Ha.exports=ip;var np=$a();function ip(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(l){function f(){t&&t(l,r),t=null}s?np(f):f()}function a(l,f,u){r[l]=u,(--n===0||f)&&o(f)}n?i?i.forEach(function(l){e[l](function(f,u){a(l,f,u)})}):e.forEach(function(l,f){l(function(u,h){a(f,u,h)})}):o(null),s=!1}});var Kn=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Sr=process.versions.node.split(".");if(Sr[0]===void 0||Sr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ua=Number.parseInt(Sr[0],10),sp=Number.parseInt(Sr[1],10),Wa=10,op=10,ap=Ua>Wa,lp=Ua===Wa&&sp>=op;Rr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ap||lp});var Ya=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.createDirentFromStats=void 0;var Va=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 up(e,t){return new Va(e,t)}wr.createDirentFromStats=up});var Qn=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.fs=void 0;var fp=Ya();Ar.fs=fp});var Xn=g(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.joinPathSegments=void 0;function cp(e,t,r){return e.endsWith(r)?e+t:e+r+t}Tr.joinPathSegments=cp});var za=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.readdir=Fe.readdirWithFileTypes=Fe.read=void 0;var hp=Ze(),Ka=Ga(),dp=Kn(),Qa=Qn(),Xa=Xn();function pp(e,t,r){if(!t.stats&&dp.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ja(e,t,r);return}Za(e,t,r)}Fe.read=pp;function Ja(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Cr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Xa.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Jn(r,s);return}let o=s.map(a=>_p(a,t));Ka(o,(a,l)=>{if(a!==null){Cr(r,a);return}Jn(r,l)})})}Fe.readdirWithFileTypes=Ja;function _p(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=Qa.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Za(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Cr(r,n);return}let s=i.map(o=>{let a=Xa.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{hp.stat(a,t.fsStatSettings,(f,u)=>{if(f!==null){l(f);return}let h={name:o,path:a,dirent:Qa.fs.createDirentFromStats(o,u)};t.stats&&(h.stats=u),l(null,h)})}});Ka(s,(o,a)=>{if(o!==null){Cr(r,o);return}Jn(r,a)})})}Fe.readdir=Za;function Cr(e,t){e(t)}function Jn(e,t){e(null,t)}});var il=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.readdir=qe.readdirWithFileTypes=qe.read=void 0;var gp=Ze(),mp=Kn(),el=Qn(),tl=Xn();function yp(e,t){return!t.stats&&mp.IS_SUPPORT_READDIR_WITH_FILE_TYPES?rl(e,t):nl(e,t)}qe.read=yp;function rl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:tl.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=el.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}qe.readdirWithFileTypes=rl;function nl(e,t){return t.fs.readdirSync(e).map(n=>{let i=tl.joinPathSegments(e,n,t.pathSegmentSeparator),s=gp.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:el.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}qe.readdir=nl});var sl=g(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.createFileSystemAdapter=je.FILE_SYSTEM_ADAPTER=void 0;var yt=D("fs");je.FILE_SYSTEM_ADAPTER={lstat:yt.lstat,stat:yt.stat,lstatSync:yt.lstatSync,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};function bp(e){return e===void 0?je.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},je.FILE_SYSTEM_ADAPTER),e)}je.createFileSystemAdapter=bp});var al=g(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var xp=D("path"),Ep=Ze(),vp=sl(),ol=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=vp.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,xp.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Ep.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Zn.default=ol});var Or=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Settings=$e.scandirSync=$e.scandir=void 0;var ll=za(),Sp=il(),zn=al();$e.Settings=zn.default;function Rp(e,t,r){if(typeof t=="function"){ll.read(e,ei(),t);return}ll.read(e,ei(t),r)}$e.scandir=Rp;function wp(e,t){let r=ei(t);return Sp.read(e,r)}$e.scandirSync=wp;function ei(e={}){return e instanceof zn.default?e:new zn.default(e)}});var fl=g((Xy,ul)=>{"use strict";function Ap(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}}ul.exports=Ap});var hl=g((Jy,ti)=>{"use strict";var Tp=fl();function cl(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=Tp(Cp),i=null,s=null,o=0,a=null,l={push:m,drain:ce,saturated:ce,pause:u,paused:!1,concurrency:r,running:f,resume:S,idle:y,length:h,getQueue:c,unshift:R,empty:ce,kill:C,killAndDrain:N,error:Z};return l;function f(){return o}function u(){l.paused=!0}function h(){for(var A=i,j=0;A;)A=A.next,j++;return j}function c(){for(var A=i,j=[];A;)j.push(A.value),A=A.next;return j}function S(){if(!!l.paused){l.paused=!1;for(var A=0;A<l.concurrency;A++)o++,v()}}function y(){return o===0&&l.length()===0}function m(A,j){var O=n.get();O.context=e,O.release=v,O.value=A,O.callback=j||ce,O.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=O,s=O):(i=O,s=O,l.saturated()):(o++,t.call(e,O.value,O.worked))}function R(A,j){var O=n.get();O.context=e,O.release=v,O.value=A,O.callback=j||ce,o===l.concurrency||l.paused?i?(O.next=i,i=O):(i=O,s=O,l.saturated()):(o++,t.call(e,O.value,O.worked))}function v(A){A&&n.release(A);var j=i;j?l.paused?o--:(s===i&&(s=null),i=j.next,j.next=null,t.call(e,j.value,j.worked),s===null&&l.empty()):--o===0&&l.drain()}function C(){i=null,s=null,l.drain=ce}function N(){i=null,s=null,l.drain(),l.drain=ce}function Z(A){a=A}}function ce(){}function Cp(){this.value=null,this.callback=ce,this.next=null,this.release=ce,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=ce,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Op(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,h){t.call(this,u).then(function(c){h(null,c)},h)}var i=cl(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=f,i;function a(u){var h=new Promise(function(c,S){s(u,function(y,m){if(y){S(y);return}c(m)})});return h.catch(ce),h}function l(u){var h=new Promise(function(c,S){o(u,function(y,m){if(y){S(y);return}c(m)})});return h.catch(ce),h}function f(){var u=i.drain,h=new Promise(function(c){i.drain=function(){u(),c()}});return h}}ti.exports=cl;ti.exports.promise=Op});var Pr=g(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.joinPathSegments=Re.replacePathSegmentSeparator=Re.isAppliedFilter=Re.isFatalError=void 0;function Pp(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Re.isFatalError=Pp;function Lp(e,t){return e===null||e(t)}Re.isAppliedFilter=Lp;function Mp(e,t){return e.split(/[/\\]/).join(t)}Re.replacePathSegmentSeparator=Mp;function Dp(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Re.joinPathSegments=Dp});var ni=g(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var Bp=Pr(),dl=class{constructor(t,r){this._root=t,this._settings=r,this._root=Bp.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ri.default=dl});var si=g(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var Ip=D("events"),Np=Or(),kp=hl(),Lr=Pr(),Fp=ni(),pl=class extends Fp.default{constructor(t,r){super(t,r);this._settings=r,this._scandir=Np.scandir,this._emitter=new Ip.EventEmitter,this._queue=kp(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||!Lr.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=Lr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Lr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Lr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ii.default=pl});var gl=g(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var qp=si(),_l=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new qp.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{jp(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{$p(t,this._storage)}),this._reader.read()}};oi.default=_l;function jp(e,t){e(t)}function $p(e,t){e(null,t)}});var yl=g(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});var Hp=D("stream"),Gp=si(),ml=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Gp.default(this._root,this._settings),this._stream=new Hp.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}};ai.default=ml});var xl=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var Up=Or(),Mr=Pr(),Wp=ni(),bl=class extends Wp.default{constructor(){super(...arguments);this._scandir=Up.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(!!Mr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Mr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Mr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Mr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};li.default=bl});var vl=g(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var Vp=xl(),El=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Vp.default(this._root,this._settings)}read(){return this._reader.read()}};ui.default=El});var Rl=g(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});var Yp=D("path"),Kp=Or(),Sl=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,Yp.sep),this.fsScandirSettings=new Kp.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??r}};fi.default=Sl});var hi=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.Settings=we.walkStream=we.walkSync=we.walk=void 0;var wl=gl(),Qp=yl(),Xp=vl(),ci=Rl();we.Settings=ci.default;function Jp(e,t,r){if(typeof t=="function"){new wl.default(e,Dr()).read(t);return}new wl.default(e,Dr(t)).read(r)}we.walk=Jp;function Zp(e,t){let r=Dr(t);return new Xp.default(e,r).read()}we.walkSync=Zp;function zp(e,t){let r=Dr(t);return new Qp.default(e,r).read()}we.walkStream=zp;function Dr(e={}){return e instanceof ci.default?e:new ci.default(e)}});var pi=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var e_=D("path"),t_=Ze(),Al=Pe(),Tl=class{constructor(t){this._settings=t,this._fsStatSettings=new t_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return e_.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Al.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Al.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};di.default=Tl});var gi=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var r_=D("stream"),n_=Ze(),i_=hi(),s_=pi(),Cl=class extends s_.default{constructor(){super(...arguments);this._walkStream=i_.walkStream,this._stat=n_.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new r_.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),s===n.length-1&&i.end(),a()}).catch(a);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))})}};_i.default=Cl});var Pl=g(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var bt=Pe(),Ol=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=bt.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 bt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>bt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:bt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return bt.array.splitWhen(t,r=>r.dynamic&&bt.pattern.hasGlobStar(r.pattern))}};mi.default=Ol});var Ml=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var o_=Pl(),Ll=class extends o_.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((l,f)=>{let u=s.segments[f];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};yi.default=Ll});var Bl=g(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var Br=Pe(),a_=Ml(),Dl=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 a_.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Br.pattern.isAffectDepthOfReadingPattern);return Br.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Br.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!Br.pattern.matchAny(t,r)}};bi.default=Dl});var Nl=g(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var ze=Pe(),Il=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=ze.pattern.convertPatternsToRe(t,this._micromatchOptions),i=ze.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=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_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=ze.path.makeAbsolute(this._settings.cwd,t);return ze.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=ze.path.removeLeadingDotSegment(t);return ze.pattern.matchAny(n,r)||ze.pattern.matchAny(n+"/",r)}};xi.default=Il});var Fl=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var l_=Pe(),kl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return l_.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Ei.default=kl});var $l=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var ql=Pe(),jl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=ql.path.makeAbsolute(this._settings.cwd,r),r=ql.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};vi.default=jl});var Ir=g(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var u_=D("path"),f_=Bl(),c_=Nl(),h_=Fl(),d_=$l(),Hl=class{constructor(t){this._settings=t,this.errorFilter=new h_.default(this._settings),this.entryFilter=new c_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new f_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new d_.default(this._settings)}_getRootDirectory(t){return u_.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}}};Si.default=Hl});var Ul=g(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var p_=gi(),__=Ir(),Gl=class extends __.default{constructor(){super(...arguments);this._reader=new p_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let a=this.api(r,t,n);a.once("error",o),a.on("data",l=>i.push(n.transform(l))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ri.default=Gl});var Vl=g(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var g_=D("stream"),m_=gi(),y_=Ir(),Wl=class extends y_.default{constructor(){super(...arguments);this._reader=new m_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new g_.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)}};wi.default=Wl});var Kl=g(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var b_=Ze(),x_=hi(),E_=pi(),Yl=class extends E_.default{constructor(){super(...arguments);this._walkSync=x_.walkSync,this._statSync=b_.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)}};Ai.default=Yl});var Xl=g(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var v_=Kl(),S_=Ir(),Ql=class extends S_.default{constructor(){super(...arguments);this._reader=new v_.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)}};Ti.default=Ql});var Zl=g(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var xt=D("fs"),R_=D("os"),w_=Math.max(R_.cpus().length,1);Et.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:xt.lstat,lstatSync:xt.lstatSync,stat:xt.stat,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};var Jl=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,w_),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({},Et.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Et.default=Jl});var Li=g((Eb,tu)=>{"use strict";var zl=Oa(),eu=La(),A_=Ul(),T_=Vl(),C_=Xl(),Ci=Zl(),et=Pe();async function Oi(e,t){vt(e);let r=Pi(e,A_.default,t),n=await Promise.all(r);return et.array.flatten(n)}(function(e){function t(o,a){vt(o);let l=Pi(o,C_.default,a);return et.array.flatten(l)}e.sync=t;function r(o,a){vt(o);let l=Pi(o,T_.default,a);return et.stream.merge(l)}e.stream=r;function n(o,a){vt(o);let l=eu.transform([].concat(o)),f=new Ci.default(a);return zl.generate(l,f)}e.generateTasks=n;function i(o,a){vt(o);let l=new Ci.default(a);return et.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return vt(o),et.path.escape(o)}e.escapePath=s})(Oi||(Oi={}));function Pi(e,t,r){let n=eu.transform([].concat(e)),i=new Ci.default(r),s=zl.generate(n,i),o=new t(i);return s.map(o.read,o)}function vt(e){if(![].concat(e).every(n=>et.string.isString(n)&&!et.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}tu.exports=Oi});var nu=g((vb,Mi)=>{"use strict";var ru=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Mi.exports=ru;Mi.exports.default=ru});var su=g((Sb,kr)=>{"use strict";var O_=nu(),Nr=new WeakMap,iu=(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(Nr.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 O_(s,e),Nr.set(s,n),s};kr.exports=iu;kr.exports.default=iu;kr.exports.callCount=e=>{if(!Nr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Nr.get(e)}});var ou=g((Rb,Fr)=>{Fr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Fr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Fr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var cu=g((wb,wt)=>{var W=global.process,tt=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"};tt(W)?(au=D("assert"),St=ou(),lu=/^win/i.test(W.platform),$t=D("events"),typeof $t!="function"&&($t=$t.EventEmitter),W.__signal_exit_emitter__?z=W.__signal_exit_emitter__:(z=W.__signal_exit_emitter__=new $t,z.count=0,z.emitted={}),z.infinite||(z.setMaxListeners(1/0),z.infinite=!0),wt.exports=function(e,t){if(!tt(global.process))return function(){};au.equal(typeof e,"function","a callback must be provided for exit handler"),Rt===!1&&Di();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){z.removeListener(r,e),z.listeners("exit").length===0&&z.listeners("afterexit").length===0&&qr()};return z.on(r,e),n},qr=function(){!Rt||!tt(global.process)||(Rt=!1,St.forEach(function(t){try{W.removeListener(t,jr[t])}catch{}}),W.emit=$r,W.reallyExit=Bi,z.count-=1)},wt.exports.unload=qr,rt=function(t,r,n){z.emitted[t]||(z.emitted[t]=!0,z.emit(t,r,n))},jr={},St.forEach(function(e){jr[e]=function(){if(!!tt(global.process)){var r=W.listeners(e);r.length===z.count&&(qr(),rt("exit",null,e),rt("afterexit",null,e),lu&&e==="SIGHUP"&&(e="SIGINT"),W.kill(W.pid,e))}}}),wt.exports.signals=function(){return St},Rt=!1,Di=function(){Rt||!tt(global.process)||(Rt=!0,z.count+=1,St=St.filter(function(t){try{return W.on(t,jr[t]),!0}catch{return!1}}),W.emit=fu,W.reallyExit=uu)},wt.exports.load=Di,Bi=W.reallyExit,uu=function(t){!tt(global.process)||(W.exitCode=t||0,rt("exit",W.exitCode,null),rt("afterexit",W.exitCode,null),Bi.call(W,W.exitCode))},$r=W.emit,fu=function(t,r){if(t==="exit"&&tt(global.process)){r!==void 0&&(W.exitCode=r);var n=$r.apply(this,arguments);return rt("exit",W.exitCode,null),rt("afterexit",W.exitCode,null),n}else return $r.apply(this,arguments)}):wt.exports=function(){return function(){}};var au,St,lu,$t,z,qr,rt,jr,Rt,Di,Bi,uu,$r,fu});var gu=g((Lb,M_)=>{M_.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var bu=g((Mb,yu)=>{"use strict";var Gr=Object.assign({},gu()),mu=Object.keys(Gr);Object.defineProperty(Gr,"random",{get(){let e=Math.floor(Math.random()*mu.length),t=mu[e];return Gr[t]}});yu.exports=Gr});var xu=g(($b,Ur)=>{var N_=function(){"use strict";function e(o,a,l,f){var u;typeof a=="object"&&(l=a.depth,f=a.prototype,u=a.filter,a=a.circular);var h=[],c=[],S=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function y(m,R){if(m===null)return null;if(R==0)return m;var v,C;if(typeof m!="object")return m;if(e.__isArray(m))v=[];else if(e.__isRegExp(m))v=new RegExp(m.source,s(m)),m.lastIndex&&(v.lastIndex=m.lastIndex);else if(e.__isDate(m))v=new Date(m.getTime());else{if(S&&Buffer.isBuffer(m))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(m.length):v=new Buffer(m.length),m.copy(v),v;typeof f>"u"?(C=Object.getPrototypeOf(m),v=Object.create(C)):(v=Object.create(f),C=f)}if(a){var N=h.indexOf(m);if(N!=-1)return c[N];h.push(m),c.push(v)}for(var Z in m){var A;C&&(A=Object.getOwnPropertyDescriptor(C,Z)),!(A&&A.set==null)&&(v[Z]=y(m[Z],R-1))}return v}return y(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};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 a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Ur=="object"&&Ur.exports&&(Ur.exports=N_)});var vu=g((Hb,Eu)=>{var k_=xu();Eu.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=k_(t[r]))}),e}});var Ru=g((Gb,Su)=>{Su.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 Cu=g((Ub,Fi)=>{"use strict";var F_=vu(),Ut=Ru(),Au={nul:0,control:0};Fi.exports=function(t){return Tu(t,Au)};Fi.exports.config=function(e){return e=F_(e||{},Au),function(r){return Tu(r,e)}};function Tu(e,t){if(typeof e!="string")return wu(e,t);for(var r=0,n=0;n<e.length;n++){var i=wu(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function wu(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:q_(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 q_(e){var t=0,r=Ut.length-1,n;if(e<Ut[0][0]||e>Ut[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Ut[n][1])t=n+1;else if(e<Ut[n][0])r=n-1;else return!0;return!1}});var ji=g((Vb,Ou)=>{Ou.exports=D("stream")});var Du=g((Yb,Mu)=>{"use strict";function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pu(Object(r),!0).forEach(function(n){$_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G_(e,t,r){return t&&Lu(e.prototype,t),r&&Lu(e,r),e}var U_=D("buffer"),Wr=U_.Buffer,W_=D("util"),$i=W_.inspect,V_=$i&&$i.custom||"inspect";function Y_(e,t,r){Wr.prototype.copy.call(e,t,r)}Mu.exports=function(){function e(){H_(this,e),this.head=null,this.tail=null,this.length=0}return G_(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Wr.alloc(0);for(var n=Wr.allocUnsafe(r>>>0),i=this.head,s=0;i;)Y_(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Wr.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:V_,value:function(r,n){return $i(this,j_({},n,{depth:0,customInspect:!1}))}}]),e}()});var Gi=g((Kb,Iu)=>{"use strict";function K_(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Hi,this,e)):process.nextTick(Hi,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Vr,r):(r._writableState.errorEmitted=!0,process.nextTick(Bu,r,s)):process.nextTick(Bu,r,s):t?(process.nextTick(Vr,r),t(s)):process.nextTick(Vr,r)}),this)}function Bu(e,t){Hi(e,t),Vr(e)}function Vr(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Q_(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Hi(e,t){e.emit("error",t)}function X_(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Iu.exports={destroy:K_,undestroy:Q_,errorOrDestroy:X_}});var He=g((Qb,Fu)=>{"use strict";var ku={};function he(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,ku[e]=i}function Nu(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function J_(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Z_(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function z_(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}he("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);he("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&J_(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(Z_(e," argument"))i=`The ${e} ${n} ${Nu(t,"type")}`;else{let s=z_(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Nu(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);he("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");he("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});he("ERR_STREAM_PREMATURE_CLOSE","Premature close");he("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});he("ERR_MULTIPLE_CALLBACK","Callback called multiple times");he("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");he("ERR_STREAM_WRITE_AFTER_END","write after end");he("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);he("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);he("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Fu.exports.codes=ku});var Ui=g((Xb,qu)=>{"use strict";var eg=He().codes.ERR_INVALID_OPT_VALUE;function tg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function rg(e,t,r,n){var i=tg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new eg(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}qu.exports={getHighWaterMark:rg}});var ju=g((Jb,Wi)=>{typeof Object.create=="function"?Wi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Wi.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var nt=g((Zb,Yi)=>{try{if(Vi=D("util"),typeof Vi.inherits!="function")throw"";Yi.exports=Vi.inherits}catch{Yi.exports=ju()}var Vi});var Hu=g((zb,$u)=>{$u.exports=D("util").deprecate});var Xi=g((ex,Ku)=>{"use strict";Ku.exports=Y;function Uu(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Og(t,e)}}var Tt;Y.WritableState=Vt;var ng={deprecate:Hu()},Wu=ji(),Kr=D("buffer").Buffer,ig=global.Uint8Array||function(){};function sg(e){return Kr.from(e)}function og(e){return Kr.isBuffer(e)||e instanceof ig}var Qi=Gi(),ag=Ui(),lg=ag.getHighWaterMark,Ge=He().codes,ug=Ge.ERR_INVALID_ARG_TYPE,fg=Ge.ERR_METHOD_NOT_IMPLEMENTED,cg=Ge.ERR_MULTIPLE_CALLBACK,hg=Ge.ERR_STREAM_CANNOT_PIPE,dg=Ge.ERR_STREAM_DESTROYED,pg=Ge.ERR_STREAM_NULL_VALUES,_g=Ge.ERR_STREAM_WRITE_AFTER_END,gg=Ge.ERR_UNKNOWN_ENCODING,Ct=Qi.errorOrDestroy;nt()(Y,Wu);function mg(){}function Vt(e,t,r){Tt=Tt||it(),e=e||{},typeof r!="boolean"&&(r=t instanceof Tt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=lg(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Rg(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Uu(this)}Vt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Vt.prototype,"buffer",{get:ng.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Yr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Yr=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function(t){return Yr.call(this,t)?!0:this!==Y?!1:t&&t._writableState instanceof Vt}})):Yr=function(t){return t instanceof this};function Y(e){Tt=Tt||it();var t=this instanceof Tt;if(!t&&!Yr.call(Y,this))return new Y(e);this._writableState=new Vt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Wu.call(this)}Y.prototype.pipe=function(){Ct(this,new hg)};function yg(e,t){var r=new _g;Ct(e,r),process.nextTick(t,r)}function bg(e,t,r,n){var i;return r===null?i=new pg:typeof r!="string"&&!t.objectMode&&(i=new ug("chunk",["string","Buffer"],r)),i?(Ct(e,i),process.nextTick(n,i),!1):!0}Y.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&og(e);return s&&!Kr.isBuffer(e)&&(e=sg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=mg),n.ending?yg(this,r):(s||bg(this,n,e,r))&&(n.pendingcb++,i=Eg(this,n,s,e,t,r)),i};Y.prototype.cork=function(){this._writableState.corked++};Y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Vu(this,e))};Y.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new gg(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function xg(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Kr.from(t,r)),t}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Eg(e,t,r,n,i,s){if(!r){var o=xg(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ki(e,t,!1,a,n,i,s);return l}function Ki(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new dg("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function vg(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Wt,e,t),e._writableState.errorEmitted=!0,Ct(e,n)):(i(n),e._writableState.errorEmitted=!0,Ct(e,n),Wt(e,t))}function Sg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Rg(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new cg;if(Sg(r),t)vg(e,r,n,t,i);else{var s=Yu(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Vu(e,r),n?process.nextTick(Gu,e,r,s,i):Gu(e,r,s,i)}}function Gu(e,t,r,n){r||wg(e,t),t.pendingcb--,n(),Wt(e,t)}function wg(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Vu(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Ki(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Uu(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,u=r.callback,h=t.objectMode?1:l.length;if(Ki(e,t,!1,h,l,f,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Y.prototype._write=function(e,t,r){r(new fg("_write()"))};Y.prototype._writev=null;Y.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Cg(this,n,r),this};Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Yu(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Ag(e,t){e._final(function(r){t.pendingcb--,r&&Ct(e,r),t.prefinished=!0,e.emit("prefinish"),Wt(e,t)})}function Tg(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Ag,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Wt(e,t){var r=Yu(t);if(r&&(Tg(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Cg(e,t,r){t.ending=!0,Wt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Og(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});Y.prototype.destroy=Qi.destroy;Y.prototype._undestroy=Qi.undestroy;Y.prototype._destroy=function(e,t){t(e)}});var it=g((tx,Xu)=>{"use strict";var Pg=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Xu.exports=Ae;var Qu=zi(),Zi=Xi();nt()(Ae,Qu);for(Ji=Pg(Zi.prototype),Qr=0;Qr<Ji.length;Qr++)Xr=Ji[Qr],Ae.prototype[Xr]||(Ae.prototype[Xr]=Zi.prototype[Xr]);var Ji,Xr,Qr;function Ae(e){if(!(this instanceof Ae))return new Ae(e);Qu.call(this,e),Zi.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Lg)))}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ae.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ae.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Lg(){this._writableState.ended||process.nextTick(Mg,this)}function Mg(e){e.end()}Object.defineProperty(Ae.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var zu=g((es,Zu)=>{var Jr=D("buffer"),Te=Jr.Buffer;function Ju(e,t){for(var r in e)t[r]=e[r]}Te.from&&Te.alloc&&Te.allocUnsafe&&Te.allocUnsafeSlow?Zu.exports=Jr:(Ju(Jr,es),es.Buffer=st);function st(e,t,r){return Te(e,t,r)}st.prototype=Object.create(Te.prototype);Ju(Te,st);st.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Te(e,t,r)};st.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Te(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};st.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Te(e)};st.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Jr.SlowBuffer(e)}});var ns=g(tf=>{"use strict";var rs=zu().Buffer,ef=rs.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Dg(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Bg(e){var t=Dg(e);if(typeof t!="string"&&(rs.isEncoding===ef||!ef(e)))throw new Error("Unknown encoding: "+e);return t||e}tf.StringDecoder=Yt;function Yt(e){this.encoding=Bg(e);var t;switch(this.encoding){case"utf16le":this.text=jg,this.end=$g,t=4;break;case"utf8":this.fillLast=kg,t=4;break;case"base64":this.text=Hg,this.end=Gg,t=3;break;default:this.write=Ug,this.end=Wg;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rs.allocUnsafe(t)}Yt.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Yt.prototype.end=qg;Yt.prototype.text=Fg;Yt.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ts(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Ig(e,t,r){var n=t.length-1;if(n<r)return 0;var i=ts(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=ts(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=ts(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Ng(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function kg(e){var t=this.lastTotal-this.lastNeed,r=Ng(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Fg(e,t){var r=Ig(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function qg(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function jg(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function $g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Hg(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Gg(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Ug(e){return e.toString(this.encoding)}function Wg(e){return e&&e.length?this.write(e):""}});var Zr=g((nx,sf)=>{"use strict";var rf=He().codes.ERR_STREAM_PREMATURE_CLOSE;function Vg(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function Yg(){}function Kg(e){return e.setHeader&&typeof e.abort=="function"}function nf(e,t,r){if(typeof t=="function")return nf(e,null,t);t||(t={}),r=Vg(r||Yg);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,f=function(){n=!1,l=!0,i||r.call(e)},u=function(y){r.call(e,y)},h=function(){var y;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(y=new rf),r.call(e,y);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(y=new rf),r.call(e,y)},c=function(){e.req.on("finish",a)};return Kg(e)?(e.on("complete",a),e.on("abort",h),e.req?c():e.on("request",c)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",c),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",u),e.removeListener("close",h)}}sf.exports=nf});var af=g((ix,of)=>{"use strict";var zr;function Ue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qg=Zr(),We=Symbol("lastResolve"),ot=Symbol("lastReject"),Kt=Symbol("error"),en=Symbol("ended"),at=Symbol("lastPromise"),is=Symbol("handlePromise"),lt=Symbol("stream");function Ve(e,t){return{value:e,done:t}}function Xg(e){var t=e[We];if(t!==null){var r=e[lt].read();r!==null&&(e[at]=null,e[We]=null,e[ot]=null,t(Ve(r,!1)))}}function Jg(e){process.nextTick(Xg,e)}function Zg(e,t){return function(r,n){e.then(function(){if(t[en]){r(Ve(void 0,!0));return}t[is](r,n)},n)}}var zg=Object.getPrototypeOf(function(){}),e0=Object.setPrototypeOf((zr={get stream(){return this[lt]},next:function(){var t=this,r=this[Kt];if(r!==null)return Promise.reject(r);if(this[en])return Promise.resolve(Ve(void 0,!0));if(this[lt].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Kt]?a(t[Kt]):o(Ve(void 0,!0))})});var n=this[at],i;if(n)i=new Promise(Zg(n,this));else{var s=this[lt].read();if(s!==null)return Promise.resolve(Ve(s,!1));i=new Promise(this[is])}return this[at]=i,i}},Ue(zr,Symbol.asyncIterator,function(){return this}),Ue(zr,"return",function(){var t=this;return new Promise(function(r,n){t[lt].destroy(null,function(i){if(i){n(i);return}r(Ve(void 0,!0))})})}),zr),zg),t0=function(t){var r,n=Object.create(e0,(r={},Ue(r,lt,{value:t,writable:!0}),Ue(r,We,{value:null,writable:!0}),Ue(r,ot,{value:null,writable:!0}),Ue(r,Kt,{value:null,writable:!0}),Ue(r,en,{value:t._readableState.endEmitted,writable:!0}),Ue(r,is,{value:function(s,o){var a=n[lt].read();a?(n[at]=null,n[We]=null,n[ot]=null,s(Ve(a,!1))):(n[We]=s,n[ot]=o)},writable:!0}),r));return n[at]=null,Qg(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[ot];s!==null&&(n[at]=null,n[We]=null,n[ot]=null,s(i)),n[Kt]=i;return}var o=n[We];o!==null&&(n[at]=null,n[We]=null,n[ot]=null,o(Ve(void 0,!0))),n[en]=!0}),t.on("readable",Jg.bind(null,n)),n};of.exports=t0});var cf=g((sx,ff)=>{"use strict";function lf(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(f){r(f);return}a.done?t(l):Promise.resolve(l).then(n,i)}function r0(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){lf(s,n,i,o,a,"next",l)}function a(l){lf(s,n,i,o,a,"throw",l)}o(void 0)})}}function uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function n0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uf(Object(r),!0).forEach(function(n){i0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s0=He().codes.ERR_INVALID_ARG_TYPE;function o0(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new s0("iterable",["Iterable"],t);var i=new e(n0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=r0(function*(){try{var l=yield n.next(),f=l.value,u=l.done;u?i.push(null):i.push(yield f)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}ff.exports=o0});var zi=g((ax,Ef)=>{"use strict";Ef.exports=B;var Ot;B.ReadableState=_f;var ox=D("events").EventEmitter,pf=function(t,r){return t.listeners(r).length},Xt=ji(),tn=D("buffer").Buffer,a0=global.Uint8Array||function(){};function l0(e){return tn.from(e)}function u0(e){return tn.isBuffer(e)||e instanceof a0}var ss=D("util"),L;ss&&ss.debuglog?L=ss.debuglog("stream"):L=function(){};var f0=Du(),hs=Gi(),c0=Ui(),h0=c0.getHighWaterMark,rn=He().codes,d0=rn.ERR_INVALID_ARG_TYPE,p0=rn.ERR_STREAM_PUSH_AFTER_EOF,_0=rn.ERR_METHOD_NOT_IMPLEMENTED,g0=rn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Pt,os,as;nt()(B,Xt);var Qt=hs.errorOrDestroy,ls=["error","close","destroy","pause","resume"];function m0(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function _f(e,t,r){Ot=Ot||it(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ot),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h0(this,e,"readableHighWaterMark",r),this.buffer=new f0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Pt||(Pt=ns().StringDecoder),this.decoder=new Pt(e.encoding),this.encoding=e.encoding)}function B(e){if(Ot=Ot||it(),!(this instanceof B))return new B(e);var t=this instanceof Ot;this._readableState=new _f(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Xt.call(this)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});B.prototype.destroy=hs.destroy;B.prototype._undestroy=hs.undestroy;B.prototype._destroy=function(e,t){t(e)};B.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=tn.from(e,t),t=""),n=!0),gf(this,e,t,!1,n)};B.prototype.unshift=function(e){return gf(this,e,null,!0,!1)};function gf(e,t,r,n,i){L("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,x0(e,s);else{var o;if(i||(o=y0(s,t)),o)Qt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==tn.prototype&&(t=l0(t)),n)s.endEmitted?Qt(e,new g0):us(e,s,t,!0);else if(s.ended)Qt(e,new p0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?us(e,s,t,!1):cs(e,s)):us(e,s,t,!1)}else n||(s.reading=!1,cs(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function us(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&nn(e)),cs(e,t)}function y0(e,t){var r;return!u0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new d0("chunk",["string","Buffer","Uint8Array"],t)),r}B.prototype.isPaused=function(){return this._readableState.flowing===!1};B.prototype.setEncoding=function(e){Pt||(Pt=ns().StringDecoder);var t=new Pt(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var hf=1073741824;function b0(e){return e>=hf?e=hf:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function df(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=b0(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}B.prototype.read=function(e){L("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return L("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?fs(this):nn(this),null;if(e=df(e,t),e===0&&t.ended)return t.length===0&&fs(this),null;var n=t.needReadable;L("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,L("length less than watermark",n)),t.ended||t.reading?(n=!1,L("reading or ended",n)):n&&(L("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=df(r,t)));var i;return e>0?i=bf(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&fs(this)),i!==null&&this.emit("data",i),i};function x0(e,t){if(L("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?nn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,mf(e)))}}function nn(e){var t=e._readableState;L("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(L("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(mf,e))}function mf(e){var t=e._readableState;L("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ds(e)}function cs(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(E0,e,t))}function E0(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(L("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}B.prototype._read=function(e){Qt(this,new _0("_read()"))};B.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,L("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:m;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(R,v){L("onunpipe"),R===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,u())}function a(){L("onend"),e.end()}var l=v0(r);e.on("drain",l);var f=!1;function u(){L("cleanup"),e.removeListener("close",S),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(R){L("ondata");var v=e.write(R);L("dest.write",v),v===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&xf(n.pipes,e)!==-1)&&!f&&(L("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(R){L("onerror",R),m(),e.removeListener("error",c),pf(e,"error")===0&&Qt(e,R)}m0(e,"error",c);function S(){e.removeListener("finish",y),m()}e.once("close",S);function y(){L("onfinish"),e.removeListener("close",S),m()}e.once("finish",y);function m(){L("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(L("pipe resume"),r.resume()),e};function v0(e){return function(){var r=e._readableState;L("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&pf(e,"data")&&(r.flowing=!0,ds(e))}}B.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=xf(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};B.prototype.on=function(e,t){var r=Xt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,L("on readable",n.length,n.reading),n.length?nn(this):n.reading||process.nextTick(S0,this)),r};B.prototype.addListener=B.prototype.on;B.prototype.removeListener=function(e,t){var r=Xt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(yf,this),r};B.prototype.removeAllListeners=function(e){var t=Xt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(yf,this),t};function yf(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function S0(e){L("readable nexttick read 0"),e.read(0)}B.prototype.resume=function(){var e=this._readableState;return e.flowing||(L("resume"),e.flowing=!e.readableListening,R0(this,e)),e.paused=!1,this};function R0(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(w0,e,t))}function w0(e,t){L("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ds(e),t.flowing&&!t.reading&&e.read(0)}B.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ds(e){var t=e._readableState;for(L("flow",t.flowing);t.flowing&&e.read()!==null;);}B.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(L("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(L("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<ls.length;s++)e.on(ls[s],this.emit.bind(this,ls[s]));return this._read=function(o){L("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return os===void 0&&(os=af()),os(this)});Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});B._fromList=bf;Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function bf(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function fs(e){var t=e._readableState;L("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(A0,t,e))}function A0(e,t){if(L("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(B.from=function(e,t){return as===void 0&&(as=cf()),as(B,e,t)});function xf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var ps=g((lx,Sf)=>{"use strict";Sf.exports=De;var sn=He().codes,T0=sn.ERR_METHOD_NOT_IMPLEMENTED,C0=sn.ERR_MULTIPLE_CALLBACK,O0=sn.ERR_TRANSFORM_ALREADY_TRANSFORMING,P0=sn.ERR_TRANSFORM_WITH_LENGTH_0,on=it();nt()(De,on);function L0(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new C0);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function De(e){if(!(this instanceof De))return new De(e);on.call(this,e),this._transformState={afterTransform:L0.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",M0)}function M0(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){vf(e,t,r)}):vf(this,null,null)}De.prototype.push=function(e,t){return this._transformState.needTransform=!1,on.prototype.push.call(this,e,t)};De.prototype._transform=function(e,t,r){r(new T0("_transform()"))};De.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};De.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};De.prototype._destroy=function(e,t){on.prototype._destroy.call(this,e,function(r){t(r)})};function vf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new P0;if(e._transformState.transforming)throw new O0;return e.push(null)}});var Af=g((ux,wf)=>{"use strict";wf.exports=Jt;var Rf=ps();nt()(Jt,Rf);function Jt(e){if(!(this instanceof Jt))return new Jt(e);Rf.call(this,e)}Jt.prototype._transform=function(e,t,r){r(null,e)}});var Lf=g((fx,Pf)=>{"use strict";var _s;function D0(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Of=He().codes,B0=Of.ERR_MISSING_ARGS,I0=Of.ERR_STREAM_DESTROYED;function Tf(e){if(e)throw e}function N0(e){return e.setHeader&&typeof e.abort=="function"}function k0(e,t,r,n){n=D0(n);var i=!1;e.on("close",function(){i=!0}),_s===void 0&&(_s=Zr()),_s(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,N0(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new I0("pipe"))}}}function Cf(e){e()}function F0(e,t){return e.pipe(t)}function q0(e){return!e.length||typeof e[e.length-1]!="function"?Tf:e.pop()}function j0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=q0(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new B0("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,f=a>0;return k0(o,l,f,function(u){i||(i=u),u&&s.forEach(Cf),!l&&(s.forEach(Cf),n(i))})});return t.reduce(F0)}Pf.exports=j0});var Mf=g((de,zt)=>{var Zt=D("stream");process.env.READABLE_STREAM==="disable"&&Zt?(zt.exports=Zt.Readable,Object.assign(zt.exports,Zt),zt.exports.Stream=Zt):(de=zt.exports=zi(),de.Stream=Zt||de,de.Readable=de,de.Writable=Xi(),de.Duplex=it(),de.Transform=ps(),de.PassThrough=Af(),de.finished=Zr(),de.pipeline=Lf())});var If=g((cx,Bf)=>{"use strict";var{Buffer:ge}=D("buffer"),Df=Symbol.for("BufferList");function $(e){if(!(this instanceof $))return new $(e);$._init.call(this,e)}$._init=function(t){Object.defineProperty(this,Df,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};$.prototype._new=function(t){return new $(t)};$.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};$.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};$.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};$.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};$.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||ge.alloc(0);let s=!!t,o=this._offset(n),a=i-n,l=a,f=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ge.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,f),f+=this._bufs[h].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=ge.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let c=this._bufs[h].length-u;if(l>c)this._bufs[h].copy(t,f,u),f+=c;else{this._bufs[h].copy(t,f,u,u+l),f+=c;break}l-=c,u&&(u=0)}return t.length>f?t.slice(0,f):t};$.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};$.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};$.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};$.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};$.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(ge.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(ge.from(t));return this};$.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};$.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=ge.from([e]):typeof e=="string"?e=ge.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=ge.from(e.buffer,e.byteOffset,e.byteLength):ge.isBuffer(e)||(e=ge.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};$.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?$.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:$.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();$.prototype._isBufferList=function(t){return t instanceof $||$.isBufferList(t)};$.isBufferList=function(t){return t!=null&&t[Df]};Bf.exports=$});var Nf=g((hx,an)=>{"use strict";var gs=Mf().Duplex,$0=nt(),er=If();function re(e){if(!(this instanceof re))return new re(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}er._init.call(this,e),gs.call(this)}$0(re,gs);Object.assign(re.prototype,er.prototype);re.prototype._new=function(t){return new re(t)};re.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};re.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};re.prototype.end=function(t){gs.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};re.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};re.prototype._isBufferList=function(t){return t instanceof re||t instanceof er||re.isBufferList(t)};re.isBufferList=er.isBufferList;an.exports=re;an.exports.BufferListStream=re;an.exports.BufferList=er});import{constants as Dm,existsSync as oc}from"fs";import{copyFile as Bm,mkdir as Im,readFile as ac,rm as tc,writeFile as Nm}from"fs/promises";import{dirname as lc,extname as km,isAbsolute as Fm,resolve as qm,resolve as _n}from"path";import{build as Ls,transform as jm}from"esbuild";var Bs=(e=0)=>t=>`\x1B[${t+e}m`,Is=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ns=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function mc(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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",t.color.ansi=Bs(),t.color.ansi256=Is(),t.color.ansi16m=Ns(),t.bgColor.ansi=Bs(10),t.bgColor.ansi256=Is(10),t.bgColor.ansi16m=Ns(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var yc=mc(),_e=yc;import mn from"node:process";import bc from"node:os";import ks from"node:tty";function ue(e,t=mn.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:Q}=mn,lr;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?lr=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(lr=1);function xc(){if("FORCE_COLOR"in Q)return Q.FORCE_COLOR==="true"?1:Q.FORCE_COLOR==="false"?0:Q.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Q.FORCE_COLOR,10),3)}function Ec(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function vc(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=xc();n!==void 0&&(lr=n);let i=r?lr:n;if(i===0)return 0;if(r){if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Q.TERM==="dumb")return s;if(mn.platform==="win32"){let o=bc.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Q)||Q.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Q&&"AGENT_NAME"in Q)return 1;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let o=Number.parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:s}function Fs(e,t={}){let r=vc(e,{streamIsTTY:e&&e.isTTY,...t});return Ec(r)}var Sc={stdout:Fs({isTTY:ks.isatty(1)}),stderr:Fs({isTTY:ks.isatty(2)})},qs=Sc;function js(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.slice(s),o}function $s(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
|
+
var cc=Object.create;var Ds=Object.defineProperty;var hc=Object.getOwnPropertyDescriptor;var dc=Object.getOwnPropertyNames;var pc=Object.getPrototypeOf,_c=Object.prototype.hasOwnProperty;var D=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dc(t))!_c.call(e,i)&&i!==r&&Ds(e,i,{get:()=>t[i],enumerable:!(n=hc(t,i))||n.enumerable});return e};var Qe=(e,t,r)=>(r=e!=null?cc(pc(e)):{},gc(t||!e||!e.__esModule?Ds(r,"default",{value:e,enumerable:!0}):r,e));var Ws=g(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.splitWhen=dt.flatten=void 0;function Pc(e){return e.reduce((t,r)=>[].concat(t,r),[])}dt.flatten=Pc;function Lc(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}dt.splitWhen=Lc});var Vs=g(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.isEnoentCodeError=void 0;function Mc(e){return e.code==="ENOENT"}fr.isEnoentCodeError=Mc});var Ks=g(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.createDirentFromStats=void 0;var Ys=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 Dc(e,t){return new Ys(e,t)}cr.createDirentFromStats=Dc});var Qs=g(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.removeLeadingDotSegment=Ee.escape=Ee.makeAbsolute=Ee.unixify=void 0;var Bc=D("path"),Ic=2,Nc=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function kc(e){return e.replace(/\\/g,"/")}Ee.unixify=kc;function Fc(e,t){return Bc.resolve(e,t)}Ee.makeAbsolute=Fc;function qc(e){return e.replace(Nc,"\\$2")}Ee.escape=qc;function jc(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Ic)}return e}Ee.removeLeadingDotSegment=jc});var Js=g((ay,Xs)=>{Xs.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 eo=g((ly,zs)=>{var $c=Js(),Zs={"{":"}","(":")","[":"]"},Hc=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 a=e[t+1];t+=2;var l=Zs[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},Gc=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=Zs[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};zs.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if($c(t))return!0;var n=Hc;return r&&r.strict===!1&&(n=Gc),n(t)}});var ro=g((uy,to)=>{"use strict";var Uc=eo(),Wc=D("path").posix.dirname,Vc=D("os").platform()==="win32",En="/",Yc=/\\/g,Kc=/[\{\[].*[\}\]]$/,Qc=/(^|[^\\])([\{\[]|\([^\)]+$)/,Xc=/\\([\!\*\?\|\[\]\(\)\{\}])/g;to.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Vc&&t.indexOf(En)<0&&(t=t.replace(Yc,En)),Kc.test(t)&&(t+=En),t+="a";do t=Wc(t);while(Uc(t)||Qc.test(t));return t.replace(Xc,"$1")}});var hr=g(fe=>{"use strict";fe.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;fe.find=(e,t)=>e.nodes.find(r=>r.type===t);fe.exceedsLimit=(e,t,r=1,n)=>n===!1||!fe.isInteger(e)||!fe.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;fe.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)};fe.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;fe.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;fe.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;fe.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);fe.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var dr=g((cy,io)=>{"use strict";var no=hr();io.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&no.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&no.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var oo=g((hy,so)=>{"use strict";so.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var go=g((dy,_o)=>{"use strict";var ao=oo(),Xe=(e,t,r)=>{if(ao(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ao(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),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(Xe.cache.hasOwnProperty(l))return Xe.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let h=po(e)||po(t),c={min:e,max:t,a:f,b:u},v=[],y=[];if(h&&(c.isPadded=h,c.maxLen=String(c.max).length),f<0){let m=u<0?Math.abs(u):1;y=lo(m,Math.abs(f),c,n),f=c.a=0}return u>=0&&(v=lo(f,u,c,n)),c.negatives=y,c.positives=v,c.result=Jc(y,v,n),n.capture===!0?c.result=`(${c.result})`:n.wrap!==!1&&v.length+y.length>1&&(c.result=`(?:${c.result})`),Xe.cache[l]=c,c.result};function Jc(e,t,r){let n=vn(e,t,"-",!1,r)||[],i=vn(t,e,"",!1,r)||[],s=vn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Zc(e,t){let r=1,n=1,i=fo(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=fo(e,r);for(i=co(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=co(t+1,n)-1;return s=[...s],s.sort(th),s}function zc(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=eh(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,f]=n[a];l===f?s+=l:l!=="0"||f!=="9"?s+=rh(l,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function lo(e,t,r,n){let i=Zc(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let f=i[l],u=zc(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+ho(a.count),o=f+1;continue}r.isPadded&&(h=nh(f,r,n)),u.string=h+u.pattern+ho(u.count),s.push(u),o=f+1,a=u}return s}function vn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!uo(t,"string",a)&&s.push(r+a),n&&uo(t,"string",a)&&s.push(r+a)}return s}function eh(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function th(e,t){return e>t?1:t>e?-1:0}function uo(e,t,r){return e.some(n=>n[t]===r)}function fo(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function co(e,t){return e-e%Math.pow(10,t)}function ho(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function rh(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function po(e){return/^-?(0+)\d/.test(e)}function nh(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}}`}}Xe.cache={};Xe.clearCache=()=>Xe.cache={};_o.exports=Xe});var wn=g((py,Ro)=>{"use strict";var ih=D("util"),bo=go(),mo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),sh=e=>t=>e===!0?Number(t):String(t),Sn=e=>typeof e=="number"||typeof e=="string"&&e!=="",kt=e=>Number.isInteger(+e),Rn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},oh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ah=(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},yo=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},lh=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},xo=(e,t,r,n)=>{if(r)return bo(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Eo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return bo(e,t,r)},vo=(...e)=>new RangeError("Invalid range arguments: "+ih.inspect(...e)),So=(e,t,r)=>{if(r.strictRanges===!0)throw vo([e,t]);return[]},uh=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},fh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw vo([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),f=String(r);r=Math.max(Math.abs(r),1);let u=Rn(a)||Rn(l)||Rn(f),h=u?Math.max(a.length,l.length,f.length):0,c=u===!1&&oh(e,t,n)===!1,v=n.transform||sh(c);if(n.toRegex&&r===1)return xo(yo(e,h),yo(t,h),!0,n);let y={negatives:[],positives:[]},m=L=>y[L<0?"negatives":"positives"].push(Math.abs(L)),S=[],E=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):S.push(ah(v(i,E),h,c)),i=o?i-r:i+r,E++;return n.toRegex===!0?r>1?lh(y,n):Eo(S,null,{wrap:!1,...n}):S},ch=(e,t,r=1,n={})=>{if(!kt(e)&&e.length>1||!kt(t)&&t.length>1)return So(e,t,n);let i=n.transform||(c=>String.fromCharCode(c)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return xo(l,f,!1,n);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Eo(u,null,{wrap:!1,options:n}):u},pr=(e,t,r,n={})=>{if(t==null&&Sn(e))return[e];if(!Sn(e)||!Sn(t))return So(e,t,n);if(typeof r=="function")return pr(e,t,1,{transform:r});if(mo(r))return pr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,kt(r)?kt(e)&&kt(t)?fh(e,t,r,i):ch(e,t,Math.max(Math.abs(r),1),i):r!=null&&!mo(r)?uh(r,i):pr(e,t,1,r)};Ro.exports=pr});var To=g((_y,Ao)=>{"use strict";var hh=wn(),wo=hr(),dh=(e,t={})=>{let r=(n,i={})=>{let s=wo.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=wo.reduce(n.nodes),h=hh(...u,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};Ao.exports=dh});var Po=g((gy,Oo)=>{"use strict";var ph=wn(),Co=dr(),pt=hr(),Je=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?pt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Je(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Je(i,s,r):i+s);return pt.flatten(n)},_h=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Je(a.pop(),Co(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Je(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=pt.reduce(i.nodes);if(pt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=ph(...h,t);c.length===0&&(c=Co(i,t)),a.push(Je(a.pop(),c)),i.nodes=[];return}let l=pt.encloseBrace(i),f=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let h=0;h<i.nodes.length;h++){let c=i.nodes[h];if(c.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(c.type==="close"){a.push(Je(a.pop(),f,l));continue}if(c.value&&c.type!=="open"){f.push(Je(f.pop(),c.value));continue}c.nodes&&n(c,i)}return f};return pt.flatten(n(e))};Oo.exports=_h});var Mo=g((my,Lo)=>{"use strict";Lo.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
5
|
+
`,CHAR_NO_BREAK_SPACE:" ",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 ko=g((yy,No)=>{"use strict";var gh=dr(),{MAX_LENGTH:Do,CHAR_BACKSLASH:An,CHAR_BACKTICK:mh,CHAR_COMMA:yh,CHAR_DOT:bh,CHAR_LEFT_PARENTHESES:xh,CHAR_RIGHT_PARENTHESES:Eh,CHAR_LEFT_CURLY_BRACE:vh,CHAR_RIGHT_CURLY_BRACE:Sh,CHAR_LEFT_SQUARE_BRACKET:Bo,CHAR_RIGHT_SQUARE_BRACKET:Io,CHAR_DOUBLE_QUOTE:Rh,CHAR_SINGLE_QUOTE:wh,CHAR_NO_BREAK_SPACE:Ah,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Th}=Mo(),Ch=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Do,r.maxLength):Do;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,a=i,l=0,f=e.length,u=0,h=0,c,v={},y=()=>e[u++],m=S=>{if(S.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&S.type==="text"){a.value+=S.value;return}return o.nodes.push(S),S.parent=o,S.prev=a,a=S,S};for(m({type:"bos"});u<f;)if(o=s[s.length-1],c=y(),!(c===Th||c===Ah)){if(c===An){m({type:"text",value:(t.keepEscaping?c:"")+y()});continue}if(c===Io){m({type:"text",value:"\\"+c});continue}if(c===Bo){l++;let S=!0,E;for(;u<f&&(E=y());){if(c+=E,E===Bo){l++;continue}if(E===An){c+=y();continue}if(E===Io&&(l--,l===0))break}m({type:"text",value:c});continue}if(c===xh){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:c});continue}if(c===Eh){if(o.type!=="paren"){m({type:"text",value:c});continue}o=s.pop(),m({type:"text",value:c}),o=s[s.length-1];continue}if(c===Rh||c===wh||c===mh){let S=c,E;for(t.keepQuotes!==!0&&(c="");u<f&&(E=y());){if(E===An){c+=E+y();continue}if(E===S){t.keepQuotes===!0&&(c+=E);break}c+=E}m({type:"text",value:c});continue}if(c===vh){h++;let S=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=m({type:"brace",open:!0,close:!1,dollar:S,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),m({type:"open",value:c});continue}if(c===Sh){if(o.type!=="brace"){m({type:"text",value:c});continue}let S="close";o=s.pop(),o.close=!0,m({type:S,value:c}),h--,o=s[s.length-1];continue}if(c===yh&&h>0){if(o.ranges>0){o.ranges=0;let S=o.nodes.shift();o.nodes=[S,{type:"text",value:gh(o)}]}m({type:"comma",value:c}),o.commas++;continue}if(c===bh&&h>0&&o.commas===0){let S=o.nodes;if(h===0||S.length===0){m({type:"text",value:c});continue}if(a.type==="dot"){if(o.range=[],a.value+=c,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){S.pop();let E=S[S.length-1];E.value+=a.value+c,a=E,o.ranges--;continue}m({type:"dot",value:c});continue}m({type:"text",value:c})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let S=s[s.length-1],E=S.nodes.indexOf(o);S.nodes.splice(E,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),i};No.exports=Ch});var jo=g((by,qo)=>{"use strict";var Fo=dr(),Oh=To(),Ph=Po(),Lh=ko(),ae=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ae.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ae.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ae.parse=(e,t={})=>Lh(e,t);ae.stringify=(e,t={})=>Fo(typeof e=="string"?ae.parse(e,t):e,t);ae.compile=(e,t={})=>(typeof e=="string"&&(e=ae.parse(e,t)),Oh(e,t));ae.expand=(e,t={})=>{typeof e=="string"&&(e=ae.parse(e,t));let r=Ph(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ae.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ae.compile(e,t):ae.expand(e,t);qo.exports=ae});var Ft=g((xy,Wo)=>{"use strict";var Mh=D("path"),ve="\\\\/",$o=`[^${ve}]`,Oe="\\.",Dh="\\+",Bh="\\?",_r="\\/",Ih="(?=.)",Ho="[^/]",Tn=`(?:${_r}|$)`,Go=`(?:^|${_r})`,Cn=`${Oe}{1,2}${Tn}`,Nh=`(?!${Oe})`,kh=`(?!${Go}${Cn})`,Fh=`(?!${Oe}{0,1}${Tn})`,qh=`(?!${Cn})`,jh=`[^.${_r}]`,$h=`${Ho}*?`,Uo={DOT_LITERAL:Oe,PLUS_LITERAL:Dh,QMARK_LITERAL:Bh,SLASH_LITERAL:_r,ONE_CHAR:Ih,QMARK:Ho,END_ANCHOR:Tn,DOTS_SLASH:Cn,NO_DOT:Nh,NO_DOTS:kh,NO_DOT_SLASH:Fh,NO_DOTS_SLASH:qh,QMARK_NO_DOT:jh,STAR:$h,START_ANCHOR:Go},Hh={...Uo,SLASH_LITERAL:`[${ve}]`,QMARK:$o,STAR:`${$o}*?`,DOTS_SLASH:`${Oe}{1,2}(?:[${ve}]|$)`,NO_DOT:`(?!${Oe})`,NO_DOTS:`(?!(?:^|[${ve}])${Oe}{1,2}(?:[${ve}]|$))`,NO_DOT_SLASH:`(?!${Oe}{0,1}(?:[${ve}]|$))`,NO_DOTS_SLASH:`(?!${Oe}{1,2}(?:[${ve}]|$))`,QMARK_NO_DOT:`[^.${ve}]`,START_ANCHOR:`(?:^|[${ve}])`,END_ANCHOR:`(?:[${ve}]|$)`},Gh={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"};Wo.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Gh,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:Mh.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?Hh:Uo}}});var qt=g(se=>{"use strict";var Uh=D("path"),Wh=process.platform==="win32",{REGEX_BACKSLASH:Vh,REGEX_REMOVE_BACKSLASH:Yh,REGEX_SPECIAL_CHARS:Kh,REGEX_SPECIAL_CHARS_GLOBAL:Qh}=Ft();se.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);se.hasRegexChars=e=>Kh.test(e);se.isRegexChar=e=>e.length===1&&se.hasRegexChars(e);se.escapeRegex=e=>e.replace(Qh,"\\$1");se.toPosixSlashes=e=>e.replace(Vh,"/");se.removeBackslashes=e=>e.replace(Yh,t=>t==="\\"?"":t);se.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};se.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Wh===!0||Uh.sep==="\\";se.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?se.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};se.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};se.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var zo=g((vy,Zo)=>{"use strict";var Vo=qt(),{CHAR_ASTERISK:On,CHAR_AT:Xh,CHAR_BACKWARD_SLASH:jt,CHAR_COMMA:Jh,CHAR_DOT:Pn,CHAR_EXCLAMATION_MARK:Ln,CHAR_FORWARD_SLASH:Jo,CHAR_LEFT_CURLY_BRACE:Mn,CHAR_LEFT_PARENTHESES:Dn,CHAR_LEFT_SQUARE_BRACKET:Zh,CHAR_PLUS:zh,CHAR_QUESTION_MARK:Yo,CHAR_RIGHT_CURLY_BRACE:ed,CHAR_RIGHT_PARENTHESES:Ko,CHAR_RIGHT_SQUARE_BRACKET:td}=Ft(),Qo=e=>e===Jo||e===jt,Xo=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},rd=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=e,f=-1,u=0,h=0,c=!1,v=!1,y=!1,m=!1,S=!1,E=!1,L=!1,B=!1,J=!1,T=!1,$=0,C,w,k={value:"",depth:0,isGlob:!1},R=()=>f>=n,d=()=>l.charCodeAt(f+1),j=()=>(C=w,l.charCodeAt(++f));for(;f<n;){w=j();let ne;if(w===jt){L=k.backslashes=!0,w=j(),w===Mn&&(E=!0);continue}if(E===!0||w===Mn){for($++;R()!==!0&&(w=j());){if(w===jt){L=k.backslashes=!0,j();continue}if(w===Mn){$++;continue}if(E!==!0&&w===Pn&&(w=j())===Pn){if(c=k.isBrace=!0,y=k.isGlob=!0,T=!0,i===!0)continue;break}if(E!==!0&&w===Jh){if(c=k.isBrace=!0,y=k.isGlob=!0,T=!0,i===!0)continue;break}if(w===ed&&($--,$===0)){E=!1,c=k.isBrace=!0,T=!0;break}}if(i===!0)continue;break}if(w===Jo){if(s.push(f),o.push(k),k={value:"",depth:0,isGlob:!1},T===!0)continue;if(C===Pn&&f===u+1){u+=2;continue}h=f+1;continue}if(r.noext!==!0&&(w===zh||w===Xh||w===On||w===Yo||w===Ln)===!0&&d()===Dn){if(y=k.isGlob=!0,m=k.isExtglob=!0,T=!0,w===Ln&&f===u&&(J=!0),i===!0){for(;R()!==!0&&(w=j());){if(w===jt){L=k.backslashes=!0,w=j();continue}if(w===Ko){y=k.isGlob=!0,T=!0;break}}continue}break}if(w===On){if(C===On&&(S=k.isGlobstar=!0),y=k.isGlob=!0,T=!0,i===!0)continue;break}if(w===Yo){if(y=k.isGlob=!0,T=!0,i===!0)continue;break}if(w===Zh){for(;R()!==!0&&(ne=j());){if(ne===jt){L=k.backslashes=!0,j();continue}if(ne===td){v=k.isBracket=!0,y=k.isGlob=!0,T=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&w===Ln&&f===u){B=k.negated=!0,u++;continue}if(r.noparen!==!0&&w===Dn){if(y=k.isGlob=!0,i===!0){for(;R()!==!0&&(w=j());){if(w===Dn){L=k.backslashes=!0,w=j();continue}if(w===Ko){T=!0;break}}continue}break}if(y===!0){if(T=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,y=!1);let F=l,Ie="",p="";u>0&&(Ie=l.slice(0,u),l=l.slice(u),h-=u),F&&y===!0&&h>0?(F=l.slice(0,h),p=l.slice(h)):y===!0?(F="",p=l):F=l,F&&F!==""&&F!=="/"&&F!==l&&Qo(F.charCodeAt(F.length-1))&&(F=F.slice(0,-1)),r.unescape===!0&&(p&&(p=Vo.removeBackslashes(p)),F&&L===!0&&(F=Vo.removeBackslashes(F)));let _={prefix:Ie,input:e,start:u,base:F,glob:p,isBrace:c,isBracket:v,isGlob:y,isExtglob:m,isGlobstar:S,negated:B,negatedExtglob:J};if(r.tokens===!0&&(_.maxDepth=0,Qo(w)||o.push(k),_.tokens=o),r.parts===!0||r.tokens===!0){let ne;for(let N=0;N<s.length;N++){let be=ne?ne+1:u,xe=s[N],oe=e.slice(be,xe);r.tokens&&(N===0&&u!==0?(o[N].isPrefix=!0,o[N].value=Ie):o[N].value=oe,Xo(o[N]),_.maxDepth+=o[N].depth),(N!==0||oe!=="")&&a.push(oe),ne=xe}if(ne&&ne+1<e.length){let N=e.slice(ne+1);a.push(N),r.tokens&&(o[o.length-1].value=N,Xo(o[o.length-1]),_.maxDepth+=o[o.length-1].depth)}_.slashes=s,_.parts=a}return _};Zo.exports=rd});var ra=g((Sy,ta)=>{"use strict";var gr=Ft(),le=qt(),{MAX_LENGTH:mr,POSIX_REGEX_SOURCE:nd,REGEX_NON_SPECIAL_CHARS:id,REGEX_SPECIAL_CHARS_BACKREF:sd,REPLACEMENTS:ea}=gr,od=(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=>le.escapeRegex(i)).join("..")}return r},_t=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Bn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ea[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(mr,r.maxLength):mr,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],a=r.capture?"":"?:",l=le.isWindows(t),f=gr.globChars(l),u=gr.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:c,SLASH_LITERAL:v,ONE_CHAR:y,DOTS_SLASH:m,NO_DOT:S,NO_DOT_SLASH:E,NO_DOTS_SLASH:L,QMARK:B,QMARK_NO_DOT:J,STAR:T,START_ANCHOR:$}=f,C=x=>`(${a}(?:(?!${$}${x.dot?m:h}).)*?)`,w=r.dot?"":S,k=r.dot?B:J,R=r.bash===!0?C(r):T;r.capture&&(R=`(${R})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let d={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=le.removePrefix(e,d),i=e.length;let j=[],F=[],Ie=[],p=s,_,ne=()=>d.index===i-1,N=d.peek=(x=1)=>e[d.index+x],be=d.advance=()=>e[++d.index]||"",xe=()=>e.slice(d.index+1),oe=(x="",G=0)=>{d.consumed+=x,d.index+=G},ir=x=>{d.output+=x.output!=null?x.output:x.value,oe(x.value)},uc=()=>{let x=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)be(),d.start++,x++;return x%2===0?!1:(d.negated=!0,d.start++,!0)},sr=x=>{d[x]++,Ie.push(x)},Ke=x=>{d[x]--,Ie.pop()},M=x=>{if(p.type==="globstar"){let G=d.braces>0&&(x.type==="comma"||x.type==="brace"),b=x.extglob===!0||j.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!G&&!b&&(d.output=d.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=R,d.output+=p.output)}if(j.length&&x.type!=="paren"&&(j[j.length-1].inner+=x.value),(x.value||x.output)&&ir(x),p&&p.type==="text"&&x.type==="text"){p.value+=x.value,p.output=(p.output||"")+x.value;return}x.prev=p,o.push(x),p=x},or=(x,G)=>{let b={...u[G],conditions:1,inner:""};b.prev=p,b.parens=d.parens,b.output=d.output;let O=(r.capture?"(":"")+b.open;sr("parens"),M({type:x,value:G,output:d.output?"":y}),M({type:"paren",extglob:!0,value:be(),output:O}),j.push(b)},fc=x=>{let G=x.close+(r.capture?")":""),b;if(x.type==="negate"){let O=R;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(O=C(r)),(O!==R||ne()||/^\)+$/.test(xe()))&&(G=x.close=`)$))${O}`),x.inner.includes("*")&&(b=xe())&&/^\.[^\\/.]+$/.test(b)){let V=Bn(b,{...t,fastpaths:!1}).output;G=x.close=`)${V})${O})`}x.prev.type==="bos"&&(d.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:_,output:G}),Ke("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let x=!1,G=e.replace(sd,(b,O,V,ie,Z,gn)=>ie==="\\"?(x=!0,b):ie==="?"?O?O+ie+(Z?B.repeat(Z.length):""):gn===0?k+(Z?B.repeat(Z.length):""):B.repeat(V.length):ie==="."?h.repeat(V.length):ie==="*"?O?O+ie+(Z?R:""):R:O?b:`\\${b}`);return x===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),G===e&&r.contains===!0?(d.output=e,d):(d.output=le.wrapOutput(G,d,t),d)}for(;!ne();){if(_=be(),_==="\0")continue;if(_==="\\"){let b=N();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){_+="\\",M({type:"text",value:_});continue}let O=/^\\+/.exec(xe()),V=0;if(O&&O[0].length>2&&(V=O[0].length,d.index+=V,V%2!==0&&(_+="\\")),r.unescape===!0?_=be():_+=be(),d.brackets===0){M({type:"text",value:_});continue}}if(d.brackets>0&&(_!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&_===":"){let b=p.value.slice(1);if(b.includes("[")&&(p.posix=!0,b.includes(":"))){let O=p.value.lastIndexOf("["),V=p.value.slice(0,O),ie=p.value.slice(O+2),Z=nd[ie];if(Z){p.value=V+Z,d.backtrack=!0,be(),!s.output&&o.indexOf(p)===1&&(s.output=y);continue}}}(_==="["&&N()!==":"||_==="-"&&N()==="]")&&(_=`\\${_}`),_==="]"&&(p.value==="["||p.value==="[^")&&(_=`\\${_}`),r.posix===!0&&_==="!"&&p.value==="["&&(_="^"),p.value+=_,ir({value:_});continue}if(d.quotes===1&&_!=='"'){_=le.escapeRegex(_),p.value+=_,ir({value:_});continue}if(_==='"'){d.quotes=d.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:_});continue}if(_==="("){sr("parens"),M({type:"paren",value:_});continue}if(_===")"){if(d.parens===0&&r.strictBrackets===!0)throw new SyntaxError(_t("opening","("));let b=j[j.length-1];if(b&&d.parens===b.parens+1){fc(j.pop());continue}M({type:"paren",value:_,output:d.parens?")":"\\)"}),Ke("parens");continue}if(_==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));_=`\\${_}`}else sr("brackets");M({type:"bracket",value:_});continue}if(_==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){M({type:"text",value:_,output:`\\${_}`});continue}if(d.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(_t("opening","["));M({type:"text",value:_,output:`\\${_}`});continue}Ke("brackets");let b=p.value.slice(1);if(p.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(_=`/${_}`),p.value+=_,ir({value:_}),r.literalBrackets===!1||le.hasRegexChars(b))continue;let O=le.escapeRegex(p.value);if(d.output=d.output.slice(0,-p.value.length),r.literalBrackets===!0){d.output+=O,p.value=O;continue}p.value=`(${a}${O}|${p.value})`,d.output+=p.value;continue}if(_==="{"&&r.nobrace!==!0){sr("braces");let b={type:"brace",value:_,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};F.push(b),M(b);continue}if(_==="}"){let b=F[F.length-1];if(r.nobrace===!0||!b){M({type:"text",value:_,output:_});continue}let O=")";if(b.dots===!0){let V=o.slice(),ie=[];for(let Z=V.length-1;Z>=0&&(o.pop(),V[Z].type!=="brace");Z--)V[Z].type!=="dots"&&ie.unshift(V[Z].value);O=od(ie,r),d.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let V=d.output.slice(0,b.outputIndex),ie=d.tokens.slice(b.tokensIndex);b.value=b.output="\\{",_=O="\\}",d.output=V;for(let Z of ie)d.output+=Z.output||Z.value}M({type:"brace",value:_,output:O}),Ke("braces"),F.pop();continue}if(_==="|"){j.length>0&&j[j.length-1].conditions++,M({type:"text",value:_});continue}if(_===","){let b=_,O=F[F.length-1];O&&Ie[Ie.length-1]==="braces"&&(O.comma=!0,b="|"),M({type:"comma",value:_,output:b});continue}if(_==="/"){if(p.type==="dot"&&d.index===d.start+1){d.start=d.index+1,d.consumed="",d.output="",o.pop(),p=s;continue}M({type:"slash",value:_,output:v});continue}if(_==="."){if(d.braces>0&&p.type==="dot"){p.value==="."&&(p.output=h);let b=F[F.length-1];p.type="dots",p.output+=_,p.value+=_,b.dots=!0;continue}if(d.braces+d.parens===0&&p.type!=="bos"&&p.type!=="slash"){M({type:"text",value:_,output:h});continue}M({type:"dot",value:_,output:h});continue}if(_==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){or("qmark",_);continue}if(p&&p.type==="paren"){let O=N(),V=_;if(O==="<"&&!le.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(O)||O==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(V=`\\${_}`),M({type:"text",value:_,output:V});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){M({type:"qmark",value:_,output:J});continue}M({type:"qmark",value:_,output:B});continue}if(_==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){or("negate",_);continue}if(r.nonegate!==!0&&d.index===0){uc();continue}}if(_==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){or("plus",_);continue}if(p&&p.value==="("||r.regex===!1){M({type:"plus",value:_,output:c});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||d.parens>0){M({type:"plus",value:_});continue}M({type:"plus",value:c});continue}if(_==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){M({type:"at",extglob:!0,value:_,output:""});continue}M({type:"text",value:_});continue}if(_!=="*"){(_==="$"||_==="^")&&(_=`\\${_}`);let b=id.exec(xe());b&&(_+=b[0],d.index+=b[0].length),M({type:"text",value:_});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=_,p.output=R,d.backtrack=!0,d.globstar=!0,oe(_);continue}let x=xe();if(r.noextglob!==!0&&/^\([^?]/.test(x)){or("star",_);continue}if(p.type==="star"){if(r.noglobstar===!0){oe(_);continue}let b=p.prev,O=b.prev,V=b.type==="slash"||b.type==="bos",ie=O&&(O.type==="star"||O.type==="globstar");if(r.bash===!0&&(!V||x[0]&&x[0]!=="/")){M({type:"star",value:_,output:""});continue}let Z=d.braces>0&&(b.type==="comma"||b.type==="brace"),gn=j.length&&(b.type==="pipe"||b.type==="paren");if(!V&&b.type!=="paren"&&!Z&&!gn){M({type:"star",value:_,output:""});continue}for(;x.slice(0,3)==="/**";){let ar=e[d.index+4];if(ar&&ar!=="/")break;x=x.slice(3),oe("/**",3)}if(b.type==="bos"&&ne()){p.type="globstar",p.value+=_,p.output=C(r),d.output=p.output,d.globstar=!0,oe(_);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!ie&&ne()){d.output=d.output.slice(0,-(b.output+p.output).length),b.output=`(?:${b.output}`,p.type="globstar",p.output=C(r)+(r.strictSlashes?")":"|$)"),p.value+=_,d.globstar=!0,d.output+=b.output+p.output,oe(_);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&x[0]==="/"){let ar=x[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(b.output+p.output).length),b.output=`(?:${b.output}`,p.type="globstar",p.output=`${C(r)}${v}|${v}${ar})`,p.value+=_,d.output+=b.output+p.output,d.globstar=!0,oe(_+be()),M({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&x[0]==="/"){p.type="globstar",p.value+=_,p.output=`(?:^|${v}|${C(r)}${v})`,d.output=p.output,d.globstar=!0,oe(_+be()),M({type:"slash",value:"/",output:""});continue}d.output=d.output.slice(0,-p.output.length),p.type="globstar",p.output=C(r),p.value+=_,d.output+=p.output,d.globstar=!0,oe(_);continue}let G={type:"star",value:_,output:R};if(r.bash===!0){G.output=".*?",(p.type==="bos"||p.type==="slash")&&(G.output=w+G.output),M(G);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){G.output=_,M(G);continue}(d.index===d.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(d.output+=E,p.output+=E):r.dot===!0?(d.output+=L,p.output+=L):(d.output+=w,p.output+=w),N()!=="*"&&(d.output+=y,p.output+=y)),M(G)}for(;d.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));d.output=le.escapeLast(d.output,"["),Ke("brackets")}for(;d.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing",")"));d.output=le.escapeLast(d.output,"("),Ke("parens")}for(;d.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","}"));d.output=le.escapeLast(d.output,"{"),Ke("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${v}?`}),d.backtrack===!0){d.output="";for(let x of d.tokens)d.output+=x.output!=null?x.output:x.value,x.suffix&&(d.output+=x.suffix)}return d};Bn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(mr,r.maxLength):mr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=ea[e]||e;let s=le.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:c,STAR:v,START_ANCHOR:y}=gr.globChars(s),m=r.dot?h:u,S=r.dot?c:u,E=r.capture?"":"?:",L={negated:!1,prefix:""},B=r.bash===!0?".*?":v;r.capture&&(B=`(${B})`);let J=w=>w.noglobstar===!0?B:`(${E}(?:(?!${y}${w.dot?f:o}).)*?)`,T=w=>{switch(w){case"*":return`${m}${l}${B}`;case".*":return`${o}${l}${B}`;case"*.*":return`${m}${B}${o}${l}${B}`;case"*/*":return`${m}${B}${a}${l}${S}${B}`;case"**":return m+J(r);case"**/*":return`(?:${m}${J(r)}${a})?${S}${l}${B}`;case"**/*.*":return`(?:${m}${J(r)}${a})?${S}${B}${o}${l}${B}`;case"**/.*":return`(?:${m}${J(r)}${a})?${o}${l}${B}`;default:{let k=/^(.*?)\.(\w+)$/.exec(w);if(!k)return;let R=T(k[1]);return R?R+o+k[2]:void 0}}},$=le.removePrefix(e,L),C=T($);return C&&r.strictSlashes!==!0&&(C+=`${a}?`),C};ta.exports=Bn});var ia=g((Ry,na)=>{"use strict";var ad=D("path"),ld=zo(),In=ra(),Nn=qt(),ud=Ft(),fd=e=>e&&typeof e=="object"&&!Array.isArray(e),K=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(c=>K(c,t,r));return c=>{for(let v of u){let y=v(c);if(y)return y}return!1}}let n=fd(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=Nn.isWindows(t),o=n?K.compileRe(e,t):K.makeRe(e,t,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=K(i.ignore,u,r)}let f=(u,h=!1)=>{let{isMatch:c,match:v,output:y}=K.test(u,o,t,{glob:e,posix:s}),m={glob:e,state:a,regex:o,posix:s,input:u,output:y,match:v,isMatch:c};return typeof i.onResult=="function"&&i.onResult(m),c===!1?(m.isMatch=!1,h?m:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,h?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),h?m:!0)};return r&&(f.state=a),f};K.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?Nn.toPosixSlashes:null),a=e===n,l=a&&o?o(e):e;return a===!1&&(l=o?o(e):e,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=K.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:Boolean(a),match:a,output:l}};K.matchBase=(e,t,r,n=Nn.isWindows(r))=>(t instanceof RegExp?t:K.makeRe(t,r)).test(ad.basename(e));K.isMatch=(e,t,r)=>K(t,r)(e);K.parse=(e,t)=>Array.isArray(e)?e.map(r=>K.parse(r,t)):In(e,{...t,fastpaths:!1});K.scan=(e,t)=>ld(e,t);K.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let l=K.toRegex(a,t);return n===!0&&(l.state=e),l};K.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=In.fastpaths(e,t)),i.output||(i=In(e,t)),K.compileRe(i,t,r,n)};K.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/$^/}};K.constants=ud;na.exports=K});var oa=g((wy,sa)=>{"use strict";sa.exports=ia()});var ca=g((Ay,fa)=>{"use strict";var la=D("util"),ua=jo(),Se=oa(),kn=qt(),aa=e=>e===""||e==="./",U=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let h=Se(String(t[u]),{...r,onResult:a},!0),c=h.state.negated||h.state.negatedExtglob;c&&o++;for(let v of e){let y=h(v,!0);!(c?!y.isMatch:y.isMatch)||(c?n.add(y.output):(n.delete(y.output),i.add(y.output)))}}let f=(o===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&f.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(u=>u.replace(/\\/g,"")):t}return f};U.match=U;U.matcher=(e,t)=>Se(e,t);U.isMatch=(e,t,r)=>Se(t,r)(e);U.any=U.isMatch;U.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(U(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};U.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${la.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>U.contains(e,n,r));if(typeof t=="string"){if(aa(e)||aa(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return U.isMatch(e,t,{...r,contains:!0})};U.matchKeys=(e,t,r)=>{if(!kn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=U(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};U.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Se(String(i),r);if(n.some(o=>s(o)))return!0}return!1};U.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Se(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};U.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${la.inspect(e)}"`);return[].concat(t).every(n=>Se(n,r)(e))};U.capture=(e,t,r)=>{let n=kn.isWindows(r),s=Se.makeRe(String(e),{...r,capture:!0}).exec(n?kn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};U.makeRe=(...e)=>Se.makeRe(...e);U.scan=(...e)=>Se.scan(...e);U.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of ua(String(n),t))r.push(Se.parse(i,t));return r};U.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:ua(e,t)};U.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return U.braces(e,{...t,expand:!0})};fa.exports=U});var ba=g(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.matchAny=A.convertPatternsToRe=A.makeRe=A.getPatternParts=A.expandBraceExpansion=A.expandPatternsWithBraceExpansion=A.isAffectDepthOfReadingPattern=A.endsWithSlashGlobStar=A.hasGlobStar=A.getBaseDirectory=A.isPatternRelatedToParentDirectory=A.getPatternsOutsideCurrentDirectory=A.getPatternsInsideCurrentDirectory=A.getPositivePatterns=A.getNegativePatterns=A.isPositivePattern=A.isNegativePattern=A.convertToNegativePattern=A.convertToPositivePattern=A.isDynamicPattern=A.isStaticPattern=void 0;var cd=D("path"),hd=ro(),Fn=ca(),ha="**",dd="\\",pd=/[*?]|^!/,_d=/\[[^[]*]/,gd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,md=/[!*+?@]\([^(]*\)/,yd=/,|\.\./;function da(e,t={}){return!pa(e,t)}A.isStaticPattern=da;function pa(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(dd)||pd.test(e)||_d.test(e)||gd.test(e)||t.extglob!==!1&&md.test(e)||t.braceExpansion!==!1&&bd(e))}A.isDynamicPattern=pa;function bd(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 yd.test(n)}function xd(e){return yr(e)?e.slice(1):e}A.convertToPositivePattern=xd;function Ed(e){return"!"+e}A.convertToNegativePattern=Ed;function yr(e){return e.startsWith("!")&&e[1]!=="("}A.isNegativePattern=yr;function _a(e){return!yr(e)}A.isPositivePattern=_a;function vd(e){return e.filter(yr)}A.getNegativePatterns=vd;function Sd(e){return e.filter(_a)}A.getPositivePatterns=Sd;function Rd(e){return e.filter(t=>!qn(t))}A.getPatternsInsideCurrentDirectory=Rd;function wd(e){return e.filter(qn)}A.getPatternsOutsideCurrentDirectory=wd;function qn(e){return e.startsWith("..")||e.startsWith("./..")}A.isPatternRelatedToParentDirectory=qn;function Ad(e){return hd(e,{flipBackslashes:!1})}A.getBaseDirectory=Ad;function Td(e){return e.includes(ha)}A.hasGlobStar=Td;function ga(e){return e.endsWith("/"+ha)}A.endsWithSlashGlobStar=ga;function Cd(e){let t=cd.basename(e);return ga(e)||da(t)}A.isAffectDepthOfReadingPattern=Cd;function Od(e){return e.reduce((t,r)=>t.concat(ma(r)),[])}A.expandPatternsWithBraceExpansion=Od;function ma(e){return Fn.braces(e,{expand:!0,nodupes:!0})}A.expandBraceExpansion=ma;function Pd(e,t){let{parts:r}=Fn.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}A.getPatternParts=Pd;function ya(e,t){return Fn.makeRe(e,t)}A.makeRe=ya;function Ld(e,t){return e.map(r=>ya(r,t))}A.convertPatternsToRe=Ld;function Md(e,t){return t.some(r=>r.test(e))}A.matchAny=Md});var Sa=g((Cy,va)=>{"use strict";var Dd=D("stream"),xa=Dd.PassThrough,Bd=Array.prototype.slice;va.exports=Id;function Id(){let e=[],t=Bd.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=xa(n);function a(){for(let u=0,h=arguments.length;u<h;u++)e.push(Ea(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(f);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function c(){--h>0||(r=!1,l())}function v(y){function m(){y.removeListener("merge2UnpipeEnd",m),y.removeListener("end",m),s&&y.removeListener("error",S),c()}function S(E){o.emit("error",E)}if(y._readableState.endEmitted)return c();y.on("merge2UnpipeEnd",m),y.on("end",m),s&&y.on("error",S),y.pipe(o,{end:!1}),y.resume()}for(let y=0;y<u.length;y++)v(u[y]);c()}function f(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function Ea(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Ea(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(xa(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var wa=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.merge=void 0;var Nd=Sa();function kd(e){let t=Nd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Ra(e)),t.once("end",()=>Ra(e)),t}br.merge=kd;function Ra(e){e.forEach(t=>t.emit("close"))}});var Aa=g(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.isEmpty=gt.isString=void 0;function Fd(e){return typeof e=="string"}gt.isString=Fd;function qd(e){return e===""}gt.isEmpty=qd});var Pe=g(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.string=ee.stream=ee.pattern=ee.path=ee.fs=ee.errno=ee.array=void 0;var jd=Ws();ee.array=jd;var $d=Vs();ee.errno=$d;var Hd=Ks();ee.fs=Hd;var Gd=Qs();ee.path=Gd;var Ud=ba();ee.pattern=Ud;var Wd=wa();ee.stream=Wd;var Vd=Aa();ee.string=Vd});var Oa=g(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.convertPatternGroupToTask=te.convertPatternGroupsToTasks=te.groupPatternsByBaseDirectory=te.getNegativePatternsAsPositive=te.getPositivePatterns=te.convertPatternsToTasks=te.generate=void 0;var Le=Pe();function Yd(e,t){let r=Ta(e),n=Ca(e,t.ignore),i=r.filter(l=>Le.pattern.isStaticPattern(l,t)),s=r.filter(l=>Le.pattern.isDynamicPattern(l,t)),o=jn(i,n,!1),a=jn(s,n,!0);return o.concat(a)}te.generate=Yd;function jn(e,t,r){let n=[],i=Le.pattern.getPatternsOutsideCurrentDirectory(e),s=Le.pattern.getPatternsInsideCurrentDirectory(e),o=$n(i),a=$n(s);return n.push(...Hn(o,t,r)),"."in a?n.push(Gn(".",s,t,r)):n.push(...Hn(a,t,r)),n}te.convertPatternsToTasks=jn;function Ta(e){return Le.pattern.getPositivePatterns(e)}te.getPositivePatterns=Ta;function Ca(e,t){return Le.pattern.getNegativePatterns(e).concat(t).map(Le.pattern.convertToPositivePattern)}te.getNegativePatternsAsPositive=Ca;function $n(e){let t={};return e.reduce((r,n)=>{let i=Le.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}te.groupPatternsByBaseDirectory=$n;function Hn(e,t,r){return Object.keys(e).map(n=>Gn(n,e[n],t,r))}te.convertPatternGroupsToTasks=Hn;function Gn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Le.pattern.convertToNegativePattern))}}te.convertPatternGroupToTask=Gn});var La=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.removeDuplicateSlashes=mt.transform=void 0;var Kd=/(?!^)\/{2,}/g;function Qd(e){return e.map(t=>Pa(t))}mt.transform=Qd;function Pa(e){return e.replace(Kd,"/")}mt.removeDuplicateSlashes=Pa});var Da=g(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.read=void 0;function Xd(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Ma(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Un(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Ma(r,s);return}Un(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Un(r,o)})})}xr.read=Xd;function Ma(e,t){e(t)}function Un(e,t){e(null,t)}});var Ba=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.read=void 0;function Jd(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}}Er.read=Jd});var Ia=g(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createFileSystemAdapter=Ne.FILE_SYSTEM_ADAPTER=void 0;var vr=D("fs");Ne.FILE_SYSTEM_ADAPTER={lstat:vr.lstat,stat:vr.stat,lstatSync:vr.lstatSync,statSync:vr.statSync};function Zd(e){return e===void 0?Ne.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ne.FILE_SYSTEM_ADAPTER),e)}Ne.createFileSystemAdapter=Zd});var ka=g(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});var zd=Ia(),Na=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=zd.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??r}};Wn.default=Na});var Ze=g(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.statSync=ke.stat=ke.Settings=void 0;var Fa=Da(),ep=Ba(),Vn=ka();ke.Settings=Vn.default;function tp(e,t,r){if(typeof t=="function"){Fa.read(e,Yn(),t);return}Fa.read(e,Yn(t),r)}ke.stat=tp;function rp(e,t){let r=Yn(t);return ep.read(e,r)}ke.statSync=rp;function Yn(e={}){return e instanceof Vn.default?e:new Vn.default(e)}});var $a=g((qy,ja)=>{var qa;ja.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(qa||(qa=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ga=g((jy,Ha)=>{Ha.exports=ip;var np=$a();function ip(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(l){function f(){t&&t(l,r),t=null}s?np(f):f()}function a(l,f,u){r[l]=u,(--n===0||f)&&o(f)}n?i?i.forEach(function(l){e[l](function(f,u){a(l,f,u)})}):e.forEach(function(l,f){l(function(u,h){a(f,u,h)})}):o(null),s=!1}});var Kn=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Sr=process.versions.node.split(".");if(Sr[0]===void 0||Sr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ua=Number.parseInt(Sr[0],10),sp=Number.parseInt(Sr[1],10),Wa=10,op=10,ap=Ua>Wa,lp=Ua===Wa&&sp>=op;Rr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ap||lp});var Ya=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.createDirentFromStats=void 0;var Va=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 up(e,t){return new Va(e,t)}wr.createDirentFromStats=up});var Qn=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.fs=void 0;var fp=Ya();Ar.fs=fp});var Xn=g(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.joinPathSegments=void 0;function cp(e,t,r){return e.endsWith(r)?e+t:e+r+t}Tr.joinPathSegments=cp});var za=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.readdir=Fe.readdirWithFileTypes=Fe.read=void 0;var hp=Ze(),Ka=Ga(),dp=Kn(),Qa=Qn(),Xa=Xn();function pp(e,t,r){if(!t.stats&&dp.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ja(e,t,r);return}Za(e,t,r)}Fe.read=pp;function Ja(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Cr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Xa.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Jn(r,s);return}let o=s.map(a=>_p(a,t));Ka(o,(a,l)=>{if(a!==null){Cr(r,a);return}Jn(r,l)})})}Fe.readdirWithFileTypes=Ja;function _p(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=Qa.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Za(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Cr(r,n);return}let s=i.map(o=>{let a=Xa.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{hp.stat(a,t.fsStatSettings,(f,u)=>{if(f!==null){l(f);return}let h={name:o,path:a,dirent:Qa.fs.createDirentFromStats(o,u)};t.stats&&(h.stats=u),l(null,h)})}});Ka(s,(o,a)=>{if(o!==null){Cr(r,o);return}Jn(r,a)})})}Fe.readdir=Za;function Cr(e,t){e(t)}function Jn(e,t){e(null,t)}});var il=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.readdir=qe.readdirWithFileTypes=qe.read=void 0;var gp=Ze(),mp=Kn(),el=Qn(),tl=Xn();function yp(e,t){return!t.stats&&mp.IS_SUPPORT_READDIR_WITH_FILE_TYPES?rl(e,t):nl(e,t)}qe.read=yp;function rl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:tl.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=el.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}qe.readdirWithFileTypes=rl;function nl(e,t){return t.fs.readdirSync(e).map(n=>{let i=tl.joinPathSegments(e,n,t.pathSegmentSeparator),s=gp.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:el.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}qe.readdir=nl});var sl=g(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.createFileSystemAdapter=je.FILE_SYSTEM_ADAPTER=void 0;var yt=D("fs");je.FILE_SYSTEM_ADAPTER={lstat:yt.lstat,stat:yt.stat,lstatSync:yt.lstatSync,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};function bp(e){return e===void 0?je.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},je.FILE_SYSTEM_ADAPTER),e)}je.createFileSystemAdapter=bp});var al=g(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var xp=D("path"),Ep=Ze(),vp=sl(),ol=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=vp.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,xp.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Ep.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Zn.default=ol});var Or=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Settings=$e.scandirSync=$e.scandir=void 0;var ll=za(),Sp=il(),zn=al();$e.Settings=zn.default;function Rp(e,t,r){if(typeof t=="function"){ll.read(e,ei(),t);return}ll.read(e,ei(t),r)}$e.scandir=Rp;function wp(e,t){let r=ei(t);return Sp.read(e,r)}$e.scandirSync=wp;function ei(e={}){return e instanceof zn.default?e:new zn.default(e)}});var fl=g((Xy,ul)=>{"use strict";function Ap(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}}ul.exports=Ap});var hl=g((Jy,ti)=>{"use strict";var Tp=fl();function cl(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=Tp(Cp),i=null,s=null,o=0,a=null,l={push:m,drain:ce,saturated:ce,pause:u,paused:!1,concurrency:r,running:f,resume:v,idle:y,length:h,getQueue:c,unshift:S,empty:ce,kill:L,killAndDrain:B,error:J};return l;function f(){return o}function u(){l.paused=!0}function h(){for(var T=i,$=0;T;)T=T.next,$++;return $}function c(){for(var T=i,$=[];T;)$.push(T.value),T=T.next;return $}function v(){if(!!l.paused){l.paused=!1;for(var T=0;T<l.concurrency;T++)o++,E()}}function y(){return o===0&&l.length()===0}function m(T,$){var C=n.get();C.context=e,C.release=E,C.value=T,C.callback=$||ce,C.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=C,s=C):(i=C,s=C,l.saturated()):(o++,t.call(e,C.value,C.worked))}function S(T,$){var C=n.get();C.context=e,C.release=E,C.value=T,C.callback=$||ce,o===l.concurrency||l.paused?i?(C.next=i,i=C):(i=C,s=C,l.saturated()):(o++,t.call(e,C.value,C.worked))}function E(T){T&&n.release(T);var $=i;$?l.paused?o--:(s===i&&(s=null),i=$.next,$.next=null,t.call(e,$.value,$.worked),s===null&&l.empty()):--o===0&&l.drain()}function L(){i=null,s=null,l.drain=ce}function B(){i=null,s=null,l.drain(),l.drain=ce}function J(T){a=T}}function ce(){}function Cp(){this.value=null,this.callback=ce,this.next=null,this.release=ce,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=ce,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Op(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,h){t.call(this,u).then(function(c){h(null,c)},h)}var i=cl(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=f,i;function a(u){var h=new Promise(function(c,v){s(u,function(y,m){if(y){v(y);return}c(m)})});return h.catch(ce),h}function l(u){var h=new Promise(function(c,v){o(u,function(y,m){if(y){v(y);return}c(m)})});return h.catch(ce),h}function f(){var u=i.drain,h=new Promise(function(c){i.drain=function(){u(),c()}});return h}}ti.exports=cl;ti.exports.promise=Op});var Pr=g(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.joinPathSegments=Re.replacePathSegmentSeparator=Re.isAppliedFilter=Re.isFatalError=void 0;function Pp(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Re.isFatalError=Pp;function Lp(e,t){return e===null||e(t)}Re.isAppliedFilter=Lp;function Mp(e,t){return e.split(/[/\\]/).join(t)}Re.replacePathSegmentSeparator=Mp;function Dp(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Re.joinPathSegments=Dp});var ni=g(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var Bp=Pr(),dl=class{constructor(t,r){this._root=t,this._settings=r,this._root=Bp.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ri.default=dl});var si=g(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var Ip=D("events"),Np=Or(),kp=hl(),Lr=Pr(),Fp=ni(),pl=class extends Fp.default{constructor(t,r){super(t,r);this._settings=r,this._scandir=Np.scandir,this._emitter=new Ip.EventEmitter,this._queue=kp(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||!Lr.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=Lr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Lr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Lr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ii.default=pl});var gl=g(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var qp=si(),_l=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new qp.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{jp(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{$p(t,this._storage)}),this._reader.read()}};oi.default=_l;function jp(e,t){e(t)}function $p(e,t){e(null,t)}});var yl=g(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});var Hp=D("stream"),Gp=si(),ml=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Gp.default(this._root,this._settings),this._stream=new Hp.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}};ai.default=ml});var xl=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var Up=Or(),Mr=Pr(),Wp=ni(),bl=class extends Wp.default{constructor(){super(...arguments);this._scandir=Up.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(!!Mr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Mr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Mr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Mr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};li.default=bl});var vl=g(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var Vp=xl(),El=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Vp.default(this._root,this._settings)}read(){return this._reader.read()}};ui.default=El});var Rl=g(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});var Yp=D("path"),Kp=Or(),Sl=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,Yp.sep),this.fsScandirSettings=new Kp.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??r}};fi.default=Sl});var hi=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.Settings=we.walkStream=we.walkSync=we.walk=void 0;var wl=gl(),Qp=yl(),Xp=vl(),ci=Rl();we.Settings=ci.default;function Jp(e,t,r){if(typeof t=="function"){new wl.default(e,Dr()).read(t);return}new wl.default(e,Dr(t)).read(r)}we.walk=Jp;function Zp(e,t){let r=Dr(t);return new Xp.default(e,r).read()}we.walkSync=Zp;function zp(e,t){let r=Dr(t);return new Qp.default(e,r).read()}we.walkStream=zp;function Dr(e={}){return e instanceof ci.default?e:new ci.default(e)}});var pi=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var e_=D("path"),t_=Ze(),Al=Pe(),Tl=class{constructor(t){this._settings=t,this._fsStatSettings=new t_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return e_.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Al.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Al.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};di.default=Tl});var gi=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var r_=D("stream"),n_=Ze(),i_=hi(),s_=pi(),Cl=class extends s_.default{constructor(){super(...arguments);this._walkStream=i_.walkStream,this._stat=n_.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new r_.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),s===n.length-1&&i.end(),a()}).catch(a);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))})}};_i.default=Cl});var Pl=g(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var bt=Pe(),Ol=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=bt.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 bt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>bt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:bt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return bt.array.splitWhen(t,r=>r.dynamic&&bt.pattern.hasGlobStar(r.pattern))}};mi.default=Ol});var Ml=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var o_=Pl(),Ll=class extends o_.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((l,f)=>{let u=s.segments[f];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};yi.default=Ll});var Bl=g(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var Br=Pe(),a_=Ml(),Dl=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 a_.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Br.pattern.isAffectDepthOfReadingPattern);return Br.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Br.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!Br.pattern.matchAny(t,r)}};bi.default=Dl});var Nl=g(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var ze=Pe(),Il=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=ze.pattern.convertPatternsToRe(t,this._micromatchOptions),i=ze.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=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_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=ze.path.makeAbsolute(this._settings.cwd,t);return ze.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=ze.path.removeLeadingDotSegment(t);return ze.pattern.matchAny(n,r)||ze.pattern.matchAny(n+"/",r)}};xi.default=Il});var Fl=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var l_=Pe(),kl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return l_.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Ei.default=kl});var $l=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var ql=Pe(),jl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=ql.path.makeAbsolute(this._settings.cwd,r),r=ql.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};vi.default=jl});var Ir=g(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var u_=D("path"),f_=Bl(),c_=Nl(),h_=Fl(),d_=$l(),Hl=class{constructor(t){this._settings=t,this.errorFilter=new h_.default(this._settings),this.entryFilter=new c_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new f_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new d_.default(this._settings)}_getRootDirectory(t){return u_.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}}};Si.default=Hl});var Ul=g(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var p_=gi(),__=Ir(),Gl=class extends __.default{constructor(){super(...arguments);this._reader=new p_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let a=this.api(r,t,n);a.once("error",o),a.on("data",l=>i.push(n.transform(l))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ri.default=Gl});var Vl=g(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var g_=D("stream"),m_=gi(),y_=Ir(),Wl=class extends y_.default{constructor(){super(...arguments);this._reader=new m_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new g_.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)}};wi.default=Wl});var Kl=g(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var b_=Ze(),x_=hi(),E_=pi(),Yl=class extends E_.default{constructor(){super(...arguments);this._walkSync=x_.walkSync,this._statSync=b_.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)}};Ai.default=Yl});var Xl=g(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var v_=Kl(),S_=Ir(),Ql=class extends S_.default{constructor(){super(...arguments);this._reader=new v_.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)}};Ti.default=Ql});var Zl=g(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var xt=D("fs"),R_=D("os"),w_=Math.max(R_.cpus().length,1);Et.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:xt.lstat,lstatSync:xt.lstatSync,stat:xt.stat,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};var Jl=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,w_),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({},Et.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Et.default=Jl});var Li=g((Eb,tu)=>{"use strict";var zl=Oa(),eu=La(),A_=Ul(),T_=Vl(),C_=Xl(),Ci=Zl(),et=Pe();async function Oi(e,t){vt(e);let r=Pi(e,A_.default,t),n=await Promise.all(r);return et.array.flatten(n)}(function(e){function t(o,a){vt(o);let l=Pi(o,C_.default,a);return et.array.flatten(l)}e.sync=t;function r(o,a){vt(o);let l=Pi(o,T_.default,a);return et.stream.merge(l)}e.stream=r;function n(o,a){vt(o);let l=eu.transform([].concat(o)),f=new Ci.default(a);return zl.generate(l,f)}e.generateTasks=n;function i(o,a){vt(o);let l=new Ci.default(a);return et.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return vt(o),et.path.escape(o)}e.escapePath=s})(Oi||(Oi={}));function Pi(e,t,r){let n=eu.transform([].concat(e)),i=new Ci.default(r),s=zl.generate(n,i),o=new t(i);return s.map(o.read,o)}function vt(e){if(![].concat(e).every(n=>et.string.isString(n)&&!et.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}tu.exports=Oi});var nu=g((vb,Mi)=>{"use strict";var ru=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Mi.exports=ru;Mi.exports.default=ru});var su=g((Sb,kr)=>{"use strict";var O_=nu(),Nr=new WeakMap,iu=(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(Nr.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 O_(s,e),Nr.set(s,n),s};kr.exports=iu;kr.exports.default=iu;kr.exports.callCount=e=>{if(!Nr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Nr.get(e)}});var ou=g((Rb,Fr)=>{Fr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Fr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Fr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var cu=g((wb,wt)=>{var W=global.process,tt=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"};tt(W)?(au=D("assert"),St=ou(),lu=/^win/i.test(W.platform),$t=D("events"),typeof $t!="function"&&($t=$t.EventEmitter),W.__signal_exit_emitter__?z=W.__signal_exit_emitter__:(z=W.__signal_exit_emitter__=new $t,z.count=0,z.emitted={}),z.infinite||(z.setMaxListeners(1/0),z.infinite=!0),wt.exports=function(e,t){if(!tt(global.process))return function(){};au.equal(typeof e,"function","a callback must be provided for exit handler"),Rt===!1&&Di();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){z.removeListener(r,e),z.listeners("exit").length===0&&z.listeners("afterexit").length===0&&qr()};return z.on(r,e),n},qr=function(){!Rt||!tt(global.process)||(Rt=!1,St.forEach(function(t){try{W.removeListener(t,jr[t])}catch{}}),W.emit=$r,W.reallyExit=Bi,z.count-=1)},wt.exports.unload=qr,rt=function(t,r,n){z.emitted[t]||(z.emitted[t]=!0,z.emit(t,r,n))},jr={},St.forEach(function(e){jr[e]=function(){if(!!tt(global.process)){var r=W.listeners(e);r.length===z.count&&(qr(),rt("exit",null,e),rt("afterexit",null,e),lu&&e==="SIGHUP"&&(e="SIGINT"),W.kill(W.pid,e))}}}),wt.exports.signals=function(){return St},Rt=!1,Di=function(){Rt||!tt(global.process)||(Rt=!0,z.count+=1,St=St.filter(function(t){try{return W.on(t,jr[t]),!0}catch{return!1}}),W.emit=fu,W.reallyExit=uu)},wt.exports.load=Di,Bi=W.reallyExit,uu=function(t){!tt(global.process)||(W.exitCode=t||0,rt("exit",W.exitCode,null),rt("afterexit",W.exitCode,null),Bi.call(W,W.exitCode))},$r=W.emit,fu=function(t,r){if(t==="exit"&&tt(global.process)){r!==void 0&&(W.exitCode=r);var n=$r.apply(this,arguments);return rt("exit",W.exitCode,null),rt("afterexit",W.exitCode,null),n}else return $r.apply(this,arguments)}):wt.exports=function(){return function(){}};var au,St,lu,$t,z,qr,rt,jr,Rt,Di,Bi,uu,$r,fu});var gu=g((Lb,M_)=>{M_.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var bu=g((Mb,yu)=>{"use strict";var Gr=Object.assign({},gu()),mu=Object.keys(Gr);Object.defineProperty(Gr,"random",{get(){let e=Math.floor(Math.random()*mu.length),t=mu[e];return Gr[t]}});yu.exports=Gr});var xu=g(($b,Ur)=>{var N_=function(){"use strict";function e(o,a,l,f){var u;typeof a=="object"&&(l=a.depth,f=a.prototype,u=a.filter,a=a.circular);var h=[],c=[],v=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function y(m,S){if(m===null)return null;if(S==0)return m;var E,L;if(typeof m!="object")return m;if(e.__isArray(m))E=[];else if(e.__isRegExp(m))E=new RegExp(m.source,s(m)),m.lastIndex&&(E.lastIndex=m.lastIndex);else if(e.__isDate(m))E=new Date(m.getTime());else{if(v&&Buffer.isBuffer(m))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(m.length):E=new Buffer(m.length),m.copy(E),E;typeof f>"u"?(L=Object.getPrototypeOf(m),E=Object.create(L)):(E=Object.create(f),L=f)}if(a){var B=h.indexOf(m);if(B!=-1)return c[B];h.push(m),c.push(E)}for(var J in m){var T;L&&(T=Object.getOwnPropertyDescriptor(L,J)),!(T&&T.set==null)&&(E[J]=y(m[J],S-1))}return E}return y(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};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 a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Ur=="object"&&Ur.exports&&(Ur.exports=N_)});var vu=g((Hb,Eu)=>{var k_=xu();Eu.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=k_(t[r]))}),e}});var Ru=g((Gb,Su)=>{Su.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 Cu=g((Ub,Fi)=>{"use strict";var F_=vu(),Ut=Ru(),Au={nul:0,control:0};Fi.exports=function(t){return Tu(t,Au)};Fi.exports.config=function(e){return e=F_(e||{},Au),function(r){return Tu(r,e)}};function Tu(e,t){if(typeof e!="string")return wu(e,t);for(var r=0,n=0;n<e.length;n++){var i=wu(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function wu(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:q_(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 q_(e){var t=0,r=Ut.length-1,n;if(e<Ut[0][0]||e>Ut[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Ut[n][1])t=n+1;else if(e<Ut[n][0])r=n-1;else return!0;return!1}});var ji=g((Vb,Ou)=>{Ou.exports=D("stream")});var Du=g((Yb,Mu)=>{"use strict";function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pu(Object(r),!0).forEach(function(n){$_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G_(e,t,r){return t&&Lu(e.prototype,t),r&&Lu(e,r),e}var U_=D("buffer"),Wr=U_.Buffer,W_=D("util"),$i=W_.inspect,V_=$i&&$i.custom||"inspect";function Y_(e,t,r){Wr.prototype.copy.call(e,t,r)}Mu.exports=function(){function e(){H_(this,e),this.head=null,this.tail=null,this.length=0}return G_(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Wr.alloc(0);for(var n=Wr.allocUnsafe(r>>>0),i=this.head,s=0;i;)Y_(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Wr.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:V_,value:function(r,n){return $i(this,j_({},n,{depth:0,customInspect:!1}))}}]),e}()});var Gi=g((Kb,Iu)=>{"use strict";function K_(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Hi,this,e)):process.nextTick(Hi,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Vr,r):(r._writableState.errorEmitted=!0,process.nextTick(Bu,r,s)):process.nextTick(Bu,r,s):t?(process.nextTick(Vr,r),t(s)):process.nextTick(Vr,r)}),this)}function Bu(e,t){Hi(e,t),Vr(e)}function Vr(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Q_(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Hi(e,t){e.emit("error",t)}function X_(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Iu.exports={destroy:K_,undestroy:Q_,errorOrDestroy:X_}});var He=g((Qb,Fu)=>{"use strict";var ku={};function he(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,ku[e]=i}function Nu(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function J_(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Z_(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function z_(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}he("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);he("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&J_(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(Z_(e," argument"))i=`The ${e} ${n} ${Nu(t,"type")}`;else{let s=z_(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Nu(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);he("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");he("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});he("ERR_STREAM_PREMATURE_CLOSE","Premature close");he("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});he("ERR_MULTIPLE_CALLBACK","Callback called multiple times");he("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");he("ERR_STREAM_WRITE_AFTER_END","write after end");he("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);he("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);he("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Fu.exports.codes=ku});var Ui=g((Xb,qu)=>{"use strict";var eg=He().codes.ERR_INVALID_OPT_VALUE;function tg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function rg(e,t,r,n){var i=tg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new eg(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}qu.exports={getHighWaterMark:rg}});var ju=g((Jb,Wi)=>{typeof Object.create=="function"?Wi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Wi.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var nt=g((Zb,Yi)=>{try{if(Vi=D("util"),typeof Vi.inherits!="function")throw"";Yi.exports=Vi.inherits}catch{Yi.exports=ju()}var Vi});var Hu=g((zb,$u)=>{$u.exports=D("util").deprecate});var Xi=g((ex,Ku)=>{"use strict";Ku.exports=Y;function Uu(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Og(t,e)}}var Tt;Y.WritableState=Vt;var ng={deprecate:Hu()},Wu=ji(),Kr=D("buffer").Buffer,ig=global.Uint8Array||function(){};function sg(e){return Kr.from(e)}function og(e){return Kr.isBuffer(e)||e instanceof ig}var Qi=Gi(),ag=Ui(),lg=ag.getHighWaterMark,Ge=He().codes,ug=Ge.ERR_INVALID_ARG_TYPE,fg=Ge.ERR_METHOD_NOT_IMPLEMENTED,cg=Ge.ERR_MULTIPLE_CALLBACK,hg=Ge.ERR_STREAM_CANNOT_PIPE,dg=Ge.ERR_STREAM_DESTROYED,pg=Ge.ERR_STREAM_NULL_VALUES,_g=Ge.ERR_STREAM_WRITE_AFTER_END,gg=Ge.ERR_UNKNOWN_ENCODING,Ct=Qi.errorOrDestroy;nt()(Y,Wu);function mg(){}function Vt(e,t,r){Tt=Tt||it(),e=e||{},typeof r!="boolean"&&(r=t instanceof Tt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=lg(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Rg(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Uu(this)}Vt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Vt.prototype,"buffer",{get:ng.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Yr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Yr=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function(t){return Yr.call(this,t)?!0:this!==Y?!1:t&&t._writableState instanceof Vt}})):Yr=function(t){return t instanceof this};function Y(e){Tt=Tt||it();var t=this instanceof Tt;if(!t&&!Yr.call(Y,this))return new Y(e);this._writableState=new Vt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Wu.call(this)}Y.prototype.pipe=function(){Ct(this,new hg)};function yg(e,t){var r=new _g;Ct(e,r),process.nextTick(t,r)}function bg(e,t,r,n){var i;return r===null?i=new pg:typeof r!="string"&&!t.objectMode&&(i=new ug("chunk",["string","Buffer"],r)),i?(Ct(e,i),process.nextTick(n,i),!1):!0}Y.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&og(e);return s&&!Kr.isBuffer(e)&&(e=sg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=mg),n.ending?yg(this,r):(s||bg(this,n,e,r))&&(n.pendingcb++,i=Eg(this,n,s,e,t,r)),i};Y.prototype.cork=function(){this._writableState.corked++};Y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Vu(this,e))};Y.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new gg(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function xg(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Kr.from(t,r)),t}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Eg(e,t,r,n,i,s){if(!r){var o=xg(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ki(e,t,!1,a,n,i,s);return l}function Ki(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new dg("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function vg(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Wt,e,t),e._writableState.errorEmitted=!0,Ct(e,n)):(i(n),e._writableState.errorEmitted=!0,Ct(e,n),Wt(e,t))}function Sg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Rg(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new cg;if(Sg(r),t)vg(e,r,n,t,i);else{var s=Yu(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Vu(e,r),n?process.nextTick(Gu,e,r,s,i):Gu(e,r,s,i)}}function Gu(e,t,r,n){r||wg(e,t),t.pendingcb--,n(),Wt(e,t)}function wg(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Vu(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Ki(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Uu(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,u=r.callback,h=t.objectMode?1:l.length;if(Ki(e,t,!1,h,l,f,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Y.prototype._write=function(e,t,r){r(new fg("_write()"))};Y.prototype._writev=null;Y.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Cg(this,n,r),this};Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Yu(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Ag(e,t){e._final(function(r){t.pendingcb--,r&&Ct(e,r),t.prefinished=!0,e.emit("prefinish"),Wt(e,t)})}function Tg(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Ag,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Wt(e,t){var r=Yu(t);if(r&&(Tg(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Cg(e,t,r){t.ending=!0,Wt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Og(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});Y.prototype.destroy=Qi.destroy;Y.prototype._undestroy=Qi.undestroy;Y.prototype._destroy=function(e,t){t(e)}});var it=g((tx,Xu)=>{"use strict";var Pg=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Xu.exports=Ae;var Qu=zi(),Zi=Xi();nt()(Ae,Qu);for(Ji=Pg(Zi.prototype),Qr=0;Qr<Ji.length;Qr++)Xr=Ji[Qr],Ae.prototype[Xr]||(Ae.prototype[Xr]=Zi.prototype[Xr]);var Ji,Xr,Qr;function Ae(e){if(!(this instanceof Ae))return new Ae(e);Qu.call(this,e),Zi.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Lg)))}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ae.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ae.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Lg(){this._writableState.ended||process.nextTick(Mg,this)}function Mg(e){e.end()}Object.defineProperty(Ae.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var zu=g((es,Zu)=>{var Jr=D("buffer"),Te=Jr.Buffer;function Ju(e,t){for(var r in e)t[r]=e[r]}Te.from&&Te.alloc&&Te.allocUnsafe&&Te.allocUnsafeSlow?Zu.exports=Jr:(Ju(Jr,es),es.Buffer=st);function st(e,t,r){return Te(e,t,r)}st.prototype=Object.create(Te.prototype);Ju(Te,st);st.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Te(e,t,r)};st.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Te(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};st.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Te(e)};st.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Jr.SlowBuffer(e)}});var ns=g(tf=>{"use strict";var rs=zu().Buffer,ef=rs.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Dg(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Bg(e){var t=Dg(e);if(typeof t!="string"&&(rs.isEncoding===ef||!ef(e)))throw new Error("Unknown encoding: "+e);return t||e}tf.StringDecoder=Yt;function Yt(e){this.encoding=Bg(e);var t;switch(this.encoding){case"utf16le":this.text=jg,this.end=$g,t=4;break;case"utf8":this.fillLast=kg,t=4;break;case"base64":this.text=Hg,this.end=Gg,t=3;break;default:this.write=Ug,this.end=Wg;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rs.allocUnsafe(t)}Yt.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Yt.prototype.end=qg;Yt.prototype.text=Fg;Yt.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ts(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Ig(e,t,r){var n=t.length-1;if(n<r)return 0;var i=ts(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=ts(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=ts(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Ng(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function kg(e){var t=this.lastTotal-this.lastNeed,r=Ng(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Fg(e,t){var r=Ig(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function qg(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function jg(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function $g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Hg(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Gg(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Ug(e){return e.toString(this.encoding)}function Wg(e){return e&&e.length?this.write(e):""}});var Zr=g((nx,sf)=>{"use strict";var rf=He().codes.ERR_STREAM_PREMATURE_CLOSE;function Vg(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function Yg(){}function Kg(e){return e.setHeader&&typeof e.abort=="function"}function nf(e,t,r){if(typeof t=="function")return nf(e,null,t);t||(t={}),r=Vg(r||Yg);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,f=function(){n=!1,l=!0,i||r.call(e)},u=function(y){r.call(e,y)},h=function(){var y;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(y=new rf),r.call(e,y);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(y=new rf),r.call(e,y)},c=function(){e.req.on("finish",a)};return Kg(e)?(e.on("complete",a),e.on("abort",h),e.req?c():e.on("request",c)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",c),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",u),e.removeListener("close",h)}}sf.exports=nf});var af=g((ix,of)=>{"use strict";var zr;function Ue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qg=Zr(),We=Symbol("lastResolve"),ot=Symbol("lastReject"),Kt=Symbol("error"),en=Symbol("ended"),at=Symbol("lastPromise"),is=Symbol("handlePromise"),lt=Symbol("stream");function Ve(e,t){return{value:e,done:t}}function Xg(e){var t=e[We];if(t!==null){var r=e[lt].read();r!==null&&(e[at]=null,e[We]=null,e[ot]=null,t(Ve(r,!1)))}}function Jg(e){process.nextTick(Xg,e)}function Zg(e,t){return function(r,n){e.then(function(){if(t[en]){r(Ve(void 0,!0));return}t[is](r,n)},n)}}var zg=Object.getPrototypeOf(function(){}),e0=Object.setPrototypeOf((zr={get stream(){return this[lt]},next:function(){var t=this,r=this[Kt];if(r!==null)return Promise.reject(r);if(this[en])return Promise.resolve(Ve(void 0,!0));if(this[lt].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Kt]?a(t[Kt]):o(Ve(void 0,!0))})});var n=this[at],i;if(n)i=new Promise(Zg(n,this));else{var s=this[lt].read();if(s!==null)return Promise.resolve(Ve(s,!1));i=new Promise(this[is])}return this[at]=i,i}},Ue(zr,Symbol.asyncIterator,function(){return this}),Ue(zr,"return",function(){var t=this;return new Promise(function(r,n){t[lt].destroy(null,function(i){if(i){n(i);return}r(Ve(void 0,!0))})})}),zr),zg),t0=function(t){var r,n=Object.create(e0,(r={},Ue(r,lt,{value:t,writable:!0}),Ue(r,We,{value:null,writable:!0}),Ue(r,ot,{value:null,writable:!0}),Ue(r,Kt,{value:null,writable:!0}),Ue(r,en,{value:t._readableState.endEmitted,writable:!0}),Ue(r,is,{value:function(s,o){var a=n[lt].read();a?(n[at]=null,n[We]=null,n[ot]=null,s(Ve(a,!1))):(n[We]=s,n[ot]=o)},writable:!0}),r));return n[at]=null,Qg(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[ot];s!==null&&(n[at]=null,n[We]=null,n[ot]=null,s(i)),n[Kt]=i;return}var o=n[We];o!==null&&(n[at]=null,n[We]=null,n[ot]=null,o(Ve(void 0,!0))),n[en]=!0}),t.on("readable",Jg.bind(null,n)),n};of.exports=t0});var cf=g((sx,ff)=>{"use strict";function lf(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(f){r(f);return}a.done?t(l):Promise.resolve(l).then(n,i)}function r0(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){lf(s,n,i,o,a,"next",l)}function a(l){lf(s,n,i,o,a,"throw",l)}o(void 0)})}}function uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function n0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uf(Object(r),!0).forEach(function(n){i0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s0=He().codes.ERR_INVALID_ARG_TYPE;function o0(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new s0("iterable",["Iterable"],t);var i=new e(n0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=r0(function*(){try{var l=yield n.next(),f=l.value,u=l.done;u?i.push(null):i.push(yield f)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}ff.exports=o0});var zi=g((ax,Ef)=>{"use strict";Ef.exports=I;var Ot;I.ReadableState=_f;var ox=D("events").EventEmitter,pf=function(t,r){return t.listeners(r).length},Xt=ji(),tn=D("buffer").Buffer,a0=global.Uint8Array||function(){};function l0(e){return tn.from(e)}function u0(e){return tn.isBuffer(e)||e instanceof a0}var ss=D("util"),P;ss&&ss.debuglog?P=ss.debuglog("stream"):P=function(){};var f0=Du(),hs=Gi(),c0=Ui(),h0=c0.getHighWaterMark,rn=He().codes,d0=rn.ERR_INVALID_ARG_TYPE,p0=rn.ERR_STREAM_PUSH_AFTER_EOF,_0=rn.ERR_METHOD_NOT_IMPLEMENTED,g0=rn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Pt,os,as;nt()(I,Xt);var Qt=hs.errorOrDestroy,ls=["error","close","destroy","pause","resume"];function m0(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function _f(e,t,r){Ot=Ot||it(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ot),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h0(this,e,"readableHighWaterMark",r),this.buffer=new f0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Pt||(Pt=ns().StringDecoder),this.decoder=new Pt(e.encoding),this.encoding=e.encoding)}function I(e){if(Ot=Ot||it(),!(this instanceof I))return new I(e);var t=this instanceof Ot;this._readableState=new _f(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Xt.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});I.prototype.destroy=hs.destroy;I.prototype._undestroy=hs.undestroy;I.prototype._destroy=function(e,t){t(e)};I.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=tn.from(e,t),t=""),n=!0),gf(this,e,t,!1,n)};I.prototype.unshift=function(e){return gf(this,e,null,!0,!1)};function gf(e,t,r,n,i){P("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,x0(e,s);else{var o;if(i||(o=y0(s,t)),o)Qt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==tn.prototype&&(t=l0(t)),n)s.endEmitted?Qt(e,new g0):us(e,s,t,!0);else if(s.ended)Qt(e,new p0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?us(e,s,t,!1):cs(e,s)):us(e,s,t,!1)}else n||(s.reading=!1,cs(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function us(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&nn(e)),cs(e,t)}function y0(e,t){var r;return!u0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new d0("chunk",["string","Buffer","Uint8Array"],t)),r}I.prototype.isPaused=function(){return this._readableState.flowing===!1};I.prototype.setEncoding=function(e){Pt||(Pt=ns().StringDecoder);var t=new Pt(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var hf=1073741824;function b0(e){return e>=hf?e=hf:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function df(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=b0(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}I.prototype.read=function(e){P("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return P("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?fs(this):nn(this),null;if(e=df(e,t),e===0&&t.ended)return t.length===0&&fs(this),null;var n=t.needReadable;P("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,P("length less than watermark",n)),t.ended||t.reading?(n=!1,P("reading or ended",n)):n&&(P("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=df(r,t)));var i;return e>0?i=bf(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&fs(this)),i!==null&&this.emit("data",i),i};function x0(e,t){if(P("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?nn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,mf(e)))}}function nn(e){var t=e._readableState;P("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(P("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(mf,e))}function mf(e){var t=e._readableState;P("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ds(e)}function cs(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(E0,e,t))}function E0(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(P("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}I.prototype._read=function(e){Qt(this,new _0("_read()"))};I.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,P("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:m;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(S,E){P("onunpipe"),S===r&&E&&E.hasUnpiped===!1&&(E.hasUnpiped=!0,u())}function a(){P("onend"),e.end()}var l=v0(r);e.on("drain",l);var f=!1;function u(){P("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(S){P("ondata");var E=e.write(S);P("dest.write",E),E===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&xf(n.pipes,e)!==-1)&&!f&&(P("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(S){P("onerror",S),m(),e.removeListener("error",c),pf(e,"error")===0&&Qt(e,S)}m0(e,"error",c);function v(){e.removeListener("finish",y),m()}e.once("close",v);function y(){P("onfinish"),e.removeListener("close",v),m()}e.once("finish",y);function m(){P("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(P("pipe resume"),r.resume()),e};function v0(e){return function(){var r=e._readableState;P("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&pf(e,"data")&&(r.flowing=!0,ds(e))}}I.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=xf(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};I.prototype.on=function(e,t){var r=Xt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,P("on readable",n.length,n.reading),n.length?nn(this):n.reading||process.nextTick(S0,this)),r};I.prototype.addListener=I.prototype.on;I.prototype.removeListener=function(e,t){var r=Xt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(yf,this),r};I.prototype.removeAllListeners=function(e){var t=Xt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(yf,this),t};function yf(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function S0(e){P("readable nexttick read 0"),e.read(0)}I.prototype.resume=function(){var e=this._readableState;return e.flowing||(P("resume"),e.flowing=!e.readableListening,R0(this,e)),e.paused=!1,this};function R0(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(w0,e,t))}function w0(e,t){P("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ds(e),t.flowing&&!t.reading&&e.read(0)}I.prototype.pause=function(){return P("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(P("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ds(e){var t=e._readableState;for(P("flow",t.flowing);t.flowing&&e.read()!==null;);}I.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(P("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(P("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<ls.length;s++)e.on(ls[s],this.emit.bind(this,ls[s]));return this._read=function(o){P("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return os===void 0&&(os=af()),os(this)});Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});I._fromList=bf;Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function bf(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function fs(e){var t=e._readableState;P("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(A0,t,e))}function A0(e,t){if(P("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(I.from=function(e,t){return as===void 0&&(as=cf()),as(I,e,t)});function xf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var ps=g((lx,Sf)=>{"use strict";Sf.exports=De;var sn=He().codes,T0=sn.ERR_METHOD_NOT_IMPLEMENTED,C0=sn.ERR_MULTIPLE_CALLBACK,O0=sn.ERR_TRANSFORM_ALREADY_TRANSFORMING,P0=sn.ERR_TRANSFORM_WITH_LENGTH_0,on=it();nt()(De,on);function L0(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new C0);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function De(e){if(!(this instanceof De))return new De(e);on.call(this,e),this._transformState={afterTransform:L0.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",M0)}function M0(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){vf(e,t,r)}):vf(this,null,null)}De.prototype.push=function(e,t){return this._transformState.needTransform=!1,on.prototype.push.call(this,e,t)};De.prototype._transform=function(e,t,r){r(new T0("_transform()"))};De.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};De.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};De.prototype._destroy=function(e,t){on.prototype._destroy.call(this,e,function(r){t(r)})};function vf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new P0;if(e._transformState.transforming)throw new O0;return e.push(null)}});var Af=g((ux,wf)=>{"use strict";wf.exports=Jt;var Rf=ps();nt()(Jt,Rf);function Jt(e){if(!(this instanceof Jt))return new Jt(e);Rf.call(this,e)}Jt.prototype._transform=function(e,t,r){r(null,e)}});var Lf=g((fx,Pf)=>{"use strict";var _s;function D0(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Of=He().codes,B0=Of.ERR_MISSING_ARGS,I0=Of.ERR_STREAM_DESTROYED;function Tf(e){if(e)throw e}function N0(e){return e.setHeader&&typeof e.abort=="function"}function k0(e,t,r,n){n=D0(n);var i=!1;e.on("close",function(){i=!0}),_s===void 0&&(_s=Zr()),_s(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,N0(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new I0("pipe"))}}}function Cf(e){e()}function F0(e,t){return e.pipe(t)}function q0(e){return!e.length||typeof e[e.length-1]!="function"?Tf:e.pop()}function j0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=q0(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new B0("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,f=a>0;return k0(o,l,f,function(u){i||(i=u),u&&s.forEach(Cf),!l&&(s.forEach(Cf),n(i))})});return t.reduce(F0)}Pf.exports=j0});var Mf=g((de,zt)=>{var Zt=D("stream");process.env.READABLE_STREAM==="disable"&&Zt?(zt.exports=Zt.Readable,Object.assign(zt.exports,Zt),zt.exports.Stream=Zt):(de=zt.exports=zi(),de.Stream=Zt||de,de.Readable=de,de.Writable=Xi(),de.Duplex=it(),de.Transform=ps(),de.PassThrough=Af(),de.finished=Zr(),de.pipeline=Lf())});var If=g((cx,Bf)=>{"use strict";var{Buffer:ge}=D("buffer"),Df=Symbol.for("BufferList");function H(e){if(!(this instanceof H))return new H(e);H._init.call(this,e)}H._init=function(t){Object.defineProperty(this,Df,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};H.prototype._new=function(t){return new H(t)};H.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};H.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};H.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};H.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};H.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||ge.alloc(0);let s=!!t,o=this._offset(n),a=i-n,l=a,f=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ge.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,f),f+=this._bufs[h].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=ge.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let c=this._bufs[h].length-u;if(l>c)this._bufs[h].copy(t,f,u),f+=c;else{this._bufs[h].copy(t,f,u,u+l),f+=c;break}l-=c,u&&(u=0)}return t.length>f?t.slice(0,f):t};H.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};H.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};H.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};H.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};H.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(ge.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(ge.from(t));return this};H.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};H.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=ge.from([e]):typeof e=="string"?e=ge.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=ge.from(e.buffer,e.byteOffset,e.byteLength):ge.isBuffer(e)||(e=ge.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};H.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?H.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:H.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();H.prototype._isBufferList=function(t){return t instanceof H||H.isBufferList(t)};H.isBufferList=function(t){return t!=null&&t[Df]};Bf.exports=H});var Nf=g((hx,an)=>{"use strict";var gs=Mf().Duplex,$0=nt(),er=If();function re(e){if(!(this instanceof re))return new re(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}er._init.call(this,e),gs.call(this)}$0(re,gs);Object.assign(re.prototype,er.prototype);re.prototype._new=function(t){return new re(t)};re.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};re.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};re.prototype.end=function(t){gs.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};re.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};re.prototype._isBufferList=function(t){return t instanceof re||t instanceof er||re.isBufferList(t)};re.isBufferList=er.isBufferList;an.exports=re;an.exports.BufferListStream=re;an.exports.BufferList=er});import{constants as Dm,existsSync as oc}from"fs";import{copyFile as Bm,mkdir as Im,readFile as ac,rm as tc,writeFile as Nm}from"fs/promises";import{dirname as lc,extname as km,isAbsolute as Fm,resolve as qm,resolve as _n}from"path";import{build as Ls,transform as jm}from"esbuild";var Bs=(e=0)=>t=>`\x1B[${t+e}m`,Is=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ns=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function mc(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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",t.color.ansi=Bs(),t.color.ansi256=Is(),t.color.ansi16m=Ns(),t.bgColor.ansi=Bs(10),t.bgColor.ansi256=Is(10),t.bgColor.ansi16m=Ns(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var yc=mc(),_e=yc;import mn from"node:process";import bc from"node:os";import ks from"node:tty";function ue(e,t=mn.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:Q}=mn,lr;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?lr=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(lr=1);function xc(){if("FORCE_COLOR"in Q)return Q.FORCE_COLOR==="true"?1:Q.FORCE_COLOR==="false"?0:Q.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Q.FORCE_COLOR,10),3)}function Ec(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function vc(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=xc();n!==void 0&&(lr=n);let i=r?lr:n;if(i===0)return 0;if(r){if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Q.TERM==="dumb")return s;if(mn.platform==="win32"){let o=bc.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Q)||Q.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Q&&"AGENT_NAME"in Q)return 1;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let o=Number.parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:s}function Fs(e,t={}){let r=vc(e,{streamIsTTY:e&&e.isTTY,...t});return Ec(r)}var Sc={stdout:Fs({isTTY:ks.isatty(1)}),stderr:Fs({isTTY:ks.isatty(2)})},qs=Sc;function js(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.slice(s),o}function $s(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
|
6
6
|
`:`
|
7
7
|
`)+r,i=n+1,n=e.indexOf(`
|
8
8
|
`,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Hs,stderr:Gs}=qs,yn=Symbol("GENERATOR"),ct=Symbol("STYLER"),It=Symbol("IS_EMPTY"),Us=["ansi","ansi","ansi256","ansi16m"],ht=Object.create(null),Rc=(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=Hs?Hs.level:0;e.level=t.level===void 0?r:t.level};var wc=e=>{let t=(...r)=>r.join(" ");return Rc(t,e),Object.setPrototypeOf(t,Nt.prototype),t};function Nt(e){return wc(e)}Object.setPrototypeOf(Nt.prototype,Function.prototype);for(let[e,t]of Object.entries(_e))ht[e]={get(){let r=ur(this,xn(t.open,t.close,this[ct]),this[It]);return Object.defineProperty(this,e,{value:r}),r}};ht.visible={get(){let e=ur(this,this[ct],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var bn=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?_e[r].ansi16m(...n):t==="ansi256"?_e[r].ansi256(_e.rgbToAnsi256(...n)):_e[r].ansi(_e.rgbToAnsi(...n)):e==="hex"?bn("rgb",t,r,..._e.hexToRgb(...n)):_e[r][e](...n),Ac=["rgb","hex","ansi256"];for(let e of Ac){ht[e]={get(){let{level:r}=this;return function(...n){let i=xn(bn(e,Us[r],"color",...n),_e.color.close,this[ct]);return ur(this,i,this[It])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ht[t]={get(){let{level:r}=this;return function(...n){let i=xn(bn(e,Us[r],"bgColor",...n),_e.bgColor.close,this[ct]);return ur(this,i,this[It])}}}}var Tc=Object.defineProperties(()=>{},{...ht,level:{enumerable:!0,get(){return this[yn].level},set(e){this[yn].level=e}}}),xn=(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}},ur=(e,t,r)=>{let n=(...i)=>Cc(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Tc),n[yn]=e,n[ct]=t,n[It]=r,n},Cc=(e,t)=>{if(e.level<=0||!t)return e[It]?"":t;let r=e[ct];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=js(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
9
|
-
`);return s!==-1&&(t=$s(t,i,n,s)),n+t+i};Object.defineProperties(Nt.prototype,ht);var Oc=Nt(),ty=Nt({level:Gs?Gs.level:0});var
|
10
|
-
`))this.#i+=Math.max(1,Math.ceil((0,Ff.default)(n)/t))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#l}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=t}frame(){let{frames:t}=this.#o,r=t[this.#n];this.color&&(r=
|
9
|
+
`);return s!==-1&&(t=$s(t,i,n,s)),n+t+i};Object.defineProperties(Nt.prototype,ht);var Oc=Nt(),ty=Nt({level:Gs?Gs.level:0});var q=Oc;var Ms=Qe(Li(),1);import{env as rc}from"process";import ln from"node:process";import _u from"node:process";var hu=Qe(su(),1),du=Qe(cu(),1);import P_ from"node:process";var L_=(0,hu.default)(()=>{(0,du.default)(()=>{P_.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),pu=L_;var Hr=!1,At={};At.show=(e=_u.stderr)=>{!e.isTTY||(Hr=!1,e.write("\x1B[?25h"))};At.hide=(e=_u.stderr)=>{!e.isTTY||(pu(),Hr=!0,e.write("\x1B[?25l"))};At.toggle=(e,t)=>{e!==void 0&&(Hr=e),Hr?At.show(t):At.hide(t)};var Ii=At;var tr=Qe(bu(),1);import Me from"node:process";function Ht(){return Me.platform!=="win32"?Me.env.TERM!=="linux":Boolean(Me.env.CI)||Boolean(Me.env.WT_SESSION)||Me.env.ConEmuTask==="{cmd::Cmder}"||Me.env.TERM_PROGRAM==="vscode"||Me.env.TERM==="xterm-256color"||Me.env.TERM==="alacritty"||Me.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var D_={info:q.blue("ℹ"),success:q.green("✔"),warning:q.yellow("⚠"),error:q.red("✖")},B_={info:q.blue("i"),success:q.green("√"),warning:q.yellow("‼"),error:q.red("×")},I_=Ht()?D_:B_,Gt=I_;function Ni({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")}function ki(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Ni(),"")}var Ff=Qe(Cu(),1);function qi({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var kf=Qe(Nf(),1);import me from"node:process";import H0 from"node:readline";var G0=3,ms=class{#r=0;#f=new kf.BufferListStream;#i;#n;constructor(){this.#f.pipe(me.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=me;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(G0)&&me.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(me.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){me.platform!=="win32"&&(this.#n=H0.createInterface({input:me.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{me.listenerCount("SIGINT")===0?me.emit("SIGINT"):(this.#n.close(),me.kill(me.pid,"SIGINT"))}))}_realStop(){me.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var un,qf=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#h;#a;#l;#u;#d;#s;color;constructor(t){un||(un=new ms),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:ln.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:qi({stream:this.#t}),this.#l=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,ln.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#u}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.#u=t,this.updateLineCount()}get interval(){return this.#h||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=t}else if(!Ht())this.#o=tr.default.line;else if(t===void 0)this.#o=tr.default.dots;else if(t!=="default"&&tr.default[t])this.#o=tr.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#d}set text(t){this.#d=t||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(t){this.#s=t||"",this.updateLineCount()}get isSpinning(){return this.#c!==void 0}getFullPrefixText(t=this.#s,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of ki(" ".repeat(this.#u)+r+"--"+this.#d).split(`
|
10
|
+
`))this.#i+=Math.max(1,Math.ceil((0,Ff.default)(n)/t))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#l}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=t}frame(){let{frames:t}=this.#o,r=t[this.#n];this.color&&(r=q[this.color](r)),this.#n=++this.#n%t.length;let n=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let t=0;t<this.#r;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#u||this.lastIndent!==this.#u)&&this.#t.cursorTo(this.#u),this.lastIndent=this.#u,this.#r=0,this}render(){return this.#l?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Ii.hide(this.#t),this.#e.discardStdin&&ln.stdin.isTTY&&(this.#f=!0,un.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
|
11
11
|
`),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Ii.show(this.#t),this.#e.discardStdin&&ln.stdin.isTTY&&this.#f&&(un.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Gt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Gt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Gt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Gt.info,text:t})}stopAndPersist(t={}){if(this.#l)return this;let r=t.prefixText||this.#s,n=t.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${i}
|
12
|
-
`),this}};function Ye(e){return new qf(e)}var jf={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(jf.NODE_ENV=e.NODE_ENV)}catch{}var ys=jf.NODE_ENV==="development";import{Console as U0}from"console";var ut=new U0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),ye=e=>{if(ys){let{name:t}=e;return{log(...r){let n=
|
12
|
+
`),this}};function Ye(e){return new qf(e)}var jf={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(jf.NODE_ENV=e.NODE_ENV)}catch{}var ys=jf.NODE_ENV==="development";import{Console as U0}from"console";var ut=new U0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),ye=e=>{if(ys){let{name:t}=e;return{log(...r){let n=q.bgBlue.white(` [${t}] `);ut.log(`${n}`,`
|
13
13
|
|
14
|
-
`,...r),ut.log()},group(){ut.log();let r=
|
14
|
+
`,...r),ut.log()},group(){ut.log();let r=q.bgBlue.white(` [${t}] `);ut.group(r),ut.log()},groupEnd(){ut.log(`
|
15
15
|
`,"-".repeat(20),`
|
16
16
|
`),ut.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var Be=(...e)=>{console.log(),console.log(...e),console.log()};import{spawn as W0,execSync as V0}from"child_process";import Ss from"node:process";import Q0 from"node:os";import Uf from"node:tty";await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=t(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var $f=(e=0)=>t=>`\x1B[${t+e}m`,Hf=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Gf=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function Y0(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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",t.color.ansi=$f(),t.color.ansi256=Hf(),t.color.ansi16m=Gf(),t.bgColor.ansi=$f(10),t.bgColor.ansi256=Hf(10),t.bgColor.ansi16m=Gf(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var K0=Y0(),Ce=K0;function pe(e,t=Ss.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:X}=Ss,fn;pe("no-color")||pe("no-colors")||pe("color=false")||pe("color=never")?fn=0:(pe("color")||pe("colors")||pe("color=true")||pe("color=always"))&&(fn=1);function X0(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function J0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Z0(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=X0();n!==void 0&&(fn=n);let i=r?fn:n;if(i===0)return 0;if(r){if(pe("color=16m")||pe("color=full")||pe("color=truecolor"))return 3;if(pe("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(Ss.platform==="win32"){let o=Q0.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(X.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:s}function Wf(e,t={}){let r=Z0(e,{streamIsTTY:e&&e.isTTY,...t});return J0(r)}var z0={stdout:Wf({isTTY:Uf.isatty(1)}),stderr:Wf({isTTY:Uf.isatty(2)})},em=z0;function tm(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.slice(s),o}function rm(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
|
17
17
|
`:`
|
18
18
|
`)+r,i=n+1,n=e.indexOf(`
|
19
19
|
`,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Vf,stderr:Yf}=em,bs=Symbol("GENERATOR"),Lt=Symbol("STYLER"),rr=Symbol("IS_EMPTY"),Kf=["ansi","ansi","ansi256","ansi16m"],Mt=Object.create(null),nm=(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=Vf?Vf.level:0;e.level=t.level===void 0?r:t.level},im=e=>{let t=(...r)=>r.join(" ");return nm(t,e),Object.setPrototypeOf(t,nr.prototype),t};function nr(e){return im(e)}Object.setPrototypeOf(nr.prototype,Function.prototype);for(let[e,t]of Object.entries(Ce))Mt[e]={get(){let r=cn(this,Es(t.open,t.close,this[Lt]),this[rr]);return Object.defineProperty(this,e,{value:r}),r}};Mt.visible={get(){let e=cn(this,this[Lt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var xs=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Ce[r].ansi16m(...n):t==="ansi256"?Ce[r].ansi256(Ce.rgbToAnsi256(...n)):Ce[r].ansi(Ce.rgbToAnsi(...n)):e==="hex"?xs("rgb",t,r,...Ce.hexToRgb(...n)):Ce[r][e](...n),sm=["rgb","hex","ansi256"];for(let e of sm){Mt[e]={get(){let{level:r}=this;return function(...n){let i=Es(xs(e,Kf[r],"color",...n),Ce.color.close,this[Lt]);return cn(this,i,this[rr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Mt[t]={get(){let{level:r}=this;return function(...n){let i=Es(xs(e,Kf[r],"bgColor",...n),Ce.bgColor.close,this[Lt]);return cn(this,i,this[rr])}}}}var om=Object.defineProperties(()=>{},{...Mt,level:{enumerable:!0,get(){return this[bs].level},set(e){this[bs].level=e}}}),Es=(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}},cn=(e,t,r)=>{let n=(...i)=>am(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,om),n[bs]=e,n[Lt]=t,n[rr]=r,n},am=(e,t)=>{if(e.level<=0||!t)return e[rr]?"":t;let r=e[Lt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=tm(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
20
|
-
`);return s!==-1&&(t=rm(t,i,n,s)),n+t+i};Object.defineProperties(nr.prototype,Mt);var lm=nr(),Fx=nr({level:Yf?Yf.level:0}),um=lm,fm={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},cm={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},hm=(e,t,r)=>{let n={...fm,...t},i={...cm,...r},s=a=>{let l=process.platform,f=n[l];if(f)return f(a);let[u,...h]=a.split(" ");return{cmd:u,args:h}},o=(a=>{let l=Object.entries(i);for(let[f,u]of l)if(a.startsWith(f)){let h=process.platform,c=u[h];if(!c)break;let
|
20
|
+
`);return s!==-1&&(t=rm(t,i,n,s)),n+t+i};Object.defineProperties(nr.prototype,Mt);var lm=nr(),Fx=nr({level:Yf?Yf.level:0}),um=lm,fm={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},cm={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},hm=(e,t,r)=>{let n={...fm,...t},i={...cm,...r},s=a=>{let l=process.platform,f=n[l];if(f)return f(a);let[u,...h]=a.split(" ");return{cmd:u,args:h}},o=(a=>{let l=Object.entries(i);for(let[f,u]of l)if(a.startsWith(f)){let h=process.platform,c=u[h];if(!c)break;let v=a.slice(f.length).trim().split(" ");return c(v)}return a})(e);return s(o)},dm=process.platform==="linux"||process.platform==="darwin",vs=process.platform==="win32",pm={stdio:"pipe",shell:!0,detached:!vs,env:process.env},_m={log:!0,commandTranslations:{},shellTranslations:{},...pm},hn=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=_m)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let l=process.platform;s.posix&&dm&&(l="posix");let f=s[l];if(!f)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=f}let{cmd:o,args:a}=hm(s,r,t);return e&&console.log(um.dim(`
|
21
21
|
$ ${o} ${a.join(" ")}
|
22
|
-
`)),await new Promise((l,f)=>{i=W0(o,a,n);let u="",h="";if(!i)throw new Error("Child process was not set.");let c=
|
22
|
+
`)),await new Promise((l,f)=>{i=W0(o,a,n);let u="",h="";if(!i)throw new Error("Child process was not set.");let c=v=>{i=null;let y={code:v,stdout:u,stderr:h};v===0||v===1&&!vs?l(y):f(y)};i.stdout?.on("data",v=>{u+=v.toString()}),i.stderr?.on("data",v=>{h+=v.toString()}),i.on("close",c),i.on("exit",c),i.on("error",c),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(vs)V0(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{extname as Gx,resolve as Rs}from"path";var Bt=/\.[mc]?tsx?(?=\?|$)/;var ft=/\.([mc])?[tj]sx$/,Qf=/\.([mc])?[tj]sx?$/,Dt={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},gm={".mts":{...Dt,loader:"ts"},".jsx":{...Dt,loader:"jsx"},".tsx":{...Dt,loader:"tsx"},".cts":{...Dt,loader:"ts"},".ts":{...Dt,loader:"ts"},".json":{...Dt,loader:"json"}},jx=Object.keys(gm);var ws=()=>{let e=process.cwd(),t=Rs(e,"src"),r=Rs(e,"dist");return{cwd:e,srcDir:t,outDir:r}},As=e=>{e=Rs(e);let{srcDir:t,outDir:r}=ws();return e.replace(t,r).replace(Bt,".js").replace(ft,".js")};var mm={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},Ts=async()=>{let e=ye(Ts),t=hn({log:!1}),r=Object.entries(mm).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;e.log(`Calling: ${n}`),await t.run(`tsc -p tsconfig.json ${r}`)};import{readFile as ym}from"fs/promises";import{resolve as bm}from"path";var Xf=async()=>{let e=process.cwd(),t=bm(e,"package.json");return await ym(t,"utf-8")};var ec=Qe(Li(),1);import{existsSync as Tm}from"fs";import{writeFile as Cm}from"fs/promises";import{isAbsolute as Om,resolve as Pm}from"path";import{existsSync as Jf}from"fs";import{readFile as xm}from"fs/promises";import{dirname as Em,normalize as vm,posix as dn,resolve as Sm}from"path";var Rm=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],wm=async(e,t)=>{let r=Em(vm(t)),n=pn(Sm(r,e)),i=n.replace(dn.extname(n),"");for(let s of Rm){let o=`${i}${s}`,a=`${i}/index${s}`;if(Jf(o))return o;if(Jf(a))return a}},pn=e=>e.replace(/\\/g,"/"),Am=(e,t)=>{e=pn(e),t=pn(t);let r=dn.relative(dn.dirname(e),t);return r.startsWith(".")?r:`./${r}`},Cs=async e=>{let t=ye(Cs);t.log("Getting rewritten specifiers:",{modulePath:e}),e=pn(e);let r=new RegExp(Zf,"g"),n=await xm(e,"utf8"),i=n.match(r);if(t.log("Found import statements:",{importStatements:i}),i)for(let s of i){let o=new RegExp(zf),a=s.match(o);if(!a)throw t.log("No specifier match",{importStatement:s,specifierPattern:o}),new Error(`Could not identify specifier in import statement: ${s}`);let l=a[0];if(t.log("Found specifier:",{specifier:l}),!l.startsWith(".")||dn.extname(l))continue;let f=await wm(l,e);if(!f)throw new Error(`Could not resolve specifier "${l}" from "${e}"`);t.log("Resolved specifier:",{resolvedSpecifier:f});let u=Am(e,f);t.log("Specifier replacement:",{specifierReplacement:u});let h=s.replace(l,u);t.log("Import statement replacement:",{importStatementReplacement:h}),n=n.replace(s,h)}return n};var Zf=`(^|(?<=[
|
23
23
|
\r;] *))(import|export) *({?)[^
|
24
24
|
\r;]+(((from)[
|
25
25
|
\r; *]+)|(["'][
|
26
26
|
\r;]))`,zf=`(?<=["'])([^
|
27
|
-
\r]+)(?=['"])`,Os=async(e="dist/**/*.js")=>{let t=ye(Os),n=Om(e)&&Tm(e)?[e]:ec.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=Pm(i),o=await Cs(s);t.log("Normalizing",{file:i,normalized:o}),await Cm(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{readFileSync as Lm}from"fs";function Mm(e){return new Promise((t,r)=>{let n=[];function i(l){n.push(l)}function s(){a(),t(Buffer.concat(n))}function o(l){a(),r(l)}function a(){e.removeListener("data",i),e.removeListener("end",s),e.removeListener("error",o)}e.on("data",i),e.on("end",s),e.on("error",o)})}var Ps=async()=>{let e=ye(Ps);e.log("Reading stdin");try{let r=Lm(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return Be(
|
27
|
+
\r]+)(?=['"])`,Os=async(e="dist/**/*.js")=>{let t=ye(Os),n=Om(e)&&Tm(e)?[e]:ec.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=Pm(i),o=await Cs(s);t.log("Normalizing",{file:i,normalized:o}),await Cm(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{readFileSync as Lm}from"fs";function Mm(e){return new Promise((t,r)=>{let n=[];function i(l){n.push(l)}function s(){a(),t(Buffer.concat(n))}function o(l){a(),r(l)}function a(){e.removeListener("data",i),e.removeListener("end",s),e.removeListener("error",o)}e.on("data",i),e.on("end",s),e.on("error",o)})}var Ps=async()=>{let e=ye(Ps);e.log("Reading stdin");try{let r=Lm(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return Be(q.gray("Type your source code. Press Ctrl+D to finish.")),(await Mm(process.stdin)).toString()};var $m=`import React from "react";
|
28
28
|
import ReactDOM from "react-dom";
|
29
|
-
`,nc=e=>{let t=` ${e} `;Be(
|
29
|
+
`,nc=e=>{let t=` ${e} `;Be(q.bgBlue(q.bold(q.white(t))))},Hm=async()=>{let e;if(oc("dist/package.json")?e=JSON.parse(await ac("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await Nm("dist/package.json",JSON.stringify(e,null,2))},ic=(e,t,r)=>{t=_n(t);let n=As(t);return{stdin:{contents:e,sourcefile:t,resolveDir:lc(t),loader:r},outdir:void 0,outfile:n}},sc=async(e,t,r)=>{e=_n(e),t=_n(t);let o=["npx tailwindcss",r?"":"-m","--postcss postcss.config.js",`-i ${e}`,"-o",t],a=hn({log:!1,stdio:"ignore"}),l=o.join(" "),{code:f,stdout:u,stderr:h}=await a.run(l);if(f!==0)throw new Error(`Building CSS bundle exited with code ${f} for ${e}.
|
30
30
|
\rTried running: ${l}.
|
31
31
|
\rError: ${u+h}`)},Gm=`
|
32
32
|
typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
|
33
|
-
`,Um=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=n,noWrite:o=!1,stdin:a=void 0,stdinFile:l=void 0})=>{rc.NODE_ENV=n?"development":"production";let f=ye(Um);n&&(s=!0);let{cwd:u,srcDir:h,outDir:c}=ws(),
|
34
|
-
\rChecked: `+
|
33
|
+
`,Um=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=n,noWrite:o=!1,stdin:a=void 0,stdinFile:l=void 0})=>{rc.NODE_ENV=n?"development":"production";let f=ye(Um);n&&(s=!0);let{cwd:u,srcDir:h,outDir:c}=ws(),v=await Xf(),y=JSON.parse(v),m={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},S=["esbuild","*.png"],E={...m,bundle:i,absWorkingDir:u,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:y?.platform??"node",write:!o,external:i?S:void 0,banner:i?{js:Gm}:void 0},L="";if(a){f.log("Building file from stdin",{stdin:a,stdinFile:l,noWrite:o}),l||(Be(q.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof a=="string"&&a.length?L=a:L=await Ps();let R={...m,sourcefile:l,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await jm(L,R)).code;{let d=ic(L,l,"tsx");await Ls({...E,...d}),Be(q.green("Successfully built stdin file to dist/.")),Be(q.grey("Use --no-write to print to stdout instead."));return}}f.log("Building",{files:e,dev:n,runtimeOnly:s}),nc(`${q.bold("TS Module")} [${rc.NODE_ENV}]`);let B=Ms.default.sync(e,{cwd:u}).filter(R=>km(R)!==".d.ts").map(R=>_n(R));if(Fm(e)){B.length||B.push(e);let R=e.replace(h,c).replace(Bt,".js").replace(ft,".js");f.log("Cleaning emitted file:",{outfile:R}),await tc(R,{force:!0})}else f.log("Cleaning old output:",{outDir:c}),await tc(c,{force:!0,recursive:!0});let J=B.filter(R=>ft.test(R));f.log("Compiling TSX files:",{tsxJsxInput:J});let T=J.filter(R=>!R.endsWith(".d.ts"));await Promise.all(T.map(async R=>{let d=await ac(R,"utf-8"),j=$m+d,F=ic(j,R,"tsx");await Ls({...E,...F})})),Ye("Built TSX files.").succeed();let $=B.filter(R=>Bt.test(R)).filter(R=>!ft.test(R));f.log("Compiling TS files:",{tsJsInput:$}),await Ls({...E,entryPoints:$.filter(R=>!R.endsWith(".d.ts"))}),Ye("Built TS files.").succeed();let C=B.filter(R=>!Qf.test(R));f.log("Copying non-JS/TS files.",{allFiles:B,nonTsJsInput:C});for(let R of C){let d=As(R);f.log("Copying non-source file:",{file:R,emittedFile:d}),await Im(lc(d),{recursive:!0}),await Bm(R,d,Dm.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let R=e.replace(h,c).replace(/^(\.\/)?src\//,"dist/").replace(Bt,".js").replace(ft,".js");f.log("Normalizing import specifiers in emitted JS.",{emittedJs:R}),await Os(R.endsWith(".js")?R:`${R}.js`),Ye("Normalized import specifiers.").succeed()}if(await Hm()&&Ye('Forced "type": "module" in output.').succeed(),s)return;if(oc(qm(t))){f.log("Building styles for production.");let{style:R="./dist/bundle.css"}=y;if(f.log("Building style bundle.",{bundleInput:t,bundleOutput:R,dev:n}),await sc(t,R,n),i){f.log("Bundling all styles.");let d=Ms.default.sync("dist/**/*.css"),j=Ye("Bundling emitted styles.").start();await Promise.all(d.map(async F=>await sc(F,F,n))),j.succeed(`Bundled all styles to ${q.bold(R)}.`)}}else Be(q.grey(`Bundle styles not found for this project.
|
34
|
+
\rChecked: `+q.bold(t)));nc("Running post-build setup.");let k=Ye("Generating type declarations.").start();await Ts(),k.succeed(`Generated delcarations for ${B.length} files.`),Be(q.green("Build complete."))};export{nc as bannerLog,Um as build};
|
35
35
|
/*!
|
36
36
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
37
37
|
*
|