@tsmodule/tsmodule 41.1.0 → 41.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,32 +1,32 @@
1
1
 
2
2
  if(typeof process<"u"){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 ac=Object.create;var eo=Object.defineProperty;var lc=Object.getOwnPropertyDescriptor;var uc=Object.getOwnPropertyNames;var fc=Object.getPrototypeOf,cc=Object.prototype.hasOwnProperty;var B=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")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 hc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uc(t))!cc.call(e,i)&&i!==r&&eo(e,i,{get:()=>t[i],enumerable:!(n=lc(t,i))||n.enumerable});return e};var ut=(e,t,r)=>(r=e!=null?ac(fc(e)):{},hc(t||!e||!e.__esModule?eo(r,"default",{value:e,enumerable:!0}):r,e));var _o=g(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.splitWhen=ht.flatten=void 0;function Ac(e){return e.reduce((t,r)=>[].concat(t,r),[])}ht.flatten=Ac;function Tc(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}ht.splitWhen=Tc});var go=g(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.isEnoentCodeError=void 0;function Cc(e){return e.code==="ENOENT"}ur.isEnoentCodeError=Cc});var yo=g(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.createDirentFromStats=void 0;var Sn=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 Oc(e,t){return new Sn(e,t)}fr.createDirentFromStats=Oc});var mo=g(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.removeLeadingDotSegment=Se.escape=Se.makeAbsolute=Se.unixify=void 0;var Pc=B("path"),Lc=2,Mc=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Bc(e){return e.replace(/\\/g,"/")}Se.unixify=Bc;function Dc(e,t){return Pc.resolve(e,t)}Se.makeAbsolute=Dc;function Nc(e){return e.replace(Mc,"\\$2")}Se.escape=Nc;function Ic(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Lc)}return e}Se.removeLeadingDotSegment=Ic});var vo=g((Qy,bo)=>{bo.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 So=g((Xy,xo)=>{var kc=vo(),Eo={"{":"}","(":")","[":"]"},Fc=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=Eo[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},qc=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=Eo[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};xo.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(kc(t))return!0;var n=Fc;return r&&r.strict===!1&&(n=qc),n(t)}});var wo=g((Jy,Ro)=>{"use strict";var jc=So(),Hc=B("path").posix.dirname,$c=B("os").platform()==="win32",Rn="/",Uc=/\\/g,Gc=/[\{\[].*[\}\]]$/,Wc=/(^|[^\\])([\{\[]|\([^\)]+$)/,Vc=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Ro.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&$c&&t.indexOf(Rn)<0&&(t=t.replace(Uc,Rn)),Gc.test(t)&&(t+=Rn),t+="a";do t=Hc(t);while(jc(t)||Wc.test(t));return t.replace(Vc,"$1")}});var cr=g(he=>{"use strict";he.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;he.find=(e,t)=>e.nodes.find(r=>r.type===t);he.exceedsLimit=(e,t,r=1,n)=>n===!1||!he.isInteger(e)||!he.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;he.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)};he.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;he.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;he.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;he.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);he.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 hr=g((zy,To)=>{"use strict";var Ao=cr();To.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Ao.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&Ao.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((em,Co)=>{"use strict";Co.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Fo=g((tm,ko)=>{"use strict";var Po=Oo(),Ke=(e,t,r)=>{if(Po(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Po(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(Ke.cache.hasOwnProperty(l))return Ke.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let d=Io(e)||Io(t),c={min:e,max:t,a:f,b:u},S=[],m=[];if(d&&(c.isPadded=d,c.maxLen=String(c.max).length),f<0){let y=u<0?Math.abs(u):1;m=Lo(y,Math.abs(f),c,n),f=c.a=0}return u>=0&&(S=Lo(f,u,c,n)),c.negatives=m,c.positives=S,c.result=Yc(m,S,n),n.capture===!0?c.result=`(${c.result})`:n.wrap!==!1&&S.length+m.length>1&&(c.result=`(?:${c.result})`),Ke.cache[l]=c,c.result};function Yc(e,t,r){let n=wn(e,t,"-",!1,r)||[],i=wn(t,e,"",!1,r)||[],s=wn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Kc(e,t){let r=1,n=1,i=Bo(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Bo(e,r);for(i=Do(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Do(t+1,n)-1;return s=[...s],s.sort(Jc),s}function Qc(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Xc(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+=Zc(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=Kc(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let f=i[l],u=Qc(String(o),String(f),n),d="";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+No(a.count),o=f+1;continue}r.isPadded&&(d=zc(f,r,n)),u.string=d+u.pattern+No(u.count),s.push(u),o=f+1,a=u}return s}function wn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Mo(t,"string",a)&&s.push(r+a),n&&Mo(t,"string",a)&&s.push(r+a)}return s}function Xc(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Jc(e,t){return e>t?1:t>e?-1:0}function Mo(e,t,r){return e.some(n=>n[t]===r)}function Bo(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Do(e,t){return e-e%Math.pow(10,t)}function No(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Zc(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Io(e){return/^-?(0+)\d/.test(e)}function zc(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}}`}}Ke.cache={};Ke.clearCache=()=>Ke.cache={};ko.exports=Ke});var Cn=g((rm,Vo)=>{"use strict";var eh=B("util"),Ho=Fo(),qo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),th=e=>t=>e===!0?Number(t):String(t),An=e=>typeof e=="number"||typeof e=="string"&&e!=="",Nt=e=>Number.isInteger(+e),Tn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},rh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,nh=(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},jo=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},ih=(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},$o=(e,t,r,n)=>{if(r)return Ho(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Uo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Ho(e,t,r)},Go=(...e)=>new RangeError("Invalid range arguments: "+eh.inspect(...e)),Wo=(e,t,r)=>{if(r.strictRanges===!0)throw Go([e,t]);return[]},sh=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},oh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Go([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=Tn(a)||Tn(l)||Tn(f),d=u?Math.max(a.length,l.length,f.length):0,c=u===!1&&rh(e,t,n)===!1,S=n.transform||th(c);if(n.toRegex&&r===1)return $o(jo(e,d),jo(t,d),!0,n);let m={negatives:[],positives:[]},y=D=>m[D<0?"negatives":"positives"].push(Math.abs(D)),R=[],x=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):R.push(nh(S(i,x),d,c)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?ih(m,n):Uo(R,null,{wrap:!1,...n}):R},ah=(e,t,r=1,n={})=>{if(!Nt(e)&&e.length>1||!Nt(t)&&t.length>1)return Wo(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 $o(l,f,!1,n);let u=[],d=0;for(;a?s>=o:s<=o;)u.push(i(s,d)),s=a?s-r:s+r,d++;return n.toRegex===!0?Uo(u,null,{wrap:!1,options:n}):u},dr=(e,t,r,n={})=>{if(t==null&&An(e))return[e];if(!An(e)||!An(t))return Wo(e,t,n);if(typeof r=="function")return dr(e,t,1,{transform:r});if(qo(r))return dr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Nt(r)?Nt(e)&&Nt(t)?oh(e,t,r,i):ah(e,t,Math.max(Math.abs(r),1),i):r!=null&&!qo(r)?sh(r,i):dr(e,t,1,r)};Vo.exports=dr});var Qo=g((nm,Ko)=>{"use strict";var lh=Cn(),Yo=cr(),uh=(e,t={})=>{let r=(n,i={})=>{let s=Yo.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=Yo.reduce(n.nodes),d=lh(...u,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return u.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};Ko.exports=uh});var Zo=g((im,Jo)=>{"use strict";var fh=Cn(),Xo=hr(),dt=cr(),Qe=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?dt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Qe(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Qe(i,s,r):i+s);return dt.flatten(n)},ch=(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(Qe(a.pop(),Xo(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Qe(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=dt.reduce(i.nodes);if(dt.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=fh(...d,t);c.length===0&&(c=Xo(i,t)),a.push(Qe(a.pop(),c)),i.nodes=[];return}let l=dt.encloseBrace(i),f=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let d=0;d<i.nodes.length;d++){let c=i.nodes[d];if(c.type==="comma"&&i.type==="brace"){d===1&&f.push(""),f.push("");continue}if(c.type==="close"){a.push(Qe(a.pop(),f,l));continue}if(c.value&&c.type!=="open"){f.push(Qe(f.pop(),c.value));continue}c.nodes&&n(c,i)}return f};return dt.flatten(n(e))};Jo.exports=ch});var ea=g((sm,zo)=>{"use strict";zo.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 sa=g((om,ia)=>{"use strict";var hh=hr(),{MAX_LENGTH:ta,CHAR_BACKSLASH:On,CHAR_BACKTICK:dh,CHAR_COMMA:ph,CHAR_DOT:_h,CHAR_LEFT_PARENTHESES:gh,CHAR_RIGHT_PARENTHESES:yh,CHAR_LEFT_CURLY_BRACE:mh,CHAR_RIGHT_CURLY_BRACE:bh,CHAR_LEFT_SQUARE_BRACKET:ra,CHAR_RIGHT_SQUARE_BRACKET:na,CHAR_DOUBLE_QUOTE:vh,CHAR_SINGLE_QUOTE:Eh,CHAR_NO_BREAK_SPACE:xh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Sh}=ea(),Rh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ta,r.maxLength):ta;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,d=0,c,S={},m=()=>e[u++],y=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(y({type:"bos"});u<f;)if(o=s[s.length-1],c=m(),!(c===Sh||c===xh)){if(c===On){y({type:"text",value:(t.keepEscaping?c:"")+m()});continue}if(c===na){y({type:"text",value:"\\"+c});continue}if(c===ra){l++;let R=!0,x;for(;u<f&&(x=m());){if(c+=x,x===ra){l++;continue}if(x===On){c+=m();continue}if(x===na&&(l--,l===0))break}y({type:"text",value:c});continue}if(c===gh){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:c});continue}if(c===yh){if(o.type!=="paren"){y({type:"text",value:c});continue}o=s.pop(),y({type:"text",value:c}),o=s[s.length-1];continue}if(c===vh||c===Eh||c===dh){let R=c,x;for(t.keepQuotes!==!0&&(c="");u<f&&(x=m());){if(x===On){c+=x+m();continue}if(x===R){t.keepQuotes===!0&&(c+=x);break}c+=x}y({type:"text",value:c});continue}if(c===mh){d++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=y(x),s.push(o),y({type:"open",value:c});continue}if(c===bh){if(o.type!=="brace"){y({type:"text",value:c});continue}let R="close";o=s.pop(),o.close=!0,y({type:R,value:c}),d--,o=s[s.length-1];continue}if(c===ph&&d>0){if(o.ranges>0){o.ranges=0;let R=o.nodes.shift();o.nodes=[R,{type:"text",value:hh(o)}]}y({type:"comma",value:c}),o.commas++;continue}if(c===_h&&d>0&&o.commas===0){let R=o.nodes;if(d===0||R.length===0){y({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 x=R[R.length-1];x.value+=a.value+c,a=x,o.ranges--;continue}y({type:"dot",value:c});continue}y({type:"text",value:c})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let R=s[s.length-1],x=R.nodes.indexOf(o);R.nodes.splice(x,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),i};ia.exports=Rh});var la=g((am,aa)=>{"use strict";var oa=hr(),wh=Qo(),Ah=Zo(),Th=sa(),ue=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ue.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ue.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ue.parse=(e,t={})=>Th(e,t);ue.stringify=(e,t={})=>oa(typeof e=="string"?ue.parse(e,t):e,t);ue.compile=(e,t={})=>(typeof e=="string"&&(e=ue.parse(e,t)),wh(e,t));ue.expand=(e,t={})=>{typeof e=="string"&&(e=ue.parse(e,t));let r=Ah(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ue.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ue.compile(e,t):ue.expand(e,t);aa.exports=ue});var It=g((lm,da)=>{"use strict";var Ch=B("path"),Re="\\\\/",ua=`[^${Re}]`,Le="\\.",Oh="\\+",Ph="\\?",pr="\\/",Lh="(?=.)",fa="[^/]",Pn=`(?:${pr}|$)`,ca=`(?:^|${pr})`,Ln=`${Le}{1,2}${Pn}`,Mh=`(?!${Le})`,Bh=`(?!${ca}${Ln})`,Dh=`(?!${Le}{0,1}${Pn})`,Nh=`(?!${Ln})`,Ih=`[^.${pr}]`,kh=`${fa}*?`,ha={DOT_LITERAL:Le,PLUS_LITERAL:Oh,QMARK_LITERAL:Ph,SLASH_LITERAL:pr,ONE_CHAR:Lh,QMARK:fa,END_ANCHOR:Pn,DOTS_SLASH:Ln,NO_DOT:Mh,NO_DOTS:Bh,NO_DOT_SLASH:Dh,NO_DOTS_SLASH:Nh,QMARK_NO_DOT:Ih,STAR:kh,START_ANCHOR:ca},Fh={...ha,SLASH_LITERAL:`[${Re}]`,QMARK:ua,STAR:`${ua}*?`,DOTS_SLASH:`${Le}{1,2}(?:[${Re}]|$)`,NO_DOT:`(?!${Le})`,NO_DOTS:`(?!(?:^|[${Re}])${Le}{1,2}(?:[${Re}]|$))`,NO_DOT_SLASH:`(?!${Le}{0,1}(?:[${Re}]|$))`,NO_DOTS_SLASH:`(?!${Le}{1,2}(?:[${Re}]|$))`,QMARK_NO_DOT:`[^.${Re}]`,START_ANCHOR:`(?:^|[${Re}])`,END_ANCHOR:`(?:[${Re}]|$)`},qh={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"};da.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:qh,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:Ch.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?Fh:ha}}});var kt=g(oe=>{"use strict";var jh=B("path"),Hh=process.platform==="win32",{REGEX_BACKSLASH:$h,REGEX_REMOVE_BACKSLASH:Uh,REGEX_SPECIAL_CHARS:Gh,REGEX_SPECIAL_CHARS_GLOBAL:Wh}=It();oe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);oe.hasRegexChars=e=>Gh.test(e);oe.isRegexChar=e=>e.length===1&&oe.hasRegexChars(e);oe.escapeRegex=e=>e.replace(Wh,"\\$1");oe.toPosixSlashes=e=>e.replace($h,"/");oe.removeBackslashes=e=>e.replace(Uh,t=>t==="\\"?"":t);oe.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};oe.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Hh===!0||jh.sep==="\\";oe.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?oe.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};oe.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};oe.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Ea=g((fm,va)=>{"use strict";var pa=kt(),{CHAR_ASTERISK:Mn,CHAR_AT:Vh,CHAR_BACKWARD_SLASH:Ft,CHAR_COMMA:Yh,CHAR_DOT:Bn,CHAR_EXCLAMATION_MARK:Dn,CHAR_FORWARD_SLASH:ba,CHAR_LEFT_CURLY_BRACE:Nn,CHAR_LEFT_PARENTHESES:In,CHAR_LEFT_SQUARE_BRACKET:Kh,CHAR_PLUS:Qh,CHAR_QUESTION_MARK:_a,CHAR_RIGHT_CURLY_BRACE:Xh,CHAR_RIGHT_PARENTHESES:ga,CHAR_RIGHT_SQUARE_BRACKET:Jh}=It(),ya=e=>e===ba||e===Ft,ma=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Zh=(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,d=0,c=!1,S=!1,m=!1,y=!1,R=!1,x=!1,D=!1,q=!1,Q=!1,w=!1,F=0,C,A,I={value:"",depth:0,isGlob:!1},Z=()=>f>=n,_=()=>l.charCodeAt(f+1),E=()=>(C=A,l.charCodeAt(++f));for(;f<n;){A=E();let ie;if(A===Ft){D=I.backslashes=!0,A=E(),A===Nn&&(x=!0);continue}if(x===!0||A===Nn){for(F++;Z()!==!0&&(A=E());){if(A===Ft){D=I.backslashes=!0,E();continue}if(A===Nn){F++;continue}if(x!==!0&&A===Bn&&(A=E())===Bn){if(c=I.isBrace=!0,m=I.isGlob=!0,w=!0,i===!0)continue;break}if(x!==!0&&A===Yh){if(c=I.isBrace=!0,m=I.isGlob=!0,w=!0,i===!0)continue;break}if(A===Xh&&(F--,F===0)){x=!1,c=I.isBrace=!0,w=!0;break}}if(i===!0)continue;break}if(A===ba){if(s.push(f),o.push(I),I={value:"",depth:0,isGlob:!1},w===!0)continue;if(C===Bn&&f===u+1){u+=2;continue}d=f+1;continue}if(r.noext!==!0&&(A===Qh||A===Vh||A===Mn||A===_a||A===Dn)===!0&&_()===In){if(m=I.isGlob=!0,y=I.isExtglob=!0,w=!0,A===Dn&&f===u&&(Q=!0),i===!0){for(;Z()!==!0&&(A=E());){if(A===Ft){D=I.backslashes=!0,A=E();continue}if(A===ga){m=I.isGlob=!0,w=!0;break}}continue}break}if(A===Mn){if(C===Mn&&(R=I.isGlobstar=!0),m=I.isGlob=!0,w=!0,i===!0)continue;break}if(A===_a){if(m=I.isGlob=!0,w=!0,i===!0)continue;break}if(A===Kh){for(;Z()!==!0&&(ie=E());){if(ie===Ft){D=I.backslashes=!0,E();continue}if(ie===Jh){S=I.isBracket=!0,m=I.isGlob=!0,w=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&A===Dn&&f===u){q=I.negated=!0,u++;continue}if(r.noparen!==!0&&A===In){if(m=I.isGlob=!0,i===!0){for(;Z()!==!0&&(A=E());){if(A===In){D=I.backslashes=!0,A=E();continue}if(A===ga){w=!0;break}}continue}break}if(m===!0){if(w=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let L=l,ae="",h="";u>0&&(ae=l.slice(0,u),l=l.slice(u),d-=u),L&&m===!0&&d>0?(L=l.slice(0,d),h=l.slice(d)):m===!0?(L="",h=l):L=l,L&&L!==""&&L!=="/"&&L!==l&&ya(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),r.unescape===!0&&(h&&(h=pa.removeBackslashes(h)),L&&D===!0&&(L=pa.removeBackslashes(L)));let p={prefix:ae,input:e,start:u,base:L,glob:h,isBrace:c,isBracket:S,isGlob:m,isExtglob:y,isGlobstar:R,negated:q,negatedExtglob:Q};if(r.tokens===!0&&(p.maxDepth=0,ya(A)||o.push(I),p.tokens=o),r.parts===!0||r.tokens===!0){let ie;for(let k=0;k<s.length;k++){let Ee=ie?ie+1:u,xe=s[k],le=e.slice(Ee,xe);r.tokens&&(k===0&&u!==0?(o[k].isPrefix=!0,o[k].value=ae):o[k].value=le,ma(o[k]),p.maxDepth+=o[k].depth),(k!==0||le!=="")&&a.push(le),ie=xe}if(ie&&ie+1<e.length){let k=e.slice(ie+1);a.push(k),r.tokens&&(o[o.length-1].value=k,ma(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};va.exports=Zh});var Ra=g((cm,Sa)=>{"use strict";var _r=It(),fe=kt(),{MAX_LENGTH:gr,POSIX_REGEX_SOURCE:zh,REGEX_NON_SPECIAL_CHARS:ed,REGEX_SPECIAL_CHARS_BACKREF:td,REPLACEMENTS:xa}=_r,rd=(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=>fe.escapeRegex(i)).join("..")}return r},pt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,kn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=xa[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(gr,r.maxLength):gr,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=fe.isWindows(t),f=_r.globChars(l),u=_r.extglobChars(f),{DOT_LITERAL:d,PLUS_LITERAL:c,SLASH_LITERAL:S,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:R,NO_DOT_SLASH:x,NO_DOTS_SLASH:D,QMARK:q,QMARK_NO_DOT:Q,STAR:w,START_ANCHOR:F}=f,C=v=>`(${a}(?:(?!${F}${v.dot?y:d}).)*?)`,A=r.dot?"":R,I=r.dot?q:Q,Z=r.bash===!0?C(r):w;r.capture&&(Z=`(${Z})`),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=fe.removePrefix(e,_),i=e.length;let E=[],L=[],ae=[],h=s,p,ie=()=>_.index===i-1,k=_.peek=(v=1)=>e[_.index+v],Ee=_.advance=()=>e[++_.index]||"",xe=()=>e.slice(_.index+1),le=(v="",$=0)=>{_.consumed+=v,_.index+=$},nr=v=>{_.output+=v.output!=null?v.output:v.value,le(v.value)},sc=()=>{let v=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)Ee(),_.start++,v++;return v%2===0?!1:(_.negated=!0,_.start++,!0)},ir=v=>{_[v]++,ae.push(v)},Ye=v=>{_[v]--,ae.pop()},M=v=>{if(h.type==="globstar"){let $=_.braces>0&&(v.type==="comma"||v.type==="brace"),b=v.extglob===!0||E.length&&(v.type==="pipe"||v.type==="paren");v.type!=="slash"&&v.type!=="paren"&&!$&&!b&&(_.output=_.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=Z,_.output+=h.output)}if(E.length&&v.type!=="paren"&&(E[E.length-1].inner+=v.value),(v.value||v.output)&&nr(v),h&&h.type==="text"&&v.type==="text"){h.value+=v.value,h.output=(h.output||"")+v.value;return}v.prev=h,o.push(v),h=v},sr=(v,$)=>{let b={...u[$],conditions:1,inner:""};b.prev=h,b.parens=_.parens,b.output=_.output;let O=(r.capture?"(":"")+b.open;ir("parens"),M({type:v,value:$,output:_.output?"":m}),M({type:"paren",extglob:!0,value:Ee(),output:O}),E.push(b)},oc=v=>{let $=v.close+(r.capture?")":""),b;if(v.type==="negate"){let O=Z;if(v.inner&&v.inner.length>1&&v.inner.includes("/")&&(O=C(r)),(O!==Z||ie()||/^\)+$/.test(xe()))&&($=v.close=`)$))${O}`),v.inner.includes("*")&&(b=xe())&&/^\.[^\\/.]+$/.test(b)){let V=kn(b,{...t,fastpaths:!1}).output;$=v.close=`)${V})${O})`}v.prev.type==="bos"&&(_.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:p,output:$}),Ye("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let v=!1,$=e.replace(td,(b,O,V,se,z,gn)=>se==="\\"?(v=!0,b):se==="?"?O?O+se+(z?q.repeat(z.length):""):gn===0?I+(z?q.repeat(z.length):""):q.repeat(V.length):se==="."?d.repeat(V.length):se==="*"?O?O+se+(z?Z:""):Z:O?b:`\\${b}`);return v===!0&&(r.unescape===!0?$=$.replace(/\\/g,""):$=$.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),$===e&&r.contains===!0?(_.output=e,_):(_.output=fe.wrapOutput($,_,t),_)}for(;!ie();){if(p=Ee(),p==="\0")continue;if(p==="\\"){let b=k();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){p+="\\",M({type:"text",value:p});continue}let O=/^\\+/.exec(xe()),V=0;if(O&&O[0].length>2&&(V=O[0].length,_.index+=V,V%2!==0&&(p+="\\")),r.unescape===!0?p=Ee():p+=Ee(),_.brackets===0){M({type:"text",value:p});continue}}if(_.brackets>0&&(p!=="]"||h.value==="["||h.value==="[^")){if(r.posix!==!1&&p===":"){let b=h.value.slice(1);if(b.includes("[")&&(h.posix=!0,b.includes(":"))){let O=h.value.lastIndexOf("["),V=h.value.slice(0,O),se=h.value.slice(O+2),z=zh[se];if(z){h.value=V+z,_.backtrack=!0,Ee(),!s.output&&o.indexOf(h)===1&&(s.output=m);continue}}}(p==="["&&k()!==":"||p==="-"&&k()==="]")&&(p=`\\${p}`),p==="]"&&(h.value==="["||h.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&h.value==="["&&(p="^"),h.value+=p,nr({value:p});continue}if(_.quotes===1&&p!=='"'){p=fe.escapeRegex(p),h.value+=p,nr({value:p});continue}if(p==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:p});continue}if(p==="("){ir("parens"),M({type:"paren",value:p});continue}if(p===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(pt("opening","("));let b=E[E.length-1];if(b&&_.parens===b.parens+1){oc(E.pop());continue}M({type:"paren",value:p,output:_.parens?")":"\\)"}),Ye("parens");continue}if(p==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(pt("closing","]"));p=`\\${p}`}else ir("brackets");M({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){M({type:"text",value:p,output:`\\${p}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(pt("opening","["));M({type:"text",value:p,output:`\\${p}`});continue}Ye("brackets");let b=h.value.slice(1);if(h.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(p=`/${p}`),h.value+=p,nr({value:p}),r.literalBrackets===!1||fe.hasRegexChars(b))continue;let O=fe.escapeRegex(h.value);if(_.output=_.output.slice(0,-h.value.length),r.literalBrackets===!0){_.output+=O,h.value=O;continue}h.value=`(${a}${O}|${h.value})`,_.output+=h.value;continue}if(p==="{"&&r.nobrace!==!0){ir("braces");let b={type:"brace",value:p,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};L.push(b),M(b);continue}if(p==="}"){let b=L[L.length-1];if(r.nobrace===!0||!b){M({type:"text",value:p,output:p});continue}let O=")";if(b.dots===!0){let V=o.slice(),se=[];for(let z=V.length-1;z>=0&&(o.pop(),V[z].type!=="brace");z--)V[z].type!=="dots"&&se.unshift(V[z].value);O=rd(se,r),_.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let V=_.output.slice(0,b.outputIndex),se=_.tokens.slice(b.tokensIndex);b.value=b.output="\\{",p=O="\\}",_.output=V;for(let z of se)_.output+=z.output||z.value}M({type:"brace",value:p,output:O}),Ye("braces"),L.pop();continue}if(p==="|"){E.length>0&&E[E.length-1].conditions++,M({type:"text",value:p});continue}if(p===","){let b=p,O=L[L.length-1];O&&ae[ae.length-1]==="braces"&&(O.comma=!0,b="|"),M({type:"comma",value:p,output:b});continue}if(p==="/"){if(h.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",o.pop(),h=s;continue}M({type:"slash",value:p,output:S});continue}if(p==="."){if(_.braces>0&&h.type==="dot"){h.value==="."&&(h.output=d);let b=L[L.length-1];h.type="dots",h.output+=p,h.value+=p,b.dots=!0;continue}if(_.braces+_.parens===0&&h.type!=="bos"&&h.type!=="slash"){M({type:"text",value:p,output:d});continue}M({type:"dot",value:p,output:d});continue}if(p==="?"){if(!(h&&h.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){sr("qmark",p);continue}if(h&&h.type==="paren"){let O=k(),V=p;if(O==="<"&&!fe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(O)||O==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(V=`\\${p}`),M({type:"text",value:p,output:V});continue}if(r.dot!==!0&&(h.type==="slash"||h.type==="bos")){M({type:"qmark",value:p,output:Q});continue}M({type:"qmark",value:p,output:q});continue}if(p==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){sr("negate",p);continue}if(r.nonegate!==!0&&_.index===0){sc();continue}}if(p==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){sr("plus",p);continue}if(h&&h.value==="("||r.regex===!1){M({type:"plus",value:p,output:c});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||_.parens>0){M({type:"plus",value:p});continue}M({type:"plus",value:c});continue}if(p==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){M({type:"at",extglob:!0,value:p,output:""});continue}M({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let b=ed.exec(xe());b&&(p+=b[0],_.index+=b[0].length),M({type:"text",value:p});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=p,h.output=Z,_.backtrack=!0,_.globstar=!0,le(p);continue}let v=xe();if(r.noextglob!==!0&&/^\([^?]/.test(v)){sr("star",p);continue}if(h.type==="star"){if(r.noglobstar===!0){le(p);continue}let b=h.prev,O=b.prev,V=b.type==="slash"||b.type==="bos",se=O&&(O.type==="star"||O.type==="globstar");if(r.bash===!0&&(!V||v[0]&&v[0]!=="/")){M({type:"star",value:p,output:""});continue}let z=_.braces>0&&(b.type==="comma"||b.type==="brace"),gn=E.length&&(b.type==="pipe"||b.type==="paren");if(!V&&b.type!=="paren"&&!z&&!gn){M({type:"star",value:p,output:""});continue}for(;v.slice(0,3)==="/**";){let or=e[_.index+4];if(or&&or!=="/")break;v=v.slice(3),le("/**",3)}if(b.type==="bos"&&ie()){h.type="globstar",h.value+=p,h.output=C(r),_.output=h.output,_.globstar=!0,le(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!se&&ie()){_.output=_.output.slice(0,-(b.output+h.output).length),b.output=`(?:${b.output}`,h.type="globstar",h.output=C(r)+(r.strictSlashes?")":"|$)"),h.value+=p,_.globstar=!0,_.output+=b.output+h.output,le(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&v[0]==="/"){let or=v[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(b.output+h.output).length),b.output=`(?:${b.output}`,h.type="globstar",h.output=`${C(r)}${S}|${S}${or})`,h.value+=p,_.output+=b.output+h.output,_.globstar=!0,le(p+Ee()),M({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&v[0]==="/"){h.type="globstar",h.value+=p,h.output=`(?:^|${S}|${C(r)}${S})`,_.output=h.output,_.globstar=!0,le(p+Ee()),M({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-h.output.length),h.type="globstar",h.output=C(r),h.value+=p,_.output+=h.output,_.globstar=!0,le(p);continue}let $={type:"star",value:p,output:Z};if(r.bash===!0){$.output=".*?",(h.type==="bos"||h.type==="slash")&&($.output=A+$.output),M($);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&r.regex===!0){$.output=p,M($);continue}(_.index===_.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(_.output+=x,h.output+=x):r.dot===!0?(_.output+=D,h.output+=D):(_.output+=A,h.output+=A),k()!=="*"&&(_.output+=m,h.output+=m)),M($)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing","]"));_.output=fe.escapeLast(_.output,"["),Ye("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing",")"));_.output=fe.escapeLast(_.output,"("),Ye("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing","}"));_.output=fe.escapeLast(_.output,"{"),Ye("braces")}if(r.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${S}?`}),_.backtrack===!0){_.output="";for(let v of _.tokens)_.output+=v.output!=null?v.output:v.value,v.suffix&&(_.output+=v.suffix)}return _};kn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(gr,r.maxLength):gr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=xa[e]||e;let s=fe.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:c,STAR:S,START_ANCHOR:m}=_r.globChars(s),y=r.dot?d:u,R=r.dot?c:u,x=r.capture?"":"?:",D={negated:!1,prefix:""},q=r.bash===!0?".*?":S;r.capture&&(q=`(${q})`);let Q=A=>A.noglobstar===!0?q:`(${x}(?:(?!${m}${A.dot?f:o}).)*?)`,w=A=>{switch(A){case"*":return`${y}${l}${q}`;case".*":return`${o}${l}${q}`;case"*.*":return`${y}${q}${o}${l}${q}`;case"*/*":return`${y}${q}${a}${l}${R}${q}`;case"**":return y+Q(r);case"**/*":return`(?:${y}${Q(r)}${a})?${R}${l}${q}`;case"**/*.*":return`(?:${y}${Q(r)}${a})?${R}${q}${o}${l}${q}`;case"**/.*":return`(?:${y}${Q(r)}${a})?${o}${l}${q}`;default:{let I=/^(.*?)\.(\w+)$/.exec(A);if(!I)return;let Z=w(I[1]);return Z?Z+o+I[2]:void 0}}},F=fe.removePrefix(e,D),C=w(F);return C&&r.strictSlashes!==!0&&(C+=`${a}?`),C};Sa.exports=kn});var Aa=g((hm,wa)=>{"use strict";var nd=B("path"),id=Ea(),Fn=Ra(),qn=kt(),sd=It(),od=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 m=S(c);if(m)return m}return!1}}let n=od(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=qn.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,d=!1)=>{let{isMatch:c,match:S,output:m}=K.test(u,o,t,{glob:e,posix:s}),y={glob:e,state:a,regex:o,posix:s,input:u,output:m,match:S,isMatch:c};return typeof i.onResult=="function"&&i.onResult(y),c===!1?(y.isMatch=!1,d?y:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,d?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),d?y:!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?qn.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=qn.isWindows(r))=>(t instanceof RegExp?t:K.makeRe(t,r)).test(nd.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)):Fn(e,{...t,fastpaths:!1});K.scan=(e,t)=>id(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=Fn.fastpaths(e,t)),i.output||(i=Fn(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=sd;wa.exports=K});var Ca=g((dm,Ta)=>{"use strict";Ta.exports=Aa()});var Ba=g((pm,Ma)=>{"use strict";var Pa=B("util"),La=la(),we=Ca(),jn=kt(),Oa=e=>e===""||e==="./",G=(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 d=we(String(t[u]),{...r,onResult:a},!0),c=d.state.negated||d.state.negatedExtglob;c&&o++;for(let S of e){let m=d(S,!0);!(c?!m.isMatch:m.isMatch)||(c?n.add(m.output):(n.delete(m.output),i.add(m.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};G.match=G;G.matcher=(e,t)=>we(e,t);G.isMatch=(e,t,r)=>we(t,r)(e);G.any=G.isMatch;G.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(G(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};G.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Pa.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>G.contains(e,n,r));if(typeof t=="string"){if(Oa(e)||Oa(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return G.isMatch(e,t,{...r,contains:!0})};G.matchKeys=(e,t,r)=>{if(!jn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=G(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};G.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(n.some(o=>s(o)))return!0}return!1};G.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};G.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Pa.inspect(e)}"`);return[].concat(t).every(n=>we(n,r)(e))};G.capture=(e,t,r)=>{let n=jn.isWindows(r),s=we.makeRe(String(e),{...r,capture:!0}).exec(n?jn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};G.makeRe=(...e)=>we.makeRe(...e);G.scan=(...e)=>we.scan(...e);G.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of La(String(n),t))r.push(we.parse(i,t));return r};G.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:La(e,t)};G.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return G.braces(e,{...t,expand:!0})};Ma.exports=G});var Ha=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 ad=B("path"),ld=wo(),Hn=Ba(),Da="**",ud="\\",fd=/[*?]|^!/,cd=/\[[^[]*]/,hd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,dd=/[!*+?@]\([^(]*\)/,pd=/,|\.\./;function Na(e,t={}){return!Ia(e,t)}T.isStaticPattern=Na;function Ia(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(ud)||fd.test(e)||cd.test(e)||hd.test(e)||t.extglob!==!1&&dd.test(e)||t.braceExpansion!==!1&&_d(e))}T.isDynamicPattern=Ia;function _d(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 pd.test(n)}function gd(e){return yr(e)?e.slice(1):e}T.convertToPositivePattern=gd;function yd(e){return"!"+e}T.convertToNegativePattern=yd;function yr(e){return e.startsWith("!")&&e[1]!=="("}T.isNegativePattern=yr;function ka(e){return!yr(e)}T.isPositivePattern=ka;function md(e){return e.filter(yr)}T.getNegativePatterns=md;function bd(e){return e.filter(ka)}T.getPositivePatterns=bd;function vd(e){return e.filter(t=>!$n(t))}T.getPatternsInsideCurrentDirectory=vd;function Ed(e){return e.filter($n)}T.getPatternsOutsideCurrentDirectory=Ed;function $n(e){return e.startsWith("..")||e.startsWith("./..")}T.isPatternRelatedToParentDirectory=$n;function xd(e){return ld(e,{flipBackslashes:!1})}T.getBaseDirectory=xd;function Sd(e){return e.includes(Da)}T.hasGlobStar=Sd;function Fa(e){return e.endsWith("/"+Da)}T.endsWithSlashGlobStar=Fa;function Rd(e){let t=ad.basename(e);return Fa(e)||Na(t)}T.isAffectDepthOfReadingPattern=Rd;function wd(e){return e.reduce((t,r)=>t.concat(qa(r)),[])}T.expandPatternsWithBraceExpansion=wd;function qa(e){return Hn.braces(e,{expand:!0,nodupes:!0})}T.expandBraceExpansion=qa;function Ad(e,t){let{parts:r}=Hn.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=Ad;function ja(e,t){return Hn.makeRe(e,t)}T.makeRe=ja;function Td(e,t){return e.map(r=>ja(r,t))}T.convertPatternsToRe=Td;function Cd(e,t){return t.some(r=>r.test(e))}T.matchAny=Cd});var Wa=g((gm,Ga)=>{"use strict";var Od=B("stream"),$a=Od.PassThrough,Pd=Array.prototype.slice;Ga.exports=Ld;function Ld(){let e=[],t=Pd.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=$a(n);function a(){for(let u=0,d=arguments.length;u<d;u++)e.push(Ua(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 d=u.length+1;function c(){--d>0||(r=!1,l())}function S(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",R),c()}function R(x){o.emit("error",x)}if(m._readableState.endEmitted)return c();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",R),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)S(u[m]);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 Ua(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Ua(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe($a(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Ya=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.merge=void 0;var Md=Wa();function Bd(e){let t=Md(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Va(e)),t.once("end",()=>Va(e)),t}mr.merge=Bd;function Va(e){e.forEach(t=>t.emit("close"))}});var Ka=g(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.isEmpty=_t.isString=void 0;function Dd(e){return typeof e=="string"}_t.isString=Dd;function Nd(e){return e===""}_t.isEmpty=Nd});var Me=g(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.string=te.stream=te.pattern=te.path=te.fs=te.errno=te.array=void 0;var Id=_o();te.array=Id;var kd=go();te.errno=kd;var Fd=yo();te.fs=Fd;var qd=mo();te.path=qd;var jd=Ha();te.pattern=jd;var Hd=Ya();te.stream=Hd;var $d=Ka();te.string=$d});var Ja=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.convertPatternGroupToTask=re.convertPatternGroupsToTasks=re.groupPatternsByBaseDirectory=re.getNegativePatternsAsPositive=re.getPositivePatterns=re.convertPatternsToTasks=re.generate=void 0;var Be=Me();function Ud(e,t){let r=Qa(e),n=Xa(e,t.ignore),i=r.filter(l=>Be.pattern.isStaticPattern(l,t)),s=r.filter(l=>Be.pattern.isDynamicPattern(l,t)),o=Un(i,n,!1),a=Un(s,n,!0);return o.concat(a)}re.generate=Ud;function Un(e,t,r){let n=[],i=Be.pattern.getPatternsOutsideCurrentDirectory(e),s=Be.pattern.getPatternsInsideCurrentDirectory(e),o=Gn(i),a=Gn(s);return n.push(...Wn(o,t,r)),"."in a?n.push(Vn(".",s,t,r)):n.push(...Wn(a,t,r)),n}re.convertPatternsToTasks=Un;function Qa(e){return Be.pattern.getPositivePatterns(e)}re.getPositivePatterns=Qa;function Xa(e,t){return Be.pattern.getNegativePatterns(e).concat(t).map(Be.pattern.convertToPositivePattern)}re.getNegativePatternsAsPositive=Xa;function Gn(e){let t={};return e.reduce((r,n)=>{let i=Be.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}re.groupPatternsByBaseDirectory=Gn;function Wn(e,t,r){return Object.keys(e).map(n=>Vn(n,e[n],t,r))}re.convertPatternGroupsToTasks=Wn;function Vn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Be.pattern.convertToNegativePattern))}}re.convertPatternGroupToTask=Vn});var za=g(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeDuplicateSlashes=gt.transform=void 0;var Gd=/(?!^)\/{2,}/g;function Wd(e){return e.map(t=>Za(t))}gt.transform=Wd;function Za(e){return e.replace(Gd,"/")}gt.removeDuplicateSlashes=Za});var tl=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.read=void 0;function Vd(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){el(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Yn(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){el(r,s);return}Yn(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Yn(r,o)})})}br.read=Vd;function el(e,t){e(t)}function Yn(e,t){e(null,t)}});var rl=g(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.read=void 0;function Yd(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}}vr.read=Yd});var nl=g(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createFileSystemAdapter=Ne.FILE_SYSTEM_ADAPTER=void 0;var Er=B("fs");Ne.FILE_SYSTEM_ADAPTER={lstat:Er.lstat,stat:Er.stat,lstatSync:Er.lstatSync,statSync:Er.statSync};function Kd(e){return e===void 0?Ne.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ne.FILE_SYSTEM_ADAPTER),e)}Ne.createFileSystemAdapter=Kd});var il=g(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});var Qd=nl(),Kn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Qd.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}};Qn.default=Kn});var Xe=g(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.statSync=Ie.stat=Ie.Settings=void 0;var sl=tl(),Xd=rl(),Xn=il();Ie.Settings=Xn.default;function Jd(e,t,r){if(typeof t=="function"){sl.read(e,Jn(),t);return}sl.read(e,Jn(t),r)}Ie.stat=Jd;function Zd(e,t){let r=Jn(t);return Xd.read(e,r)}Ie.statSync=Zd;function Jn(e={}){return e instanceof Xn.default?e:new Xn.default(e)}});var ll=g((Tm,al)=>{var ol;al.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(ol||(ol=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var fl=g((Cm,ul)=>{ul.exports=ep;var zd=ll();function ep(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?zd(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,d){a(f,u,d)})}):o(null),s=!1}});var Zn=g(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xr=process.versions.node.split(".");if(xr[0]===void 0||xr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var cl=Number.parseInt(xr[0],10),tp=Number.parseInt(xr[1],10),hl=10,rp=10,np=cl>hl,ip=cl===hl&&tp>=rp;Sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=np||ip});var dl=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.createDirentFromStats=void 0;var zn=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 sp(e,t){return new zn(e,t)}Rr.createDirentFromStats=sp});var ei=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.fs=void 0;var op=dl();wr.fs=op});var ti=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.joinPathSegments=void 0;function ap(e,t,r){return e.endsWith(r)?e+t:e+r+t}Ar.joinPathSegments=ap});var bl=g(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.readdir=ke.readdirWithFileTypes=ke.read=void 0;var lp=Xe(),pl=fl(),up=Zn(),_l=ei(),gl=ti();function fp(e,t,r){if(!t.stats&&up.IS_SUPPORT_READDIR_WITH_FILE_TYPES){yl(e,t,r);return}ml(e,t,r)}ke.read=fp;function yl(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Tr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:gl.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){ri(r,s);return}let o=s.map(a=>cp(a,t));pl(o,(a,l)=>{if(a!==null){Tr(r,a);return}ri(r,l)})})}ke.readdirWithFileTypes=yl;function cp(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=_l.fs.createDirentFromStats(e.name,i),r(null,e)})}}function ml(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Tr(r,n);return}let s=i.map(o=>{let a=gl.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{lp.stat(a,t.fsStatSettings,(f,u)=>{if(f!==null){l(f);return}let d={name:o,path:a,dirent:_l.fs.createDirentFromStats(o,u)};t.stats&&(d.stats=u),l(null,d)})}});pl(s,(o,a)=>{if(o!==null){Tr(r,o);return}ri(r,a)})})}ke.readdir=ml;function Tr(e,t){e(t)}function ri(e,t){e(null,t)}});var Rl=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.readdir=Fe.readdirWithFileTypes=Fe.read=void 0;var hp=Xe(),dp=Zn(),vl=ei(),El=ti();function pp(e,t){return!t.stats&&dp.IS_SUPPORT_READDIR_WITH_FILE_TYPES?xl(e,t):Sl(e,t)}Fe.read=pp;function xl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:El.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=vl.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Fe.readdirWithFileTypes=xl;function Sl(e,t){return t.fs.readdirSync(e).map(n=>{let i=El.joinPathSegments(e,n,t.pathSegmentSeparator),s=hp.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:vl.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Fe.readdir=Sl});var wl=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.createFileSystemAdapter=qe.FILE_SYSTEM_ADAPTER=void 0;var yt=B("fs");qe.FILE_SYSTEM_ADAPTER={lstat:yt.lstat,stat:yt.stat,lstatSync:yt.lstatSync,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};function _p(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=_p});var Al=g(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var gp=B("path"),yp=Xe(),mp=wl(),ni=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=mp.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,gp.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new yp.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};ii.default=ni});var Cr=g(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.Settings=je.scandirSync=je.scandir=void 0;var Tl=bl(),bp=Rl(),si=Al();je.Settings=si.default;function vp(e,t,r){if(typeof t=="function"){Tl.read(e,oi(),t);return}Tl.read(e,oi(t),r)}je.scandir=vp;function Ep(e,t){let r=oi(t);return bp.read(e,r)}je.scandirSync=Ep;function oi(e={}){return e instanceof si.default?e:new si.default(e)}});var Ol=g((Fm,Cl)=>{"use strict";function xp(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}}Cl.exports=xp});var Ll=g((qm,ai)=>{"use strict";var Sp=Ol();function Pl(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=Sp(Rp),i=null,s=null,o=0,a=null,l={push:y,drain:de,saturated:de,pause:u,paused:!1,concurrency:r,running:f,resume:S,idle:m,length:d,getQueue:c,unshift:R,empty:de,kill:D,killAndDrain:q,error:Q};return l;function f(){return o}function u(){l.paused=!0}function d(){for(var w=i,F=0;w;)w=w.next,F++;return F}function c(){for(var w=i,F=[];w;)F.push(w.value),w=w.next;return F}function S(){if(!!l.paused){l.paused=!1;for(var w=0;w<l.concurrency;w++)o++,x()}}function m(){return o===0&&l.length()===0}function y(w,F){var C=n.get();C.context=e,C.release=x,C.value=w,C.callback=F||de,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 R(w,F){var C=n.get();C.context=e,C.release=x,C.value=w,C.callback=F||de,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 x(w){w&&n.release(w);var F=i;F?l.paused?o--:(s===i&&(s=null),i=F.next,F.next=null,t.call(e,F.value,F.worked),s===null&&l.empty()):--o===0&&l.drain()}function D(){i=null,s=null,l.drain=de}function q(){i=null,s=null,l.drain(),l.drain=de}function Q(w){a=w}}function de(){}function Rp(){this.value=null,this.callback=de,this.next=null,this.release=de,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=de,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function wp(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,d){t.call(this,u).then(function(c){d(null,c)},d)}var i=Pl(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=f,i;function a(u){var d=new Promise(function(c,S){s(u,function(m,y){if(m){S(m);return}c(y)})});return d.catch(de),d}function l(u){var d=new Promise(function(c,S){o(u,function(m,y){if(m){S(m);return}c(y)})});return d.catch(de),d}function f(){var u=i.drain,d=new Promise(function(c){i.drain=function(){u(),c()}});return d}}ai.exports=Pl;ai.exports.promise=wp});var Or=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.joinPathSegments=Ae.replacePathSegmentSeparator=Ae.isAppliedFilter=Ae.isFatalError=void 0;function Ap(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ae.isFatalError=Ap;function Tp(e,t){return e===null||e(t)}Ae.isAppliedFilter=Tp;function Cp(e,t){return e.split(/[/\\]/).join(t)}Ae.replacePathSegmentSeparator=Cp;function Op(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ae.joinPathSegments=Op});var fi=g(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var Pp=Or(),li=class{constructor(t,r){this._root=t,this._settings=r,this._root=Pp.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ui.default=li});var di=g(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});var Lp=B("events"),Mp=Cr(),Bp=Ll(),Pr=Or(),Dp=fi(),ci=class extends Dp.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Mp.scandir,this._emitter=new Lp.EventEmitter,this._queue=Bp(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||!Pr.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=Pr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Pr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Pr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};hi.default=ci});var Ml=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var Np=di(),pi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Np.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Ip(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{kp(t,this._storage)}),this._reader.read()}};_i.default=pi;function Ip(e,t){e(t)}function kp(e,t){e(null,t)}});var Bl=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var Fp=B("stream"),qp=di(),gi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new qp.default(this._root,this._settings),this._stream=new Fp.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}};yi.default=gi});var Dl=g(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var jp=Cr(),Lr=Or(),Hp=fi(),mi=class extends Hp.default{constructor(){super(...arguments),this._scandir=jp.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(!!Lr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Lr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Lr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Lr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};bi.default=mi});var Nl=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var $p=Dl(),vi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new $p.default(this._root,this._settings)}read(){return this._reader.read()}};Ei.default=vi});var Il=g(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Up=B("path"),Gp=Cr(),xi=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,Up.sep),this.fsScandirSettings=new Gp.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}};Si.default=xi});var Br=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.Settings=Te.walkStream=Te.walkSync=Te.walk=void 0;var kl=Ml(),Wp=Bl(),Vp=Nl(),Ri=Il();Te.Settings=Ri.default;function Yp(e,t,r){if(typeof t=="function"){new kl.default(e,Mr()).read(t);return}new kl.default(e,Mr(t)).read(r)}Te.walk=Yp;function Kp(e,t){let r=Mr(t);return new Vp.default(e,r).read()}Te.walkSync=Kp;function Qp(e,t){let r=Mr(t);return new Wp.default(e,r).read()}Te.walkStream=Qp;function Mr(e={}){return e instanceof Ri.default?e:new Ri.default(e)}});var Dr=g(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var Xp=B("path"),Jp=Xe(),Fl=Me(),wi=class{constructor(t){this._settings=t,this._fsStatSettings=new Jp.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Xp.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Fl.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Fl.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ai.default=wi});var Oi=g(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Zp=B("stream"),zp=Xe(),e_=Br(),t_=Dr(),Ti=class extends t_.default{constructor(){super(...arguments),this._walkStream=e_.walkStream,this._stat=zp.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Zp.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))})}};Ci.default=Ti});var ql=g(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var r_=Br(),n_=Dr(),i_=Oi(),Pi=class extends n_.default{constructor(){super(...arguments),this._walkAsync=r_.walk,this._readerStream=new i_.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Li.default=Pi});var jl=g(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var mt=Me(),Mi=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=mt.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 mt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>mt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:mt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return mt.array.splitWhen(t,r=>r.dynamic&&mt.pattern.hasGlobStar(r.pattern))}};Bi.default=Mi});var Hl=g(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var s_=jl(),Di=class extends s_.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}};Ni.default=Di});var $l=g(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Nr=Me(),o_=Hl(),Ii=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 o_.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Nr.pattern.isAffectDepthOfReadingPattern);return Nr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Nr.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!Nr.pattern.matchAny(t,r)}};ki.default=Ii});var Ul=g(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var Je=Me(),Fi=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Je.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Je.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Je.path.makeAbsolute(this._settings.cwd,t);return Je.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Je.path.removeLeadingDotSegment(t),s=Je.pattern.matchAny(i,r);return!s&&n?Je.pattern.matchAny(i+"/",r):s}};qi.default=Fi});var Gl=g(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});var a_=Me(),ji=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return a_.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Hi.default=ji});var Vl=g(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var Wl=Me(),$i=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Wl.path.makeAbsolute(this._settings.cwd,r),r=Wl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Ui.default=$i});var Ir=g(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var l_=B("path"),u_=$l(),f_=Ul(),c_=Gl(),h_=Vl(),Gi=class{constructor(t){this._settings=t,this.errorFilter=new c_.default(this._settings),this.entryFilter=new f_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new u_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new h_.default(this._settings)}_getRootDirectory(t){return l_.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}}};Wi.default=Gi});var Yl=g(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var d_=ql(),p_=Ir(),Vi=class extends p_.default{constructor(){super(...arguments),this._reader=new d_.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Yi.default=Vi});var Kl=g(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var __=B("stream"),g_=Oi(),y_=Ir(),Ki=class extends y_.default{constructor(){super(...arguments),this._reader=new g_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new __.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)}};Qi.default=Ki});var Ql=g(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var m_=Xe(),b_=Br(),v_=Dr(),Xi=class extends v_.default{constructor(){super(...arguments),this._walkSync=b_.walkSync,this._statSync=m_.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)}};Ji.default=Xi});var Xl=g(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var E_=Ql(),x_=Ir(),Zi=class extends x_.default{constructor(){super(...arguments),this._reader=new E_.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)}};zi.default=Zi});var Jl=g(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bt=B("fs"),S_=B("os"),R_=Math.max(S_.cpus().length,1);vt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bt.lstat,lstatSync:bt.lstatSync,stat:bt.stat,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};var es=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,R_),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({},vt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};vt.default=es});var tu=g((fb,eu)=>{"use strict";var Zl=Ja(),zl=za(),w_=Yl(),A_=Kl(),T_=Xl(),ts=Jl(),Ze=Me();async function rs(e,t){Et(e);let r=ns(e,w_.default,t),n=await Promise.all(r);return Ze.array.flatten(n)}(function(e){function t(o,a){Et(o);let l=ns(o,T_.default,a);return Ze.array.flatten(l)}e.sync=t;function r(o,a){Et(o);let l=ns(o,A_.default,a);return Ze.stream.merge(l)}e.stream=r;function n(o,a){Et(o);let l=zl.transform([].concat(o)),f=new ts.default(a);return Zl.generate(l,f)}e.generateTasks=n;function i(o,a){Et(o);let l=new ts.default(a);return Ze.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return Et(o),Ze.path.escape(o)}e.escapePath=s})(rs||(rs={}));function ns(e,t,r){let n=zl.transform([].concat(e)),i=new ts.default(r),s=Zl.generate(n,i),o=new t(i);return s.map(o.read,o)}function Et(e){if(![].concat(e).every(n=>Ze.string.isString(n)&&!Ze.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}eu.exports=rs});var nu=g((cb,is)=>{"use strict";var ru=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};is.exports=ru;is.exports.default=ru});var su=g((hb,Fr)=>{"use strict";var C_=nu(),kr=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(kr.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 C_(s,e),kr.set(s,n),s};Fr.exports=iu;Fr.exports.default=iu;Fr.exports.callCount=e=>{if(!kr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return kr.get(e)}});var ou=g((db,qr)=>{qr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&qr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var cu=g((pb,Rt)=>{var W=global.process,ze=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"};ze(W)?(au=B("assert"),xt=ou(),lu=/^win/i.test(W.platform),qt=B("events"),typeof qt!="function"&&(qt=qt.EventEmitter),W.__signal_exit_emitter__?ee=W.__signal_exit_emitter__:(ee=W.__signal_exit_emitter__=new qt,ee.count=0,ee.emitted={}),ee.infinite||(ee.setMaxListeners(1/0),ee.infinite=!0),Rt.exports=function(e,t){if(!ze(global.process))return function(){};au.equal(typeof e,"function","a callback must be provided for exit handler"),St===!1&&ss();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){ee.removeListener(r,e),ee.listeners("exit").length===0&&ee.listeners("afterexit").length===0&&jr()};return ee.on(r,e),n},jr=function(){!St||!ze(global.process)||(St=!1,xt.forEach(function(t){try{W.removeListener(t,Hr[t])}catch{}}),W.emit=$r,W.reallyExit=os,ee.count-=1)},Rt.exports.unload=jr,et=function(t,r,n){ee.emitted[t]||(ee.emitted[t]=!0,ee.emit(t,r,n))},Hr={},xt.forEach(function(e){Hr[e]=function(){if(!!ze(global.process)){var r=W.listeners(e);r.length===ee.count&&(jr(),et("exit",null,e),et("afterexit",null,e),lu&&e==="SIGHUP"&&(e="SIGINT"),W.kill(W.pid,e))}}}),Rt.exports.signals=function(){return xt},St=!1,ss=function(){St||!ze(global.process)||(St=!0,ee.count+=1,xt=xt.filter(function(t){try{return W.on(t,Hr[t]),!0}catch{return!1}}),W.emit=fu,W.reallyExit=uu)},Rt.exports.load=ss,os=W.reallyExit,uu=function(t){!ze(global.process)||(W.exitCode=t||0,et("exit",W.exitCode,null),et("afterexit",W.exitCode,null),os.call(W,W.exitCode))},$r=W.emit,fu=function(t,r){if(t==="exit"&&ze(global.process)){r!==void 0&&(W.exitCode=r);var n=$r.apply(this,arguments);return et("exit",W.exitCode,null),et("afterexit",W.exitCode,null),n}else return $r.apply(this,arguments)}):Rt.exports=function(){return function(){}};var au,xt,lu,qt,ee,jr,et,Hr,St,ss,os,uu,$r,fu});var gu=g((vb,L_)=>{L_.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:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{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((Eb,mu)=>{"use strict";var Gr=Object.assign({},gu()),yu=Object.keys(Gr);Object.defineProperty(Gr,"random",{get(){let e=Math.floor(Math.random()*yu.length),t=yu[e];return Gr[t]}});mu.exports=Gr});var vu=g((Pb,Wr)=>{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 d=[],c=[],S=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function m(y,R){if(y===null)return null;if(R==0)return y;var x,D;if(typeof y!="object")return y;if(e.__isArray(y))x=[];else if(e.__isRegExp(y))x=new RegExp(y.source,s(y)),y.lastIndex&&(x.lastIndex=y.lastIndex);else if(e.__isDate(y))x=new Date(y.getTime());else{if(S&&Buffer.isBuffer(y))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(y.length):x=new Buffer(y.length),y.copy(x),x;typeof f>"u"?(D=Object.getPrototypeOf(y),x=Object.create(D)):(x=Object.create(f),D=f)}if(a){var q=d.indexOf(y);if(q!=-1)return c[q];d.push(y),c.push(x)}for(var Q in y){var w;D&&(w=Object.getOwnPropertyDescriptor(D,Q)),!(w&&w.set==null)&&(x[Q]=m(y[Q],R-1))}return x}return m(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 Wr=="object"&&Wr.exports&&(Wr.exports=N_)});var xu=g((Lb,Eu)=>{var I_=vu();Eu.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=I_(t[r]))}),e}});var Ru=g((Mb,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((Bb,fs)=>{"use strict";var k_=xu(),$t=Ru(),Au={nul:0,control:0};fs.exports=function(t){return Tu(t,Au)};fs.exports.config=function(e){return e=k_(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:F_(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 F_(e){var t=0,r=$t.length-1,n;if(e<$t[0][0]||e>$t[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>$t[n][1])t=n+1;else if(e<$t[n][0])r=n-1;else return!0;return!1}});var hs=g((Nb,Ou)=>{Ou.exports=B("stream")});var Bu=g((Ib,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 q_(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){j_(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 j_(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 $_(e,t,r){return t&&Lu(e.prototype,t),r&&Lu(e,r),e}var U_=B("buffer"),Vr=U_.Buffer,G_=B("util"),ds=G_.inspect,W_=ds&&ds.custom||"inspect";function V_(e,t,r){Vr.prototype.copy.call(e,t,r)}Mu.exports=function(){function e(){H_(this,e),this.head=null,this.tail=null,this.length=0}return $_(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 Vr.alloc(0);for(var n=Vr.allocUnsafe(r>>>0),i=this.head,s=0;i;)V_(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=Vr.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:W_,value:function(r,n){return ds(this,q_({},n,{depth:0,customInspect:!1}))}}]),e}()});var _s=g((kb,Nu)=>{"use strict";function Y_(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(ps,this,e)):process.nextTick(ps,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(Yr,r):(r._writableState.errorEmitted=!0,process.nextTick(Du,r,s)):process.nextTick(Du,r,s):t?(process.nextTick(Yr,r),t(s)):process.nextTick(Yr,r)}),this)}function Du(e,t){ps(e,t),Yr(e)}function Yr(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function K_(){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 ps(e,t){e.emit("error",t)}function Q_(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Nu.exports={destroy:Y_,undestroy:K_,errorOrDestroy:Q_}});var He=g((Fb,Fu)=>{"use strict";var ku={};function pe(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 Iu(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 X_(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function J_(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}pe("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);pe("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&X_(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(J_(e," argument"))i=`The ${e} ${n} ${Iu(t,"type")}`;else{let s=Z_(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Iu(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");pe("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});pe("ERR_STREAM_PREMATURE_CLOSE","Premature close");pe("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");pe("ERR_STREAM_WRITE_AFTER_END","write after end");pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pe("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Fu.exports.codes=ku});var gs=g((qb,qu)=>{"use strict";var z_=He().codes.ERR_INVALID_OPT_VALUE;function eg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function tg(e,t,r,n){var i=eg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new z_(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}qu.exports={getHighWaterMark:tg}});var ju=g((jb,ys)=>{typeof Object.create=="function"?ys.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ys.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 tt=g((Hb,bs)=>{try{if(ms=B("util"),typeof ms.inherits!="function")throw"";bs.exports=ms.inherits}catch{bs.exports=ju()}var ms});var $u=g(($b,Hu)=>{Hu.exports=B("util").deprecate});var xs=g((Ub,Ku)=>{"use strict";Ku.exports=Y;function Gu(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Cg(t,e)}}var At;Y.WritableState=Gt;var rg={deprecate:$u()},Wu=hs(),Qr=B("buffer").Buffer,ng=global.Uint8Array||function(){};function ig(e){return Qr.from(e)}function sg(e){return Qr.isBuffer(e)||e instanceof ng}var Es=_s(),og=gs(),ag=og.getHighWaterMark,$e=He().codes,lg=$e.ERR_INVALID_ARG_TYPE,ug=$e.ERR_METHOD_NOT_IMPLEMENTED,fg=$e.ERR_MULTIPLE_CALLBACK,cg=$e.ERR_STREAM_CANNOT_PIPE,hg=$e.ERR_STREAM_DESTROYED,dg=$e.ERR_STREAM_NULL_VALUES,pg=$e.ERR_STREAM_WRITE_AFTER_END,_g=$e.ERR_UNKNOWN_ENCODING,Tt=Es.errorOrDestroy;tt()(Y,Wu);function gg(){}function Gt(e,t,r){At=At||rt(),e=e||{},typeof r!="boolean"&&(r=t instanceof At),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=ag(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){Sg(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 Gu(this)}Gt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Gt.prototype,"buffer",{get:rg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Kr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Kr=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function(t){return Kr.call(this,t)?!0:this!==Y?!1:t&&t._writableState instanceof Gt}})):Kr=function(t){return t instanceof this};function Y(e){At=At||rt();var t=this instanceof At;if(!t&&!Kr.call(Y,this))return new Y(e);this._writableState=new Gt(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(){Tt(this,new cg)};function yg(e,t){var r=new pg;Tt(e,r),process.nextTick(t,r)}function mg(e,t,r,n){var i;return r===null?i=new dg:typeof r!="string"&&!t.objectMode&&(i=new lg("chunk",["string","Buffer"],r)),i?(Tt(e,i),process.nextTick(n,i),!1):!0}Y.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&sg(e);return s&&!Qr.isBuffer(e)&&(e=ig(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=gg),n.ending?yg(this,r):(s||mg(this,n,e,r))&&(n.pendingcb++,i=vg(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 _g(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function bg(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Qr.from(t,r)),t}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function vg(e,t,r,n,i,s){if(!r){var o=bg(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 vs(e,t,!1,a,n,i,s);return l}function vs(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new hg("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Eg(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Ut,e,t),e._writableState.errorEmitted=!0,Tt(e,n)):(i(n),e._writableState.errorEmitted=!0,Tt(e,n),Ut(e,t))}function xg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Sg(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new fg;if(xg(r),t)Eg(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(Uu,e,r,s,i):Uu(e,r,s,i)}}function Uu(e,t,r,n){r||Rg(e,t),t.pendingcb--,n(),Ut(e,t)}function Rg(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,vs(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 Gu(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(vs(e,t,!1,d,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 ug("_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||Tg(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 wg(e,t){e._final(function(r){t.pendingcb--,r&&Tt(e,r),t.prefinished=!0,e.emit("prefinish"),Ut(e,t)})}function Ag(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(wg,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ut(e,t){var r=Yu(t);if(r&&(Ag(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 Tg(e,t,r){t.ending=!0,Ut(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Cg(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=Es.destroy;Y.prototype._undestroy=Es.undestroy;Y.prototype._destroy=function(e,t){t(e)}});var rt=g((Gb,Xu)=>{"use strict";var Og=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Xu.exports=Ce;var Qu=ws(),Rs=xs();tt()(Ce,Qu);for(Ss=Og(Rs.prototype),Xr=0;Xr<Ss.length;Xr++)Jr=Ss[Xr],Ce.prototype[Jr]||(Ce.prototype[Jr]=Rs.prototype[Jr]);var Ss,Jr,Xr;function Ce(e){if(!(this instanceof Ce))return new Ce(e);Qu.call(this,e),Rs.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",Pg)))}Object.defineProperty(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Pg(){this._writableState.ended||process.nextTick(Lg,this)}function Lg(e){e.end()}Object.defineProperty(Ce.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((As,Zu)=>{var Zr=B("buffer"),Oe=Zr.Buffer;function Ju(e,t){for(var r in e)t[r]=e[r]}Oe.from&&Oe.alloc&&Oe.allocUnsafe&&Oe.allocUnsafeSlow?Zu.exports=Zr:(Ju(Zr,As),As.Buffer=nt);function nt(e,t,r){return Oe(e,t,r)}nt.prototype=Object.create(Oe.prototype);Ju(Oe,nt);nt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Oe(e,t,r)};nt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Oe(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};nt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Oe(e)};nt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Zr.SlowBuffer(e)}});var Os=g(tf=>{"use strict";var Cs=zu().Buffer,ef=Cs.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 Mg(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=Mg(e);if(typeof t!="string"&&(Cs.isEncoding===ef||!ef(e)))throw new Error("Unknown encoding: "+e);return t||e}tf.StringDecoder=Wt;function Wt(e){this.encoding=Bg(e);var t;switch(this.encoding){case"utf16le":this.text=qg,this.end=jg,t=4;break;case"utf8":this.fillLast=Ig,t=4;break;case"base64":this.text=Hg,this.end=$g,t=3;break;default:this.write=Ug,this.end=Gg;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Cs.allocUnsafe(t)}Wt.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||""};Wt.prototype.end=Fg;Wt.prototype.text=kg;Wt.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 Dg(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 Ig(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 kg(e,t){var r=Dg(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 Fg(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function qg(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 jg(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 $g(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 Gg(e){return e&&e.length?this.write(e):""}});var zr=g((Vb,sf)=>{"use strict";var rf=He().codes.ERR_STREAM_PREMATURE_CLOSE;function Wg(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 Vg(){}function Yg(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=Wg(r||Vg);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(m){r.call(e,m)},d=function(){var m;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(m=new rf),r.call(e,m);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(m=new rf),r.call(e,m)},c=function(){e.req.on("finish",a)};return Yg(e)?(e.on("complete",a),e.on("abort",d),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",d),function(){e.removeListener("complete",a),e.removeListener("abort",d),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",d)}}sf.exports=nf});var af=g((Yb,of)=>{"use strict";var en;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 Kg=zr(),Ge=Symbol("lastResolve"),it=Symbol("lastReject"),Vt=Symbol("error"),tn=Symbol("ended"),st=Symbol("lastPromise"),Ps=Symbol("handlePromise"),ot=Symbol("stream");function We(e,t){return{value:e,done:t}}function Qg(e){var t=e[Ge];if(t!==null){var r=e[ot].read();r!==null&&(e[st]=null,e[Ge]=null,e[it]=null,t(We(r,!1)))}}function Xg(e){process.nextTick(Qg,e)}function Jg(e,t){return function(r,n){e.then(function(){if(t[tn]){r(We(void 0,!0));return}t[Ps](r,n)},n)}}var Zg=Object.getPrototypeOf(function(){}),zg=Object.setPrototypeOf((en={get stream(){return this[ot]},next:function(){var t=this,r=this[Vt];if(r!==null)return Promise.reject(r);if(this[tn])return Promise.resolve(We(void 0,!0));if(this[ot].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Vt]?a(t[Vt]):o(We(void 0,!0))})});var n=this[st],i;if(n)i=new Promise(Jg(n,this));else{var s=this[ot].read();if(s!==null)return Promise.resolve(We(s,!1));i=new Promise(this[Ps])}return this[st]=i,i}},Ue(en,Symbol.asyncIterator,function(){return this}),Ue(en,"return",function(){var t=this;return new Promise(function(r,n){t[ot].destroy(null,function(i){if(i){n(i);return}r(We(void 0,!0))})})}),en),Zg),e0=function(t){var r,n=Object.create(zg,(r={},Ue(r,ot,{value:t,writable:!0}),Ue(r,Ge,{value:null,writable:!0}),Ue(r,it,{value:null,writable:!0}),Ue(r,Vt,{value:null,writable:!0}),Ue(r,tn,{value:t._readableState.endEmitted,writable:!0}),Ue(r,Ps,{value:function(s,o){var a=n[ot].read();a?(n[st]=null,n[Ge]=null,n[it]=null,s(We(a,!1))):(n[Ge]=s,n[it]=o)},writable:!0}),r));return n[st]=null,Kg(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[it];s!==null&&(n[st]=null,n[Ge]=null,n[it]=null,s(i)),n[Vt]=i;return}var o=n[Ge];o!==null&&(n[st]=null,n[Ge]=null,n[it]=null,o(We(void 0,!0))),n[tn]=!0}),t.on("readable",Xg.bind(null,n)),n};of.exports=e0});var cf=g((Kb,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 t0(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 r0(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){n0(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 n0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i0=He().codes.ERR_INVALID_ARG_TYPE;function s0(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 i0("iterable",["Iterable"],t);var i=new e(r0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=t0(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(d){i.destroy(d)}}),a.apply(this,arguments)}return i}ff.exports=s0});var ws=g((Xb,Ef)=>{"use strict";Ef.exports=N;var Ct;N.ReadableState=_f;var Qb=B("events").EventEmitter,pf=function(t,r){return t.listeners(r).length},Kt=hs(),rn=B("buffer").Buffer,o0=global.Uint8Array||function(){};function a0(e){return rn.from(e)}function l0(e){return rn.isBuffer(e)||e instanceof o0}var Ls=B("util"),P;Ls&&Ls.debuglog?P=Ls.debuglog("stream"):P=function(){};var u0=Bu(),Fs=_s(),f0=gs(),c0=f0.getHighWaterMark,nn=He().codes,h0=nn.ERR_INVALID_ARG_TYPE,d0=nn.ERR_STREAM_PUSH_AFTER_EOF,p0=nn.ERR_METHOD_NOT_IMPLEMENTED,_0=nn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ot,Ms,Bs;tt()(N,Kt);var Yt=Fs.errorOrDestroy,Ds=["error","close","destroy","pause","resume"];function g0(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){Ct=Ct||rt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ct),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=c0(this,e,"readableHighWaterMark",r),this.buffer=new u0,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&&(Ot||(Ot=Os().StringDecoder),this.decoder=new Ot(e.encoding),this.encoding=e.encoding)}function N(e){if(Ct=Ct||rt(),!(this instanceof N))return new N(e);var t=this instanceof Ct;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)),Kt.call(this)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});N.prototype.destroy=Fs.destroy;N.prototype._undestroy=Fs.undestroy;N.prototype._destroy=function(e,t){t(e)};N.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=rn.from(e,t),t=""),n=!0),gf(this,e,t,!1,n)};N.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,b0(e,s);else{var o;if(i||(o=y0(s,t)),o)Yt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==rn.prototype&&(t=a0(t)),n)s.endEmitted?Yt(e,new _0):Ns(e,s,t,!0);else if(s.ended)Yt(e,new d0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Ns(e,s,t,!1):ks(e,s)):Ns(e,s,t,!1)}else n||(s.reading=!1,ks(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Ns(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&&sn(e)),ks(e,t)}function y0(e,t){var r;return!l0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new h0("chunk",["string","Buffer","Uint8Array"],t)),r}N.prototype.isPaused=function(){return this._readableState.flowing===!1};N.prototype.setEncoding=function(e){Ot||(Ot=Os().StringDecoder);var t=new Ot(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 m0(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=m0(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}N.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?Is(this):sn(this),null;if(e=df(e,t),e===0&&t.ended)return t.length===0&&Is(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&&Is(this)),i!==null&&this.emit("data",i),i};function b0(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?sn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,yf(e)))}}function sn(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(yf,e))}function yf(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,qs(e)}function ks(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(v0,e,t))}function v0(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}N.prototype._read=function(e){Yt(this,new p0("_read()"))};N.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:y;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(R,x){P("onunpipe"),R===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,u())}function a(){P("onend"),e.end()}var l=E0(r);e.on("drain",l);var f=!1;function u(){P("cleanup"),e.removeListener("close",S),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",d),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",d);function d(R){P("ondata");var x=e.write(R);P("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&vf(n.pipes,e)!==-1)&&!f&&(P("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(R){P("onerror",R),y(),e.removeListener("error",c),pf(e,"error")===0&&Yt(e,R)}g0(e,"error",c);function S(){e.removeListener("finish",m),y()}e.once("close",S);function m(){P("onfinish"),e.removeListener("close",S),y()}e.once("finish",m);function y(){P("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(P("pipe resume"),r.resume()),e};function E0(e){return function(){var r=e._readableState;P("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&pf(e,"data")&&(r.flowing=!0,qs(e))}}N.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=vf(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)};N.prototype.on=function(e,t){var r=Kt.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?sn(this):n.reading||process.nextTick(x0,this)),r};N.prototype.addListener=N.prototype.on;N.prototype.removeListener=function(e,t){var r=Kt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(mf,this),r};N.prototype.removeAllListeners=function(e){var t=Kt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(mf,this),t};function mf(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 x0(e){P("readable nexttick read 0"),e.read(0)}N.prototype.resume=function(){var e=this._readableState;return e.flowing||(P("resume"),e.flowing=!e.readableListening,S0(this,e)),e.paused=!1,this};function S0(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(R0,e,t))}function R0(e,t){P("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),qs(e),t.flowing&&!t.reading&&e.read(0)}N.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 qs(e){var t=e._readableState;for(P("flow",t.flowing);t.flowing&&e.read()!==null;);}N.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<Ds.length;s++)e.on(Ds[s],this.emit.bind(this,Ds[s]));return this._read=function(o){P("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return Ms===void 0&&(Ms=af()),Ms(this)});Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});N._fromList=bf;Object.defineProperty(N.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 Is(e){var t=e._readableState;P("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(w0,t,e))}function w0(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"&&(N.from=function(e,t){return Bs===void 0&&(Bs=cf()),Bs(N,e,t)});function vf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var js=g((Jb,Sf)=>{"use strict";Sf.exports=De;var on=He().codes,A0=on.ERR_METHOD_NOT_IMPLEMENTED,T0=on.ERR_MULTIPLE_CALLBACK,C0=on.ERR_TRANSFORM_ALREADY_TRANSFORMING,O0=on.ERR_TRANSFORM_WITH_LENGTH_0,an=rt();tt()(De,an);function P0(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new T0);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);an.call(this,e),this._transformState={afterTransform:P0.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",L0)}function L0(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){xf(e,t,r)}):xf(this,null,null)}De.prototype.push=function(e,t){return this._transformState.needTransform=!1,an.prototype.push.call(this,e,t)};De.prototype._transform=function(e,t,r){r(new A0("_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){an.prototype._destroy.call(this,e,function(r){t(r)})};function xf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new O0;if(e._transformState.transforming)throw new C0;return e.push(null)}});var Af=g((Zb,wf)=>{"use strict";wf.exports=Qt;var Rf=js();tt()(Qt,Rf);function Qt(e){if(!(this instanceof Qt))return new Qt(e);Rf.call(this,e)}Qt.prototype._transform=function(e,t,r){r(null,e)}});var Lf=g((zb,Pf)=>{"use strict";var Hs;function M0(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Of=He().codes,B0=Of.ERR_MISSING_ARGS,D0=Of.ERR_STREAM_DESTROYED;function Tf(e){if(e)throw e}function N0(e){return e.setHeader&&typeof e.abort=="function"}function I0(e,t,r,n){n=M0(n);var i=!1;e.on("close",function(){i=!0}),Hs===void 0&&(Hs=zr()),Hs(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 D0("pipe"))}}}function Cf(e){e()}function k0(e,t){return e.pipe(t)}function F0(e){return!e.length||typeof e[e.length-1]!="function"?Tf:e.pop()}function q0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=F0(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 I0(o,l,f,function(u){i||(i=u),u&&s.forEach(Cf),!l&&(s.forEach(Cf),n(i))})});return t.reduce(k0)}Pf.exports=q0});var Mf=g((_e,Jt)=>{var Xt=B("stream");process.env.READABLE_STREAM==="disable"&&Xt?(Jt.exports=Xt.Readable,Object.assign(Jt.exports,Xt),Jt.exports.Stream=Xt):(_e=Jt.exports=ws(),_e.Stream=Xt||_e,_e.Readable=_e,_e.Writable=xs(),_e.Duplex=rt(),_e.Transform=js(),_e.PassThrough=Af(),_e.finished=zr(),_e.pipeline=Lf())});var Nf=g((ev,Df)=>{"use strict";var{Buffer:be}=B("buffer"),Bf=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,Bf,{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||be.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]:be.concat(this._bufs,this.length);for(let d=0;d<this._bufs.length;d++)this._bufs[d].copy(t,f),f+=this._bufs[d].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=be.allocUnsafe(a));for(let d=o[0];d<this._bufs.length;d++){let c=this._bufs[d].length-u;if(l>c)this._bufs[d].copy(t,f,u),f+=c;else{this._bufs[d].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(be.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(be.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=be.from([e]):typeof e=="string"?e=be.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=be.from(e.buffer,e.byteOffset,e.byteLength):be.isBuffer(e)||(e=be.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[Bf]};Df.exports=H});var If=g((tv,ln)=>{"use strict";var $s=Mf().Duplex,j0=tt(),Zt=Nf();function ne(e){if(!(this instanceof ne))return new ne(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}Zt._init.call(this,e),$s.call(this)}j0(ne,$s);Object.assign(ne.prototype,Zt.prototype);ne.prototype._new=function(t){return new ne(t)};ne.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};ne.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)};ne.prototype.end=function(t){$s.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ne.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};ne.prototype._isBufferList=function(t){return t instanceof ne||t instanceof Zt||ne.isBufferList(t)};ne.isBufferList=Zt.isBufferList;ln.exports=ne;ln.exports.BufferListStream=ne;ln.exports.BufferList=Zt});import{constants as _y,existsSync as rr}from"fs";import{copyFile as gy,mkdir as tc,readFile as rc,rm as Qf,writeFile as yy}from"fs/promises";import{dirname as nc,extname as my,isAbsolute as by,resolve as vy,resolve as Mt}from"path";import{build as Js,transform as Ey}from"esbuild";var to=(e=0)=>t=>`\x1B[${t+e}m`,ro=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,no=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,U={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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},io=Object.keys(U.modifier),yn=Object.keys(U.color),mn=Object.keys(U.bgColor),so=[...yn,...mn];function dc(){let e=new Map;for(let[t,r]of Object.entries(U)){for(let[n,i]of Object.entries(r))U[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=U[n],e.set(i[0],i[1]);Object.defineProperty(U,t,{value:r,enumerable:!1})}return Object.defineProperty(U,"codes",{value:e,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=to(),U.color.ansi256=ro(),U.color.ansi16m=no(),U.bgColor.ansi=to(10),U.bgColor.ansi256=ro(10),U.bgColor.ansi16m=no(10),Object.defineProperties(U,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>U.rgbToAnsi256(...U.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>U.ansi256ToAnsi(U.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>U.ansi256ToAnsi(U.hexToAnsi256(t)),enumerable:!1}}),U}var pc=dc(),ye=pc;import bn from"node:process";import _c from"node:os";import oo from"node:tty";function ce(e,t=bn.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}=bn,ar;ce("no-color")||ce("no-colors")||ce("color=false")||ce("color=never")?ar=0:(ce("color")||ce("colors")||ce("color=true")||ce("color=always"))&&(ar=1);function gc(){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 yc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function mc(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=gc();n!==void 0&&(ar=n);let i=r?ar:n;if(i===0)return 0;if(r){if(ce("color=16m")||ce("color=full")||ce("color=truecolor"))return 3;if(ce("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(bn.platform==="win32"){let o=_c.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 ao(e,t={}){let r=mc(e,{streamIsTTY:e&&e.isTTY,...t});return yc(r)}var bc={stdout:ao({isTTY:oo.isatty(1)}),stderr:ao({isTTY:oo.isatty(2)})},lo=bc;function uo(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function fo(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
4
+ var lc=Object.create;var eo=Object.defineProperty;var uc=Object.getOwnPropertyDescriptor;var fc=Object.getOwnPropertyNames;var cc=Object.getPrototypeOf,hc=Object.prototype.hasOwnProperty;var B=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")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 dc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fc(t))!hc.call(e,i)&&i!==r&&eo(e,i,{get:()=>t[i],enumerable:!(n=uc(t,i))||n.enumerable});return e};var ut=(e,t,r)=>(r=e!=null?lc(cc(e)):{},dc(t||!e||!e.__esModule?eo(r,"default",{value:e,enumerable:!0}):r,e));var _o=g(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.splitWhen=ht.flatten=void 0;function Tc(e){return e.reduce((t,r)=>[].concat(t,r),[])}ht.flatten=Tc;function Cc(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}ht.splitWhen=Cc});var go=g(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.isEnoentCodeError=void 0;function Oc(e){return e.code==="ENOENT"}ur.isEnoentCodeError=Oc});var yo=g(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.createDirentFromStats=void 0;var Sn=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 Pc(e,t){return new Sn(e,t)}fr.createDirentFromStats=Pc});var mo=g(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.removeLeadingDotSegment=Se.escape=Se.makeAbsolute=Se.unixify=void 0;var Lc=B("path"),Mc=2,Bc=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Dc(e){return e.replace(/\\/g,"/")}Se.unixify=Dc;function Nc(e,t){return Lc.resolve(e,t)}Se.makeAbsolute=Nc;function Ic(e){return e.replace(Bc,"\\$2")}Se.escape=Ic;function kc(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Mc)}return e}Se.removeLeadingDotSegment=kc});var vo=g((Qy,bo)=>{bo.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 So=g((Xy,xo)=>{var Fc=vo(),Eo={"{":"}","(":")","[":"]"},qc=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=Eo[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},jc=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=Eo[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};xo.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Fc(t))return!0;var n=qc;return r&&r.strict===!1&&(n=jc),n(t)}});var wo=g((Jy,Ro)=>{"use strict";var Hc=So(),$c=B("path").posix.dirname,Uc=B("os").platform()==="win32",Rn="/",Gc=/\\/g,Wc=/[\{\[].*[\}\]]$/,Vc=/(^|[^\\])([\{\[]|\([^\)]+$)/,Yc=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Ro.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Uc&&t.indexOf(Rn)<0&&(t=t.replace(Gc,Rn)),Wc.test(t)&&(t+=Rn),t+="a";do t=$c(t);while(Hc(t)||Vc.test(t));return t.replace(Yc,"$1")}});var cr=g(he=>{"use strict";he.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;he.find=(e,t)=>e.nodes.find(r=>r.type===t);he.exceedsLimit=(e,t,r=1,n)=>n===!1||!he.isInteger(e)||!he.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;he.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)};he.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;he.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;he.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;he.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);he.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 hr=g((zy,To)=>{"use strict";var Ao=cr();To.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Ao.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&Ao.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((em,Co)=>{"use strict";Co.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Fo=g((tm,ko)=>{"use strict";var Po=Oo(),Ke=(e,t,r)=>{if(Po(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Po(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(Ke.cache.hasOwnProperty(l))return Ke.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let d=Io(e)||Io(t),c={min:e,max:t,a:f,b:u},S=[],m=[];if(d&&(c.isPadded=d,c.maxLen=String(c.max).length),f<0){let y=u<0?Math.abs(u):1;m=Lo(y,Math.abs(f),c,n),f=c.a=0}return u>=0&&(S=Lo(f,u,c,n)),c.negatives=m,c.positives=S,c.result=Kc(m,S,n),n.capture===!0?c.result=`(${c.result})`:n.wrap!==!1&&S.length+m.length>1&&(c.result=`(?:${c.result})`),Ke.cache[l]=c,c.result};function Kc(e,t,r){let n=wn(e,t,"-",!1,r)||[],i=wn(t,e,"",!1,r)||[],s=wn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Qc(e,t){let r=1,n=1,i=Bo(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Bo(e,r);for(i=Do(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Do(t+1,n)-1;return s=[...s],s.sort(Zc),s}function Xc(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Jc(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+=zc(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=Qc(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let f=i[l],u=Xc(String(o),String(f),n),d="";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+No(a.count),o=f+1;continue}r.isPadded&&(d=eh(f,r,n)),u.string=d+u.pattern+No(u.count),s.push(u),o=f+1,a=u}return s}function wn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Mo(t,"string",a)&&s.push(r+a),n&&Mo(t,"string",a)&&s.push(r+a)}return s}function Jc(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Zc(e,t){return e>t?1:t>e?-1:0}function Mo(e,t,r){return e.some(n=>n[t]===r)}function Bo(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Do(e,t){return e-e%Math.pow(10,t)}function No(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function zc(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Io(e){return/^-?(0+)\d/.test(e)}function eh(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}}`}}Ke.cache={};Ke.clearCache=()=>Ke.cache={};ko.exports=Ke});var Cn=g((rm,Vo)=>{"use strict";var th=B("util"),Ho=Fo(),qo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),rh=e=>t=>e===!0?Number(t):String(t),An=e=>typeof e=="number"||typeof e=="string"&&e!=="",Nt=e=>Number.isInteger(+e),Tn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},nh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ih=(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},jo=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},sh=(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},$o=(e,t,r,n)=>{if(r)return Ho(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Uo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Ho(e,t,r)},Go=(...e)=>new RangeError("Invalid range arguments: "+th.inspect(...e)),Wo=(e,t,r)=>{if(r.strictRanges===!0)throw Go([e,t]);return[]},oh=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},ah=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Go([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=Tn(a)||Tn(l)||Tn(f),d=u?Math.max(a.length,l.length,f.length):0,c=u===!1&&nh(e,t,n)===!1,S=n.transform||rh(c);if(n.toRegex&&r===1)return $o(jo(e,d),jo(t,d),!0,n);let m={negatives:[],positives:[]},y=D=>m[D<0?"negatives":"positives"].push(Math.abs(D)),R=[],x=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):R.push(ih(S(i,x),d,c)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?sh(m,n):Uo(R,null,{wrap:!1,...n}):R},lh=(e,t,r=1,n={})=>{if(!Nt(e)&&e.length>1||!Nt(t)&&t.length>1)return Wo(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 $o(l,f,!1,n);let u=[],d=0;for(;a?s>=o:s<=o;)u.push(i(s,d)),s=a?s-r:s+r,d++;return n.toRegex===!0?Uo(u,null,{wrap:!1,options:n}):u},dr=(e,t,r,n={})=>{if(t==null&&An(e))return[e];if(!An(e)||!An(t))return Wo(e,t,n);if(typeof r=="function")return dr(e,t,1,{transform:r});if(qo(r))return dr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Nt(r)?Nt(e)&&Nt(t)?ah(e,t,r,i):lh(e,t,Math.max(Math.abs(r),1),i):r!=null&&!qo(r)?oh(r,i):dr(e,t,1,r)};Vo.exports=dr});var Qo=g((nm,Ko)=>{"use strict";var uh=Cn(),Yo=cr(),fh=(e,t={})=>{let r=(n,i={})=>{let s=Yo.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=Yo.reduce(n.nodes),d=uh(...u,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return u.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};Ko.exports=fh});var Zo=g((im,Jo)=>{"use strict";var ch=Cn(),Xo=hr(),dt=cr(),Qe=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?dt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Qe(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Qe(i,s,r):i+s);return dt.flatten(n)},hh=(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(Qe(a.pop(),Xo(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Qe(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=dt.reduce(i.nodes);if(dt.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=ch(...d,t);c.length===0&&(c=Xo(i,t)),a.push(Qe(a.pop(),c)),i.nodes=[];return}let l=dt.encloseBrace(i),f=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let d=0;d<i.nodes.length;d++){let c=i.nodes[d];if(c.type==="comma"&&i.type==="brace"){d===1&&f.push(""),f.push("");continue}if(c.type==="close"){a.push(Qe(a.pop(),f,l));continue}if(c.value&&c.type!=="open"){f.push(Qe(f.pop(),c.value));continue}c.nodes&&n(c,i)}return f};return dt.flatten(n(e))};Jo.exports=hh});var ea=g((sm,zo)=>{"use strict";zo.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 sa=g((om,ia)=>{"use strict";var dh=hr(),{MAX_LENGTH:ta,CHAR_BACKSLASH:On,CHAR_BACKTICK:ph,CHAR_COMMA:_h,CHAR_DOT:gh,CHAR_LEFT_PARENTHESES:yh,CHAR_RIGHT_PARENTHESES:mh,CHAR_LEFT_CURLY_BRACE:bh,CHAR_RIGHT_CURLY_BRACE:vh,CHAR_LEFT_SQUARE_BRACKET:ra,CHAR_RIGHT_SQUARE_BRACKET:na,CHAR_DOUBLE_QUOTE:Eh,CHAR_SINGLE_QUOTE:xh,CHAR_NO_BREAK_SPACE:Sh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Rh}=ea(),wh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ta,r.maxLength):ta;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,d=0,c,S={},m=()=>e[u++],y=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(y({type:"bos"});u<f;)if(o=s[s.length-1],c=m(),!(c===Rh||c===Sh)){if(c===On){y({type:"text",value:(t.keepEscaping?c:"")+m()});continue}if(c===na){y({type:"text",value:"\\"+c});continue}if(c===ra){l++;let R=!0,x;for(;u<f&&(x=m());){if(c+=x,x===ra){l++;continue}if(x===On){c+=m();continue}if(x===na&&(l--,l===0))break}y({type:"text",value:c});continue}if(c===yh){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:c});continue}if(c===mh){if(o.type!=="paren"){y({type:"text",value:c});continue}o=s.pop(),y({type:"text",value:c}),o=s[s.length-1];continue}if(c===Eh||c===xh||c===ph){let R=c,x;for(t.keepQuotes!==!0&&(c="");u<f&&(x=m());){if(x===On){c+=x+m();continue}if(x===R){t.keepQuotes===!0&&(c+=x);break}c+=x}y({type:"text",value:c});continue}if(c===bh){d++;let x={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=y(x),s.push(o),y({type:"open",value:c});continue}if(c===vh){if(o.type!=="brace"){y({type:"text",value:c});continue}let R="close";o=s.pop(),o.close=!0,y({type:R,value:c}),d--,o=s[s.length-1];continue}if(c===_h&&d>0){if(o.ranges>0){o.ranges=0;let R=o.nodes.shift();o.nodes=[R,{type:"text",value:dh(o)}]}y({type:"comma",value:c}),o.commas++;continue}if(c===gh&&d>0&&o.commas===0){let R=o.nodes;if(d===0||R.length===0){y({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 x=R[R.length-1];x.value+=a.value+c,a=x,o.ranges--;continue}y({type:"dot",value:c});continue}y({type:"text",value:c})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let R=s[s.length-1],x=R.nodes.indexOf(o);R.nodes.splice(x,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),i};ia.exports=wh});var la=g((am,aa)=>{"use strict";var oa=hr(),Ah=Qo(),Th=Zo(),Ch=sa(),ue=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ue.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ue.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ue.parse=(e,t={})=>Ch(e,t);ue.stringify=(e,t={})=>oa(typeof e=="string"?ue.parse(e,t):e,t);ue.compile=(e,t={})=>(typeof e=="string"&&(e=ue.parse(e,t)),Ah(e,t));ue.expand=(e,t={})=>{typeof e=="string"&&(e=ue.parse(e,t));let r=Th(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ue.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ue.compile(e,t):ue.expand(e,t);aa.exports=ue});var It=g((lm,da)=>{"use strict";var Oh=B("path"),Re="\\\\/",ua=`[^${Re}]`,Le="\\.",Ph="\\+",Lh="\\?",pr="\\/",Mh="(?=.)",fa="[^/]",Pn=`(?:${pr}|$)`,ca=`(?:^|${pr})`,Ln=`${Le}{1,2}${Pn}`,Bh=`(?!${Le})`,Dh=`(?!${ca}${Ln})`,Nh=`(?!${Le}{0,1}${Pn})`,Ih=`(?!${Ln})`,kh=`[^.${pr}]`,Fh=`${fa}*?`,ha={DOT_LITERAL:Le,PLUS_LITERAL:Ph,QMARK_LITERAL:Lh,SLASH_LITERAL:pr,ONE_CHAR:Mh,QMARK:fa,END_ANCHOR:Pn,DOTS_SLASH:Ln,NO_DOT:Bh,NO_DOTS:Dh,NO_DOT_SLASH:Nh,NO_DOTS_SLASH:Ih,QMARK_NO_DOT:kh,STAR:Fh,START_ANCHOR:ca},qh={...ha,SLASH_LITERAL:`[${Re}]`,QMARK:ua,STAR:`${ua}*?`,DOTS_SLASH:`${Le}{1,2}(?:[${Re}]|$)`,NO_DOT:`(?!${Le})`,NO_DOTS:`(?!(?:^|[${Re}])${Le}{1,2}(?:[${Re}]|$))`,NO_DOT_SLASH:`(?!${Le}{0,1}(?:[${Re}]|$))`,NO_DOTS_SLASH:`(?!${Le}{1,2}(?:[${Re}]|$))`,QMARK_NO_DOT:`[^.${Re}]`,START_ANCHOR:`(?:^|[${Re}])`,END_ANCHOR:`(?:[${Re}]|$)`},jh={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"};da.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:jh,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:Oh.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?qh:ha}}});var kt=g(oe=>{"use strict";var Hh=B("path"),$h=process.platform==="win32",{REGEX_BACKSLASH:Uh,REGEX_REMOVE_BACKSLASH:Gh,REGEX_SPECIAL_CHARS:Wh,REGEX_SPECIAL_CHARS_GLOBAL:Vh}=It();oe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);oe.hasRegexChars=e=>Wh.test(e);oe.isRegexChar=e=>e.length===1&&oe.hasRegexChars(e);oe.escapeRegex=e=>e.replace(Vh,"\\$1");oe.toPosixSlashes=e=>e.replace(Uh,"/");oe.removeBackslashes=e=>e.replace(Gh,t=>t==="\\"?"":t);oe.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};oe.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:$h===!0||Hh.sep==="\\";oe.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?oe.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};oe.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};oe.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Ea=g((fm,va)=>{"use strict";var pa=kt(),{CHAR_ASTERISK:Mn,CHAR_AT:Yh,CHAR_BACKWARD_SLASH:Ft,CHAR_COMMA:Kh,CHAR_DOT:Bn,CHAR_EXCLAMATION_MARK:Dn,CHAR_FORWARD_SLASH:ba,CHAR_LEFT_CURLY_BRACE:Nn,CHAR_LEFT_PARENTHESES:In,CHAR_LEFT_SQUARE_BRACKET:Qh,CHAR_PLUS:Xh,CHAR_QUESTION_MARK:_a,CHAR_RIGHT_CURLY_BRACE:Jh,CHAR_RIGHT_PARENTHESES:ga,CHAR_RIGHT_SQUARE_BRACKET:Zh}=It(),ya=e=>e===ba||e===Ft,ma=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},zh=(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,d=0,c=!1,S=!1,m=!1,y=!1,R=!1,x=!1,D=!1,q=!1,Q=!1,w=!1,F=0,C,A,I={value:"",depth:0,isGlob:!1},Z=()=>f>=n,_=()=>l.charCodeAt(f+1),E=()=>(C=A,l.charCodeAt(++f));for(;f<n;){A=E();let ie;if(A===Ft){D=I.backslashes=!0,A=E(),A===Nn&&(x=!0);continue}if(x===!0||A===Nn){for(F++;Z()!==!0&&(A=E());){if(A===Ft){D=I.backslashes=!0,E();continue}if(A===Nn){F++;continue}if(x!==!0&&A===Bn&&(A=E())===Bn){if(c=I.isBrace=!0,m=I.isGlob=!0,w=!0,i===!0)continue;break}if(x!==!0&&A===Kh){if(c=I.isBrace=!0,m=I.isGlob=!0,w=!0,i===!0)continue;break}if(A===Jh&&(F--,F===0)){x=!1,c=I.isBrace=!0,w=!0;break}}if(i===!0)continue;break}if(A===ba){if(s.push(f),o.push(I),I={value:"",depth:0,isGlob:!1},w===!0)continue;if(C===Bn&&f===u+1){u+=2;continue}d=f+1;continue}if(r.noext!==!0&&(A===Xh||A===Yh||A===Mn||A===_a||A===Dn)===!0&&_()===In){if(m=I.isGlob=!0,y=I.isExtglob=!0,w=!0,A===Dn&&f===u&&(Q=!0),i===!0){for(;Z()!==!0&&(A=E());){if(A===Ft){D=I.backslashes=!0,A=E();continue}if(A===ga){m=I.isGlob=!0,w=!0;break}}continue}break}if(A===Mn){if(C===Mn&&(R=I.isGlobstar=!0),m=I.isGlob=!0,w=!0,i===!0)continue;break}if(A===_a){if(m=I.isGlob=!0,w=!0,i===!0)continue;break}if(A===Qh){for(;Z()!==!0&&(ie=E());){if(ie===Ft){D=I.backslashes=!0,E();continue}if(ie===Zh){S=I.isBracket=!0,m=I.isGlob=!0,w=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&A===Dn&&f===u){q=I.negated=!0,u++;continue}if(r.noparen!==!0&&A===In){if(m=I.isGlob=!0,i===!0){for(;Z()!==!0&&(A=E());){if(A===In){D=I.backslashes=!0,A=E();continue}if(A===ga){w=!0;break}}continue}break}if(m===!0){if(w=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let L=l,ae="",h="";u>0&&(ae=l.slice(0,u),l=l.slice(u),d-=u),L&&m===!0&&d>0?(L=l.slice(0,d),h=l.slice(d)):m===!0?(L="",h=l):L=l,L&&L!==""&&L!=="/"&&L!==l&&ya(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),r.unescape===!0&&(h&&(h=pa.removeBackslashes(h)),L&&D===!0&&(L=pa.removeBackslashes(L)));let p={prefix:ae,input:e,start:u,base:L,glob:h,isBrace:c,isBracket:S,isGlob:m,isExtglob:y,isGlobstar:R,negated:q,negatedExtglob:Q};if(r.tokens===!0&&(p.maxDepth=0,ya(A)||o.push(I),p.tokens=o),r.parts===!0||r.tokens===!0){let ie;for(let k=0;k<s.length;k++){let Ee=ie?ie+1:u,xe=s[k],le=e.slice(Ee,xe);r.tokens&&(k===0&&u!==0?(o[k].isPrefix=!0,o[k].value=ae):o[k].value=le,ma(o[k]),p.maxDepth+=o[k].depth),(k!==0||le!=="")&&a.push(le),ie=xe}if(ie&&ie+1<e.length){let k=e.slice(ie+1);a.push(k),r.tokens&&(o[o.length-1].value=k,ma(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};va.exports=zh});var Ra=g((cm,Sa)=>{"use strict";var _r=It(),fe=kt(),{MAX_LENGTH:gr,POSIX_REGEX_SOURCE:ed,REGEX_NON_SPECIAL_CHARS:td,REGEX_SPECIAL_CHARS_BACKREF:rd,REPLACEMENTS:xa}=_r,nd=(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=>fe.escapeRegex(i)).join("..")}return r},pt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,kn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=xa[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(gr,r.maxLength):gr,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=fe.isWindows(t),f=_r.globChars(l),u=_r.extglobChars(f),{DOT_LITERAL:d,PLUS_LITERAL:c,SLASH_LITERAL:S,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:R,NO_DOT_SLASH:x,NO_DOTS_SLASH:D,QMARK:q,QMARK_NO_DOT:Q,STAR:w,START_ANCHOR:F}=f,C=v=>`(${a}(?:(?!${F}${v.dot?y:d}).)*?)`,A=r.dot?"":R,I=r.dot?q:Q,Z=r.bash===!0?C(r):w;r.capture&&(Z=`(${Z})`),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=fe.removePrefix(e,_),i=e.length;let E=[],L=[],ae=[],h=s,p,ie=()=>_.index===i-1,k=_.peek=(v=1)=>e[_.index+v],Ee=_.advance=()=>e[++_.index]||"",xe=()=>e.slice(_.index+1),le=(v="",$=0)=>{_.consumed+=v,_.index+=$},nr=v=>{_.output+=v.output!=null?v.output:v.value,le(v.value)},oc=()=>{let v=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)Ee(),_.start++,v++;return v%2===0?!1:(_.negated=!0,_.start++,!0)},ir=v=>{_[v]++,ae.push(v)},Ye=v=>{_[v]--,ae.pop()},M=v=>{if(h.type==="globstar"){let $=_.braces>0&&(v.type==="comma"||v.type==="brace"),b=v.extglob===!0||E.length&&(v.type==="pipe"||v.type==="paren");v.type!=="slash"&&v.type!=="paren"&&!$&&!b&&(_.output=_.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=Z,_.output+=h.output)}if(E.length&&v.type!=="paren"&&(E[E.length-1].inner+=v.value),(v.value||v.output)&&nr(v),h&&h.type==="text"&&v.type==="text"){h.value+=v.value,h.output=(h.output||"")+v.value;return}v.prev=h,o.push(v),h=v},sr=(v,$)=>{let b={...u[$],conditions:1,inner:""};b.prev=h,b.parens=_.parens,b.output=_.output;let O=(r.capture?"(":"")+b.open;ir("parens"),M({type:v,value:$,output:_.output?"":m}),M({type:"paren",extglob:!0,value:Ee(),output:O}),E.push(b)},ac=v=>{let $=v.close+(r.capture?")":""),b;if(v.type==="negate"){let O=Z;if(v.inner&&v.inner.length>1&&v.inner.includes("/")&&(O=C(r)),(O!==Z||ie()||/^\)+$/.test(xe()))&&($=v.close=`)$))${O}`),v.inner.includes("*")&&(b=xe())&&/^\.[^\\/.]+$/.test(b)){let V=kn(b,{...t,fastpaths:!1}).output;$=v.close=`)${V})${O})`}v.prev.type==="bos"&&(_.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:p,output:$}),Ye("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let v=!1,$=e.replace(rd,(b,O,V,se,z,gn)=>se==="\\"?(v=!0,b):se==="?"?O?O+se+(z?q.repeat(z.length):""):gn===0?I+(z?q.repeat(z.length):""):q.repeat(V.length):se==="."?d.repeat(V.length):se==="*"?O?O+se+(z?Z:""):Z:O?b:`\\${b}`);return v===!0&&(r.unescape===!0?$=$.replace(/\\/g,""):$=$.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),$===e&&r.contains===!0?(_.output=e,_):(_.output=fe.wrapOutput($,_,t),_)}for(;!ie();){if(p=Ee(),p==="\0")continue;if(p==="\\"){let b=k();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){p+="\\",M({type:"text",value:p});continue}let O=/^\\+/.exec(xe()),V=0;if(O&&O[0].length>2&&(V=O[0].length,_.index+=V,V%2!==0&&(p+="\\")),r.unescape===!0?p=Ee():p+=Ee(),_.brackets===0){M({type:"text",value:p});continue}}if(_.brackets>0&&(p!=="]"||h.value==="["||h.value==="[^")){if(r.posix!==!1&&p===":"){let b=h.value.slice(1);if(b.includes("[")&&(h.posix=!0,b.includes(":"))){let O=h.value.lastIndexOf("["),V=h.value.slice(0,O),se=h.value.slice(O+2),z=ed[se];if(z){h.value=V+z,_.backtrack=!0,Ee(),!s.output&&o.indexOf(h)===1&&(s.output=m);continue}}}(p==="["&&k()!==":"||p==="-"&&k()==="]")&&(p=`\\${p}`),p==="]"&&(h.value==="["||h.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&h.value==="["&&(p="^"),h.value+=p,nr({value:p});continue}if(_.quotes===1&&p!=='"'){p=fe.escapeRegex(p),h.value+=p,nr({value:p});continue}if(p==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:p});continue}if(p==="("){ir("parens"),M({type:"paren",value:p});continue}if(p===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(pt("opening","("));let b=E[E.length-1];if(b&&_.parens===b.parens+1){ac(E.pop());continue}M({type:"paren",value:p,output:_.parens?")":"\\)"}),Ye("parens");continue}if(p==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(pt("closing","]"));p=`\\${p}`}else ir("brackets");M({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){M({type:"text",value:p,output:`\\${p}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(pt("opening","["));M({type:"text",value:p,output:`\\${p}`});continue}Ye("brackets");let b=h.value.slice(1);if(h.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(p=`/${p}`),h.value+=p,nr({value:p}),r.literalBrackets===!1||fe.hasRegexChars(b))continue;let O=fe.escapeRegex(h.value);if(_.output=_.output.slice(0,-h.value.length),r.literalBrackets===!0){_.output+=O,h.value=O;continue}h.value=`(${a}${O}|${h.value})`,_.output+=h.value;continue}if(p==="{"&&r.nobrace!==!0){ir("braces");let b={type:"brace",value:p,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};L.push(b),M(b);continue}if(p==="}"){let b=L[L.length-1];if(r.nobrace===!0||!b){M({type:"text",value:p,output:p});continue}let O=")";if(b.dots===!0){let V=o.slice(),se=[];for(let z=V.length-1;z>=0&&(o.pop(),V[z].type!=="brace");z--)V[z].type!=="dots"&&se.unshift(V[z].value);O=nd(se,r),_.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let V=_.output.slice(0,b.outputIndex),se=_.tokens.slice(b.tokensIndex);b.value=b.output="\\{",p=O="\\}",_.output=V;for(let z of se)_.output+=z.output||z.value}M({type:"brace",value:p,output:O}),Ye("braces"),L.pop();continue}if(p==="|"){E.length>0&&E[E.length-1].conditions++,M({type:"text",value:p});continue}if(p===","){let b=p,O=L[L.length-1];O&&ae[ae.length-1]==="braces"&&(O.comma=!0,b="|"),M({type:"comma",value:p,output:b});continue}if(p==="/"){if(h.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",o.pop(),h=s;continue}M({type:"slash",value:p,output:S});continue}if(p==="."){if(_.braces>0&&h.type==="dot"){h.value==="."&&(h.output=d);let b=L[L.length-1];h.type="dots",h.output+=p,h.value+=p,b.dots=!0;continue}if(_.braces+_.parens===0&&h.type!=="bos"&&h.type!=="slash"){M({type:"text",value:p,output:d});continue}M({type:"dot",value:p,output:d});continue}if(p==="?"){if(!(h&&h.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){sr("qmark",p);continue}if(h&&h.type==="paren"){let O=k(),V=p;if(O==="<"&&!fe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(O)||O==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(V=`\\${p}`),M({type:"text",value:p,output:V});continue}if(r.dot!==!0&&(h.type==="slash"||h.type==="bos")){M({type:"qmark",value:p,output:Q});continue}M({type:"qmark",value:p,output:q});continue}if(p==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){sr("negate",p);continue}if(r.nonegate!==!0&&_.index===0){oc();continue}}if(p==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){sr("plus",p);continue}if(h&&h.value==="("||r.regex===!1){M({type:"plus",value:p,output:c});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||_.parens>0){M({type:"plus",value:p});continue}M({type:"plus",value:c});continue}if(p==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){M({type:"at",extglob:!0,value:p,output:""});continue}M({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let b=td.exec(xe());b&&(p+=b[0],_.index+=b[0].length),M({type:"text",value:p});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=p,h.output=Z,_.backtrack=!0,_.globstar=!0,le(p);continue}let v=xe();if(r.noextglob!==!0&&/^\([^?]/.test(v)){sr("star",p);continue}if(h.type==="star"){if(r.noglobstar===!0){le(p);continue}let b=h.prev,O=b.prev,V=b.type==="slash"||b.type==="bos",se=O&&(O.type==="star"||O.type==="globstar");if(r.bash===!0&&(!V||v[0]&&v[0]!=="/")){M({type:"star",value:p,output:""});continue}let z=_.braces>0&&(b.type==="comma"||b.type==="brace"),gn=E.length&&(b.type==="pipe"||b.type==="paren");if(!V&&b.type!=="paren"&&!z&&!gn){M({type:"star",value:p,output:""});continue}for(;v.slice(0,3)==="/**";){let or=e[_.index+4];if(or&&or!=="/")break;v=v.slice(3),le("/**",3)}if(b.type==="bos"&&ie()){h.type="globstar",h.value+=p,h.output=C(r),_.output=h.output,_.globstar=!0,le(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!se&&ie()){_.output=_.output.slice(0,-(b.output+h.output).length),b.output=`(?:${b.output}`,h.type="globstar",h.output=C(r)+(r.strictSlashes?")":"|$)"),h.value+=p,_.globstar=!0,_.output+=b.output+h.output,le(p);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&v[0]==="/"){let or=v[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(b.output+h.output).length),b.output=`(?:${b.output}`,h.type="globstar",h.output=`${C(r)}${S}|${S}${or})`,h.value+=p,_.output+=b.output+h.output,_.globstar=!0,le(p+Ee()),M({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&v[0]==="/"){h.type="globstar",h.value+=p,h.output=`(?:^|${S}|${C(r)}${S})`,_.output=h.output,_.globstar=!0,le(p+Ee()),M({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-h.output.length),h.type="globstar",h.output=C(r),h.value+=p,_.output+=h.output,_.globstar=!0,le(p);continue}let $={type:"star",value:p,output:Z};if(r.bash===!0){$.output=".*?",(h.type==="bos"||h.type==="slash")&&($.output=A+$.output),M($);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&r.regex===!0){$.output=p,M($);continue}(_.index===_.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(_.output+=x,h.output+=x):r.dot===!0?(_.output+=D,h.output+=D):(_.output+=A,h.output+=A),k()!=="*"&&(_.output+=m,h.output+=m)),M($)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing","]"));_.output=fe.escapeLast(_.output,"["),Ye("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing",")"));_.output=fe.escapeLast(_.output,"("),Ye("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing","}"));_.output=fe.escapeLast(_.output,"{"),Ye("braces")}if(r.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${S}?`}),_.backtrack===!0){_.output="";for(let v of _.tokens)_.output+=v.output!=null?v.output:v.value,v.suffix&&(_.output+=v.suffix)}return _};kn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(gr,r.maxLength):gr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=xa[e]||e;let s=fe.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:c,STAR:S,START_ANCHOR:m}=_r.globChars(s),y=r.dot?d:u,R=r.dot?c:u,x=r.capture?"":"?:",D={negated:!1,prefix:""},q=r.bash===!0?".*?":S;r.capture&&(q=`(${q})`);let Q=A=>A.noglobstar===!0?q:`(${x}(?:(?!${m}${A.dot?f:o}).)*?)`,w=A=>{switch(A){case"*":return`${y}${l}${q}`;case".*":return`${o}${l}${q}`;case"*.*":return`${y}${q}${o}${l}${q}`;case"*/*":return`${y}${q}${a}${l}${R}${q}`;case"**":return y+Q(r);case"**/*":return`(?:${y}${Q(r)}${a})?${R}${l}${q}`;case"**/*.*":return`(?:${y}${Q(r)}${a})?${R}${q}${o}${l}${q}`;case"**/.*":return`(?:${y}${Q(r)}${a})?${o}${l}${q}`;default:{let I=/^(.*?)\.(\w+)$/.exec(A);if(!I)return;let Z=w(I[1]);return Z?Z+o+I[2]:void 0}}},F=fe.removePrefix(e,D),C=w(F);return C&&r.strictSlashes!==!0&&(C+=`${a}?`),C};Sa.exports=kn});var Aa=g((hm,wa)=>{"use strict";var id=B("path"),sd=Ea(),Fn=Ra(),qn=kt(),od=It(),ad=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 m=S(c);if(m)return m}return!1}}let n=ad(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=qn.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,d=!1)=>{let{isMatch:c,match:S,output:m}=K.test(u,o,t,{glob:e,posix:s}),y={glob:e,state:a,regex:o,posix:s,input:u,output:m,match:S,isMatch:c};return typeof i.onResult=="function"&&i.onResult(y),c===!1?(y.isMatch=!1,d?y:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,d?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),d?y:!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?qn.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=qn.isWindows(r))=>(t instanceof RegExp?t:K.makeRe(t,r)).test(id.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)):Fn(e,{...t,fastpaths:!1});K.scan=(e,t)=>sd(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=Fn.fastpaths(e,t)),i.output||(i=Fn(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=od;wa.exports=K});var Ca=g((dm,Ta)=>{"use strict";Ta.exports=Aa()});var Ba=g((pm,Ma)=>{"use strict";var Pa=B("util"),La=la(),we=Ca(),jn=kt(),Oa=e=>e===""||e==="./",G=(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 d=we(String(t[u]),{...r,onResult:a},!0),c=d.state.negated||d.state.negatedExtglob;c&&o++;for(let S of e){let m=d(S,!0);!(c?!m.isMatch:m.isMatch)||(c?n.add(m.output):(n.delete(m.output),i.add(m.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};G.match=G;G.matcher=(e,t)=>we(e,t);G.isMatch=(e,t,r)=>we(t,r)(e);G.any=G.isMatch;G.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(G(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};G.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Pa.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>G.contains(e,n,r));if(typeof t=="string"){if(Oa(e)||Oa(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return G.isMatch(e,t,{...r,contains:!0})};G.matchKeys=(e,t,r)=>{if(!jn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=G(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};G.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(n.some(o=>s(o)))return!0}return!1};G.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};G.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Pa.inspect(e)}"`);return[].concat(t).every(n=>we(n,r)(e))};G.capture=(e,t,r)=>{let n=jn.isWindows(r),s=we.makeRe(String(e),{...r,capture:!0}).exec(n?jn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};G.makeRe=(...e)=>we.makeRe(...e);G.scan=(...e)=>we.scan(...e);G.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of La(String(n),t))r.push(we.parse(i,t));return r};G.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:La(e,t)};G.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return G.braces(e,{...t,expand:!0})};Ma.exports=G});var Ha=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 ld=B("path"),ud=wo(),Hn=Ba(),Da="**",fd="\\",cd=/[*?]|^!/,hd=/\[[^[]*]/,dd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,pd=/[!*+?@]\([^(]*\)/,_d=/,|\.\./;function Na(e,t={}){return!Ia(e,t)}T.isStaticPattern=Na;function Ia(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(fd)||cd.test(e)||hd.test(e)||dd.test(e)||t.extglob!==!1&&pd.test(e)||t.braceExpansion!==!1&&gd(e))}T.isDynamicPattern=Ia;function gd(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 _d.test(n)}function yd(e){return yr(e)?e.slice(1):e}T.convertToPositivePattern=yd;function md(e){return"!"+e}T.convertToNegativePattern=md;function yr(e){return e.startsWith("!")&&e[1]!=="("}T.isNegativePattern=yr;function ka(e){return!yr(e)}T.isPositivePattern=ka;function bd(e){return e.filter(yr)}T.getNegativePatterns=bd;function vd(e){return e.filter(ka)}T.getPositivePatterns=vd;function Ed(e){return e.filter(t=>!$n(t))}T.getPatternsInsideCurrentDirectory=Ed;function xd(e){return e.filter($n)}T.getPatternsOutsideCurrentDirectory=xd;function $n(e){return e.startsWith("..")||e.startsWith("./..")}T.isPatternRelatedToParentDirectory=$n;function Sd(e){return ud(e,{flipBackslashes:!1})}T.getBaseDirectory=Sd;function Rd(e){return e.includes(Da)}T.hasGlobStar=Rd;function Fa(e){return e.endsWith("/"+Da)}T.endsWithSlashGlobStar=Fa;function wd(e){let t=ld.basename(e);return Fa(e)||Na(t)}T.isAffectDepthOfReadingPattern=wd;function Ad(e){return e.reduce((t,r)=>t.concat(qa(r)),[])}T.expandPatternsWithBraceExpansion=Ad;function qa(e){return Hn.braces(e,{expand:!0,nodupes:!0})}T.expandBraceExpansion=qa;function Td(e,t){let{parts:r}=Hn.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=Td;function ja(e,t){return Hn.makeRe(e,t)}T.makeRe=ja;function Cd(e,t){return e.map(r=>ja(r,t))}T.convertPatternsToRe=Cd;function Od(e,t){return t.some(r=>r.test(e))}T.matchAny=Od});var Wa=g((gm,Ga)=>{"use strict";var Pd=B("stream"),$a=Pd.PassThrough,Ld=Array.prototype.slice;Ga.exports=Md;function Md(){let e=[],t=Ld.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=$a(n);function a(){for(let u=0,d=arguments.length;u<d;u++)e.push(Ua(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 d=u.length+1;function c(){--d>0||(r=!1,l())}function S(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",R),c()}function R(x){o.emit("error",x)}if(m._readableState.endEmitted)return c();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",R),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)S(u[m]);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 Ua(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Ua(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe($a(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Ya=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.merge=void 0;var Bd=Wa();function Dd(e){let t=Bd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Va(e)),t.once("end",()=>Va(e)),t}mr.merge=Dd;function Va(e){e.forEach(t=>t.emit("close"))}});var Ka=g(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.isEmpty=_t.isString=void 0;function Nd(e){return typeof e=="string"}_t.isString=Nd;function Id(e){return e===""}_t.isEmpty=Id});var Me=g(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.string=te.stream=te.pattern=te.path=te.fs=te.errno=te.array=void 0;var kd=_o();te.array=kd;var Fd=go();te.errno=Fd;var qd=yo();te.fs=qd;var jd=mo();te.path=jd;var Hd=Ha();te.pattern=Hd;var $d=Ya();te.stream=$d;var Ud=Ka();te.string=Ud});var Ja=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.convertPatternGroupToTask=re.convertPatternGroupsToTasks=re.groupPatternsByBaseDirectory=re.getNegativePatternsAsPositive=re.getPositivePatterns=re.convertPatternsToTasks=re.generate=void 0;var Be=Me();function Gd(e,t){let r=Qa(e),n=Xa(e,t.ignore),i=r.filter(l=>Be.pattern.isStaticPattern(l,t)),s=r.filter(l=>Be.pattern.isDynamicPattern(l,t)),o=Un(i,n,!1),a=Un(s,n,!0);return o.concat(a)}re.generate=Gd;function Un(e,t,r){let n=[],i=Be.pattern.getPatternsOutsideCurrentDirectory(e),s=Be.pattern.getPatternsInsideCurrentDirectory(e),o=Gn(i),a=Gn(s);return n.push(...Wn(o,t,r)),"."in a?n.push(Vn(".",s,t,r)):n.push(...Wn(a,t,r)),n}re.convertPatternsToTasks=Un;function Qa(e){return Be.pattern.getPositivePatterns(e)}re.getPositivePatterns=Qa;function Xa(e,t){return Be.pattern.getNegativePatterns(e).concat(t).map(Be.pattern.convertToPositivePattern)}re.getNegativePatternsAsPositive=Xa;function Gn(e){let t={};return e.reduce((r,n)=>{let i=Be.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}re.groupPatternsByBaseDirectory=Gn;function Wn(e,t,r){return Object.keys(e).map(n=>Vn(n,e[n],t,r))}re.convertPatternGroupsToTasks=Wn;function Vn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Be.pattern.convertToNegativePattern))}}re.convertPatternGroupToTask=Vn});var za=g(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeDuplicateSlashes=gt.transform=void 0;var Wd=/(?!^)\/{2,}/g;function Vd(e){return e.map(t=>Za(t))}gt.transform=Vd;function Za(e){return e.replace(Wd,"/")}gt.removeDuplicateSlashes=Za});var tl=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.read=void 0;function Yd(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){el(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Yn(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){el(r,s);return}Yn(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Yn(r,o)})})}br.read=Yd;function el(e,t){e(t)}function Yn(e,t){e(null,t)}});var rl=g(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.read=void 0;function Kd(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}}vr.read=Kd});var nl=g(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createFileSystemAdapter=Ne.FILE_SYSTEM_ADAPTER=void 0;var Er=B("fs");Ne.FILE_SYSTEM_ADAPTER={lstat:Er.lstat,stat:Er.stat,lstatSync:Er.lstatSync,statSync:Er.statSync};function Qd(e){return e===void 0?Ne.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ne.FILE_SYSTEM_ADAPTER),e)}Ne.createFileSystemAdapter=Qd});var il=g(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});var Xd=nl(),Kn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Xd.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}};Qn.default=Kn});var Xe=g(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.statSync=Ie.stat=Ie.Settings=void 0;var sl=tl(),Jd=rl(),Xn=il();Ie.Settings=Xn.default;function Zd(e,t,r){if(typeof t=="function"){sl.read(e,Jn(),t);return}sl.read(e,Jn(t),r)}Ie.stat=Zd;function zd(e,t){let r=Jn(t);return Jd.read(e,r)}Ie.statSync=zd;function Jn(e={}){return e instanceof Xn.default?e:new Xn.default(e)}});var ll=g((Tm,al)=>{var ol;al.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(ol||(ol=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var fl=g((Cm,ul)=>{ul.exports=tp;var ep=ll();function tp(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?ep(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,d){a(f,u,d)})}):o(null),s=!1}});var Zn=g(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xr=process.versions.node.split(".");if(xr[0]===void 0||xr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var cl=Number.parseInt(xr[0],10),rp=Number.parseInt(xr[1],10),hl=10,np=10,ip=cl>hl,sp=cl===hl&&rp>=np;Sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ip||sp});var dl=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.createDirentFromStats=void 0;var zn=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 op(e,t){return new zn(e,t)}Rr.createDirentFromStats=op});var ei=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.fs=void 0;var ap=dl();wr.fs=ap});var ti=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.joinPathSegments=void 0;function lp(e,t,r){return e.endsWith(r)?e+t:e+r+t}Ar.joinPathSegments=lp});var bl=g(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.readdir=ke.readdirWithFileTypes=ke.read=void 0;var up=Xe(),pl=fl(),fp=Zn(),_l=ei(),gl=ti();function cp(e,t,r){if(!t.stats&&fp.IS_SUPPORT_READDIR_WITH_FILE_TYPES){yl(e,t,r);return}ml(e,t,r)}ke.read=cp;function yl(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Tr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:gl.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){ri(r,s);return}let o=s.map(a=>hp(a,t));pl(o,(a,l)=>{if(a!==null){Tr(r,a);return}ri(r,l)})})}ke.readdirWithFileTypes=yl;function hp(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=_l.fs.createDirentFromStats(e.name,i),r(null,e)})}}function ml(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Tr(r,n);return}let s=i.map(o=>{let a=gl.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{up.stat(a,t.fsStatSettings,(f,u)=>{if(f!==null){l(f);return}let d={name:o,path:a,dirent:_l.fs.createDirentFromStats(o,u)};t.stats&&(d.stats=u),l(null,d)})}});pl(s,(o,a)=>{if(o!==null){Tr(r,o);return}ri(r,a)})})}ke.readdir=ml;function Tr(e,t){e(t)}function ri(e,t){e(null,t)}});var Rl=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.readdir=Fe.readdirWithFileTypes=Fe.read=void 0;var dp=Xe(),pp=Zn(),vl=ei(),El=ti();function _p(e,t){return!t.stats&&pp.IS_SUPPORT_READDIR_WITH_FILE_TYPES?xl(e,t):Sl(e,t)}Fe.read=_p;function xl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:El.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=vl.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Fe.readdirWithFileTypes=xl;function Sl(e,t){return t.fs.readdirSync(e).map(n=>{let i=El.joinPathSegments(e,n,t.pathSegmentSeparator),s=dp.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:vl.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Fe.readdir=Sl});var wl=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.createFileSystemAdapter=qe.FILE_SYSTEM_ADAPTER=void 0;var yt=B("fs");qe.FILE_SYSTEM_ADAPTER={lstat:yt.lstat,stat:yt.stat,lstatSync:yt.lstatSync,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};function gp(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=gp});var Al=g(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var yp=B("path"),mp=Xe(),bp=wl(),ni=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=bp.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,yp.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new mp.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};ii.default=ni});var Cr=g(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.Settings=je.scandirSync=je.scandir=void 0;var Tl=bl(),vp=Rl(),si=Al();je.Settings=si.default;function Ep(e,t,r){if(typeof t=="function"){Tl.read(e,oi(),t);return}Tl.read(e,oi(t),r)}je.scandir=Ep;function xp(e,t){let r=oi(t);return vp.read(e,r)}je.scandirSync=xp;function oi(e={}){return e instanceof si.default?e:new si.default(e)}});var Ol=g((Fm,Cl)=>{"use strict";function Sp(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}}Cl.exports=Sp});var Ll=g((qm,ai)=>{"use strict";var Rp=Ol();function Pl(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=Rp(wp),i=null,s=null,o=0,a=null,l={push:y,drain:de,saturated:de,pause:u,paused:!1,concurrency:r,running:f,resume:S,idle:m,length:d,getQueue:c,unshift:R,empty:de,kill:D,killAndDrain:q,error:Q};return l;function f(){return o}function u(){l.paused=!0}function d(){for(var w=i,F=0;w;)w=w.next,F++;return F}function c(){for(var w=i,F=[];w;)F.push(w.value),w=w.next;return F}function S(){if(!!l.paused){l.paused=!1;for(var w=0;w<l.concurrency;w++)o++,x()}}function m(){return o===0&&l.length()===0}function y(w,F){var C=n.get();C.context=e,C.release=x,C.value=w,C.callback=F||de,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 R(w,F){var C=n.get();C.context=e,C.release=x,C.value=w,C.callback=F||de,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 x(w){w&&n.release(w);var F=i;F?l.paused?o--:(s===i&&(s=null),i=F.next,F.next=null,t.call(e,F.value,F.worked),s===null&&l.empty()):--o===0&&l.drain()}function D(){i=null,s=null,l.drain=de}function q(){i=null,s=null,l.drain(),l.drain=de}function Q(w){a=w}}function de(){}function wp(){this.value=null,this.callback=de,this.next=null,this.release=de,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=de,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Ap(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,d){t.call(this,u).then(function(c){d(null,c)},d)}var i=Pl(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=f,i;function a(u){var d=new Promise(function(c,S){s(u,function(m,y){if(m){S(m);return}c(y)})});return d.catch(de),d}function l(u){var d=new Promise(function(c,S){o(u,function(m,y){if(m){S(m);return}c(y)})});return d.catch(de),d}function f(){var u=i.drain,d=new Promise(function(c){i.drain=function(){u(),c()}});return d}}ai.exports=Pl;ai.exports.promise=Ap});var Or=g(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.joinPathSegments=Ae.replacePathSegmentSeparator=Ae.isAppliedFilter=Ae.isFatalError=void 0;function Tp(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ae.isFatalError=Tp;function Cp(e,t){return e===null||e(t)}Ae.isAppliedFilter=Cp;function Op(e,t){return e.split(/[/\\]/).join(t)}Ae.replacePathSegmentSeparator=Op;function Pp(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ae.joinPathSegments=Pp});var fi=g(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var Lp=Or(),li=class{constructor(t,r){this._root=t,this._settings=r,this._root=Lp.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ui.default=li});var di=g(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});var Mp=B("events"),Bp=Cr(),Dp=Ll(),Pr=Or(),Np=fi(),ci=class extends Np.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Bp.scandir,this._emitter=new Mp.EventEmitter,this._queue=Dp(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||!Pr.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=Pr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Pr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Pr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};hi.default=ci});var Ml=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var Ip=di(),pi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Ip.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{kp(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Fp(t,this._storage)}),this._reader.read()}};_i.default=pi;function kp(e,t){e(t)}function Fp(e,t){e(null,t)}});var Bl=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var qp=B("stream"),jp=di(),gi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new jp.default(this._root,this._settings),this._stream=new qp.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}};yi.default=gi});var Dl=g(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var Hp=Cr(),Lr=Or(),$p=fi(),mi=class extends $p.default{constructor(){super(...arguments),this._scandir=Hp.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(!!Lr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Lr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Lr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Lr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};bi.default=mi});var Nl=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var Up=Dl(),vi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Up.default(this._root,this._settings)}read(){return this._reader.read()}};Ei.default=vi});var Il=g(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Gp=B("path"),Wp=Cr(),xi=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,Gp.sep),this.fsScandirSettings=new Wp.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}};Si.default=xi});var Br=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.Settings=Te.walkStream=Te.walkSync=Te.walk=void 0;var kl=Ml(),Vp=Bl(),Yp=Nl(),Ri=Il();Te.Settings=Ri.default;function Kp(e,t,r){if(typeof t=="function"){new kl.default(e,Mr()).read(t);return}new kl.default(e,Mr(t)).read(r)}Te.walk=Kp;function Qp(e,t){let r=Mr(t);return new Yp.default(e,r).read()}Te.walkSync=Qp;function Xp(e,t){let r=Mr(t);return new Vp.default(e,r).read()}Te.walkStream=Xp;function Mr(e={}){return e instanceof Ri.default?e:new Ri.default(e)}});var Dr=g(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var Jp=B("path"),Zp=Xe(),Fl=Me(),wi=class{constructor(t){this._settings=t,this._fsStatSettings=new Zp.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Jp.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Fl.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Fl.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ai.default=wi});var Oi=g(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var zp=B("stream"),e_=Xe(),t_=Br(),r_=Dr(),Ti=class extends r_.default{constructor(){super(...arguments),this._walkStream=t_.walkStream,this._stat=e_.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new zp.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))})}};Ci.default=Ti});var ql=g(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var n_=Br(),i_=Dr(),s_=Oi(),Pi=class extends i_.default{constructor(){super(...arguments),this._walkAsync=n_.walk,this._readerStream=new s_.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Li.default=Pi});var jl=g(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var mt=Me(),Mi=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=mt.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 mt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>mt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:mt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return mt.array.splitWhen(t,r=>r.dynamic&&mt.pattern.hasGlobStar(r.pattern))}};Bi.default=Mi});var Hl=g(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var o_=jl(),Di=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}};Ni.default=Di});var $l=g(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Nr=Me(),a_=Hl(),Ii=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(Nr.pattern.isAffectDepthOfReadingPattern);return Nr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Nr.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!Nr.pattern.matchAny(t,r)}};ki.default=Ii});var Ul=g(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var Je=Me(),Fi=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Je.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Je.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Je.path.makeAbsolute(this._settings.cwd,t);return Je.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Je.path.removeLeadingDotSegment(t),s=Je.pattern.matchAny(i,r);return!s&&n?Je.pattern.matchAny(i+"/",r):s}};qi.default=Fi});var Gl=g(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});var l_=Me(),ji=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return l_.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Hi.default=ji});var Vl=g(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var Wl=Me(),$i=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Wl.path.makeAbsolute(this._settings.cwd,r),r=Wl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Ui.default=$i});var Ir=g(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var u_=B("path"),f_=$l(),c_=Ul(),h_=Gl(),d_=Vl(),Gi=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}}};Wi.default=Gi});var Yl=g(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var p_=ql(),__=Ir(),Vi=class extends __.default{constructor(){super(...arguments),this._reader=new p_.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Yi.default=Vi});var Kl=g(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var g_=B("stream"),y_=Oi(),m_=Ir(),Ki=class extends m_.default{constructor(){super(...arguments),this._reader=new y_.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)}};Qi.default=Ki});var Ql=g(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var b_=Xe(),v_=Br(),E_=Dr(),Xi=class extends E_.default{constructor(){super(...arguments),this._walkSync=v_.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)}};Ji.default=Xi});var Xl=g(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var x_=Ql(),S_=Ir(),Zi=class extends S_.default{constructor(){super(...arguments),this._reader=new x_.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)}};zi.default=Zi});var Jl=g(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bt=B("fs"),R_=B("os"),w_=Math.max(R_.cpus().length,1);vt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bt.lstat,lstatSync:bt.lstatSync,stat:bt.stat,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};var es=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({},vt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};vt.default=es});var tu=g((fb,eu)=>{"use strict";var Zl=Ja(),zl=za(),A_=Yl(),T_=Kl(),C_=Xl(),ts=Jl(),Ze=Me();async function rs(e,t){Et(e);let r=ns(e,A_.default,t),n=await Promise.all(r);return Ze.array.flatten(n)}(function(e){function t(o,a){Et(o);let l=ns(o,C_.default,a);return Ze.array.flatten(l)}e.sync=t;function r(o,a){Et(o);let l=ns(o,T_.default,a);return Ze.stream.merge(l)}e.stream=r;function n(o,a){Et(o);let l=zl.transform([].concat(o)),f=new ts.default(a);return Zl.generate(l,f)}e.generateTasks=n;function i(o,a){Et(o);let l=new ts.default(a);return Ze.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return Et(o),Ze.path.escape(o)}e.escapePath=s})(rs||(rs={}));function ns(e,t,r){let n=zl.transform([].concat(e)),i=new ts.default(r),s=Zl.generate(n,i),o=new t(i);return s.map(o.read,o)}function Et(e){if(![].concat(e).every(n=>Ze.string.isString(n)&&!Ze.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}eu.exports=rs});var nu=g((cb,is)=>{"use strict";var ru=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};is.exports=ru;is.exports.default=ru});var su=g((hb,Fr)=>{"use strict";var O_=nu(),kr=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(kr.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),kr.set(s,n),s};Fr.exports=iu;Fr.exports.default=iu;Fr.exports.callCount=e=>{if(!kr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return kr.get(e)}});var ou=g((db,qr)=>{qr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&qr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var cu=g((pb,Rt)=>{var W=global.process,ze=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"};ze(W)?(au=B("assert"),xt=ou(),lu=/^win/i.test(W.platform),qt=B("events"),typeof qt!="function"&&(qt=qt.EventEmitter),W.__signal_exit_emitter__?ee=W.__signal_exit_emitter__:(ee=W.__signal_exit_emitter__=new qt,ee.count=0,ee.emitted={}),ee.infinite||(ee.setMaxListeners(1/0),ee.infinite=!0),Rt.exports=function(e,t){if(!ze(global.process))return function(){};au.equal(typeof e,"function","a callback must be provided for exit handler"),St===!1&&ss();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){ee.removeListener(r,e),ee.listeners("exit").length===0&&ee.listeners("afterexit").length===0&&jr()};return ee.on(r,e),n},jr=function(){!St||!ze(global.process)||(St=!1,xt.forEach(function(t){try{W.removeListener(t,Hr[t])}catch{}}),W.emit=$r,W.reallyExit=os,ee.count-=1)},Rt.exports.unload=jr,et=function(t,r,n){ee.emitted[t]||(ee.emitted[t]=!0,ee.emit(t,r,n))},Hr={},xt.forEach(function(e){Hr[e]=function(){if(!!ze(global.process)){var r=W.listeners(e);r.length===ee.count&&(jr(),et("exit",null,e),et("afterexit",null,e),lu&&e==="SIGHUP"&&(e="SIGINT"),W.kill(W.pid,e))}}}),Rt.exports.signals=function(){return xt},St=!1,ss=function(){St||!ze(global.process)||(St=!0,ee.count+=1,xt=xt.filter(function(t){try{return W.on(t,Hr[t]),!0}catch{return!1}}),W.emit=fu,W.reallyExit=uu)},Rt.exports.load=ss,os=W.reallyExit,uu=function(t){!ze(global.process)||(W.exitCode=t||0,et("exit",W.exitCode,null),et("afterexit",W.exitCode,null),os.call(W,W.exitCode))},$r=W.emit,fu=function(t,r){if(t==="exit"&&ze(global.process)){r!==void 0&&(W.exitCode=r);var n=$r.apply(this,arguments);return et("exit",W.exitCode,null),et("afterexit",W.exitCode,null),n}else return $r.apply(this,arguments)}):Rt.exports=function(){return function(){}};var au,xt,lu,qt,ee,jr,et,Hr,St,ss,os,uu,$r,fu});var gu=g((vb,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:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{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((Eb,mu)=>{"use strict";var Gr=Object.assign({},gu()),yu=Object.keys(Gr);Object.defineProperty(Gr,"random",{get(){let e=Math.floor(Math.random()*yu.length),t=yu[e];return Gr[t]}});mu.exports=Gr});var vu=g((Pb,Wr)=>{var I_=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 d=[],c=[],S=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function m(y,R){if(y===null)return null;if(R==0)return y;var x,D;if(typeof y!="object")return y;if(e.__isArray(y))x=[];else if(e.__isRegExp(y))x=new RegExp(y.source,s(y)),y.lastIndex&&(x.lastIndex=y.lastIndex);else if(e.__isDate(y))x=new Date(y.getTime());else{if(S&&Buffer.isBuffer(y))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(y.length):x=new Buffer(y.length),y.copy(x),x;typeof f>"u"?(D=Object.getPrototypeOf(y),x=Object.create(D)):(x=Object.create(f),D=f)}if(a){var q=d.indexOf(y);if(q!=-1)return c[q];d.push(y),c.push(x)}for(var Q in y){var w;D&&(w=Object.getOwnPropertyDescriptor(D,Q)),!(w&&w.set==null)&&(x[Q]=m(y[Q],R-1))}return x}return m(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 Wr=="object"&&Wr.exports&&(Wr.exports=I_)});var xu=g((Lb,Eu)=>{var k_=vu();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((Mb,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((Bb,fs)=>{"use strict";var F_=xu(),$t=Ru(),Au={nul:0,control:0};fs.exports=function(t){return Tu(t,Au)};fs.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=$t.length-1,n;if(e<$t[0][0]||e>$t[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>$t[n][1])t=n+1;else if(e<$t[n][0])r=n-1;else return!0;return!1}});var hs=g((Nb,Ou)=>{Ou.exports=B("stream")});var Bu=g((Ib,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){H_(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 H_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $_(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 U_(e,t,r){return t&&Lu(e.prototype,t),r&&Lu(e,r),e}var G_=B("buffer"),Vr=G_.Buffer,W_=B("util"),ds=W_.inspect,V_=ds&&ds.custom||"inspect";function Y_(e,t,r){Vr.prototype.copy.call(e,t,r)}Mu.exports=function(){function e(){$_(this,e),this.head=null,this.tail=null,this.length=0}return U_(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 Vr.alloc(0);for(var n=Vr.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=Vr.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 ds(this,j_({},n,{depth:0,customInspect:!1}))}}]),e}()});var _s=g((kb,Nu)=>{"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(ps,this,e)):process.nextTick(ps,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(Yr,r):(r._writableState.errorEmitted=!0,process.nextTick(Du,r,s)):process.nextTick(Du,r,s):t?(process.nextTick(Yr,r),t(s)):process.nextTick(Yr,r)}),this)}function Du(e,t){ps(e,t),Yr(e)}function Yr(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 ps(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)}Nu.exports={destroy:K_,undestroy:Q_,errorOrDestroy:X_}});var He=g((Fb,Fu)=>{"use strict";var ku={};function pe(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 Iu(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}pe("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);pe("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} ${Iu(t,"type")}`;else{let s=z_(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Iu(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");pe("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});pe("ERR_STREAM_PREMATURE_CLOSE","Premature close");pe("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");pe("ERR_STREAM_WRITE_AFTER_END","write after end");pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pe("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Fu.exports.codes=ku});var gs=g((qb,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,ys)=>{typeof Object.create=="function"?ys.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ys.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 tt=g((Hb,bs)=>{try{if(ms=B("util"),typeof ms.inherits!="function")throw"";bs.exports=ms.inherits}catch{bs.exports=ju()}var ms});var $u=g(($b,Hu)=>{Hu.exports=B("util").deprecate});var xs=g((Ub,Ku)=>{"use strict";Ku.exports=Y;function Gu(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Og(t,e)}}var At;Y.WritableState=Gt;var ng={deprecate:$u()},Wu=hs(),Qr=B("buffer").Buffer,ig=global.Uint8Array||function(){};function sg(e){return Qr.from(e)}function og(e){return Qr.isBuffer(e)||e instanceof ig}var Es=_s(),ag=gs(),lg=ag.getHighWaterMark,$e=He().codes,ug=$e.ERR_INVALID_ARG_TYPE,fg=$e.ERR_METHOD_NOT_IMPLEMENTED,cg=$e.ERR_MULTIPLE_CALLBACK,hg=$e.ERR_STREAM_CANNOT_PIPE,dg=$e.ERR_STREAM_DESTROYED,pg=$e.ERR_STREAM_NULL_VALUES,_g=$e.ERR_STREAM_WRITE_AFTER_END,gg=$e.ERR_UNKNOWN_ENCODING,Tt=Es.errorOrDestroy;tt()(Y,Wu);function yg(){}function Gt(e,t,r){At=At||rt(),e=e||{},typeof r!="boolean"&&(r=t instanceof At),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 Gu(this)}Gt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Gt.prototype,"buffer",{get:ng.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Kr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Kr=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function(t){return Kr.call(this,t)?!0:this!==Y?!1:t&&t._writableState instanceof Gt}})):Kr=function(t){return t instanceof this};function Y(e){At=At||rt();var t=this instanceof At;if(!t&&!Kr.call(Y,this))return new Y(e);this._writableState=new Gt(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(){Tt(this,new hg)};function mg(e,t){var r=new _g;Tt(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?(Tt(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&&!Qr.isBuffer(e)&&(e=sg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=yg),n.ending?mg(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 vg(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Qr.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=vg(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 vs(e,t,!1,a,n,i,s);return l}function vs(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 xg(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Ut,e,t),e._writableState.errorEmitted=!0,Tt(e,n)):(i(n),e._writableState.errorEmitted=!0,Tt(e,n),Ut(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)xg(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(Uu,e,r,s,i):Uu(e,r,s,i)}}function Uu(e,t,r,n){r||wg(e,t),t.pendingcb--,n(),Ut(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,vs(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 Gu(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(vs(e,t,!1,d,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&&Tt(e,r),t.prefinished=!0,e.emit("prefinish"),Ut(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 Ut(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,Ut(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=Es.destroy;Y.prototype._undestroy=Es.undestroy;Y.prototype._destroy=function(e,t){t(e)}});var rt=g((Gb,Xu)=>{"use strict";var Pg=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Xu.exports=Ce;var Qu=ws(),Rs=xs();tt()(Ce,Qu);for(Ss=Pg(Rs.prototype),Xr=0;Xr<Ss.length;Xr++)Jr=Ss[Xr],Ce.prototype[Jr]||(Ce.prototype[Jr]=Rs.prototype[Jr]);var Ss,Jr,Xr;function Ce(e){if(!(this instanceof Ce))return new Ce(e);Qu.call(this,e),Rs.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(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ce.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(Ce.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((As,Zu)=>{var Zr=B("buffer"),Oe=Zr.Buffer;function Ju(e,t){for(var r in e)t[r]=e[r]}Oe.from&&Oe.alloc&&Oe.allocUnsafe&&Oe.allocUnsafeSlow?Zu.exports=Zr:(Ju(Zr,As),As.Buffer=nt);function nt(e,t,r){return Oe(e,t,r)}nt.prototype=Object.create(Oe.prototype);Ju(Oe,nt);nt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Oe(e,t,r)};nt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Oe(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};nt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Oe(e)};nt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Zr.SlowBuffer(e)}});var Os=g(tf=>{"use strict";var Cs=zu().Buffer,ef=Cs.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 Bg(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 Dg(e){var t=Bg(e);if(typeof t!="string"&&(Cs.isEncoding===ef||!ef(e)))throw new Error("Unknown encoding: "+e);return t||e}tf.StringDecoder=Wt;function Wt(e){this.encoding=Dg(e);var t;switch(this.encoding){case"utf16le":this.text=jg,this.end=Hg,t=4;break;case"utf8":this.fillLast=kg,t=4;break;case"base64":this.text=$g,this.end=Ug,t=3;break;default:this.write=Gg,this.end=Wg;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Cs.allocUnsafe(t)}Wt.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||""};Wt.prototype.end=qg;Wt.prototype.text=Fg;Wt.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 Ng(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 Ig(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=Ig(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=Ng(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 Hg(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 $g(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 Ug(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Gg(e){return e.toString(this.encoding)}function Wg(e){return e&&e.length?this.write(e):""}});var zr=g((Vb,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(m){r.call(e,m)},d=function(){var m;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(m=new rf),r.call(e,m);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(m=new rf),r.call(e,m)},c=function(){e.req.on("finish",a)};return Kg(e)?(e.on("complete",a),e.on("abort",d),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",d),function(){e.removeListener("complete",a),e.removeListener("abort",d),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",d)}}sf.exports=nf});var af=g((Yb,of)=>{"use strict";var en;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(),Ge=Symbol("lastResolve"),it=Symbol("lastReject"),Vt=Symbol("error"),tn=Symbol("ended"),st=Symbol("lastPromise"),Ps=Symbol("handlePromise"),ot=Symbol("stream");function We(e,t){return{value:e,done:t}}function Xg(e){var t=e[Ge];if(t!==null){var r=e[ot].read();r!==null&&(e[st]=null,e[Ge]=null,e[it]=null,t(We(r,!1)))}}function Jg(e){process.nextTick(Xg,e)}function Zg(e,t){return function(r,n){e.then(function(){if(t[tn]){r(We(void 0,!0));return}t[Ps](r,n)},n)}}var zg=Object.getPrototypeOf(function(){}),e0=Object.setPrototypeOf((en={get stream(){return this[ot]},next:function(){var t=this,r=this[Vt];if(r!==null)return Promise.reject(r);if(this[tn])return Promise.resolve(We(void 0,!0));if(this[ot].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Vt]?a(t[Vt]):o(We(void 0,!0))})});var n=this[st],i;if(n)i=new Promise(Zg(n,this));else{var s=this[ot].read();if(s!==null)return Promise.resolve(We(s,!1));i=new Promise(this[Ps])}return this[st]=i,i}},Ue(en,Symbol.asyncIterator,function(){return this}),Ue(en,"return",function(){var t=this;return new Promise(function(r,n){t[ot].destroy(null,function(i){if(i){n(i);return}r(We(void 0,!0))})})}),en),zg),t0=function(t){var r,n=Object.create(e0,(r={},Ue(r,ot,{value:t,writable:!0}),Ue(r,Ge,{value:null,writable:!0}),Ue(r,it,{value:null,writable:!0}),Ue(r,Vt,{value:null,writable:!0}),Ue(r,tn,{value:t._readableState.endEmitted,writable:!0}),Ue(r,Ps,{value:function(s,o){var a=n[ot].read();a?(n[st]=null,n[Ge]=null,n[it]=null,s(We(a,!1))):(n[Ge]=s,n[it]=o)},writable:!0}),r));return n[st]=null,Qg(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[it];s!==null&&(n[st]=null,n[Ge]=null,n[it]=null,s(i)),n[Vt]=i;return}var o=n[Ge];o!==null&&(n[st]=null,n[Ge]=null,n[it]=null,o(We(void 0,!0))),n[tn]=!0}),t.on("readable",Jg.bind(null,n)),n};of.exports=t0});var cf=g((Kb,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(d){i.destroy(d)}}),a.apply(this,arguments)}return i}ff.exports=o0});var ws=g((Xb,Ef)=>{"use strict";Ef.exports=N;var Ct;N.ReadableState=_f;var Qb=B("events").EventEmitter,pf=function(t,r){return t.listeners(r).length},Kt=hs(),rn=B("buffer").Buffer,a0=global.Uint8Array||function(){};function l0(e){return rn.from(e)}function u0(e){return rn.isBuffer(e)||e instanceof a0}var Ls=B("util"),P;Ls&&Ls.debuglog?P=Ls.debuglog("stream"):P=function(){};var f0=Bu(),Fs=_s(),c0=gs(),h0=c0.getHighWaterMark,nn=He().codes,d0=nn.ERR_INVALID_ARG_TYPE,p0=nn.ERR_STREAM_PUSH_AFTER_EOF,_0=nn.ERR_METHOD_NOT_IMPLEMENTED,g0=nn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ot,Ms,Bs;tt()(N,Kt);var Yt=Fs.errorOrDestroy,Ds=["error","close","destroy","pause","resume"];function y0(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){Ct=Ct||rt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ct),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&&(Ot||(Ot=Os().StringDecoder),this.decoder=new Ot(e.encoding),this.encoding=e.encoding)}function N(e){if(Ct=Ct||rt(),!(this instanceof N))return new N(e);var t=this instanceof Ct;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)),Kt.call(this)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});N.prototype.destroy=Fs.destroy;N.prototype._undestroy=Fs.undestroy;N.prototype._destroy=function(e,t){t(e)};N.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=rn.from(e,t),t=""),n=!0),gf(this,e,t,!1,n)};N.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,v0(e,s);else{var o;if(i||(o=m0(s,t)),o)Yt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==rn.prototype&&(t=l0(t)),n)s.endEmitted?Yt(e,new g0):Ns(e,s,t,!0);else if(s.ended)Yt(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?Ns(e,s,t,!1):ks(e,s)):Ns(e,s,t,!1)}else n||(s.reading=!1,ks(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Ns(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&&sn(e)),ks(e,t)}function m0(e,t){var r;return!u0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new d0("chunk",["string","Buffer","Uint8Array"],t)),r}N.prototype.isPaused=function(){return this._readableState.flowing===!1};N.prototype.setEncoding=function(e){Ot||(Ot=Os().StringDecoder);var t=new Ot(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))}N.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?Is(this):sn(this),null;if(e=df(e,t),e===0&&t.ended)return t.length===0&&Is(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&&Is(this)),i!==null&&this.emit("data",i),i};function v0(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?sn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,yf(e)))}}function sn(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(yf,e))}function yf(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,qs(e)}function ks(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}N.prototype._read=function(e){Yt(this,new _0("_read()"))};N.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:y;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(R,x){P("onunpipe"),R===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,u())}function a(){P("onend"),e.end()}var l=x0(r);e.on("drain",l);var f=!1;function u(){P("cleanup"),e.removeListener("close",S),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",d),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",d);function d(R){P("ondata");var x=e.write(R);P("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&vf(n.pipes,e)!==-1)&&!f&&(P("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(R){P("onerror",R),y(),e.removeListener("error",c),pf(e,"error")===0&&Yt(e,R)}y0(e,"error",c);function S(){e.removeListener("finish",m),y()}e.once("close",S);function m(){P("onfinish"),e.removeListener("close",S),y()}e.once("finish",m);function y(){P("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(P("pipe resume"),r.resume()),e};function x0(e){return function(){var r=e._readableState;P("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&pf(e,"data")&&(r.flowing=!0,qs(e))}}N.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=vf(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)};N.prototype.on=function(e,t){var r=Kt.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?sn(this):n.reading||process.nextTick(S0,this)),r};N.prototype.addListener=N.prototype.on;N.prototype.removeListener=function(e,t){var r=Kt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(mf,this),r};N.prototype.removeAllListeners=function(e){var t=Kt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(mf,this),t};function mf(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)}N.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"),qs(e),t.flowing&&!t.reading&&e.read(0)}N.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 qs(e){var t=e._readableState;for(P("flow",t.flowing);t.flowing&&e.read()!==null;);}N.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<Ds.length;s++)e.on(Ds[s],this.emit.bind(this,Ds[s]));return this._read=function(o){P("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return Ms===void 0&&(Ms=af()),Ms(this)});Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});N._fromList=bf;Object.defineProperty(N.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 Is(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"&&(N.from=function(e,t){return Bs===void 0&&(Bs=cf()),Bs(N,e,t)});function vf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var js=g((Jb,Sf)=>{"use strict";Sf.exports=De;var on=He().codes,T0=on.ERR_METHOD_NOT_IMPLEMENTED,C0=on.ERR_MULTIPLE_CALLBACK,O0=on.ERR_TRANSFORM_ALREADY_TRANSFORMING,P0=on.ERR_TRANSFORM_WITH_LENGTH_0,an=rt();tt()(De,an);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);an.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){xf(e,t,r)}):xf(this,null,null)}De.prototype.push=function(e,t){return this._transformState.needTransform=!1,an.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){an.prototype._destroy.call(this,e,function(r){t(r)})};function xf(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((Zb,wf)=>{"use strict";wf.exports=Qt;var Rf=js();tt()(Qt,Rf);function Qt(e){if(!(this instanceof Qt))return new Qt(e);Rf.call(this,e)}Qt.prototype._transform=function(e,t,r){r(null,e)}});var Lf=g((zb,Pf)=>{"use strict";var Hs;function B0(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Of=He().codes,D0=Of.ERR_MISSING_ARGS,N0=Of.ERR_STREAM_DESTROYED;function Tf(e){if(e)throw e}function I0(e){return e.setHeader&&typeof e.abort=="function"}function k0(e,t,r,n){n=B0(n);var i=!1;e.on("close",function(){i=!0}),Hs===void 0&&(Hs=zr()),Hs(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,I0(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new N0("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 D0("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((_e,Jt)=>{var Xt=B("stream");process.env.READABLE_STREAM==="disable"&&Xt?(Jt.exports=Xt.Readable,Object.assign(Jt.exports,Xt),Jt.exports.Stream=Xt):(_e=Jt.exports=ws(),_e.Stream=Xt||_e,_e.Readable=_e,_e.Writable=xs(),_e.Duplex=rt(),_e.Transform=js(),_e.PassThrough=Af(),_e.finished=zr(),_e.pipeline=Lf())});var Nf=g((ev,Df)=>{"use strict";var{Buffer:be}=B("buffer"),Bf=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,Bf,{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||be.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]:be.concat(this._bufs,this.length);for(let d=0;d<this._bufs.length;d++)this._bufs[d].copy(t,f),f+=this._bufs[d].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=be.allocUnsafe(a));for(let d=o[0];d<this._bufs.length;d++){let c=this._bufs[d].length-u;if(l>c)this._bufs[d].copy(t,f,u),f+=c;else{this._bufs[d].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(be.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(be.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=be.from([e]):typeof e=="string"?e=be.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=be.from(e.buffer,e.byteOffset,e.byteLength):be.isBuffer(e)||(e=be.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[Bf]};Df.exports=H});var If=g((tv,ln)=>{"use strict";var $s=Mf().Duplex,H0=tt(),Zt=Nf();function ne(e){if(!(this instanceof ne))return new ne(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}Zt._init.call(this,e),$s.call(this)}H0(ne,$s);Object.assign(ne.prototype,Zt.prototype);ne.prototype._new=function(t){return new ne(t)};ne.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};ne.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)};ne.prototype.end=function(t){$s.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ne.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};ne.prototype._isBufferList=function(t){return t instanceof ne||t instanceof Zt||ne.isBufferList(t)};ne.isBufferList=Zt.isBufferList;ln.exports=ne;ln.exports.BufferListStream=ne;ln.exports.BufferList=Zt});import{constants as _y,existsSync as rr}from"fs";import{copyFile as gy,mkdir as rc,readFile as nc,rm as Xf,writeFile as yy}from"fs/promises";import{dirname as ic,extname as my,isAbsolute as by,resolve as vy,resolve as Mt}from"path";import{build as Js,transform as Ey}from"esbuild";var to=(e=0)=>t=>`\x1B[${t+e}m`,ro=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,no=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,U={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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},io=Object.keys(U.modifier),yn=Object.keys(U.color),mn=Object.keys(U.bgColor),so=[...yn,...mn];function pc(){let e=new Map;for(let[t,r]of Object.entries(U)){for(let[n,i]of Object.entries(r))U[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=U[n],e.set(i[0],i[1]);Object.defineProperty(U,t,{value:r,enumerable:!1})}return Object.defineProperty(U,"codes",{value:e,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=to(),U.color.ansi256=ro(),U.color.ansi16m=no(),U.bgColor.ansi=to(10),U.bgColor.ansi256=ro(10),U.bgColor.ansi16m=no(10),Object.defineProperties(U,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>U.rgbToAnsi256(...U.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>U.ansi256ToAnsi(U.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>U.ansi256ToAnsi(U.hexToAnsi256(t)),enumerable:!1}}),U}var _c=pc(),ye=_c;import bn from"node:process";import gc from"node:os";import oo from"node:tty";function ce(e,t=bn.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}=bn,ar;ce("no-color")||ce("no-colors")||ce("color=false")||ce("color=never")?ar=0:(ce("color")||ce("colors")||ce("color=true")||ce("color=always"))&&(ar=1);function yc(){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 mc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function bc(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=yc();n!==void 0&&(ar=n);let i=r?ar:n;if(i===0)return 0;if(r){if(ce("color=16m")||ce("color=full")||ce("color=truecolor"))return 3;if(ce("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(bn.platform==="win32"){let o=gc.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 ao(e,t={}){let r=bc(e,{streamIsTTY:e&&e.isTTY,...t});return mc(r)}var vc={stdout:ao({isTTY:oo.isatty(1)}),stderr:ao({isTTY:oo.isatty(2)})},lo=vc;function uo(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function fo(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
6
6
  `:`
7
7
  `)+r,i=n+1,n=e.indexOf(`
8
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:co,stderr:ho}=lo,vn=Symbol("GENERATOR"),ft=Symbol("STYLER"),Bt=Symbol("IS_EMPTY"),po=["ansi","ansi","ansi256","ansi16m"],ct=Object.create(null),vc=(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=co?co.level:0;e.level=t.level===void 0?r:t.level};var Ec=e=>{let t=(...r)=>r.join(" ");return vc(t,e),Object.setPrototypeOf(t,Dt.prototype),t};function Dt(e){return Ec(e)}Object.setPrototypeOf(Dt.prototype,Function.prototype);for(let[e,t]of Object.entries(ye))ct[e]={get(){let r=lr(this,xn(t.open,t.close,this[ft]),this[Bt]);return Object.defineProperty(this,e,{value:r}),r}};ct.visible={get(){let e=lr(this,this[ft],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var En=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ye[r].ansi16m(...n):t==="ansi256"?ye[r].ansi256(ye.rgbToAnsi256(...n)):ye[r].ansi(ye.rgbToAnsi(...n)):e==="hex"?En("rgb",t,r,...ye.hexToRgb(...n)):ye[r][e](...n),xc=["rgb","hex","ansi256"];for(let e of xc){ct[e]={get(){let{level:r}=this;return function(...n){let i=xn(En(e,po[r],"color",...n),ye.color.close,this[ft]);return lr(this,i,this[Bt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ct[t]={get(){let{level:r}=this;return function(...n){let i=xn(En(e,po[r],"bgColor",...n),ye.bgColor.close,this[ft]);return lr(this,i,this[Bt])}}}}var Sc=Object.defineProperties(()=>{},{...ct,level:{enumerable:!0,get(){return this[vn].level},set(e){this[vn].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}},lr=(e,t,r)=>{let n=(...i)=>Rc(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Sc),n[vn]=e,n[ft]=t,n[Bt]=r,n},Rc=(e,t)=>{if(e.level<=0||!t)return e[Bt]?"":t;let r=e[ft];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=uo(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
9
- `);return s!==-1&&(t=fo(t,i,n,s)),n+t+i};Object.defineProperties(Dt.prototype,ct);var wc=Dt(),$y=Dt({level:ho?ho.level:0});var j=wc;var zs=ut(tu(),1);import{env as Xf}from"process";import fn from"node:process";import _u from"node:process";var hu=ut(su(),1),du=ut(cu(),1);import O_ from"node:process";var P_=(0,hu.default)(()=>{(0,du.default)(()=>{O_.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),pu=P_;var Ur=!1,wt={};wt.show=(e=_u.stderr)=>{!e.isTTY||(Ur=!1,e.write("\x1B[?25h"))};wt.hide=(e=_u.stderr)=>{!e.isTTY||(pu(),Ur=!0,e.write("\x1B[?25l"))};wt.toggle=(e,t)=>{e!==void 0&&(Ur=e),Ur?wt.show(t):wt.hide(t)};var as=wt;var zt=ut(bu(),1);import me from"node:process";function jt(){return me.platform!=="win32"?me.env.TERM!=="linux":Boolean(me.env.CI)||Boolean(me.env.WT_SESSION)||Boolean(me.env.TERMINUS_SUBLIME)||me.env.ConEmuTask==="{cmd::Cmder}"||me.env.TERM_PROGRAM==="Terminus-Sublime"||me.env.TERM_PROGRAM==="vscode"||me.env.TERM==="xterm-256color"||me.env.TERM==="alacritty"||me.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var M_={info:j.blue("ℹ"),success:j.green("✔"),warning:j.yellow("⚠"),error:j.red("✖")},B_={info:j.blue("i"),success:j.green("√"),warning:j.yellow("‼"),error:j.red("×")},D_=jt()?M_:B_,Ht=D_;function ls({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 us(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ls(),"")}var Ff=ut(Cu(),1);function cs({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var kf=ut(If(),1);import ve from"node:process";import H0 from"node:readline";var $0=3,un=class{#r=0;#f=new kf.BufferListStream;#i;#n;constructor(){this.#f.pipe(ve.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=ve;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes($0)&&ve.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(ve.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(){ve.platform!=="win32"&&(this.#n=H0.createInterface({input:ve.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{ve.listenerCount("SIGINT")===0?ve.emit("SIGINT"):(this.#n.close(),ve.kill(ve.pid,"SIGINT"))}))}_realStop(){ve.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var cn,Us=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#h;#a;#l;#u;#d;#s;color;constructor(t){cn||(cn=new un),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:fn.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:cs({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,fn.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(!jt())this.#o=zt.default.line;else if(t===void 0)this.#o=zt.default.dots;else if(t!=="default"&&zt.default[t])this.#o=zt.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 us(" ".repeat(this.#u)+r+"--"+this.#d).split(`
8
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:co,stderr:ho}=lo,vn=Symbol("GENERATOR"),ft=Symbol("STYLER"),Bt=Symbol("IS_EMPTY"),po=["ansi","ansi","ansi256","ansi16m"],ct=Object.create(null),Ec=(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=co?co.level:0;e.level=t.level===void 0?r:t.level};var xc=e=>{let t=(...r)=>r.join(" ");return Ec(t,e),Object.setPrototypeOf(t,Dt.prototype),t};function Dt(e){return xc(e)}Object.setPrototypeOf(Dt.prototype,Function.prototype);for(let[e,t]of Object.entries(ye))ct[e]={get(){let r=lr(this,xn(t.open,t.close,this[ft]),this[Bt]);return Object.defineProperty(this,e,{value:r}),r}};ct.visible={get(){let e=lr(this,this[ft],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var En=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ye[r].ansi16m(...n):t==="ansi256"?ye[r].ansi256(ye.rgbToAnsi256(...n)):ye[r].ansi(ye.rgbToAnsi(...n)):e==="hex"?En("rgb",t,r,...ye.hexToRgb(...n)):ye[r][e](...n),Sc=["rgb","hex","ansi256"];for(let e of Sc){ct[e]={get(){let{level:r}=this;return function(...n){let i=xn(En(e,po[r],"color",...n),ye.color.close,this[ft]);return lr(this,i,this[Bt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ct[t]={get(){let{level:r}=this;return function(...n){let i=xn(En(e,po[r],"bgColor",...n),ye.bgColor.close,this[ft]);return lr(this,i,this[Bt])}}}}var Rc=Object.defineProperties(()=>{},{...ct,level:{enumerable:!0,get(){return this[vn].level},set(e){this[vn].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}},lr=(e,t,r)=>{let n=(...i)=>wc(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Rc),n[vn]=e,n[ft]=t,n[Bt]=r,n},wc=(e,t)=>{if(e.level<=0||!t)return e[Bt]?"":t;let r=e[ft];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=uo(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
9
+ `);return s!==-1&&(t=fo(t,i,n,s)),n+t+i};Object.defineProperties(Dt.prototype,ct);var Ac=Dt(),$y=Dt({level:ho?ho.level:0});var j=Ac;var zs=ut(tu(),1);import{env as Jf}from"process";import fn from"node:process";import _u from"node:process";var hu=ut(su(),1),du=ut(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 Ur=!1,wt={};wt.show=(e=_u.stderr)=>{!e.isTTY||(Ur=!1,e.write("\x1B[?25h"))};wt.hide=(e=_u.stderr)=>{!e.isTTY||(pu(),Ur=!0,e.write("\x1B[?25l"))};wt.toggle=(e,t)=>{e!==void 0&&(Ur=e),Ur?wt.show(t):wt.hide(t)};var as=wt;var zt=ut(bu(),1);import me from"node:process";function jt(){return me.platform!=="win32"?me.env.TERM!=="linux":Boolean(me.env.CI)||Boolean(me.env.WT_SESSION)||Boolean(me.env.TERMINUS_SUBLIME)||me.env.ConEmuTask==="{cmd::Cmder}"||me.env.TERM_PROGRAM==="Terminus-Sublime"||me.env.TERM_PROGRAM==="vscode"||me.env.TERM==="xterm-256color"||me.env.TERM==="alacritty"||me.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var B_={info:j.blue("ℹ"),success:j.green("✔"),warning:j.yellow("⚠"),error:j.red("✖")},D_={info:j.blue("i"),success:j.green("√"),warning:j.yellow("‼"),error:j.red("×")},N_=jt()?B_:D_,Ht=N_;function ls({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 us(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ls(),"")}var Ff=ut(Cu(),1);function cs({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var kf=ut(If(),1);import ve from"node:process";import $0 from"node:readline";var U0=3,un=class{#r=0;#f=new kf.BufferListStream;#i;#n;constructor(){this.#f.pipe(ve.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=ve;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(U0)&&ve.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(ve.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(){ve.platform!=="win32"&&(this.#n=$0.createInterface({input:ve.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{ve.listenerCount("SIGINT")===0?ve.emit("SIGINT"):(this.#n.close(),ve.kill(ve.pid,"SIGINT"))}))}_realStop(){ve.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var cn,Us=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#h;#a;#l;#u;#d;#s;color;constructor(t){cn||(cn=new un),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:fn.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:cs({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,fn.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(!jt())this.#o=zt.default.line;else if(t===void 0)this.#o=zt.default.dots;else if(t!=="default"&&zt.default[t])this.#o=zt.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 us(" ".repeat(this.#u)+r+"--"+this.#d).split(`
10
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=j[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&&as.hide(this.#t),this.#e.discardStdin&&fn.stdin.isTTY&&(this.#f=!0,cn.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&&as.show(this.#t),this.#e.discardStdin&&fn.stdin.isTTY&&this.#f&&(cn.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Ht.success,text:t})}fail(t){return this.stopAndPersist({symbol:Ht.error,text:t})}warn(t){return this.stopAndPersist({symbol:Ht.warning,text:t})}info(t){return this.stopAndPersist({symbol:Ht.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 Gs(e){return new Us(e)}var qf={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(qf.NODE_ENV=e.NODE_ENV)}catch{}var hn=typeof window>"u"&&qf.NODE_ENV==="development";import{Console as U0}from"console";var at=new U0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),Ws=e=>{if(hn){let{name:t}=e;return{log(...r){let n=j.bgBlue.white(` [${t}] `);at.log(`${n}`,`
12
+ `),this}};function Gs(e){return new Us(e)}var qf={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(qf.NODE_ENV=e.NODE_ENV)}catch{}var hn=typeof window>"u"&&qf.NODE_ENV==="development";import{Console as G0}from"console";var at=new G0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),Ws=e=>{if(hn){let{name:t}=e;return{log(...r){let n=j.bgBlue.white(` [${t}] `);at.log(`${n}`,`
13
13
 
14
14
  `,...r),at.log()},group(){at.log();let r=j.bgBlue.white(` [${t}] `);at.group(r),at.log()},groupEnd(){at.log(`
15
15
  `,"-".repeat(20),`
16
- `),at.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var lt=(...e)=>{console.log(),console.log(...e),console.log()};import{spawn as G0,execSync as W0}from"child_process";import Xs from"node:process";import K0 from"node:os";import Uf from"node:tty";typeof document>"u"&&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 jf=(e=0)=>t=>`\x1B[${t+e}m`,Hf=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,$f=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function V0(){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=jf(),t.color.ansi256=Hf(),t.color.ansi16m=$f(),t.bgColor.ansi=jf(10),t.bgColor.ansi256=Hf(10),t.bgColor.ansi16m=$f(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 Y0=V0(),Pe=Y0;function ge(e,t=Xs.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:J}=Xs,dn;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?dn=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(dn=1);function Q0(){if("FORCE_COLOR"in J)return J.FORCE_COLOR==="true"?1:J.FORCE_COLOR==="false"?0:J.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(J.FORCE_COLOR,10),3)}function X0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function J0(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Q0();n!==void 0&&(dn=n);let i=r?dn:n;if(i===0)return 0;if(r){if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(J.TERM==="dumb")return s;if(Xs.platform==="win32"){let o=K0.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in J)||J.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in J&&"AGENT_NAME"in J)return 1;if(J.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in J){let o=Number.parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:s}function Gf(e,t={}){let r=J0(e,{streamIsTTY:e&&e.isTTY,...t});return X0(r)}var Z0={stdout:Gf({isTTY:Uf.isatty(1)}),stderr:Gf({isTTY:Uf.isatty(2)})},z0=Z0;function ey(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 ty(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
16
+ `),at.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var lt=(...e)=>{console.log(),console.log(...e),console.log()};import{spawn as Y0,execSync as K0}from"child_process";import Xs from"node:process";import J0 from"node:os";import Gf from"node:tty";if(typeof process<"u"){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 W0={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},V0={"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(" ")}`}},jf=(e,t,r)=>{let n={...W0,...t},i={...V0,...r},s=a=>{let l=process.platform,f=n[l];if(f)return f(a);let[u,...d]=a.split(" ");return{cmd:u,args:d}},o=(a=>{let l=Object.entries(i);for(let[f,u]of l)if(a.startsWith(f)){let d=process.platform,c=u[d];if(!c)break;let S=a.slice(f.length).trim().split(" ");return c(S)}return a})(e);return s(o)};if(typeof process<"u"){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)}}if(typeof process<"u"){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 Hf=(e=0)=>t=>`\x1B[${t+e}m`,$f=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Uf=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function Q0(){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=Hf(),t.color.ansi256=$f(),t.color.ansi16m=Uf(),t.bgColor.ansi=Hf(10),t.bgColor.ansi256=$f(10),t.bgColor.ansi16m=Uf(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 X0=Q0(),Pe=X0;function ge(e,t=Xs.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:J}=Xs,dn;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?dn=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(dn=1);function Z0(){if("FORCE_COLOR"in J)return J.FORCE_COLOR==="true"?1:J.FORCE_COLOR==="false"?0:J.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(J.FORCE_COLOR,10),3)}function z0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ey(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Z0();n!==void 0&&(dn=n);let i=r?dn:n;if(i===0)return 0;if(r){if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(J.TERM==="dumb")return s;if(Xs.platform==="win32"){let o=J0.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in J)||J.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in J&&"AGENT_NAME"in J)return 1;if(J.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in J){let o=Number.parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:s}function Wf(e,t={}){let r=ey(e,{streamIsTTY:e&&e.isTTY,...t});return z0(r)}var ty={stdout:Wf({isTTY:Gf.isatty(1)}),stderr:Wf({isTTY:Gf.isatty(2)})},ry=ty;function ny(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 iy(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
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Wf,stderr:Vf}=z0,Vs=Symbol("GENERATOR"),Pt=Symbol("STYLER"),er=Symbol("IS_EMPTY"),Yf=["ansi","ansi","ansi256","ansi16m"],Lt=Object.create(null),ry=(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=Wf?Wf.level:0;e.level=t.level===void 0?r:t.level},ny=e=>{let t=(...r)=>r.join(" ");return ry(t,e),Object.setPrototypeOf(t,tr.prototype),t};function tr(e){return ny(e)}Object.setPrototypeOf(tr.prototype,Function.prototype);for(let[e,t]of Object.entries(Pe))Lt[e]={get(){let r=pn(this,Ks(t.open,t.close,this[Pt]),this[er]);return Object.defineProperty(this,e,{value:r}),r}};Lt.visible={get(){let e=pn(this,this[Pt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ys=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Pe[r].ansi16m(...n):t==="ansi256"?Pe[r].ansi256(Pe.rgbToAnsi256(...n)):Pe[r].ansi(Pe.rgbToAnsi(...n)):e==="hex"?Ys("rgb",t,r,...Pe.hexToRgb(...n)):Pe[r][e](...n),iy=["rgb","hex","ansi256"];for(let e of iy){Lt[e]={get(){let{level:r}=this;return function(...n){let i=Ks(Ys(e,Yf[r],"color",...n),Pe.color.close,this[Pt]);return pn(this,i,this[er])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Lt[t]={get(){let{level:r}=this;return function(...n){let i=Ks(Ys(e,Yf[r],"bgColor",...n),Pe.bgColor.close,this[Pt]);return pn(this,i,this[er])}}}}var sy=Object.defineProperties(()=>{},{...Lt,level:{enumerable:!0,get(){return this[Vs].level},set(e){this[Vs].level=e}}}),Ks=(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}},pn=(e,t,r)=>{let n=(...i)=>oy(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,sy),n[Vs]=e,n[Pt]=t,n[er]=r,n},oy=(e,t)=>{if(e.level<=0||!t)return e[er]?"":t;let r=e[Pt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=ey(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
20
- `);return s!==-1&&(t=ty(t,i,n,s)),n+t+i};Object.defineProperties(tr.prototype,Lt);var ay=tr(),Mv=tr({level:Vf?Vf.level:0}),ly=ay,uy={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},fy={"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(" ")}`}},cy=(e,t,r)=>{let n={...uy,...t},i={...fy,...r},s=a=>{let l=process.platform,f=n[l];if(f)return f(a);let[u,...d]=a.split(" ");return{cmd:u,args:d}},o=(a=>{let l=Object.entries(i);for(let[f,u]of l)if(a.startsWith(f)){let d=process.platform,c=u[d];if(!c)break;let S=a.slice(f.length).trim().split(" ");return c(S)}return a})(e);return s(o)},hy=process.platform==="linux"||process.platform==="darwin",Qs=process.platform==="win32",dy={stdio:"pipe",shell:!0,detached:!Qs,env:process.env},py={log:!0,commandTranslations:{},shellTranslations:{},...dy},Kf=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=py)=>{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&&hy&&(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}=cy(s,r,t);return e&&console.log(ly.dim(`
19
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Vf,stderr:Yf}=ry,Vs=Symbol("GENERATOR"),Pt=Symbol("STYLER"),er=Symbol("IS_EMPTY"),Kf=["ansi","ansi","ansi256","ansi16m"],Lt=Object.create(null),sy=(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},oy=e=>{let t=(...r)=>r.join(" ");return sy(t,e),Object.setPrototypeOf(t,tr.prototype),t};function tr(e){return oy(e)}Object.setPrototypeOf(tr.prototype,Function.prototype);for(let[e,t]of Object.entries(Pe))Lt[e]={get(){let r=pn(this,Ks(t.open,t.close,this[Pt]),this[er]);return Object.defineProperty(this,e,{value:r}),r}};Lt.visible={get(){let e=pn(this,this[Pt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ys=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Pe[r].ansi16m(...n):t==="ansi256"?Pe[r].ansi256(Pe.rgbToAnsi256(...n)):Pe[r].ansi(Pe.rgbToAnsi(...n)):e==="hex"?Ys("rgb",t,r,...Pe.hexToRgb(...n)):Pe[r][e](...n),ay=["rgb","hex","ansi256"];for(let e of ay){Lt[e]={get(){let{level:r}=this;return function(...n){let i=Ks(Ys(e,Kf[r],"color",...n),Pe.color.close,this[Pt]);return pn(this,i,this[er])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Lt[t]={get(){let{level:r}=this;return function(...n){let i=Ks(Ys(e,Kf[r],"bgColor",...n),Pe.bgColor.close,this[Pt]);return pn(this,i,this[er])}}}}var ly=Object.defineProperties(()=>{},{...Lt,level:{enumerable:!0,get(){return this[Vs].level},set(e){this[Vs].level=e}}}),Ks=(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}},pn=(e,t,r)=>{let n=(...i)=>uy(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ly),n[Vs]=e,n[Pt]=t,n[er]=r,n},uy=(e,t)=>{if(e.level<=0||!t)return e[er]?"":t;let r=e[Pt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=ny(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
20
+ `);return s!==-1&&(t=iy(t,i,n,s)),n+t+i};Object.defineProperties(tr.prototype,Lt);var fy=tr(),Bv=tr({level:Yf?Yf.level:0}),cy=fy,hy=process.platform==="linux"||process.platform==="darwin",Qs=process.platform==="win32",dy={stdio:"pipe",shell:!0,detached:!Qs,env:process.env},py={log:!0,commandTranslations:{},shellTranslations:{},...dy},Qf=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=py)=>{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&&hy&&(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}=jf(s,r,t);return e&&console.log(cy.dim(`
21
21
  $ ${o} ${a.join(" ")}
22
- `)),await new Promise((l,f)=>{i=G0(o,a,n);let u="",d="";if(!i)throw new Error("Child process was not set.");let c=S=>{i=null;let m={code:S,stdout:u,stderr:d};S===0||S===1&&!Qs?l(m):f(m)};i.stdout?.on("data",S=>{u+=S.toString()}),i.stderr?.on("data",S=>{d+=S.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(Qs)W0(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{getEmittedFile as ic,getWorkingDirs as xy}from"../../utils/cwd.js";import{isJsOrTs as Sy,isTs as Zs,isTsxOrJsx as _n}from"../../utils/resolve.js";import{emitTsDeclarations as Ry}from"./lib/emitTsDeclarations.js";import{getPackageJsonFile as wy}from"../../utils/packageJson.js";import{normalizeImportSpecifiers as Jf}from"../normalize/index.js";import{readStdin as Ay}from"../../utils/stdin.js";import{showProgress as Ve}from"../../utils/showProgress.js";import{relativeExternsPlugin as Ty}from"../../specification/externs.js";var Cy=`import React from "react";
22
+ `)),await new Promise((l,f)=>{i=Y0(o,a,n);let u="",d="";if(!i)throw new Error("Child process was not set.");let c=S=>{i=null;let m={code:S,stdout:u,stderr:d};S===0||S===1&&!Qs?l(m):f(m)};i.stdout?.on("data",S=>{u+=S.toString()}),i.stderr?.on("data",S=>{d+=S.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(Qs)K0(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{getEmittedFile as sc,getWorkingDirs as xy}from"../../utils/cwd.js";import{isJsOrTs as Sy,isTs as Zs,isTsxOrJsx as _n}from"../../utils/resolve.js";import{emitTsDeclarations as Ry}from"./lib/emitTsDeclarations.js";import{getPackageJsonFile as wy}from"../../utils/packageJson.js";import{normalizeImportSpecifiers as Zf}from"../normalize/index.js";import{readStdin as Ay}from"../../utils/stdin.js";import{showProgress as Ve}from"../../utils/showProgress.js";import{relativeExternsPlugin as Ty}from"../../specification/externs.js";var Cy=`import React from "react";
23
23
  import ReactDOM from "react-dom";
24
- `,Zf=e=>{let t=` ${e} `;lt(j.bgBlue(j.bold(j.white(t))))},tE=e=>{let t=` ${e} `;lt(j.bgRed(j.bold(j.white(t))))},Oy=async()=>{let e;if(rr("dist")||await tc("dist"),rr("dist/package.json")?e=JSON.parse(await rc("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await yy("dist/package.json",JSON.stringify(e,null,2))},zf=(e,t,r)=>{t=Mt(t);let n=ic(t);return{stdin:{contents:e,sourcefile:t,resolveDir:nc(t),loader:r},outdir:void 0,outfile:n}},ec=async(e,t,r)=>{e=Mt(e),t=Mt(t);let o=["yarn tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${e}`,`-o ${t}`];rr(Mt(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=Kf({log:!1,stdio:"ignore"}),l=o.join(" "),{code:f,stdout:u,stderr:d}=await a.run(l);if(f!==0)throw new Error(`Building CSS bundle exited with code ${f} for ${e}.
24
+ `,zf=e=>{let t=` ${e} `;lt(j.bgBlue(j.bold(j.white(t))))},sE=e=>{let t=` ${e} `;lt(j.bgRed(j.bold(j.white(t))))},Oy=async()=>{let e;if(rr("dist")||await rc("dist"),rr("dist/package.json")?e=JSON.parse(await nc("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await yy("dist/package.json",JSON.stringify(e,null,2))},ec=(e,t,r)=>{t=Mt(t);let n=sc(t);return{stdin:{contents:e,sourcefile:t,resolveDir:ic(t),loader:r},outdir:void 0,outfile:n}},tc=async(e,t,r)=>{e=Mt(e),t=Mt(t);let o=["yarn tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${e}`,`-o ${t}`];rr(Mt(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=Qf({log:!1,stdio:"ignore"}),l=o.join(" "),{code:f,stdout:u,stderr:d}=await a.run(l);if(f!==0)throw new Error(`Building CSS bundle exited with code ${f} for ${e}.
25
25
  \rTried running: ${l}.
26
26
  \rError: ${u+d}`)},Py=`
27
27
  if(typeof process<"u"){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)}}
28
- `,Ly=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:f=void 0})=>{Xf.NODE_ENV=n?"development":"production";let u=Ws(Ly);n&&(s=!0);let{cwd:d,srcDir:c,outDir:S}=xy(),m=await wy(),y=JSON.parse(m),R={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")}},x=["esbuild","*.png"],D=Mt(d,"tsconfig.export.json"),q=rr(D),Q={...R,tsconfig:q?D:void 0,bundle:i,absWorkingDir:d,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:y?.platform??"node",write:!a,external:i?x:void 0,banner:i?{js:Py}:void 0,plugins:[Ty]},w="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:f,noWrite:a}),f||(lt(j.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?w=l:w=await Ay();let E={...R,sourcefile:f,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await Ey(w,E)).code;{let L=zf(w,f,"tsx");await Ve(async()=>await Js({...Q,...L}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),lt(j.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:e,dev:n,runtimeOnly:s}),Zf(`${j.bold("TS Module")} [${Xf.NODE_ENV}]`);let F=zs.default.sync(e,{cwd:d}).filter(E=>my(E)!==".d.ts").map(E=>Mt(E));if(by(e)){F.length||F.push(e);let E=e.replace(c,S).replace(Zs,".js").replace(_n,".js");u.log("Cleaning emitted file:",{outfile:E}),await Qf(E,{force:!0})}else u.log("Cleaning old output:",{outDir:S}),await Qf(S,{force:!0,recursive:!0});let C=F.filter(E=>_n.test(E));u.log("Compiling TSX files:",{tsxJsxInput:C});let A=C.filter(E=>!E.endsWith(".d.ts"));await Ve(async()=>await Promise.all(A.map(async E=>{let L=await rc(E,"utf-8"),ae=Cy+L,h=zf(ae,E,"tsx");await Js({...Q,...h})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let I=F.filter(E=>Zs.test(E)).filter(E=>!_n.test(E));u.log("Compiling TS files:",{tsJsInput:I}),await Ve(async()=>await Js({...Q,entryPoints:I.filter(E=>!E.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."});let Z=F.filter(E=>!Sy.test(E));if(await Ve(async()=>{for(let E of Z){let L=ic(E);u.log("Copying non-source file:",{file:E,emittedFile:L}),await tc(nc(L),{recursive:!0}),await gy(E,L,_y.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let E=e.replace(c,S).replace(/^(\.\/)?src\//,"dist/").replace(Zs,".js").replace(_n,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:E}),await Ve(async()=>await Jf(E.endsWith(".js")?E:`${E}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."}),await Jf(E.endsWith(".js")?E:`${E}.js`)}if(await Oy()&&Gs('Forced "type": "module" in output.').succeed(),!s){if(!o)if(rr(vy(t))){u.log("Building styles for production.");let{style:E="./dist/bundle.css"}=y;if(u.log("Building style bundle.",{bundleInput:t,bundleOutput:E,dev:n}),await Ve(async()=>await ec(t,E,n),{start:"Bundling styles with Tailwind.",success:"Bundled styles with Tailwind.",error:"Failed to bundle styles."}),i){u.log("Bundling all styles.");let L=zs.default.sync("dist/**/*.css");await Ve(async()=>await Promise.all(L.map(async ae=>await ec(ae,ae,n))),{start:"Bundling emitted styles",success:`Bundled all styles to ${j.bold(E)}.`,error:"Failed to bundle styles."})}}else lt(j.grey(`Bundle styles not found for this project.
29
- \rChecked: `+j.bold(t)));Zf("Running post-build setup."),await Ve(async()=>await Ry(),{start:"Generating type declarations.",success:`Generated declarations for ${F.length} files.`,error:"Failed to generate type declarations."}),lt(j.green("Build complete."))}};export{tE as bannerError,Zf as bannerLog,Ly as build};
28
+ `,Ly=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:f=void 0})=>{Jf.NODE_ENV=n?"development":"production";let u=Ws(Ly);n&&(s=!0);let{cwd:d,srcDir:c,outDir:S}=xy(),m=await wy(),y=JSON.parse(m),R={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")}},x=["esbuild","*.png"],D=Mt(d,"tsconfig.export.json"),q=rr(D),Q={...R,tsconfig:q?D:void 0,bundle:i,absWorkingDir:d,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:y?.platform??"node",write:!a,external:i?x:void 0,banner:i?{js:Py}:void 0,plugins:[Ty]},w="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:f,noWrite:a}),f||(lt(j.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?w=l:w=await Ay();let E={...R,sourcefile:f,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await Ey(w,E)).code;{let L=ec(w,f,"tsx");await Ve(async()=>await Js({...Q,...L}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),lt(j.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:e,dev:n,runtimeOnly:s}),zf(`${j.bold("TS Module")} [${Jf.NODE_ENV}]`);let F=zs.default.sync(e,{cwd:d}).filter(E=>my(E)!==".d.ts").map(E=>Mt(E));if(by(e)){F.length||F.push(e);let E=e.replace(c,S).replace(Zs,".js").replace(_n,".js");u.log("Cleaning emitted file:",{outfile:E}),await Xf(E,{force:!0})}else u.log("Cleaning old output:",{outDir:S}),await Xf(S,{force:!0,recursive:!0});let C=F.filter(E=>_n.test(E));u.log("Compiling TSX files:",{tsxJsxInput:C});let A=C.filter(E=>!E.endsWith(".d.ts"));await Ve(async()=>await Promise.all(A.map(async E=>{let L=await nc(E,"utf-8"),ae=Cy+L,h=ec(ae,E,"tsx");await Js({...Q,...h})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let I=F.filter(E=>Zs.test(E)).filter(E=>!_n.test(E));u.log("Compiling TS files:",{tsJsInput:I}),await Ve(async()=>await Js({...Q,entryPoints:I.filter(E=>!E.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."});let Z=F.filter(E=>!Sy.test(E));if(await Ve(async()=>{for(let E of Z){let L=sc(E);u.log("Copying non-source file:",{file:E,emittedFile:L}),await rc(ic(L),{recursive:!0}),await gy(E,L,_y.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let E=e.replace(c,S).replace(/^(\.\/)?src\//,"dist/").replace(Zs,".js").replace(_n,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:E}),await Ve(async()=>await Zf(E.endsWith(".js")?E:`${E}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."}),await Zf(E.endsWith(".js")?E:`${E}.js`)}if(await Oy()&&Gs('Forced "type": "module" in output.').succeed(),!s){if(!o)if(rr(vy(t))){u.log("Building styles for production.");let{style:E="./dist/bundle.css"}=y;if(u.log("Building style bundle.",{bundleInput:t,bundleOutput:E,dev:n}),await Ve(async()=>await tc(t,E,n),{start:"Bundling styles with Tailwind.",success:"Bundled styles with Tailwind.",error:"Failed to bundle styles."}),i){u.log("Bundling all styles.");let L=zs.default.sync("dist/**/*.css");await Ve(async()=>await Promise.all(L.map(async ae=>await tc(ae,ae,n))),{start:"Bundling emitted styles",success:`Bundled all styles to ${j.bold(E)}.`,error:"Failed to bundle styles."})}}else lt(j.grey(`Bundle styles not found for this project.
29
+ \rChecked: `+j.bold(t)));zf("Running post-build setup."),await Ve(async()=>await Ry(),{start:"Generating type declarations.",success:`Generated declarations for ${F.length} files.`,error:"Failed to generate type declarations."}),lt(j.green("Build complete."))}};export{sE as bannerError,zf as bannerLog,Ly as build};
30
30
  /*!
31
31
  * fill-range <https://github.com/jonschlinkert/fill-range>
32
32
  *