@tsmodule/tsmodule 34.0.2 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,36 @@
1
1
 
2
2
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
3
 
4
- var nh=Object.create;var eo=Object.defineProperty;var ih=Object.getOwnPropertyDescriptor;var sh=Object.getOwnPropertyNames;var oh=Object.getPrototypeOf,ah=Object.prototype.hasOwnProperty;var w=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var uh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sh(t))!ah.call(e,i)&&i!==r&&eo(e,i,{get:()=>t[i],enumerable:!(n=ih(t,i))||n.enumerable});return e};var je=(e,t,r)=>(r=e!=null?nh(oh(e)):{},uh(t||!e||!e.__esModule?eo(r,"default",{value:e,enumerable:!0}):r,e));var ho=g(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.splitWhen=gt.flatten=void 0;function Eh(e){return e.reduce((t,r)=>[].concat(t,r),[])}gt.flatten=Eh;function Sh(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}gt.splitWhen=Sh});var po=g(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.isEnoentCodeError=void 0;function Rh(e){return e.code==="ENOENT"}gr.isEnoentCodeError=Rh});var go=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.createDirentFromStats=void 0;var _o=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 wh(e,t){return new _o(e,t)}mr.createDirentFromStats=wh});var mo=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeLeadingDotSegment=we.escape=we.makeAbsolute=we.unixify=void 0;var Ah=w("path"),Th=2,Ch=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Oh(e){return e.replace(/\\/g,"/")}we.unixify=Oh;function Ph(e,t){return Ah.resolve(e,t)}we.makeAbsolute=Ph;function Lh(e){return e.replace(Ch,"\\$2")}we.escape=Lh;function Dh(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Th)}return e}we.removeLeadingDotSegment=Dh});var bo=g((Eb,yo)=>{yo.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Eo=g((Sb,xo)=>{var Mh=bo(),vo={"{":"}","(":")","[":"]"},Bh=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 u=vo[a];if(u){var f=e.indexOf(u,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},Nh=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=vo[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(Mh(t))return!0;var n=Bh;return r&&r.strict===!1&&(n=Nh),n(t)}});var Ro=g((Rb,So)=>{"use strict";var Ih=Eo(),kh=w("path").posix.dirname,Fh=w("os").platform()==="win32",Dn="/",qh=/\\/g,jh=/[\{\[].*[\}\]]$/,$h=/(^|[^\\])([\{\[]|\([^\)]+$)/,Hh=/\\([\!\*\?\|\[\]\(\)\{\}])/g;So.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Fh&&t.indexOf(Dn)<0&&(t=t.replace(qh,Dn)),jh.test(t)&&(t+=Dn),t+="a";do t=kh(t);while(Ih(t)||$h.test(t));return t.replace(Hh,"$1")}});var yr=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 br=g((Ab,Ao)=>{"use strict";var wo=yr();Ao.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&wo.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&wo.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var Co=g((Tb,To)=>{"use strict";To.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ko=g((Cb,Io)=>{"use strict";var Oo=Co(),ze=(e,t,r)=>{if(Oo(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Oo(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),u=e+":"+t+"="+i+s+o+a;if(ze.cache.hasOwnProperty(u))return ze.cache[u].result;let f=Math.min(e,t),l=Math.max(e,t);if(Math.abs(f-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let h=No(e)||No(t),c={min:e,max:t,a:f,b:l},E=[],y=[];if(h&&(c.isPadded=h,c.maxLen=String(c.max).length),f<0){let m=l<0?Math.abs(l):1;y=Po(m,Math.abs(f),c,n),f=c.a=0}return l>=0&&(E=Po(f,l,c,n)),c.negatives=y,c.positives=E,c.result=Uh(y,E,n),n.capture===!0?c.result=`(${c.result})`:n.wrap!==!1&&E.length+y.length>1&&(c.result=`(?:${c.result})`),ze.cache[u]=c,c.result};function Uh(e,t,r){let n=Mn(e,t,"-",!1,r)||[],i=Mn(t,e,"",!1,r)||[],s=Mn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Gh(e,t){let r=1,n=1,i=Do(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Do(e,r);for(i=Mo(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Mo(t+1,n)-1;return s=[...s],s.sort(Yh),s}function Wh(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Vh(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,f]=n[a];u===f?s+=u:u!=="0"||f!=="9"?s+=Kh(u,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Po(e,t,r,n){let i=Gh(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let f=i[u],l=Wh(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+Bo(a.count),o=f+1;continue}r.isPadded&&(h=Jh(f,r,n)),l.string=h+l.pattern+Bo(l.count),s.push(l),o=f+1,a=l}return s}function Mn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Lo(t,"string",a)&&s.push(r+a),n&&Lo(t,"string",a)&&s.push(r+a)}return s}function Vh(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Yh(e,t){return e>t?1:t>e?-1:0}function Lo(e,t,r){return e.some(n=>n[t]===r)}function Do(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Mo(e,t){return e-e%Math.pow(10,t)}function Bo(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Kh(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function No(e){return/^-?(0+)\d/.test(e)}function Jh(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}}`}}ze.cache={};ze.clearCache=()=>ze.cache={};Io.exports=ze});var In=g((Ob,Wo)=>{"use strict";var Qh=w("util"),jo=ko(),Fo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Xh=e=>t=>e===!0?Number(t):String(t),Bn=e=>typeof e=="number"||typeof e=="string"&&e!=="",jt=e=>Number.isInteger(+e),Nn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Zh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,zh=(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},qo=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},ep=(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 jo(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Ho=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return jo(e,t,r)},Uo=(...e)=>new RangeError("Invalid range arguments: "+Qh.inspect(...e)),Go=(e,t,r)=>{if(r.strictRanges===!0)throw Uo([e,t]);return[]},tp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},rp=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Uo([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),f=String(r);r=Math.max(Math.abs(r),1);let l=Nn(a)||Nn(u)||Nn(f),h=l?Math.max(a.length,u.length,f.length):0,c=l===!1&&Zh(e,t,n)===!1,E=n.transform||Xh(c);if(n.toRegex&&r===1)return $o(qo(e,h),qo(t,h),!0,n);let y={negatives:[],positives:[]},m=D=>y[D<0?"negatives":"positives"].push(Math.abs(D)),S=[],x=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):S.push(zh(E(i,x),h,c)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?ep(y,n):Ho(S,null,{wrap:!1,...n}):S},np=(e,t,r=1,n={})=>{if(!jt(e)&&e.length>1||!jt(t)&&t.length>1)return Go(e,t,n);let i=n.transform||(c=>String.fromCharCode(c)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return $o(u,f,!1,n);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Ho(l,null,{wrap:!1,options:n}):l},vr=(e,t,r,n={})=>{if(t==null&&Bn(e))return[e];if(!Bn(e)||!Bn(t))return Go(e,t,n);if(typeof r=="function")return vr(e,t,1,{transform:r});if(Fo(r))return vr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,jt(r)?jt(e)&&jt(t)?rp(e,t,r,i):np(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Fo(r)?tp(r,i):vr(e,t,1,r)};Wo.exports=vr});var Ko=g((Pb,Yo)=>{"use strict";var ip=In(),Vo=yr(),sp=(e,t={})=>{let r=(n,i={})=>{let s=Vo.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+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 l=Vo.reduce(n.nodes),h=ip(...l,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=r(l,n);return f};return r(e)};Yo.exports=sp});var Xo=g((Lb,Qo)=>{"use strict";var op=In(),Jo=br(),mt=yr(),et=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?mt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(et(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?et(i,s,r):i+s);return mt.flatten(n)},ap=(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(et(a.pop(),Jo(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(et(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=mt.reduce(i.nodes);if(mt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=op(...h,t);c.length===0&&(c=Jo(i,t)),a.push(et(a.pop(),c)),i.nodes=[];return}let u=mt.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let c=i.nodes[h];if(c.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(c.type==="close"){a.push(et(a.pop(),f,u));continue}if(c.value&&c.type!=="open"){f.push(et(f.pop(),c.value));continue}c.nodes&&n(c,i)}return f};return mt.flatten(n(e))};Qo.exports=ap});var zo=g((Db,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 ia=g((Mb,na)=>{"use strict";var up=br(),{MAX_LENGTH:ea,CHAR_BACKSLASH:kn,CHAR_BACKTICK:lp,CHAR_COMMA:fp,CHAR_DOT:cp,CHAR_LEFT_PARENTHESES:hp,CHAR_RIGHT_PARENTHESES:pp,CHAR_LEFT_CURLY_BRACE:dp,CHAR_RIGHT_CURLY_BRACE:_p,CHAR_LEFT_SQUARE_BRACKET:ta,CHAR_RIGHT_SQUARE_BRACKET:ra,CHAR_DOUBLE_QUOTE:gp,CHAR_SINGLE_QUOTE:mp,CHAR_NO_BREAK_SPACE:yp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:bp}=zo(),vp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ea,r.maxLength):ea;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,u=0,f=e.length,l=0,h=0,c,E={},y=()=>e[l++],m=S=>{if(S.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&S.type==="text"){a.value+=S.value;return}return o.nodes.push(S),S.parent=o,S.prev=a,a=S,S};for(m({type:"bos"});l<f;)if(o=s[s.length-1],c=y(),!(c===bp||c===yp)){if(c===kn){m({type:"text",value:(t.keepEscaping?c:"")+y()});continue}if(c===ra){m({type:"text",value:"\\"+c});continue}if(c===ta){u++;let S=!0,x;for(;l<f&&(x=y());){if(c+=x,x===ta){u++;continue}if(x===kn){c+=y();continue}if(x===ra&&(u--,u===0))break}m({type:"text",value:c});continue}if(c===hp){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:c});continue}if(c===pp){if(o.type!=="paren"){m({type:"text",value:c});continue}o=s.pop(),m({type:"text",value:c}),o=s[s.length-1];continue}if(c===gp||c===mp||c===lp){let S=c,x;for(t.keepQuotes!==!0&&(c="");l<f&&(x=y());){if(x===kn){c+=x+y();continue}if(x===S){t.keepQuotes===!0&&(c+=x);break}c+=x}m({type:"text",value:c});continue}if(c===dp){h++;let S=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=m({type:"brace",open:!0,close:!1,dollar:S,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),m({type:"open",value:c});continue}if(c===_p){if(o.type!=="brace"){m({type:"text",value:c});continue}let S="close";o=s.pop(),o.close=!0,m({type:S,value:c}),h--,o=s[s.length-1];continue}if(c===fp&&h>0){if(o.ranges>0){o.ranges=0;let S=o.nodes.shift();o.nodes=[S,{type:"text",value:up(o)}]}m({type:"comma",value:c}),o.commas++;continue}if(c===cp&&h>0&&o.commas===0){let S=o.nodes;if(h===0||S.length===0){m({type:"text",value:c});continue}if(a.type==="dot"){if(o.range=[],a.value+=c,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){S.pop();let x=S[S.length-1];x.value+=a.value+c,a=x,o.ranges--;continue}m({type:"dot",value:c});continue}m({type:"text",value:c})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let S=s[s.length-1],x=S.nodes.indexOf(o);S.nodes.splice(x,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),i};na.exports=vp});var aa=g((Bb,oa)=>{"use strict";var sa=br(),xp=Ko(),Ep=Xo(),Sp=ia(),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={})=>Sp(e,t);ue.stringify=(e,t={})=>sa(typeof e=="string"?ue.parse(e,t):e,t);ue.compile=(e,t={})=>(typeof e=="string"&&(e=ue.parse(e,t)),xp(e,t));ue.expand=(e,t={})=>{typeof e=="string"&&(e=ue.parse(e,t));let r=Ep(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);oa.exports=ue});var $t=g((Nb,ha)=>{"use strict";var Rp=w("path"),Ae="\\\\/",ua=`[^${Ae}]`,Be="\\.",wp="\\+",Ap="\\?",xr="\\/",Tp="(?=.)",la="[^/]",Fn=`(?:${xr}|$)`,fa=`(?:^|${xr})`,qn=`${Be}{1,2}${Fn}`,Cp=`(?!${Be})`,Op=`(?!${fa}${qn})`,Pp=`(?!${Be}{0,1}${Fn})`,Lp=`(?!${qn})`,Dp=`[^.${xr}]`,Mp=`${la}*?`,ca={DOT_LITERAL:Be,PLUS_LITERAL:wp,QMARK_LITERAL:Ap,SLASH_LITERAL:xr,ONE_CHAR:Tp,QMARK:la,END_ANCHOR:Fn,DOTS_SLASH:qn,NO_DOT:Cp,NO_DOTS:Op,NO_DOT_SLASH:Pp,NO_DOTS_SLASH:Lp,QMARK_NO_DOT:Dp,STAR:Mp,START_ANCHOR:fa},Bp={...ca,SLASH_LITERAL:`[${Ae}]`,QMARK:ua,STAR:`${ua}*?`,DOTS_SLASH:`${Be}{1,2}(?:[${Ae}]|$)`,NO_DOT:`(?!${Be})`,NO_DOTS:`(?!(?:^|[${Ae}])${Be}{1,2}(?:[${Ae}]|$))`,NO_DOT_SLASH:`(?!${Be}{0,1}(?:[${Ae}]|$))`,NO_DOTS_SLASH:`(?!${Be}{1,2}(?:[${Ae}]|$))`,QMARK_NO_DOT:`[^.${Ae}]`,START_ANCHOR:`(?:^|[${Ae}])`,END_ANCHOR:`(?:[${Ae}]|$)`},Np={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"};ha.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Np,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:Rp.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?Bp:ca}}});var Ht=g(oe=>{"use strict";var Ip=w("path"),kp=process.platform==="win32",{REGEX_BACKSLASH:Fp,REGEX_REMOVE_BACKSLASH:qp,REGEX_SPECIAL_CHARS:jp,REGEX_SPECIAL_CHARS_GLOBAL:$p}=$t();oe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);oe.hasRegexChars=e=>jp.test(e);oe.isRegexChar=e=>e.length===1&&oe.hasRegexChars(e);oe.escapeRegex=e=>e.replace($p,"\\$1");oe.toPosixSlashes=e=>e.replace(Fp,"/");oe.removeBackslashes=e=>e.replace(qp,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:kp===!0||Ip.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 va=g((kb,ba)=>{"use strict";var pa=Ht(),{CHAR_ASTERISK:jn,CHAR_AT:Hp,CHAR_BACKWARD_SLASH:Ut,CHAR_COMMA:Up,CHAR_DOT:$n,CHAR_EXCLAMATION_MARK:Hn,CHAR_FORWARD_SLASH:ya,CHAR_LEFT_CURLY_BRACE:Un,CHAR_LEFT_PARENTHESES:Gn,CHAR_LEFT_SQUARE_BRACKET:Gp,CHAR_PLUS:Wp,CHAR_QUESTION_MARK:da,CHAR_RIGHT_CURLY_BRACE:Vp,CHAR_RIGHT_PARENTHESES:_a,CHAR_RIGHT_SQUARE_BRACKET:Yp}=$t(),ga=e=>e===ya||e===Ut,ma=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Kp=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,f=-1,l=0,h=0,c=!1,E=!1,y=!1,m=!1,S=!1,x=!1,D=!1,N=!1,Z=!1,C=!1,$=0,O,A,F={value:"",depth:0,isGlob:!1},R=()=>f>=n,p=()=>u.charCodeAt(f+1),j=()=>(O=A,u.charCodeAt(++f));for(;f<n;){A=j();let ie;if(A===Ut){D=F.backslashes=!0,A=j(),A===Un&&(x=!0);continue}if(x===!0||A===Un){for($++;R()!==!0&&(A=j());){if(A===Ut){D=F.backslashes=!0,j();continue}if(A===Un){$++;continue}if(x!==!0&&A===$n&&(A=j())===$n){if(c=F.isBrace=!0,y=F.isGlob=!0,C=!0,i===!0)continue;break}if(x!==!0&&A===Up){if(c=F.isBrace=!0,y=F.isGlob=!0,C=!0,i===!0)continue;break}if(A===Vp&&($--,$===0)){x=!1,c=F.isBrace=!0,C=!0;break}}if(i===!0)continue;break}if(A===ya){if(s.push(f),o.push(F),F={value:"",depth:0,isGlob:!1},C===!0)continue;if(O===$n&&f===l+1){l+=2;continue}h=f+1;continue}if(r.noext!==!0&&(A===Wp||A===Hp||A===jn||A===da||A===Hn)===!0&&p()===Gn){if(y=F.isGlob=!0,m=F.isExtglob=!0,C=!0,A===Hn&&f===l&&(Z=!0),i===!0){for(;R()!==!0&&(A=j());){if(A===Ut){D=F.backslashes=!0,A=j();continue}if(A===_a){y=F.isGlob=!0,C=!0;break}}continue}break}if(A===jn){if(O===jn&&(S=F.isGlobstar=!0),y=F.isGlob=!0,C=!0,i===!0)continue;break}if(A===da){if(y=F.isGlob=!0,C=!0,i===!0)continue;break}if(A===Gp){for(;R()!==!0&&(ie=j());){if(ie===Ut){D=F.backslashes=!0,j();continue}if(ie===Yp){E=F.isBracket=!0,y=F.isGlob=!0,C=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&A===Hn&&f===l){N=F.negated=!0,l++;continue}if(r.noparen!==!0&&A===Gn){if(y=F.isGlob=!0,i===!0){for(;R()!==!0&&(A=j());){if(A===Gn){D=F.backslashes=!0,A=j();continue}if(A===_a){C=!0;break}}continue}break}if(y===!0){if(C=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,y=!1);let q=u,qe="",d="";l>0&&(qe=u.slice(0,l),u=u.slice(l),h-=l),q&&y===!0&&h>0?(q=u.slice(0,h),d=u.slice(h)):y===!0?(q="",d=u):q=u,q&&q!==""&&q!=="/"&&q!==u&&ga(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),r.unescape===!0&&(d&&(d=pa.removeBackslashes(d)),q&&D===!0&&(q=pa.removeBackslashes(q)));let _={prefix:qe,input:e,start:l,base:q,glob:d,isBrace:c,isBracket:E,isGlob:y,isExtglob:m,isGlobstar:S,negated:N,negatedExtglob:Z};if(r.tokens===!0&&(_.maxDepth=0,ga(A)||o.push(F),_.tokens=o),r.parts===!0||r.tokens===!0){let ie;for(let k=0;k<s.length;k++){let Se=ie?ie+1:l,Re=s[k],ae=e.slice(Se,Re);r.tokens&&(k===0&&l!==0?(o[k].isPrefix=!0,o[k].value=qe):o[k].value=ae,ma(o[k]),_.maxDepth+=o[k].depth),(k!==0||ae!=="")&&a.push(ae),ie=Re}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]),_.maxDepth+=o[o.length-1].depth)}_.slashes=s,_.parts=a}return _};ba.exports=Kp});var Sa=g((Fb,Ea)=>{"use strict";var Er=$t(),le=Ht(),{MAX_LENGTH:Sr,POSIX_REGEX_SOURCE:Jp,REGEX_NON_SPECIAL_CHARS:Qp,REGEX_SPECIAL_CHARS_BACKREF:Xp,REPLACEMENTS:xa}=Er,Zp=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>le.escapeRegex(i)).join("..")}return r},yt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Wn=(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(Sr,r.maxLength):Sr,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?"":"?:",u=le.isWindows(t),f=Er.globChars(u),l=Er.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:c,SLASH_LITERAL:E,ONE_CHAR:y,DOTS_SLASH:m,NO_DOT:S,NO_DOT_SLASH:x,NO_DOTS_SLASH:D,QMARK:N,QMARK_NO_DOT:Z,STAR:C,START_ANCHOR:$}=f,O=v=>`(${a}(?:(?!${$}${v.dot?m:h}).)*?)`,A=r.dot?"":S,F=r.dot?N:Z,R=r.bash===!0?O(r):C;r.capture&&(R=`(${R})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let p={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=le.removePrefix(e,p),i=e.length;let j=[],q=[],qe=[],d=s,_,ie=()=>p.index===i-1,k=p.peek=(v=1)=>e[p.index+v],Se=p.advance=()=>e[++p.index]||"",Re=()=>e.slice(p.index+1),ae=(v="",G=0)=>{p.consumed+=v,p.index+=G},fr=v=>{p.output+=v.output!=null?v.output:v.value,ae(v.value)},th=()=>{let v=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)Se(),p.start++,v++;return v%2===0?!1:(p.negated=!0,p.start++,!0)},cr=v=>{p[v]++,qe.push(v)},Ze=v=>{p[v]--,qe.pop()},M=v=>{if(d.type==="globstar"){let G=p.braces>0&&(v.type==="comma"||v.type==="brace"),b=v.extglob===!0||j.length&&(v.type==="pipe"||v.type==="paren");v.type!=="slash"&&v.type!=="paren"&&!G&&!b&&(p.output=p.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=R,p.output+=d.output)}if(j.length&&v.type!=="paren"&&(j[j.length-1].inner+=v.value),(v.value||v.output)&&fr(v),d&&d.type==="text"&&v.type==="text"){d.value+=v.value,d.output=(d.output||"")+v.value;return}v.prev=d,o.push(v),d=v},hr=(v,G)=>{let b={...l[G],conditions:1,inner:""};b.prev=d,b.parens=p.parens,b.output=p.output;let P=(r.capture?"(":"")+b.open;cr("parens"),M({type:v,value:G,output:p.output?"":y}),M({type:"paren",extglob:!0,value:Se(),output:P}),j.push(b)},rh=v=>{let G=v.close+(r.capture?")":""),b;if(v.type==="negate"){let P=R;if(v.inner&&v.inner.length>1&&v.inner.includes("/")&&(P=O(r)),(P!==R||ie()||/^\)+$/.test(Re()))&&(G=v.close=`)$))${P}`),v.inner.includes("*")&&(b=Re())&&/^\.[^\\/.]+$/.test(b)){let Y=Wn(b,{...t,fastpaths:!1}).output;G=v.close=`)${Y})${P})`}v.prev.type==="bos"&&(p.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:_,output:G}),Ze("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let v=!1,G=e.replace(Xp,(b,P,Y,se,z,Tn)=>se==="\\"?(v=!0,b):se==="?"?P?P+se+(z?N.repeat(z.length):""):Tn===0?F+(z?N.repeat(z.length):""):N.repeat(Y.length):se==="."?h.repeat(Y.length):se==="*"?P?P+se+(z?R:""):R:P?b:`\\${b}`);return v===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,b=>b.length%2===0?"\\\\":b?"\\":"")),G===e&&r.contains===!0?(p.output=e,p):(p.output=le.wrapOutput(G,p,t),p)}for(;!ie();){if(_=Se(),_==="\0")continue;if(_==="\\"){let b=k();if(b==="/"&&r.bash!==!0||b==="."||b===";")continue;if(!b){_+="\\",M({type:"text",value:_});continue}let P=/^\\+/.exec(Re()),Y=0;if(P&&P[0].length>2&&(Y=P[0].length,p.index+=Y,Y%2!==0&&(_+="\\")),r.unescape===!0?_=Se():_+=Se(),p.brackets===0){M({type:"text",value:_});continue}}if(p.brackets>0&&(_!=="]"||d.value==="["||d.value==="[^")){if(r.posix!==!1&&_===":"){let b=d.value.slice(1);if(b.includes("[")&&(d.posix=!0,b.includes(":"))){let P=d.value.lastIndexOf("["),Y=d.value.slice(0,P),se=d.value.slice(P+2),z=Jp[se];if(z){d.value=Y+z,p.backtrack=!0,Se(),!s.output&&o.indexOf(d)===1&&(s.output=y);continue}}}(_==="["&&k()!==":"||_==="-"&&k()==="]")&&(_=`\\${_}`),_==="]"&&(d.value==="["||d.value==="[^")&&(_=`\\${_}`),r.posix===!0&&_==="!"&&d.value==="["&&(_="^"),d.value+=_,fr({value:_});continue}if(p.quotes===1&&_!=='"'){_=le.escapeRegex(_),d.value+=_,fr({value:_});continue}if(_==='"'){p.quotes=p.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:_});continue}if(_==="("){cr("parens"),M({type:"paren",value:_});continue}if(_===")"){if(p.parens===0&&r.strictBrackets===!0)throw new SyntaxError(yt("opening","("));let b=j[j.length-1];if(b&&p.parens===b.parens+1){rh(j.pop());continue}M({type:"paren",value:_,output:p.parens?")":"\\)"}),Ze("parens");continue}if(_==="["){if(r.nobracket===!0||!Re().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(yt("closing","]"));_=`\\${_}`}else cr("brackets");M({type:"bracket",value:_});continue}if(_==="]"){if(r.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){M({type:"text",value:_,output:`\\${_}`});continue}if(p.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(yt("opening","["));M({type:"text",value:_,output:`\\${_}`});continue}Ze("brackets");let b=d.value.slice(1);if(d.posix!==!0&&b[0]==="^"&&!b.includes("/")&&(_=`/${_}`),d.value+=_,fr({value:_}),r.literalBrackets===!1||le.hasRegexChars(b))continue;let P=le.escapeRegex(d.value);if(p.output=p.output.slice(0,-d.value.length),r.literalBrackets===!0){p.output+=P,d.value=P;continue}d.value=`(${a}${P}|${d.value})`,p.output+=d.value;continue}if(_==="{"&&r.nobrace!==!0){cr("braces");let b={type:"brace",value:_,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};q.push(b),M(b);continue}if(_==="}"){let b=q[q.length-1];if(r.nobrace===!0||!b){M({type:"text",value:_,output:_});continue}let P=")";if(b.dots===!0){let Y=o.slice(),se=[];for(let z=Y.length-1;z>=0&&(o.pop(),Y[z].type!=="brace");z--)Y[z].type!=="dots"&&se.unshift(Y[z].value);P=Zp(se,r),p.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let Y=p.output.slice(0,b.outputIndex),se=p.tokens.slice(b.tokensIndex);b.value=b.output="\\{",_=P="\\}",p.output=Y;for(let z of se)p.output+=z.output||z.value}M({type:"brace",value:_,output:P}),Ze("braces"),q.pop();continue}if(_==="|"){j.length>0&&j[j.length-1].conditions++,M({type:"text",value:_});continue}if(_===","){let b=_,P=q[q.length-1];P&&qe[qe.length-1]==="braces"&&(P.comma=!0,b="|"),M({type:"comma",value:_,output:b});continue}if(_==="/"){if(d.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",o.pop(),d=s;continue}M({type:"slash",value:_,output:E});continue}if(_==="."){if(p.braces>0&&d.type==="dot"){d.value==="."&&(d.output=h);let b=q[q.length-1];d.type="dots",d.output+=_,d.value+=_,b.dots=!0;continue}if(p.braces+p.parens===0&&d.type!=="bos"&&d.type!=="slash"){M({type:"text",value:_,output:h});continue}M({type:"dot",value:_,output:h});continue}if(_==="?"){if(!(d&&d.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){hr("qmark",_);continue}if(d&&d.type==="paren"){let P=k(),Y=_;if(P==="<"&&!le.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(d.value==="("&&!/[!=<:]/.test(P)||P==="<"&&!/<([!=]|\w+>)/.test(Re()))&&(Y=`\\${_}`),M({type:"text",value:_,output:Y});continue}if(r.dot!==!0&&(d.type==="slash"||d.type==="bos")){M({type:"qmark",value:_,output:Z});continue}M({type:"qmark",value:_,output:N});continue}if(_==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){hr("negate",_);continue}if(r.nonegate!==!0&&p.index===0){th();continue}}if(_==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){hr("plus",_);continue}if(d&&d.value==="("||r.regex===!1){M({type:"plus",value:_,output:c});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||p.parens>0){M({type:"plus",value:_});continue}M({type:"plus",value:c});continue}if(_==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){M({type:"at",extglob:!0,value:_,output:""});continue}M({type:"text",value:_});continue}if(_!=="*"){(_==="$"||_==="^")&&(_=`\\${_}`);let b=Qp.exec(Re());b&&(_+=b[0],p.index+=b[0].length),M({type:"text",value:_});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=_,d.output=R,p.backtrack=!0,p.globstar=!0,ae(_);continue}let v=Re();if(r.noextglob!==!0&&/^\([^?]/.test(v)){hr("star",_);continue}if(d.type==="star"){if(r.noglobstar===!0){ae(_);continue}let b=d.prev,P=b.prev,Y=b.type==="slash"||b.type==="bos",se=P&&(P.type==="star"||P.type==="globstar");if(r.bash===!0&&(!Y||v[0]&&v[0]!=="/")){M({type:"star",value:_,output:""});continue}let z=p.braces>0&&(b.type==="comma"||b.type==="brace"),Tn=j.length&&(b.type==="pipe"||b.type==="paren");if(!Y&&b.type!=="paren"&&!z&&!Tn){M({type:"star",value:_,output:""});continue}for(;v.slice(0,3)==="/**";){let pr=e[p.index+4];if(pr&&pr!=="/")break;v=v.slice(3),ae("/**",3)}if(b.type==="bos"&&ie()){d.type="globstar",d.value+=_,d.output=O(r),p.output=d.output,p.globstar=!0,ae(_);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!se&&ie()){p.output=p.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=O(r)+(r.strictSlashes?")":"|$)"),d.value+=_,p.globstar=!0,p.output+=b.output+d.output,ae(_);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&v[0]==="/"){let pr=v[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(b.output+d.output).length),b.output=`(?:${b.output}`,d.type="globstar",d.output=`${O(r)}${E}|${E}${pr})`,d.value+=_,p.output+=b.output+d.output,p.globstar=!0,ae(_+Se()),M({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&v[0]==="/"){d.type="globstar",d.value+=_,d.output=`(?:^|${E}|${O(r)}${E})`,p.output=d.output,p.globstar=!0,ae(_+Se()),M({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-d.output.length),d.type="globstar",d.output=O(r),d.value+=_,p.output+=d.output,p.globstar=!0,ae(_);continue}let G={type:"star",value:_,output:R};if(r.bash===!0){G.output=".*?",(d.type==="bos"||d.type==="slash")&&(G.output=A+G.output),M(G);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&r.regex===!0){G.output=_,M(G);continue}(p.index===p.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(p.output+=x,d.output+=x):r.dot===!0?(p.output+=D,d.output+=D):(p.output+=A,d.output+=A),k()!=="*"&&(p.output+=y,d.output+=y)),M(G)}for(;p.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing","]"));p.output=le.escapeLast(p.output,"["),Ze("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing",")"));p.output=le.escapeLast(p.output,"("),Ze("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(yt("closing","}"));p.output=le.escapeLast(p.output,"{"),Ze("braces")}if(r.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${E}?`}),p.backtrack===!0){p.output="";for(let v of p.tokens)p.output+=v.output!=null?v.output:v.value,v.suffix&&(p.output+=v.suffix)}return p};Wn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Sr,r.maxLength):Sr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=xa[e]||e;let s=le.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:f,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:c,STAR:E,START_ANCHOR:y}=Er.globChars(s),m=r.dot?h:l,S=r.dot?c:l,x=r.capture?"":"?:",D={negated:!1,prefix:""},N=r.bash===!0?".*?":E;r.capture&&(N=`(${N})`);let Z=A=>A.noglobstar===!0?N:`(${x}(?:(?!${y}${A.dot?f:o}).)*?)`,C=A=>{switch(A){case"*":return`${m}${u}${N}`;case".*":return`${o}${u}${N}`;case"*.*":return`${m}${N}${o}${u}${N}`;case"*/*":return`${m}${N}${a}${u}${S}${N}`;case"**":return m+Z(r);case"**/*":return`(?:${m}${Z(r)}${a})?${S}${u}${N}`;case"**/*.*":return`(?:${m}${Z(r)}${a})?${S}${N}${o}${u}${N}`;case"**/.*":return`(?:${m}${Z(r)}${a})?${o}${u}${N}`;default:{let F=/^(.*?)\.(\w+)$/.exec(A);if(!F)return;let R=C(F[1]);return R?R+o+F[2]:void 0}}},$=le.removePrefix(e,D),O=C($);return O&&r.strictSlashes!==!0&&(O+=`${a}?`),O};Ea.exports=Wn});var wa=g((qb,Ra)=>{"use strict";var zp=w("path"),ed=va(),Vn=Sa(),Yn=Ht(),td=$t(),rd=e=>e&&typeof e=="object"&&!Array.isArray(e),J=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(c=>J(c,t,r));return c=>{for(let E of l){let y=E(c);if(y)return y}return!1}}let n=rd(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=Yn.isWindows(t),o=n?J.compileRe(e,t):J.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=J(i.ignore,l,r)}let f=(l,h=!1)=>{let{isMatch:c,match:E,output:y}=J.test(l,o,t,{glob:e,posix:s}),m={glob:e,state:a,regex:o,posix:s,input:l,output:y,match:E,isMatch:c};return typeof i.onResult=="function"&&i.onResult(m),c===!1?(m.isMatch=!1,h?m:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,h?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),h?m:!0)};return r&&(f.state=a),f};J.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?Yn.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=J.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:Boolean(a),match:a,output:u}};J.matchBase=(e,t,r,n=Yn.isWindows(r))=>(t instanceof RegExp?t:J.makeRe(t,r)).test(zp.basename(e));J.isMatch=(e,t,r)=>J(t,r)(e);J.parse=(e,t)=>Array.isArray(e)?e.map(r=>J.parse(r,t)):Vn(e,{...t,fastpaths:!1});J.scan=(e,t)=>ed(e,t);J.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 u=J.toRegex(a,t);return n===!0&&(u.state=e),u};J.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=Vn.fastpaths(e,t)),i.output||(i=Vn(e,t)),J.compileRe(i,t,r,n)};J.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/$^/}};J.constants=td;Ra.exports=J});var Ta=g((jb,Aa)=>{"use strict";Aa.exports=wa()});var Da=g(($b,La)=>{"use strict";var Oa=w("util"),Pa=aa(),Te=Ta(),Kn=Ht(),Ca=e=>e===""||e==="./",W=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let h=Te(String(t[l]),{...r,onResult:a},!0),c=h.state.negated||h.state.negatedExtglob;c&&o++;for(let E of e){let y=h(E,!0);!(c?!y.isMatch:y.isMatch)||(c?n.add(y.output):(n.delete(y.output),i.add(y.output)))}}let f=(o===t.length?[...s]:[...i]).filter(l=>!n.has(l));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(l=>l.replace(/\\/g,"")):t}return f};W.match=W;W.matcher=(e,t)=>Te(e,t);W.isMatch=(e,t,r)=>Te(t,r)(e);W.any=W.isMatch;W.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(W(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};W.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Oa.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>W.contains(e,n,r));if(typeof t=="string"){if(Ca(e)||Ca(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return W.isMatch(e,t,{...r,contains:!0})};W.matchKeys=(e,t,r)=>{if(!Kn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=W(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};W.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Te(String(i),r);if(n.some(o=>s(o)))return!0}return!1};W.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Te(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};W.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Oa.inspect(e)}"`);return[].concat(t).every(n=>Te(n,r)(e))};W.capture=(e,t,r)=>{let n=Kn.isWindows(r),s=Te.makeRe(String(e),{...r,capture:!0}).exec(n?Kn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};W.makeRe=(...e)=>Te.makeRe(...e);W.scan=(...e)=>Te.scan(...e);W.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Pa(String(n),t))r.push(Te.parse(i,t));return r};W.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Pa(e,t)};W.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return W.braces(e,{...t,expand:!0})};La.exports=W});var ja=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 nd=w("path"),id=Ro(),Jn=Da(),Ma="**",sd="\\",od=/[*?]|^!/,ad=/\[[^[]*]/,ud=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,ld=/[!*+?@]\([^(]*\)/,fd=/,|\.\./;function Ba(e,t={}){return!Na(e,t)}T.isStaticPattern=Ba;function Na(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(sd)||od.test(e)||ad.test(e)||ud.test(e)||t.extglob!==!1&&ld.test(e)||t.braceExpansion!==!1&&cd(e))}T.isDynamicPattern=Na;function cd(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 fd.test(n)}function hd(e){return Rr(e)?e.slice(1):e}T.convertToPositivePattern=hd;function pd(e){return"!"+e}T.convertToNegativePattern=pd;function Rr(e){return e.startsWith("!")&&e[1]!=="("}T.isNegativePattern=Rr;function Ia(e){return!Rr(e)}T.isPositivePattern=Ia;function dd(e){return e.filter(Rr)}T.getNegativePatterns=dd;function _d(e){return e.filter(Ia)}T.getPositivePatterns=_d;function gd(e){return e.filter(t=>!Qn(t))}T.getPatternsInsideCurrentDirectory=gd;function md(e){return e.filter(Qn)}T.getPatternsOutsideCurrentDirectory=md;function Qn(e){return e.startsWith("..")||e.startsWith("./..")}T.isPatternRelatedToParentDirectory=Qn;function yd(e){return id(e,{flipBackslashes:!1})}T.getBaseDirectory=yd;function bd(e){return e.includes(Ma)}T.hasGlobStar=bd;function ka(e){return e.endsWith("/"+Ma)}T.endsWithSlashGlobStar=ka;function vd(e){let t=nd.basename(e);return ka(e)||Ba(t)}T.isAffectDepthOfReadingPattern=vd;function xd(e){return e.reduce((t,r)=>t.concat(Fa(r)),[])}T.expandPatternsWithBraceExpansion=xd;function Fa(e){return Jn.braces(e,{expand:!0,nodupes:!0})}T.expandBraceExpansion=Fa;function Ed(e,t){let{parts:r}=Jn.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=Ed;function qa(e,t){return Jn.makeRe(e,t)}T.makeRe=qa;function Sd(e,t){return e.map(r=>qa(r,t))}T.convertPatternsToRe=Sd;function Rd(e,t){return t.some(r=>r.test(e))}T.matchAny=Rd});var Ga=g((Ub,Ua)=>{"use strict";var wd=w("stream"),$a=wd.PassThrough,Ad=Array.prototype.slice;Ua.exports=Td;function Td(){let e=[],t=Ad.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 l=0,h=arguments.length;l<h;l++)e.push(Ha(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(f);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function c(){--h>0||(r=!1,u())}function E(y){function m(){y.removeListener("merge2UnpipeEnd",m),y.removeListener("end",m),s&&y.removeListener("error",S),c()}function S(x){o.emit("error",x)}if(y._readableState.endEmitted)return c();y.on("merge2UnpipeEnd",m),y.on("end",m),s&&y.on("error",S),y.pipe(o,{end:!1}),y.resume()}for(let y=0;y<l.length;y++)E(l[y]);c()}function f(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function Ha(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Ha(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 Va=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.merge=void 0;var Cd=Ga();function Od(e){let t=Cd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Wa(e)),t.once("end",()=>Wa(e)),t}wr.merge=Od;function Wa(e){e.forEach(t=>t.emit("close"))}});var Ya=g(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.isEmpty=bt.isString=void 0;function Pd(e){return typeof e=="string"}bt.isString=Pd;function Ld(e){return e===""}bt.isEmpty=Ld});var Ne=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 Dd=ho();te.array=Dd;var Md=po();te.errno=Md;var Bd=go();te.fs=Bd;var Nd=mo();te.path=Nd;var Id=ja();te.pattern=Id;var kd=Va();te.stream=kd;var Fd=Ya();te.string=Fd});var Qa=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 Ie=Ne();function qd(e,t){let r=Ka(e),n=Ja(e,t.ignore),i=r.filter(u=>Ie.pattern.isStaticPattern(u,t)),s=r.filter(u=>Ie.pattern.isDynamicPattern(u,t)),o=Xn(i,n,!1),a=Xn(s,n,!0);return o.concat(a)}re.generate=qd;function Xn(e,t,r){let n=[],i=Ie.pattern.getPatternsOutsideCurrentDirectory(e),s=Ie.pattern.getPatternsInsideCurrentDirectory(e),o=Zn(i),a=Zn(s);return n.push(...zn(o,t,r)),"."in a?n.push(ei(".",s,t,r)):n.push(...zn(a,t,r)),n}re.convertPatternsToTasks=Xn;function Ka(e){return Ie.pattern.getPositivePatterns(e)}re.getPositivePatterns=Ka;function Ja(e,t){return Ie.pattern.getNegativePatterns(e).concat(t).map(Ie.pattern.convertToPositivePattern)}re.getNegativePatternsAsPositive=Ja;function Zn(e){let t={};return e.reduce((r,n)=>{let i=Ie.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}re.groupPatternsByBaseDirectory=Zn;function zn(e,t,r){return Object.keys(e).map(n=>ei(n,e[n],t,r))}re.convertPatternGroupsToTasks=zn;function ei(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Ie.pattern.convertToNegativePattern))}}re.convertPatternGroupToTask=ei});var Za=g(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.removeDuplicateSlashes=vt.transform=void 0;var jd=/(?!^)\/{2,}/g;function $d(e){return e.map(t=>Xa(t))}vt.transform=$d;function Xa(e){return e.replace(jd,"/")}vt.removeDuplicateSlashes=Xa});var eu=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.read=void 0;function Hd(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){za(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){ti(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){za(r,s);return}ti(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ti(r,o)})})}Ar.read=Hd;function za(e,t){e(t)}function ti(e,t){e(null,t)}});var tu=g(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.read=void 0;function Ud(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}}Tr.read=Ud});var ru=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.createFileSystemAdapter=$e.FILE_SYSTEM_ADAPTER=void 0;var Cr=w("fs");$e.FILE_SYSTEM_ADAPTER={lstat:Cr.lstat,stat:Cr.stat,lstatSync:Cr.lstatSync,statSync:Cr.statSync};function Gd(e){return e===void 0?$e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},$e.FILE_SYSTEM_ADAPTER),e)}$e.createFileSystemAdapter=Gd});var iu=g(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var Wd=ru(),nu=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Wd.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}};ri.default=nu});var tt=g(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.statSync=He.stat=He.Settings=void 0;var su=eu(),Vd=tu(),ni=iu();He.Settings=ni.default;function Yd(e,t,r){if(typeof t=="function"){su.read(e,ii(),t);return}su.read(e,ii(t),r)}He.stat=Yd;function Kd(e,t){let r=ii(t);return Vd.read(e,r)}He.statSync=Kd;function ii(e={}){return e instanceof ni.default?e:new ni.default(e)}});var uu=g((ev,au)=>{var ou;au.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(ou||(ou=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var fu=g((tv,lu)=>{lu.exports=Qd;var Jd=uu();function Qd(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(u){function f(){t&&t(u,r),t=null}s?Jd(f):f()}function a(u,f,l){r[u]=l,(--n===0||f)&&o(f)}n?i?i.forEach(function(u){e[u](function(f,l){a(u,f,l)})}):e.forEach(function(u,f){u(function(l,h){a(f,l,h)})}):o(null),s=!1}});var si=g(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Or=process.versions.node.split(".");if(Or[0]===void 0||Or[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var cu=Number.parseInt(Or[0],10),Xd=Number.parseInt(Or[1],10),hu=10,Zd=10,zd=cu>hu,e_=cu===hu&&Xd>=Zd;Pr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=zd||e_});var du=g(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.createDirentFromStats=void 0;var pu=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 t_(e,t){return new pu(e,t)}Lr.createDirentFromStats=t_});var oi=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.fs=void 0;var r_=du();Dr.fs=r_});var ai=g(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.joinPathSegments=void 0;function n_(e,t,r){return e.endsWith(r)?e+t:e+r+t}Mr.joinPathSegments=n_});var vu=g(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.readdir=Ue.readdirWithFileTypes=Ue.read=void 0;var i_=tt(),_u=fu(),s_=si(),gu=oi(),mu=ai();function o_(e,t,r){if(!t.stats&&s_.IS_SUPPORT_READDIR_WITH_FILE_TYPES){yu(e,t,r);return}bu(e,t,r)}Ue.read=o_;function yu(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Br(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:mu.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){ui(r,s);return}let o=s.map(a=>a_(a,t));_u(o,(a,u)=>{if(a!==null){Br(r,a);return}ui(r,u)})})}Ue.readdirWithFileTypes=yu;function a_(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=gu.fs.createDirentFromStats(e.name,i),r(null,e)})}}function bu(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Br(r,n);return}let s=i.map(o=>{let a=mu.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{i_.stat(a,t.fsStatSettings,(f,l)=>{if(f!==null){u(f);return}let h={name:o,path:a,dirent:gu.fs.createDirentFromStats(o,l)};t.stats&&(h.stats=l),u(null,h)})}});_u(s,(o,a)=>{if(o!==null){Br(r,o);return}ui(r,a)})})}Ue.readdir=bu;function Br(e,t){e(t)}function ui(e,t){e(null,t)}});var wu=g(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var u_=tt(),l_=si(),xu=oi(),Eu=ai();function f_(e,t){return!t.stats&&l_.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Su(e,t):Ru(e,t)}Ge.read=f_;function Su(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Eu.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=xu.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ge.readdirWithFileTypes=Su;function Ru(e,t){return t.fs.readdirSync(e).map(n=>{let i=Eu.joinPathSegments(e,n,t.pathSegmentSeparator),s=u_.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:xu.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Ge.readdir=Ru});var Au=g(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.createFileSystemAdapter=We.FILE_SYSTEM_ADAPTER=void 0;var xt=w("fs");We.FILE_SYSTEM_ADAPTER={lstat:xt.lstat,stat:xt.stat,lstatSync:xt.lstatSync,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};function c_(e){return e===void 0?We.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},We.FILE_SYSTEM_ADAPTER),e)}We.createFileSystemAdapter=c_});var Cu=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var h_=w("path"),p_=tt(),d_=Au(),Tu=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=d_.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,h_.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new p_.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};li.default=Tu});var Nr=g(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Settings=Ve.scandirSync=Ve.scandir=void 0;var Ou=vu(),__=wu(),fi=Cu();Ve.Settings=fi.default;function g_(e,t,r){if(typeof t=="function"){Ou.read(e,ci(),t);return}Ou.read(e,ci(t),r)}Ve.scandir=g_;function m_(e,t){let r=ci(t);return __.read(e,r)}Ve.scandirSync=m_;function ci(e={}){return e instanceof fi.default?e:new fi.default(e)}});var Lu=g((cv,Pu)=>{"use strict";function y_(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}}Pu.exports=y_});var Mu=g((hv,hi)=>{"use strict";var b_=Lu();function Du(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=b_(v_),i=null,s=null,o=0,a=null,u={push:m,drain:pe,saturated:pe,pause:l,paused:!1,concurrency:r,running:f,resume:E,idle:y,length:h,getQueue:c,unshift:S,empty:pe,kill:D,killAndDrain:N,error:Z};return u;function f(){return o}function l(){u.paused=!0}function h(){for(var C=i,$=0;C;)C=C.next,$++;return $}function c(){for(var C=i,$=[];C;)$.push(C.value),C=C.next;return $}function E(){if(!!u.paused){u.paused=!1;for(var C=0;C<u.concurrency;C++)o++,x()}}function y(){return o===0&&u.length()===0}function m(C,$){var O=n.get();O.context=e,O.release=x,O.value=C,O.callback=$||pe,O.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=O,s=O):(i=O,s=O,u.saturated()):(o++,t.call(e,O.value,O.worked))}function S(C,$){var O=n.get();O.context=e,O.release=x,O.value=C,O.callback=$||pe,o===u.concurrency||u.paused?i?(O.next=i,i=O):(i=O,s=O,u.saturated()):(o++,t.call(e,O.value,O.worked))}function x(C){C&&n.release(C);var $=i;$?u.paused?o--:(s===i&&(s=null),i=$.next,$.next=null,t.call(e,$.value,$.worked),s===null&&u.empty()):--o===0&&u.drain()}function D(){i=null,s=null,u.drain=pe}function N(){i=null,s=null,u.drain(),u.drain=pe}function Z(C){a=C}}function pe(){}function v_(){this.value=null,this.callback=pe,this.next=null,this.release=pe,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=pe,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function x_(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,h){t.call(this,l).then(function(c){h(null,c)},h)}var i=Du(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=f,i;function a(l){var h=new Promise(function(c,E){s(l,function(y,m){if(y){E(y);return}c(m)})});return h.catch(pe),h}function u(l){var h=new Promise(function(c,E){o(l,function(y,m){if(y){E(y);return}c(m)})});return h.catch(pe),h}function f(){var l=i.drain,h=new Promise(function(c){i.drain=function(){l(),c()}});return h}}hi.exports=Du;hi.exports.promise=x_});var Ir=g(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.joinPathSegments=Ce.replacePathSegmentSeparator=Ce.isAppliedFilter=Ce.isFatalError=void 0;function E_(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ce.isFatalError=E_;function S_(e,t){return e===null||e(t)}Ce.isAppliedFilter=S_;function R_(e,t){return e.split(/[/\\]/).join(t)}Ce.replacePathSegmentSeparator=R_;function w_(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ce.joinPathSegments=w_});var di=g(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});var A_=Ir(),Bu=class{constructor(t,r){this._root=t,this._settings=r,this._root=A_.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};pi.default=Bu});var gi=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var T_=w("events"),C_=Nr(),O_=Mu(),kr=Ir(),P_=di(),Nu=class extends P_.default{constructor(t,r){super(t,r);this._settings=r,this._scandir=C_.scandir,this._emitter=new T_.EventEmitter,this._queue=O_(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||!kr.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=kr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),kr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&kr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};_i.default=Nu});var ku=g(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var L_=gi(),Iu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new L_.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{D_(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{M_(t,this._storage)}),this._reader.read()}};mi.default=Iu;function D_(e,t){e(t)}function M_(e,t){e(null,t)}});var qu=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var B_=w("stream"),N_=gi(),Fu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new N_.default(this._root,this._settings),this._stream=new B_.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=Fu});var $u=g(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var I_=Nr(),Fr=Ir(),k_=di(),ju=class extends k_.default{constructor(){super(...arguments);this._scandir=I_.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(!!Fr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Fr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Fr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Fr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};bi.default=ju});var Uu=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var F_=$u(),Hu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new F_.default(this._root,this._settings)}read(){return this._reader.read()}};vi.default=Hu});var Wu=g(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var q_=w("path"),j_=Nr(),Gu=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,q_.sep),this.fsScandirSettings=new j_.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}};xi.default=Gu});var Si=g(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.Settings=Oe.walkStream=Oe.walkSync=Oe.walk=void 0;var Vu=ku(),$_=qu(),H_=Uu(),Ei=Wu();Oe.Settings=Ei.default;function U_(e,t,r){if(typeof t=="function"){new Vu.default(e,qr()).read(t);return}new Vu.default(e,qr(t)).read(r)}Oe.walk=U_;function G_(e,t){let r=qr(t);return new H_.default(e,r).read()}Oe.walkSync=G_;function W_(e,t){let r=qr(t);return new $_.default(e,r).read()}Oe.walkStream=W_;function qr(e={}){return e instanceof Ei.default?e:new Ei.default(e)}});var wi=g(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var V_=w("path"),Y_=tt(),Yu=Ne(),Ku=class{constructor(t){this._settings=t,this._fsStatSettings=new Y_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return V_.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Yu.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Yu.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ri.default=Ku});var Ti=g(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var K_=w("stream"),J_=tt(),Q_=Si(),X_=wi(),Ju=class extends X_.default{constructor(){super(...arguments);this._walkStream=Q_.walkStream,this._stat=J_.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new K_.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),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))})}};Ai.default=Ju});var Xu=g(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Et=Ne(),Qu=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Et.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 Et.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Et.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Et.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Et.array.splitWhen(t,r=>r.dynamic&&Et.pattern.hasGlobStar(r.pattern))}};Ci.default=Qu});var zu=g(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var Z_=Xu(),Zu=class extends Z_.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((u,f)=>{let l=s.segments[f];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};Oi.default=Zu});var tl=g(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var jr=Ne(),z_=zu(),el=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 z_.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(jr.pattern.isAffectDepthOfReadingPattern);return jr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=jr.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!jr.pattern.matchAny(t,r)}};Pi.default=el});var nl=g(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var rt=Ne(),rl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=rt.pattern.convertPatternsToRe(t,this._micromatchOptions),i=rt.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=rt.path.makeAbsolute(this._settings.cwd,t);return rt.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=rt.path.removeLeadingDotSegment(t);return rt.pattern.matchAny(n,r)||rt.pattern.matchAny(n+"/",r)}};Li.default=rl});var sl=g(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var eg=Ne(),il=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return eg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Di.default=il});var ul=g(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var ol=Ne(),al=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=ol.path.makeAbsolute(this._settings.cwd,r),r=ol.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Mi.default=al});var $r=g(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var tg=w("path"),rg=tl(),ng=nl(),ig=sl(),sg=ul(),ll=class{constructor(t){this._settings=t,this.errorFilter=new ig.default(this._settings),this.entryFilter=new ng.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new rg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new sg.default(this._settings)}_getRootDirectory(t){return tg.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}}};Bi.default=ll});var cl=g(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var og=Ti(),ag=$r(),fl=class extends ag.default{constructor(){super(...arguments);this._reader=new og.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let a=this.api(r,t,n);a.once("error",o),a.on("data",u=>i.push(n.transform(u))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ni.default=fl});var pl=g(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var ug=w("stream"),lg=Ti(),fg=$r(),hl=class extends fg.default{constructor(){super(...arguments);this._reader=new lg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new ug.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)}};Ii.default=hl});var _l=g(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var cg=tt(),hg=Si(),pg=wi(),dl=class extends pg.default{constructor(){super(...arguments);this._walkSync=hg.walkSync,this._statSync=cg.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)}};ki.default=dl});var ml=g(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var dg=_l(),_g=$r(),gl=class extends _g.default{constructor(){super(...arguments);this._reader=new dg.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)}};Fi.default=gl});var bl=g(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var St=w("fs"),gg=w("os"),mg=Math.max(gg.cpus().length,1);Rt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:St.lstat,lstatSync:St.lstatSync,stat:St.stat,statSync:St.statSync,readdir:St.readdir,readdirSync:St.readdirSync};var yl=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,mg),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({},Rt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Rt.default=yl});var Hi=g((Iv,El)=>{"use strict";var vl=Qa(),xl=Za(),yg=cl(),bg=pl(),vg=ml(),qi=bl(),nt=Ne();async function ji(e,t){wt(e);let r=$i(e,yg.default,t),n=await Promise.all(r);return nt.array.flatten(n)}(function(e){function t(o,a){wt(o);let u=$i(o,vg.default,a);return nt.array.flatten(u)}e.sync=t;function r(o,a){wt(o);let u=$i(o,bg.default,a);return nt.stream.merge(u)}e.stream=r;function n(o,a){wt(o);let u=xl.transform([].concat(o)),f=new qi.default(a);return vl.generate(u,f)}e.generateTasks=n;function i(o,a){wt(o);let u=new qi.default(a);return nt.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=i;function s(o){return wt(o),nt.path.escape(o)}e.escapePath=s})(ji||(ji={}));function $i(e,t,r){let n=xl.transform([].concat(e)),i=new qi.default(r),s=vl.generate(n,i),o=new t(i);return s.map(o.read,o)}function wt(e){if(![].concat(e).every(n=>nt.string.isString(n)&&!nt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}El.exports=ji});var Rl=g((kv,Ui)=>{"use strict";var Sl=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Ui.exports=Sl;Ui.exports.default=Sl});var Al=g((Fv,Ur)=>{"use strict";var xg=Rl(),Hr=new WeakMap,wl=(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(Hr.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 xg(s,e),Hr.set(s,n),s};Ur.exports=wl;Ur.exports.default=wl;Ur.exports.callCount=e=>{if(!Hr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Hr.get(e)}});var Tl=g((qv,Gr)=>{Gr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Gr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Gr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Dl=g((jv,Ct)=>{var V=global.process,it=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"};it(V)?(Cl=w("assert"),At=Tl(),Ol=/^win/i.test(V.platform),Gt=w("events"),typeof Gt!="function"&&(Gt=Gt.EventEmitter),V.__signal_exit_emitter__?ee=V.__signal_exit_emitter__:(ee=V.__signal_exit_emitter__=new Gt,ee.count=0,ee.emitted={}),ee.infinite||(ee.setMaxListeners(1/0),ee.infinite=!0),Ct.exports=function(e,t){if(!it(global.process))return function(){};Cl.equal(typeof e,"function","a callback must be provided for exit handler"),Tt===!1&&Gi();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&&Wr()};return ee.on(r,e),n},Wr=function(){!Tt||!it(global.process)||(Tt=!1,At.forEach(function(t){try{V.removeListener(t,Vr[t])}catch{}}),V.emit=Yr,V.reallyExit=Wi,ee.count-=1)},Ct.exports.unload=Wr,st=function(t,r,n){ee.emitted[t]||(ee.emitted[t]=!0,ee.emit(t,r,n))},Vr={},At.forEach(function(e){Vr[e]=function(){if(!!it(global.process)){var r=V.listeners(e);r.length===ee.count&&(Wr(),st("exit",null,e),st("afterexit",null,e),Ol&&e==="SIGHUP"&&(e="SIGINT"),V.kill(V.pid,e))}}}),Ct.exports.signals=function(){return At},Tt=!1,Gi=function(){Tt||!it(global.process)||(Tt=!0,ee.count+=1,At=At.filter(function(t){try{return V.on(t,Vr[t]),!0}catch{return!1}}),V.emit=Ll,V.reallyExit=Pl)},Ct.exports.load=Gi,Wi=V.reallyExit,Pl=function(t){!it(global.process)||(V.exitCode=t||0,st("exit",V.exitCode,null),st("afterexit",V.exitCode,null),Wi.call(V,V.exitCode))},Yr=V.emit,Ll=function(t,r){if(t==="exit"&&it(global.process)){r!==void 0&&(V.exitCode=r);var n=Yr.apply(this,arguments);return st("exit",V.exitCode,null),st("afterexit",V.exitCode,null),n}else return Yr.apply(this,arguments)}):Ct.exports=function(){return function(){}};var Cl,At,Ol,Gt,ee,Wr,st,Vr,Tt,Gi,Wi,Pl,Yr,Ll});var kl=g((Vv,Rg)=>{Rg.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var jl=g((Yv,ql)=>{"use strict";var Jr=Object.assign({},kl()),Fl=Object.keys(Jr);Object.defineProperty(Jr,"random",{get(){let e=Math.floor(Math.random()*Fl.length),t=Fl[e];return Jr[t]}});ql.exports=Jr});var $l=g((rx,Qr)=>{var Cg=function(){"use strict";function e(o,a,u,f){var l;typeof a=="object"&&(u=a.depth,f=a.prototype,l=a.filter,a=a.circular);var h=[],c=[],E=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof u>"u"&&(u=1/0);function y(m,S){if(m===null)return null;if(S==0)return m;var x,D;if(typeof m!="object")return m;if(e.__isArray(m))x=[];else if(e.__isRegExp(m))x=new RegExp(m.source,s(m)),m.lastIndex&&(x.lastIndex=m.lastIndex);else if(e.__isDate(m))x=new Date(m.getTime());else{if(E&&Buffer.isBuffer(m))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(m.length):x=new Buffer(m.length),m.copy(x),x;typeof f>"u"?(D=Object.getPrototypeOf(m),x=Object.create(D)):(x=Object.create(f),D=f)}if(a){var N=h.indexOf(m);if(N!=-1)return c[N];h.push(m),c.push(x)}for(var Z in m){var C;D&&(C=Object.getOwnPropertyDescriptor(D,Z)),!(C&&C.set==null)&&(x[Z]=y(m[Z],S-1))}return x}return y(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};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 Qr=="object"&&Qr.exports&&(Qr.exports=Cg)});var Ul=g((nx,Hl)=>{var Og=$l();Hl.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Og(t[r]))}),e}});var Wl=g((ix,Gl)=>{Gl.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 Jl=g((sx,Ji)=>{"use strict";var Pg=Ul(),Yt=Wl(),Yl={nul:0,control:0};Ji.exports=function(t){return Kl(t,Yl)};Ji.exports.config=function(e){return e=Pg(e||{},Yl),function(r){return Kl(r,e)}};function Kl(e,t){if(typeof e!="string")return Vl(e,t);for(var r=0,n=0;n<e.length;n++){var i=Vl(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Vl(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Lg(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 Lg(e){var t=0,r=Yt.length-1,n;if(e<Yt[0][0]||e>Yt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Yt[n][1])t=n+1;else if(e<Yt[n][0])r=n-1;else return!0;return!1}});var Xi=g((ax,Ql)=>{Ql.exports=w("stream")});var ef=g((ux,zl)=>{"use strict";function Xl(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 Dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xl(Object(r),!0).forEach(function(n){Mg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zl(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 Ng(e,t,r){return t&&Zl(e.prototype,t),r&&Zl(e,r),e}var Ig=w("buffer"),Xr=Ig.Buffer,kg=w("util"),Zi=kg.inspect,Fg=Zi&&Zi.custom||"inspect";function qg(e,t,r){Xr.prototype.copy.call(e,t,r)}zl.exports=function(){function e(){Bg(this,e),this.head=null,this.tail=null,this.length=0}return Ng(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 Xr.alloc(0);for(var n=Xr.allocUnsafe(r>>>0),i=this.head,s=0;i;)qg(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=Xr.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:Fg,value:function(r,n){return Zi(this,Dg({},n,{depth:0,customInspect:!1}))}}]),e}()});var es=g((lx,rf)=>{"use strict";function jg(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(zi,this,e)):process.nextTick(zi,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(Zr,r):(r._writableState.errorEmitted=!0,process.nextTick(tf,r,s)):process.nextTick(tf,r,s):t?(process.nextTick(Zr,r),t(s)):process.nextTick(Zr,r)}),this)}function tf(e,t){zi(e,t),Zr(e)}function Zr(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function $g(){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 zi(e,t){e.emit("error",t)}function Hg(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}rf.exports={destroy:jg,undestroy:$g,errorOrDestroy:Hg}});var Ye=g((fx,of)=>{"use strict";var sf={};function de(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,u){super(n(o,a,u))}}i.prototype.name=r.name,i.prototype.code=e,sf[e]=i}function nf(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 Ug(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Gg(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Wg(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}de("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);de("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&Ug(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(Gg(e," argument"))i=`The ${e} ${n} ${nf(t,"type")}`;else{let s=Wg(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${nf(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);de("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");de("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});de("ERR_STREAM_PREMATURE_CLOSE","Premature close");de("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});de("ERR_MULTIPLE_CALLBACK","Callback called multiple times");de("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");de("ERR_STREAM_WRITE_AFTER_END","write after end");de("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);de("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);de("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");of.exports.codes=sf});var ts=g((cx,af)=>{"use strict";var Vg=Ye().codes.ERR_INVALID_OPT_VALUE;function Yg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Kg(e,t,r,n){var i=Yg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Vg(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}af.exports={getHighWaterMark:Kg}});var uf=g((hx,rs)=>{typeof Object.create=="function"?rs.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:rs.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 ot=g((px,is)=>{try{if(ns=w("util"),typeof ns.inherits!="function")throw"";is.exports=ns.inherits}catch{is.exports=uf()}var ns});var ff=g((dx,lf)=>{lf.exports=w("util").deprecate});var as=g((_x,gf)=>{"use strict";gf.exports=K;function hf(e){var t=this;this.next=null,this.entry=null,this.finish=function(){x0(t,e)}}var Pt;K.WritableState=Jt;var Jg={deprecate:ff()},pf=Xi(),en=w("buffer").Buffer,Qg=global.Uint8Array||function(){};function Xg(e){return en.from(e)}function Zg(e){return en.isBuffer(e)||e instanceof Qg}var os=es(),zg=ts(),e0=zg.getHighWaterMark,Ke=Ye().codes,t0=Ke.ERR_INVALID_ARG_TYPE,r0=Ke.ERR_METHOD_NOT_IMPLEMENTED,n0=Ke.ERR_MULTIPLE_CALLBACK,i0=Ke.ERR_STREAM_CANNOT_PIPE,s0=Ke.ERR_STREAM_DESTROYED,o0=Ke.ERR_STREAM_NULL_VALUES,a0=Ke.ERR_STREAM_WRITE_AFTER_END,u0=Ke.ERR_UNKNOWN_ENCODING,Lt=os.errorOrDestroy;ot()(K,pf);function l0(){}function Jt(e,t,r){Pt=Pt||at(),e=e||{},typeof r!="boolean"&&(r=t instanceof Pt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=e0(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){g0(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 hf(this)}Jt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Jt.prototype,"buffer",{get:Jg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var zr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zr=Function.prototype[Symbol.hasInstance],Object.defineProperty(K,Symbol.hasInstance,{value:function(t){return zr.call(this,t)?!0:this!==K?!1:t&&t._writableState instanceof Jt}})):zr=function(t){return t instanceof this};function K(e){Pt=Pt||at();var t=this instanceof Pt;if(!t&&!zr.call(K,this))return new K(e);this._writableState=new Jt(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)),pf.call(this)}K.prototype.pipe=function(){Lt(this,new i0)};function f0(e,t){var r=new a0;Lt(e,r),process.nextTick(t,r)}function c0(e,t,r,n){var i;return r===null?i=new o0:typeof r!="string"&&!t.objectMode&&(i=new t0("chunk",["string","Buffer"],r)),i?(Lt(e,i),process.nextTick(n,i),!1):!0}K.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&Zg(e);return s&&!en.isBuffer(e)&&(e=Xg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=l0),n.ending?f0(this,r):(s||c0(this,n,e,r))&&(n.pendingcb++,i=p0(this,n,s,e,t,r)),i};K.prototype.cork=function(){this._writableState.corked++};K.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&df(this,e))};K.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 u0(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(K.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function h0(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=en.from(t,r)),t}Object.defineProperty(K.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p0(e,t,r,n,i,s){if(!r){var o=h0(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(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 ss(e,t,!1,a,n,i,s);return u}function ss(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new s0("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function d0(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Kt,e,t),e._writableState.errorEmitted=!0,Lt(e,n)):(i(n),e._writableState.errorEmitted=!0,Lt(e,n),Kt(e,t))}function _0(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function g0(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new n0;if(_0(r),t)d0(e,r,n,t,i);else{var s=_f(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&df(e,r),n?process.nextTick(cf,e,r,s,i):cf(e,r,s,i)}}function cf(e,t,r,n){r||m0(e,t),t.pendingcb--,n(),Kt(e,t)}function m0(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function df(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,ss(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 hf(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(ss(e,t,!1,h,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}K.prototype._write=function(e,t,r){r(new r0("_write()"))};K.prototype._writev=null;K.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||v0(this,n,r),this};Object.defineProperty(K.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function _f(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function y0(e,t){e._final(function(r){t.pendingcb--,r&&Lt(e,r),t.prefinished=!0,e.emit("prefinish"),Kt(e,t)})}function b0(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(y0,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Kt(e,t){var r=_f(t);if(r&&(b0(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 v0(e,t,r){t.ending=!0,Kt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function x0(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(K.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});K.prototype.destroy=os.destroy;K.prototype._undestroy=os.undestroy;K.prototype._destroy=function(e,t){t(e)}});var at=g((gx,yf)=>{"use strict";var E0=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};yf.exports=Pe;var mf=fs(),ls=as();ot()(Pe,mf);for(us=E0(ls.prototype),tn=0;tn<us.length;tn++)rn=us[tn],Pe.prototype[rn]||(Pe.prototype[rn]=ls.prototype[rn]);var us,rn,tn;function Pe(e){if(!(this instanceof Pe))return new Pe(e);mf.call(this,e),ls.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",S0)))}Object.defineProperty(Pe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function S0(){this._writableState.ended||process.nextTick(R0,this)}function R0(e){e.end()}Object.defineProperty(Pe.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 xf=g((cs,vf)=>{var nn=w("buffer"),Le=nn.Buffer;function bf(e,t){for(var r in e)t[r]=e[r]}Le.from&&Le.alloc&&Le.allocUnsafe&&Le.allocUnsafeSlow?vf.exports=nn:(bf(nn,cs),cs.Buffer=ut);function ut(e,t,r){return Le(e,t,r)}ut.prototype=Object.create(Le.prototype);bf(Le,ut);ut.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Le(e,t,r)};ut.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Le(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ut.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Le(e)};ut.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return nn.SlowBuffer(e)}});var ds=g(Sf=>{"use strict";var ps=xf().Buffer,Ef=ps.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 w0(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 A0(e){var t=w0(e);if(typeof t!="string"&&(ps.isEncoding===Ef||!Ef(e)))throw new Error("Unknown encoding: "+e);return t||e}Sf.StringDecoder=Qt;function Qt(e){this.encoding=A0(e);var t;switch(this.encoding){case"utf16le":this.text=D0,this.end=M0,t=4;break;case"utf8":this.fillLast=O0,t=4;break;case"base64":this.text=B0,this.end=N0,t=3;break;default:this.write=I0,this.end=k0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ps.allocUnsafe(t)}Qt.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||""};Qt.prototype.end=L0;Qt.prototype.text=P0;Qt.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 hs(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function T0(e,t,r){var n=t.length-1;if(n<r)return 0;var i=hs(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=hs(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=hs(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function C0(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 O0(e){var t=this.lastTotal-this.lastNeed,r=C0(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 P0(e,t){var r=T0(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 L0(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function D0(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 M0(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 B0(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 N0(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function I0(e){return e.toString(this.encoding)}function k0(e){return e&&e.length?this.write(e):""}});var sn=g((yx,Af)=>{"use strict";var Rf=Ye().codes.ERR_STREAM_PREMATURE_CLOSE;function F0(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 q0(){}function j0(e){return e.setHeader&&typeof e.abort=="function"}function wf(e,t,r){if(typeof t=="function")return wf(e,null,t);t||(t={}),r=F0(r||q0);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)},u=e._readableState&&e._readableState.endEmitted,f=function(){n=!1,u=!0,i||r.call(e)},l=function(y){r.call(e,y)},h=function(){var y;if(n&&!u)return(!e._readableState||!e._readableState.ended)&&(y=new Rf),r.call(e,y);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(y=new Rf),r.call(e,y)},c=function(){e.req.on("finish",a)};return j0(e)?(e.on("complete",a),e.on("abort",h),e.req?c():e.on("request",c)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",l),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",c),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",l),e.removeListener("close",h)}}Af.exports=wf});var Cf=g((bx,Tf)=>{"use strict";var on;function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $0=sn(),Qe=Symbol("lastResolve"),lt=Symbol("lastReject"),Xt=Symbol("error"),an=Symbol("ended"),ft=Symbol("lastPromise"),_s=Symbol("handlePromise"),ct=Symbol("stream");function Xe(e,t){return{value:e,done:t}}function H0(e){var t=e[Qe];if(t!==null){var r=e[ct].read();r!==null&&(e[ft]=null,e[Qe]=null,e[lt]=null,t(Xe(r,!1)))}}function U0(e){process.nextTick(H0,e)}function G0(e,t){return function(r,n){e.then(function(){if(t[an]){r(Xe(void 0,!0));return}t[_s](r,n)},n)}}var W0=Object.getPrototypeOf(function(){}),V0=Object.setPrototypeOf((on={get stream(){return this[ct]},next:function(){var t=this,r=this[Xt];if(r!==null)return Promise.reject(r);if(this[an])return Promise.resolve(Xe(void 0,!0));if(this[ct].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Xt]?a(t[Xt]):o(Xe(void 0,!0))})});var n=this[ft],i;if(n)i=new Promise(G0(n,this));else{var s=this[ct].read();if(s!==null)return Promise.resolve(Xe(s,!1));i=new Promise(this[_s])}return this[ft]=i,i}},Je(on,Symbol.asyncIterator,function(){return this}),Je(on,"return",function(){var t=this;return new Promise(function(r,n){t[ct].destroy(null,function(i){if(i){n(i);return}r(Xe(void 0,!0))})})}),on),W0),Y0=function(t){var r,n=Object.create(V0,(r={},Je(r,ct,{value:t,writable:!0}),Je(r,Qe,{value:null,writable:!0}),Je(r,lt,{value:null,writable:!0}),Je(r,Xt,{value:null,writable:!0}),Je(r,an,{value:t._readableState.endEmitted,writable:!0}),Je(r,_s,{value:function(s,o){var a=n[ct].read();a?(n[ft]=null,n[Qe]=null,n[lt]=null,s(Xe(a,!1))):(n[Qe]=s,n[lt]=o)},writable:!0}),r));return n[ft]=null,$0(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[lt];s!==null&&(n[ft]=null,n[Qe]=null,n[lt]=null,s(i)),n[Xt]=i;return}var o=n[Qe];o!==null&&(n[ft]=null,n[Qe]=null,n[lt]=null,o(Xe(void 0,!0))),n[an]=!0}),t.on("readable",U0.bind(null,n)),n};Tf.exports=Y0});var Df=g((vx,Lf)=>{"use strict";function Of(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(f){r(f);return}a.done?t(u):Promise.resolve(u).then(n,i)}function K0(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(u){Of(s,n,i,o,a,"next",u)}function a(u){Of(s,n,i,o,a,"throw",u)}o(void 0)})}}function Pf(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 J0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pf(Object(r),!0).forEach(function(n){Q0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var X0=Ye().codes.ERR_INVALID_ARG_TYPE;function Z0(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 X0("iterable",["Iterable"],t);var i=new e(J0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=K0(function*(){try{var u=yield n.next(),f=u.value,l=u.done;l?i.push(null):i.push(yield f)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}Lf.exports=Z0});var fs=g((Ex,Hf)=>{"use strict";Hf.exports=I;var Dt;I.ReadableState=If;var xx=w("events").EventEmitter,Nf=function(t,r){return t.listeners(r).length},zt=Xi(),un=w("buffer").Buffer,z0=global.Uint8Array||function(){};function em(e){return un.from(e)}function tm(e){return un.isBuffer(e)||e instanceof z0}var gs=w("util"),L;gs&&gs.debuglog?L=gs.debuglog("stream"):L=function(){};var rm=ef(),Ss=es(),nm=ts(),im=nm.getHighWaterMark,ln=Ye().codes,sm=ln.ERR_INVALID_ARG_TYPE,om=ln.ERR_STREAM_PUSH_AFTER_EOF,am=ln.ERR_METHOD_NOT_IMPLEMENTED,um=ln.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Mt,ms,ys;ot()(I,zt);var Zt=Ss.errorOrDestroy,bs=["error","close","destroy","pause","resume"];function lm(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 If(e,t,r){Dt=Dt||at(),e=e||{},typeof r!="boolean"&&(r=t instanceof Dt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=im(this,e,"readableHighWaterMark",r),this.buffer=new rm,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&&(Mt||(Mt=ds().StringDecoder),this.decoder=new Mt(e.encoding),this.encoding=e.encoding)}function I(e){if(Dt=Dt||at(),!(this instanceof I))return new I(e);var t=this instanceof Dt;this._readableState=new If(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),zt.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});I.prototype.destroy=Ss.destroy;I.prototype._undestroy=Ss.undestroy;I.prototype._destroy=function(e,t){t(e)};I.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=un.from(e,t),t=""),n=!0),kf(this,e,t,!1,n)};I.prototype.unshift=function(e){return kf(this,e,null,!0,!1)};function kf(e,t,r,n,i){L("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,hm(e,s);else{var o;if(i||(o=fm(s,t)),o)Zt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==un.prototype&&(t=em(t)),n)s.endEmitted?Zt(e,new um):vs(e,s,t,!0);else if(s.ended)Zt(e,new om);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?vs(e,s,t,!1):Es(e,s)):vs(e,s,t,!1)}else n||(s.reading=!1,Es(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function vs(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&&fn(e)),Es(e,t)}function fm(e,t){var r;return!tm(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new sm("chunk",["string","Buffer","Uint8Array"],t)),r}I.prototype.isPaused=function(){return this._readableState.flowing===!1};I.prototype.setEncoding=function(e){Mt||(Mt=ds().StringDecoder);var t=new Mt(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 Mf=1073741824;function cm(e){return e>=Mf?e=Mf:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Bf(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=cm(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}I.prototype.read=function(e){L("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return L("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?xs(this):fn(this),null;if(e=Bf(e,t),e===0&&t.ended)return t.length===0&&xs(this),null;var n=t.needReadable;L("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,L("length less than watermark",n)),t.ended||t.reading?(n=!1,L("reading or ended",n)):n&&(L("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Bf(r,t)));var i;return e>0?i=jf(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&&xs(this)),i!==null&&this.emit("data",i),i};function hm(e,t){if(L("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?fn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Ff(e)))}}function fn(e){var t=e._readableState;L("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(L("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Ff,e))}function Ff(e){var t=e._readableState;L("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Rs(e)}function Es(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(pm,e,t))}function pm(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(L("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}I.prototype._read=function(e){Zt(this,new am("_read()"))};I.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,L("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:m;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(S,x){L("onunpipe"),S===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,l())}function a(){L("onend"),e.end()}var u=dm(r);e.on("drain",u);var f=!1;function l(){L("cleanup"),e.removeListener("close",E),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}r.on("data",h);function h(S){L("ondata");var x=e.write(S);L("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&$f(n.pipes,e)!==-1)&&!f&&(L("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(S){L("onerror",S),m(),e.removeListener("error",c),Nf(e,"error")===0&&Zt(e,S)}lm(e,"error",c);function E(){e.removeListener("finish",y),m()}e.once("close",E);function y(){L("onfinish"),e.removeListener("close",E),m()}e.once("finish",y);function m(){L("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(L("pipe resume"),r.resume()),e};function dm(e){return function(){var r=e._readableState;L("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Nf(e,"data")&&(r.flowing=!0,Rs(e))}}I.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=$f(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};I.prototype.on=function(e,t){var r=zt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,L("on readable",n.length,n.reading),n.length?fn(this):n.reading||process.nextTick(_m,this)),r};I.prototype.addListener=I.prototype.on;I.prototype.removeListener=function(e,t){var r=zt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(qf,this),r};I.prototype.removeAllListeners=function(e){var t=zt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(qf,this),t};function qf(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 _m(e){L("readable nexttick read 0"),e.read(0)}I.prototype.resume=function(){var e=this._readableState;return e.flowing||(L("resume"),e.flowing=!e.readableListening,gm(this,e)),e.paused=!1,this};function gm(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(mm,e,t))}function mm(e,t){L("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Rs(e),t.flowing&&!t.reading&&e.read(0)}I.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Rs(e){var t=e._readableState;for(L("flow",t.flowing);t.flowing&&e.read()!==null;);}I.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(L("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(L("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<bs.length;s++)e.on(bs[s],this.emit.bind(this,bs[s]));return this._read=function(o){L("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return ms===void 0&&(ms=Cf()),ms(this)});Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});I._fromList=jf;Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function jf(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 xs(e){var t=e._readableState;L("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(ym,t,e))}function ym(e,t){if(L("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(I.from=function(e,t){return ys===void 0&&(ys=Df()),ys(I,e,t)});function $f(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var ws=g((Sx,Gf)=>{"use strict";Gf.exports=Fe;var cn=Ye().codes,bm=cn.ERR_METHOD_NOT_IMPLEMENTED,vm=cn.ERR_MULTIPLE_CALLBACK,xm=cn.ERR_TRANSFORM_ALREADY_TRANSFORMING,Em=cn.ERR_TRANSFORM_WITH_LENGTH_0,hn=at();ot()(Fe,hn);function Sm(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new vm);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 Fe(e){if(!(this instanceof Fe))return new Fe(e);hn.call(this,e),this._transformState={afterTransform:Sm.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",Rm)}function Rm(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Uf(e,t,r)}):Uf(this,null,null)}Fe.prototype.push=function(e,t){return this._transformState.needTransform=!1,hn.prototype.push.call(this,e,t)};Fe.prototype._transform=function(e,t,r){r(new bm("_transform()"))};Fe.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)}};Fe.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};Fe.prototype._destroy=function(e,t){hn.prototype._destroy.call(this,e,function(r){t(r)})};function Uf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Em;if(e._transformState.transforming)throw new xm;return e.push(null)}});var Yf=g((Rx,Vf)=>{"use strict";Vf.exports=er;var Wf=ws();ot()(er,Wf);function er(e){if(!(this instanceof er))return new er(e);Wf.call(this,e)}er.prototype._transform=function(e,t,r){r(null,e)}});var Zf=g((wx,Xf)=>{"use strict";var As;function wm(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Qf=Ye().codes,Am=Qf.ERR_MISSING_ARGS,Tm=Qf.ERR_STREAM_DESTROYED;function Kf(e){if(e)throw e}function Cm(e){return e.setHeader&&typeof e.abort=="function"}function Om(e,t,r,n){n=wm(n);var i=!1;e.on("close",function(){i=!0}),As===void 0&&(As=sn()),As(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,Cm(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Tm("pipe"))}}}function Jf(e){e()}function Pm(e,t){return e.pipe(t)}function Lm(e){return!e.length||typeof e[e.length-1]!="function"?Kf:e.pop()}function Dm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Lm(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Am("streams");var i,s=t.map(function(o,a){var u=a<t.length-1,f=a>0;return Om(o,u,f,function(l){i||(i=l),l&&s.forEach(Jf),!u&&(s.forEach(Jf),n(i))})});return t.reduce(Pm)}Xf.exports=Dm});var zf=g((_e,rr)=>{var tr=w("stream");process.env.READABLE_STREAM==="disable"&&tr?(rr.exports=tr.Readable,Object.assign(rr.exports,tr),rr.exports.Stream=tr):(_e=rr.exports=fs(),_e.Stream=tr||_e,_e.Readable=_e,_e.Writable=as(),_e.Duplex=at(),_e.Transform=ws(),_e.PassThrough=Yf(),_e.finished=sn(),_e.pipeline=Zf())});var rc=g((Ax,tc)=>{"use strict";var{Buffer:be}=w("buffer"),ec=Symbol.for("BufferList");function U(e){if(!(this instanceof U))return new U(e);U._init.call(this,e)}U._init=function(t){Object.defineProperty(this,ec,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};U.prototype._new=function(t){return new U(t)};U.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}};U.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};U.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};U.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)};U.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,u=a,f=s&&r||0,l=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 h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,f),f+=this._bufs[h].length;return t}if(u<=this._bufs[o[0]].length-l)return s?this._bufs[o[0]].copy(t,r,l,l+u):this._bufs[o[0]].slice(l,l+u);s||(t=be.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let c=this._bufs[h].length-l;if(u>c)this._bufs[h].copy(t,f,l),f+=c;else{this._bufs[h].copy(t,f,l,l+u),f+=c;break}u-=c,l&&(l=0)}return t.length>f?t.slice(0,f):t};U.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)};U.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};U.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};U.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};U.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};U.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};U.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 u=o.indexOf(e,s);if(u!==-1)return this._reverseOffset([i,u]);s=o.length-e.length+1}else{let u=this._reverseOffset([i,s]);if(this._match(u,e))return u;s++}s=0}return-1};U.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?U.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:U.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();U.prototype._isBufferList=function(t){return t instanceof U||U.isBufferList(t)};U.isBufferList=function(t){return t!=null&&t[ec]};tc.exports=U});var nc=g((Tx,pn)=>{"use strict";var Ts=zf().Duplex,Mm=ot(),nr=rc();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}nr._init.call(this,e),Ts.call(this)}Mm(ne,Ts);Object.assign(ne.prototype,nr.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){Ts.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 nr||ne.isBufferList(t)};ne.isBufferList=nr.isBufferList;pn.exports=ne;pn.exports.BufferListStream=ne;pn.exports.BufferList=nr});var Ks=g((mS,Nc)=>{var Rn=w("fs"),Bc=w("path"),jy=w("os");function Vs(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function Ys(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var $y={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return Vs(e,"RegExp")},string:function(e){return Vs(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return Vs(e,"Number")},exists:function(e){return Rn.existsSync(e)},file:function(e){return Ys(e,function(t){return Rn.statSync(t).isFile()})},samePath:function(e,t){return Bc.resolve(e)===Bc.resolve(t)},directory:function(e){return Ys(e,function(t){return Rn.statSync(t).isDirectory()})},symbolicLink:function(e){return Ys(e,function(t){return Rn.lstatSync(t).isSymbolicLink()})},windows:function(){return jy.platform()==="win32"}};Nc.exports=$y});var jc=g((yS,qc)=>{var ur=w("fs"),Ic=w("os"),Js=w("path"),wn=Ks(),ar,Hy=Ic.tmpdir&&Ic.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Fc(){this.stack=[]}Fc.prototype={create:function(e,t){var r=Js.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)ur.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)ur.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&wn.file(n)?ur.unlinkSync(n):r==="dir"&&wn.directory(n)&&ur.rmdirSync(n)}}finally{wn.func(e)&&e()}}};var kc=!1;qc.exports=function e(t){if(!wn.func(t))return!1;if(ar!==void 0)return t(ar);if(!kc)kc=!0;else return setTimeout(function(){e(t)},300);var r=new Fc,n=r.create("dir",Hy),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=ur.watch(n,o)}catch(f){if(f.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(ar=!1);throw f}if(!a)return!1;var u=setTimeout(function(){a.close(),r.cleanup(function(){t(ar=!1)})},200);a.on("change",function(f,l){Js.basename(s)===Js.basename(l)&&(a.close(),clearTimeout(u),r.cleanup(function(){t(ar=!0)}))}),r.write(s)}});var Xc=g((bS,zs)=>{var Xs=w("fs"),lr=w("path"),Hc=w("util"),Uc=w("events"),Gc=jc(),H=Ks(),Uy="update",Wc="remove",$c=Symbol("skip");function Gy(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function Zs(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function Wy(e){return e.reduce(function(t,r){return t.concat(r)},[])}function Vy(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function Yy(e){return H.func(e)?function(t,r){e(t,!1)&&r()}:H.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function Ky(e){return e.map(function(t){return H.exists(t)?[Uy,t]:[Wc,t]})}function Jy(e){var t=Zs(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=Gy(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return H.exists(s)}))}return Ky(t)}function Qy(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;H.number(s)||(s=200);function o(){Jy(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,u){n.push(u),r||(r=setTimeout(o,s))}}function Vc(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function Yc(e,t,r=function(){}){H.directory(e)?Xs.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=lr.join(e,s);H.directory(o)&&t(o)}),r()}):r()}function Xy(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function Zy(){return function(){}}function Kc(e,t){return!H.func(t)||t(e,$c)!==$c}var Jc=Hc.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Me(){Uc.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Hc.inherits(Me,Uc.EventEmitter);Me.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};Me.prototype.isClosed=function(){return this._isClosed};Me.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),Yc(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};H.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Qc,this)))};Me.prototype.getWatchedPaths=function(e){if(H.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function Qs(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function Qc(e){e.emit("close")}Me.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=lr.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var u=a;H.nil(u)&&(u=""),u=lr.join(t.fpath,u),t.options.recursive&&Gc(function(f){if(!f){var l=lr.resolve(u);if(!H.exists(u))r.close(l);else{var h=H.directory(u)&&!r.watchers[l]&&Kc(u,t.options.filter);h&&r.watchDirectory(u,t.options)}}}),s(o,u)}},s=Qy(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var u=Yy(t.options.filter);u(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(H.windows()&&o.code==="EPERM"?(e.emit("change",Wc,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};Me.prototype.watchFile=function(e,t,r){var n=lr.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=Xs.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return H.samePath(o,e)}}),H.func(r)&&(r.length===1&&Jc(),this.on("change",r))};Me.prototype.watchDirectory=function(e,t,r,n=Zy){var i=this,s=n();Gc(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var u=Xs.watch(e,a);i.add(u,{type:"dir",fpath:e,options:t}),H.func(r)&&(r.length===1&&Jc(),i.on("change",r)),t.recursive&&!o&&Yc(e,function(f){Kc(f,t.filter)&&i.watchDirectory(f,t,null,n)},n()),s()})};function zy(e){var t=new Me,r=Vc(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||Qs(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(Qc,t)},t.getWatchedPaths=function(i){if(H.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Zs(Wy(o));i(a)})}},t.expose()}function An(e,t,r){var n=new Me;if(H.buffer(e)&&(e=e.toString()),!H.array(e)&&!H.exists(e)&&n.emit("error",new Error(e+" does not exist.")),H.string(t)&&(t={encoding:t}),H.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?Vy(t.encoding):t.encoding="utf8",H.array(e)){if(e.length===1)return An(e[0],t,r);var i=Vc();return zy(Zs(e).map(function(o){var a=An(o,t);return H.func(r)&&a.on("change",i(r)),a}))}if(H.file(e))n.watchFile(e,t,r),Qs(n);else if(H.directory(e)){var s=Xy(function(){Qs(n)});n.watchDirectory(e,t,r,s)}return n.expose()}zs.exports=An;zs.exports.default=An});import{constants as wy,existsSync as Tc}from"fs";import{copyFile as Ay,mkdir as Ty,readFile as Us,rm as Ec,writeFile as Cc}from"fs/promises";import{dirname as Oc,extname as Cy,isAbsolute as Oy,resolve as Py,resolve as xn}from"path";import{build as $s,transform as Ly}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`;function lh(){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=to(),t.color.ansi256=ro(),t.color.ansi16m=no(),t.bgColor.ansi=to(10),t.bgColor.ansi256=ro(10),t.bgColor.ansi16m=no(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 u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%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 fh=lh(),ye=fh;import Cn from"node:process";import ch from"node:os";import io from"node:tty";function ce(e,t=Cn.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:Q}=Cn,dr;ce("no-color")||ce("no-colors")||ce("color=false")||ce("color=never")?dr=0:(ce("color")||ce("colors")||ce("color=true")||ce("color=always"))&&(dr=1);function hh(){if("FORCE_COLOR"in Q)return Q.FORCE_COLOR==="true"?1:Q.FORCE_COLOR==="false"?0:Q.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Q.FORCE_COLOR,10),3)}function ph(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function dh(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=hh();n!==void 0&&(dr=n);let i=r?dr: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(Q.TERM==="dumb")return s;if(Cn.platform==="win32"){let o=ch.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Q)||Q.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Q&&"AGENT_NAME"in Q)return 1;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let o=Number.parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:s}function so(e,t={}){let r=dh(e,{streamIsTTY:e&&e.isTTY,...t});return ph(r)}var _h={stdout:so({isTTY:io.isatty(1)}),stderr:so({isTTY:io.isatty(2)})},oo=_h;function ao(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 uo(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
4
+ var iA=Object.create;var no=Object.defineProperty;var sA=Object.getOwnPropertyDescriptor;var oA=Object.getOwnPropertyNames;var aA=Object.getPrototypeOf,uA=Object.prototype.hasOwnProperty;var x=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oA(t))!uA.call(e,i)&&i!==r&&no(e,i,{get:()=>t[i],enumerable:!(n=sA(t,i))||n.enumerable});return e};var He=(e,t,r)=>(r=e!=null?iA(aA(e)):{},lA(t||!e||!e.__esModule?no(r,"default",{value:e,enumerable:!0}):r,e));var go=g(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.splitWhen=_t.flatten=void 0;function vA(e){return e.reduce((t,r)=>[].concat(t,r),[])}_t.flatten=vA;function SA(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}_t.splitWhen=SA});var _o=g(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.isEnoentCodeError=void 0;function xA(e){return e.code==="ENOENT"}_r.isEnoentCodeError=xA});var mo=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.createDirentFromStats=void 0;var Eo=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 BA(e,t){return new Eo(e,t)}Er.createDirentFromStats=BA});var yo=g(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.removeLeadingDotSegment=Be.escape=Be.makeAbsolute=Be.unixify=void 0;var wA=x("path"),RA=2,QA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function IA(e){return e.replace(/\\/g,"/")}Be.unixify=IA;function TA(e,t){return wA.resolve(e,t)}Be.makeAbsolute=TA;function OA(e){return e.replace(QA,"\\$2")}Be.escape=OA;function DA(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(RA)}return e}Be.removeLeadingDotSegment=DA});var bo=g((wm,Co)=>{Co.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 xo=g((Rm,So)=>{var kA=bo(),vo={"{":"}","(":")","[":"]"},LA=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 u=vo[a];if(u){var l=e.indexOf(u,t);l!==-1&&(t=l+1)}if(e[t]==="!")return!0}else t++}return!1},PA=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=vo[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};So.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(kA(t))return!0;var n=LA;return r&&r.strict===!1&&(n=PA),n(t)}});var wo=g((Qm,Bo)=>{"use strict";var NA=xo(),MA=x("path").posix.dirname,FA=x("os").platform()==="win32",On="/",qA=/\\/g,HA=/[\{\[].*[\}\]]$/,jA=/(^|[^\\])([\{\[]|\([^\)]+$)/,$A=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Bo.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&FA&&t.indexOf(On)<0&&(t=t.replace(qA,On)),HA.test(t)&&(t+=On),t+="a";do t=MA(t);while(NA(t)||jA.test(t));return t.replace($A,"$1")}});var mr=g(Ae=>{"use strict";Ae.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ae.find=(e,t)=>e.nodes.find(r=>r.type===t);Ae.exceedsLimit=(e,t,r=1,n)=>n===!1||!Ae.isInteger(e)||!Ae.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Ae.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)};Ae.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;Ae.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;Ae.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ae.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Ae.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 yr=g((Tm,Qo)=>{"use strict";var Ro=mr();Qo.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Ro.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&Ro.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var To=g((Om,Io)=>{"use strict";Io.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var qo=g((Dm,Fo)=>{"use strict";var Oo=To(),et=(e,t,r)=>{if(Oo(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Oo(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),u=e+":"+t+"="+i+s+o+a;if(et.cache.hasOwnProperty(u))return et.cache[u].result;let l=Math.min(e,t),f=Math.max(e,t);if(Math.abs(l-f)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let A=Mo(e)||Mo(t),c={min:e,max:t,a:l,b:f},b=[],E=[];if(A&&(c.isPadded=A,c.maxLen=String(c.max).length),l<0){let _=f<0?Math.abs(f):1;E=Do(_,Math.abs(l),c,n),l=c.a=0}return f>=0&&(b=Do(l,f,c,n)),c.negatives=E,c.positives=b,c.result=GA(E,b,n),n.capture===!0?c.result=`(${c.result})`:n.wrap!==!1&&b.length+E.length>1&&(c.result=`(?:${c.result})`),et.cache[u]=c,c.result};function GA(e,t,r){let n=Dn(e,t,"-",!1,r)||[],i=Dn(t,e,"",!1,r)||[],s=Dn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function UA(e,t){let r=1,n=1,i=Lo(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Lo(e,r);for(i=Po(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Po(t+1,n)-1;return s=[...s],s.sort(YA),s}function KA(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=JA(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,l]=n[a];u===l?s+=u:u!=="0"||l!=="9"?s+=WA(u,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Do(e,t,r,n){let i=UA(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let l=i[u],f=KA(String(o),String(l),n),A="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+No(a.count),o=l+1;continue}r.isPadded&&(A=VA(l,r,n)),f.string=A+f.pattern+No(f.count),s.push(f),o=l+1,a=f}return s}function Dn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!ko(t,"string",a)&&s.push(r+a),n&&ko(t,"string",a)&&s.push(r+a)}return s}function JA(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function YA(e,t){return e>t?1:t>e?-1:0}function ko(e,t,r){return e.some(n=>n[t]===r)}function Lo(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Po(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 WA(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Mo(e){return/^-?(0+)\d/.test(e)}function VA(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}}`}}et.cache={};et.clearCache=()=>et.cache={};Fo.exports=et});var Pn=g((km,Yo)=>{"use strict";var XA=x("util"),$o=qo(),Ho=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),ZA=e=>t=>e===!0?Number(t):String(t),kn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ht=e=>Number.isInteger(+e),Ln=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},zA=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,eh=(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},th=(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},Go=(e,t,r,n)=>{if(r)return $o(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 $o(e,t,r)},Ko=(...e)=>new RangeError("Invalid range arguments: "+XA.inspect(...e)),Jo=(e,t,r)=>{if(r.strictRanges===!0)throw Ko([e,t]);return[]},rh=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},nh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ko([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),l=String(r);r=Math.max(Math.abs(r),1);let f=Ln(a)||Ln(u)||Ln(l),A=f?Math.max(a.length,u.length,l.length):0,c=f===!1&&zA(e,t,n)===!1,b=n.transform||ZA(c);if(n.toRegex&&r===1)return Go(jo(e,A),jo(t,A),!0,n);let E={negatives:[],positives:[]},_=D=>E[D<0?"negatives":"positives"].push(Math.abs(D)),v=[],C=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(eh(b(i,C),A,c)),i=o?i-r:i+r,C++;return n.toRegex===!0?r>1?th(E,n):Uo(v,null,{wrap:!1,...n}):v},ih=(e,t,r=1,n={})=>{if(!Ht(e)&&e.length>1||!Ht(t)&&t.length>1)return Jo(e,t,n);let i=n.transform||(c=>String.fromCharCode(c)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),l=Math.max(s,o);if(n.toRegex&&r===1)return Go(u,l,!1,n);let f=[],A=0;for(;a?s>=o:s<=o;)f.push(i(s,A)),s=a?s-r:s+r,A++;return n.toRegex===!0?Uo(f,null,{wrap:!1,options:n}):f},Cr=(e,t,r,n={})=>{if(t==null&&kn(e))return[e];if(!kn(e)||!kn(t))return Jo(e,t,n);if(typeof r=="function")return Cr(e,t,1,{transform:r});if(Ho(r))return Cr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ht(r)?Ht(e)&&Ht(t)?nh(e,t,r,i):ih(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Ho(r)?rh(r,i):Cr(e,t,1,r)};Yo.exports=Cr});var Xo=g((Lm,Vo)=>{"use strict";var sh=Pn(),Wo=mr(),oh=(e,t={})=>{let r=(n,i={})=>{let s=Wo.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",l="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+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 f=Wo.reduce(n.nodes),A=sh(...f,{...t,wrap:!1,toRegex:!0});if(A.length!==0)return f.length>1&&A.length>1?`(${A})`:A}if(n.nodes)for(let f of n.nodes)l+=r(f,n);return l};return r(e)};Vo.exports=oh});var ea=g((Pm,zo)=>{"use strict";var ah=Pn(),Zo=yr(),Et=mr(),tt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Et.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(tt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?tt(i,s,r):i+s);return Et.flatten(n)},uh=(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(tt(a.pop(),Zo(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(tt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let A=Et.reduce(i.nodes);if(Et.exceedsLimit(...A,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=ah(...A,t);c.length===0&&(c=Zo(i,t)),a.push(tt(a.pop(),c)),i.nodes=[];return}let u=Et.encloseBrace(i),l=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let A=0;A<i.nodes.length;A++){let c=i.nodes[A];if(c.type==="comma"&&i.type==="brace"){A===1&&l.push(""),l.push("");continue}if(c.type==="close"){a.push(tt(a.pop(),l,u));continue}if(c.value&&c.type!=="open"){l.push(tt(l.pop(),c.value));continue}c.nodes&&n(c,i)}return l};return Et.flatten(n(e))};zo.exports=uh});var ra=g((Nm,ta)=>{"use strict";ta.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 aa=g((Mm,oa)=>{"use strict";var lh=yr(),{MAX_LENGTH:na,CHAR_BACKSLASH:Nn,CHAR_BACKTICK:fh,CHAR_COMMA:ch,CHAR_DOT:Ah,CHAR_LEFT_PARENTHESES:hh,CHAR_RIGHT_PARENTHESES:ph,CHAR_LEFT_CURLY_BRACE:dh,CHAR_RIGHT_CURLY_BRACE:gh,CHAR_LEFT_SQUARE_BRACKET:ia,CHAR_RIGHT_SQUARE_BRACKET:sa,CHAR_DOUBLE_QUOTE:_h,CHAR_SINGLE_QUOTE:Eh,CHAR_NO_BREAK_SPACE:mh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:yh}=ra(),Ch=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(na,r.maxLength):na;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,u=0,l=e.length,f=0,A=0,c,b={},E=()=>e[f++],_=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(_({type:"bos"});f<l;)if(o=s[s.length-1],c=E(),!(c===yh||c===mh)){if(c===Nn){_({type:"text",value:(t.keepEscaping?c:"")+E()});continue}if(c===sa){_({type:"text",value:"\\"+c});continue}if(c===ia){u++;let v=!0,C;for(;f<l&&(C=E());){if(c+=C,C===ia){u++;continue}if(C===Nn){c+=E();continue}if(C===sa&&(u--,u===0))break}_({type:"text",value:c});continue}if(c===hh){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:c});continue}if(c===ph){if(o.type!=="paren"){_({type:"text",value:c});continue}o=s.pop(),_({type:"text",value:c}),o=s[s.length-1];continue}if(c===_h||c===Eh||c===fh){let v=c,C;for(t.keepQuotes!==!0&&(c="");f<l&&(C=E());){if(C===Nn){c+=C+E();continue}if(C===v){t.keepQuotes===!0&&(c+=C);break}c+=C}_({type:"text",value:c});continue}if(c===dh){A++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=_({type:"brace",open:!0,close:!1,dollar:v,depth:A,commas:0,ranges:0,nodes:[]}),s.push(o),_({type:"open",value:c});continue}if(c===gh){if(o.type!=="brace"){_({type:"text",value:c});continue}let v="close";o=s.pop(),o.close=!0,_({type:v,value:c}),A--,o=s[s.length-1];continue}if(c===ch&&A>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:lh(o)}]}_({type:"comma",value:c}),o.commas++;continue}if(c===Ah&&A>0&&o.commas===0){let v=o.nodes;if(A===0||v.length===0){_({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"){v.pop();let C=v[v.length-1];C.value+=a.value+c,a=C,o.ranges--;continue}_({type:"dot",value:c});continue}_({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 v=s[s.length-1],C=v.nodes.indexOf(o);v.nodes.splice(C,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};oa.exports=Ch});var fa=g((Fm,la)=>{"use strict";var ua=yr(),bh=Xo(),vh=ea(),Sh=aa(),le=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=le.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(le.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};le.parse=(e,t={})=>Sh(e,t);le.stringify=(e,t={})=>ua(typeof e=="string"?le.parse(e,t):e,t);le.compile=(e,t={})=>(typeof e=="string"&&(e=le.parse(e,t)),bh(e,t));le.expand=(e,t={})=>{typeof e=="string"&&(e=le.parse(e,t));let r=vh(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};le.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?le.compile(e,t):le.expand(e,t);la.exports=le});var jt=g((qm,da)=>{"use strict";var xh=x("path"),we="\\\\/",ca=`[^${we}]`,Le="\\.",Bh="\\+",wh="\\?",br="\\/",Rh="(?=.)",Aa="[^/]",Mn=`(?:${br}|$)`,ha=`(?:^|${br})`,Fn=`${Le}{1,2}${Mn}`,Qh=`(?!${Le})`,Ih=`(?!${ha}${Fn})`,Th=`(?!${Le}{0,1}${Mn})`,Oh=`(?!${Fn})`,Dh=`[^.${br}]`,kh=`${Aa}*?`,pa={DOT_LITERAL:Le,PLUS_LITERAL:Bh,QMARK_LITERAL:wh,SLASH_LITERAL:br,ONE_CHAR:Rh,QMARK:Aa,END_ANCHOR:Mn,DOTS_SLASH:Fn,NO_DOT:Qh,NO_DOTS:Ih,NO_DOT_SLASH:Th,NO_DOTS_SLASH:Oh,QMARK_NO_DOT:Dh,STAR:kh,START_ANCHOR:ha},Lh={...pa,SLASH_LITERAL:`[${we}]`,QMARK:ca,STAR:`${ca}*?`,DOTS_SLASH:`${Le}{1,2}(?:[${we}]|$)`,NO_DOT:`(?!${Le})`,NO_DOTS:`(?!(?:^|[${we}])${Le}{1,2}(?:[${we}]|$))`,NO_DOT_SLASH:`(?!${Le}{0,1}(?:[${we}]|$))`,NO_DOTS_SLASH:`(?!${Le}{1,2}(?:[${we}]|$))`,QMARK_NO_DOT:`[^.${we}]`,START_ANCHOR:`(?:^|[${we}])`,END_ANCHOR:`(?:[${we}]|$)`},Ph={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:Ph,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:xh.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?Lh:pa}}});var $t=g(ae=>{"use strict";var Nh=x("path"),Mh=process.platform==="win32",{REGEX_BACKSLASH:Fh,REGEX_REMOVE_BACKSLASH:qh,REGEX_SPECIAL_CHARS:Hh,REGEX_SPECIAL_CHARS_GLOBAL:jh}=jt();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>Hh.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(jh,"\\$1");ae.toPosixSlashes=e=>e.replace(Fh,"/");ae.removeBackslashes=e=>e.replace(qh,t=>t==="\\"?"":t);ae.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ae.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Mh===!0||Nh.sep==="\\";ae.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ae.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ae.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ae.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var va=g((jm,ba)=>{"use strict";var ga=$t(),{CHAR_ASTERISK:qn,CHAR_AT:$h,CHAR_BACKWARD_SLASH:Gt,CHAR_COMMA:Gh,CHAR_DOT:Hn,CHAR_EXCLAMATION_MARK:jn,CHAR_FORWARD_SLASH:Ca,CHAR_LEFT_CURLY_BRACE:$n,CHAR_LEFT_PARENTHESES:Gn,CHAR_LEFT_SQUARE_BRACKET:Uh,CHAR_PLUS:Kh,CHAR_QUESTION_MARK:_a,CHAR_RIGHT_CURLY_BRACE:Jh,CHAR_RIGHT_PARENTHESES:Ea,CHAR_RIGHT_SQUARE_BRACKET:Yh}=jt(),ma=e=>e===Ca||e===Gt,ya=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Wh=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,l=-1,f=0,A=0,c=!1,b=!1,E=!1,_=!1,v=!1,C=!1,D=!1,L=!1,z=!1,R=!1,H=0,Q,B,M={value:"",depth:0,isGlob:!1},S=()=>l>=n,h=()=>u.charCodeAt(l+1),q=()=>(Q=B,u.charCodeAt(++l));for(;l<n;){B=q();let se;if(B===Gt){D=M.backslashes=!0,B=q(),B===$n&&(C=!0);continue}if(C===!0||B===$n){for(H++;S()!==!0&&(B=q());){if(B===Gt){D=M.backslashes=!0,q();continue}if(B===$n){H++;continue}if(C!==!0&&B===Hn&&(B=q())===Hn){if(c=M.isBrace=!0,E=M.isGlob=!0,R=!0,i===!0)continue;break}if(C!==!0&&B===Gh){if(c=M.isBrace=!0,E=M.isGlob=!0,R=!0,i===!0)continue;break}if(B===Jh&&(H--,H===0)){C=!1,c=M.isBrace=!0,R=!0;break}}if(i===!0)continue;break}if(B===Ca){if(s.push(l),o.push(M),M={value:"",depth:0,isGlob:!1},R===!0)continue;if(Q===Hn&&l===f+1){f+=2;continue}A=l+1;continue}if(r.noext!==!0&&(B===Kh||B===$h||B===qn||B===_a||B===jn)===!0&&h()===Gn){if(E=M.isGlob=!0,_=M.isExtglob=!0,R=!0,B===jn&&l===f&&(z=!0),i===!0){for(;S()!==!0&&(B=q());){if(B===Gt){D=M.backslashes=!0,B=q();continue}if(B===Ea){E=M.isGlob=!0,R=!0;break}}continue}break}if(B===qn){if(Q===qn&&(v=M.isGlobstar=!0),E=M.isGlob=!0,R=!0,i===!0)continue;break}if(B===_a){if(E=M.isGlob=!0,R=!0,i===!0)continue;break}if(B===Uh){for(;S()!==!0&&(se=q());){if(se===Gt){D=M.backslashes=!0,q();continue}if(se===Yh){b=M.isBracket=!0,E=M.isGlob=!0,R=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&B===jn&&l===f){L=M.negated=!0,f++;continue}if(r.noparen!==!0&&B===Gn){if(E=M.isGlob=!0,i===!0){for(;S()!==!0&&(B=q());){if(B===Gn){D=M.backslashes=!0,B=q();continue}if(B===Ea){R=!0;break}}continue}break}if(E===!0){if(R=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,E=!1);let F=u,qe="",p="";f>0&&(qe=u.slice(0,f),u=u.slice(f),A-=f),F&&E===!0&&A>0?(F=u.slice(0,A),p=u.slice(A)):E===!0?(F="",p=u):F=u,F&&F!==""&&F!=="/"&&F!==u&&ma(F.charCodeAt(F.length-1))&&(F=F.slice(0,-1)),r.unescape===!0&&(p&&(p=ga.removeBackslashes(p)),F&&D===!0&&(F=ga.removeBackslashes(F)));let d={prefix:qe,input:e,start:f,base:F,glob:p,isBrace:c,isBracket:b,isGlob:E,isExtglob:_,isGlobstar:v,negated:L,negatedExtglob:z};if(r.tokens===!0&&(d.maxDepth=0,ma(B)||o.push(M),d.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let N=0;N<s.length;N++){let Se=se?se+1:f,xe=s[N],ue=e.slice(Se,xe);r.tokens&&(N===0&&f!==0?(o[N].isPrefix=!0,o[N].value=qe):o[N].value=ue,ya(o[N]),d.maxDepth+=o[N].depth),(N!==0||ue!=="")&&a.push(ue),se=xe}if(se&&se+1<e.length){let N=e.slice(se+1);a.push(N),r.tokens&&(o[o.length-1].value=N,ya(o[o.length-1]),d.maxDepth+=o[o.length-1].depth)}d.slashes=s,d.parts=a}return d};ba.exports=Wh});var Ba=g(($m,xa)=>{"use strict";var vr=jt(),fe=$t(),{MAX_LENGTH:Sr,POSIX_REGEX_SOURCE:Vh,REGEX_NON_SPECIAL_CHARS:Xh,REGEX_SPECIAL_CHARS_BACKREF:Zh,REPLACEMENTS:Sa}=vr,zh=(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},mt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Un=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Sa[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Sr,r.maxLength):Sr,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?"":"?:",u=fe.isWindows(t),l=vr.globChars(u),f=vr.extglobChars(l),{DOT_LITERAL:A,PLUS_LITERAL:c,SLASH_LITERAL:b,ONE_CHAR:E,DOTS_SLASH:_,NO_DOT:v,NO_DOT_SLASH:C,NO_DOTS_SLASH:D,QMARK:L,QMARK_NO_DOT:z,STAR:R,START_ANCHOR:H}=l,Q=y=>`(${a}(?:(?!${H}${y.dot?_:A}).)*?)`,B=r.dot?"":v,M=r.dot?L:z,S=r.bash===!0?Q(r):R;r.capture&&(S=`(${S})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let h={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,h),i=e.length;let q=[],F=[],qe=[],p=s,d,se=()=>h.index===i-1,N=h.peek=(y=1)=>e[h.index+y],Se=h.advance=()=>e[++h.index]||"",xe=()=>e.slice(h.index+1),ue=(y="",G=0)=>{h.consumed+=y,h.index+=G},cr=y=>{h.output+=y.output!=null?y.output:y.value,ue(y.value)},rA=()=>{let y=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)Se(),h.start++,y++;return y%2===0?!1:(h.negated=!0,h.start++,!0)},Ar=y=>{h[y]++,qe.push(y)},ze=y=>{h[y]--,qe.pop()},k=y=>{if(p.type==="globstar"){let G=h.braces>0&&(y.type==="comma"||y.type==="brace"),m=y.extglob===!0||q.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!G&&!m&&(h.output=h.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=S,h.output+=p.output)}if(q.length&&y.type!=="paren"&&(q[q.length-1].inner+=y.value),(y.value||y.output)&&cr(y),p&&p.type==="text"&&y.type==="text"){p.value+=y.value,p.output=(p.output||"")+y.value;return}y.prev=p,o.push(y),p=y},hr=(y,G)=>{let m={...f[G],conditions:1,inner:""};m.prev=p,m.parens=h.parens,m.output=h.output;let I=(r.capture?"(":"")+m.open;Ar("parens"),k({type:y,value:G,output:h.output?"":E}),k({type:"paren",extglob:!0,value:Se(),output:I}),q.push(m)},nA=y=>{let G=y.close+(r.capture?")":""),m;if(y.type==="negate"){let I=S;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(I=Q(r)),(I!==S||se()||/^\)+$/.test(xe()))&&(G=y.close=`)$))${I}`),y.inner.includes("*")&&(m=xe())&&/^\.[^\\/.]+$/.test(m)){let Y=Un(m,{...t,fastpaths:!1}).output;G=y.close=`)${Y})${I})`}y.prev.type==="bos"&&(h.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:d,output:G}),ze("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,G=e.replace(Zh,(m,I,Y,oe,ee,wn)=>oe==="\\"?(y=!0,m):oe==="?"?I?I+oe+(ee?L.repeat(ee.length):""):wn===0?M+(ee?L.repeat(ee.length):""):L.repeat(Y.length):oe==="."?A.repeat(Y.length):oe==="*"?I?I+oe+(ee?S:""):S:I?m:`\\${m}`);return y===!0&&(r.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),G===e&&r.contains===!0?(h.output=e,h):(h.output=fe.wrapOutput(G,h,t),h)}for(;!se();){if(d=Se(),d==="\0")continue;if(d==="\\"){let m=N();if(m==="/"&&r.bash!==!0||m==="."||m===";")continue;if(!m){d+="\\",k({type:"text",value:d});continue}let I=/^\\+/.exec(xe()),Y=0;if(I&&I[0].length>2&&(Y=I[0].length,h.index+=Y,Y%2!==0&&(d+="\\")),r.unescape===!0?d=Se():d+=Se(),h.brackets===0){k({type:"text",value:d});continue}}if(h.brackets>0&&(d!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&d===":"){let m=p.value.slice(1);if(m.includes("[")&&(p.posix=!0,m.includes(":"))){let I=p.value.lastIndexOf("["),Y=p.value.slice(0,I),oe=p.value.slice(I+2),ee=Vh[oe];if(ee){p.value=Y+ee,h.backtrack=!0,Se(),!s.output&&o.indexOf(p)===1&&(s.output=E);continue}}}(d==="["&&N()!==":"||d==="-"&&N()==="]")&&(d=`\\${d}`),d==="]"&&(p.value==="["||p.value==="[^")&&(d=`\\${d}`),r.posix===!0&&d==="!"&&p.value==="["&&(d="^"),p.value+=d,cr({value:d});continue}if(h.quotes===1&&d!=='"'){d=fe.escapeRegex(d),p.value+=d,cr({value:d});continue}if(d==='"'){h.quotes=h.quotes===1?0:1,r.keepQuotes===!0&&k({type:"text",value:d});continue}if(d==="("){Ar("parens"),k({type:"paren",value:d});continue}if(d===")"){if(h.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mt("opening","("));let m=q[q.length-1];if(m&&h.parens===m.parens+1){nA(q.pop());continue}k({type:"paren",value:d,output:h.parens?")":"\\)"}),ze("parens");continue}if(d==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));d=`\\${d}`}else Ar("brackets");k({type:"bracket",value:d});continue}if(d==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){k({type:"text",value:d,output:`\\${d}`});continue}if(h.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mt("opening","["));k({type:"text",value:d,output:`\\${d}`});continue}ze("brackets");let m=p.value.slice(1);if(p.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(d=`/${d}`),p.value+=d,cr({value:d}),r.literalBrackets===!1||fe.hasRegexChars(m))continue;let I=fe.escapeRegex(p.value);if(h.output=h.output.slice(0,-p.value.length),r.literalBrackets===!0){h.output+=I,p.value=I;continue}p.value=`(${a}${I}|${p.value})`,h.output+=p.value;continue}if(d==="{"&&r.nobrace!==!0){Ar("braces");let m={type:"brace",value:d,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};F.push(m),k(m);continue}if(d==="}"){let m=F[F.length-1];if(r.nobrace===!0||!m){k({type:"text",value:d,output:d});continue}let I=")";if(m.dots===!0){let Y=o.slice(),oe=[];for(let ee=Y.length-1;ee>=0&&(o.pop(),Y[ee].type!=="brace");ee--)Y[ee].type!=="dots"&&oe.unshift(Y[ee].value);I=zh(oe,r),h.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){let Y=h.output.slice(0,m.outputIndex),oe=h.tokens.slice(m.tokensIndex);m.value=m.output="\\{",d=I="\\}",h.output=Y;for(let ee of oe)h.output+=ee.output||ee.value}k({type:"brace",value:d,output:I}),ze("braces"),F.pop();continue}if(d==="|"){q.length>0&&q[q.length-1].conditions++,k({type:"text",value:d});continue}if(d===","){let m=d,I=F[F.length-1];I&&qe[qe.length-1]==="braces"&&(I.comma=!0,m="|"),k({type:"comma",value:d,output:m});continue}if(d==="/"){if(p.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",o.pop(),p=s;continue}k({type:"slash",value:d,output:b});continue}if(d==="."){if(h.braces>0&&p.type==="dot"){p.value==="."&&(p.output=A);let m=F[F.length-1];p.type="dots",p.output+=d,p.value+=d,m.dots=!0;continue}if(h.braces+h.parens===0&&p.type!=="bos"&&p.type!=="slash"){k({type:"text",value:d,output:A});continue}k({type:"dot",value:d,output:A});continue}if(d==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){hr("qmark",d);continue}if(p&&p.type==="paren"){let I=N(),Y=d;if(I==="<"&&!fe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(Y=`\\${d}`),k({type:"text",value:d,output:Y});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){k({type:"qmark",value:d,output:z});continue}k({type:"qmark",value:d,output:L});continue}if(d==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){hr("negate",d);continue}if(r.nonegate!==!0&&h.index===0){rA();continue}}if(d==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){hr("plus",d);continue}if(p&&p.value==="("||r.regex===!1){k({type:"plus",value:d,output:c});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||h.parens>0){k({type:"plus",value:d});continue}k({type:"plus",value:c});continue}if(d==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){k({type:"at",extglob:!0,value:d,output:""});continue}k({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);let m=Xh.exec(xe());m&&(d+=m[0],h.index+=m[0].length),k({type:"text",value:d});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=d,p.output=S,h.backtrack=!0,h.globstar=!0,ue(d);continue}let y=xe();if(r.noextglob!==!0&&/^\([^?]/.test(y)){hr("star",d);continue}if(p.type==="star"){if(r.noglobstar===!0){ue(d);continue}let m=p.prev,I=m.prev,Y=m.type==="slash"||m.type==="bos",oe=I&&(I.type==="star"||I.type==="globstar");if(r.bash===!0&&(!Y||y[0]&&y[0]!=="/")){k({type:"star",value:d,output:""});continue}let ee=h.braces>0&&(m.type==="comma"||m.type==="brace"),wn=q.length&&(m.type==="pipe"||m.type==="paren");if(!Y&&m.type!=="paren"&&!ee&&!wn){k({type:"star",value:d,output:""});continue}for(;y.slice(0,3)==="/**";){let pr=e[h.index+4];if(pr&&pr!=="/")break;y=y.slice(3),ue("/**",3)}if(m.type==="bos"&&se()){p.type="globstar",p.value+=d,p.output=Q(r),h.output=p.output,h.globstar=!0,ue(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!oe&&se()){h.output=h.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=Q(r)+(r.strictSlashes?")":"|$)"),p.value+=d,h.globstar=!0,h.output+=m.output+p.output,ue(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&y[0]==="/"){let pr=y[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=`${Q(r)}${b}|${b}${pr})`,p.value+=d,h.output+=m.output+p.output,h.globstar=!0,ue(d+Se()),k({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&y[0]==="/"){p.type="globstar",p.value+=d,p.output=`(?:^|${b}|${Q(r)}${b})`,h.output=p.output,h.globstar=!0,ue(d+Se()),k({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-p.output.length),p.type="globstar",p.output=Q(r),p.value+=d,h.output+=p.output,h.globstar=!0,ue(d);continue}let G={type:"star",value:d,output:S};if(r.bash===!0){G.output=".*?",(p.type==="bos"||p.type==="slash")&&(G.output=B+G.output),k(G);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){G.output=d,k(G);continue}(h.index===h.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(h.output+=C,p.output+=C):r.dot===!0?(h.output+=D,p.output+=D):(h.output+=B,p.output+=B),N()!=="*"&&(h.output+=E,p.output+=E)),k(G)}for(;h.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));h.output=fe.escapeLast(h.output,"["),ze("brackets")}for(;h.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing",")"));h.output=fe.escapeLast(h.output,"("),ze("parens")}for(;h.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing","}"));h.output=fe.escapeLast(h.output,"{"),ze("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${b}?`}),h.backtrack===!0){h.output="";for(let y of h.tokens)h.output+=y.output!=null?y.output:y.value,y.suffix&&(h.output+=y.suffix)}return h};Un.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Sr,r.maxLength):Sr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Sa[e]||e;let s=fe.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:f,NO_DOTS:A,NO_DOTS_SLASH:c,STAR:b,START_ANCHOR:E}=vr.globChars(s),_=r.dot?A:f,v=r.dot?c:f,C=r.capture?"":"?:",D={negated:!1,prefix:""},L=r.bash===!0?".*?":b;r.capture&&(L=`(${L})`);let z=B=>B.noglobstar===!0?L:`(${C}(?:(?!${E}${B.dot?l:o}).)*?)`,R=B=>{switch(B){case"*":return`${_}${u}${L}`;case".*":return`${o}${u}${L}`;case"*.*":return`${_}${L}${o}${u}${L}`;case"*/*":return`${_}${L}${a}${u}${v}${L}`;case"**":return _+z(r);case"**/*":return`(?:${_}${z(r)}${a})?${v}${u}${L}`;case"**/*.*":return`(?:${_}${z(r)}${a})?${v}${L}${o}${u}${L}`;case"**/.*":return`(?:${_}${z(r)}${a})?${o}${u}${L}`;default:{let M=/^(.*?)\.(\w+)$/.exec(B);if(!M)return;let S=R(M[1]);return S?S+o+M[2]:void 0}}},H=fe.removePrefix(e,D),Q=R(H);return Q&&r.strictSlashes!==!0&&(Q+=`${a}?`),Q};xa.exports=Un});var Ra=g((Gm,wa)=>{"use strict";var ep=x("path"),tp=va(),Kn=Ba(),Jn=$t(),rp=jt(),np=e=>e&&typeof e=="object"&&!Array.isArray(e),V=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(c=>V(c,t,r));return c=>{for(let b of f){let E=b(c);if(E)return E}return!1}}let n=np(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=Jn.isWindows(t),o=n?V.compileRe(e,t):V.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=V(i.ignore,f,r)}let l=(f,A=!1)=>{let{isMatch:c,match:b,output:E}=V.test(f,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:f,output:E,match:b,isMatch:c};return typeof i.onResult=="function"&&i.onResult(_),c===!1?(_.isMatch=!1,A?_:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,A?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),A?_:!0)};return r&&(l.state=a),l};V.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?Jn.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=V.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:Boolean(a),match:a,output:u}};V.matchBase=(e,t,r,n=Jn.isWindows(r))=>(t instanceof RegExp?t:V.makeRe(t,r)).test(ep.basename(e));V.isMatch=(e,t,r)=>V(t,r)(e);V.parse=(e,t)=>Array.isArray(e)?e.map(r=>V.parse(r,t)):Kn(e,{...t,fastpaths:!1});V.scan=(e,t)=>tp(e,t);V.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 u=V.toRegex(a,t);return n===!0&&(u.state=e),u};V.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=Kn.fastpaths(e,t)),i.output||(i=Kn(e,t)),V.compileRe(i,t,r,n)};V.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/$^/}};V.constants=rp;wa.exports=V});var Ia=g((Um,Qa)=>{"use strict";Qa.exports=Ra()});var La=g((Km,ka)=>{"use strict";var Oa=x("util"),Da=fa(),Re=Ia(),Yn=$t(),Ta=e=>e===""||e==="./",K=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let A=Re(String(t[f]),{...r,onResult:a},!0),c=A.state.negated||A.state.negatedExtglob;c&&o++;for(let b of e){let E=A(b,!0);!(c?!E.isMatch:E.isMatch)||(c?n.add(E.output):(n.delete(E.output),i.add(E.output)))}}let l=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&l.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(f=>f.replace(/\\/g,"")):t}return l};K.match=K;K.matcher=(e,t)=>Re(e,t);K.isMatch=(e,t,r)=>Re(t,r)(e);K.any=K.isMatch;K.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(K(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};K.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Oa.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>K.contains(e,n,r));if(typeof t=="string"){if(Ta(e)||Ta(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return K.isMatch(e,t,{...r,contains:!0})};K.matchKeys=(e,t,r)=>{if(!Yn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=K(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};K.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Re(String(i),r);if(n.some(o=>s(o)))return!0}return!1};K.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Re(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};K.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Oa.inspect(e)}"`);return[].concat(t).every(n=>Re(n,r)(e))};K.capture=(e,t,r)=>{let n=Yn.isWindows(r),s=Re.makeRe(String(e),{...r,capture:!0}).exec(n?Yn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};K.makeRe=(...e)=>Re.makeRe(...e);K.scan=(...e)=>Re.scan(...e);K.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Da(String(n),t))r.push(Re.parse(i,t));return r};K.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Da(e,t)};K.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return K.braces(e,{...t,expand:!0})};ka.exports=K});var $a=g(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.matchAny=w.convertPatternsToRe=w.makeRe=w.getPatternParts=w.expandBraceExpansion=w.expandPatternsWithBraceExpansion=w.isAffectDepthOfReadingPattern=w.endsWithSlashGlobStar=w.hasGlobStar=w.getBaseDirectory=w.isPatternRelatedToParentDirectory=w.getPatternsOutsideCurrentDirectory=w.getPatternsInsideCurrentDirectory=w.getPositivePatterns=w.getNegativePatterns=w.isPositivePattern=w.isNegativePattern=w.convertToNegativePattern=w.convertToPositivePattern=w.isDynamicPattern=w.isStaticPattern=void 0;var ip=x("path"),sp=wo(),Wn=La(),Pa="**",op="\\",ap=/[*?]|^!/,up=/\[[^[]*]/,lp=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,fp=/[!*+?@]\([^(]*\)/,cp=/,|\.\./;function Na(e,t={}){return!Ma(e,t)}w.isStaticPattern=Na;function Ma(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(op)||ap.test(e)||up.test(e)||lp.test(e)||t.extglob!==!1&&fp.test(e)||t.braceExpansion!==!1&&Ap(e))}w.isDynamicPattern=Ma;function Ap(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 cp.test(n)}function hp(e){return xr(e)?e.slice(1):e}w.convertToPositivePattern=hp;function pp(e){return"!"+e}w.convertToNegativePattern=pp;function xr(e){return e.startsWith("!")&&e[1]!=="("}w.isNegativePattern=xr;function Fa(e){return!xr(e)}w.isPositivePattern=Fa;function dp(e){return e.filter(xr)}w.getNegativePatterns=dp;function gp(e){return e.filter(Fa)}w.getPositivePatterns=gp;function _p(e){return e.filter(t=>!Vn(t))}w.getPatternsInsideCurrentDirectory=_p;function Ep(e){return e.filter(Vn)}w.getPatternsOutsideCurrentDirectory=Ep;function Vn(e){return e.startsWith("..")||e.startsWith("./..")}w.isPatternRelatedToParentDirectory=Vn;function mp(e){return sp(e,{flipBackslashes:!1})}w.getBaseDirectory=mp;function yp(e){return e.includes(Pa)}w.hasGlobStar=yp;function qa(e){return e.endsWith("/"+Pa)}w.endsWithSlashGlobStar=qa;function Cp(e){let t=ip.basename(e);return qa(e)||Na(t)}w.isAffectDepthOfReadingPattern=Cp;function bp(e){return e.reduce((t,r)=>t.concat(Ha(r)),[])}w.expandPatternsWithBraceExpansion=bp;function Ha(e){return Wn.braces(e,{expand:!0,nodupes:!0})}w.expandBraceExpansion=Ha;function vp(e,t){let{parts:r}=Wn.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}w.getPatternParts=vp;function ja(e,t){return Wn.makeRe(e,t)}w.makeRe=ja;function Sp(e,t){return e.map(r=>ja(r,t))}w.convertPatternsToRe=Sp;function xp(e,t){return t.some(r=>r.test(e))}w.matchAny=xp});var Ja=g((Ym,Ka)=>{"use strict";var Bp=x("stream"),Ga=Bp.PassThrough,wp=Array.prototype.slice;Ka.exports=Rp;function Rp(){let e=[],t=wp.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=Ga(n);function a(){for(let f=0,A=arguments.length;f<A;f++)e.push(Ua(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(l);return}Array.isArray(f)||(f=[f]);let A=f.length+1;function c(){--A>0||(r=!1,u())}function b(E){function _(){E.removeListener("merge2UnpipeEnd",_),E.removeListener("end",_),s&&E.removeListener("error",v),c()}function v(C){o.emit("error",C)}if(E._readableState.endEmitted)return c();E.on("merge2UnpipeEnd",_),E.on("end",_),s&&E.on("error",v),E.pipe(o,{end:!1}),E.resume()}for(let E=0;E<f.length;E++)b(f[E]);c()}function l(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.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(Ga(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Wa=g(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.merge=void 0;var Qp=Ja();function Ip(e){let t=Qp(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Ya(e)),t.once("end",()=>Ya(e)),t}Br.merge=Ip;function Ya(e){e.forEach(t=>t.emit("close"))}});var Va=g(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isEmpty=yt.isString=void 0;function Tp(e){return typeof e=="string"}yt.isString=Tp;function Op(e){return e===""}yt.isEmpty=Op});var Pe=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var Dp=go();re.array=Dp;var kp=_o();re.errno=kp;var Lp=mo();re.fs=Lp;var Pp=yo();re.path=Pp;var Np=$a();re.pattern=Np;var Mp=Wa();re.stream=Mp;var Fp=Va();re.string=Fp});var za=g(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var Ne=Pe();function qp(e,t){let r=Xa(e),n=Za(e,t.ignore),i=r.filter(u=>Ne.pattern.isStaticPattern(u,t)),s=r.filter(u=>Ne.pattern.isDynamicPattern(u,t)),o=Xn(i,n,!1),a=Xn(s,n,!0);return o.concat(a)}ne.generate=qp;function Xn(e,t,r){let n=[],i=Ne.pattern.getPatternsOutsideCurrentDirectory(e),s=Ne.pattern.getPatternsInsideCurrentDirectory(e),o=Zn(i),a=Zn(s);return n.push(...zn(o,t,r)),"."in a?n.push(ei(".",s,t,r)):n.push(...zn(a,t,r)),n}ne.convertPatternsToTasks=Xn;function Xa(e){return Ne.pattern.getPositivePatterns(e)}ne.getPositivePatterns=Xa;function Za(e,t){return Ne.pattern.getNegativePatterns(e).concat(t).map(Ne.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=Za;function Zn(e){let t={};return e.reduce((r,n)=>{let i=Ne.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ne.groupPatternsByBaseDirectory=Zn;function zn(e,t,r){return Object.keys(e).map(n=>ei(n,e[n],t,r))}ne.convertPatternGroupsToTasks=zn;function ei(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Ne.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=ei});var tu=g(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.removeDuplicateSlashes=Ct.transform=void 0;var Hp=/(?!^)\/{2,}/g;function jp(e){return e.map(t=>eu(t))}Ct.transform=jp;function eu(e){return e.replace(Hp,"/")}Ct.removeDuplicateSlashes=eu});var nu=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.read=void 0;function $p(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){ru(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){ti(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){ru(r,s);return}ti(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ti(r,o)})})}wr.read=$p;function ru(e,t){e(t)}function ti(e,t){e(null,t)}});var iu=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.read=void 0;function Gp(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}}Rr.read=Gp});var su=g(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.createFileSystemAdapter=je.FILE_SYSTEM_ADAPTER=void 0;var Qr=x("fs");je.FILE_SYSTEM_ADAPTER={lstat:Qr.lstat,stat:Qr.stat,lstatSync:Qr.lstatSync,statSync:Qr.statSync};function Up(e){return e===void 0?je.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},je.FILE_SYSTEM_ADAPTER),e)}je.createFileSystemAdapter=Up});var au=g(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var Kp=su(),ou=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Kp.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}};ri.default=ou});var rt=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.statSync=$e.stat=$e.Settings=void 0;var uu=nu(),Jp=iu(),ni=au();$e.Settings=ni.default;function Yp(e,t,r){if(typeof t=="function"){uu.read(e,ii(),t);return}uu.read(e,ii(t),r)}$e.stat=Yp;function Wp(e,t){let r=ii(t);return Jp.read(e,r)}$e.statSync=Wp;function ii(e={}){return e instanceof ni.default?e:new ni.default(e)}});var cu=g((sy,fu)=>{var lu;fu.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(lu||(lu=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var hu=g((oy,Au)=>{Au.exports=Xp;var Vp=cu();function Xp(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(u){function l(){t&&t(u,r),t=null}s?Vp(l):l()}function a(u,l,f){r[u]=f,(--n===0||l)&&o(l)}n?i?i.forEach(function(u){e[u](function(l,f){a(u,l,f)})}):e.forEach(function(u,l){u(function(f,A){a(l,f,A)})}):o(null),s=!1}});var si=g(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ir=process.versions.node.split(".");if(Ir[0]===void 0||Ir[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var pu=Number.parseInt(Ir[0],10),Zp=Number.parseInt(Ir[1],10),du=10,zp=10,ed=pu>du,td=pu===du&&Zp>=zp;Tr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ed||td});var _u=g(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createDirentFromStats=void 0;var gu=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 rd(e,t){return new gu(e,t)}Or.createDirentFromStats=rd});var oi=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.fs=void 0;var nd=_u();Dr.fs=nd});var ai=g(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.joinPathSegments=void 0;function id(e,t,r){return e.endsWith(r)?e+t:e+r+t}kr.joinPathSegments=id});var vu=g(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var sd=rt(),Eu=hu(),od=si(),mu=oi(),yu=ai();function ad(e,t,r){if(!t.stats&&od.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Cu(e,t,r);return}bu(e,t,r)}Ge.read=ad;function Cu(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Lr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:yu.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){ui(r,s);return}let o=s.map(a=>ud(a,t));Eu(o,(a,u)=>{if(a!==null){Lr(r,a);return}ui(r,u)})})}Ge.readdirWithFileTypes=Cu;function ud(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=mu.fs.createDirentFromStats(e.name,i),r(null,e)})}}function bu(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Lr(r,n);return}let s=i.map(o=>{let a=yu.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{sd.stat(a,t.fsStatSettings,(l,f)=>{if(l!==null){u(l);return}let A={name:o,path:a,dirent:mu.fs.createDirentFromStats(o,f)};t.stats&&(A.stats=f),u(null,A)})}});Eu(s,(o,a)=>{if(o!==null){Lr(r,o);return}ui(r,a)})})}Ge.readdir=bu;function Lr(e,t){e(t)}function ui(e,t){e(null,t)}});var Ru=g(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.readdir=Ue.readdirWithFileTypes=Ue.read=void 0;var ld=rt(),fd=si(),Su=oi(),xu=ai();function cd(e,t){return!t.stats&&fd.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Bu(e,t):wu(e,t)}Ue.read=cd;function Bu(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:xu.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Su.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ue.readdirWithFileTypes=Bu;function wu(e,t){return t.fs.readdirSync(e).map(n=>{let i=xu.joinPathSegments(e,n,t.pathSegmentSeparator),s=ld.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Su.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Ue.readdir=wu});var Qu=g(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createFileSystemAdapter=Ke.FILE_SYSTEM_ADAPTER=void 0;var bt=x("fs");Ke.FILE_SYSTEM_ADAPTER={lstat:bt.lstat,stat:bt.stat,lstatSync:bt.lstatSync,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};function Ad(e){return e===void 0?Ke.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ke.FILE_SYSTEM_ADAPTER),e)}Ke.createFileSystemAdapter=Ad});var Tu=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var hd=x("path"),pd=rt(),dd=Qu(),Iu=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=dd.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,hd.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new pd.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};li.default=Iu});var Pr=g(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.Settings=Je.scandirSync=Je.scandir=void 0;var Ou=vu(),gd=Ru(),fi=Tu();Je.Settings=fi.default;function _d(e,t,r){if(typeof t=="function"){Ou.read(e,ci(),t);return}Ou.read(e,ci(t),r)}Je.scandir=_d;function Ed(e,t){let r=ci(t);return gd.read(e,r)}Je.scandirSync=Ed;function ci(e={}){return e instanceof fi.default?e:new fi.default(e)}});var ku=g((gy,Du)=>{"use strict";function md(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}}Du.exports=md});var Pu=g((_y,Ai)=>{"use strict";var yd=ku();function Lu(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=yd(Cd),i=null,s=null,o=0,a=null,u={push:_,drain:he,saturated:he,pause:f,paused:!1,concurrency:r,running:l,resume:b,idle:E,length:A,getQueue:c,unshift:v,empty:he,kill:D,killAndDrain:L,error:z};return u;function l(){return o}function f(){u.paused=!0}function A(){for(var R=i,H=0;R;)R=R.next,H++;return H}function c(){for(var R=i,H=[];R;)H.push(R.value),R=R.next;return H}function b(){if(!!u.paused){u.paused=!1;for(var R=0;R<u.concurrency;R++)o++,C()}}function E(){return o===0&&u.length()===0}function _(R,H){var Q=n.get();Q.context=e,Q.release=C,Q.value=R,Q.callback=H||he,Q.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=Q,s=Q):(i=Q,s=Q,u.saturated()):(o++,t.call(e,Q.value,Q.worked))}function v(R,H){var Q=n.get();Q.context=e,Q.release=C,Q.value=R,Q.callback=H||he,o===u.concurrency||u.paused?i?(Q.next=i,i=Q):(i=Q,s=Q,u.saturated()):(o++,t.call(e,Q.value,Q.worked))}function C(R){R&&n.release(R);var H=i;H?u.paused?o--:(s===i&&(s=null),i=H.next,H.next=null,t.call(e,H.value,H.worked),s===null&&u.empty()):--o===0&&u.drain()}function D(){i=null,s=null,u.drain=he}function L(){i=null,s=null,u.drain(),u.drain=he}function z(R){a=R}}function he(){}function Cd(){this.value=null,this.callback=he,this.next=null,this.release=he,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=he,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function bd(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,A){t.call(this,f).then(function(c){A(null,c)},A)}var i=Lu(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=l,i;function a(f){var A=new Promise(function(c,b){s(f,function(E,_){if(E){b(E);return}c(_)})});return A.catch(he),A}function u(f){var A=new Promise(function(c,b){o(f,function(E,_){if(E){b(E);return}c(_)})});return A.catch(he),A}function l(){var f=i.drain,A=new Promise(function(c){i.drain=function(){f(),c()}});return A}}Ai.exports=Lu;Ai.exports.promise=bd});var Nr=g(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.joinPathSegments=Qe.replacePathSegmentSeparator=Qe.isAppliedFilter=Qe.isFatalError=void 0;function vd(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Qe.isFatalError=vd;function Sd(e,t){return e===null||e(t)}Qe.isAppliedFilter=Sd;function xd(e,t){return e.split(/[/\\]/).join(t)}Qe.replacePathSegmentSeparator=xd;function Bd(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Qe.joinPathSegments=Bd});var pi=g(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});var wd=Nr(),Nu=class{constructor(t,r){this._root=t,this._settings=r,this._root=wd.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};hi.default=Nu});var gi=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var Rd=x("events"),Qd=Pr(),Id=Pu(),Mr=Nr(),Td=pi(),Mu=class extends Td.default{constructor(t,r){super(t,r);this._settings=r,this._scandir=Qd.scandir,this._emitter=new Rd.EventEmitter,this._queue=Id(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||!Mr.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=Mr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Mr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Mr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};di.default=Mu});var qu=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var Od=gi(),Fu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Od.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Dd(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{kd(t,this._storage)}),this._reader.read()}};_i.default=Fu;function Dd(e,t){e(t)}function kd(e,t){e(null,t)}});var ju=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var Ld=x("stream"),Pd=gi(),Hu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Pd.default(this._root,this._settings),this._stream=new Ld.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}};Ei.default=Hu});var Gu=g(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var Nd=Pr(),Fr=Nr(),Md=pi(),$u=class extends Md.default{constructor(){super(...arguments);this._scandir=Nd.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(!!Fr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Fr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Fr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Fr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};mi.default=$u});var Ku=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var Fd=Gu(),Uu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Fd.default(this._root,this._settings)}read(){return this._reader.read()}};yi.default=Uu});var Yu=g(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var qd=x("path"),Hd=Pr(),Ju=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,qd.sep),this.fsScandirSettings=new Hd.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}};Ci.default=Ju});var vi=g(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Settings=Ie.walkStream=Ie.walkSync=Ie.walk=void 0;var Wu=qu(),jd=ju(),$d=Ku(),bi=Yu();Ie.Settings=bi.default;function Gd(e,t,r){if(typeof t=="function"){new Wu.default(e,qr()).read(t);return}new Wu.default(e,qr(t)).read(r)}Ie.walk=Gd;function Ud(e,t){let r=qr(t);return new $d.default(e,r).read()}Ie.walkSync=Ud;function Kd(e,t){let r=qr(t);return new jd.default(e,r).read()}Ie.walkStream=Kd;function qr(e={}){return e instanceof bi.default?e:new bi.default(e)}});var xi=g(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Jd=x("path"),Yd=rt(),Vu=Pe(),Xu=class{constructor(t){this._settings=t,this._fsStatSettings=new Yd.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Jd.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Vu.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Vu.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Si.default=Xu});var wi=g(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var Wd=x("stream"),Vd=rt(),Xd=vi(),Zd=xi(),Zu=class extends Zd.default{constructor(){super(...arguments);this._walkStream=Xd.walkStream,this._stat=Vd.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Wd.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),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))})}};Bi.default=Zu});var el=g(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var vt=Pe(),zu=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=vt.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 vt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>vt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:vt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return vt.array.splitWhen(t,r=>r.dynamic&&vt.pattern.hasGlobStar(r.pattern))}};Ri.default=zu});var rl=g(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var zd=el(),tl=class extends zd.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((u,l)=>{let f=s.segments[l];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};Qi.default=tl});var il=g(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var Hr=Pe(),eg=rl(),nl=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 eg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Hr.pattern.isAffectDepthOfReadingPattern);return Hr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Hr.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!Hr.pattern.matchAny(t,r)}};Ii.default=nl});var ol=g(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var nt=Pe(),sl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=nt.pattern.convertPatternsToRe(t,this._micromatchOptions),i=nt.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=nt.path.makeAbsolute(this._settings.cwd,t);return nt.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=nt.path.removeLeadingDotSegment(t);return nt.pattern.matchAny(n,r)||nt.pattern.matchAny(n+"/",r)}};Ti.default=sl});var ul=g(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var tg=Pe(),al=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return tg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Oi.default=al});var cl=g(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var ll=Pe(),fl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=ll.path.makeAbsolute(this._settings.cwd,r),r=ll.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Di.default=fl});var jr=g(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var rg=x("path"),ng=il(),ig=ol(),sg=ul(),og=cl(),Al=class{constructor(t){this._settings=t,this.errorFilter=new sg.default(this._settings),this.entryFilter=new ig.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ng.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new og.default(this._settings)}_getRootDirectory(t){return rg.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}}};ki.default=Al});var pl=g(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var ag=wi(),ug=jr(),hl=class extends ug.default{constructor(){super(...arguments);this._reader=new ag.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let a=this.api(r,t,n);a.once("error",o),a.on("data",u=>i.push(n.transform(u))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Li.default=hl});var gl=g(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var lg=x("stream"),fg=wi(),cg=jr(),dl=class extends cg.default{constructor(){super(...arguments);this._reader=new fg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new lg.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)}};Pi.default=dl});var El=g(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var Ag=rt(),hg=vi(),pg=xi(),_l=class extends pg.default{constructor(){super(...arguments);this._walkSync=hg.walkSync,this._statSync=Ag.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)}};Ni.default=_l});var yl=g(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var dg=El(),gg=jr(),ml=class extends gg.default{constructor(){super(...arguments);this._reader=new dg.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)}};Mi.default=ml});var bl=g(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var St=x("fs"),_g=x("os"),Eg=Math.max(_g.cpus().length,1);xt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:St.lstat,lstatSync:St.lstatSync,stat:St.stat,statSync:St.statSync,readdir:St.readdir,readdirSync:St.readdirSync};var Cl=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,Eg),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({},xt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};xt.default=Cl});var ji=g((Hy,xl)=>{"use strict";var vl=za(),Sl=tu(),mg=pl(),yg=gl(),Cg=yl(),Fi=bl(),it=Pe();async function qi(e,t){Bt(e);let r=Hi(e,mg.default,t),n=await Promise.all(r);return it.array.flatten(n)}(function(e){function t(o,a){Bt(o);let u=Hi(o,Cg.default,a);return it.array.flatten(u)}e.sync=t;function r(o,a){Bt(o);let u=Hi(o,yg.default,a);return it.stream.merge(u)}e.stream=r;function n(o,a){Bt(o);let u=Sl.transform([].concat(o)),l=new Fi.default(a);return vl.generate(u,l)}e.generateTasks=n;function i(o,a){Bt(o);let u=new Fi.default(a);return it.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=i;function s(o){return Bt(o),it.path.escape(o)}e.escapePath=s})(qi||(qi={}));function Hi(e,t,r){let n=Sl.transform([].concat(e)),i=new Fi.default(r),s=vl.generate(n,i),o=new t(i);return s.map(o.read,o)}function Bt(e){if(![].concat(e).every(n=>it.string.isString(n)&&!it.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}xl.exports=qi});var wl=g((jy,$i)=>{"use strict";var Bl=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};$i.exports=Bl;$i.exports.default=Bl});var Ql=g(($y,Gr)=>{"use strict";var bg=wl(),$r=new WeakMap,Rl=(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($r.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 bg(s,e),$r.set(s,n),s};Gr.exports=Rl;Gr.exports.default=Rl;Gr.exports.callCount=e=>{if(!$r.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return $r.get(e)}});var Il=g((Gy,Ur)=>{Ur.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ur.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ur.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Ll=g((Uy,Qt)=>{var J=global.process,st=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"};st(J)?(Tl=x("assert"),wt=Il(),Ol=/^win/i.test(J.platform),Ut=x("events"),typeof Ut!="function"&&(Ut=Ut.EventEmitter),J.__signal_exit_emitter__?te=J.__signal_exit_emitter__:(te=J.__signal_exit_emitter__=new Ut,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),Qt.exports=function(e,t){if(!st(global.process))return function(){};Tl.equal(typeof e,"function","a callback must be provided for exit handler"),Rt===!1&&Gi();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){te.removeListener(r,e),te.listeners("exit").length===0&&te.listeners("afterexit").length===0&&Kr()};return te.on(r,e),n},Kr=function(){!Rt||!st(global.process)||(Rt=!1,wt.forEach(function(t){try{J.removeListener(t,Jr[t])}catch{}}),J.emit=Yr,J.reallyExit=Ui,te.count-=1)},Qt.exports.unload=Kr,ot=function(t,r,n){te.emitted[t]||(te.emitted[t]=!0,te.emit(t,r,n))},Jr={},wt.forEach(function(e){Jr[e]=function(){if(!!st(global.process)){var r=J.listeners(e);r.length===te.count&&(Kr(),ot("exit",null,e),ot("afterexit",null,e),Ol&&e==="SIGHUP"&&(e="SIGINT"),J.kill(J.pid,e))}}}),Qt.exports.signals=function(){return wt},Rt=!1,Gi=function(){Rt||!st(global.process)||(Rt=!0,te.count+=1,wt=wt.filter(function(t){try{return J.on(t,Jr[t]),!0}catch{return!1}}),J.emit=kl,J.reallyExit=Dl)},Qt.exports.load=Gi,Ui=J.reallyExit,Dl=function(t){!st(global.process)||(J.exitCode=t||0,ot("exit",J.exitCode,null),ot("afterexit",J.exitCode,null),Ui.call(J,J.exitCode))},Yr=J.emit,kl=function(t,r){if(t==="exit"&&st(global.process)){r!==void 0&&(J.exitCode=r);var n=Yr.apply(this,arguments);return ot("exit",J.exitCode,null),ot("afterexit",J.exitCode,null),n}else return Yr.apply(this,arguments)}):Qt.exports=function(){return function(){}};var Tl,wt,Ol,Ut,te,Kr,ot,Jr,Rt,Gi,Ui,Dl,Yr,kl});var ql=g((Xy,xg)=>{xg.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var $l=g((Zy,jl)=>{"use strict";var Vr=Object.assign({},ql()),Hl=Object.keys(Vr);Object.defineProperty(Vr,"random",{get(){let e=Math.floor(Math.random()*Hl.length),t=Hl[e];return Vr[t]}});jl.exports=Vr});var Gl=g((aC,Xr)=>{var Qg=function(){"use strict";function e(o,a,u,l){var f;typeof a=="object"&&(u=a.depth,l=a.prototype,f=a.filter,a=a.circular);var A=[],c=[],b=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof u>"u"&&(u=1/0);function E(_,v){if(_===null)return null;if(v==0)return _;var C,D;if(typeof _!="object")return _;if(e.__isArray(_))C=[];else if(e.__isRegExp(_))C=new RegExp(_.source,s(_)),_.lastIndex&&(C.lastIndex=_.lastIndex);else if(e.__isDate(_))C=new Date(_.getTime());else{if(b&&Buffer.isBuffer(_))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(_.length):C=new Buffer(_.length),_.copy(C),C;typeof l>"u"?(D=Object.getPrototypeOf(_),C=Object.create(D)):(C=Object.create(l),D=l)}if(a){var L=A.indexOf(_);if(L!=-1)return c[L];A.push(_),c.push(C)}for(var z in _){var R;D&&(R=Object.getOwnPropertyDescriptor(D,z)),!(R&&R.set==null)&&(C[z]=E(_[z],v-1))}return C}return E(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};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 Xr=="object"&&Xr.exports&&(Xr.exports=Qg)});var Kl=g((uC,Ul)=>{var Ig=Gl();Ul.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Ig(t[r]))}),e}});var Yl=g((lC,Jl)=>{Jl.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 Zl=g((fC,Wi)=>{"use strict";var Tg=Kl(),Yt=Yl(),Vl={nul:0,control:0};Wi.exports=function(t){return Xl(t,Vl)};Wi.exports.config=function(e){return e=Tg(e||{},Vl),function(r){return Xl(r,e)}};function Xl(e,t){if(typeof e!="string")return Wl(e,t);for(var r=0,n=0;n<e.length;n++){var i=Wl(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Wl(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Og(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 Og(e){var t=0,r=Yt.length-1,n;if(e<Yt[0][0]||e>Yt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Yt[n][1])t=n+1;else if(e<Yt[n][0])r=n-1;else return!0;return!1}});var Xi=g((AC,zl)=>{zl.exports=x("stream")});var nf=g((hC,rf)=>{"use strict";function ef(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 Dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(r),!0).forEach(function(n){kg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tf(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 Pg(e,t,r){return t&&tf(e.prototype,t),r&&tf(e,r),e}var Ng=x("buffer"),Zr=Ng.Buffer,Mg=x("util"),Zi=Mg.inspect,Fg=Zi&&Zi.custom||"inspect";function qg(e,t,r){Zr.prototype.copy.call(e,t,r)}rf.exports=function(){function e(){Lg(this,e),this.head=null,this.tail=null,this.length=0}return Pg(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 Zr.alloc(0);for(var n=Zr.allocUnsafe(r>>>0),i=this.head,s=0;i;)qg(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=Zr.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:Fg,value:function(r,n){return Zi(this,Dg({},n,{depth:0,customInspect:!1}))}}]),e}()});var es=g((pC,of)=>{"use strict";function Hg(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(zi,this,e)):process.nextTick(zi,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(zr,r):(r._writableState.errorEmitted=!0,process.nextTick(sf,r,s)):process.nextTick(sf,r,s):t?(process.nextTick(zr,r),t(s)):process.nextTick(zr,r)}),this)}function sf(e,t){zi(e,t),zr(e)}function zr(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function jg(){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 zi(e,t){e.emit("error",t)}function $g(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}of.exports={destroy:Hg,undestroy:jg,errorOrDestroy:$g}});var Ye=g((dC,lf)=>{"use strict";var uf={};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,u){super(n(o,a,u))}}i.prototype.name=r.name,i.prototype.code=e,uf[e]=i}function af(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 Gg(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Ug(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Kg(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"&&Gg(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(Ug(e," argument"))i=`The ${e} ${n} ${af(t,"type")}`;else{let s=Kg(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${af(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");lf.exports.codes=uf});var ts=g((gC,ff)=>{"use strict";var Jg=Ye().codes.ERR_INVALID_OPT_VALUE;function Yg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Wg(e,t,r,n){var i=Yg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Jg(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}ff.exports={getHighWaterMark:Wg}});var cf=g((_C,rs)=>{typeof Object.create=="function"?rs.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:rs.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 at=g((EC,is)=>{try{if(ns=x("util"),typeof ns.inherits!="function")throw"";is.exports=ns.inherits}catch{is.exports=cf()}var ns});var hf=g((mC,Af)=>{Af.exports=x("util").deprecate});var as=g((yC,mf)=>{"use strict";mf.exports=W;function df(e){var t=this;this.next=null,this.entry=null,this.finish=function(){b_(t,e)}}var Tt;W.WritableState=Vt;var Vg={deprecate:hf()},gf=Xi(),tn=x("buffer").Buffer,Xg=global.Uint8Array||function(){};function Zg(e){return tn.from(e)}function zg(e){return tn.isBuffer(e)||e instanceof Xg}var os=es(),e_=ts(),t_=e_.getHighWaterMark,We=Ye().codes,r_=We.ERR_INVALID_ARG_TYPE,n_=We.ERR_METHOD_NOT_IMPLEMENTED,i_=We.ERR_MULTIPLE_CALLBACK,s_=We.ERR_STREAM_CANNOT_PIPE,o_=We.ERR_STREAM_DESTROYED,a_=We.ERR_STREAM_NULL_VALUES,u_=We.ERR_STREAM_WRITE_AFTER_END,l_=We.ERR_UNKNOWN_ENCODING,Ot=os.errorOrDestroy;at()(W,gf);function f_(){}function Vt(e,t,r){Tt=Tt||ut(),e=e||{},typeof r!="boolean"&&(r=t instanceof Tt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=t_(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){__(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 df(this)}Vt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Vt.prototype,"buffer",{get:Vg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var en;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(en=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(t){return en.call(this,t)?!0:this!==W?!1:t&&t._writableState instanceof Vt}})):en=function(t){return t instanceof this};function W(e){Tt=Tt||ut();var t=this instanceof Tt;if(!t&&!en.call(W,this))return new W(e);this._writableState=new Vt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),gf.call(this)}W.prototype.pipe=function(){Ot(this,new s_)};function c_(e,t){var r=new u_;Ot(e,r),process.nextTick(t,r)}function A_(e,t,r,n){var i;return r===null?i=new a_:typeof r!="string"&&!t.objectMode&&(i=new r_("chunk",["string","Buffer"],r)),i?(Ot(e,i),process.nextTick(n,i),!1):!0}W.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&zg(e);return s&&!tn.isBuffer(e)&&(e=Zg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=f_),n.ending?c_(this,r):(s||A_(this,n,e,r))&&(n.pendingcb++,i=p_(this,n,s,e,t,r)),i};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&_f(this,e))};W.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 l_(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function h_(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=tn.from(t,r)),t}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p_(e,t,r,n,i,s){if(!r){var o=h_(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else ss(e,t,!1,a,n,i,s);return u}function ss(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new o_("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function d_(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Wt,e,t),e._writableState.errorEmitted=!0,Ot(e,n)):(i(n),e._writableState.errorEmitted=!0,Ot(e,n),Wt(e,t))}function g_(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function __(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new i_;if(g_(r),t)d_(e,r,n,t,i);else{var s=Ef(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&_f(e,r),n?process.nextTick(pf,e,r,s,i):pf(e,r,s,i)}}function pf(e,t,r,n){r||E_(e,t),t.pendingcb--,n(),Wt(e,t)}function E_(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function _f(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,ss(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 df(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback,A=t.objectMode?1:u.length;if(ss(e,t,!1,A,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}W.prototype._write=function(e,t,r){r(new n_("_write()"))};W.prototype._writev=null;W.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||C_(this,n,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ef(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function m_(e,t){e._final(function(r){t.pendingcb--,r&&Ot(e,r),t.prefinished=!0,e.emit("prefinish"),Wt(e,t)})}function y_(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(m_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Wt(e,t){var r=Ef(t);if(r&&(y_(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 C_(e,t,r){t.ending=!0,Wt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function b_(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(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});W.prototype.destroy=os.destroy;W.prototype._undestroy=os.undestroy;W.prototype._destroy=function(e,t){t(e)}});var ut=g((CC,Cf)=>{"use strict";var v_=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Cf.exports=Te;var yf=fs(),ls=as();at()(Te,yf);for(us=v_(ls.prototype),rn=0;rn<us.length;rn++)nn=us[rn],Te.prototype[nn]||(Te.prototype[nn]=ls.prototype[nn]);var us,nn,rn;function Te(e){if(!(this instanceof Te))return new Te(e);yf.call(this,e),ls.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",S_)))}Object.defineProperty(Te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Te.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Te.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function S_(){this._writableState.ended||process.nextTick(x_,this)}function x_(e){e.end()}Object.defineProperty(Te.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 Sf=g((cs,vf)=>{var sn=x("buffer"),Oe=sn.Buffer;function bf(e,t){for(var r in e)t[r]=e[r]}Oe.from&&Oe.alloc&&Oe.allocUnsafe&&Oe.allocUnsafeSlow?vf.exports=sn:(bf(sn,cs),cs.Buffer=lt);function lt(e,t,r){return Oe(e,t,r)}lt.prototype=Object.create(Oe.prototype);bf(Oe,lt);lt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Oe(e,t,r)};lt.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};lt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Oe(e)};lt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return sn.SlowBuffer(e)}});var ps=g(Bf=>{"use strict";var hs=Sf().Buffer,xf=hs.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 B_(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 w_(e){var t=B_(e);if(typeof t!="string"&&(hs.isEncoding===xf||!xf(e)))throw new Error("Unknown encoding: "+e);return t||e}Bf.StringDecoder=Xt;function Xt(e){this.encoding=w_(e);var t;switch(this.encoding){case"utf16le":this.text=D_,this.end=k_,t=4;break;case"utf8":this.fillLast=I_,t=4;break;case"base64":this.text=L_,this.end=P_,t=3;break;default:this.write=N_,this.end=M_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=hs.allocUnsafe(t)}Xt.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||""};Xt.prototype.end=O_;Xt.prototype.text=T_;Xt.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 As(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function R_(e,t,r){var n=t.length-1;if(n<r)return 0;var i=As(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=As(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=As(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Q_(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 I_(e){var t=this.lastTotal-this.lastNeed,r=Q_(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 T_(e,t){var r=R_(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 O_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function D_(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 k_(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 L_(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 P_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function N_(e){return e.toString(this.encoding)}function M_(e){return e&&e.length?this.write(e):""}});var on=g((vC,Qf)=>{"use strict";var wf=Ye().codes.ERR_STREAM_PREMATURE_CLOSE;function F_(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 q_(){}function H_(e){return e.setHeader&&typeof e.abort=="function"}function Rf(e,t,r){if(typeof t=="function")return Rf(e,null,t);t||(t={}),r=F_(r||q_);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)},u=e._readableState&&e._readableState.endEmitted,l=function(){n=!1,u=!0,i||r.call(e)},f=function(E){r.call(e,E)},A=function(){var E;if(n&&!u)return(!e._readableState||!e._readableState.ended)&&(E=new wf),r.call(e,E);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(E=new wf),r.call(e,E)},c=function(){e.req.on("finish",a)};return H_(e)?(e.on("complete",a),e.on("abort",A),e.req?c():e.on("request",c)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",l),e.on("finish",a),t.error!==!1&&e.on("error",f),e.on("close",A),function(){e.removeListener("complete",a),e.removeListener("abort",A),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",l),e.removeListener("error",f),e.removeListener("close",A)}}Qf.exports=Rf});var Tf=g((SC,If)=>{"use strict";var an;function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j_=on(),Xe=Symbol("lastResolve"),ft=Symbol("lastReject"),Zt=Symbol("error"),un=Symbol("ended"),ct=Symbol("lastPromise"),ds=Symbol("handlePromise"),At=Symbol("stream");function Ze(e,t){return{value:e,done:t}}function $_(e){var t=e[Xe];if(t!==null){var r=e[At].read();r!==null&&(e[ct]=null,e[Xe]=null,e[ft]=null,t(Ze(r,!1)))}}function G_(e){process.nextTick($_,e)}function U_(e,t){return function(r,n){e.then(function(){if(t[un]){r(Ze(void 0,!0));return}t[ds](r,n)},n)}}var K_=Object.getPrototypeOf(function(){}),J_=Object.setPrototypeOf((an={get stream(){return this[At]},next:function(){var t=this,r=this[Zt];if(r!==null)return Promise.reject(r);if(this[un])return Promise.resolve(Ze(void 0,!0));if(this[At].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Zt]?a(t[Zt]):o(Ze(void 0,!0))})});var n=this[ct],i;if(n)i=new Promise(U_(n,this));else{var s=this[At].read();if(s!==null)return Promise.resolve(Ze(s,!1));i=new Promise(this[ds])}return this[ct]=i,i}},Ve(an,Symbol.asyncIterator,function(){return this}),Ve(an,"return",function(){var t=this;return new Promise(function(r,n){t[At].destroy(null,function(i){if(i){n(i);return}r(Ze(void 0,!0))})})}),an),K_),Y_=function(t){var r,n=Object.create(J_,(r={},Ve(r,At,{value:t,writable:!0}),Ve(r,Xe,{value:null,writable:!0}),Ve(r,ft,{value:null,writable:!0}),Ve(r,Zt,{value:null,writable:!0}),Ve(r,un,{value:t._readableState.endEmitted,writable:!0}),Ve(r,ds,{value:function(s,o){var a=n[At].read();a?(n[ct]=null,n[Xe]=null,n[ft]=null,s(Ze(a,!1))):(n[Xe]=s,n[ft]=o)},writable:!0}),r));return n[ct]=null,j_(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[ft];s!==null&&(n[ct]=null,n[Xe]=null,n[ft]=null,s(i)),n[Zt]=i;return}var o=n[Xe];o!==null&&(n[ct]=null,n[Xe]=null,n[ft]=null,o(Ze(void 0,!0))),n[un]=!0}),t.on("readable",G_.bind(null,n)),n};If.exports=Y_});var Lf=g((xC,kf)=>{"use strict";function Of(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(l){r(l);return}a.done?t(u):Promise.resolve(u).then(n,i)}function W_(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(u){Of(s,n,i,o,a,"next",u)}function a(u){Of(s,n,i,o,a,"throw",u)}o(void 0)})}}function Df(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 V_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Df(Object(r),!0).forEach(function(n){X_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Df(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Z_=Ye().codes.ERR_INVALID_ARG_TYPE;function z_(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 Z_("iterable",["Iterable"],t);var i=new e(V_({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=W_(function*(){try{var u=yield n.next(),l=u.value,f=u.done;f?i.push(null):i.push(yield l)?o():s=!1}catch(A){i.destroy(A)}}),a.apply(this,arguments)}return i}kf.exports=z_});var fs=g((wC,Uf)=>{"use strict";Uf.exports=P;var Dt;P.ReadableState=Ff;var BC=x("events").EventEmitter,Mf=function(t,r){return t.listeners(r).length},er=Xi(),ln=x("buffer").Buffer,eE=global.Uint8Array||function(){};function tE(e){return ln.from(e)}function rE(e){return ln.isBuffer(e)||e instanceof eE}var gs=x("util"),T;gs&&gs.debuglog?T=gs.debuglog("stream"):T=function(){};var nE=nf(),vs=es(),iE=ts(),sE=iE.getHighWaterMark,fn=Ye().codes,oE=fn.ERR_INVALID_ARG_TYPE,aE=fn.ERR_STREAM_PUSH_AFTER_EOF,uE=fn.ERR_METHOD_NOT_IMPLEMENTED,lE=fn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,kt,_s,Es;at()(P,er);var zt=vs.errorOrDestroy,ms=["error","close","destroy","pause","resume"];function fE(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 Ff(e,t,r){Dt=Dt||ut(),e=e||{},typeof r!="boolean"&&(r=t instanceof Dt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=sE(this,e,"readableHighWaterMark",r),this.buffer=new nE,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&&(kt||(kt=ps().StringDecoder),this.decoder=new kt(e.encoding),this.encoding=e.encoding)}function P(e){if(Dt=Dt||ut(),!(this instanceof P))return new P(e);var t=this instanceof Dt;this._readableState=new Ff(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),er.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});P.prototype.destroy=vs.destroy;P.prototype._undestroy=vs.undestroy;P.prototype._destroy=function(e,t){t(e)};P.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=ln.from(e,t),t=""),n=!0),qf(this,e,t,!1,n)};P.prototype.unshift=function(e){return qf(this,e,null,!0,!1)};function qf(e,t,r,n,i){T("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,hE(e,s);else{var o;if(i||(o=cE(s,t)),o)zt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==ln.prototype&&(t=tE(t)),n)s.endEmitted?zt(e,new lE):ys(e,s,t,!0);else if(s.ended)zt(e,new aE);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?ys(e,s,t,!1):bs(e,s)):ys(e,s,t,!1)}else n||(s.reading=!1,bs(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function ys(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&&cn(e)),bs(e,t)}function cE(e,t){var r;return!rE(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new oE("chunk",["string","Buffer","Uint8Array"],t)),r}P.prototype.isPaused=function(){return this._readableState.flowing===!1};P.prototype.setEncoding=function(e){kt||(kt=ps().StringDecoder);var t=new kt(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 Pf=1073741824;function AE(e){return e>=Pf?e=Pf:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Nf(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=AE(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}P.prototype.read=function(e){T("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 T("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Cs(this):cn(this),null;if(e=Nf(e,t),e===0&&t.ended)return t.length===0&&Cs(this),null;var n=t.needReadable;T("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,T("length less than watermark",n)),t.ended||t.reading?(n=!1,T("reading or ended",n)):n&&(T("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Nf(r,t)));var i;return e>0?i=$f(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&&Cs(this)),i!==null&&this.emit("data",i),i};function hE(e,t){if(T("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?cn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Hf(e)))}}function cn(e){var t=e._readableState;T("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(T("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Hf,e))}function Hf(e){var t=e._readableState;T("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,Ss(e)}function bs(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(pE,e,t))}function pE(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(T("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}P.prototype._read=function(e){zt(this,new uE("_read()"))};P.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,T("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:_;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(v,C){T("onunpipe"),v===r&&C&&C.hasUnpiped===!1&&(C.hasUnpiped=!0,f())}function a(){T("onend"),e.end()}var u=dE(r);e.on("drain",u);var l=!1;function f(){T("cleanup"),e.removeListener("close",b),e.removeListener("finish",E),e.removeListener("drain",u),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",A),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}r.on("data",A);function A(v){T("ondata");var C=e.write(v);T("dest.write",C),C===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Gf(n.pipes,e)!==-1)&&!l&&(T("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(v){T("onerror",v),_(),e.removeListener("error",c),Mf(e,"error")===0&&zt(e,v)}fE(e,"error",c);function b(){e.removeListener("finish",E),_()}e.once("close",b);function E(){T("onfinish"),e.removeListener("close",b),_()}e.once("finish",E);function _(){T("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(T("pipe resume"),r.resume()),e};function dE(e){return function(){var r=e._readableState;T("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Mf(e,"data")&&(r.flowing=!0,Ss(e))}}P.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=Gf(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)};P.prototype.on=function(e,t){var r=er.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,T("on readable",n.length,n.reading),n.length?cn(this):n.reading||process.nextTick(gE,this)),r};P.prototype.addListener=P.prototype.on;P.prototype.removeListener=function(e,t){var r=er.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(jf,this),r};P.prototype.removeAllListeners=function(e){var t=er.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(jf,this),t};function jf(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 gE(e){T("readable nexttick read 0"),e.read(0)}P.prototype.resume=function(){var e=this._readableState;return e.flowing||(T("resume"),e.flowing=!e.readableListening,_E(this,e)),e.paused=!1,this};function _E(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(EE,e,t))}function EE(e,t){T("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Ss(e),t.flowing&&!t.reading&&e.read(0)}P.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ss(e){var t=e._readableState;for(T("flow",t.flowing);t.flowing&&e.read()!==null;);}P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(T("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(T("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<ms.length;s++)e.on(ms[s],this.emit.bind(this,ms[s]));return this._read=function(o){T("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return _s===void 0&&(_s=Tf()),_s(this)});Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});P._fromList=$f;Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function $f(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 Cs(e){var t=e._readableState;T("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(mE,t,e))}function mE(e,t){if(T("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"&&(P.from=function(e,t){return Es===void 0&&(Es=Lf()),Es(P,e,t)});function Gf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var xs=g((RC,Jf)=>{"use strict";Jf.exports=Fe;var An=Ye().codes,yE=An.ERR_METHOD_NOT_IMPLEMENTED,CE=An.ERR_MULTIPLE_CALLBACK,bE=An.ERR_TRANSFORM_ALREADY_TRANSFORMING,vE=An.ERR_TRANSFORM_WITH_LENGTH_0,hn=ut();at()(Fe,hn);function SE(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new CE);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 Fe(e){if(!(this instanceof Fe))return new Fe(e);hn.call(this,e),this._transformState={afterTransform:SE.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",xE)}function xE(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Kf(e,t,r)}):Kf(this,null,null)}Fe.prototype.push=function(e,t){return this._transformState.needTransform=!1,hn.prototype.push.call(this,e,t)};Fe.prototype._transform=function(e,t,r){r(new yE("_transform()"))};Fe.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)}};Fe.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};Fe.prototype._destroy=function(e,t){hn.prototype._destroy.call(this,e,function(r){t(r)})};function Kf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new vE;if(e._transformState.transforming)throw new bE;return e.push(null)}});var Vf=g((QC,Wf)=>{"use strict";Wf.exports=tr;var Yf=xs();at()(tr,Yf);function tr(e){if(!(this instanceof tr))return new tr(e);Yf.call(this,e)}tr.prototype._transform=function(e,t,r){r(null,e)}});var tc=g((IC,ec)=>{"use strict";var Bs;function BE(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var zf=Ye().codes,wE=zf.ERR_MISSING_ARGS,RE=zf.ERR_STREAM_DESTROYED;function Xf(e){if(e)throw e}function QE(e){return e.setHeader&&typeof e.abort=="function"}function IE(e,t,r,n){n=BE(n);var i=!1;e.on("close",function(){i=!0}),Bs===void 0&&(Bs=on()),Bs(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,QE(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new RE("pipe"))}}}function Zf(e){e()}function TE(e,t){return e.pipe(t)}function OE(e){return!e.length||typeof e[e.length-1]!="function"?Xf:e.pop()}function DE(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=OE(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new wE("streams");var i,s=t.map(function(o,a){var u=a<t.length-1,l=a>0;return IE(o,u,l,function(f){i||(i=f),f&&s.forEach(Zf),!u&&(s.forEach(Zf),n(i))})});return t.reduce(TE)}ec.exports=DE});var rc=g((de,nr)=>{var rr=x("stream");process.env.READABLE_STREAM==="disable"&&rr?(nr.exports=rr.Readable,Object.assign(nr.exports,rr),nr.exports.Stream=rr):(de=nr.exports=fs(),de.Stream=rr||de,de.Readable=de,de.Writable=as(),de.Duplex=ut(),de.Transform=xs(),de.PassThrough=Vf(),de.finished=on(),de.pipeline=tc())});var sc=g((TC,ic)=>{"use strict";var{Buffer:ye}=x("buffer"),nc=Symbol.for("BufferList");function $(e){if(!(this instanceof $))return new $(e);$._init.call(this,e)}$._init=function(t){Object.defineProperty(this,nc,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};$.prototype._new=function(t){return new $(t)};$.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};$.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};$.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};$.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};$.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||ye.alloc(0);let s=!!t,o=this._offset(n),a=i-n,u=a,l=s&&r||0,f=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ye.concat(this._bufs,this.length);for(let A=0;A<this._bufs.length;A++)this._bufs[A].copy(t,l),l+=this._bufs[A].length;return t}if(u<=this._bufs[o[0]].length-f)return s?this._bufs[o[0]].copy(t,r,f,f+u):this._bufs[o[0]].slice(f,f+u);s||(t=ye.allocUnsafe(a));for(let A=o[0];A<this._bufs.length;A++){let c=this._bufs[A].length-f;if(u>c)this._bufs[A].copy(t,l,f),l+=c;else{this._bufs[A].copy(t,l,f,f+u),l+=c;break}u-=c,f&&(f=0)}return t.length>l?t.slice(0,l):t};$.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};$.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};$.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};$.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};$.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(ye.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(ye.from(t));return this};$.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};$.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=ye.from([e]):typeof e=="string"?e=ye.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=ye.from(e.buffer,e.byteOffset,e.byteLength):ye.isBuffer(e)||(e=ye.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 u=o.indexOf(e,s);if(u!==-1)return this._reverseOffset([i,u]);s=o.length-e.length+1}else{let u=this._reverseOffset([i,s]);if(this._match(u,e))return u;s++}s=0}return-1};$.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?$.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:$.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();$.prototype._isBufferList=function(t){return t instanceof $||$.isBufferList(t)};$.isBufferList=function(t){return t!=null&&t[nc]};ic.exports=$});var oc=g((OC,pn)=>{"use strict";var ws=rc().Duplex,kE=at(),ir=sc();function ie(e){if(!(this instanceof ie))return new ie(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}ir._init.call(this,e),ws.call(this)}kE(ie,ws);Object.assign(ie.prototype,ir.prototype);ie.prototype._new=function(t){return new ie(t)};ie.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};ie.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)};ie.prototype.end=function(t){ws.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ie.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};ie.prototype._isBufferList=function(t){return t instanceof ie||t instanceof ir||ie.isBufferList(t)};ie.isBufferList=ir.isBufferList;pn.exports=ie;pn.exports.BufferListStream=ie;pn.exports.BufferList=ir});var Xs=g((Cv,Pc)=>{var Sn=x("fs"),Lc=x("path"),U0=x("os");function Ws(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function Vs(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var K0={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return Ws(e,"RegExp")},string:function(e){return Ws(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return Ws(e,"Number")},exists:function(e){return Sn.existsSync(e)},file:function(e){return Vs(e,function(t){return Sn.statSync(t).isFile()})},samePath:function(e,t){return Lc.resolve(e)===Lc.resolve(t)},directory:function(e){return Vs(e,function(t){return Sn.statSync(t).isDirectory()})},symbolicLink:function(e){return Vs(e,function(t){return Sn.lstatSync(t).isSymbolicLink()})},windows:function(){return U0.platform()==="win32"}};Pc.exports=K0});var Hc=g((bv,qc)=>{var lr=x("fs"),Nc=x("os"),Zs=x("path"),xn=Xs(),ur,J0=Nc.tmpdir&&Nc.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Fc(){this.stack=[]}Fc.prototype={create:function(e,t){var r=Zs.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)lr.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)lr.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&xn.file(n)?lr.unlinkSync(n):r==="dir"&&xn.directory(n)&&lr.rmdirSync(n)}}finally{xn.func(e)&&e()}}};var Mc=!1;qc.exports=function e(t){if(!xn.func(t))return!1;if(ur!==void 0)return t(ur);if(!Mc)Mc=!0;else return setTimeout(function(){e(t)},300);var r=new Fc,n=r.create("dir",J0),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=lr.watch(n,o)}catch(l){if(l.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(ur=!1);throw l}if(!a)return!1;var u=setTimeout(function(){a.close(),r.cleanup(function(){t(ur=!1)})},200);a.on("change",function(l,f){Zs.basename(s)===Zs.basename(f)&&(a.close(),clearTimeout(u),r.cleanup(function(){t(ur=!0)}))}),r.write(s)}});var Zc=g((vv,ro)=>{var eo=x("fs"),fr=x("path"),$c=x("util"),Gc=x("events"),Uc=Hc(),j=Xs(),Y0="update",Kc="remove",jc=Symbol("skip");function W0(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function to(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function V0(e){return e.reduce(function(t,r){return t.concat(r)},[])}function X0(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function Z0(e){return j.func(e)?function(t,r){e(t,!1)&&r()}:j.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function z0(e){return e.map(function(t){return j.exists(t)?[Y0,t]:[Kc,t]})}function em(e){var t=to(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=W0(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return j.exists(s)}))}return z0(t)}function tm(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;j.number(s)||(s=200);function o(){em(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,u){n.push(u),r||(r=setTimeout(o,s))}}function Jc(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function Yc(e,t,r=function(){}){j.directory(e)?eo.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=fr.join(e,s);j.directory(o)&&t(o)}),r()}):r()}function rm(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function nm(){return function(){}}function Wc(e,t){return!j.func(t)||t(e,jc)!==jc}var Vc=$c.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function ke(){Gc.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}$c.inherits(ke,Gc.EventEmitter);ke.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};ke.prototype.isClosed=function(){return this._isClosed};ke.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),Yc(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};j.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Xc,this)))};ke.prototype.getWatchedPaths=function(e){if(j.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function zs(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function Xc(e){e.emit("close")}ke.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=fr.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var u=a;j.nil(u)&&(u=""),u=fr.join(t.fpath,u),t.options.recursive&&Uc(function(l){if(!l){var f=fr.resolve(u);if(!j.exists(u))r.close(f);else{var A=j.directory(u)&&!r.watchers[f]&&Wc(u,t.options.filter);A&&r.watchDirectory(u,t.options)}}}),s(o,u)}},s=tm(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var u=Z0(t.options.filter);u(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(j.windows()&&o.code==="EPERM"?(e.emit("change",Kc,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};ke.prototype.watchFile=function(e,t,r){var n=fr.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=eo.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return j.samePath(o,e)}}),j.func(r)&&(r.length===1&&Vc(),this.on("change",r))};ke.prototype.watchDirectory=function(e,t,r,n=nm){var i=this,s=n();Uc(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var u=eo.watch(e,a);i.add(u,{type:"dir",fpath:e,options:t}),j.func(r)&&(r.length===1&&Vc(),i.on("change",r)),t.recursive&&!o&&Yc(e,function(l){Wc(l,t.filter)&&i.watchDirectory(l,t,null,n)},n()),s()})};function im(e){var t=new ke,r=Jc(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||zs(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(Xc,t)},t.getWatchedPaths=function(i){if(j.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=to(V0(o));i(a)})}},t.expose()}function Bn(e,t,r){var n=new ke;if(j.buffer(e)&&(e=e.toString()),!j.array(e)&&!j.exists(e)&&n.emit("error",new Error(e+" does not exist.")),j.string(t)&&(t={encoding:t}),j.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?X0(t.encoding):t.encoding="utf8",j.array(e)){if(e.length===1)return Bn(e[0],t,r);var i=Jc();return im(to(e).map(function(o){var a=Bn(o,t);return j.func(r)&&a.on("change",i(r)),a}))}if(j.file(e))n.watchFile(e,t,r),zs(n);else if(j.directory(e)){var s=rm(function(){zs(n)});n.watchDirectory(e,t,r,s)}return n.expose()}ro.exports=Bn;ro.exports.default=Bn});import{constants as Q0,existsSync as Rc}from"fs";import{copyFile as I0,mkdir as T0,readFile as Qc,rm as vc,writeFile as O0}from"fs/promises";import{dirname as Ic,extname as D0,isAbsolute as k0,resolve as L0,resolve as Cn}from"path";import{build as Us,transform as P0}from"esbuild";var io=(e=0)=>t=>`\x1B[${t+e}m`,so=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,oo=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function fA(){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=io(),t.color.ansi256=so(),t.color.ansi16m=oo(),t.bgColor.ansi=io(10),t.bgColor.ansi256=so(10),t.bgColor.ansi16m=oo(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 u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%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 cA=fA(),me=cA;import Rn from"node:process";import AA from"node:os";import ao from"node:tty";function ce(e,t=Rn.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}=Rn,dr;ce("no-color")||ce("no-colors")||ce("color=false")||ce("color=never")?dr=0:(ce("color")||ce("colors")||ce("color=true")||ce("color=always"))&&(dr=1);function hA(){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 pA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function dA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=hA();n!==void 0&&(dr=n);let i=r?dr: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(Rn.platform==="win32"){let o=AA.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 uo(e,t={}){let r=dA(e,{streamIsTTY:e&&e.isTTY,...t});return pA(r)}var gA={stdout:uo({isTTY:ao.isatty(1)}),stderr:uo({isTTY:ao.isatty(2)})},lo=gA;function fo(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 co(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
6
6
  `:`
7
7
  `)+r,i=n+1,n=e.indexOf(`
8
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:lo,stderr:fo}=oo,On=Symbol("GENERATOR"),dt=Symbol("STYLER"),Ft=Symbol("IS_EMPTY"),co=["ansi","ansi","ansi256","ansi16m"],_t=Object.create(null),gh=(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=lo?lo.level:0;e.level=t.level===void 0?r:t.level};var mh=e=>{let t=(...r)=>r.join(" ");return gh(t,e),Object.setPrototypeOf(t,qt.prototype),t};function qt(e){return mh(e)}Object.setPrototypeOf(qt.prototype,Function.prototype);for(let[e,t]of Object.entries(ye))_t[e]={get(){let r=_r(this,Ln(t.open,t.close,this[dt]),this[Ft]);return Object.defineProperty(this,e,{value:r}),r}};_t.visible={get(){let e=_r(this,this[dt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Pn=(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"?Pn("rgb",t,r,...ye.hexToRgb(...n)):ye[r][e](...n),yh=["rgb","hex","ansi256"];for(let e of yh){_t[e]={get(){let{level:r}=this;return function(...n){let i=Ln(Pn(e,co[r],"color",...n),ye.color.close,this[dt]);return _r(this,i,this[Ft])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);_t[t]={get(){let{level:r}=this;return function(...n){let i=Ln(Pn(e,co[r],"bgColor",...n),ye.bgColor.close,this[dt]);return _r(this,i,this[Ft])}}}}var bh=Object.defineProperties(()=>{},{..._t,level:{enumerable:!0,get(){return this[On].level},set(e){this[On].level=e}}}),Ln=(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}},_r=(e,t,r)=>{let n=(...i)=>vh(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,bh),n[On]=e,n[dt]=t,n[Ft]=r,n},vh=(e,t)=>{if(e.level<=0||!t)return e[Ft]?"":t;let r=e[dt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=ao(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
9
- `);return s!==-1&&(t=uo(t,i,n,s)),n+t+i};Object.defineProperties(qt.prototype,_t);var xh=qt(),gb=qt({level:fo?fo.level:0});var B=xh;var Hs=je(Hi(),1);import{env as Sc}from"process";import dn from"node:process";import Il from"node:process";var Ml=je(Al(),1),Bl=je(Dl(),1);import Eg from"node:process";var Sg=(0,Ml.default)(()=>{(0,Bl.default)(()=>{Eg.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Nl=Sg;var Kr=!1,Ot={};Ot.show=(e=Il.stderr)=>{!e.isTTY||(Kr=!1,e.write("\x1B[?25h"))};Ot.hide=(e=Il.stderr)=>{!e.isTTY||(Nl(),Kr=!0,e.write("\x1B[?25l"))};Ot.toggle=(e,t)=>{e!==void 0&&(Kr=e),Kr?Ot.show(t):Ot.hide(t)};var Vi=Ot;var ir=je(jl(),1);import ke from"node:process";function Wt(){return ke.platform!=="win32"?ke.env.TERM!=="linux":Boolean(ke.env.CI)||Boolean(ke.env.WT_SESSION)||ke.env.ConEmuTask==="{cmd::Cmder}"||ke.env.TERM_PROGRAM==="vscode"||ke.env.TERM==="xterm-256color"||ke.env.TERM==="alacritty"||ke.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var wg={info:B.blue("ℹ"),success:B.green("✔"),warning:B.yellow("⚠"),error:B.red("✖")},Ag={info:B.blue("i"),success:B.green("√"),warning:B.yellow("‼"),error:B.red("×")},Tg=Wt()?wg:Ag,Vt=Tg;function Yi({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function Ki(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Yi(),"")}var sc=je(Jl(),1);function Qi({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var ic=je(nc(),1);import ve from"node:process";import Bm from"node:readline";var Nm=3,Cs=class{#r=0;#f=new ic.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(Nm)&&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=Bm.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 _n,oc=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#h;#a;#u;#l;#p;#s;color;constructor(t){_n||(_n=new Cs),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:dn.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Qi({stream:this.#t}),this.#u=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,dn.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.#l}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.#l=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(!Wt())this.#o=ir.default.line;else if(t===void 0)this.#o=ir.default.dots;else if(t!=="default"&&ir.default[t])this.#o=ir.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.#p}set text(t){this.#p=t||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(t){this.#s=t||"",this.updateLineCount()}get isSpinning(){return this.#c!==void 0}getFullPrefixText(t=this.#s,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of Ki(" ".repeat(this.#l)+r+"--"+this.#p).split(`
10
- `))this.#i+=Math.max(1,Math.ceil((0,sc.default)(n)/t))}get isEnabled(){return this.#a&&!this.#u}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#u}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#u=t}frame(){let{frames:t}=this.#o,r=t[this.#n];this.color&&(r=B[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.#l||this.lastIndent!==this.#l)&&this.#t.cursorTo(this.#l),this.lastIndent=this.#l,this.#r=0,this}render(){return this.#u?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#u?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Vi.hide(this.#t),this.#e.discardStdin&&dn.stdin.isTTY&&(this.#f=!0,_n.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
11
- `),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Vi.show(this.#t),this.#e.discardStdin&&dn.stdin.isTTY&&this.#f&&(_n.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Vt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Vt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Vt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Vt.info,text:t})}stopAndPersist(t={}){if(this.#u)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 fe(e){return new oc(e)}var ac={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(ac.NODE_ENV=e.NODE_ENV)}catch{}var Os=ac.NODE_ENV==="development";import{Console as Im}from"console";var ht=new Im({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),xe=e=>{if(Os){let{name:t}=e;return{log(...r){let n=B.bgBlue.white(` [${t}] `);ht.log(`${n}`,`
8
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Ao,stderr:ho}=lo,Qn=Symbol("GENERATOR"),dt=Symbol("STYLER"),Ft=Symbol("IS_EMPTY"),po=["ansi","ansi","ansi256","ansi16m"],gt=Object.create(null),_A=(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=Ao?Ao.level:0;e.level=t.level===void 0?r:t.level};var EA=e=>{let t=(...r)=>r.join(" ");return _A(t,e),Object.setPrototypeOf(t,qt.prototype),t};function qt(e){return EA(e)}Object.setPrototypeOf(qt.prototype,Function.prototype);for(let[e,t]of Object.entries(me))gt[e]={get(){let r=gr(this,Tn(t.open,t.close,this[dt]),this[Ft]);return Object.defineProperty(this,e,{value:r}),r}};gt.visible={get(){let e=gr(this,this[dt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var In=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?me[r].ansi16m(...n):t==="ansi256"?me[r].ansi256(me.rgbToAnsi256(...n)):me[r].ansi(me.rgbToAnsi(...n)):e==="hex"?In("rgb",t,r,...me.hexToRgb(...n)):me[r][e](...n),mA=["rgb","hex","ansi256"];for(let e of mA){gt[e]={get(){let{level:r}=this;return function(...n){let i=Tn(In(e,po[r],"color",...n),me.color.close,this[dt]);return gr(this,i,this[Ft])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);gt[t]={get(){let{level:r}=this;return function(...n){let i=Tn(In(e,po[r],"bgColor",...n),me.bgColor.close,this[dt]);return gr(this,i,this[Ft])}}}}var yA=Object.defineProperties(()=>{},{...gt,level:{enumerable:!0,get(){return this[Qn].level},set(e){this[Qn].level=e}}}),Tn=(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}},gr=(e,t,r)=>{let n=(...i)=>CA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,yA),n[Qn]=e,n[dt]=t,n[Ft]=r,n},CA=(e,t)=>{if(e.level<=0||!t)return e[Ft]?"":t;let r=e[dt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=fo(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
9
+ `);return s!==-1&&(t=co(t,i,n,s)),n+t+i};Object.defineProperties(qt.prototype,gt);var bA=qt(),Cm=qt({level:ho?ho.level:0});var O=bA;var Ks=He(ji(),1);import{env as Sc}from"process";import dn from"node:process";import Fl from"node:process";var Pl=He(Ql(),1),Nl=He(Ll(),1);import vg from"node:process";var Sg=(0,Pl.default)(()=>{(0,Nl.default)(()=>{vg.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Ml=Sg;var Wr=!1,It={};It.show=(e=Fl.stderr)=>{!e.isTTY||(Wr=!1,e.write("\x1B[?25h"))};It.hide=(e=Fl.stderr)=>{!e.isTTY||(Ml(),Wr=!0,e.write("\x1B[?25l"))};It.toggle=(e,t)=>{e!==void 0&&(Wr=e),Wr?It.show(t):It.hide(t)};var Ki=It;var sr=He($l(),1);import Me from"node:process";function Kt(){return Me.platform!=="win32"?Me.env.TERM!=="linux":Boolean(Me.env.CI)||Boolean(Me.env.WT_SESSION)||Me.env.ConEmuTask==="{cmd::Cmder}"||Me.env.TERM_PROGRAM==="vscode"||Me.env.TERM==="xterm-256color"||Me.env.TERM==="alacritty"||Me.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Bg={info:O.blue("ℹ"),success:O.green("✔"),warning:O.yellow("⚠"),error:O.red("✖")},wg={info:O.blue("i"),success:O.green("√"),warning:O.yellow("‼"),error:O.red("×")},Rg=Kt()?Bg:wg,Jt=Rg;function Ji({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 Yi(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Ji(),"")}var uc=He(Zl(),1);function Vi({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var ac=He(oc(),1);import Ce from"node:process";import LE from"node:readline";var PE=3,Rs=class{#r=0;#f=new ac.BufferListStream;#i;#n;constructor(){this.#f.pipe(Ce.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=Ce;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(PE)&&Ce.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(Ce.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(){Ce.platform!=="win32"&&(this.#n=LE.createInterface({input:Ce.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{Ce.listenerCount("SIGINT")===0?Ce.emit("SIGINT"):(this.#n.close(),Ce.kill(Ce.pid,"SIGINT"))}))}_realStop(){Ce.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var gn,lc=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#A;#a;#u;#l;#h;#s;color;constructor(t){gn||(gn=new Rs),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:dn.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#A=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Vi({stream:this.#t}),this.#u=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,dn.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.#l}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.#l=t,this.updateLineCount()}get interval(){return this.#A||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#A=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(!Kt())this.#o=sr.default.line;else if(t===void 0)this.#o=sr.default.dots;else if(t!=="default"&&sr.default[t])this.#o=sr.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.#h}set text(t){this.#h=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 Yi(" ".repeat(this.#l)+r+"--"+this.#h).split(`
10
+ `))this.#i+=Math.max(1,Math.ceil((0,uc.default)(n)/t))}get isEnabled(){return this.#a&&!this.#u}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#u}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#u=t}frame(){let{frames:t}=this.#o,r=t[this.#n];this.color&&(r=O[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.#l||this.lastIndent!==this.#l)&&this.#t.cursorTo(this.#l),this.lastIndent=this.#l,this.#r=0,this}render(){return this.#u?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#u?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Ki.hide(this.#t),this.#e.discardStdin&&dn.stdin.isTTY&&(this.#f=!0,gn.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
11
+ `),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Ki.show(this.#t),this.#e.discardStdin&&dn.stdin.isTTY&&this.#f&&(gn.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Jt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Jt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Jt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Jt.info,text:t})}stopAndPersist(t={}){if(this.#u)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 ge(e){return new lc(e)}var fc={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(fc.NODE_ENV=e.NODE_ENV)}catch{}var Qs=fc.NODE_ENV==="development";import{Console as NE}from"console";var ht=new NE({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),be=e=>{if(Qs){let{name:t}=e;return{log(...r){let n=O.bgBlue.white(` [${t}] `);ht.log(`${n}`,`
13
13
 
14
- `,...r),ht.log()},group(){ht.log();let r=B.bgBlue.white(` [${t}] `);ht.group(r),ht.log()},groupEnd(){ht.log(`
14
+ `,...r),ht.log()},group(){ht.log();let r=O.bgBlue.white(` [${t}] `);ht.group(r),ht.log()},groupEnd(){ht.log(`
15
15
  `,"-".repeat(20),`
16
- `),ht.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var Ee=(...e)=>{console.log(),console.log(...e),console.log()};import{spawn as km,execSync as Fm}from"child_process";import Bs from"node:process";import $m from"node:os";import cc from"node:tty";await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=t(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var uc=(e=0)=>t=>`\x1B[${t+e}m`,lc=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,fc=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function qm(){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=uc(),t.color.ansi256=lc(),t.color.ansi16m=fc(),t.bgColor.ansi=uc(10),t.bgColor.ansi256=lc(10),t.bgColor.ansi16m=fc(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 u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%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 jm=qm(),De=jm;function ge(e,t=Bs.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}=Bs,gn;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?gn=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(gn=1);function Hm(){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 Um(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Gm(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Hm();n!==void 0&&(gn=n);let i=r?gn: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(X.TERM==="dumb")return s;if(Bs.platform==="win32"){let o=$m.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 hc(e,t={}){let r=Gm(e,{streamIsTTY:e&&e.isTTY,...t});return Um(r)}var Wm={stdout:hc({isTTY:cc.isatty(1)}),stderr:hc({isTTY:cc.isatty(2)})},Vm=Wm;function Ym(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 Km(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
+ `),ht.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var ve=(...e)=>{console.log(),console.log(...e),console.log()};import{spawn as ME,execSync as FE}from"child_process";import ks from"node:process";import jE from"node:os";import pc from"node:tty";await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=t(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var cc=(e=0)=>t=>`\x1B[${t+e}m`,Ac=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,hc=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function qE(){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=cc(),t.color.ansi256=Ac(),t.color.ansi16m=hc(),t.bgColor.ansi=cc(10),t.bgColor.ansi256=Ac(10),t.bgColor.ansi16m=hc(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 u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%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 HE=qE(),De=HE;function _e(e,t=ks.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:Z}=ks,_n;_e("no-color")||_e("no-colors")||_e("color=false")||_e("color=never")?_n=0:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(_n=1);function $E(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}function GE(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function UE(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=$E();n!==void 0&&(_n=n);let i=r?_n:n;if(i===0)return 0;if(r){if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(ks.platform==="win32"){let o=jE.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let o=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}function dc(e,t={}){let r=UE(e,{streamIsTTY:e&&e.isTTY,...t});return GE(r)}var KE={stdout:dc({isTTY:pc.isatty(1)}),stderr:dc({isTTY:pc.isatty(2)})},JE=KE;function YE(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 WE(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:pc,stderr:dc}=Vm,Ps=Symbol("GENERATOR"),Bt=Symbol("STYLER"),sr=Symbol("IS_EMPTY"),_c=["ansi","ansi","ansi256","ansi16m"],Nt=Object.create(null),Jm=(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=pc?pc.level:0;e.level=t.level===void 0?r:t.level},Qm=e=>{let t=(...r)=>r.join(" ");return Jm(t,e),Object.setPrototypeOf(t,or.prototype),t};function or(e){return Qm(e)}Object.setPrototypeOf(or.prototype,Function.prototype);for(let[e,t]of Object.entries(De))Nt[e]={get(){let r=mn(this,Ds(t.open,t.close,this[Bt]),this[sr]);return Object.defineProperty(this,e,{value:r}),r}};Nt.visible={get(){let e=mn(this,this[Bt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ls=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?De[r].ansi16m(...n):t==="ansi256"?De[r].ansi256(De.rgbToAnsi256(...n)):De[r].ansi(De.rgbToAnsi(...n)):e==="hex"?Ls("rgb",t,r,...De.hexToRgb(...n)):De[r][e](...n),Xm=["rgb","hex","ansi256"];for(let e of Xm){Nt[e]={get(){let{level:r}=this;return function(...n){let i=Ds(Ls(e,_c[r],"color",...n),De.color.close,this[Bt]);return mn(this,i,this[sr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Nt[t]={get(){let{level:r}=this;return function(...n){let i=Ds(Ls(e,_c[r],"bgColor",...n),De.bgColor.close,this[Bt]);return mn(this,i,this[sr])}}}}var Zm=Object.defineProperties(()=>{},{...Nt,level:{enumerable:!0,get(){return this[Ps].level},set(e){this[Ps].level=e}}}),Ds=(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}},mn=(e,t,r)=>{let n=(...i)=>zm(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Zm),n[Ps]=e,n[Bt]=t,n[sr]=r,n},zm=(e,t)=>{if(e.level<=0||!t)return e[sr]?"":t;let r=e[Bt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Ym(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
20
- `);return s!==-1&&(t=Km(t,i,n,s)),n+t+i};Object.defineProperties(or.prototype,Nt);var ey=or(),zx=or({level:dc?dc.level:0}),ty=ey,ry={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},ny={"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(" ")}`}},iy=(e,t,r)=>{let n={...ry,...t},i={...ny,...r},s=a=>{let u=process.platform,f=n[u];if(f)return f(a);let[l,...h]=a.split(" ");return{cmd:l,args:h}},o=(a=>{let u=Object.entries(i);for(let[f,l]of u)if(a.startsWith(f)){let h=process.platform,c=l[h];if(!c)break;let E=a.slice(f.length).trim().split(" ");return c(E)}return a})(e);return s(o)},sy=process.platform==="linux"||process.platform==="darwin",Ms=process.platform==="win32",oy={stdio:"pipe",shell:!0,detached:!Ms,env:process.env},ay={log:!0,commandTranslations:{},shellTranslations:{},...oy},me=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=ay)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let u=process.platform;s.posix&&sy&&(u="posix");let f=s[u];if(!f)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=f}let{cmd:o,args:a}=iy(s,r,t);return e&&console.log(ty.dim(`
19
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:gc,stderr:_c}=JE,Is=Symbol("GENERATOR"),Lt=Symbol("STYLER"),or=Symbol("IS_EMPTY"),Ec=["ansi","ansi","ansi256","ansi16m"],Pt=Object.create(null),VE=(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=gc?gc.level:0;e.level=t.level===void 0?r:t.level},XE=e=>{let t=(...r)=>r.join(" ");return VE(t,e),Object.setPrototypeOf(t,ar.prototype),t};function ar(e){return XE(e)}Object.setPrototypeOf(ar.prototype,Function.prototype);for(let[e,t]of Object.entries(De))Pt[e]={get(){let r=En(this,Os(t.open,t.close,this[Lt]),this[or]);return Object.defineProperty(this,e,{value:r}),r}};Pt.visible={get(){let e=En(this,this[Lt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ts=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?De[r].ansi16m(...n):t==="ansi256"?De[r].ansi256(De.rgbToAnsi256(...n)):De[r].ansi(De.rgbToAnsi(...n)):e==="hex"?Ts("rgb",t,r,...De.hexToRgb(...n)):De[r][e](...n),ZE=["rgb","hex","ansi256"];for(let e of ZE){Pt[e]={get(){let{level:r}=this;return function(...n){let i=Os(Ts(e,Ec[r],"color",...n),De.color.close,this[Lt]);return En(this,i,this[or])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Pt[t]={get(){let{level:r}=this;return function(...n){let i=Os(Ts(e,Ec[r],"bgColor",...n),De.bgColor.close,this[Lt]);return En(this,i,this[or])}}}}var zE=Object.defineProperties(()=>{},{...Pt,level:{enumerable:!0,get(){return this[Is].level},set(e){this[Is].level=e}}}),Os=(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}},En=(e,t,r)=>{let n=(...i)=>e0(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,zE),n[Is]=e,n[Lt]=t,n[or]=r,n},e0=(e,t)=>{if(e.level<=0||!t)return e[or]?"":t;let r=e[Lt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=YE(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
20
+ `);return s!==-1&&(t=WE(t,i,n,s)),n+t+i};Object.defineProperties(ar.prototype,Pt);var t0=ar(),ib=ar({level:_c?_c.level:0}),r0=t0,n0={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},i0={"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(" ")}`}},s0=(e,t,r)=>{let n={...n0,...t},i={...i0,...r},s=a=>{let u=process.platform,l=n[u];if(l)return l(a);let[f,...A]=a.split(" ");return{cmd:f,args:A}},o=(a=>{let u=Object.entries(i);for(let[l,f]of u)if(a.startsWith(l)){let A=process.platform,c=f[A];if(!c)break;let b=a.slice(l.length).trim().split(" ");return c(b)}return a})(e);return s(o)},o0=process.platform==="linux"||process.platform==="darwin",Ds=process.platform==="win32",a0={stdio:"pipe",shell:!0,detached:!Ds,env:process.env},u0={log:!0,commandTranslations:{},shellTranslations:{},...a0},Ee=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=u0)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let u=process.platform;s.posix&&o0&&(u="posix");let l=s[u];if(!l)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=l}let{cmd:o,args:a}=s0(s,r,t);return e&&console.log(r0.dim(`
21
21
  $ ${o} ${a.join(" ")}
22
- `)),await new Promise((u,f)=>{i=km(o,a,n);let l="",h="";if(!i)throw new Error("Child process was not set.");let c=E=>{i=null;let y={code:E,stdout:l,stderr:h};E===0||E===1&&!Ms?u(y):f(y)};i.stdout?.on("data",E=>{l+=E.toString()}),i.stderr?.on("data",E=>{h+=E.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(Ms)Fm(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{extname as iE,resolve as Ns}from"path";var kt=/\.[mc]?tsx?(?=\?|$)/;var pt=/\.([mc])?[tj]sx$/,gc=/\.([mc])?[tj]sx?$/,It={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},uy={".mts":{...It,loader:"ts"},".jsx":{...It,loader:"jsx"},".tsx":{...It,loader:"tsx"},".cts":{...It,loader:"ts"},".ts":{...It,loader:"ts"},".json":{...It,loader:"json"}},tE=Object.keys(uy);var Is=()=>{let e=process.cwd(),t=Ns(e,"src"),r=Ns(e,"dist");return{cwd:e,srcDir:t,outDir:r}},yn=e=>{e=Ns(e);let{srcDir:t,outDir:r}=Is();return e.replace(t,r).replace(kt,".js").replace(pt,".js")};var ly={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},ks=async()=>{let e=xe(ks),t=me({log:!1}),r=Object.entries(ly).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;e.log(`Calling: ${n}`),await t.run(`tsc -p tsconfig.json ${r}`)};import{readFile as fy}from"fs/promises";import{resolve as cy}from"path";var mc=async()=>{let e=process.cwd(),t=cy(e,"package.json");return await fy(t,"utf-8")};var xc=je(Hi(),1);import{existsSync as by}from"fs";import{writeFile as vy}from"fs/promises";import{isAbsolute as xy,resolve as Ey}from"path";import{existsSync as yc}from"fs";import{readFile as hy}from"fs/promises";import{dirname as py,normalize as dy,posix as bn,resolve as _y}from"path";var gy=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],my=async(e,t)=>{let r=py(dy(t)),n=vn(_y(r,e)),i=n.replace(bn.extname(n),"");for(let s of gy){let o=`${i}${s}`,a=`${i}/index${s}`;if(yc(o))return o;if(yc(a))return a}},vn=e=>e.replace(/\\/g,"/"),yy=(e,t)=>{e=vn(e),t=vn(t);let r=bn.relative(bn.dirname(e),t);return r.startsWith(".")?r:`./${r}`},Fs=async e=>{let t=xe(Fs);t.log("Getting rewritten specifiers:",{modulePath:e}),e=vn(e);let r=new RegExp(bc,"g"),n=await hy(e,"utf8"),i=n.match(r);if(t.log("Found import statements:",{importStatements:i}),i)for(let s of i){let o=new RegExp(vc),a=s.match(o);if(!a)throw t.log("No specifier match",{importStatement:s,specifierPattern:o}),new Error(`Could not identify specifier in import statement: ${s}`);let u=a[0];if(t.log("Found specifier:",{specifier:u}),!u.startsWith(".")||bn.extname(u))continue;let f=await my(u,e);if(!f)throw new Error(`Could not resolve specifier "${u}" from "${e}"`);t.log("Resolved specifier:",{resolvedSpecifier:f});let l=yy(e,f);t.log("Specifier replacement:",{specifierReplacement:l});let h=s.replace(u,l);t.log("Import statement replacement:",{importStatementReplacement:h}),n=n.replace(s,h)}return n};var wE=`(^|(?<=[
23
- \r;] *))(import) *({?)[^
24
- \r;]+(((from)[
25
- \r; *]+)|(["'][
26
- \r;]))`,AE=`(^|(?<=[
27
- \r;] *))(export) *({?)[^
28
- \r;]+(((from)[
29
- \r; *]+)|(["'][
30
- \r;]))`,bc=`(^|(?<=[
31
- \r;] *))(import|export) *({?)[^
32
- \r;]+(((from)[
33
- \r; *]+)|(["'][
34
- \r;]))`,vc=`(?<=["'])([^
35
- \r]+)(?=['"])`,qs=async(e="dist/**/*.js")=>{let t=xe(qs),n=xy(e)&&by(e)?[e]:xc.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=Ey(i),o=await Fs(s);t.log("Normalizing",{file:i,normalized:o}),await vy(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{readFileSync as Sy}from"fs";function Ry(e){return new Promise((t,r)=>{let n=[];function i(u){n.push(u)}function s(){a(),t(Buffer.concat(n))}function o(u){a(),r(u)}function a(){e.removeListener("data",i),e.removeListener("end",s),e.removeListener("error",o)}e.on("data",i),e.on("end",s),e.on("error",o)})}var js=async()=>{let e=xe(js);e.log("Reading stdin");try{let r=Sy(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return Ee(B.gray("Type your source code. Press Ctrl+D to finish.")),(await Ry(process.stdin)).toString()};var Dy=`import React from "react";
22
+ `)),await new Promise((u,l)=>{i=ME(o,a,n);let f="",A="";if(!i)throw new Error("Child process was not set.");let c=b=>{i=null;let E={code:b,stdout:f,stderr:A};b===0||b===1&&!Ds?u(E):l(E)};i.stdout?.on("data",b=>{f+=b.toString()}),i.stderr?.on("data",b=>{A+=b.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(Ds)FE(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{extname as lb,resolve as Ls}from"path";var Mt=/\.[mc]?tsx?(?=\?|$)/;var pt=/\.([mc])?[tj]sx$/,mc=/\.([mc])?[tj]sx?$/,Nt={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},l0={".mts":{...Nt,loader:"ts"},".jsx":{...Nt,loader:"jsx"},".tsx":{...Nt,loader:"tsx"},".cts":{...Nt,loader:"ts"},".ts":{...Nt,loader:"ts"},".json":{...Nt,loader:"json"}},ob=Object.keys(l0);var Ps=()=>{let e=process.cwd(),t=Ls(e,"src"),r=Ls(e,"dist");return{cwd:e,srcDir:t,outDir:r}},Ns=e=>{e=Ls(e);let{srcDir:t,outDir:r}=Ps();return e.replace(t,r).replace(Mt,".js").replace(pt,".js")};var f0={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},Ms=async()=>{let e=be(Ms),t=Ee({log:!1}),r=Object.entries(f0).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;e.log(`Calling: ${n}`),await t.run(`tsc -p tsconfig.json ${r}`)};import{readFile as c0}from"fs/promises";import{resolve as A0}from"path";var yc=async()=>{let e=process.cwd(),t=A0(e,"package.json");return await c0(t,"utf-8")};var bc=He(ji(),1);import{existsSync as v0}from"fs";import{writeFile as S0}from"fs/promises";import{isAbsolute as x0,resolve as B0}from"path";import{dirname as g0,normalize as _0,posix as mn,resolve as E0}from"path";import{existsSync as Cc}from"fs";import{readFile as m0}from"fs/promises";var h0=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function qs(e,t="@"){if(!U)return Hs.then(()=>qs(e));let r=e.length+1,n=(U.__heap_base.value||U.__heap_base)+4*r-U.memory.buffer.byteLength;n>0&&U.memory.grow(Math.ceil(n/65536));let i=U.sa(r-1);if((h0?d0:p0)(e,new Uint16Array(U.memory.buffer,i,r)),!U.parse())throw Object.assign(new Error(`Parse error ${t}:${e.slice(0,U.e()).split(`
23
+ `).length}:${U.e()-e.lastIndexOf(`
24
+ `,U.e()-1)}`),{idx:U.e()});let s=[],o=[];for(;U.ri();){let u=U.is(),l=U.ie(),f=U.ai(),A=U.id(),c=U.ss(),b=U.se(),E;U.ip()&&(E=a(e.slice(A===-1?u-1:u,A===-1?l+1:l))),s.push({n:E,s:u,e:l,ss:c,se:b,d:A,a:f})}for(;U.re();){let u=e.slice(U.es(),U.ee()),l=u[0];o.push(l==='"'||l==="'"?a(u):u)}function a(u){try{return(0,eval)(u)}catch{}}return[s,o,!!U.f()]}function p0(e,t){let r=e.length,n=0;for(;n<r;){let i=e.charCodeAt(n);t[n++]=(255&i)<<8|i>>>8}}function d0(e,t){let r=e.length,n=0;for(;n<r;)t[n]=e.charCodeAt(n++)}var U,Hs=WebAssembly.compile((Fs="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBEEAQQAoAtwJIgU2AsQJQQAgBDYCyAlBACAFQSBqNgLcCSAEQRxqQbQJIAQbIAU2AgBBACgCqAkhBEEAKAKkCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGGyAEIANGGzYCDCAFIAM2AhQgBUEANgIQIAUgAjYCBCAFQQA2AhwgBUEAKAKkCSADRjoAGAtIAQF/QQAoAswJIgJBCGpBuAkgAhtBACgC3AkiAjYCAEEAIAI2AswJQQAgAkEMajYC3AkgAkEANgIIIAIgATYCBCACIAA2AgALCABBACgC4AkLFQBBACgCvAkoAgBBACgCsAlrQQF1Cx4BAX9BACgCvAkoAgQiAEEAKAKwCWtBAXVBfyAAGwsVAEEAKAK8CSgCCEEAKAKwCWtBAXULHgEBf0EAKAK8CSgCDCIAQQAoArAJa0EBdUF/IAAbCx4BAX9BACgCvAkoAhAiAEEAKAKwCWtBAXVBfyAAGws7AQF/AkBBACgCvAkoAhQiAEEAKAKkCUcNAEF/DwsCQCAAQQAoAqgJRw0AQX4PCyAAQQAoArAJa0EBdQsLAEEAKAK8CS0AGAsVAEEAKALACSgCAEEAKAKwCWtBAXULFQBBACgCwAkoAgRBACgCsAlrQQF1CyUBAX9BAEEAKAK8CSIAQRxqQbQJIAAbKAIAIgA2ArwJIABBAEcLJQEBf0EAQQAoAsAJIgBBCGpBuAkgABsoAgAiADYCwAkgAEEARwsIAEEALQDkCQvnCwEGfyMAQYDaAGsiASQAQQBBAToA5AlBAEH//wM7AewJQQBBACgCrAk2AvAJQQBBACgCsAlBfmoiAjYCiApBACACQQAoAtQJQQF0aiIDNgKMCkEAQQA7AeYJQQBBADsB6AlBAEEAOwHqCUEAQQA6APQJQQBBADYC4AlBAEEAOgDQCUEAIAFBgNIAajYC+AlBACABQYASajYC/AlBACABNgKACkEAQQA6AIQKAkACQAJAAkADQEEAIAJBAmoiBDYCiAogAiADTw0BAkAgBC8BACIDQXdqQQVJDQACQAJAAkACQAJAIANBm39qDgUBCAgIAgALIANBIEYNBCADQS9GDQMgA0E7Rg0CDAcLQQAvAeoJDQEgBBARRQ0BIAJBBGpBgghBChAoDQEQEkEALQDkCQ0BQQBBACgCiAoiAjYC8AkMBwsgBBARRQ0AIAJBBGpBjAhBChAoDQAQEwtBAEEAKAKICjYC8AkMAQsCQCACLwEEIgRBKkYNACAEQS9HDQQQFAwBC0EBEBULQQAoAowKIQNBACgCiAohAgwACwtBACEDIAQhAkEALQDQCQ0CDAELQQAgAjYCiApBAEEAOgDkCQsDQEEAIAJBAmoiBDYCiAoCQAJAAkACQAJAAkAgAkEAKAKMCk8NACAELwEAIgNBd2pBBUkNBQJAAkACQAJAAkACQAJAAkACQAJAIANBYGoOCg8OCA4ODg4HAQIACwJAAkACQAJAIANBoH9qDgoIEREDEQERERECAAsgA0GFf2oOAwUQBgsLQQAvAeoJDQ8gBBARRQ0PIAJBBGpBgghBChAoDQ8QEgwPCyAEEBFFDQ4gAkEEakGMCEEKECgNDhATDA4LIAQQEUUNDSACKQAEQuyAhIOwjsA5Ug0NIAIvAQwiBEF3aiICQRdLDQtBASACdEGfgIAEcUUNCwwMC0EAQQAvAeoJIgJBAWo7AeoJQQAoAvwJIAJBAnRqQQAoAvAJNgIADAwLQQAvAeoJIgNFDQhBACADQX9qIgU7AeoJQQAvAegJIgNFDQsgA0ECdEEAKAKACmpBfGooAgAiBigCFEEAKAL8CSAFQf//A3FBAnRqKAIARw0LAkAgBigCBA0AIAYgBDYCBAtBACADQX9qOwHoCSAGIAJBBGo2AgwMCwsCQEEAKALwCSIELwEAQSlHDQBBACgCxAkiAkUNACACKAIEIARHDQBBAEEAKALICSICNgLECQJAIAJFDQAgAkEANgIcDAELQQBBADYCtAkLIAFBgBBqQQAvAeoJIgJqQQAtAIQKOgAAQQAgAkEBajsB6glBACgC/AkgAkECdGogBDYCAEEAQQA6AIQKDAoLQQAvAeoJIgJFDQZBACACQX9qIgM7AeoJIAJBAC8B7AkiBEcNAUEAQQAvAeYJQX9qIgI7AeYJQQBBACgC+AkgAkH//wNxQQF0ai8BADsB7AkLEBYMCAsgBEH//wNGDQcgA0H//wNxIARJDQQMBwtBJxAXDAYLQSIQFwwFCyADQS9HDQQCQAJAIAIvAQQiAkEqRg0AIAJBL0cNARAUDAcLQQEQFQwGCwJAAkACQAJAQQAoAvAJIgQvAQAiAhAYRQ0AAkACQAJAIAJBVWoOBAEFAgAFCyAEQX5qLwEAQVBqQf//A3FBCkkNAwwECyAEQX5qLwEAQStGDQIMAwsgBEF+ai8BAEEtRg0BDAILAkAgAkH9AEYNACACQSlHDQFBACgC/AlBAC8B6glBAnRqKAIAEBlFDQEMAgtBACgC/AlBAC8B6gkiA0ECdGooAgAQGg0BIAFBgBBqIANqLQAADQELIAQQGw0AIAJFDQBBASEEIAJBL0ZBAC0A9AlBAEdxRQ0BCxAcQQAhBAtBACAEOgD0CQwEC0EALwHsCUH//wNGQQAvAeoJRXFBAC0A0AlFcUEALwHoCUVxIQMMBgsQHUEAIQMMBQsgBEGgAUcNAQtBAEEBOgCECgtBAEEAKAKICjYC8AkLQQAoAogKIQIMAAsLIAFBgNoAaiQAIAMLHQACQEEAKAKwCSAARw0AQQEPCyAAQX5qLwEAEB4LpgYBBH9BAEEAKAKICiIAQQxqIgE2AogKQQEQISECAkACQAJAAkACQEEAKAKICiIDIAFHDQAgAhAlRQ0BCwJAAkACQAJAAkAgAkGff2oODAYBAwgBBwEBAQEBBAALAkACQCACQSpGDQAgAkH2AEYNBSACQfsARw0CQQAgA0ECajYCiApBARAhIQNBACgCiAohAQNAAkACQCADQf//A3EiAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQIMAQsgAhAXQQBBACgCiApBAmoiAjYCiAoLQQEQIRoCQCABIAIQJiIDQSxHDQBBAEEAKAKICkECajYCiApBARAhIQMLQQAoAogKIQICQCADQf0ARg0AIAIgAUYNBSACIQEgAkEAKAKMCk0NAQwFCwtBACACQQJqNgKICgwBC0EAIANBAmo2AogKQQEQIRpBACgCiAoiAiACECYaC0EBECEhAgtBACgCiAohAwJAIAJB5gBHDQAgA0ECakGeCEEGECgNAEEAIANBCGo2AogKIABBARAhECIPC0EAIANBfmo2AogKDAMLEB0PCwJAIAMpAAJC7ICEg7COwDlSDQAgAy8BChAeRQ0AQQAgA0EKajYCiApBARAhIQJBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LQQAgA0EEaiIDNgKICgtBACADQQRqIgI2AogKQQBBADoA5AkDQEEAIAJBAmo2AogKQQEQISEDQQAoAogKIQICQCADECRBIHJB+wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiAoPCyACEBdBAEEAKAKICkECaiICNgKICgJAAkACQEEBECFBV2oOBAECAgACC0EAQQAoAogKQQJqNgKICkEBECEaQQAoAsQJIgEgAjYCBCABQQE6ABggAUEAKAKICiICNgIQQQAgAkF+ajYCiAoPC0EAKALECSIBIAI2AgQgAUEBOgAYQQBBAC8B6glBf2o7AeoJIAFBACgCiApBAmo2AgxBAEEALwHoCUF/ajsB6AkPC0EAQQAoAogKQX5qNgKICg8LC0cBA39BACgCiApBAmohAEEAKAKMCiEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2AogKC5gBAQN/QQBBACgCiAoiAUECajYCiAogAUEGaiEBQQAoAowKIQIDQAJAAkACQCABQXxqIAJPDQAgAUF+ai8BACEDAkACQCAADQAgA0EqRg0BIANBdmoOBAIEBAIECyADQSpHDQMLIAEvAQBBL0cNAkEAIAFBfmo2AogKDAELIAFBfmohAQtBACABNgKICg8LIAFBAmohAQwACwu/AQEEf0EAKAKICiEAQQAoAowKIQECQAJAA0AgACICQQJqIQAgAiABTw0BAkACQCAALwEAIgNBpH9qDgUBAgICBAALIANBJEcNASACLwEEQfsARw0BQQBBAC8B5gkiAEEBajsB5glBACgC+AkgAEEBdGpBAC8B7Ak7AQBBACACQQRqNgKICkEAQQAvAeoJQQFqIgA7AewJQQAgADsB6gkPCyACQQRqIQAMAAsLQQAgADYCiAoQHQ8LQQAgADYCiAoLiAEBBH9BACgCiAohAUEAKAKMCiECAkACQANAIAEiA0ECaiEBIAMgAk8NASABLwEAIgQgAEYNAgJAIARB3ABGDQAgBEF2ag4EAgEBAgELIANBBGohASADLwEEQQ1HDQAgA0EGaiABIAMvAQZBCkYbIQEMAAsLQQAgATYCiAoQHQ8LQQAgATYCiAoLbAEBfwJAAkAgAEFfaiIBQQVLDQBBASABdEExcQ0BCyAAQUZqQf//A3FBBkkNACAAQSlHIABBWGpB//8DcUEHSXENAAJAIABBpX9qDgQBAAABAAsgAEH9AEcgAEGFf2pB//8DcUEESXEPC0EBCy4BAX9BASEBAkAgAEH2CEEFEB8NACAAQYAJQQMQHw0AIABBhglBAhAfIQELIAELgwEBAn9BASEBAkACQAJAAkACQAJAIAAvAQAiAkFFag4EBQQEAQALAkAgAkGbf2oOBAMEBAIACyACQSlGDQQgAkH5AEcNAyAAQX5qQZIJQQYQHw8LIABBfmovAQBBPUYPCyAAQX5qQYoJQQQQHw8LIABBfmpBnglBAxAfDwtBACEBCyABC5MDAQJ/QQAhAQJAAkACQAJAAkACQAJAAkACQCAALwEAQZx/ag4UAAECCAgICAgICAMECAgFCAYICAcICwJAAkAgAEF+ai8BAEGXf2oOBAAJCQEJCyAAQXxqQa4IQQIQHw8LIABBfGpBsghBAxAfDwsCQAJAIABBfmovAQBBjX9qDgIAAQgLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQggAEF6akHlABAgDwsgAEF6akHjABAgDwsgAEF8akG4CEEEEB8PCyAAQX5qLwEAQe8ARw0FIABBfGovAQBB5QBHDQUCQCAAQXpqLwEAIgJB8ABGDQAgAkHjAEcNBiAAQXhqQcAIQQYQHw8LIABBeGpBzAhBAhAfDwtBASEBIABBfmoiAEHpABAgDQQgAEHQCEEFEB8PCyAAQX5qQeQAECAPCyAAQX5qQdoIQQcQHw8LIABBfmpB6AhBBBAfDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AECAPCyAAQXxqQfAIQQMQHyEBCyABC3ABAn8CQAJAA0BBAEEAKAKICiIAQQJqIgE2AogKIABBACgCjApPDQECQAJAAkAgAS8BACIBQaV/ag4CAQIACwJAIAFBdmoOBAQDAwQACyABQS9HDQIMBAsQJxoMAQtBACAAQQRqNgKICgwACwsQHQsLNQEBf0EAQQE6ANAJQQAoAogKIQBBAEEAKAKMCkECajYCiApBACAAQQAoArAJa0EBdTYC4AkLNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQJXEhAQsgAQtJAQN/QQAhAwJAIAAgAkEBdCICayIEQQJqIgBBACgCsAkiBUkNACAAIAEgAhAoDQACQCAAIAVHDQBBAQ8LIAQvAQAQHiEDCyADCz0BAn9BACECAkBBACgCsAkiAyAASw0AIAAvAQAgAUcNAAJAIAMgAEcNAEEBDwsgAEF+ai8BABAeIQILIAILnAEBA39BACgCiAohAQJAA0ACQAJAIAEvAQAiAkEvRw0AAkAgAS8BAiIBQSpGDQAgAUEvRw0EEBQMAgsgABAVDAELAkACQCAARQ0AIAJBd2oiAUEXSw0BQQEgAXRBn4CABHFFDQEMAgsgAhAjRQ0DDAELIAJBoAFHDQILQQBBACgCiAoiA0ECaiIBNgKICiADQQAoAowKSQ0ACwsgAgvCAwEBfwJAIAFBIkYNACABQSdGDQAQHQ8LQQAoAogKIQIgARAXIAAgAkECakEAKAKICkEAKAKkCRABQQBBACgCiApBAmo2AogKQQAQISEAQQAoAogKIQECQAJAIABB4QBHDQAgAUECakGkCEEKEChFDQELQQAgAUF+ajYCiAoPC0EAIAFBDGo2AogKAkBBARAhQfsARg0AQQAgATYCiAoPC0EAKAKICiICIQADQEEAIABBAmo2AogKAkACQAJAQQEQISIAQSJGDQAgAEEnRw0BQScQF0EAQQAoAogKQQJqNgKICkEBECEhAAwCC0EiEBdBAEEAKAKICkECajYCiApBARAhIQAMAQsgABAkIQALAkAgAEE6Rg0AQQAgATYCiAoPC0EAQQAoAogKQQJqNgKICgJAQQEQISIAQSJGDQAgAEEnRg0AQQAgATYCiAoPCyAAEBdBAEEAKAKICkECajYCiAoCQAJAQQEQISIAQSxGDQAgAEH9AEYNAUEAIAE2AogKDwtBAEEAKAKICkECajYCiApBARAhQf0ARg0AQQAoAogKIQAMAQsLQQAoAsQJIgEgAjYCECABQQAoAogKQQJqNgIMCzABAX8CQAJAIABBd2oiAUEXSw0AQQEgAXRBjYCABHENAQsgAEGgAUYNAEEADwtBAQttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAlDQJBACECQQBBACgCiAoiAEECajYCiAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC4sBAQJ/AkBBACgCiAoiAi8BACIDQeEARw0AQQAgAkEEajYCiApBARAhIQJBACgCiAohAAJAAkAgAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQEMAQsgAhAXQQBBACgCiApBAmoiATYCiAoLQQEQISEDQQAoAogKIQILAkAgAiAARg0AIAAgARACCyADC3IBBH9BACgCiAohAEEAKAKMCiEBAkACQANAIABBAmohAiAAIAFPDQECQAJAIAIvAQAiA0Gkf2oOAgEEAAsgAiEAIANBdmoOBAIBAQIBCyAAQQRqIQAMAAsLQQAgAjYCiAoQHUEADwtBACACNgKICkHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCAQIAQYAIC6QBAAB4AHAAbwByAHQAbQBwAG8AcgB0AGUAdABhAGYAcgBvAG0AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGkAbgBzAHQAYQBuAHQAeQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA",typeof Buffer<"u"?Buffer.from(Fs,"base64"):Uint8Array.from(atob(Fs),e=>e.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:e})=>{U=e}),Fs;await Hs;var y0=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],C0=async(e,t)=>{let r=g0(_0(t)),n=yn(E0(r,e)),i=n.replace(mn.extname(n),"");for(let s of y0){let o=`${i}${s}`,a=`${i}/index${s}`;if(Cc(o))return o;if(Cc(a))return a}},yn=e=>e.replace(/\\/g,"/"),b0=(e,t)=>{e=yn(e),t=yn(t);let r=mn.relative(mn.dirname(e),t);return r.startsWith(".")?r:`./${r}`},js=async e=>{let t=be(js);t.log("Getting rewritten specifiers:",{modulePath:e}),e=yn(e);let r=await m0(e,"utf8"),[n]=await qs(r),i=n.filter(o=>typeof o.n<"u");t.log("Found import statements:",{namedImportExportSpecifiers:i});let s=r.slice(0);for(let o of i){let a=o.n;t.log("Found specifier:",{specifier:a});let u=r.substring(o.ss,o.se);if(!a)throw new Error(`Could not find specifier in import statement: "${u}"`);if(!a.startsWith(".")||mn.extname(a))continue;let l=await C0(a,e);if(!l)throw new Error(`Could not resolve specifier "${a}" from "${e}"`);t.log("Resolved specifier:",{resolvedSpecifier:l});let f=b0(e,l);t.log("Specifier replacement:",{specifierReplacement:f});let A=u.replace(a,f);t.log("Replacing import statement:",{specifier:a,importStatement:u,importStatementReplacement:A}),s=s.replace(u,A)}return s};var $s=async(e="dist/**/*.js")=>{let t=be($s),n=x0(e)&&v0(e)?[e]:bc.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=B0(i),o=await js(s);t.log("Normalizing",{file:i,normalized:o}),await S0(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{readFileSync as w0}from"fs";function R0(e){return new Promise((t,r)=>{let n=[];function i(u){n.push(u)}function s(){a(),t(Buffer.concat(n))}function o(u){a(),r(u)}function a(){e.removeListener("data",i),e.removeListener("end",s),e.removeListener("error",o)}e.on("data",i),e.on("end",s),e.on("error",o)})}var Gs=async()=>{let e=be(Gs);e.log("Reading stdin");try{let r=w0(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return ve(O.gray("Type your source code. Press Ctrl+D to finish.")),(await R0(process.stdin)).toString()};var N0=`import React from "react";
36
25
  import ReactDOM from "react-dom";
37
- `,Rc=e=>{let t=` ${e} `;Ee(B.bgBlue(B.bold(B.white(t))))},My=async()=>{let e;if(Tc("dist/package.json")?e=JSON.parse(await Us("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await Cc("dist/package.json",JSON.stringify(e,null,2))},wc=(e,t,r)=>{t=xn(t);let n=yn(t);return{stdin:{contents:e,sourcefile:t,resolveDir:Oc(t),loader:r},outdir:void 0,outfile:n}},Ac=async(e,t,r,n)=>{e=xn(e),t=xn(t);let i="npx tailwindcss",s=r?"":"-m",o="--postcss postcss.config.js",a=await Us(e,"utf-8"),f=n?a:`@import "@tsmodule/react";
38
-
39
- ${a}`,l=yn(e);await Cc(l,f);let h=[i,s,o,`-i ${l}`,"-o",t],c=me({log:!1,stdio:"ignore"}),{code:E,stderr:y}=await c.run(h.join(" "));if(E!==0)throw new Error(`Error building CSS bundle: ${y}`)},By=`
26
+ `,xc=e=>{let t=` ${e} `;ve(O.bgBlue(O.bold(O.white(t))))},M0=async()=>{let e;if(Rc("dist/package.json")?e=JSON.parse(await Qc("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await O0("dist/package.json",JSON.stringify(e,null,2))},Bc=(e,t,r)=>{t=Cn(t);let n=Ns(t);return{stdin:{contents:e,sourcefile:t,resolveDir:Ic(t),loader:r},outdir:void 0,outfile:n}},wc=async(e,t,r)=>{e=Cn(e),t=Cn(t);let o=["npx tailwindcss",r?"":"-m","--postcss postcss.config.js",`-i ${e}`,"-o",t],a=Ee({log:!1,stdio:"ignore"}),u=o.join(" "),{code:l,stdout:f,stderr:A}=await a.run(u);if(l!==0)throw new Error(`Building CSS bundle exited with code ${l} for ${e}.
27
+ \rTried running: ${u}.
28
+ \rError: ${f+A}`)},F0=`
40
29
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
41
- `,En=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=n,noWrite:o=!1,noStandardStyles:a=!1,stdin:u=void 0,stdinFile:f=void 0})=>{Sc.NODE_ENV=n?"development":"production";let l=xe(En);n&&(s=!0);let{cwd:h,srcDir:c,outDir:E}=Is(),y=await mc(),m=JSON.parse(y),S={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={...S,bundle:i,absWorkingDir:h,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:m?.platform??"node",write:!o,external:i?["esbuild"]:void 0,banner:i?{js:By}:void 0},D="";if(u){l.log("Building file from stdin",{stdin:u,stdinFile:f,noWrite:o}),f||(Ee(B.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof u=="string"&&u.length?D=u:D=await js();let R={...S,sourcefile:f,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await Ly(D,R)).code;{let p=wc(D,f,"tsx");await $s({...x,...p}),Ee(B.green("Successfully built stdin file to dist/.")),Ee(B.grey("Use --no-write to print to stdout instead."));return}}l.log("Building",{files:e,dev:n,runtimeOnly:s}),Rc(`${B.bold("TS Module")} [${Sc.NODE_ENV}]`);let N=Hs.default.sync(e,{cwd:h}).filter(R=>Cy(R)!==".d.ts").map(R=>xn(R));if(Oy(e)){N.length||N.push(e);let R=e.replace(c,E).replace(kt,".js").replace(pt,".js");l.log("Cleaning emitted file:",{outfile:R}),await Ec(R,{force:!0})}else l.log("Cleaning old output:",{outDir:E}),await Ec(E,{force:!0,recursive:!0});let Z=N.filter(R=>pt.test(R));l.log("Compiling TSX files:",{tsxJsxInput:Z});let C=Z.filter(R=>!R.endsWith(".d.ts"));await Promise.all(C.map(async R=>{let p=await Us(R,"utf-8"),j=Dy+p,q=wc(j,R,"tsx");await $s({...x,...q})})),fe("Built TSX files.").succeed();let $=N.filter(R=>kt.test(R)).filter(R=>!pt.test(R));l.log("Compiling TS files:",{tsJsInput:$}),await $s({...x,entryPoints:$.filter(R=>!R.endsWith(".d.ts"))}),fe("Built TS files.").succeed();let O=N.filter(R=>!gc.test(R));l.log("Copying non-JS/TS files.",{allFiles:N,nonTsJsInput:O});for(let R of O){let p=yn(R);l.log("Copying non-source file:",{file:R,emittedFile:p}),await Ty(Oc(p),{recursive:!0}),await Ay(R,p,wy.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let R=e.replace(c,E).replace(/^(\.\/)?src\//,"dist/").replace(kt,".js").replace(pt,".js");l.log("Normalizing import specifiers in emitted JS.",{emittedJs:R}),await qs(R.endsWith(".js")?R:`${R}.js`),fe("Normalized import specifiers.").succeed()}if(await My()&&fe('Forced "type": "module" in output.').succeed(),s)return;if(Tc(Py(t))){l.log("Building styles for production.");let{style:R="./dist/bundle.css"}=m;if(l.log("Building style bundle.",{bundleInput:t,bundleOutput:R,dev:n,noStandardStyles:a}),await Ac(t,R,n,a),i){l.log("Bundling all styles.");let p=Hs.default.sync("dist/**/*.css"),j=fe("Bundled emitted styles.").start();await Promise.all(p.map(async q=>await Ac(q,q,n,a))),j.succeed()}fe(`Bundled all styles to ${B.bold(R)}.`).succeed()}else Ee(B.grey("Bundle styles not found for this projected. Checked:"),{styles:t});Rc("Running post-build setup.");let F=fe("Generating type declarations.").start();await ks(),F.succeed(`Generated delcarations for ${N.length} files.`),Ee(B.green("Build complete."))};import{dirname as Ny,resolve as Iy}from"path";import{fileURLToPath as ky}from"url";var Pc={default:[],react:["@tsmodule/react","react","react-dom"]},Gs={default:["@types/node","@typescript-eslint/eslint-plugin"],react:["next","@types/node","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},Sn=Iy(Ny(ky(import.meta.url)),"..");import{mkdir as Fy}from"fs/promises";import{resolve as Lc}from"path";var Ws=async(e,t)=>{let r=me(),n=Lc(Sn,`./templates/${e}`),i=Lc(t);await Fy(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};import Dc from"fs/promises";import{resolve as qy}from"path";var Mc=async e=>{let t=qy(process.cwd(),e,"package.json"),r=await Dc.readFile(t,"utf-8"),n=JSON.parse(r);n.name=e,await Dc.writeFile(t,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var _S=async(e,{react:t=!1})=>{let r=me(),n=fe(`Creating new module ${B.blueBright(e)}.`).start();await Ws("default",e),t&&await Ws("react",e),await Mc(e),n.succeed("Project created."),process.chdir(e);let i=[],s=["@tsmodule/tsmodule"];t?(i.push(...Pc.react),s.push(...Gs.react)):s.push(...Gs.default),i.length&&await r.run(`yarn add ${i.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Set up as Git repository.")};import{relative as eb,resolve as tb}from"path";import{existsSync as rb}from"fs";import{lstat as nb}from"fs/promises";var eh=je(Xc(),1);var Zc=()=>{console.clear()},zc=e=>{Ee(`
42
- `,B.gray(`Built ${B.bold(e)}.`),`
43
- `,B.blue(new Date().toLocaleString()))},CS=async()=>{let e=process.cwd(),t=me();process.platform!=="win32"&&await t.run("clear"),Zc(),await En({dev:!0}),zc("src/**/*"),(0,eh.default)(tb(e,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!rb(n)||(await nb(n)).isDirectory())return;Zc();let a=Date.now();await En({dev:!0,input:n});let u=Date.now()-a;fe(B.blueBright(`Dev refresh finished in ${B.bold(`${u}ms`)}.`)).succeed(),zc(eb(e,n))})};import{pathToFileURL as ib}from"url";import{resolve as sb}from"path";var BS=async()=>{let e=sb(Sn,"dist/loader/index.js"),t=["--no-warnings","--loader",ib(e).href,...process.argv.slice(2)];await me().run(`node ${t.join(" ")}`)};export{AE as EXPORT_STATEMENT,bc as IMPORT_OR_EXPORT_STATEMENT,vc as IMPORT_SPECIFIER_IN_CLAUSE,wE as IMPORT_STATEMENT,Rc as bannerLog,En as build,_S as create,CS as dev,BS as execute,qs as normalizeImportSpecifiers};
30
+ `,bn=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=n,noWrite:o=!1,stdin:a=void 0,stdinFile:u=void 0})=>{Sc.NODE_ENV=n?"development":"production";let l=be(bn);n&&(s=!0);let{cwd:f,srcDir:A,outDir:c}=Ps(),b=await yc(),E=JSON.parse(b),_={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")}},v=["esbuild","*.png"],C={..._,bundle:i,absWorkingDir:f,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:E?.platform??"node",write:!o,external:i?v:void 0,banner:i?{js:F0}:void 0},D="";if(a){l.log("Building file from stdin",{stdin:a,stdinFile:u,noWrite:o}),u||(ve(O.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof a=="string"&&a.length?D=a:D=await Gs();let S={..._,sourcefile:u,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await P0(D,S)).code;{let h=Bc(D,u,"tsx");await Us({...C,...h}),ve(O.green("Successfully built stdin file to dist/.")),ve(O.grey("Use --no-write to print to stdout instead."));return}}l.log("Building",{files:e,dev:n,runtimeOnly:s}),xc(`${O.bold("TS Module")} [${Sc.NODE_ENV}]`);let L=Ks.default.sync(e,{cwd:f}).filter(S=>D0(S)!==".d.ts").map(S=>Cn(S));if(k0(e)){L.length||L.push(e);let S=e.replace(A,c).replace(Mt,".js").replace(pt,".js");l.log("Cleaning emitted file:",{outfile:S}),await vc(S,{force:!0})}else l.log("Cleaning old output:",{outDir:c}),await vc(c,{force:!0,recursive:!0});let z=L.filter(S=>pt.test(S));l.log("Compiling TSX files:",{tsxJsxInput:z});let R=z.filter(S=>!S.endsWith(".d.ts"));await Promise.all(R.map(async S=>{let h=await Qc(S,"utf-8"),q=N0+h,F=Bc(q,S,"tsx");await Us({...C,...F})})),ge("Built TSX files.").succeed();let H=L.filter(S=>Mt.test(S)).filter(S=>!pt.test(S));l.log("Compiling TS files:",{tsJsInput:H}),await Us({...C,entryPoints:H.filter(S=>!S.endsWith(".d.ts"))}),ge("Built TS files.").succeed();let Q=L.filter(S=>!mc.test(S));l.log("Copying non-JS/TS files.",{allFiles:L,nonTsJsInput:Q});for(let S of Q){let h=Ns(S);l.log("Copying non-source file:",{file:S,emittedFile:h}),await T0(Ic(h),{recursive:!0}),await I0(S,h,Q0.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let S=e.replace(A,c).replace(/^(\.\/)?src\//,"dist/").replace(Mt,".js").replace(pt,".js");l.log("Normalizing import specifiers in emitted JS.",{emittedJs:S}),await $s(S.endsWith(".js")?S:`${S}.js`),ge("Normalized import specifiers.").succeed()}if(await M0()&&ge('Forced "type": "module" in output.').succeed(),s)return;if(Rc(L0(t))){l.log("Building styles for production.");let{style:S="./dist/bundle.css"}=E;if(l.log("Building style bundle.",{bundleInput:t,bundleOutput:S,dev:n}),await wc(t,S,n),i){l.log("Bundling all styles.");let h=Ks.default.sync("dist/**/*.css"),q=ge("Bundling emitted styles.").start();await Promise.all(h.map(async F=>await wc(F,F,n))),q.succeed(`Bundled all styles to ${O.bold(S)}.`)}}else ve(O.grey(`Bundle styles not found for this project.
31
+ \rChecked: `+O.bold(t)));xc("Running post-build setup.");let M=ge("Generating type declarations.").start();await Ms(),M.succeed(`Generated delcarations for ${L.length} files.`),ve(O.green("Build complete."))};import{dirname as q0,resolve as H0}from"path";import{fileURLToPath as j0}from"url";var Tc={default:[],react:["@tsmodule/react","react","react-dom"]},Js={default:["@types/node","@typescript-eslint/eslint-plugin"],react:["next","@types/node","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},vn=H0(q0(j0(import.meta.url)),"..");import{mkdir as $0}from"fs/promises";import{resolve as Oc}from"path";var Ys=async(e,t)=>{let r=Ee(),n=Oc(vn,`./templates/${e}`),i=Oc(t);await $0(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};import Dc from"fs/promises";import{resolve as G0}from"path";var kc=async e=>{let t=G0(process.cwd(),e,"package.json"),r=await Dc.readFile(t,"utf-8"),n=JSON.parse(r);n.name=e,await Dc.writeFile(t,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var mv=async(e,{react:t=!1})=>{let r=Ee(),n=ge(`Creating new module ${O.blueBright(e)}.`).start();await Ys("default",e),t&&await Ys("react",e),await kc(e),n.succeed("Project created."),process.chdir(e);let i=[],s=["@tsmodule/tsmodule"];t?(i.push(...Tc.react),s.push(...Js.react)):s.push(...Js.default),i.length&&await r.run(`yarn add ${i.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Set up as Git repository.")};import{relative as sm,resolve as om}from"path";import{existsSync as am}from"fs";import{lstat as um}from"fs/promises";var tA=He(Zc(),1);var zc=()=>{console.clear()},eA=e=>{ve(`
32
+ `,O.gray(`Built ${O.bold(e)}.`),`
33
+ `,O.blue(new Date().toLocaleString()))},Ov=async()=>{let e=process.cwd(),t=Ee();process.platform!=="win32"&&await t.run("clear"),zc(),await bn({dev:!0}),eA("src/**/*"),(0,tA.default)(om(e,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!am(n)||(await um(n)).isDirectory())return;zc();let a=Date.now();await bn({dev:!0,input:n});let u=Date.now()-a;ge(O.blueBright(`Dev refresh finished in ${O.bold(`${u}ms`)}.`)).succeed(),eA(sm(e,n))})};import{pathToFileURL as lm}from"url";import{resolve as fm}from"path";var Mv=async()=>{let e=fm(vn,"dist/loader/index.js"),t=["--no-warnings","--loader",lm(e).href,...process.argv.slice(2)];await Ee().run(`node ${t.join(" ")}`)};export{xc as bannerLog,bn as build,mv as create,Ov as dev,Mv as execute,$s as normalizeImportSpecifiers};
44
34
  /*!
45
35
  * fill-range <https://github.com/jonschlinkert/fill-range>
46
36
  *