@socketsecurity/sdk 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [3.0.5](https://github.com/SocketDev/socket-lib/releases/tag/v3.0.5) - 2025-10-24
8
+
9
+ ### Fixed
10
+
11
+ - Cleanup package.json files entries
12
+
7
13
  ## [3.0.4](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.0.4) - 2025-10-24
8
14
 
9
15
  ### Fixed
package/dist/index.mjs CHANGED
@@ -38,7 +38,7 @@ globstar while`,I,ge,M,X,ce),this.matchOne(I.slice(ge),M.slice(X),te))return thi
38
38
  `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),Vv=_e((e,t)=>{"use strict";var s=yn(),{MAX_LENGTH:i,CHAR_BACKSLASH:r,CHAR_BACKTICK:o,CHAR_COMMA:l,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:n,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:f,CHAR_DOUBLE_QUOTE:d,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=Xv(),S=ee((b,w={})=>{if(typeof b!="string")throw new TypeError("Expected a string");let E=w||{},O=typeof E.maxLength=="number"?Math.min(i,E.maxLength):i;if(b.length>O)throw new SyntaxError(`Input length (${b.length}), exceeds max characters (${O})`);let R={type:"root",input:b,nodes:[]},x=[R],P=R,j=R,q=0,L=b.length,G=0,D=0,N,W=ee(()=>b[G++],"advance"),$=ee(U=>{if(U.type==="text"&&j.type==="dot"&&(j.type="text"),j&&j.type==="text"&&U.type==="text"){j.value+=U.value;return}return P.nodes.push(U),U.parent=P,U.prev=j,j=U,U},"push");for($({type:"bos"});G<L;)if(P=x[x.length-1],N=W(),!(N===y||N===m)){if(N===r){$({type:"text",value:(w.keepEscaping?N:"")+W()});continue}if(N===f){$({type:"text",value:"\\"+N});continue}if(N===p){q++;let U;for(;G<L&&(U=W());){if(N+=U,U===p){q++;continue}if(U===r){N+=W();continue}if(U===f&&(q--,q===0))break}$({type:"text",value:N});continue}if(N===n){P=$({type:"paren",nodes:[]}),x.push(P),$({type:"text",value:N});continue}if(N===c){if(P.type!=="paren"){$({type:"text",value:N});continue}P=x.pop(),$({type:"text",value:N}),P=x[x.length-1];continue}if(N===d||N===g||N===o){let U=N,F;for(w.keepQuotes!==!0&&(N="");G<L&&(F=W());){if(F===r){N+=F+W();continue}if(F===U){w.keepQuotes===!0&&(N+=F);break}N+=F}$({type:"text",value:N});continue}if(N===u){D++;let U={type:"brace",open:!0,close:!1,dollar:j.value&&j.value.slice(-1)==="$"||P.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]};P=$(U),x.push(P),$({type:"open",value:N});continue}if(N===h){if(P.type!=="brace"){$({type:"text",value:N});continue}let U="close";P=x.pop(),P.close=!0,$({type:U,value:N}),D--,P=x[x.length-1];continue}if(N===l&&D>0){if(P.ranges>0){P.ranges=0;let U=P.nodes.shift();P.nodes=[U,{type:"text",value:s(P)}]}$({type:"comma",value:N}),P.commas++;continue}if(N===a&&D>0&&P.commas===0){let U=P.nodes;if(D===0||U.length===0){$({type:"text",value:N});continue}if(j.type==="dot"){if(P.range=[],j.value+=N,j.type="range",P.nodes.length!==3&&P.nodes.length!==5){P.invalid=!0,P.ranges=0,j.type="text";continue}P.ranges++,P.args=[];continue}if(j.type==="range"){U.pop();let F=U[U.length-1];F.value+=j.value+N,j=F,P.ranges--;continue}$({type:"dot",value:N});continue}$({type:"text",value:N})}do if(P=x.pop(),P.type!=="root"){P.nodes.forEach(V=>{V.nodes||(V.type==="open"&&(V.isOpen=!0),V.type==="close"&&(V.isClose=!0),V.nodes||(V.type="text"),V.invalid=!0)});let U=x[x.length-1],F=U.nodes.indexOf(P);U.nodes.splice(F,1,...P.nodes)}while(x.length>0);return $({type:"eos"}),R},"parse");t.exports=S}),Yv=_e((e,t)=>{"use strict";var s=yn(),i=zv(),r=Kv(),o=Vv(),l=ee((a,n={})=>{let c=[];if(Array.isArray(a))for(let u of a){let h=l.create(u,n);Array.isArray(h)?c.push(...h):c.push(h)}else c=[].concat(l.create(a,n));return n&&n.expand===!0&&n.nodupes===!0&&(c=[...new Set(c)]),c},"braces");l.parse=(a,n={})=>o(a,n),l.stringify=(a,n={})=>s(typeof a=="string"?l.parse(a,n):a,n),l.compile=(a,n={})=>(typeof a=="string"&&(a=l.parse(a,n)),i(a,n)),l.expand=(a,n={})=>{typeof a=="string"&&(a=l.parse(a,n));let c=r(a,n);return n.noempty===!0&&(c=c.filter(Boolean)),n.nodupes===!0&&(c=[...new Set(c)]),c},l.create=(a,n={})=>a===""||a.length<3?[a]:n.expand!==!0?l.compile(a,n):l.expand(a,n),t.exports=l}),gs=_e((e,t)=>{"use strict";var s=le("path"),i="\\\\/",r=`[^${i}]`,o="\\.",l="\\+",a="\\?",n="\\/",c="(?=.)",u="[^/]",h=`(?:${n}|$)`,p=`(?:^|${n})`,f=`${o}{1,2}${h}`,d=`(?!${o})`,g=`(?!${p}${f})`,m=`(?!${o}{0,1}${h})`,y=`(?!${f})`,S=`[^.${n}]`,b=`${u}*?`,w={DOT_LITERAL:o,PLUS_LITERAL:l,QMARK_LITERAL:a,SLASH_LITERAL:n,ONE_CHAR:c,QMARK:u,END_ANCHOR:h,DOTS_SLASH:f,NO_DOT:d,NO_DOTS:g,NO_DOT_SLASH:m,NO_DOTS_SLASH:y,QMARK_NO_DOT:S,STAR:b,START_ANCHOR:p},E={...w,SLASH_LITERAL:`[${i}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},O={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:O,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:s.sep,extglobChars(R){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${R.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(R){return R===!0?E:w}}}),ms=_e(e=>{"use strict";var t=le("path"),s=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:l}=gs();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>o.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(l,"\\$1"),e.toPosixSlashes=a=>a.replace(i,"/"),e.removeBackslashes=a=>a.replace(r,n=>n==="\\"?"":n),e.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:s===!0||t.sep==="\\",e.escapeLast=(a,n,c)=>{let u=a.lastIndexOf(n,c);return u===-1?a:a[u-1]==="\\"?e.escapeLast(a,n,u-1):`${a.slice(0,u)}\\${a.slice(u)}`},e.removePrefix=(a,n={})=>{let c=a;return c.startsWith("./")&&(c=c.slice(2),n.prefix="./"),c},e.wrapOutput=(a,n={},c={})=>{let u=c.contains?"":"^",h=c.contains?"":"$",p=`${u}(?:${a})${h}`;return n.negated===!0&&(p=`(?:^(?!${p}).*$)`),p}}),Qv=_e((e,t)=>{"use strict";var s=ms(),{CHAR_ASTERISK:i,CHAR_AT:r,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:l,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:n,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:f,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:y}=gs(),S=ee(E=>E===c||E===o,"isPathSeparator"),b=ee(E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},"depth"),w=ee((E,O)=>{let R=O||{},x=E.length-1,P=R.parts===!0||R.scanToEnd===!0,j=[],q=[],L=[],G=E,D=-1,N=0,W=0,$=!1,U=!1,F=!1,V=!1,C=!1,B=!1,_=!1,Z=!1,oe=!1,Q=!1,A=0,T,I,M={value:"",depth:0,isGlob:!1},te=ee(()=>D>=x,"eos"),se=ee(()=>G.charCodeAt(D+1),"peek"),ie=ee(()=>(T=I,G.charCodeAt(++D)),"advance");for(;D<x;){I=ie();let J;if(I===o){_=M.backslashes=!0,I=ie(),I===u&&(B=!0);continue}if(B===!0||I===u){for(A++;te()!==!0&&(I=ie());){if(I===o){_=M.backslashes=!0,ie();continue}if(I===u){A++;continue}if(B!==!0&&I===a&&(I=ie())===a){if($=M.isBrace=!0,F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(B!==!0&&I===l){if($=M.isBrace=!0,F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(I===g&&(A--,A===0)){B=!1,$=M.isBrace=!0,Q=!0;break}}if(P===!0)continue;break}if(I===c){if(j.push(D),q.push(M),M={value:"",depth:0,isGlob:!1},Q===!0)continue;if(T===a&&D===N+1){N+=2;continue}W=D+1;continue}if(R.noext!==!0&&(I===f||I===r||I===i||I===d||I===n)&&se()===h){if(F=M.isGlob=!0,V=M.isExtglob=!0,Q=!0,I===n&&D===N&&(oe=!0),P===!0){for(;te()!==!0&&(I=ie());){if(I===o){_=M.backslashes=!0,I=ie();continue}if(I===m){F=M.isGlob=!0,Q=!0;break}}continue}break}if(I===i){if(T===i&&(C=M.isGlobstar=!0),F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(I===d){if(F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(I===p){for(;te()!==!0&&(J=ie());){if(J===o){_=M.backslashes=!0,ie();continue}if(J===y){U=M.isBracket=!0,F=M.isGlob=!0,Q=!0;break}}if(P===!0)continue;break}if(R.nonegate!==!0&&I===n&&D===N){Z=M.negated=!0,N++;continue}if(R.noparen!==!0&&I===h){if(F=M.isGlob=!0,P===!0){for(;te()!==!0&&(I=ie());){if(I===h){_=M.backslashes=!0,I=ie();continue}if(I===m){Q=!0;break}}continue}break}if(F===!0){if(Q=!0,P===!0)continue;break}}R.noext===!0&&(V=!1,F=!1);let v=G,H="",Y="";N>0&&(H=G.slice(0,N),G=G.slice(N),W-=N),v&&F===!0&&W>0?(v=G.slice(0,W),Y=G.slice(W)):F===!0?(v="",Y=G):v=G,v&&v!==""&&v!=="/"&&v!==G&&S(v.charCodeAt(v.length-1))&&(v=v.slice(0,-1)),R.unescape===!0&&(Y&&(Y=s.removeBackslashes(Y)),v&&_===!0&&(v=s.removeBackslashes(v)));let re={prefix:H,input:E,start:N,base:v,glob:Y,isBrace:$,isBracket:U,isGlob:F,isExtglob:V,isGlobstar:C,negated:Z,negatedExtglob:oe};if(R.tokens===!0&&(re.maxDepth=0,S(I)||q.push(M),re.tokens=q),R.parts===!0||R.tokens===!0){let J;for(let ue=0;ue<j.length;ue++){let ge=J?J+1:N,X=j[ue],ce=E.slice(ge,X);R.tokens&&(ue===0&&N!==0?(q[ue].isPrefix=!0,q[ue].value=H):q[ue].value=ce,b(q[ue]),re.maxDepth+=q[ue].depth),(ue!==0||ce!=="")&&L.push(ce),J=X}if(J&&J+1<E.length){let ue=E.slice(J+1);L.push(ue),R.tokens&&(q[q.length-1].value=ue,b(q[q.length-1]),re.maxDepth+=q[q.length-1].depth)}re.slashes=j,re.parts=L}return re},"scan");t.exports=w}),Jv=_e((e,t)=>{"use strict";var s=gs(),i=ms(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:l,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:n}=s,c=ee((p,f)=>{if(typeof f.expandRange=="function")return f.expandRange(...p,f);p.sort();let d=`[${p.join("-")}]`;try{new RegExp(d)}catch{return p.map(g=>i.escapeRegex(g)).join("..")}return d},"expandRange"),u=ee((p,f)=>`Missing ${p}: "${f}" - use "\\\\${f}" to match literal characters`,"syntaxError"),h=ee((p,f)=>{if(typeof p!="string")throw new TypeError("Expected a string");p=n[p]||p;let d={...f},g=typeof d.maxLength=="number"?Math.min(r,d.maxLength):r,m=p.length;if(m>g)throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${g}`);let y={type:"bos",value:"",output:d.prepend||""},S=[y],b=d.capture?"":"?:",w=i.isWindows(f),E=s.globChars(w),O=s.extglobChars(E),{DOT_LITERAL:R,PLUS_LITERAL:x,SLASH_LITERAL:P,ONE_CHAR:j,DOTS_SLASH:q,NO_DOT:L,NO_DOT_SLASH:G,NO_DOTS_SLASH:D,QMARK:N,QMARK_NO_DOT:W,STAR:$,START_ANCHOR:U}=E,F=ee(X=>`(${b}(?:(?!${U}${X.dot?q:R}).)*?)`,"globstar"),V=d.dot?"":L,C=d.dot?N:W,B=d.bash===!0?F(d):$;d.capture&&(B=`(${B})`),typeof d.noext=="boolean"&&(d.noextglob=d.noext);let _={input:p,index:-1,start:0,dot:d.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};p=i.removePrefix(p,_),m=p.length;let Z=[],oe=[],Q=[],A=y,T,I=ee(()=>_.index===m-1,"eos"),M=_.peek=(X=1)=>p[_.index+X],te=_.advance=()=>p[++_.index]||"",se=ee(()=>p.slice(_.index+1),"remaining"),ie=ee((X="",ce=0)=>{_.consumed+=X,_.index+=ce},"consume"),v=ee(X=>{_.output+=X.output!=null?X.output:X.value,ie(X.value)},"append"),H=ee(()=>{let X=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)te(),_.start++,X++;return X%2===0?!1:(_.negated=!0,_.start++,!0)},"negate"),Y=ee(X=>{_[X]++,Q.push(X)},"increment"),re=ee(X=>{_[X]--,Q.pop()},"decrement"),J=ee(X=>{if(A.type==="globstar"){let ce=_.braces>0&&(X.type==="comma"||X.type==="brace"),K=X.extglob===!0||Z.length&&(X.type==="pipe"||X.type==="paren");X.type!=="slash"&&X.type!=="paren"&&!ce&&!K&&(_.output=_.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=B,_.output+=A.output)}if(Z.length&&X.type!=="paren"&&(Z[Z.length-1].inner+=X.value),(X.value||X.output)&&v(X),A&&A.type==="text"&&X.type==="text"){A.value+=X.value,A.output=(A.output||"")+X.value;return}X.prev=A,S.push(X),A=X},"push"),ue=ee((X,ce)=>{let K={...O[ce],conditions:1,inner:""};K.prev=A,K.parens=_.parens,K.output=_.output;let ae=(d.capture?"(":"")+K.open;Y("parens"),J({type:X,value:ce,output:_.output?"":j}),J({type:"paren",extglob:!0,value:te(),output:ae}),Z.push(K)},"extglobOpen"),ge=ee(X=>{let ce=X.close+(d.capture?")":""),K;if(X.type==="negate"){let ae=B;if(X.inner&&X.inner.length>1&&X.inner.includes("/")&&(ae=F(d)),(ae!==B||I()||/^\)+$/.test(se()))&&(ce=X.close=`)$))${ae}`),X.inner.includes("*")&&(K=se())&&/^\.[^\\/.]+$/.test(K)){let de=h(K,{...f,fastpaths:!1}).output;ce=X.close=`)${de})${ae})`}X.prev.type==="bos"&&(_.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:T,output:ce}),re("parens")},"extglobClose");if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(p)){let X=!1,ce=p.replace(a,(K,ae,de,ve,ne,he)=>ve==="\\"?(X=!0,K):ve==="?"?ae?ae+ve+(ne?N.repeat(ne.length):""):he===0?C+(ne?N.repeat(ne.length):""):N.repeat(de.length):ve==="."?R.repeat(de.length):ve==="*"?ae?ae+ve+(ne?B:""):B:ae?K:`\\${K}`);return X===!0&&(d.unescape===!0?ce=ce.replace(/\\/g,""):ce=ce.replace(/\\+/g,K=>K.length%2===0?"\\\\":K?"\\":"")),ce===p&&d.contains===!0?(_.output=p,_):(_.output=i.wrapOutput(ce,_,f),_)}for(;!I();){if(T=te(),T==="\0")continue;if(T==="\\"){let K=M();if(K==="/"&&d.bash!==!0||K==="."||K===";")continue;if(!K){T+="\\",J({type:"text",value:T});continue}let ae=/^\\+/.exec(se()),de=0;if(ae&&ae[0].length>2&&(de=ae[0].length,_.index+=de,de%2!==0&&(T+="\\")),d.unescape===!0?T=te():T+=te(),_.brackets===0){J({type:"text",value:T});continue}}if(_.brackets>0&&(T!=="]"||A.value==="["||A.value==="[^")){if(d.posix!==!1&&T===":"){let K=A.value.slice(1);if(K.includes("[")&&(A.posix=!0,K.includes(":"))){let ae=A.value.lastIndexOf("["),de=A.value.slice(0,ae),ve=A.value.slice(ae+2),ne=o[ve];if(ne){A.value=de+ne,_.backtrack=!0,te(),!y.output&&S.indexOf(A)===1&&(y.output=j);continue}}}(T==="["&&M()!==":"||T==="-"&&M()==="]")&&(T=`\\${T}`),T==="]"&&(A.value==="["||A.value==="[^")&&(T=`\\${T}`),d.posix===!0&&T==="!"&&A.value==="["&&(T="^"),A.value+=T,v({value:T});continue}if(_.quotes===1&&T!=='"'){T=i.escapeRegex(T),A.value+=T,v({value:T});continue}if(T==='"'){_.quotes=_.quotes===1?0:1,d.keepQuotes===!0&&J({type:"text",value:T});continue}if(T==="("){Y("parens"),J({type:"paren",value:T});continue}if(T===")"){if(_.parens===0&&d.strictBrackets===!0)throw new SyntaxError(u("opening","("));let K=Z[Z.length-1];if(K&&_.parens===K.parens+1){ge(Z.pop());continue}J({type:"paren",value:T,output:_.parens?")":"\\)"}),re("parens");continue}if(T==="["){if(d.nobracket===!0||!se().includes("]")){if(d.nobracket!==!0&&d.strictBrackets===!0)throw new SyntaxError(u("closing","]"));T=`\\${T}`}else Y("brackets");J({type:"bracket",value:T});continue}if(T==="]"){if(d.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){J({type:"text",value:T,output:`\\${T}`});continue}if(_.brackets===0){if(d.strictBrackets===!0)throw new SyntaxError(u("opening","["));J({type:"text",value:T,output:`\\${T}`});continue}re("brackets");let K=A.value.slice(1);if(A.posix!==!0&&K[0]==="^"&&!K.includes("/")&&(T=`/${T}`),A.value+=T,v({value:T}),d.literalBrackets===!1||i.hasRegexChars(K))continue;let ae=i.escapeRegex(A.value);if(_.output=_.output.slice(0,-A.value.length),d.literalBrackets===!0){_.output+=ae,A.value=ae;continue}A.value=`(${b}${ae}|${A.value})`,_.output+=A.value;continue}if(T==="{"&&d.nobrace!==!0){Y("braces");let K={type:"brace",value:T,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};oe.push(K),J(K);continue}if(T==="}"){let K=oe[oe.length-1];if(d.nobrace===!0||!K){J({type:"text",value:T,output:T});continue}let ae=")";if(K.dots===!0){let de=S.slice(),ve=[];for(let ne=de.length-1;ne>=0&&(S.pop(),de[ne].type!=="brace");ne--)de[ne].type!=="dots"&&ve.unshift(de[ne].value);ae=c(ve,d),_.backtrack=!0}if(K.comma!==!0&&K.dots!==!0){let de=_.output.slice(0,K.outputIndex),ve=_.tokens.slice(K.tokensIndex);K.value=K.output="\\{",T=ae="\\}",_.output=de;for(let ne of ve)_.output+=ne.output||ne.value}J({type:"brace",value:T,output:ae}),re("braces"),oe.pop();continue}if(T==="|"){Z.length>0&&Z[Z.length-1].conditions++,J({type:"text",value:T});continue}if(T===","){let K=T,ae=oe[oe.length-1];ae&&Q[Q.length-1]==="braces"&&(ae.comma=!0,K="|"),J({type:"comma",value:T,output:K});continue}if(T==="/"){if(A.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",S.pop(),A=y;continue}J({type:"slash",value:T,output:P});continue}if(T==="."){if(_.braces>0&&A.type==="dot"){A.value==="."&&(A.output=R);let K=oe[oe.length-1];A.type="dots",A.output+=T,A.value+=T,K.dots=!0;continue}if(_.braces+_.parens===0&&A.type!=="bos"&&A.type!=="slash"){J({type:"text",value:T,output:R});continue}J({type:"dot",value:T,output:R});continue}if(T==="?"){if(!(A&&A.value==="(")&&d.noextglob!==!0&&M()==="("&&M(2)!=="?"){ue("qmark",T);continue}if(A&&A.type==="paren"){let K=M(),ae=T;if(K==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(K)||K==="<"&&!/<([!=]|\w+>)/.test(se()))&&(ae=`\\${T}`),J({type:"text",value:T,output:ae});continue}if(d.dot!==!0&&(A.type==="slash"||A.type==="bos")){J({type:"qmark",value:T,output:W});continue}J({type:"qmark",value:T,output:N});continue}if(T==="!"){if(d.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){ue("negate",T);continue}if(d.nonegate!==!0&&_.index===0){H();continue}}if(T==="+"){if(d.noextglob!==!0&&M()==="("&&M(2)!=="?"){ue("plus",T);continue}if(A&&A.value==="("||d.regex===!1){J({type:"plus",value:T,output:x});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||_.parens>0){J({type:"plus",value:T});continue}J({type:"plus",value:x});continue}if(T==="@"){if(d.noextglob!==!0&&M()==="("&&M(2)!=="?"){J({type:"at",extglob:!0,value:T,output:""});continue}J({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);let K=l.exec(se());K&&(T+=K[0],_.index+=K[0].length),J({type:"text",value:T});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=T,A.output=B,_.backtrack=!0,_.globstar=!0,ie(T);continue}let X=se();if(d.noextglob!==!0&&/^\([^?]/.test(X)){ue("star",T);continue}if(A.type==="star"){if(d.noglobstar===!0){ie(T);continue}let K=A.prev,ae=K.prev,de=K.type==="slash"||K.type==="bos",ve=ae&&(ae.type==="star"||ae.type==="globstar");if(d.bash===!0&&(!de||X[0]&&X[0]!=="/")){J({type:"star",value:T,output:""});continue}let ne=_.braces>0&&(K.type==="comma"||K.type==="brace"),he=Z.length&&(K.type==="pipe"||K.type==="paren");if(!de&&K.type!=="paren"&&!ne&&!he){J({type:"star",value:T,output:""});continue}for(;X.slice(0,3)==="/**";){let pe=p[_.index+4];if(pe&&pe!=="/")break;X=X.slice(3),ie("/**",3)}if(K.type==="bos"&&I()){A.type="globstar",A.value+=T,A.output=F(d),_.output=A.output,_.globstar=!0,ie(T);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&!ve&&I()){_.output=_.output.slice(0,-(K.output+A.output).length),K.output=`(?:${K.output}`,A.type="globstar",A.output=F(d)+(d.strictSlashes?")":"|$)"),A.value+=T,_.globstar=!0,_.output+=K.output+A.output,ie(T);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&X[0]==="/"){let pe=X[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(K.output+A.output).length),K.output=`(?:${K.output}`,A.type="globstar",A.output=`${F(d)}${P}|${P}${pe})`,A.value+=T,_.output+=K.output+A.output,_.globstar=!0,ie(T+te()),J({type:"slash",value:"/",output:""});continue}if(K.type==="bos"&&X[0]==="/"){A.type="globstar",A.value+=T,A.output=`(?:^|${P}|${F(d)}${P})`,_.output=A.output,_.globstar=!0,ie(T+te()),J({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-A.output.length),A.type="globstar",A.output=F(d),A.value+=T,_.output+=A.output,_.globstar=!0,ie(T);continue}let ce={type:"star",value:T,output:B};if(d.bash===!0){ce.output=".*?",(A.type==="bos"||A.type==="slash")&&(ce.output=V+ce.output),J(ce);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&d.regex===!0){ce.output=T,J(ce);continue}(_.index===_.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(_.output+=G,A.output+=G):d.dot===!0?(_.output+=D,A.output+=D):(_.output+=V,A.output+=V),M()!=="*"&&(_.output+=j,A.output+=j)),J(ce)}for(;_.brackets>0;){if(d.strictBrackets===!0)throw new SyntaxError(u("closing","]"));_.output=i.escapeLast(_.output,"["),re("brackets")}for(;_.parens>0;){if(d.strictBrackets===!0)throw new SyntaxError(u("closing",")"));_.output=i.escapeLast(_.output,"("),re("parens")}for(;_.braces>0;){if(d.strictBrackets===!0)throw new SyntaxError(u("closing","}"));_.output=i.escapeLast(_.output,"{"),re("braces")}if(d.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&J({type:"maybe_slash",value:"",output:`${P}?`}),_.backtrack===!0){_.output="";for(let X of _.tokens)_.output+=X.output!=null?X.output:X.value,X.suffix&&(_.output+=X.suffix)}return _},"parse");h.fastpaths=(p,f)=>{let d={...f},g=typeof d.maxLength=="number"?Math.min(r,d.maxLength):r,m=p.length;if(m>g)throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${g}`);p=n[p]||p;let y=i.isWindows(f),{DOT_LITERAL:S,SLASH_LITERAL:b,ONE_CHAR:w,DOTS_SLASH:E,NO_DOT:O,NO_DOTS:R,NO_DOTS_SLASH:x,STAR:P,START_ANCHOR:j}=s.globChars(y),q=d.dot?R:O,L=d.dot?x:O,G=d.capture?"":"?:",D={negated:!1,prefix:""},N=d.bash===!0?".*?":P;d.capture&&(N=`(${N})`);let W=ee(V=>V.noglobstar===!0?N:`(${G}(?:(?!${j}${V.dot?E:S}).)*?)`,"globstar"),$=ee(V=>{switch(V){case"*":return`${q}${w}${N}`;case".*":return`${S}${w}${N}`;case"*.*":return`${q}${N}${S}${w}${N}`;case"*/*":return`${q}${N}${b}${w}${L}${N}`;case"**":return q+W(d);case"**/*":return`(?:${q}${W(d)}${b})?${L}${w}${N}`;case"**/*.*":return`(?:${q}${W(d)}${b})?${L}${N}${S}${w}${N}`;case"**/.*":return`(?:${q}${W(d)}${b})?${S}${w}${N}`;default:{let C=/^(.*?)\.(\w+)$/.exec(V);if(!C)return;let B=$(C[1]);return B?B+S+C[2]:void 0}}},"create"),U=i.removePrefix(p,D),F=$(U);return F&&d.strictSlashes!==!0&&(F+=`${b}?`),F},t.exports=h}),Zv=_e((e,t)=>{"use strict";var s=le("path"),i=Qv(),r=Jv(),o=ms(),l=gs(),a=ee(c=>c&&typeof c=="object"&&!Array.isArray(c),"isObject"),n=ee((c,u,h=!1)=>{if(Array.isArray(c)){let b=c.map(w=>n(w,u,h));return ee(w=>{for(let E of b){let O=E(w);if(O)return O}return!1},"arrayMatcher")}let p=a(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!p)throw new TypeError("Expected pattern to be a non-empty string");let f=u||{},d=o.isWindows(u),g=p?n.compileRe(c,u):n.makeRe(c,u,!1,!0),m=g.state;delete g.state;let y=ee(()=>!1,"isIgnored");if(f.ignore){let b={...u,ignore:null,onMatch:null,onResult:null};y=n(f.ignore,b,h)}let S=ee((b,w=!1)=>{let{isMatch:E,match:O,output:R}=n.test(b,g,u,{glob:c,posix:d}),x={glob:c,state:m,regex:g,posix:d,input:b,output:R,match:O,isMatch:E};return typeof f.onResult=="function"&&f.onResult(x),E===!1?(x.isMatch=!1,w?x:!1):y(b)?(typeof f.onIgnore=="function"&&f.onIgnore(x),x.isMatch=!1,w?x:!1):(typeof f.onMatch=="function"&&f.onMatch(x),w?x:!0)},"matcher");return h&&(S.state=m),S},"picomatch");n.test=(c,u,h,{glob:p,posix:f}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let d=h||{},g=d.format||(f?o.toPosixSlashes:null),m=c===p,y=m&&g?g(c):c;return m===!1&&(y=g?g(c):c,m=y===p),(m===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?m=n.matchBase(c,u,h,f):m=u.exec(y)),{isMatch:!!m,match:m,output:y}},n.matchBase=(c,u,h,p=o.isWindows(h))=>(u instanceof RegExp?u:n.makeRe(u,h)).test(s.basename(c)),n.isMatch=(c,u,h)=>n(u,h)(c),n.parse=(c,u)=>Array.isArray(c)?c.map(h=>n.parse(h,u)):r(c,{...u,fastpaths:!1}),n.scan=(c,u)=>i(c,u),n.compileRe=(c,u,h=!1,p=!1)=>{if(h===!0)return c.output;let f=u||{},d=f.contains?"":"^",g=f.contains?"":"$",m=`${d}(?:${c.output})${g}`;c&&c.negated===!0&&(m=`^(?!${m}).*$`);let y=n.toRegex(m,u);return p===!0&&(y.state=c),y},n.makeRe=(c,u={},h=!1,p=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let f={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(f.output=r.fastpaths(c,u)),f.output||(f=r(c,u)),n.compileRe(f,u,h,p)},n.toRegex=(c,u)=>{try{let h=u||{};return new RegExp(c,h.flags||(h.nocase?"i":""))}catch(h){if(u&&u.debug===!0)throw h;return/$^/}},n.constants=l,t.exports=n}),eS=_e((e,t)=>{"use strict";t.exports=Zv()}),tS=_e((e,t)=>{"use strict";var s=le("util"),i=Yv(),r=eS(),o=ms(),l=ee(c=>c===""||c==="./","isEmptyString"),a=ee(c=>{let u=c.indexOf("{");return u>-1&&c.indexOf("}",u)>-1},"hasBraces"),n=ee((c,u,h)=>{u=[].concat(u),c=[].concat(c);let p=new Set,f=new Set,d=new Set,g=0,m=ee(S=>{d.add(S.output),h&&h.onResult&&h.onResult(S)},"onResult");for(let S=0;S<u.length;S++){let b=r(String(u[S]),{...h,onResult:m},!0),w=b.state.negated||b.state.negatedExtglob;w&&g++;for(let E of c){let O=b(E,!0);(w?!O.isMatch:O.isMatch)&&(w?p.add(O.output):(p.delete(O.output),f.add(O.output)))}}let y=(g===u.length?[...d]:[...f]).filter(S=>!p.has(S));if(h&&y.length===0){if(h.failglob===!0)throw new Error(`No matches found for "${u.join(", ")}"`);if(h.nonull===!0||h.nullglob===!0)return h.unescape?u.map(S=>S.replace(/\\/g,"")):u}return y},"micromatch");n.match=n,n.matcher=(c,u)=>r(c,u),n.isMatch=(c,u,h)=>r(u,h)(c),n.any=n.isMatch,n.not=(c,u,h={})=>{u=[].concat(u).map(String);let p=new Set,f=[],d=ee(m=>{h.onResult&&h.onResult(m),f.push(m.output)},"onResult"),g=new Set(n(c,u,{...h,onResult:d}));for(let m of f)g.has(m)||p.add(m);return[...p]},n.contains=(c,u,h)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${s.inspect(c)}"`);if(Array.isArray(u))return u.some(p=>n.contains(c,p,h));if(typeof u=="string"){if(l(c)||l(u))return!1;if(c.includes(u)||c.startsWith("./")&&c.slice(2).includes(u))return!0}return n.isMatch(c,u,{...h,contains:!0})},n.matchKeys=(c,u,h)=>{if(!o.isObject(c))throw new TypeError("Expected the first argument to be an object");let p=n(Object.keys(c),u,h),f={};for(let d of p)f[d]=c[d];return f},n.some=(c,u,h)=>{let p=[].concat(c);for(let f of[].concat(u)){let d=r(String(f),h);if(p.some(g=>d(g)))return!0}return!1},n.every=(c,u,h)=>{let p=[].concat(c);for(let f of[].concat(u)){let d=r(String(f),h);if(!p.every(g=>d(g)))return!1}return!0},n.all=(c,u,h)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${s.inspect(c)}"`);return[].concat(u).every(p=>r(p,h)(c))},n.capture=(c,u,h)=>{let p=o.isWindows(h),f=r.makeRe(String(c),{...h,capture:!0}).exec(p?o.toPosixSlashes(u):u);if(f)return f.slice(1).map(d=>d===void 0?"":d)},n.makeRe=(...c)=>r.makeRe(...c),n.scan=(...c)=>r.scan(...c),n.parse=(c,u)=>{let h=[];for(let p of[].concat(c||[]))for(let f of i(String(p),u))h.push(r.parse(f,u));return h},n.braces=(c,u)=>{if(typeof c!="string")throw new TypeError("Expected a string");return u&&u.nobrace===!0||!a(c)?[c]:i(c,u)},n.braceExpand=(c,u)=>{if(typeof c!="string")throw new TypeError("Expected a string");return n.braces(c,{...u,expand:!0})},n.hasBraces=a,t.exports=n}),rS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=le("path"),s=Fv(),i=tS(),r="**",o="\\",l=/[*?]|^!/,a=/\[[^[]*]/,n=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,u=/,|\.\./,h=/(?!^)\/{2,}/g;function p(C,B={}){return!f(C,B)}ee(p,"isStaticPattern"),e.isStaticPattern=p;function f(C,B={}){return C===""?!1:!!(B.caseSensitiveMatch===!1||C.includes(o)||l.test(C)||a.test(C)||n.test(C)||B.extglob!==!1&&c.test(C)||B.braceExpansion!==!1&&d(C))}ee(f,"isDynamicPattern"),e.isDynamicPattern=f;function d(C){let B=C.indexOf("{");if(B===-1)return!1;let _=C.indexOf("}",B+1);if(_===-1)return!1;let Z=C.slice(B,_);return u.test(Z)}ee(d,"hasBraceExpansion");function g(C){return y(C)?C.slice(1):C}ee(g,"convertToPositivePattern"),e.convertToPositivePattern=g;function m(C){return"!"+C}ee(m,"convertToNegativePattern"),e.convertToNegativePattern=m;function y(C){return C.startsWith("!")&&C[1]!=="("}ee(y,"isNegativePattern"),e.isNegativePattern=y;function S(C){return!y(C)}ee(S,"isPositivePattern"),e.isPositivePattern=S;function b(C){return C.filter(y)}ee(b,"getNegativePatterns"),e.getNegativePatterns=b;function w(C){return C.filter(S)}ee(w,"getPositivePatterns"),e.getPositivePatterns=w;function E(C){return C.filter(B=>!R(B))}ee(E,"getPatternsInsideCurrentDirectory"),e.getPatternsInsideCurrentDirectory=E;function O(C){return C.filter(R)}ee(O,"getPatternsOutsideCurrentDirectory"),e.getPatternsOutsideCurrentDirectory=O;function R(C){return C.startsWith("..")||C.startsWith("./..")}ee(R,"isPatternRelatedToParentDirectory"),e.isPatternRelatedToParentDirectory=R;function x(C){return s(C,{flipBackslashes:!1})}ee(x,"getBaseDirectory"),e.getBaseDirectory=x;function P(C){return C.includes(r)}ee(P,"hasGlobStar"),e.hasGlobStar=P;function j(C){return C.endsWith("/"+r)}ee(j,"endsWithSlashGlobStar"),e.endsWithSlashGlobStar=j;function q(C){let B=t.basename(C);return j(C)||p(B)}ee(q,"isAffectDepthOfReadingPattern"),e.isAffectDepthOfReadingPattern=q;function L(C){return C.reduce((B,_)=>B.concat(G(_)),[])}ee(L,"expandPatternsWithBraceExpansion"),e.expandPatternsWithBraceExpansion=L;function G(C){let B=i.braces(C,{expand:!0,nodupes:!0,keepEscaping:!0});return B.sort((_,Z)=>_.length-Z.length),B.filter(_=>_!=="")}ee(G,"expandBraceExpansion"),e.expandBraceExpansion=G;function D(C,B){let{parts:_}=i.scan(C,Object.assign(Object.assign({},B),{parts:!0}));return _.length===0&&(_=[C]),_[0].startsWith("/")&&(_[0]=_[0].slice(1),_.unshift("")),_}ee(D,"getPatternParts"),e.getPatternParts=D;function N(C,B){return i.makeRe(C,B)}ee(N,"makeRe"),e.makeRe=N;function W(C,B){return C.map(_=>N(_,B))}ee(W,"convertPatternsToRe"),e.convertPatternsToRe=W;function $(C,B){return B.some(_=>_.test(C))}ee($,"matchAny"),e.matchAny=$;function U(C){return C.replace(h,"/")}ee(U,"removeDuplicateSlashes"),e.removeDuplicateSlashes=U;function F(C){let B=[],_=[];for(let Z of C)V(Z)?B.push(Z):_.push(Z);return[B,_]}ee(F,"partitionAbsoluteAndRelative"),e.partitionAbsoluteAndRelative=F;function V(C){return t.isAbsolute(C)}ee(V,"isAbsolute"),e.isAbsolute=V}),sS=_e((e,t)=>{"use strict";var s=le("stream"),i=s.PassThrough,r=Array.prototype.slice;t.exports=o;function o(){let a=[],n=r.call(arguments),c=!1,u=n[n.length-1];u&&!Array.isArray(u)&&u.pipe==null?n.pop():u={};let h=u.end!==!1,p=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let f=i(u);function d(){for(let y=0,S=arguments.length;y<S;y++)a.push(l(arguments[y],u));return g(),this}ee(d,"addStream");function g(){if(c)return;c=!0;let y=a.shift();if(!y){process.nextTick(m);return}Array.isArray(y)||(y=[y]);let S=y.length+1;function b(){--S>0||(c=!1,g())}ee(b,"next");function w(E){function O(){E.removeListener("merge2UnpipeEnd",O),E.removeListener("end",O),p&&E.removeListener("error",R),b()}ee(O,"onend");function R(x){f.emit("error",x)}if(ee(R,"onerror"),E._readableState.endEmitted)return b();E.on("merge2UnpipeEnd",O),E.on("end",O),p&&E.on("error",R),E.pipe(f,{end:!1}),E.resume()}ee(w,"pipe");for(let E=0;E<y.length;E++)w(y[E]);b()}ee(g,"mergeStream");function m(){c=!1,f.emit("queueDrain"),h&&f.end()}return ee(m,"endStream"),f.setMaxListeners(0),f.add=d,f.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),n.length&&d.apply(null,n),f}ee(o,"merge2");function l(a,n){if(Array.isArray(a))for(let c=0,u=a.length;c<u;c++)a[c]=l(a[c],n);else{if(!a._readableState&&a.pipe&&(a=a.pipe(i(n))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}ee(l,"pauseStreams")}),iS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=sS();function s(r){let o=t(r);return r.forEach(l=>{l.once("error",a=>o.emit("error",a))}),o.once("close",()=>i(r)),o.once("end",()=>i(r)),o}ee(s,"merge"),e.merge=s;function i(r){r.forEach(o=>o.emit("close"))}ee(i,"propagateCloseEventToSources")}),nS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}ee(t,"isString"),e.isString=t;function s(i){return i===""}ee(s,"isEmpty"),e.isEmpty=s}),yt=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=Mv();e.array=t;var s=jv();e.errno=s;var i=Bv();e.fs=i;var r=Hv();e.path=r;var o=rS();e.pattern=o;var l=iS();e.stream=l;var a=nS();e.string=a}),oS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=yt();function s(u,h){let p=i(u,h),f=i(h.ignore,h),d=o(p),g=l(p,f),m=d.filter(w=>t.pattern.isStaticPattern(w,h)),y=d.filter(w=>t.pattern.isDynamicPattern(w,h)),S=r(m,g,!1),b=r(y,g,!0);return S.concat(b)}ee(s,"generate"),e.generate=s;function i(u,h){let p=u;return h.braceExpansion&&(p=t.pattern.expandPatternsWithBraceExpansion(p)),h.baseNameMatch&&(p=p.map(f=>f.includes("/")?f:`**/${f}`)),p.map(f=>t.pattern.removeDuplicateSlashes(f))}ee(i,"processPatterns");function r(u,h,p){let f=[],d=t.pattern.getPatternsOutsideCurrentDirectory(u),g=t.pattern.getPatternsInsideCurrentDirectory(u),m=a(d),y=a(g);return f.push(...n(m,h,p)),"."in y?f.push(c(".",g,h,p)):f.push(...n(y,h,p)),f}ee(r,"convertPatternsToTasks"),e.convertPatternsToTasks=r;function o(u){return t.pattern.getPositivePatterns(u)}ee(o,"getPositivePatterns"),e.getPositivePatterns=o;function l(u,h){return t.pattern.getNegativePatterns(u).concat(h).map(t.pattern.convertToPositivePattern)}ee(l,"getNegativePatternsAsPositive"),e.getNegativePatternsAsPositive=l;function a(u){let h={};return u.reduce((p,f)=>{let d=t.pattern.getBaseDirectory(f);return d in p?p[d].push(f):p[d]=[f],p},h)}ee(a,"groupPatternsByBaseDirectory"),e.groupPatternsByBaseDirectory=a;function n(u,h,p){return Object.keys(u).map(f=>c(f,u[f],h,p))}ee(n,"convertPatternGroupsToTasks"),e.convertPatternGroupsToTasks=n;function c(u,h,p,f){return{dynamic:f,positive:h,negative:p,base:u,patterns:[].concat(h,p.map(t.pattern.convertToNegativePattern))}}ee(c,"convertPatternGroupToTask"),e.convertPatternGroupToTask=c}),aS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,o,l){o.fs.lstat(r,(a,n)=>{if(a!==null){s(l,a);return}if(!n.isSymbolicLink()||!o.followSymbolicLink){i(l,n);return}o.fs.stat(r,(c,u)=>{if(c!==null){if(o.throwErrorOnBrokenSymbolicLink){s(l,c);return}i(l,n);return}o.markSymbolicLink&&(u.isSymbolicLink=()=>!0),i(l,u)})})}ee(t,"read"),e.read=t;function s(r,o){r(o)}ee(s,"callFailureCallback");function i(r,o){r(null,o)}ee(i,"callSuccessCallback")}),lS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(s,i){let r=i.fs.lstatSync(s);if(!r.isSymbolicLink()||!i.followSymbolicLink)return r;try{let o=i.fs.statSync(s);return i.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!i.throwErrorOnBrokenSymbolicLink)return r;throw o}}ee(t,"read"),e.read=t}),cS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function s(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}ee(s,"createFileSystemAdapter"),e.createFileSystemAdapter=s}),uS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=cS(),s=class{static{ee(this,"Settings")}constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,r){return i??r}};e.default=s}),Mt=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=aS(),s=lS(),i=uS();e.Settings=i.default;function r(a,n,c){if(typeof n=="function"){t.read(a,l(),n);return}t.read(a,l(n),c)}ee(r,"stat"),e.stat=r;function o(a,n){let c=l(n);return s.read(a,c)}ee(o,"statSync"),e.statSync=o;function l(a={}){return a instanceof i.default?a:new i.default(a)}ee(l,"getSettings")}),hS=_e((e,t)=>{var s;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(global):i=>(s||(s=Promise.resolve())).then(i).catch(r=>setTimeout(()=>{throw r},0))}),pS=_e((e,t)=>{t.exports=i;var s=hS();function i(r,o){let l,a,n,c=!0;Array.isArray(r)?(l=[],a=r.length):(n=Object.keys(r),l={},a=n.length);function u(p){function f(){o&&o(p,l),o=null}ee(f,"end"),c?s(f):f()}ee(u,"done");function h(p,f,d){l[p]=d,(--a===0||f)&&u(f)}ee(h,"each"),a?n?n.forEach(function(p){r[p](function(f,d){h(p,f,d)})}):r.forEach(function(p,f){p(function(d,g){h(f,d,g)})}):u(null),c=!1}ee(i,"runParallel")}),cc=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var s=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),r=10,o=10,l=s>r,a=s===r&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=l||a}),fS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{static{ee(this,"DirentFromStats")}constructor(i,r){this.name=i,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 s(i,r){return new t(i,r)}ee(s,"createDirentFromStats"),e.createDirentFromStats=s}),uc=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=fS();e.fs=t}),hc=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(s,i,r){return s.endsWith(r)?s+i:s+r+i}ee(t,"joinPathSegments"),e.joinPathSegments=t}),dS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Mt(),s=pS(),i=cc(),r=uc(),o=hc();function l(p,f,d){if(!f.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){a(p,f,d);return}c(p,f,d)}ee(l,"read"),e.read=l;function a(p,f,d){f.fs.readdir(p,{withFileTypes:!0},(g,m)=>{if(g!==null){u(d,g);return}let y=m.map(b=>({dirent:b,name:b.name,path:o.joinPathSegments(p,b.name,f.pathSegmentSeparator)}));if(!f.followSymbolicLinks){h(d,y);return}let S=y.map(b=>n(b,f));s(S,(b,w)=>{if(b!==null){u(d,b);return}h(d,w)})})}ee(a,"readdirWithFileTypes"),e.readdirWithFileTypes=a;function n(p,f){return d=>{if(!p.dirent.isSymbolicLink()){d(null,p);return}f.fs.stat(p.path,(g,m)=>{if(g!==null){if(f.throwErrorOnBrokenSymbolicLink){d(g);return}d(null,p);return}p.dirent=r.fs.createDirentFromStats(p.name,m),d(null,p)})}}ee(n,"makeRplTaskEntry");function c(p,f,d){f.fs.readdir(p,(g,m)=>{if(g!==null){u(d,g);return}let y=m.map(S=>{let b=o.joinPathSegments(p,S,f.pathSegmentSeparator);return w=>{t.stat(b,f.fsStatSettings,(E,O)=>{if(E!==null){w(E);return}let R={name:S,path:b,dirent:r.fs.createDirentFromStats(S,O)};f.stats&&(R.stats=O),w(null,R)})}});s(y,(S,b)=>{if(S!==null){u(d,S);return}h(d,b)})})}ee(c,"readdir"),e.readdir=c;function u(p,f){p(f)}ee(u,"callFailureCallback");function h(p,f){p(null,f)}ee(h,"callSuccessCallback")}),gS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Mt(),s=cc(),i=uc(),r=hc();function o(n,c){return!c.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES?l(n,c):a(n,c)}ee(o,"read"),e.read=o;function l(n,c){return c.fs.readdirSync(n,{withFileTypes:!0}).map(u=>{let h={dirent:u,name:u.name,path:r.joinPathSegments(n,u.name,c.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let p=c.fs.statSync(h.path);h.dirent=i.fs.createDirentFromStats(h.name,p)}catch(p){if(c.throwErrorOnBrokenSymbolicLink)throw p}return h})}ee(l,"readdirWithFileTypes"),e.readdirWithFileTypes=l;function a(n,c){return c.fs.readdirSync(n).map(u=>{let h=r.joinPathSegments(n,u,c.pathSegmentSeparator),p=t.statSync(h,c.fsStatSettings),f={name:u,path:h,dirent:i.fs.createDirentFromStats(u,p)};return c.stats&&(f.stats=p),f})}ee(a,"readdir"),e.readdir=a}),mS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function s(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}ee(s,"createFileSystemAdapter"),e.createFileSystemAdapter=s}),yS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=Mt(),i=mS(),r=class{static{ee(this,"Settings")}constructor(o={}){this._options=o,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(o,l){return o??l}};e.default=r}),_n=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=dS(),s=gS(),i=yS();e.Settings=i.default;function r(a,n,c){if(typeof n=="function"){t.read(a,l(),n);return}t.read(a,l(n),c)}ee(r,"scandir"),e.scandir=r;function o(a,n){let c=l(n);return s.read(a,c)}ee(o,"scandirSync"),e.scandirSync=o;function l(a={}){return a instanceof i.default?a:new i.default(a)}ee(l,"getSettings")}),_S=_e((e,t)=>{"use strict";function s(i){var r=new i,o=r;function l(){var n=r;return n.next?r=n.next:(r=new i,o=r),n.next=null,n}ee(l,"get");function a(n){o.next=n,o=n}return ee(a,"release"),{get:l,release:a}}ee(s,"reusify"),t.exports=s}),vS=_e((e,t)=>{"use strict";var s=_S();function i(a,n,c){if(typeof a=="function"&&(c=n,n=a,a=null),!(c>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var u=s(o),h=null,p=null,f=0,d=null,g={push:O,drain:r,saturated:r,pause:y,paused:!1,get concurrency(){return c},set concurrency(L){if(!(L>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(c=L,!g.paused)for(;h&&f<c;)f++,x()},running:m,resume:w,idle:E,length:S,getQueue:b,unshift:R,empty:r,kill:P,killAndDrain:j,error:q};return g;function m(){return f}function y(){g.paused=!0}function S(){for(var L=h,G=0;L;)L=L.next,G++;return G}function b(){for(var L=h,G=[];L;)G.push(L.value),L=L.next;return G}function w(){if(g.paused){if(g.paused=!1,h===null){f++,x();return}for(;h&&f<c;)f++,x()}}function E(){return f===0&&g.length()===0}function O(L,G){var D=u.get();D.context=a,D.release=x,D.value=L,D.callback=G||r,D.errorHandler=d,f>=c||g.paused?p?(p.next=D,p=D):(h=D,p=D,g.saturated()):(f++,n.call(a,D.value,D.worked))}function R(L,G){var D=u.get();D.context=a,D.release=x,D.value=L,D.callback=G||r,D.errorHandler=d,f>=c||g.paused?h?(D.next=h,h=D):(h=D,p=D,g.saturated()):(f++,n.call(a,D.value,D.worked))}function x(L){L&&u.release(L);var G=h;G&&f<=c?g.paused?f--:(p===h&&(p=null),h=G.next,G.next=null,n.call(a,G.value,G.worked),p===null&&g.empty()):--f===0&&g.drain()}function P(){h=null,p=null,g.drain=r}function j(){h=null,p=null,g.drain(),g.drain=r}function q(L){d=L}}ee(i,"fastqueue");function r(){}ee(r,"noop");function o(){this.value=null,this.callback=r,this.next=null,this.release=r,this.context=null,this.errorHandler=null;var a=this;this.worked=ee(function(n,c){var u=a.callback,h=a.errorHandler,p=a.value;a.value=null,a.callback=r,a.errorHandler&&h(n,p),u.call(a.context,n,c),a.release(a)},"worked")}ee(o,"Task");function l(a,n,c){typeof a=="function"&&(c=n,n=a,a=null);function u(y,S){n.call(this,y).then(function(b){S(null,b)},S)}ee(u,"asyncWrapper");var h=i(a,u,c),p=h.push,f=h.unshift;return h.push=d,h.unshift=g,h.drained=m,h;function d(y){var S=new Promise(function(b,w){p(y,function(E,O){if(E){w(E);return}b(O)})});return S.catch(r),S}function g(y){var S=new Promise(function(b,w){f(y,function(E,O){if(E){w(E);return}b(O)})});return S.catch(r),S}function m(){var y=new Promise(function(S){process.nextTick(function(){if(h.idle())S();else{var b=h.drain;h.drain=function(){typeof b=="function"&&b(),S(),h.drain=b}}})});return y}}ee(l,"queueAsPromised"),t.exports=i,t.exports.promise=l}),vn=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(o,l){return o.errorFilter===null?!0:!o.errorFilter(l)}ee(t,"isFatalError"),e.isFatalError=t;function s(o,l){return o===null||o(l)}ee(s,"isAppliedFilter"),e.isAppliedFilter=s;function i(o,l){return o.split(/[/\\]/).join(l)}ee(i,"replacePathSegmentSeparator"),e.replacePathSegmentSeparator=i;function r(o,l,a){return o===""?l:o.endsWith(a)?o+l:o+a+l}ee(r,"joinPathSegments"),e.joinPathSegments=r}),pc=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=vn(),s=class{static{ee(this,"Reader")}constructor(i,r){this._root=i,this._settings=r,this._root=t.replacePathSegmentSeparator(i,r.pathSegmentSeparator)}};e.default=s}),fc=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("events"),s=_n(),i=vS(),r=vn(),o=pc(),l=class extends o.default{static{ee(this,"AsyncReader")}constructor(a,n){super(a,n),this._settings=n,this._scandir=s.scandir,this._emitter=new t.EventEmitter,this._queue=i(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(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,n){let c={directory:a,base:n};this._queue.push(c,u=>{u!==null&&this._handleError(u)})}_worker(a,n){this._scandir(a.directory,this._settings.fsScandirSettings,(c,u)=>{if(c!==null){n(c,void 0);return}for(let h of u)this._handleEntry(h,a.base);n(null,void 0)})}_handleError(a){this._isDestroyed||!r.isFatalError(this._settings,a)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,n){if(this._isDestroyed||this._isFatalError)return;let c=a.path;n!==void 0&&(a.path=r.joinPathSegments(n,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(c,n===void 0?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}};e.default=l}),SS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=fc(),s=class{static{ee(this,"AsyncProvider")}constructor(o,l){this._root=o,this._settings=l,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(o){this._reader.onError(l=>{i(o,l)}),this._reader.onEntry(l=>{this._storage.push(l)}),this._reader.onEnd(()=>{r(o,this._storage)}),this._reader.read()}};e.default=s;function i(o,l){o(l)}ee(i,"callFailureCallback");function r(o,l){o(null,l)}ee(r,"callSuccessCallback")}),ES=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("stream"),s=fc(),i=class{static{ee(this,"StreamProvider")}constructor(r,o){this._root=r,this._settings=o,this._reader=new s.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:ee(()=>{},"read"),destroy:ee(()=>{this._reader.isDestroyed||this._reader.destroy()},"destroy")})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),bS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=_n(),s=vn(),i=pc(),r=class extends i.default{static{ee(this,"SyncReader")}constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(o,l){this._queue.add({directory:o,base:l})}_handleQueue(){for(let o of this._queue.values())this._handleDirectory(o.directory,o.base)}_handleDirectory(o,l){try{let a=this._scandir(o,this._settings.fsScandirSettings);for(let n of a)this._handleEntry(n,l)}catch(a){this._handleError(a)}}_handleError(o){if(s.isFatalError(this._settings,o))throw o}_handleEntry(o,l){let a=o.path;l!==void 0&&(o.path=s.joinPathSegments(l,o.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,o)&&this._pushToStorage(o),o.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(a,l===void 0?void 0:o.path)}_pushToStorage(o){this._storage.push(o)}};e.default=r}),wS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=bS(),s=class{static{ee(this,"SyncProvider")}constructor(i,r){this._root=i,this._settings=r,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=s}),RS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=_n(),i=class{static{ee(this,"Settings")}constructor(r={}){this._options=r,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,t.sep),this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,o){return r??o}};e.default=i}),Sn=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=SS(),s=ES(),i=wS(),r=RS();e.Settings=r.default;function o(c,u,h){if(typeof u=="function"){new t.default(c,n()).read(u);return}new t.default(c,n(u)).read(h)}ee(o,"walk"),e.walk=o;function l(c,u){let h=n(u);return new i.default(c,h).read()}ee(l,"walkSync"),e.walkSync=l;function a(c,u){let h=n(u);return new s.default(c,h).read()}ee(a,"walkStream"),e.walkStream=a;function n(c={}){return c instanceof r.default?c:new r.default(c)}ee(n,"getSettings")}),En=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=Mt(),i=yt(),r=class{static{ee(this,"Reader")}constructor(o){this._settings=o,this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(o){return t.resolve(this._settings.cwd,o)}_makeEntry(o,l){let a={name:l,path:l,dirent:i.fs.createDirentFromStats(l,o)};return this._settings.stats&&(a.stats=o),a}_isFatalError(o){return!i.errno.isEnoentCodeError(o)&&!this._settings.suppressErrors}};e.default=r}),dc=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("stream"),s=Mt(),i=Sn(),r=En(),o=class extends r.default{static{ee(this,"ReaderStream")}constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=s.stat}dynamic(l,a){return this._walkStream(l,a)}static(l,a){let n=l.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(u,h,p)=>this._getEntry(n[u],l[u],a).then(f=>{f!==null&&a.entryFilter(f)&&c.push(f),u===n.length-1&&c.end(),p()}).catch(p);for(let u=0;u<n.length;u++)c.write(u);return c}_getEntry(l,a,n){return this._getStat(l).then(c=>this._makeEntry(c,a)).catch(c=>{if(n.errorFilter(c))return null;throw c})}_getStat(l){return new Promise((a,n)=>{this._stat(l,this._fsStatSettings,(c,u)=>c===null?a(u):n(c))})}};e.default=o}),AS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Sn(),s=En(),i=dc(),r=class extends s.default{static{ee(this,"ReaderAsync")}constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(o,l){return new Promise((a,n)=>{this._walkAsync(o,l,(c,u)=>{c===null?a(u):n(c)})})}async static(o,l){let a=[],n=this._readerStream.static(o,l);return new Promise((c,u)=>{n.once("error",u),n.on("data",h=>a.push(h)),n.once("end",()=>c(a))})}};e.default=r}),OS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=yt(),s=class{static{ee(this,"Matcher")}constructor(i,r,o){this._patterns=i,this._settings=r,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let i of this._patterns){let r=this._getPatternSegments(i),o=this._splitSegmentsIntoSections(r);this._storage.push({complete:o.length<=1,pattern:i,segments:r,sections:o})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(r=>t.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:t.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,r=>r.dynamic&&t.pattern.hasGlobStar(r.pattern))}};e.default=s}),PS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=OS(),s=class extends t.default{static{ee(this,"PartialMatcher")}match(i){let r=i.split("/"),o=r.length,l=this._storage.filter(a=>!a.complete||a.segments.length>o);for(let a of l){let n=a.sections[0];if(!a.complete&&o>n.length||r.every((c,u)=>{let h=a.segments[u];return!!(h.dynamic&&h.patternRe.test(c)||!h.dynamic&&h.pattern===c)}))return!0}return!1}};e.default=s}),CS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=yt(),s=PS(),i=class{static{ee(this,"DeepFilter")}constructor(r,o){this._settings=r,this._micromatchOptions=o}getFilter(r,o,l){let a=this._getMatcher(o),n=this._getNegativePatternsRe(l);return c=>this._filter(r,c,a,n)}_getMatcher(r){return new s.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let o=r.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(o,this._micromatchOptions)}_filter(r,o,l,a){if(this._isSkippedByDeep(r,o.path)||this._isSkippedSymbolicLink(o))return!1;let n=t.path.removeLeadingDotSegment(o.path);return this._isSkippedByPositivePatterns(n,l)?!1:this._isSkippedByNegativePatterns(n,a)}_isSkippedByDeep(r,o){return this._settings.deep===1/0?!1:this._getEntryLevel(r,o)>=this._settings.deep}_getEntryLevel(r,o){let l=o.split("/").length;if(r==="")return l;let a=r.split("/").length;return l-a}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,o){return!this._settings.baseNameMatch&&!o.match(r)}_isSkippedByNegativePatterns(r,o){return!t.pattern.matchAny(r,o)}};e.default=i}),TS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=yt(),s=class{static{ee(this,"EntryFilter")}constructor(i,r){this._settings=i,this._micromatchOptions=r,this.index=new Map}getFilter(i,r){let[o,l]=t.pattern.partitionAbsoluteAndRelative(r),a={positive:{all:t.pattern.convertPatternsToRe(i,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(l,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return n=>this._filter(n,a)}_filter(i,r){let o=t.path.removeLeadingDotSegment(i.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i))return!1;let l=this._isMatchToPatternsSet(o,r,i.dirent.isDirectory());return this._settings.unique&&l&&this._createIndexRecord(o),l}_isDuplicateEntry(i){return this.index.has(i)}_createIndexRecord(i){this.index.set(i,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isMatchToPatternsSet(i,r,o){return!(!this._isMatchToPatterns(i,r.positive.all,o)||this._isMatchToPatterns(i,r.negative.relative,o)||this._isMatchToAbsoluteNegative(i,r.negative.absolute,o))}_isMatchToAbsoluteNegative(i,r,o){if(r.length===0)return!1;let l=t.path.makeAbsolute(this._settings.cwd,i);return this._isMatchToPatterns(l,r,o)}_isMatchToPatterns(i,r,o){if(r.length===0)return!1;let l=t.pattern.matchAny(i,r);return!l&&o?t.pattern.matchAny(i+"/",r):l}};e.default=s}),xS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=yt(),s=class{static{ee(this,"ErrorFilter")}constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=s}),IS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=yt(),s=class{static{ee(this,"EntryTransformer")}constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let r=i.path;return this._settings.absolute&&(r=t.path.makeAbsolute(this._settings.cwd,r),r=t.path.unixify(r)),this._settings.markDirectories&&i.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:r}):r}};e.default=s}),bn=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=CS(),i=TS(),r=xS(),o=IS(),l=class{static{ee(this,"Provider")}constructor(a){this._settings=a,this.errorFilter=new r.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new s.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new o.default(this._settings)}_getRootDirectory(a){return t.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let n=a.base==="."?"":a.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.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}}};e.default=l}),kS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=AS(),s=bn(),i=class extends s.default{static{ee(this,"ProviderAsync")}constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(r){let o=this._getRootDirectory(r),l=this._getReaderOptions(r);return(await this.api(o,r,l)).map(a=>l.transform(a))}api(r,o,l){return o.dynamic?this._reader.dynamic(r,l):this._reader.static(o.patterns,l)}};e.default=i}),LS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("stream"),s=dc(),i=bn(),r=class extends i.default{static{ee(this,"ProviderStream")}constructor(){super(...arguments),this._reader=new s.default(this._settings)}read(o){let l=this._getRootDirectory(o),a=this._getReaderOptions(o),n=this.api(l,o,a),c=new t.Readable({objectMode:!0,read:ee(()=>{},"read")});return n.once("error",u=>c.emit("error",u)).on("data",u=>c.emit("data",a.transform(u))).once("end",()=>c.emit("end")),c.once("close",()=>n.destroy()),c}api(o,l,a){return l.dynamic?this._reader.dynamic(o,a):this._reader.static(l.patterns,a)}};e.default=r}),$S=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Mt(),s=Sn(),i=En(),r=class extends i.default{static{ee(this,"ReaderSync")}constructor(){super(...arguments),this._walkSync=s.walkSync,this._statSync=t.statSync}dynamic(o,l){return this._walkSync(o,l)}static(o,l){let a=[];for(let n of o){let c=this._getFullEntryPath(n),u=this._getEntry(c,n,l);u===null||!l.entryFilter(u)||a.push(u)}return a}_getEntry(o,l,a){try{let n=this._getStat(o);return this._makeEntry(n,l)}catch(n){if(a.errorFilter(n))return null;throw n}}_getStat(o){return this._statSync(o,this._fsStatSettings)}};e.default=r}),NS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=$S(),s=bn(),i=class extends s.default{static{ee(this,"ProviderSync")}constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(r){let o=this._getRootDirectory(r),l=this._getReaderOptions(r);return this.api(o,r,l).map(l.transform)}api(r,o,l){return o.dynamic?this._reader.dynamic(r,l):this._reader.static(o.patterns,l)}};e.default=i}),DS=_e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=le("fs"),s=le("os"),i=Math.max(s.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var r=class{static{ee(this,"Settings")}constructor(o={}){this._options=o,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,i),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),this.ignore=[].concat(this.ignore)}_getValue(o,l){return o===void 0?l:o}_getFileSystemMethods(o={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),o)}};e.default=r}),gc=oS(),MS=kS(),jS=LS(),BS=NS(),gn=DS(),Ye=yt();async function fs(e,t){Ve(e);let s=ds(e,MS.default,t),i=await Promise.all(s);return Ye.array.flatten(i)}ee(fs,"FastGlob");(function(e){e.glob=e,e.globSync=t,e.globStream=s,e.async=e;function t(c,u){Ve(c);let h=ds(c,BS.default,u);return Ye.array.flatten(h)}ee(t,"sync"),e.sync=t;function s(c,u){Ve(c);let h=ds(c,jS.default,u);return Ye.stream.merge(h)}ee(s,"stream"),e.stream=s;function i(c,u){Ve(c);let h=[].concat(c),p=new gn.default(u);return gc.generate(h,p)}ee(i,"generateTasks"),e.generateTasks=i;function r(c,u){Ve(c);let h=new gn.default(u);return Ye.pattern.isDynamicPattern(c,h)}ee(r,"isDynamicPattern"),e.isDynamicPattern=r;function o(c){return Ve(c),Ye.path.escape(c)}ee(o,"escapePath"),e.escapePath=o;function l(c){return Ve(c),Ye.path.convertPathToPattern(c)}ee(l,"convertPathToPattern"),e.convertPathToPattern=l;let a;(function(c){function u(p){return Ve(p),Ye.path.escapePosixPath(p)}ee(u,"escapePath"),c.escapePath=u;function h(p){return Ve(p),Ye.path.convertPosixPathToPattern(p)}ee(h,"convertPathToPattern"),c.convertPathToPattern=h})(a=e.posix||(e.posix={}));let n;(function(c){function u(p){return Ve(p),Ye.path.escapeWindowsPath(p)}ee(u,"escapePath"),c.escapePath=u;function h(p){return Ve(p),Ye.path.convertWindowsPathToPattern(p)}ee(h,"convertPathToPattern"),c.convertPathToPattern=h})(n=e.win32||(e.win32={}))})(fs||(fs={}));function ds(e,t,s){let i=[].concat(e),r=new gn.default(s),o=gc.generate(i,r),l=new t(r);return o.map(l.read,l)}ee(ds,"getWorks");function Ve(e){if(![].concat(e).every(t=>Ye.string.isString(t)&&!Ye.string.isEmpty(t)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ee(Ve,"assertPatternsInput");mc.exports=fs;});var bc=Oe((_O,Ec)=>{"use strict";var An=Object.defineProperty,HS=Object.getOwnPropertyDescriptor,GS=Object.getOwnPropertyNames,US=Object.prototype.hasOwnProperty,FS=(e,t)=>{for(var s in t)An(e,s,{get:t[s],enumerable:!0})},WS=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of GS(t))!US.call(e,r)&&r!==s&&An(e,r,{get:()=>t[r],enumerable:!(i=HS(t,r))||i.enumerable});return e},qS=e=>WS(An({},"__esModule",{value:!0}),e),vc={};FS(vc,{defaultIgnore:()=>Sc,getGlobMatcher:()=>YS,globStreamLicenses:()=>VS});Ec.exports=qS(vc);var zS=xt(),Sc=(0,zS.objectFreeze)(["**/.git","**/.npmrc","**/node_modules","**/.DS_Store","**/.gitignore","**/.hg","**/.lock-wscript","**/.npmignore","**/.svn","**/.wafpickle-*","**/.*.swp","**/._*/**","**/archived-packages/**","**/build/config.gypi","**/CVS","**/npm-debug.log","**/*.orig","**/.env","**/.eslintcache","**/.nvm","**/.tap","**/.vscode","**/*.tsbuildinfo","**/Thumbs.db","**/bower_components"]),wn;function KS(){return wn===void 0&&(wn=ac()),wn}var Rn;function XS(){if(Rn===void 0){let e=yc();Rn=e.default||e}return Rn}function VS(e,t){let{ignore:s,ignoreOriginals:i,recursive:r,...o}={__proto__:null,...t},l=[...Array.isArray(s)?s:Sc,"**/*.{cjs,cts,js,json,mjs,mts,ts}"];return i&&l.push(Et().LICENSE_ORIGINAL_GLOB_RECURSIVE),XS().globStream([r?Et().LICENSE_GLOB_RECURSIVE:Et().LICENSE_GLOB],{__proto__:null,absolute:!0,caseSensitiveMatch:!1,cwd:e,...o,...l?{ignore:l}:{}})}var _c=new Map;function YS(e,t){let s=Array.isArray(e)?e:[e],i=JSON.stringify({patterns:s,options:t}),r=_c.get(i);if(r)return r;let o=s.filter(c=>!c.startsWith("!")),l=s.filter(c=>c.startsWith("!")).map(c=>c.slice(1)),a=KS(),n={dot:!0,nocase:!0,...t,...l.length>0?{ignore:l}:{}};return r=a(o.length>0?o:s,n),_c.set(i,r),r}});var Un=Oe((kO,yu)=>{"use strict";var QS=Object.create,_r=Object.defineProperty,JS=Object.getOwnPropertyDescriptor,ZS=Object.getOwnPropertyNames,eE=Object.getPrototypeOf,tE=Object.prototype.hasOwnProperty,z=(e,t)=>_r(e,"name",{value:t,configurable:!0}),me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rE=(e,t)=>{for(var s in t)_r(e,s,{get:t[s],enumerable:!0})},xc=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ZS(t))!tE.call(e,r)&&r!==s&&_r(e,r,{get:()=>t[r],enumerable:!(i=JS(t,r))||i.enumerable});return e},ke=(e,t,s)=>(s=e!=null?QS(eE(e)):{},xc(t||!e||!e.__esModule?_r(s,"default",{value:e,enumerable:!0}):s,e)),sE=e=>xc(_r({},"__esModule",{value:!0}),e),iE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(i){return i.reduce((r,o)=>[].concat(r,o),[])}z(t,"flatten"),e.flatten=t;function s(i,r){let o=[[]],l=0;for(let a of i)r(a)?(l++,o[l]=[]):o[l].push(a);return o}z(s,"splitWhen"),e.splitWhen=s}),nE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(s){return s.code==="ENOENT"}z(t,"isEnoentCodeError"),e.isEnoentCodeError=t}),oE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{static{z(this,"DirentFromStats")}constructor(i,r){this.name=i,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 s(i,r){return new t(i,r)}z(s,"createDirentFromStats"),e.createDirentFromStats=s}),aE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=le("os"),s=le("path"),i=t.platform()==="win32",r=2,o=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,l=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,a=/^\\\\([.?])/,n=/\\(?![!()+@[\]{}])/g;function c(m){return m.replace(/\\/g,"/")}z(c,"unixify"),e.unixify=c;function u(m,y){return s.resolve(m,y)}z(u,"makeAbsolute"),e.makeAbsolute=u;function h(m){if(m.charAt(0)==="."){let y=m.charAt(1);if(y==="/"||y==="\\")return m.slice(r)}return m}z(h,"removeLeadingDotSegment"),e.removeLeadingDotSegment=h,e.escape=i?p:f;function p(m){return m.replace(l,"\\$2")}z(p,"escapeWindowsPath"),e.escapeWindowsPath=p;function f(m){return m.replace(o,"\\$2")}z(f,"escapePosixPath"),e.escapePosixPath=f,e.convertPathToPattern=i?d:g;function d(m){return p(m).replace(a,"//$1").replace(n,"/")}z(d,"convertWindowsPathToPattern"),e.convertWindowsPathToPattern=d;function g(m){return f(m)}z(g,"convertPosixPathToPattern"),e.convertPosixPathToPattern=g}),lE=me((e,t)=>{t.exports=z(function(s){if(typeof s!="string"||s==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(s);){if(i[2])return!0;s=s.slice(i.index+i[0].length)}return!1},"isExtglob")}),Ic=me((e,t)=>{var s=lE(),i={"{":"}","(":")","[":"]"},r=z(function(l){if(l[0]==="!")return!0;for(var a=0,n=-2,c=-2,u=-2,h=-2,p=-2;a<l.length;){if(l[a]==="*"||l[a+1]==="?"&&/[\].+)]/.test(l[a])||c!==-1&&l[a]==="["&&l[a+1]!=="]"&&(c<a&&(c=l.indexOf("]",a)),c>a&&(p===-1||p>c||(p=l.indexOf("\\",a),p===-1||p>c)))||u!==-1&&l[a]==="{"&&l[a+1]!=="}"&&(u=l.indexOf("}",a),u>a&&(p=l.indexOf("\\",a),p===-1||p>u))||h!==-1&&l[a]==="("&&l[a+1]==="?"&&/[:!=]/.test(l[a+2])&&l[a+3]!==")"&&(h=l.indexOf(")",a),h>a&&(p=l.indexOf("\\",a),p===-1||p>h))||n!==-1&&l[a]==="("&&l[a+1]!=="|"&&(n<a&&(n=l.indexOf("|",a)),n!==-1&&l[n+1]!==")"&&(h=l.indexOf(")",n),h>n&&(p=l.indexOf("\\",n),p===-1||p>h))))return!0;if(l[a]==="\\"){var f=l[a+1];a+=2;var d=i[f];if(d){var g=l.indexOf(d,a);g!==-1&&(a=g+1)}if(l[a]==="!")return!0}else a++}return!1},"strictCheck"),o=z(function(l){if(l[0]==="!")return!0;for(var a=0;a<l.length;){if(/[*?{}()[\]]/.test(l[a]))return!0;if(l[a]==="\\"){var n=l[a+1];a+=2;var c=i[n];if(c){var u=l.indexOf(c,a);u!==-1&&(a=u+1)}if(l[a]==="!")return!0}else a++}return!1},"relaxedCheck");t.exports=z(function(l,a){if(typeof l!="string"||l==="")return!1;if(s(l))return!0;var n=r;return a&&a.strict===!1&&(n=o),n(l)},"isGlob")}),cE=me((e,t)=>{"use strict";var s=Ic(),i=le("path").posix.dirname,r=le("os").platform()==="win32",o="/",l=/\\/g,a=/[\{\[].*[\}\]]$/,n=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=z(function(u,h){var p=Object.assign({flipBackslashes:!0},h);p.flipBackslashes&&r&&u.indexOf(o)<0&&(u=u.replace(l,o)),a.test(u)&&(u+=o),u+="a";do u=i(u);while(s(u)||n.test(u));return u.replace(c,"$1")},"globParent")}),Tn=me(e=>{"use strict";e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,s)=>t.nodes.find(i=>i.type===s),e.exceedsLimit=(t,s,i=1,r)=>r===!1||!e.isInteger(t)||!e.isInteger(s)?!1:(Number(s)-Number(t))/Number(i)>=r,e.escapeNode=(t,s=0,i)=>{let r=t.nodes[s];r&&(i&&r.type===i||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((s,i)=>(i.type==="text"&&s.push(i.value),i.type==="range"&&(i.type="text"),s),[]),e.flatten=(...t)=>{let s=[],i=z(r=>{for(let o=0;o<r.length;o++){let l=r[o];if(Array.isArray(l)){i(l);continue}l!==void 0&&s.push(l)}return s},"flat");return i(t),s}}),xn=me((e,t)=>{"use strict";var s=Tn();t.exports=(i,r={})=>{let o=z((l,a={})=>{let n=r.escapeInvalid&&s.isInvalidBrace(a),c=l.invalid===!0&&r.escapeInvalid===!0,u="";if(l.value)return(n||c)&&s.isOpenOrClose(l)?"\\"+l.value:l.value;if(l.value)return l.value;if(l.nodes)for(let h of l.nodes)u+=o(h);return u},"stringify");return o(i)}}),uE=me((e,t)=>{"use strict";t.exports=function(s){return typeof s=="number"?s-s===0:typeof s=="string"&&s.trim()!==""?Number.isFinite?Number.isFinite(+s):isFinite(+s):!1}}),hE=me((e,t)=>{"use strict";var s=uE(),i=z((S,b,w)=>{if(s(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(b===void 0||S===b)return String(S);if(s(b)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...w};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let O=String(E.relaxZeros),R=String(E.shorthand),x=String(E.capture),P=String(E.wrap),j=S+":"+b+"="+O+R+x+P;if(i.cache.hasOwnProperty(j))return i.cache[j].result;let q=Math.min(S,b),L=Math.max(S,b);if(Math.abs(q-L)===1){let $=S+"|"+b;return E.capture?`(${$})`:E.wrap===!1?$:`(?:${$})`}let G=m(S)||m(b),D={min:S,max:b,a:q,b:L},N=[],W=[];if(G&&(D.isPadded=G,D.maxLen=String(D.max).length),q<0){let $=L<0?Math.abs(L):1;W=a($,Math.abs(q),D,E),q=D.a=0}return L>=0&&(N=a(q,L,D,E)),D.negatives=W,D.positives=N,D.result=r(W,N,E),E.capture===!0?D.result=`(${D.result})`:E.wrap!==!1&&N.length+W.length>1&&(D.result=`(?:${D.result})`),i.cache[j]=D,D.result},"toRegexRange");function r(S,b,w){let E=n(S,b,"-",!1,w)||[],O=n(b,S,"",!1,w)||[],R=n(S,b,"-?",!0,w)||[];return E.concat(R).concat(O).join("|")}z(r,"collatePatterns");function o(S,b){let w=1,E=1,O=p(S,w),R=new Set([b]);for(;S<=O&&O<=b;)R.add(O),w+=1,O=p(S,w);for(O=f(b+1,E)-1;S<O&&O<=b;)R.add(O),E+=1,O=f(b+1,E)-1;return R=[...R],R.sort(u),R}z(o,"splitToRanges");function l(S,b,w){if(S===b)return{pattern:S,count:[],digits:0};let E=c(S,b),O=E.length,R="",x=0;for(let P=0;P<O;P++){let[j,q]=E[P];j===q?R+=j:j!=="0"||q!=="9"?R+=g(j,q,w):x++}return x&&(R+=w.shorthand===!0?"\\d":"[0-9]"),{pattern:R,count:[x],digits:O}}z(l,"rangeToPattern");function a(S,b,w,E){let O=o(S,b),R=[],x=S,P;for(let j=0;j<O.length;j++){let q=O[j],L=l(String(x),String(q),E),G="";if(!w.isPadded&&P&&P.pattern===L.pattern){P.count.length>1&&P.count.pop(),P.count.push(L.count[0]),P.string=P.pattern+d(P.count),x=q+1;continue}w.isPadded&&(G=y(q,w,E)),L.string=G+L.pattern+d(L.count),R.push(L),x=q+1,P=L}return R}z(a,"splitToPatterns");function n(S,b,w,E,O){let R=[];for(let x of S){let{string:P}=x;!E&&!h(b,"string",P)&&R.push(w+P),E&&h(b,"string",P)&&R.push(w+P)}return R}z(n,"filterPatterns");function c(S,b){let w=[];for(let E=0;E<S.length;E++)w.push([S[E],b[E]]);return w}z(c,"zip");function u(S,b){return S>b?1:b>S?-1:0}z(u,"compare");function h(S,b,w){return S.some(E=>E[b]===w)}z(h,"contains");function p(S,b){return Number(String(S).slice(0,-b)+"9".repeat(b))}z(p,"countNines");function f(S,b){return S-S%Math.pow(10,b)}z(f,"countZeros");function d(S){let[b=0,w=""]=S;return w||b>1?`{${b+(w?","+w:"")}}`:""}z(d,"toQuantifier");function g(S,b,w){return`[${S}${b-S===1?"":"-"}${b}]`}z(g,"toCharacterClass");function m(S){return/^-?(0+)\d/.test(S)}z(m,"hasPadding");function y(S,b,w){if(!b.isPadded)return S;let E=Math.abs(b.maxLen-String(S).length),O=w.relaxZeros!==!1;switch(E){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${E}}`:`0{${E}}`}}z(y,"padZeros"),i.cache={},i.clearCache=()=>i.cache={},t.exports=i}),kc=me((e,t)=>{"use strict";var s=le("util"),i=hE(),r=z(E=>E!==null&&typeof E=="object"&&!Array.isArray(E),"isObject"),o=z(E=>O=>E===!0?Number(O):String(O),"transform"),l=z(E=>typeof E=="number"||typeof E=="string"&&E!=="","isValidValue"),a=z(E=>Number.isInteger(+E),"isNumber"),n=z(E=>{let O=`${E}`,R=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++R]==="0";);return R>0},"zeros"),c=z((E,O,R)=>typeof E=="string"||typeof O=="string"?!0:R.stringify===!0,"stringify"),u=z((E,O,R)=>{if(O>0){let x=E[0]==="-"?"-":"";x&&(E=E.slice(1)),E=x+E.padStart(x?O-1:O,"0")}return R===!1?String(E):E},"pad"),h=z((E,O)=>{let R=E[0]==="-"?"-":"";for(R&&(E=E.slice(1),O--);E.length<O;)E="0"+E;return R?"-"+E:E},"toMaxLen"),p=z((E,O,R)=>{E.negatives.sort((L,G)=>L<G?-1:L>G?1:0),E.positives.sort((L,G)=>L<G?-1:L>G?1:0);let x=O.capture?"":"?:",P="",j="",q;return E.positives.length&&(P=E.positives.map(L=>h(String(L),R)).join("|")),E.negatives.length&&(j=`-(${x}${E.negatives.map(L=>h(String(L),R)).join("|")})`),P&&j?q=`${P}|${j}`:q=P||j,O.wrap?`(${x}${q})`:q},"toSequence"),f=z((E,O,R,x)=>{if(R)return i(E,O,{wrap:!1,...x});let P=String.fromCharCode(E);if(E===O)return P;let j=String.fromCharCode(O);return`[${P}-${j}]`},"toRange"),d=z((E,O,R)=>{if(Array.isArray(E)){let x=R.wrap===!0,P=R.capture?"":"?:";return x?`(${P}${E.join("|")})`:E.join("|")}return i(E,O,R)},"toRegex"),g=z((...E)=>new RangeError("Invalid range arguments: "+s.inspect(...E)),"rangeError"),m=z((E,O,R)=>{if(R.strictRanges===!0)throw g([E,O]);return[]},"invalidRange"),y=z((E,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},"invalidStep"),S=z((E,O,R=1,x={})=>{let P=Number(E),j=Number(O);if(!Number.isInteger(P)||!Number.isInteger(j)){if(x.strictRanges===!0)throw g([E,O]);return[]}P===0&&(P=0),j===0&&(j=0);let q=P>j,L=String(E),G=String(O),D=String(R);R=Math.max(Math.abs(R),1);let N=n(L)||n(G)||n(D),W=N?Math.max(L.length,G.length,D.length):0,$=N===!1&&c(E,O,x)===!1,U=x.transform||o($);if(x.toRegex&&R===1)return f(h(E,W),h(O,W),!0,x);let F={negatives:[],positives:[]},V=z(_=>F[_<0?"negatives":"positives"].push(Math.abs(_)),"push"),C=[],B=0;for(;q?P>=j:P<=j;)x.toRegex===!0&&R>1?V(P):C.push(u(U(P,B),W,$)),P=q?P-R:P+R,B++;return x.toRegex===!0?R>1?p(F,x,W):d(C,null,{wrap:!1,...x}):C},"fillNumbers"),b=z((E,O,R=1,x={})=>{if(!a(E)&&E.length>1||!a(O)&&O.length>1)return m(E,O,x);let P=x.transform||($=>String.fromCharCode($)),j=`${E}`.charCodeAt(0),q=`${O}`.charCodeAt(0),L=j>q,G=Math.min(j,q),D=Math.max(j,q);if(x.toRegex&&R===1)return f(G,D,!1,x);let N=[],W=0;for(;L?j>=q:j<=q;)N.push(P(j,W)),j=L?j-R:j+R,W++;return x.toRegex===!0?d(N,null,{wrap:!1,options:x}):N},"fillLetters"),w=z((E,O,R,x={})=>{if(O==null&&l(E))return[E];if(!l(E)||!l(O))return m(E,O,x);if(typeof R=="function")return w(E,O,1,{transform:R});if(r(R))return w(E,O,0,R);let P={...x};return P.capture===!0&&(P.wrap=!0),R=R||P.step||1,a(R)?a(E)&&a(O)?S(E,O,R,P):b(E,O,Math.max(Math.abs(R),1),P):R!=null&&!r(R)?y(R,P):w(E,O,1,R)},"fill");t.exports=w}),pE=me((e,t)=>{"use strict";var s=kc(),i=Tn(),r=z((o,l={})=>{let a=z((n,c={})=>{let u=i.isInvalidBrace(c),h=n.invalid===!0&&l.escapeInvalid===!0,p=u===!0||h===!0,f=l.escapeInvalid===!0?"\\":"",d="";if(n.isOpen===!0||n.isClose===!0)return f+n.value;if(n.type==="open")return p?f+n.value:"(";if(n.type==="close")return p?f+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":p?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let g=i.reduce(n.nodes),m=s(...g,{...l,wrap:!1,toRegex:!0,strictZeros:!0});if(m.length!==0)return g.length>1&&m.length>1?`(${m})`:m}if(n.nodes)for(let g of n.nodes)d+=a(g,n);return d},"walk");return a(o)},"compile");t.exports=r}),fE=me((e,t)=>{"use strict";var s=kc(),i=xn(),r=Tn(),o=z((a="",n="",c=!1)=>{let u=[];if(a=[].concat(a),n=[].concat(n),!n.length)return a;if(!a.length)return c?r.flatten(n).map(h=>`{${h}}`):n;for(let h of a)if(Array.isArray(h))for(let p of h)u.push(o(p,n,c));else for(let p of n)c===!0&&typeof p=="string"&&(p=`{${p}}`),u.push(Array.isArray(p)?o(h,p,c):h+p);return r.flatten(u)},"append"),l=z((a,n={})=>{let c=n.rangeLimit===void 0?1e3:n.rangeLimit,u=z((h,p={})=>{h.queue=[];let f=p,d=p.queue;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,d=f.queue;if(h.invalid||h.dollar){d.push(o(d.pop(),i(h,n)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){d.push(o(d.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let S=r.reduce(h.nodes);if(r.exceedsLimit(...S,n.step,c))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let b=s(...S,n);b.length===0&&(b=i(h,n)),d.push(o(d.pop(),b)),h.nodes=[];return}let g=r.encloseBrace(h),m=h.queue,y=h;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,m=y.queue;for(let S=0;S<h.nodes.length;S++){let b=h.nodes[S];if(b.type==="comma"&&h.type==="brace"){S===1&&m.push(""),m.push("");continue}if(b.type==="close"){d.push(o(d.pop(),m,g));continue}if(b.value&&b.type!=="open"){m.push(o(m.pop(),b.value));continue}b.nodes&&u(b,h)}return m},"walk");return r.flatten(u(a))},"expand");t.exports=l}),dE=me((e,t)=>{"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
39
39
  `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),gE=me((e,t)=>{"use strict";var s=xn(),{MAX_LENGTH:i,CHAR_BACKSLASH:r,CHAR_BACKTICK:o,CHAR_COMMA:l,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:n,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:f,CHAR_DOUBLE_QUOTE:d,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=dE(),S=z((b,w={})=>{if(typeof b!="string")throw new TypeError("Expected a string");let E=w||{},O=typeof E.maxLength=="number"?Math.min(i,E.maxLength):i;if(b.length>O)throw new SyntaxError(`Input length (${b.length}), exceeds max characters (${O})`);let R={type:"root",input:b,nodes:[]},x=[R],P=R,j=R,q=0,L=b.length,G=0,D=0,N,W=z(()=>b[G++],"advance"),$=z(U=>{if(U.type==="text"&&j.type==="dot"&&(j.type="text"),j&&j.type==="text"&&U.type==="text"){j.value+=U.value;return}return P.nodes.push(U),U.parent=P,U.prev=j,j=U,U},"push");for($({type:"bos"});G<L;)if(P=x[x.length-1],N=W(),!(N===y||N===m)){if(N===r){$({type:"text",value:(w.keepEscaping?N:"")+W()});continue}if(N===f){$({type:"text",value:"\\"+N});continue}if(N===p){q++;let U;for(;G<L&&(U=W());){if(N+=U,U===p){q++;continue}if(U===r){N+=W();continue}if(U===f&&(q--,q===0))break}$({type:"text",value:N});continue}if(N===n){P=$({type:"paren",nodes:[]}),x.push(P),$({type:"text",value:N});continue}if(N===c){if(P.type!=="paren"){$({type:"text",value:N});continue}P=x.pop(),$({type:"text",value:N}),P=x[x.length-1];continue}if(N===d||N===g||N===o){let U=N,F;for(w.keepQuotes!==!0&&(N="");G<L&&(F=W());){if(F===r){N+=F+W();continue}if(F===U){w.keepQuotes===!0&&(N+=F);break}N+=F}$({type:"text",value:N});continue}if(N===u){D++;let U={type:"brace",open:!0,close:!1,dollar:j.value&&j.value.slice(-1)==="$"||P.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]};P=$(U),x.push(P),$({type:"open",value:N});continue}if(N===h){if(P.type!=="brace"){$({type:"text",value:N});continue}let U="close";P=x.pop(),P.close=!0,$({type:U,value:N}),D--,P=x[x.length-1];continue}if(N===l&&D>0){if(P.ranges>0){P.ranges=0;let U=P.nodes.shift();P.nodes=[U,{type:"text",value:s(P)}]}$({type:"comma",value:N}),P.commas++;continue}if(N===a&&D>0&&P.commas===0){let U=P.nodes;if(D===0||U.length===0){$({type:"text",value:N});continue}if(j.type==="dot"){if(P.range=[],j.value+=N,j.type="range",P.nodes.length!==3&&P.nodes.length!==5){P.invalid=!0,P.ranges=0,j.type="text";continue}P.ranges++,P.args=[];continue}if(j.type==="range"){U.pop();let F=U[U.length-1];F.value+=j.value+N,j=F,P.ranges--;continue}$({type:"dot",value:N});continue}$({type:"text",value:N})}do if(P=x.pop(),P.type!=="root"){P.nodes.forEach(V=>{V.nodes||(V.type==="open"&&(V.isOpen=!0),V.type==="close"&&(V.isClose=!0),V.nodes||(V.type="text"),V.invalid=!0)});let U=x[x.length-1],F=U.nodes.indexOf(P);U.nodes.splice(F,1,...P.nodes)}while(x.length>0);return $({type:"eos"}),R},"parse");t.exports=S}),mE=me((e,t)=>{"use strict";var s=xn(),i=pE(),r=fE(),o=gE(),l=z((a,n={})=>{let c=[];if(Array.isArray(a))for(let u of a){let h=l.create(u,n);Array.isArray(h)?c.push(...h):c.push(h)}else c=[].concat(l.create(a,n));return n&&n.expand===!0&&n.nodupes===!0&&(c=[...new Set(c)]),c},"braces");l.parse=(a,n={})=>o(a,n),l.stringify=(a,n={})=>s(typeof a=="string"?l.parse(a,n):a,n),l.compile=(a,n={})=>(typeof a=="string"&&(a=l.parse(a,n)),i(a,n)),l.expand=(a,n={})=>{typeof a=="string"&&(a=l.parse(a,n));let c=r(a,n);return n.noempty===!0&&(c=c.filter(Boolean)),n.nodupes===!0&&(c=[...new Set(c)]),c},l.create=(a,n={})=>a===""||a.length<3?[a]:n.expand!==!0?l.compile(a,n):l.expand(a,n),t.exports=l}),_s=me((e,t)=>{"use strict";var s=le("path"),i="\\\\/",r=`[^${i}]`,o="\\.",l="\\+",a="\\?",n="\\/",c="(?=.)",u="[^/]",h=`(?:${n}|$)`,p=`(?:^|${n})`,f=`${o}{1,2}${h}`,d=`(?!${o})`,g=`(?!${p}${f})`,m=`(?!${o}{0,1}${h})`,y=`(?!${f})`,S=`[^.${n}]`,b=`${u}*?`,w={DOT_LITERAL:o,PLUS_LITERAL:l,QMARK_LITERAL:a,SLASH_LITERAL:n,ONE_CHAR:c,QMARK:u,END_ANCHOR:h,DOTS_SLASH:f,NO_DOT:d,NO_DOTS:g,NO_DOT_SLASH:m,NO_DOTS_SLASH:y,QMARK_NO_DOT:S,STAR:b,START_ANCHOR:p},E={...w,SLASH_LITERAL:`[${i}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},O={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:O,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:s.sep,extglobChars(R){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${R.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(R){return R===!0?E:w}}}),vs=me(e=>{"use strict";var t=le("path"),s=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:l}=_s();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>o.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(l,"\\$1"),e.toPosixSlashes=a=>a.replace(i,"/"),e.removeBackslashes=a=>a.replace(r,n=>n==="\\"?"":n),e.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:s===!0||t.sep==="\\",e.escapeLast=(a,n,c)=>{let u=a.lastIndexOf(n,c);return u===-1?a:a[u-1]==="\\"?e.escapeLast(a,n,u-1):`${a.slice(0,u)}\\${a.slice(u)}`},e.removePrefix=(a,n={})=>{let c=a;return c.startsWith("./")&&(c=c.slice(2),n.prefix="./"),c},e.wrapOutput=(a,n={},c={})=>{let u=c.contains?"":"^",h=c.contains?"":"$",p=`${u}(?:${a})${h}`;return n.negated===!0&&(p=`(?:^(?!${p}).*$)`),p}}),yE=me((e,t)=>{"use strict";var s=vs(),{CHAR_ASTERISK:i,CHAR_AT:r,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:l,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:n,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:f,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:y}=_s(),S=z(E=>E===c||E===o,"isPathSeparator"),b=z(E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},"depth"),w=z((E,O)=>{let R=O||{},x=E.length-1,P=R.parts===!0||R.scanToEnd===!0,j=[],q=[],L=[],G=E,D=-1,N=0,W=0,$=!1,U=!1,F=!1,V=!1,C=!1,B=!1,_=!1,Z=!1,oe=!1,Q=!1,A=0,T,I,M={value:"",depth:0,isGlob:!1},te=z(()=>D>=x,"eos"),se=z(()=>G.charCodeAt(D+1),"peek"),ie=z(()=>(T=I,G.charCodeAt(++D)),"advance");for(;D<x;){I=ie();let J;if(I===o){_=M.backslashes=!0,I=ie(),I===u&&(B=!0);continue}if(B===!0||I===u){for(A++;te()!==!0&&(I=ie());){if(I===o){_=M.backslashes=!0,ie();continue}if(I===u){A++;continue}if(B!==!0&&I===a&&(I=ie())===a){if($=M.isBrace=!0,F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(B!==!0&&I===l){if($=M.isBrace=!0,F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(I===g&&(A--,A===0)){B=!1,$=M.isBrace=!0,Q=!0;break}}if(P===!0)continue;break}if(I===c){if(j.push(D),q.push(M),M={value:"",depth:0,isGlob:!1},Q===!0)continue;if(T===a&&D===N+1){N+=2;continue}W=D+1;continue}if(R.noext!==!0&&(I===f||I===r||I===i||I===d||I===n)&&se()===h){if(F=M.isGlob=!0,V=M.isExtglob=!0,Q=!0,I===n&&D===N&&(oe=!0),P===!0){for(;te()!==!0&&(I=ie());){if(I===o){_=M.backslashes=!0,I=ie();continue}if(I===m){F=M.isGlob=!0,Q=!0;break}}continue}break}if(I===i){if(T===i&&(C=M.isGlobstar=!0),F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(I===d){if(F=M.isGlob=!0,Q=!0,P===!0)continue;break}if(I===p){for(;te()!==!0&&(J=ie());){if(J===o){_=M.backslashes=!0,ie();continue}if(J===y){U=M.isBracket=!0,F=M.isGlob=!0,Q=!0;break}}if(P===!0)continue;break}if(R.nonegate!==!0&&I===n&&D===N){Z=M.negated=!0,N++;continue}if(R.noparen!==!0&&I===h){if(F=M.isGlob=!0,P===!0){for(;te()!==!0&&(I=ie());){if(I===h){_=M.backslashes=!0,I=ie();continue}if(I===m){Q=!0;break}}continue}break}if(F===!0){if(Q=!0,P===!0)continue;break}}R.noext===!0&&(V=!1,F=!1);let v=G,H="",Y="";N>0&&(H=G.slice(0,N),G=G.slice(N),W-=N),v&&F===!0&&W>0?(v=G.slice(0,W),Y=G.slice(W)):F===!0?(v="",Y=G):v=G,v&&v!==""&&v!=="/"&&v!==G&&S(v.charCodeAt(v.length-1))&&(v=v.slice(0,-1)),R.unescape===!0&&(Y&&(Y=s.removeBackslashes(Y)),v&&_===!0&&(v=s.removeBackslashes(v)));let re={prefix:H,input:E,start:N,base:v,glob:Y,isBrace:$,isBracket:U,isGlob:F,isExtglob:V,isGlobstar:C,negated:Z,negatedExtglob:oe};if(R.tokens===!0&&(re.maxDepth=0,S(I)||q.push(M),re.tokens=q),R.parts===!0||R.tokens===!0){let J;for(let ue=0;ue<j.length;ue++){let ge=J?J+1:N,X=j[ue],ce=E.slice(ge,X);R.tokens&&(ue===0&&N!==0?(q[ue].isPrefix=!0,q[ue].value=H):q[ue].value=ce,b(q[ue]),re.maxDepth+=q[ue].depth),(ue!==0||ce!=="")&&L.push(ce),J=X}if(J&&J+1<E.length){let ue=E.slice(J+1);L.push(ue),R.tokens&&(q[q.length-1].value=ue,b(q[q.length-1]),re.maxDepth+=q[q.length-1].depth)}re.slashes=j,re.parts=L}return re},"scan");t.exports=w}),_E=me((e,t)=>{"use strict";var s=_s(),i=vs(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:l,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:n}=s,c=z((p,f)=>{if(typeof f.expandRange=="function")return f.expandRange(...p,f);p.sort();let d=`[${p.join("-")}]`;try{new RegExp(d)}catch{return p.map(g=>i.escapeRegex(g)).join("..")}return d},"expandRange"),u=z((p,f)=>`Missing ${p}: "${f}" - use "\\\\${f}" to match literal characters`,"syntaxError"),h=z((p,f)=>{if(typeof p!="string")throw new TypeError("Expected a string");p=n[p]||p;let d={...f},g=typeof d.maxLength=="number"?Math.min(r,d.maxLength):r,m=p.length;if(m>g)throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${g}`);let y={type:"bos",value:"",output:d.prepend||""},S=[y],b=d.capture?"":"?:",w=i.isWindows(f),E=s.globChars(w),O=s.extglobChars(E),{DOT_LITERAL:R,PLUS_LITERAL:x,SLASH_LITERAL:P,ONE_CHAR:j,DOTS_SLASH:q,NO_DOT:L,NO_DOT_SLASH:G,NO_DOTS_SLASH:D,QMARK:N,QMARK_NO_DOT:W,STAR:$,START_ANCHOR:U}=E,F=z(X=>`(${b}(?:(?!${U}${X.dot?q:R}).)*?)`,"globstar"),V=d.dot?"":L,C=d.dot?N:W,B=d.bash===!0?F(d):$;d.capture&&(B=`(${B})`),typeof d.noext=="boolean"&&(d.noextglob=d.noext);let _={input:p,index:-1,start:0,dot:d.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};p=i.removePrefix(p,_),m=p.length;let Z=[],oe=[],Q=[],A=y,T,I=z(()=>_.index===m-1,"eos"),M=_.peek=(X=1)=>p[_.index+X],te=_.advance=()=>p[++_.index]||"",se=z(()=>p.slice(_.index+1),"remaining"),ie=z((X="",ce=0)=>{_.consumed+=X,_.index+=ce},"consume"),v=z(X=>{_.output+=X.output!=null?X.output:X.value,ie(X.value)},"append"),H=z(()=>{let X=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)te(),_.start++,X++;return X%2===0?!1:(_.negated=!0,_.start++,!0)},"negate"),Y=z(X=>{_[X]++,Q.push(X)},"increment"),re=z(X=>{_[X]--,Q.pop()},"decrement"),J=z(X=>{if(A.type==="globstar"){let ce=_.braces>0&&(X.type==="comma"||X.type==="brace"),K=X.extglob===!0||Z.length&&(X.type==="pipe"||X.type==="paren");X.type!=="slash"&&X.type!=="paren"&&!ce&&!K&&(_.output=_.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=B,_.output+=A.output)}if(Z.length&&X.type!=="paren"&&(Z[Z.length-1].inner+=X.value),(X.value||X.output)&&v(X),A&&A.type==="text"&&X.type==="text"){A.value+=X.value,A.output=(A.output||"")+X.value;return}X.prev=A,S.push(X),A=X},"push"),ue=z((X,ce)=>{let K={...O[ce],conditions:1,inner:""};K.prev=A,K.parens=_.parens,K.output=_.output;let ae=(d.capture?"(":"")+K.open;Y("parens"),J({type:X,value:ce,output:_.output?"":j}),J({type:"paren",extglob:!0,value:te(),output:ae}),Z.push(K)},"extglobOpen"),ge=z(X=>{let ce=X.close+(d.capture?")":""),K;if(X.type==="negate"){let ae=B;if(X.inner&&X.inner.length>1&&X.inner.includes("/")&&(ae=F(d)),(ae!==B||I()||/^\)+$/.test(se()))&&(ce=X.close=`)$))${ae}`),X.inner.includes("*")&&(K=se())&&/^\.[^\\/.]+$/.test(K)){let de=h(K,{...f,fastpaths:!1}).output;ce=X.close=`)${de})${ae})`}X.prev.type==="bos"&&(_.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:T,output:ce}),re("parens")},"extglobClose");if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(p)){let X=!1,ce=p.replace(a,(K,ae,de,ve,ne,he)=>ve==="\\"?(X=!0,K):ve==="?"?ae?ae+ve+(ne?N.repeat(ne.length):""):he===0?C+(ne?N.repeat(ne.length):""):N.repeat(de.length):ve==="."?R.repeat(de.length):ve==="*"?ae?ae+ve+(ne?B:""):B:ae?K:`\\${K}`);return X===!0&&(d.unescape===!0?ce=ce.replace(/\\/g,""):ce=ce.replace(/\\+/g,K=>K.length%2===0?"\\\\":K?"\\":"")),ce===p&&d.contains===!0?(_.output=p,_):(_.output=i.wrapOutput(ce,_,f),_)}for(;!I();){if(T=te(),T==="\0")continue;if(T==="\\"){let K=M();if(K==="/"&&d.bash!==!0||K==="."||K===";")continue;if(!K){T+="\\",J({type:"text",value:T});continue}let ae=/^\\+/.exec(se()),de=0;if(ae&&ae[0].length>2&&(de=ae[0].length,_.index+=de,de%2!==0&&(T+="\\")),d.unescape===!0?T=te():T+=te(),_.brackets===0){J({type:"text",value:T});continue}}if(_.brackets>0&&(T!=="]"||A.value==="["||A.value==="[^")){if(d.posix!==!1&&T===":"){let K=A.value.slice(1);if(K.includes("[")&&(A.posix=!0,K.includes(":"))){let ae=A.value.lastIndexOf("["),de=A.value.slice(0,ae),ve=A.value.slice(ae+2),ne=o[ve];if(ne){A.value=de+ne,_.backtrack=!0,te(),!y.output&&S.indexOf(A)===1&&(y.output=j);continue}}}(T==="["&&M()!==":"||T==="-"&&M()==="]")&&(T=`\\${T}`),T==="]"&&(A.value==="["||A.value==="[^")&&(T=`\\${T}`),d.posix===!0&&T==="!"&&A.value==="["&&(T="^"),A.value+=T,v({value:T});continue}if(_.quotes===1&&T!=='"'){T=i.escapeRegex(T),A.value+=T,v({value:T});continue}if(T==='"'){_.quotes=_.quotes===1?0:1,d.keepQuotes===!0&&J({type:"text",value:T});continue}if(T==="("){Y("parens"),J({type:"paren",value:T});continue}if(T===")"){if(_.parens===0&&d.strictBrackets===!0)throw new SyntaxError(u("opening","("));let K=Z[Z.length-1];if(K&&_.parens===K.parens+1){ge(Z.pop());continue}J({type:"paren",value:T,output:_.parens?")":"\\)"}),re("parens");continue}if(T==="["){if(d.nobracket===!0||!se().includes("]")){if(d.nobracket!==!0&&d.strictBrackets===!0)throw new SyntaxError(u("closing","]"));T=`\\${T}`}else Y("brackets");J({type:"bracket",value:T});continue}if(T==="]"){if(d.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){J({type:"text",value:T,output:`\\${T}`});continue}if(_.brackets===0){if(d.strictBrackets===!0)throw new SyntaxError(u("opening","["));J({type:"text",value:T,output:`\\${T}`});continue}re("brackets");let K=A.value.slice(1);if(A.posix!==!0&&K[0]==="^"&&!K.includes("/")&&(T=`/${T}`),A.value+=T,v({value:T}),d.literalBrackets===!1||i.hasRegexChars(K))continue;let ae=i.escapeRegex(A.value);if(_.output=_.output.slice(0,-A.value.length),d.literalBrackets===!0){_.output+=ae,A.value=ae;continue}A.value=`(${b}${ae}|${A.value})`,_.output+=A.value;continue}if(T==="{"&&d.nobrace!==!0){Y("braces");let K={type:"brace",value:T,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};oe.push(K),J(K);continue}if(T==="}"){let K=oe[oe.length-1];if(d.nobrace===!0||!K){J({type:"text",value:T,output:T});continue}let ae=")";if(K.dots===!0){let de=S.slice(),ve=[];for(let ne=de.length-1;ne>=0&&(S.pop(),de[ne].type!=="brace");ne--)de[ne].type!=="dots"&&ve.unshift(de[ne].value);ae=c(ve,d),_.backtrack=!0}if(K.comma!==!0&&K.dots!==!0){let de=_.output.slice(0,K.outputIndex),ve=_.tokens.slice(K.tokensIndex);K.value=K.output="\\{",T=ae="\\}",_.output=de;for(let ne of ve)_.output+=ne.output||ne.value}J({type:"brace",value:T,output:ae}),re("braces"),oe.pop();continue}if(T==="|"){Z.length>0&&Z[Z.length-1].conditions++,J({type:"text",value:T});continue}if(T===","){let K=T,ae=oe[oe.length-1];ae&&Q[Q.length-1]==="braces"&&(ae.comma=!0,K="|"),J({type:"comma",value:T,output:K});continue}if(T==="/"){if(A.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",S.pop(),A=y;continue}J({type:"slash",value:T,output:P});continue}if(T==="."){if(_.braces>0&&A.type==="dot"){A.value==="."&&(A.output=R);let K=oe[oe.length-1];A.type="dots",A.output+=T,A.value+=T,K.dots=!0;continue}if(_.braces+_.parens===0&&A.type!=="bos"&&A.type!=="slash"){J({type:"text",value:T,output:R});continue}J({type:"dot",value:T,output:R});continue}if(T==="?"){if(!(A&&A.value==="(")&&d.noextglob!==!0&&M()==="("&&M(2)!=="?"){ue("qmark",T);continue}if(A&&A.type==="paren"){let K=M(),ae=T;if(K==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(K)||K==="<"&&!/<([!=]|\w+>)/.test(se()))&&(ae=`\\${T}`),J({type:"text",value:T,output:ae});continue}if(d.dot!==!0&&(A.type==="slash"||A.type==="bos")){J({type:"qmark",value:T,output:W});continue}J({type:"qmark",value:T,output:N});continue}if(T==="!"){if(d.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){ue("negate",T);continue}if(d.nonegate!==!0&&_.index===0){H();continue}}if(T==="+"){if(d.noextglob!==!0&&M()==="("&&M(2)!=="?"){ue("plus",T);continue}if(A&&A.value==="("||d.regex===!1){J({type:"plus",value:T,output:x});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||_.parens>0){J({type:"plus",value:T});continue}J({type:"plus",value:x});continue}if(T==="@"){if(d.noextglob!==!0&&M()==="("&&M(2)!=="?"){J({type:"at",extglob:!0,value:T,output:""});continue}J({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);let K=l.exec(se());K&&(T+=K[0],_.index+=K[0].length),J({type:"text",value:T});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=T,A.output=B,_.backtrack=!0,_.globstar=!0,ie(T);continue}let X=se();if(d.noextglob!==!0&&/^\([^?]/.test(X)){ue("star",T);continue}if(A.type==="star"){if(d.noglobstar===!0){ie(T);continue}let K=A.prev,ae=K.prev,de=K.type==="slash"||K.type==="bos",ve=ae&&(ae.type==="star"||ae.type==="globstar");if(d.bash===!0&&(!de||X[0]&&X[0]!=="/")){J({type:"star",value:T,output:""});continue}let ne=_.braces>0&&(K.type==="comma"||K.type==="brace"),he=Z.length&&(K.type==="pipe"||K.type==="paren");if(!de&&K.type!=="paren"&&!ne&&!he){J({type:"star",value:T,output:""});continue}for(;X.slice(0,3)==="/**";){let pe=p[_.index+4];if(pe&&pe!=="/")break;X=X.slice(3),ie("/**",3)}if(K.type==="bos"&&I()){A.type="globstar",A.value+=T,A.output=F(d),_.output=A.output,_.globstar=!0,ie(T);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&!ve&&I()){_.output=_.output.slice(0,-(K.output+A.output).length),K.output=`(?:${K.output}`,A.type="globstar",A.output=F(d)+(d.strictSlashes?")":"|$)"),A.value+=T,_.globstar=!0,_.output+=K.output+A.output,ie(T);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&X[0]==="/"){let pe=X[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(K.output+A.output).length),K.output=`(?:${K.output}`,A.type="globstar",A.output=`${F(d)}${P}|${P}${pe})`,A.value+=T,_.output+=K.output+A.output,_.globstar=!0,ie(T+te()),J({type:"slash",value:"/",output:""});continue}if(K.type==="bos"&&X[0]==="/"){A.type="globstar",A.value+=T,A.output=`(?:^|${P}|${F(d)}${P})`,_.output=A.output,_.globstar=!0,ie(T+te()),J({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-A.output.length),A.type="globstar",A.output=F(d),A.value+=T,_.output+=A.output,_.globstar=!0,ie(T);continue}let ce={type:"star",value:T,output:B};if(d.bash===!0){ce.output=".*?",(A.type==="bos"||A.type==="slash")&&(ce.output=V+ce.output),J(ce);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&d.regex===!0){ce.output=T,J(ce);continue}(_.index===_.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(_.output+=G,A.output+=G):d.dot===!0?(_.output+=D,A.output+=D):(_.output+=V,A.output+=V),M()!=="*"&&(_.output+=j,A.output+=j)),J(ce)}for(;_.brackets>0;){if(d.strictBrackets===!0)throw new SyntaxError(u("closing","]"));_.output=i.escapeLast(_.output,"["),re("brackets")}for(;_.parens>0;){if(d.strictBrackets===!0)throw new SyntaxError(u("closing",")"));_.output=i.escapeLast(_.output,"("),re("parens")}for(;_.braces>0;){if(d.strictBrackets===!0)throw new SyntaxError(u("closing","}"));_.output=i.escapeLast(_.output,"{"),re("braces")}if(d.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&J({type:"maybe_slash",value:"",output:`${P}?`}),_.backtrack===!0){_.output="";for(let X of _.tokens)_.output+=X.output!=null?X.output:X.value,X.suffix&&(_.output+=X.suffix)}return _},"parse");h.fastpaths=(p,f)=>{let d={...f},g=typeof d.maxLength=="number"?Math.min(r,d.maxLength):r,m=p.length;if(m>g)throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${g}`);p=n[p]||p;let y=i.isWindows(f),{DOT_LITERAL:S,SLASH_LITERAL:b,ONE_CHAR:w,DOTS_SLASH:E,NO_DOT:O,NO_DOTS:R,NO_DOTS_SLASH:x,STAR:P,START_ANCHOR:j}=s.globChars(y),q=d.dot?R:O,L=d.dot?x:O,G=d.capture?"":"?:",D={negated:!1,prefix:""},N=d.bash===!0?".*?":P;d.capture&&(N=`(${N})`);let W=z(V=>V.noglobstar===!0?N:`(${G}(?:(?!${j}${V.dot?E:S}).)*?)`,"globstar"),$=z(V=>{switch(V){case"*":return`${q}${w}${N}`;case".*":return`${S}${w}${N}`;case"*.*":return`${q}${N}${S}${w}${N}`;case"*/*":return`${q}${N}${b}${w}${L}${N}`;case"**":return q+W(d);case"**/*":return`(?:${q}${W(d)}${b})?${L}${w}${N}`;case"**/*.*":return`(?:${q}${W(d)}${b})?${L}${N}${S}${w}${N}`;case"**/.*":return`(?:${q}${W(d)}${b})?${S}${w}${N}`;default:{let C=/^(.*?)\.(\w+)$/.exec(V);if(!C)return;let B=$(C[1]);return B?B+S+C[2]:void 0}}},"create"),U=i.removePrefix(p,D),F=$(U);return F&&d.strictSlashes!==!0&&(F+=`${b}?`),F},t.exports=h}),vE=me((e,t)=>{"use strict";var s=le("path"),i=yE(),r=_E(),o=vs(),l=_s(),a=z(c=>c&&typeof c=="object"&&!Array.isArray(c),"isObject"),n=z((c,u,h=!1)=>{if(Array.isArray(c)){let b=c.map(w=>n(w,u,h));return z(w=>{for(let E of b){let O=E(w);if(O)return O}return!1},"arrayMatcher")}let p=a(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!p)throw new TypeError("Expected pattern to be a non-empty string");let f=u||{},d=o.isWindows(u),g=p?n.compileRe(c,u):n.makeRe(c,u,!1,!0),m=g.state;delete g.state;let y=z(()=>!1,"isIgnored");if(f.ignore){let b={...u,ignore:null,onMatch:null,onResult:null};y=n(f.ignore,b,h)}let S=z((b,w=!1)=>{let{isMatch:E,match:O,output:R}=n.test(b,g,u,{glob:c,posix:d}),x={glob:c,state:m,regex:g,posix:d,input:b,output:R,match:O,isMatch:E};return typeof f.onResult=="function"&&f.onResult(x),E===!1?(x.isMatch=!1,w?x:!1):y(b)?(typeof f.onIgnore=="function"&&f.onIgnore(x),x.isMatch=!1,w?x:!1):(typeof f.onMatch=="function"&&f.onMatch(x),w?x:!0)},"matcher");return h&&(S.state=m),S},"picomatch");n.test=(c,u,h,{glob:p,posix:f}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let d=h||{},g=d.format||(f?o.toPosixSlashes:null),m=c===p,y=m&&g?g(c):c;return m===!1&&(y=g?g(c):c,m=y===p),(m===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?m=n.matchBase(c,u,h,f):m=u.exec(y)),{isMatch:!!m,match:m,output:y}},n.matchBase=(c,u,h,p=o.isWindows(h))=>(u instanceof RegExp?u:n.makeRe(u,h)).test(s.basename(c)),n.isMatch=(c,u,h)=>n(u,h)(c),n.parse=(c,u)=>Array.isArray(c)?c.map(h=>n.parse(h,u)):r(c,{...u,fastpaths:!1}),n.scan=(c,u)=>i(c,u),n.compileRe=(c,u,h=!1,p=!1)=>{if(h===!0)return c.output;let f=u||{},d=f.contains?"":"^",g=f.contains?"":"$",m=`${d}(?:${c.output})${g}`;c&&c.negated===!0&&(m=`^(?!${m}).*$`);let y=n.toRegex(m,u);return p===!0&&(y.state=c),y},n.makeRe=(c,u={},h=!1,p=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let f={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(f.output=r.fastpaths(c,u)),f.output||(f=r(c,u)),n.compileRe(f,u,h,p)},n.toRegex=(c,u)=>{try{let h=u||{};return new RegExp(c,h.flags||(h.nocase?"i":""))}catch(h){if(u&&u.debug===!0)throw h;return/$^/}},n.constants=l,t.exports=n}),SE=me((e,t)=>{"use strict";t.exports=vE()}),EE=me((e,t)=>{"use strict";var s=le("util"),i=mE(),r=SE(),o=vs(),l=z(c=>c===""||c==="./","isEmptyString"),a=z(c=>{let u=c.indexOf("{");return u>-1&&c.indexOf("}",u)>-1},"hasBraces"),n=z((c,u,h)=>{u=[].concat(u),c=[].concat(c);let p=new Set,f=new Set,d=new Set,g=0,m=z(S=>{d.add(S.output),h&&h.onResult&&h.onResult(S)},"onResult");for(let S=0;S<u.length;S++){let b=r(String(u[S]),{...h,onResult:m},!0),w=b.state.negated||b.state.negatedExtglob;w&&g++;for(let E of c){let O=b(E,!0);(w?!O.isMatch:O.isMatch)&&(w?p.add(O.output):(p.delete(O.output),f.add(O.output)))}}let y=(g===u.length?[...d]:[...f]).filter(S=>!p.has(S));if(h&&y.length===0){if(h.failglob===!0)throw new Error(`No matches found for "${u.join(", ")}"`);if(h.nonull===!0||h.nullglob===!0)return h.unescape?u.map(S=>S.replace(/\\/g,"")):u}return y},"micromatch");n.match=n,n.matcher=(c,u)=>r(c,u),n.isMatch=(c,u,h)=>r(u,h)(c),n.any=n.isMatch,n.not=(c,u,h={})=>{u=[].concat(u).map(String);let p=new Set,f=[],d=z(m=>{h.onResult&&h.onResult(m),f.push(m.output)},"onResult"),g=new Set(n(c,u,{...h,onResult:d}));for(let m of f)g.has(m)||p.add(m);return[...p]},n.contains=(c,u,h)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${s.inspect(c)}"`);if(Array.isArray(u))return u.some(p=>n.contains(c,p,h));if(typeof u=="string"){if(l(c)||l(u))return!1;if(c.includes(u)||c.startsWith("./")&&c.slice(2).includes(u))return!0}return n.isMatch(c,u,{...h,contains:!0})},n.matchKeys=(c,u,h)=>{if(!o.isObject(c))throw new TypeError("Expected the first argument to be an object");let p=n(Object.keys(c),u,h),f={};for(let d of p)f[d]=c[d];return f},n.some=(c,u,h)=>{let p=[].concat(c);for(let f of[].concat(u)){let d=r(String(f),h);if(p.some(g=>d(g)))return!0}return!1},n.every=(c,u,h)=>{let p=[].concat(c);for(let f of[].concat(u)){let d=r(String(f),h);if(!p.every(g=>d(g)))return!1}return!0},n.all=(c,u,h)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${s.inspect(c)}"`);return[].concat(u).every(p=>r(p,h)(c))},n.capture=(c,u,h)=>{let p=o.isWindows(h),f=r.makeRe(String(c),{...h,capture:!0}).exec(p?o.toPosixSlashes(u):u);if(f)return f.slice(1).map(d=>d===void 0?"":d)},n.makeRe=(...c)=>r.makeRe(...c),n.scan=(...c)=>r.scan(...c),n.parse=(c,u)=>{let h=[];for(let p of[].concat(c||[]))for(let f of i(String(p),u))h.push(r.parse(f,u));return h},n.braces=(c,u)=>{if(typeof c!="string")throw new TypeError("Expected a string");return u&&u.nobrace===!0||!a(c)?[c]:i(c,u)},n.braceExpand=(c,u)=>{if(typeof c!="string")throw new TypeError("Expected a string");return n.braces(c,{...u,expand:!0})},n.hasBraces=a,t.exports=n}),bE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=le("path"),s=cE(),i=EE(),r="**",o="\\",l=/[*?]|^!/,a=/\[[^[]*]/,n=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,c=/[!*+?@]\([^(]*\)/,u=/,|\.\./,h=/(?!^)\/{2,}/g;function p(C,B={}){return!f(C,B)}z(p,"isStaticPattern"),e.isStaticPattern=p;function f(C,B={}){return C===""?!1:!!(B.caseSensitiveMatch===!1||C.includes(o)||l.test(C)||a.test(C)||n.test(C)||B.extglob!==!1&&c.test(C)||B.braceExpansion!==!1&&d(C))}z(f,"isDynamicPattern"),e.isDynamicPattern=f;function d(C){let B=C.indexOf("{");if(B===-1)return!1;let _=C.indexOf("}",B+1);if(_===-1)return!1;let Z=C.slice(B,_);return u.test(Z)}z(d,"hasBraceExpansion");function g(C){return y(C)?C.slice(1):C}z(g,"convertToPositivePattern"),e.convertToPositivePattern=g;function m(C){return"!"+C}z(m,"convertToNegativePattern"),e.convertToNegativePattern=m;function y(C){return C.startsWith("!")&&C[1]!=="("}z(y,"isNegativePattern"),e.isNegativePattern=y;function S(C){return!y(C)}z(S,"isPositivePattern"),e.isPositivePattern=S;function b(C){return C.filter(y)}z(b,"getNegativePatterns"),e.getNegativePatterns=b;function w(C){return C.filter(S)}z(w,"getPositivePatterns"),e.getPositivePatterns=w;function E(C){return C.filter(B=>!R(B))}z(E,"getPatternsInsideCurrentDirectory"),e.getPatternsInsideCurrentDirectory=E;function O(C){return C.filter(R)}z(O,"getPatternsOutsideCurrentDirectory"),e.getPatternsOutsideCurrentDirectory=O;function R(C){return C.startsWith("..")||C.startsWith("./..")}z(R,"isPatternRelatedToParentDirectory"),e.isPatternRelatedToParentDirectory=R;function x(C){return s(C,{flipBackslashes:!1})}z(x,"getBaseDirectory"),e.getBaseDirectory=x;function P(C){return C.includes(r)}z(P,"hasGlobStar"),e.hasGlobStar=P;function j(C){return C.endsWith("/"+r)}z(j,"endsWithSlashGlobStar"),e.endsWithSlashGlobStar=j;function q(C){let B=t.basename(C);return j(C)||p(B)}z(q,"isAffectDepthOfReadingPattern"),e.isAffectDepthOfReadingPattern=q;function L(C){return C.reduce((B,_)=>B.concat(G(_)),[])}z(L,"expandPatternsWithBraceExpansion"),e.expandPatternsWithBraceExpansion=L;function G(C){let B=i.braces(C,{expand:!0,nodupes:!0,keepEscaping:!0});return B.sort((_,Z)=>_.length-Z.length),B.filter(_=>_!=="")}z(G,"expandBraceExpansion"),e.expandBraceExpansion=G;function D(C,B){let{parts:_}=i.scan(C,Object.assign(Object.assign({},B),{parts:!0}));return _.length===0&&(_=[C]),_[0].startsWith("/")&&(_[0]=_[0].slice(1),_.unshift("")),_}z(D,"getPatternParts"),e.getPatternParts=D;function N(C,B){return i.makeRe(C,B)}z(N,"makeRe"),e.makeRe=N;function W(C,B){return C.map(_=>N(_,B))}z(W,"convertPatternsToRe"),e.convertPatternsToRe=W;function $(C,B){return B.some(_=>_.test(C))}z($,"matchAny"),e.matchAny=$;function U(C){return C.replace(h,"/")}z(U,"removeDuplicateSlashes"),e.removeDuplicateSlashes=U;function F(C){let B=[],_=[];for(let Z of C)V(Z)?B.push(Z):_.push(Z);return[B,_]}z(F,"partitionAbsoluteAndRelative"),e.partitionAbsoluteAndRelative=F;function V(C){return t.isAbsolute(C)}z(V,"isAbsolute"),e.isAbsolute=V}),wE=me((e,t)=>{"use strict";var s=le("stream"),i=s.PassThrough,r=Array.prototype.slice;t.exports=o;function o(){let a=[],n=r.call(arguments),c=!1,u=n[n.length-1];u&&!Array.isArray(u)&&u.pipe==null?n.pop():u={};let h=u.end!==!1,p=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let f=i(u);function d(){for(let y=0,S=arguments.length;y<S;y++)a.push(l(arguments[y],u));return g(),this}z(d,"addStream");function g(){if(c)return;c=!0;let y=a.shift();if(!y){process.nextTick(m);return}Array.isArray(y)||(y=[y]);let S=y.length+1;function b(){--S>0||(c=!1,g())}z(b,"next");function w(E){function O(){E.removeListener("merge2UnpipeEnd",O),E.removeListener("end",O),p&&E.removeListener("error",R),b()}z(O,"onend");function R(x){f.emit("error",x)}if(z(R,"onerror"),E._readableState.endEmitted)return b();E.on("merge2UnpipeEnd",O),E.on("end",O),p&&E.on("error",R),E.pipe(f,{end:!1}),E.resume()}z(w,"pipe");for(let E=0;E<y.length;E++)w(y[E]);b()}z(g,"mergeStream");function m(){c=!1,f.emit("queueDrain"),h&&f.end()}return z(m,"endStream"),f.setMaxListeners(0),f.add=d,f.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),n.length&&d.apply(null,n),f}z(o,"merge2");function l(a,n){if(Array.isArray(a))for(let c=0,u=a.length;c<u;c++)a[c]=l(a[c],n);else{if(!a._readableState&&a.pipe&&(a=a.pipe(i(n))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}z(l,"pauseStreams")}),RE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=wE();function s(r){let o=t(r);return r.forEach(l=>{l.once("error",a=>o.emit("error",a))}),o.once("close",()=>i(r)),o.once("end",()=>i(r)),o}z(s,"merge"),e.merge=s;function i(r){r.forEach(o=>o.emit("close"))}z(i,"propagateCloseEventToSources")}),AE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(i){return typeof i=="string"}z(t,"isString"),e.isString=t;function s(i){return i===""}z(s,"isEmpty"),e.isEmpty=s}),_t=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=iE();e.array=t;var s=nE();e.errno=s;var i=oE();e.fs=i;var r=aE();e.path=r;var o=bE();e.pattern=o;var l=RE();e.stream=l;var a=AE();e.string=a}),OE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=_t();function s(u,h){let p=i(u,h),f=i(h.ignore,h),d=o(p),g=l(p,f),m=d.filter(w=>t.pattern.isStaticPattern(w,h)),y=d.filter(w=>t.pattern.isDynamicPattern(w,h)),S=r(m,g,!1),b=r(y,g,!0);return S.concat(b)}z(s,"generate"),e.generate=s;function i(u,h){let p=u;return h.braceExpansion&&(p=t.pattern.expandPatternsWithBraceExpansion(p)),h.baseNameMatch&&(p=p.map(f=>f.includes("/")?f:`**/${f}`)),p.map(f=>t.pattern.removeDuplicateSlashes(f))}z(i,"processPatterns");function r(u,h,p){let f=[],d=t.pattern.getPatternsOutsideCurrentDirectory(u),g=t.pattern.getPatternsInsideCurrentDirectory(u),m=a(d),y=a(g);return f.push(...n(m,h,p)),"."in y?f.push(c(".",g,h,p)):f.push(...n(y,h,p)),f}z(r,"convertPatternsToTasks"),e.convertPatternsToTasks=r;function o(u){return t.pattern.getPositivePatterns(u)}z(o,"getPositivePatterns"),e.getPositivePatterns=o;function l(u,h){return t.pattern.getNegativePatterns(u).concat(h).map(t.pattern.convertToPositivePattern)}z(l,"getNegativePatternsAsPositive"),e.getNegativePatternsAsPositive=l;function a(u){let h={};return u.reduce((p,f)=>{let d=t.pattern.getBaseDirectory(f);return d in p?p[d].push(f):p[d]=[f],p},h)}z(a,"groupPatternsByBaseDirectory"),e.groupPatternsByBaseDirectory=a;function n(u,h,p){return Object.keys(u).map(f=>c(f,u[f],h,p))}z(n,"convertPatternGroupsToTasks"),e.convertPatternGroupsToTasks=n;function c(u,h,p,f){return{dynamic:f,positive:h,negative:p,base:u,patterns:[].concat(h,p.map(t.pattern.convertToNegativePattern))}}z(c,"convertPatternGroupToTask"),e.convertPatternGroupToTask=c}),PE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,o,l){o.fs.lstat(r,(a,n)=>{if(a!==null){s(l,a);return}if(!n.isSymbolicLink()||!o.followSymbolicLink){i(l,n);return}o.fs.stat(r,(c,u)=>{if(c!==null){if(o.throwErrorOnBrokenSymbolicLink){s(l,c);return}i(l,n);return}o.markSymbolicLink&&(u.isSymbolicLink=()=>!0),i(l,u)})})}z(t,"read"),e.read=t;function s(r,o){r(o)}z(s,"callFailureCallback");function i(r,o){r(null,o)}z(i,"callSuccessCallback")}),CE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(s,i){let r=i.fs.lstatSync(s);if(!r.isSymbolicLink()||!i.followSymbolicLink)return r;try{let o=i.fs.statSync(s);return i.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!i.throwErrorOnBrokenSymbolicLink)return r;throw o}}z(t,"read"),e.read=t}),TE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function s(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}z(s,"createFileSystemAdapter"),e.createFileSystemAdapter=s}),xE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=TE(),s=class{static{z(this,"Settings")}constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,r){return i??r}};e.default=s}),Gt=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=PE(),s=CE(),i=xE();e.Settings=i.default;function r(a,n,c){if(typeof n=="function"){t.read(a,l(),n);return}t.read(a,l(n),c)}z(r,"stat"),e.stat=r;function o(a,n){let c=l(n);return s.read(a,c)}z(o,"statSync"),e.statSync=o;function l(a={}){return a instanceof i.default?a:new i.default(a)}z(l,"getSettings")}),IE=me((e,t)=>{var s;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(global):i=>(s||(s=Promise.resolve())).then(i).catch(r=>setTimeout(()=>{throw r},0))}),kE=me((e,t)=>{t.exports=i;var s=IE();function i(r,o){let l,a,n,c=!0;Array.isArray(r)?(l=[],a=r.length):(n=Object.keys(r),l={},a=n.length);function u(p){function f(){o&&o(p,l),o=null}z(f,"end"),c?s(f):f()}z(u,"done");function h(p,f,d){l[p]=d,(--a===0||f)&&u(f)}z(h,"each"),a?n?n.forEach(function(p){r[p](function(f,d){h(p,f,d)})}):r.forEach(function(p,f){p(function(d,g){h(f,d,g)})}):u(null),c=!1}z(i,"runParallel")}),Lc=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var s=Number.parseInt(t[0],10),i=Number.parseInt(t[1],10),r=10,o=10,l=s>r,a=s===r&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=l||a}),LE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{static{z(this,"DirentFromStats")}constructor(i,r){this.name=i,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 s(i,r){return new t(i,r)}z(s,"createDirentFromStats"),e.createDirentFromStats=s}),$c=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=LE();e.fs=t}),Nc=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(s,i,r){return s.endsWith(r)?s+i:s+r+i}z(t,"joinPathSegments"),e.joinPathSegments=t}),$E=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Gt(),s=kE(),i=Lc(),r=$c(),o=Nc();function l(p,f,d){if(!f.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){a(p,f,d);return}c(p,f,d)}z(l,"read"),e.read=l;function a(p,f,d){f.fs.readdir(p,{withFileTypes:!0},(g,m)=>{if(g!==null){u(d,g);return}let y=m.map(b=>({dirent:b,name:b.name,path:o.joinPathSegments(p,b.name,f.pathSegmentSeparator)}));if(!f.followSymbolicLinks){h(d,y);return}let S=y.map(b=>n(b,f));s(S,(b,w)=>{if(b!==null){u(d,b);return}h(d,w)})})}z(a,"readdirWithFileTypes"),e.readdirWithFileTypes=a;function n(p,f){return d=>{if(!p.dirent.isSymbolicLink()){d(null,p);return}f.fs.stat(p.path,(g,m)=>{if(g!==null){if(f.throwErrorOnBrokenSymbolicLink){d(g);return}d(null,p);return}p.dirent=r.fs.createDirentFromStats(p.name,m),d(null,p)})}}z(n,"makeRplTaskEntry");function c(p,f,d){f.fs.readdir(p,(g,m)=>{if(g!==null){u(d,g);return}let y=m.map(S=>{let b=o.joinPathSegments(p,S,f.pathSegmentSeparator);return w=>{t.stat(b,f.fsStatSettings,(E,O)=>{if(E!==null){w(E);return}let R={name:S,path:b,dirent:r.fs.createDirentFromStats(S,O)};f.stats&&(R.stats=O),w(null,R)})}});s(y,(S,b)=>{if(S!==null){u(d,S);return}h(d,b)})})}z(c,"readdir"),e.readdir=c;function u(p,f){p(f)}z(u,"callFailureCallback");function h(p,f){p(null,f)}z(h,"callSuccessCallback")}),NE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Gt(),s=Lc(),i=$c(),r=Nc();function o(n,c){return!c.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES?l(n,c):a(n,c)}z(o,"read"),e.read=o;function l(n,c){return c.fs.readdirSync(n,{withFileTypes:!0}).map(u=>{let h={dirent:u,name:u.name,path:r.joinPathSegments(n,u.name,c.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&c.followSymbolicLinks)try{let p=c.fs.statSync(h.path);h.dirent=i.fs.createDirentFromStats(h.name,p)}catch(p){if(c.throwErrorOnBrokenSymbolicLink)throw p}return h})}z(l,"readdirWithFileTypes"),e.readdirWithFileTypes=l;function a(n,c){return c.fs.readdirSync(n).map(u=>{let h=r.joinPathSegments(n,u,c.pathSegmentSeparator),p=t.statSync(h,c.fsStatSettings),f={name:u,path:h,dirent:i.fs.createDirentFromStats(u,p)};return c.stats&&(f.stats=p),f})}z(a,"readdir"),e.readdir=a}),DE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function s(i){return i===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),i)}z(s,"createFileSystemAdapter"),e.createFileSystemAdapter=s}),ME=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=Gt(),i=DE(),r=class{static{z(this,"Settings")}constructor(o={}){this._options=o,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(o,l){return o??l}};e.default=r}),In=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=$E(),s=NE(),i=ME();e.Settings=i.default;function r(a,n,c){if(typeof n=="function"){t.read(a,l(),n);return}t.read(a,l(n),c)}z(r,"scandir"),e.scandir=r;function o(a,n){let c=l(n);return s.read(a,c)}z(o,"scandirSync"),e.scandirSync=o;function l(a={}){return a instanceof i.default?a:new i.default(a)}z(l,"getSettings")}),jE=me((e,t)=>{"use strict";function s(i){var r=new i,o=r;function l(){var n=r;return n.next?r=n.next:(r=new i,o=r),n.next=null,n}z(l,"get");function a(n){o.next=n,o=n}return z(a,"release"),{get:l,release:a}}z(s,"reusify"),t.exports=s}),BE=me((e,t)=>{"use strict";var s=jE();function i(a,n,c){if(typeof a=="function"&&(c=n,n=a,a=null),!(c>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var u=s(o),h=null,p=null,f=0,d=null,g={push:O,drain:r,saturated:r,pause:y,paused:!1,get concurrency(){return c},set concurrency(L){if(!(L>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(c=L,!g.paused)for(;h&&f<c;)f++,x()},running:m,resume:w,idle:E,length:S,getQueue:b,unshift:R,empty:r,kill:P,killAndDrain:j,error:q};return g;function m(){return f}function y(){g.paused=!0}function S(){for(var L=h,G=0;L;)L=L.next,G++;return G}function b(){for(var L=h,G=[];L;)G.push(L.value),L=L.next;return G}function w(){if(g.paused){if(g.paused=!1,h===null){f++,x();return}for(;h&&f<c;)f++,x()}}function E(){return f===0&&g.length()===0}function O(L,G){var D=u.get();D.context=a,D.release=x,D.value=L,D.callback=G||r,D.errorHandler=d,f>=c||g.paused?p?(p.next=D,p=D):(h=D,p=D,g.saturated()):(f++,n.call(a,D.value,D.worked))}function R(L,G){var D=u.get();D.context=a,D.release=x,D.value=L,D.callback=G||r,D.errorHandler=d,f>=c||g.paused?h?(D.next=h,h=D):(h=D,p=D,g.saturated()):(f++,n.call(a,D.value,D.worked))}function x(L){L&&u.release(L);var G=h;G&&f<=c?g.paused?f--:(p===h&&(p=null),h=G.next,G.next=null,n.call(a,G.value,G.worked),p===null&&g.empty()):--f===0&&g.drain()}function P(){h=null,p=null,g.drain=r}function j(){h=null,p=null,g.drain(),g.drain=r}function q(L){d=L}}z(i,"fastqueue");function r(){}z(r,"noop");function o(){this.value=null,this.callback=r,this.next=null,this.release=r,this.context=null,this.errorHandler=null;var a=this;this.worked=z(function(n,c){var u=a.callback,h=a.errorHandler,p=a.value;a.value=null,a.callback=r,a.errorHandler&&h(n,p),u.call(a.context,n,c),a.release(a)},"worked")}z(o,"Task");function l(a,n,c){typeof a=="function"&&(c=n,n=a,a=null);function u(y,S){n.call(this,y).then(function(b){S(null,b)},S)}z(u,"asyncWrapper");var h=i(a,u,c),p=h.push,f=h.unshift;return h.push=d,h.unshift=g,h.drained=m,h;function d(y){var S=new Promise(function(b,w){p(y,function(E,O){if(E){w(E);return}b(O)})});return S.catch(r),S}function g(y){var S=new Promise(function(b,w){f(y,function(E,O){if(E){w(E);return}b(O)})});return S.catch(r),S}function m(){var y=new Promise(function(S){process.nextTick(function(){if(h.idle())S();else{var b=h.drain;h.drain=function(){typeof b=="function"&&b(),S(),h.drain=b}}})});return y}}z(l,"queueAsPromised"),t.exports=i,t.exports.promise=l}),kn=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(o,l){return o.errorFilter===null?!0:!o.errorFilter(l)}z(t,"isFatalError"),e.isFatalError=t;function s(o,l){return o===null||o(l)}z(s,"isAppliedFilter"),e.isAppliedFilter=s;function i(o,l){return o.split(/[/\\]/).join(l)}z(i,"replacePathSegmentSeparator"),e.replacePathSegmentSeparator=i;function r(o,l,a){return o===""?l:o.endsWith(a)?o+l:o+a+l}z(r,"joinPathSegments"),e.joinPathSegments=r}),Dc=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=kn(),s=class{static{z(this,"Reader")}constructor(i,r){this._root=i,this._settings=r,this._root=t.replacePathSegmentSeparator(i,r.pathSegmentSeparator)}};e.default=s}),Mc=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("events"),s=In(),i=BE(),r=kn(),o=Dc(),l=class extends o.default{static{z(this,"AsyncReader")}constructor(a,n){super(a,n),this._settings=n,this._scandir=s.scandir,this._emitter=new t.EventEmitter,this._queue=i(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(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,n){let c={directory:a,base:n};this._queue.push(c,u=>{u!==null&&this._handleError(u)})}_worker(a,n){this._scandir(a.directory,this._settings.fsScandirSettings,(c,u)=>{if(c!==null){n(c,void 0);return}for(let h of u)this._handleEntry(h,a.base);n(null,void 0)})}_handleError(a){this._isDestroyed||!r.isFatalError(this._settings,a)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,n){if(this._isDestroyed||this._isFatalError)return;let c=a.path;n!==void 0&&(a.path=r.joinPathSegments(n,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(c,n===void 0?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}};e.default=l}),HE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Mc(),s=class{static{z(this,"AsyncProvider")}constructor(o,l){this._root=o,this._settings=l,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(o){this._reader.onError(l=>{i(o,l)}),this._reader.onEntry(l=>{this._storage.push(l)}),this._reader.onEnd(()=>{r(o,this._storage)}),this._reader.read()}};e.default=s;function i(o,l){o(l)}z(i,"callFailureCallback");function r(o,l){o(null,l)}z(r,"callSuccessCallback")}),GE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("stream"),s=Mc(),i=class{static{z(this,"StreamProvider")}constructor(r,o){this._root=r,this._settings=o,this._reader=new s.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:z(()=>{},"read"),destroy:z(()=>{this._reader.isDestroyed||this._reader.destroy()},"destroy")})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=i}),UE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=In(),s=kn(),i=Dc(),r=class extends i.default{static{z(this,"SyncReader")}constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(o,l){this._queue.add({directory:o,base:l})}_handleQueue(){for(let o of this._queue.values())this._handleDirectory(o.directory,o.base)}_handleDirectory(o,l){try{let a=this._scandir(o,this._settings.fsScandirSettings);for(let n of a)this._handleEntry(n,l)}catch(a){this._handleError(a)}}_handleError(o){if(s.isFatalError(this._settings,o))throw o}_handleEntry(o,l){let a=o.path;l!==void 0&&(o.path=s.joinPathSegments(l,o.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,o)&&this._pushToStorage(o),o.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(a,l===void 0?void 0:o.path)}_pushToStorage(o){this._storage.push(o)}};e.default=r}),FE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=UE(),s=class{static{z(this,"SyncProvider")}constructor(i,r){this._root=i,this._settings=r,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=s}),WE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=In(),i=class{static{z(this,"Settings")}constructor(r={}){this._options=r,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,t.sep),this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,o){return r??o}};e.default=i}),Ln=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=HE(),s=GE(),i=FE(),r=WE();e.Settings=r.default;function o(c,u,h){if(typeof u=="function"){new t.default(c,n()).read(u);return}new t.default(c,n(u)).read(h)}z(o,"walk"),e.walk=o;function l(c,u){let h=n(u);return new i.default(c,h).read()}z(l,"walkSync"),e.walkSync=l;function a(c,u){let h=n(u);return new s.default(c,h).read()}z(a,"walkStream"),e.walkStream=a;function n(c={}){return c instanceof r.default?c:new r.default(c)}z(n,"getSettings")}),$n=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=Gt(),i=_t(),r=class{static{z(this,"Reader")}constructor(o){this._settings=o,this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(o){return t.resolve(this._settings.cwd,o)}_makeEntry(o,l){let a={name:l,path:l,dirent:i.fs.createDirentFromStats(l,o)};return this._settings.stats&&(a.stats=o),a}_isFatalError(o){return!i.errno.isEnoentCodeError(o)&&!this._settings.suppressErrors}};e.default=r}),jc=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("stream"),s=Gt(),i=Ln(),r=$n(),o=class extends r.default{static{z(this,"ReaderStream")}constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=s.stat}dynamic(l,a){return this._walkStream(l,a)}static(l,a){let n=l.map(this._getFullEntryPath,this),c=new t.PassThrough({objectMode:!0});c._write=(u,h,p)=>this._getEntry(n[u],l[u],a).then(f=>{f!==null&&a.entryFilter(f)&&c.push(f),u===n.length-1&&c.end(),p()}).catch(p);for(let u=0;u<n.length;u++)c.write(u);return c}_getEntry(l,a,n){return this._getStat(l).then(c=>this._makeEntry(c,a)).catch(c=>{if(n.errorFilter(c))return null;throw c})}_getStat(l){return new Promise((a,n)=>{this._stat(l,this._fsStatSettings,(c,u)=>c===null?a(u):n(c))})}};e.default=o}),qE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ln(),s=$n(),i=jc(),r=class extends s.default{static{z(this,"ReaderAsync")}constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new i.default(this._settings)}dynamic(o,l){return new Promise((a,n)=>{this._walkAsync(o,l,(c,u)=>{c===null?a(u):n(c)})})}async static(o,l){let a=[],n=this._readerStream.static(o,l);return new Promise((c,u)=>{n.once("error",u),n.on("data",h=>a.push(h)),n.once("end",()=>c(a))})}};e.default=r}),zE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=_t(),s=class{static{z(this,"Matcher")}constructor(i,r,o){this._patterns=i,this._settings=r,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let i of this._patterns){let r=this._getPatternSegments(i),o=this._splitSegmentsIntoSections(r);this._storage.push({complete:o.length<=1,pattern:i,segments:r,sections:o})}}_getPatternSegments(i){return t.pattern.getPatternParts(i,this._micromatchOptions).map(r=>t.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:t.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(i){return t.array.splitWhen(i,r=>r.dynamic&&t.pattern.hasGlobStar(r.pattern))}};e.default=s}),KE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=zE(),s=class extends t.default{static{z(this,"PartialMatcher")}match(i){let r=i.split("/"),o=r.length,l=this._storage.filter(a=>!a.complete||a.segments.length>o);for(let a of l){let n=a.sections[0];if(!a.complete&&o>n.length||r.every((c,u)=>{let h=a.segments[u];return!!(h.dynamic&&h.patternRe.test(c)||!h.dynamic&&h.pattern===c)}))return!0}return!1}};e.default=s}),XE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=_t(),s=KE(),i=class{static{z(this,"DeepFilter")}constructor(r,o){this._settings=r,this._micromatchOptions=o}getFilter(r,o,l){let a=this._getMatcher(o),n=this._getNegativePatternsRe(l);return c=>this._filter(r,c,a,n)}_getMatcher(r){return new s.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let o=r.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(o,this._micromatchOptions)}_filter(r,o,l,a){if(this._isSkippedByDeep(r,o.path)||this._isSkippedSymbolicLink(o))return!1;let n=t.path.removeLeadingDotSegment(o.path);return this._isSkippedByPositivePatterns(n,l)?!1:this._isSkippedByNegativePatterns(n,a)}_isSkippedByDeep(r,o){return this._settings.deep===1/0?!1:this._getEntryLevel(r,o)>=this._settings.deep}_getEntryLevel(r,o){let l=o.split("/").length;if(r==="")return l;let a=r.split("/").length;return l-a}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,o){return!this._settings.baseNameMatch&&!o.match(r)}_isSkippedByNegativePatterns(r,o){return!t.pattern.matchAny(r,o)}};e.default=i}),VE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=_t(),s=class{static{z(this,"EntryFilter")}constructor(i,r){this._settings=i,this._micromatchOptions=r,this.index=new Map}getFilter(i,r){let[o,l]=t.pattern.partitionAbsoluteAndRelative(r),a={positive:{all:t.pattern.convertPatternsToRe(i,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(l,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return n=>this._filter(n,a)}_filter(i,r){let o=t.path.removeLeadingDotSegment(i.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i))return!1;let l=this._isMatchToPatternsSet(o,r,i.dirent.isDirectory());return this._settings.unique&&l&&this._createIndexRecord(o),l}_isDuplicateEntry(i){return this.index.has(i)}_createIndexRecord(i){this.index.set(i,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isMatchToPatternsSet(i,r,o){return!(!this._isMatchToPatterns(i,r.positive.all,o)||this._isMatchToPatterns(i,r.negative.relative,o)||this._isMatchToAbsoluteNegative(i,r.negative.absolute,o))}_isMatchToAbsoluteNegative(i,r,o){if(r.length===0)return!1;let l=t.path.makeAbsolute(this._settings.cwd,i);return this._isMatchToPatterns(l,r,o)}_isMatchToPatterns(i,r,o){if(r.length===0)return!1;let l=t.pattern.matchAny(i,r);return!l&&o?t.pattern.matchAny(i+"/",r):l}};e.default=s}),YE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=_t(),s=class{static{z(this,"ErrorFilter")}constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return t.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};e.default=s}),QE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=_t(),s=class{static{z(this,"EntryTransformer")}constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let r=i.path;return this._settings.absolute&&(r=t.path.makeAbsolute(this._settings.cwd,r),r=t.path.unixify(r)),this._settings.markDirectories&&i.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:r}):r}};e.default=s}),Nn=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("path"),s=XE(),i=VE(),r=YE(),o=QE(),l=class{static{z(this,"Provider")}constructor(a){this._settings=a,this.errorFilter=new r.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new s.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new o.default(this._settings)}_getRootDirectory(a){return t.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let n=a.base==="."?"":a.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.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}}};e.default=l}),JE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=qE(),s=Nn(),i=class extends s.default{static{z(this,"ProviderAsync")}constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(r){let o=this._getRootDirectory(r),l=this._getReaderOptions(r);return(await this.api(o,r,l)).map(a=>l.transform(a))}api(r,o,l){return o.dynamic?this._reader.dynamic(r,l):this._reader.static(o.patterns,l)}};e.default=i}),ZE=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=le("stream"),s=jc(),i=Nn(),r=class extends i.default{static{z(this,"ProviderStream")}constructor(){super(...arguments),this._reader=new s.default(this._settings)}read(o){let l=this._getRootDirectory(o),a=this._getReaderOptions(o),n=this.api(l,o,a),c=new t.Readable({objectMode:!0,read:z(()=>{},"read")});return n.once("error",u=>c.emit("error",u)).on("data",u=>c.emit("data",a.transform(u))).once("end",()=>c.emit("end")),c.once("close",()=>n.destroy()),c}api(o,l,a){return l.dynamic?this._reader.dynamic(o,a):this._reader.static(l.patterns,a)}};e.default=r}),eb=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Gt(),s=Ln(),i=$n(),r=class extends i.default{static{z(this,"ReaderSync")}constructor(){super(...arguments),this._walkSync=s.walkSync,this._statSync=t.statSync}dynamic(o,l){return this._walkSync(o,l)}static(o,l){let a=[];for(let n of o){let c=this._getFullEntryPath(n),u=this._getEntry(c,n,l);u===null||!l.entryFilter(u)||a.push(u)}return a}_getEntry(o,l,a){try{let n=this._getStat(o);return this._makeEntry(n,l)}catch(n){if(a.errorFilter(n))return null;throw n}}_getStat(o){return this._statSync(o,this._fsStatSettings)}};e.default=r}),tb=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=eb(),s=Nn(),i=class extends s.default{static{z(this,"ProviderSync")}constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(r){let o=this._getRootDirectory(r),l=this._getReaderOptions(r);return this.api(o,r,l).map(l.transform)}api(r,o,l){return o.dynamic?this._reader.dynamic(r,l):this._reader.static(o.patterns,l)}};e.default=i}),rb=me(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=le("fs"),s=le("os"),i=Math.max(s.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var r=class{static{z(this,"Settings")}constructor(o={}){this._options=o,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,i),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),this.ignore=[].concat(this.ignore)}_getValue(o,l){return o===void 0?l:o}_getFileSystemMethods(o={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),o)}};e.default=r}),Bc=me((e,t)=>{"use strict";var s=OE(),i=JE(),r=ZE(),o=tb(),l=rb(),a=_t();async function n(h,p){u(h);let f=c(h,i.default,p),d=await Promise.all(f);return a.array.flatten(d)}z(n,"FastGlob"),(function(h){h.glob=h,h.globSync=p,h.globStream=f,h.async=h;function p(w,E){u(w);let O=c(w,o.default,E);return a.array.flatten(O)}z(p,"sync"),h.sync=p;function f(w,E){u(w);let O=c(w,r.default,E);return a.stream.merge(O)}z(f,"stream"),h.stream=f;function d(w,E){u(w);let O=[].concat(w),R=new l.default(E);return s.generate(O,R)}z(d,"generateTasks"),h.generateTasks=d;function g(w,E){u(w);let O=new l.default(E);return a.pattern.isDynamicPattern(w,O)}z(g,"isDynamicPattern"),h.isDynamicPattern=g;function m(w){return u(w),a.path.escape(w)}z(m,"escapePath"),h.escapePath=m;function y(w){return u(w),a.path.convertPathToPattern(w)}z(y,"convertPathToPattern"),h.convertPathToPattern=y;let S;(function(w){function E(R){return u(R),a.path.escapePosixPath(R)}z(E,"escapePath"),w.escapePath=E;function O(R){return u(R),a.path.convertPosixPathToPattern(R)}z(O,"convertPathToPattern"),w.convertPathToPattern=O})(S=h.posix||(h.posix={}));let b;(function(w){function E(R){return u(R),a.path.escapeWindowsPath(R)}z(E,"escapePath"),w.escapePath=E;function O(R){return u(R),a.path.convertWindowsPathToPattern(R)}z(O,"convertPathToPattern"),w.convertPathToPattern=O})(b=h.win32||(h.win32={}))})(n||(n={}));function c(h,p,f){let d=[].concat(h),g=new l.default(f),m=s.generate(d,g),y=new p(g);return m.map(y.read,y)}z(c,"getWorks");function u(h){if(![].concat(h).every(p=>a.string.isString(p)&&!a.string.isEmpty(p)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}z(u,"assertPatternsInput"),t.exports=n}),sb=me((e,t)=>{function s(Q){return Array.isArray(Q)?Q:[Q]}z(s,"makeArray");var i=void 0,r="",o=" ",l="\\",a=/^\s+$/,n=/(?:[^\\]|^)\\$/,c=/^\\!/,u=/^\\#/,h=/\r?\n/g,p=/^\.{0,2}\/|^\.{1,2}$/,f=/\/$/,d="/",g="node-ignore";typeof Symbol<"u"&&(g=Symbol.for("node-ignore"));var m=g,y=z((Q,A,T)=>(Object.defineProperty(Q,A,{value:T}),T),"define"),S=/([0-z])-([0-z])/g,b=z(()=>!1,"RETURN_FALSE"),w=z(Q=>Q.replace(S,(A,T,I)=>T.charCodeAt(0)<=I.charCodeAt(0)?A:r),"sanitizeRange"),E=z(Q=>{let{length:A}=Q;return Q.slice(0,A-A%2)},"cleanRangeBackSlash"),O=[[/^\uFEFF/,()=>r],[/((?:\\\\)*?)(\\?\s+)$/,(Q,A,T)=>A+(T.indexOf("\\")===0?o:r)],[/(\\+?)\s/g,(Q,A)=>{let{length:T}=A;return A.slice(0,T-T%2)+o}],[/[\\$.|*+(){^]/g,Q=>`\\${Q}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,z(function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(Q,A,T)=>A+6<T.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(Q,A,T)=>{let I=T.replace(/\\\*/g,"[^\\/]*");return A+I}],[/\\\\\\(?=[$.|*+(){^])/g,()=>l],[/\\\\/g,()=>l],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(Q,A,T,I,M)=>A===l?`\\[${T}${E(I)}${M}`:M==="]"&&I.length%2===0?`[${w(T)}${I}]`:"[]"],[/(?:[^*])$/,Q=>/\/$/.test(Q)?`${Q}$`:`${Q}(?=$|\\/$)`]],R=/(^|\\\/)?\\\*$/,x="regex",P="checkRegex",j="_",q={[x](Q,A){return`${A?`${A}[^/]+`:"[^/]*"}(?=$|\\/$)`},[P](Q,A){return`${A?`${A}[^/]*`:"[^/]*"}(?=$|\\/$)`}},L=z(Q=>O.reduce((A,[T,I])=>A.replace(T,I.bind(Q)),Q),"makeRegexPrefix"),G=z(Q=>typeof Q=="string","isString"),D=z(Q=>Q&&G(Q)&&!a.test(Q)&&!n.test(Q)&&Q.indexOf("#")!==0,"checkPattern"),N=z(Q=>Q.split(h).filter(Boolean),"splitPattern"),W=class{static{z(this,"IgnoreRule")}constructor(Q,A,T,I,M,te){this.pattern=Q,this.mark=A,this.negative=M,y(this,"body",T),y(this,"ignoreCase",I),y(this,"regexPrefix",te)}get regex(){let Q=j+x;return this[Q]?this[Q]:this._make(x,Q)}get checkRegex(){let Q=j+P;return this[Q]?this[Q]:this._make(P,Q)}_make(Q,A){let T=this.regexPrefix.replace(R,q[Q]),I=this.ignoreCase?new RegExp(T,"i"):new RegExp(T);return y(this,A,I)}},$=z(({pattern:Q,mark:A},T)=>{let I=!1,M=Q;M.indexOf("!")===0&&(I=!0,M=M.substr(1)),M=M.replace(c,"!").replace(u,"#");let te=L(M);return new W(Q,A,M,T,I,te)},"createRule"),U=class{static{z(this,"RuleManager")}constructor(Q){this._ignoreCase=Q,this._rules=[]}_add(Q){if(Q&&Q[m]){this._rules=this._rules.concat(Q._rules._rules),this._added=!0;return}if(G(Q)&&(Q={pattern:Q}),D(Q.pattern)){let A=$(Q,this._ignoreCase);this._added=!0,this._rules.push(A)}}add(Q){return this._added=!1,s(G(Q)?N(Q):Q).forEach(this._add,this),this._added}test(Q,A,T){let I=!1,M=!1,te;this._rules.forEach(ie=>{let{negative:v}=ie;M===v&&I!==M||v&&!I&&!M&&!A||!ie[T].test(Q)||(I=!v,M=v,te=v?i:ie)});let se={ignored:I,unignored:M};return te&&(se.rule=te),se}},F=z((Q,A)=>{throw new A(Q)},"throwError"),V=z((Q,A,T)=>G(Q)?Q?V.isNotRelative(Q)?T(`path should be a \`path.relative()\`d string, but got "${A}"`,RangeError):!0:T("path must not be empty",TypeError):T(`path must be a string, but got \`${A}\``,TypeError),"checkPath"),C=z(Q=>p.test(Q),"isNotRelative");V.isNotRelative=C,V.convert=Q=>Q;var B=class{static{z(this,"Ignore")}constructor({ignorecase:Q=!0,ignoreCase:A=Q,allowRelativePaths:T=!1}={}){y(this,m,!0),this._rules=new U(A),this._strictPathCheck=!T,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(Q){return this._rules.add(Q)&&this._initCache(),this}addPattern(Q){return this.add(Q)}_test(Q,A,T,I){let M=Q&&V.convert(Q);return V(M,Q,this._strictPathCheck?F:b),this._t(M,A,T,I)}checkIgnore(Q){if(!f.test(Q))return this.test(Q);let A=Q.split(d).filter(Boolean);if(A.pop(),A.length){let T=this._t(A.join(d)+d,this._testCache,!0,A);if(T.ignored)return T}return this._rules.test(Q,!1,P)}_t(Q,A,T,I){if(Q in A)return A[Q];if(I||(I=Q.split(d).filter(Boolean)),I.pop(),!I.length)return A[Q]=this._rules.test(Q,T,x);let M=this._t(I.join(d)+d,A,T,I);return A[Q]=M.ignored?M:this._rules.test(Q,T,x)}ignores(Q){return this._test(Q,this._ignoreCache,!1).ignored}createFilter(){return Q=>!this.ignores(Q)}filter(Q){return s(Q).filter(this.createFilter())}test(Q){return this._test(Q,this._testCache,!0)}},_=z(Q=>new B(Q),"factory"),Z=z(Q=>V(Q&&V.convert(Q),Q,b),"isPathValid"),oe=z(()=>{let Q=z(T=>/^\\\\\?\\/.test(T)||/["<>|\u0000-\u001F]+/u.test(T)?T:T.replace(/\\/g,"/"),"makePosix");V.convert=Q;let A=/^[a-z]:\//i;V.isNotRelative=T=>A.test(T)||C(T)},"setupWindows");typeof process<"u"&&process.platform==="win32"&&oe(),t.exports=_,_.default=_,t.exports.isPathValid=Z,y(t.exports,Symbol.for("setupWindows"),oe)}),Hc={};rE(Hc,{deleteAsync:()=>gu,deleteSync:()=>mu});yu.exports=sE(Hc);var ib=ke(le("node:fs"),1),nb=ke(le("node:fs/promises"),1),Gc=ke(le("node:path"),1),Dn=ke(le("node:process"),1),Uc=ke(le("node:process"),1),ob=ke(le("node:fs"),1),jt=ke(le("node:path"),1),Fc=le("node:events"),ab=le("node:stream"),Wc=le("node:stream/promises");function qc(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(let r of e)Pn(r);let t=e.some(({readableObjectMode:r})=>r),s=lb(e,t),i=new cb({objectMode:t,writableHighWaterMark:s,readableHighWaterMark:s});for(let r of e)i.add(r);return e.length===0&&Xc(i),i}z(qc,"mergeStreams");var lb=z((e,t)=>{if(e.length===0)return 16384;let s=e.filter(({readableObjectMode:i})=>i===t).map(({readableHighWaterMark:i})=>i);return Math.max(...s)},"getHighWaterMark"),cb=class extends ab.PassThrough{static{z(this,"MergedStream")}#s=new Set([]);#e=new Set([]);#a=new Set([]);#n;add(e){Pn(e),!this.#s.has(e)&&(this.#s.add(e),this.#n??=ub(this,this.#s),fb({passThroughStream:this,stream:e,streams:this.#s,ended:this.#e,aborted:this.#a,onFinished:this.#n}),e.pipe(this,{end:!1}))}remove(e){return Pn(e),this.#s.has(e)?(e.unpipe(this),!0):!1}},ub=z(async(e,t)=>{ys(e,wc);let s=new AbortController;try{await Promise.race([hb(e,s),pb(e,t,s)])}finally{s.abort(),ys(e,-wc)}},"onMergedStreamFinished"),hb=z(async(e,{signal:t})=>{await(0,Wc.finished)(e,{signal:t,cleanup:!0})},"onMergedStreamEnd"),pb=z(async(e,t,{signal:s})=>{for await(let[i]of(0,Fc.on)(e,"unpipe",{signal:s}))t.has(i)&&i.emit(Kc)},"onInputStreamsUnpipe"),Pn=z(e=>{if(typeof e?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},"validateStream"),fb=z(async({passThroughStream:e,stream:t,streams:s,ended:i,aborted:r,onFinished:o})=>{ys(e,Rc);let l=new AbortController;try{await Promise.race([db(o,t),gb({passThroughStream:e,stream:t,streams:s,ended:i,aborted:r,controller:l}),mb({stream:t,streams:s,ended:i,aborted:r,controller:l})])}finally{l.abort(),ys(e,-Rc)}s.size===i.size+r.size&&(i.size===0&&r.size>0?Cn(e):Xc(e))},"endWhenStreamsDone"),zc=z(e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE","isAbortError"),db=z(async(e,t)=>{try{await e,Cn(t)}catch(s){zc(s)?Cn(t):Vc(t,s)}},"afterMergedStreamFinished"),gb=z(async({passThroughStream:e,stream:t,streams:s,ended:i,aborted:r,controller:{signal:o}})=>{try{await(0,Wc.finished)(t,{signal:o,cleanup:!0,readable:!0,writable:!1}),s.has(t)&&i.add(t)}catch(l){if(o.aborted||!s.has(t))return;zc(l)?r.add(t):Vc(e,l)}},"onInputStreamEnd"),mb=z(async({stream:e,streams:t,ended:s,aborted:i,controller:{signal:r}})=>{await(0,Fc.once)(e,Kc,{signal:r}),t.delete(e),s.delete(e),i.delete(e)},"onInputStreamUnpipe"),Kc=Symbol("unpipe"),Xc=z(e=>{e.writable&&e.end()},"endStream"),Cn=z(e=>{(e.readable||e.writable)&&e.destroy()},"abortStream"),Vc=z((e,t)=>{e.destroyed||(e.once("error",yb),e.destroy(t))},"errorStream"),yb=z(()=>{},"noop"),ys=z((e,t)=>{let s=e.getMaxListeners();s!==0&&s!==Number.POSITIVE_INFINITY&&e.setMaxListeners(s+t)},"updateMaxListeners"),wc=2,Rc=1,vr=ke(Bc(),1),_b=ke(le("node:fs"),1),vb=ke(le("node:fs/promises"),1);async function Ss(e,t,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return(await vb.default[e](s))[t]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}z(Ss,"isType");function Es(e,t,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return _b.default[e](s)[t]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}z(Es,"isTypeSync");var vO=Ss.bind(void 0,"stat","isFile"),Sb=Ss.bind(void 0,"stat","isDirectory"),SO=Ss.bind(void 0,"lstat","isSymbolicLink"),EO=Es.bind(void 0,"statSync","isFile"),Eb=Es.bind(void 0,"statSync","isDirectory"),bO=Es.bind(void 0,"lstatSync","isSymbolicLink"),bb=le("node:util"),wb=le("node:child_process"),wO=ke(le("node:path"),1),Rb=le("node:url"),RO=(0,bb.promisify)(wb.execFile);function bs(e){return e instanceof URL?(0,Rb.fileURLToPath)(e):e}z(bs,"toPath");var AO=10*1024*1024,Ab=ke(le("node:process"),1),Ob=ke(le("node:fs"),1),Pb=ke(le("node:fs/promises"),1),Bt=ke(le("node:path"),1),Yc=ke(Bc(),1),Cb=ke(sb(),1);function Ht(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}z(Ht,"slash");var Mn=z(e=>e[0]==="!","isNegativePattern"),Tb=["**/node_modules","**/flow-typed","**/coverage","**/.git"],Qc={absolute:!0,dot:!0},xb="**/.gitignore",Ib=z((e,t)=>Mn(e)?"!"+Bt.default.posix.join(t,e.slice(1)):Bt.default.posix.join(t,e),"applyBaseToPattern"),kb=z((e,t)=>{let s=Ht(Bt.default.relative(t,Bt.default.dirname(e.filePath)));return e.content.split(/\r?\n/).filter(i=>i&&!i.startsWith("#")).map(i=>Ib(i,s))},"parseIgnoreFile"),Lb=z((e,t)=>{if(t=Ht(t),Bt.default.isAbsolute(e)){if(Ht(e).startsWith(t))return Bt.default.relative(t,e);throw new Error(`Path ${e} is not in cwd ${t}`)}return e},"toRelativePath"),Jc=z((e,t)=>{let s=e.flatMap(r=>kb(r,t)),i=(0,Cb.default)().add(s);return r=>(r=bs(r),r=Lb(r,t),r?i.ignores(Ht(r)):!1)},"getIsIgnoredPredicate"),Zc=z((e={})=>({cwd:bs(e.cwd)??Ab.default.cwd(),suppressErrors:!!e.suppressErrors,deep:typeof e.deep=="number"?e.deep:Number.POSITIVE_INFINITY,ignore:[...e.ignore??[],...Tb]}),"normalizeOptions"),$b=z(async(e,t)=>{let{cwd:s,suppressErrors:i,deep:r,ignore:o}=Zc(t),l=await(0,Yc.default)(e,{cwd:s,suppressErrors:i,deep:r,ignore:o,...Qc}),a=await Promise.all(l.map(async n=>({filePath:n,content:await Pb.default.readFile(n,"utf8")})));return Jc(a,s)},"isIgnoredByIgnoreFiles"),Nb=z((e,t)=>{let{cwd:s,suppressErrors:i,deep:r,ignore:o}=Zc(t),l=Yc.default.sync(e,{cwd:s,suppressErrors:i,deep:r,ignore:o,...Qc}).map(a=>({filePath:a,content:Ob.default.readFileSync(a,"utf8")}));return Jc(l,s)},"isIgnoredByIgnoreFilesSync"),Db=z(e=>{if(e.some(t=>typeof t!="string"))throw new TypeError("Patterns must be a string or an array of strings")},"assertPatternsInput"),eu=z((e,t)=>{let s=Mn(e)?e.slice(1):e;return jt.default.isAbsolute(s)?s:jt.default.join(t,s)},"normalizePathForDirectoryGlob"),tu=z(({directoryPath:e,files:t,extensions:s})=>{let i=s?.length>0?`.${s.length>1?`{${s.join(",")}}`:s[0]}`:"";return t?t.map(r=>jt.default.posix.join(e,`**/${jt.default.extname(r)?r:`${r}${i}`}`)):[jt.default.posix.join(e,`**${i?`/*${i}`:""}`)]},"getDirectoryGlob"),Ac=z(async(e,{cwd:t=Uc.default.cwd(),files:s,extensions:i}={})=>(await Promise.all(e.map(async r=>await Sb(eu(r,t))?tu({directoryPath:r,files:s,extensions:i}):r))).flat(),"directoryToGlob"),Oc=z((e,{cwd:t=Uc.default.cwd(),files:s,extensions:i}={})=>e.flatMap(r=>Eb(eu(r,t))?tu({directoryPath:r,files:s,extensions:i}):r),"directoryToGlobSync"),jn=z(e=>(e=[...new Set([e].flat())],Db(e),e),"toPatternsArray"),Mb=z(e=>{if(!e)return;let t;try{t=ob.default.statSync(e)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},"checkCwdOption"),ru=z((e={})=>(e={...e,ignore:e.ignore??[],expandDirectories:e.expandDirectories??!0,cwd:bs(e.cwd)},Mb(e.cwd),e),"normalizeOptions"),su=z(e=>async(t,s)=>e(jn(t),ru(s)),"normalizeArguments"),ws=z(e=>(t,s)=>e(jn(t),ru(s)),"normalizeArgumentsSync"),iu=z(e=>{let{ignoreFiles:t,gitignore:s}=e,i=t?jn(t):[];return s&&i.push(xb),i},"getIgnoreFilesPatterns"),jb=z(async e=>{let t=iu(e);return ou(t.length>0&&await $b(t,e))},"getFilter"),nu=z(e=>{let t=iu(e);return ou(t.length>0&&Nb(t,e))},"getFilterSync"),ou=z(e=>{let t=new Set;return s=>{let i=jt.default.normalize(s.path??s);return t.has(i)||e&&e(i)?!1:(t.add(i),!0)}},"createFilterFunction"),au=z((e,t)=>e.flat().filter(s=>t(s)),"unionFastGlobResults"),lu=z((e,t)=>{let s=[];for(;e.length>0;){let i=e.findIndex(o=>Mn(o));if(i===-1){s.push({patterns:e,options:t});break}let r=e[i].slice(1);for(let o of s)o.options.ignore.push(r);i!==0&&s.push({patterns:e.slice(0,i),options:{...t,ignore:[...t.ignore,r]}}),e=e.slice(i+1)}return s},"convertNegativePatterns"),cu=z((e,t)=>({...t?{cwd:t}:{},...Array.isArray(e)?{files:e}:e}),"normalizeExpandDirectoriesOption"),uu=z(async(e,t)=>{let s=lu(e,t),{cwd:i,expandDirectories:r}=t;if(!r)return s;let o=cu(r,i);return Promise.all(s.map(async l=>{let{patterns:a,options:n}=l;return[a,n.ignore]=await Promise.all([Ac(a,o),Ac(n.ignore,{cwd:i})]),{patterns:a,options:n}}))},"generateTasks"),Bn=z((e,t)=>{let s=lu(e,t),{cwd:i,expandDirectories:r}=t;if(!r)return s;let o=cu(r,i);return s.map(l=>{let{patterns:a,options:n}=l;return a=Oc(a,o),n.ignore=Oc(n.ignore,{cwd:i}),{patterns:a,options:n}})},"generateTasksSync"),Bb=su(async(e,t)=>{let[s,i]=await Promise.all([uu(e,t),jb(t)]),r=await Promise.all(s.map(o=>(0,vr.default)(o.patterns,o.options)));return au(r,i)}),Hb=ws((e,t)=>{let s=Bn(e,t),i=nu(t),r=s.map(o=>vr.default.sync(o.patterns,o.options));return au(r,i)}),OO=ws((e,t)=>{let s=Bn(e,t),i=nu(t),r=s.map(o=>vr.default.stream(o.patterns,o.options));return qc(r).filter(o=>i(o))}),PO=ws((e,t)=>e.some(s=>vr.default.isDynamicPattern(s,t))),CO=su(uu),TO=ws(Bn),{convertPathToPattern:xO}=vr.default,Gb=ke(Ic(),1),Pc=ke(le("node:process"),1),Ub=ke(le("node:path"),1);function hu(e){let t=Pc.default.cwd();return e=Ub.default.resolve(e),Pc.default.platform==="win32"&&(t=t.toLowerCase(),e=e.toLowerCase()),e===t}z(hu,"isPathCwd");var On=ke(le("node:path"),1);function pu(e,t){let s=On.default.relative(t,e);return!!(s&&s!==".."&&!s.startsWith(`..${On.default.sep}`)&&s!==On.default.resolve(e))}z(pu,"isPathInside");async function fu(e,t,{concurrency:s=Number.POSITIVE_INFINITY,stopOnError:i=!0,signal:r}={}){return new Promise((o,l)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(s)&&s>=1||s===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${s}\` (${typeof s})`);let a=[],n=[],c=new Map,u=!1,h=!1,p=!1,f=0,d=0,g=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),m=z(()=>{b(r.reason)},"signalListener"),y=z(()=>{r?.removeEventListener("abort",m)},"cleanup"),S=z(E=>{o(E),y()},"resolve"),b=z(E=>{u=!0,h=!0,l(E),y()},"reject");r&&(r.aborted&&b(r.reason),r.addEventListener("abort",m,{once:!0}));let w=z(async()=>{if(h)return;let E=await g.next(),O=d;if(d++,E.done){if(p=!0,f===0&&!h){if(!i&&n.length>0){b(new AggregateError(n));return}if(h=!0,c.size===0){S(a);return}let R=[];for(let[x,P]of a.entries())c.get(x)!==Cc&&R.push(P);S(R)}return}f++,(async()=>{try{let R=await E.value;if(h)return;let x=await t(R,O);x===Cc&&c.set(O,x),a[O]=x,f--,await w()}catch(R){if(i)b(R);else{n.push(R),f--;try{await w()}catch(x){b(x)}}}})()},"next");(async()=>{for(let E=0;E<s;E++){try{await w()}catch(O){b(O);break}if(p||u)break}})()})}z(fu,"pMap");var Cc=Symbol("skip"),{toString:IO}=Object.prototype,Tc=class du extends Error{static{z(this,"PresentableError")}constructor(t,{cause:s}={}){if(super(),t instanceof du)return t;if(typeof t!="string")throw new TypeError("Message required.");this.name="PresentableError",this.message=t,this.cause=s}get isPresentable(){return!0}};function Hn(e,t){if(hu(e))throw new Tc("Cannot delete the current working directory. Can be overridden with the `force` option.");if(!pu(e,t))throw new Tc("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}z(Hn,"safeCheck");function Gn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>Dn.default.platform==="win32"&&(0,Gb.default)(t)===!1?Ht(t):t),e}z(Gn,"normalizePatterns");async function gu(e,{force:t,dryRun:s,cwd:i=Dn.default.cwd(),onProgress:r=z(()=>{},"onProgress"),...o}={}){o={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:i,...o},e=Gn(e);let l=(await Bb(e,o)).sort((c,u)=>u.localeCompare(c));l.length===0&&r({totalCount:0,deletedCount:0,percent:1});let a=0,n=await fu(l,z(async c=>(c=Gc.default.resolve(i,c),t||Hn(c,i),s||await nb.default.rm(c,{recursive:!0,force:!0}),a+=1,r({totalCount:l.length,deletedCount:a,percent:a/l.length,path:c}),c),"mapper"),o);return n.sort((c,u)=>c.localeCompare(u)),n}z(gu,"deleteAsync");function mu(e,{force:t,dryRun:s,cwd:i=Dn.default.cwd(),...r}={}){r={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:i,...r},e=Gn(e);let o=Hb(e,r).sort((l,a)=>a.localeCompare(l)).map(l=>(l=Gc.default.resolve(i,l),t||Hn(l,i),s||ib.default.rmSync(l,{recursive:!0,force:!0}),l));return o.sort((l,a)=>l.localeCompare(a)),o}z(mu,"deleteSync");});var Tu=Oe((cP,Cu)=>{"use strict";var zn=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,Wb=Object.getOwnPropertyNames,qb=Object.prototype.hasOwnProperty,zb=(e,t)=>{for(var s in t)zn(e,s,{get:t[s],enumerable:!0})},Kb=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wb(t))!qb.call(e,r)&&r!==s&&zn(e,r,{get:()=>t[r],enumerable:!(i=Fb(t,r))||i.enumerable});return e},Xb=e=>Kb(zn({},"__esModule",{value:!0}),e),vu={};zb(vu,{findUp:()=>Jb,findUpSync:()=>Zb,isDir:()=>ew,isDirEmptySync:()=>Au,isDirSync:()=>tw,isSymLinkSync:()=>rw,readDirNames:()=>iw,readDirNamesSync:()=>nw,readFileBinary:()=>ow,readFileBinarySync:()=>lw,readFileUtf8:()=>aw,readFileUtf8Sync:()=>cw,readJson:()=>uw,readJsonSync:()=>hw,safeDelete:()=>pw,safeDeleteSync:()=>fw,safeReadFile:()=>dw,safeReadFileSync:()=>gw,safeStats:()=>Ou,safeStatsSync:()=>Pu,uniqueSync:()=>mw,validateFiles:()=>sw,writeJson:()=>yw,writeJsonSync:()=>_w});Cu.exports=Xb(vu);var Vb=qt(),Rs=Pr(),_u=bc(),Su=Xr(),Yb=xt(),ze=sr(),Qb=ai(),As=(0,Vb.getAbortSignal)(),Eu=(0,Yb.objectFreeze)({__proto__:null,force:!0,maxRetries:3,recursive:!0,retryDelay:200}),Fn;function $e(){return Fn===void 0&&(Fn=le("node:fs")),Fn}var Wn;function Ut(){return Wn===void 0&&(Wn=le("node:path")),Wn}var qn;function bu(){return qn===void 0&&(qn=le("node:os")),qn}function wu(e,t,s){let{ignore:i,includeEmpty:r=!0,sort:o=!0}={__proto__:null,...s},l=Ut(),a=e.filter(n=>n.isDirectory()&&(r||!Au(l.join(t||n.parentPath,n.name),{ignore:i}))).map(n=>n.name);return o?a.sort(Qb.naturalCompare):a}function Ru(e,t,s,i,r=2){let o=s?t:"";return`${JSON.stringify(e,i,r).replace(/\n/g,t)}${o}`}async function Jb(e,t){let{cwd:s=process.cwd(),signal:i=As}={__proto__:null,...t},{onlyDirectories:r=!1,onlyFiles:o=!0}={__proto__:null,...t};r&&(o=!1),o&&(r=!1);let l=$e(),a=Ut(),n=a.resolve(s),{root:c}=a.parse(n),u=(0,Rs.isArray)(e)?e:[e];for(;n&&n!==c;){for(let h of u){if(i?.aborted)return;let p=a.join(n,h);try{let f=await l.promises.stat(p);if(!r&&f.isFile()||!o&&f.isDirectory())return(0,ze.normalizePath)(p)}catch{}}n=a.dirname(n)}}function Zb(e,t){let{cwd:s=process.cwd(),stopAt:i}={__proto__:null,...t},{onlyDirectories:r=!1,onlyFiles:o=!0}={__proto__:null,...t};r&&(o=!1),o&&(r=!1);let l=$e(),a=Ut(),n=a.resolve(s),{root:c}=a.parse(n),u=i?a.resolve(i):void 0,h=(0,Rs.isArray)(e)?e:[e];for(;n&&n!==c;){if(u&&n===u){for(let p of h){let f=a.join(n,p);try{let d=l.statSync(f);if(!r&&d.isFile()||!o&&d.isDirectory())return(0,ze.normalizePath)(f)}catch{}}return}for(let p of h){let f=a.join(n,p);try{let d=l.statSync(f);if(!r&&d.isFile()||!o&&d.isDirectory())return(0,ze.normalizePath)(f)}catch{}}n=a.dirname(n)}}async function ew(e){return!!(await Ou(e))?.isDirectory()}function tw(e){return!!Pu(e)?.isDirectory()}function Au(e,t){let{ignore:s=_u.defaultIgnore}={__proto__:null,...t},i=$e();try{let r=i.readdirSync(e),{length:o}=r;if(o===0)return!0;let l=(0,_u.getGlobMatcher)(s,{cwd:(0,ze.pathLikeToString)(e)}),a=0;for(let n=0;n<o;n+=1){let c=r[n];c&&l(c)&&(a+=1)}return a===o}catch{return!1}}function rw(e){let t=$e();try{return t.lstatSync(e).isSymbolicLink()}catch{}return!1}function sw(e){let t=$e(),s=[],i=[],{R_OK:r}=t.constants;for(let o of e)try{t.accessSync(o,r),s.push(o)}catch{i.push(o)}return{__proto__:null,validPaths:s,invalidPaths:i}}async function iw(e,t){let s=$e();try{return wu(await s.promises.readdir(e,{__proto__:null,encoding:"utf8",withFileTypes:!0}),String(e),t)}catch{}return[]}function nw(e,t){let s=$e();try{return wu(s.readdirSync(e,{__proto__:null,encoding:"utf8",withFileTypes:!0}),String(e),t)}catch{}return[]}async function ow(e,t){let s=typeof t=="string"?{encoding:t}:t;return await $e().promises.readFile(e,{signal:As,...s,encoding:null})}async function aw(e,t){let s=typeof t=="string"?{encoding:t}:t;return await $e().promises.readFile(e,{signal:As,...s,encoding:"utf8"})}function lw(e,t){let s=typeof t=="string"?{encoding:t}:t;return $e().readFileSync(e,{...s,encoding:null})}function cw(e,t){let s=typeof t=="string"?{encoding:t}:t;return $e().readFileSync(e,{...s,encoding:"utf8"})}async function uw(e,t){let s=typeof t=="string"?{encoding:t}:t,{reviver:i,throws:r,...o}={__proto__:null,...s},l=r===void 0||!!r,a=$e(),n="";try{n=await a.promises.readFile(e,{__proto__:null,encoding:"utf8",...o})}catch(c){if(l)throw c;return}return(0,Su.jsonParse)(n,{filepath:String(e),reviver:i,throws:l})}function hw(e,t){let s=typeof t=="string"?{encoding:t}:t,{reviver:i,throws:r,...o}={__proto__:null,...s},l=r===void 0||!!r,a=$e(),n="";try{n=a.readFileSync(e,{__proto__:null,encoding:"utf8",...o})}catch(c){if(l)throw c;return}return(0,Su.jsonParse)(n,{filepath:String(e),reviver:i,throws:l})}async function pw(e,t){let s=Un(),{deleteAsync:i}=s,r={__proto__:null,...t},o=(0,Rs.isArray)(e)?e.map(ze.pathLikeToString):[(0,ze.pathLikeToString)(e)],l=r.force!==!1;if(!l&&o.length>0){let a=bu(),n=Ut(),{getSocketCacacheDir:c,getSocketUserDir:u}=cr(),h=a.tmpdir(),p=n.resolve(h),f=c(),d=n.resolve(f),g=u(),m=n.resolve(g);o.every(S=>{let b=n.resolve(S);for(let w of[p,d,m]){let E=b.startsWith(w+n.sep)||b===w,R=n.relative(w,b).startsWith("..");if(E&&!R)return!0}return!1})&&(l=!0)}await i(o,{concurrency:r.maxRetries||Eu.maxRetries,dryRun:!1,force:l,onlyFiles:!1})}function fw(e,t){let s=Un(),{deleteSync:i}=s,r={__proto__:null,...t},o=(0,Rs.isArray)(e)?e.map(ze.pathLikeToString):[(0,ze.pathLikeToString)(e)],l=r.force!==!1;if(!l&&o.length>0){let a=bu(),n=Ut(),{getSocketCacacheDir:c,getSocketUserDir:u}=cr(),h=a.tmpdir(),p=n.resolve(h),f=c(),d=n.resolve(f),g=u(),m=n.resolve(g);o.every(S=>{let b=n.resolve(S);for(let w of[p,d,m]){let E=b.startsWith(w+n.sep)||b===w,R=n.relative(w,b).startsWith("..");if(E&&!R)return!0}return!1})&&(l=!0)}i(o,{concurrency:r.maxRetries||Eu.maxRetries,dryRun:!1,force:l,onlyFiles:!1})}async function dw(e,t){let s=typeof t=="string"?{encoding:t}:t,i=$e();try{return await i.promises.readFile(e,{signal:As,...s})}catch{}}async function Ou(e){let t=$e();try{return await t.promises.stat(e)}catch{}}function Pu(e,t){let s=typeof t=="string"?{encoding:t}:t,i=$e();try{return i.statSync(e,{__proto__:null,throwIfNoEntry:!1,...s})}catch{}}function gw(e,t){let s=typeof t=="string"?{encoding:t}:t,i=$e();try{return i.readFileSync(e,{__proto__:null,...s})}catch{}}function mw(e){let t=$e(),s=Ut(),i=String(e);if(!t.existsSync(i))return(0,ze.normalizePath)(i);let r=s.dirname(i),o=s.extname(i),l=s.basename(i,o),a=1,n;do n=s.join(r,`${l}-${a}${o}`),a++;while(t.existsSync(n));return(0,ze.normalizePath)(n)}async function yw(e,t,s){let i=typeof s=="string"?{encoding:s}:s,{EOL:r,finalEOL:o,replacer:l,spaces:a,...n}={__proto__:null,...i},c=$e(),u=Ru(t,r||`
40
40
  `,o!==void 0?o:!0,l,a);await c.promises.writeFile(e,u,{encoding:"utf8",...n,__proto__:null})}function _w(e,t,s){let i=typeof s=="string"?{encoding:s}:s,{EOL:r,finalEOL:o,replacer:l,spaces:a,...n}={__proto__:null,...i},c=$e(),u=Ru(t,r||`
41
- `,o!==void 0?o:!0,l,a);c.writeFileSync(e,u,{encoding:"utf8",...n,__proto__:null})}});var $u=Oe((uP,Lu)=>{"use strict";var Vn=Object.defineProperty,vw=Object.getOwnPropertyDescriptor,Sw=Object.getOwnPropertyNames,Ew=Object.prototype.hasOwnProperty,bw=(e,t)=>{for(var s in t)Vn(e,s,{get:t[s],enumerable:!0})},ww=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Sw(t))!Ew.call(e,r)&&r!==s&&Vn(e,r,{get:()=>t[r],enumerable:!(i=vw(t,r))||i.enumerable});return e},Rw=e=>ww(Vn({},"__esModule",{value:!0}),e),xu={};bw(xu,{normalizeIterationOptions:()=>Qn,normalizeRetryOptions:()=>Sr,pEach:()=>Pw,pEachChunk:()=>Tw,pFilter:()=>Cw,pFilterChunk:()=>ku,pRetry:()=>Os,resolveRetryOptions:()=>Jn});Lu.exports=Rw(xu);var Kn=Or(),Aw=qt(),Yn=Pr(),Iu=(0,Aw.getAbortSignal)(),Xn;function Ow(){return Xn===void 0&&(Xn=le("node:timers/promises")),Xn}function Qn(e){let t=typeof e=="number"?{concurrency:e}:e,{concurrency:s=1,retries:i,signal:r=Iu}={__proto__:null,...t};return{__proto__:null,concurrency:Math.max(1,s),retries:Sr({signal:r,...Jn(i)}),signal:r}}function Sr(e){let t=Jn(e),{args:s=[],backoffFactor:i=t.factor||2,baseDelayMs:r=t.minTimeout||200,jitter:o=!0,maxDelayMs:l=t.maxTimeout||1e4,onRetry:a,onRetryCancelOnFalse:n=!1,onRetryRethrow:c=!1,retries:u=t.retries||0,signal:h=Iu}=t;return{args:s,backoffFactor:i,baseDelayMs:r,jitter:o,maxDelayMs:l,minTimeout:r,maxTimeout:l,onRetry:a,onRetryCancelOnFalse:n,onRetryRethrow:c,retries:u,signal:h}}function Jn(e){let t={__proto__:null,retries:0,minTimeout:200,maxTimeout:1e4,factor:2};return typeof e=="number"?{...t,retries:e}:e?{...t,...e}:t}async function Pw(e,t,s){let i=Qn(s),{concurrency:r,retries:o,signal:l}=i,a=(0,Yn.arrayChunk)(e,r);for(let n of a){if(l?.aborted)return;await Promise.all(n.map(c=>Os((...u)=>t(u[0]),{...o,args:[c],signal:l})))}}async function Cw(e,t,s){let i=Qn(s);return(await ku((0,Yn.arrayChunk)(e,i.concurrency),t,i.retries)).flat()}async function Tw(e,t,s){let{chunkSize:i=100,...r}=s||{},o=(0,Yn.arrayChunk)(e,i),l=Sr(r),{signal:a}=l;for(let n of o){if(a?.aborted)return;await Os((...c)=>t(c[0]),{...l,args:[n]})}}async function ku(e,t,s){let i=Sr(s),{signal:r}=i,{length:o}=e,l=Array(o);for(let a=0;a<o;a+=1)if(r?.aborted)l[a]=[];else{let n=e[a],c=await Promise.all(n.map(u=>Os((...h)=>t(h[0]),{...i,args:[u]})));l[a]=n.filter((u,h)=>c[h])}return l}async function Os(e,t){let{args:s,backoffFactor:i,baseDelayMs:r,jitter:o,maxDelayMs:l,onRetry:a,onRetryCancelOnFalse:n,onRetryRethrow:c,retries:u,signal:h}=Sr(t);if(h?.aborted)return;if(u===0)return await e(...s||[],{signal:h});let p=Ow(),f=u,d=r,g=Kn.UNDEFINED_TOKEN;for(;f-->=0;){if(h?.aborted)return;try{return await e(...s||[],{signal:h})}catch(m){if(g===Kn.UNDEFINED_TOKEN&&(g=m),f<0)break;let y=d;if(o&&(y+=Math.floor(Math.random()*d)),y=Math.min(y,l),typeof a=="function")try{let S=a(u-f,m,y);if(S===!1&&n)break;typeof S=="number"&&S>=0&&(y=Math.min(S,l))}catch(S){if(c)throw S}try{await p.setTimeout(y,void 0,{signal:h})}catch{return}if(h?.aborted)return;d=Math.min(d*i,l)}}if(g!==Kn.UNDEFINED_TOKEN)throw g}});var Bu=Oe((hP,ju)=>{"use strict";var Zn=Object.defineProperty,xw=Object.getOwnPropertyDescriptor,Iw=Object.getOwnPropertyNames,kw=Object.prototype.hasOwnProperty,Lw=(e,t)=>{for(var s in t)Zn(e,s,{get:t[s],enumerable:!0})},$w=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Iw(t))!kw.call(e,r)&&r!==s&&Zn(e,r,{get:()=>t[r],enumerable:!(i=xw(t,r))||i.enumerable});return e},Nw=e=>$w(Zn({},"__esModule",{value:!0}),e),Nu={};Lw(Nu,{restoreWarnings:()=>Bw,setMaxEventTargetListeners:()=>jw,suppressMaxListenersWarning:()=>Mw,suppressWarningType:()=>Mu,withSuppressedWarnings:()=>Hw});ju.exports=Nw(Nu);var{apply:Dw}=Reflect,Ft,Er=new Set;function Du(){Ft||(Ft=process.emitWarning,process.emitWarning=(e,...t)=>{if(typeof e=="string"){for(let s of Er)if(e.includes(s))return}else if(e&&typeof e=="object"){let s=e;if(s.name&&Er.has(s.name))return}return Dw(Ft,process,[e,...t])})}function Mw(){Er.add("MaxListenersExceededWarning"),Du()}function Mu(e){Er.add(e),Du()}function jw(e,t=10){if(!e)return;let i=Object.getOwnPropertySymbols(e).find(r=>r.description==="events.maxEventTargetListeners");i&&(e[i]=t)}function Bw(){Ft&&(process.emitWarning=Ft,Ft=void 0,Er.clear())}async function Hw(e,t){let s=process.emitWarning;Mu(e);try{return await t()}finally{process.emitWarning=s}}});var qu=Oe((pP,Wu)=>{"use strict";var eo=Object.defineProperty,Gw=Object.getOwnPropertyDescriptor,Uw=Object.getOwnPropertyNames,Fw=Object.prototype.hasOwnProperty,Ww=(e,t)=>{for(var s in t)eo(e,s,{get:t[s],enumerable:!0})},qw=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Uw(t))!Fw.call(e,r)&&r!==s&&eo(e,r,{get:()=>t[r],enumerable:!(i=Gw(t,r))||i.enumerable});return e},zw=e=>qw(eo({},"__esModule",{value:!0}),e),Hu={};Ww(Hu,{createRelativeUrl:()=>Jw,isUrl:()=>Vw,parseUrl:()=>Gu,urlSearchParamAsArray:()=>Uu,urlSearchParamAsBoolean:()=>Fu,urlSearchParamAsNumber:()=>eR,urlSearchParamAsString:()=>Zw,urlSearchParamsGetArray:()=>Yw,urlSearchParamsGetBoolean:()=>Qw});Wu.exports=zw(Hu);var Kw=Boolean,Xw=URL;function Vw(e){return(typeof e=="string"&&e!==""||e!==null&&typeof e=="object")&&!!Gu(e)}function Gu(e){try{return new Xw(e)}catch{}}function Uu(e){return typeof e=="string"?e.trim().split(/, */).map(t=>t.trim()).filter(Kw):[]}function Fu(e,t){let{defaultValue:s=!1}={__proto__:null,...t};if(typeof e=="string"){let i=e.trim();return i==="1"||i.toLowerCase()==="true"}return e==null?!!s:!!e}function Yw(e,t){if(e&&typeof e.getAll=="function"){let s=e.getAll(t),i=s[0];return s.length===1&&i&&i.includes(",")?Uu(i):s}return[]}function Qw(e,t,s){let{defaultValue:i=!1}={__proto__:null,...s};if(e&&typeof e.get=="function"){let r=e.get(t);return r!==null?Fu(r,{defaultValue:i}):i}return i}function Jw(e,t){let{base:s=""}={__proto__:null,...t},i=e.replace(/^\//,"");if(s){let r=s;return r.endsWith("/")||(r+="/"),r+i}return i}function Zw(e,t,s){let{defaultValue:i=""}={__proto__:null,...s};if(e&&typeof e.get=="function"){let r=e.get(t);return r!==null?r:i}return i}function eR(e,t,s){let{defaultValue:i=0}={__proto__:null,...s};if(e&&typeof e.get=="function"){let r=e.get(t);if(r!==null){let o=Number(r);return Number.isNaN(o)?i:o}}return i}});var oo={name:"@socketsecurity/sdk",version:"3.0.4",license:"MIT",description:"SDK for the Socket API client",author:{name:"Socket Inc",email:"eng@socket.dev",url:"https://socket.dev"},homepage:"https://github.com/SocketDev/socket-sdk-js",repository:{type:"git",url:"git://github.com/SocketDev/socket-sdk-js.git"},type:"module",main:"./dist/index.mjs",types:"./dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",default:"./dist/index.mjs"},"./package.json":"./package.json","./testing":{types:"./dist/testing.d.ts",default:"./dist/testing.mjs"},"./types/api":{types:"./types/api.d.ts",default:"./types/api.d.ts"},"./types/api-helpers":{types:"./types/api-helpers.d.ts",default:"./types/api-helpers.d.ts"}},scripts:{build:"node scripts/build.mjs",bump:"bash scripts/node-with-loader.sh scripts/bump.mjs",check:"bash scripts/node-with-loader.sh scripts/check.mjs","check-ci":"pnpm run check --all",clean:"node scripts/clean.mjs",cover:"bash scripts/node-with-loader.sh scripts/cover.mjs",fix:"node scripts/lint.mjs --fix","generate-sdk":"bash scripts/node-with-loader.sh scripts/generate-sdk.mjs",lint:"node scripts/lint.mjs","lint-ci":"pnpm run lint --all",precommit:"pnpm run check --lint --staged",prepare:"husky",prepublishOnly:"echo 'ERROR: Use GitHub Actions workflow for publishing' && exit 1",publish:"bash scripts/node-with-loader.sh scripts/publish.mjs",claude:"bash scripts/node-with-loader.sh scripts/claude.mjs",test:"node scripts/test.mjs","test-ci":"pnpm run test --all",type:"tsgo --noEmit -p .config/tsconfig.check.json","type-ci":"pnpm run type",update:"bash scripts/node-with-loader.sh scripts/update.mjs"},devDependencies:{"@babel/parser":"7.26.3","@babel/traverse":"7.26.4","@babel/types":"7.26.3","@biomejs/biome":"2.2.4","@dotenvx/dotenvx":"1.49.0","@eslint/compat":"1.3.2","@eslint/js":"9.35.0","@socketsecurity/lib":"1.3.2","@socketsecurity/registry":"1.5.3","@types/node":"24.6.2","@typescript/native-preview":"7.0.0-dev.20250926.1","@vitest/coverage-v8":"3.2.4",del:"8.0.1","dev-null-cli":"2.0.0",esbuild:"0.25.10",eslint:"9.35.0","eslint-import-resolver-typescript":"4.4.4","eslint-plugin-import-x":"4.16.1","eslint-plugin-jsdoc":"57.0.8","eslint-plugin-n":"17.23.1","eslint-plugin-sort-destructure-keys":"2.0.0","eslint-plugin-unicorn":"56.0.1","fast-glob":"3.3.3",globals:"16.4.0","http2-wrapper":"2.2.1",husky:"9.1.7","magic-string":"0.30.14",nock:"14.0.10","npm-run-all2":"8.0.4","openapi-typescript":"6.7.6",semver:"7.7.2",taze:"19.6.0","type-coverage":"2.29.7","typescript-eslint":"8.44.1",vitest:"3.2.4","yoctocolors-cjs":"2.1.3"},pnpm:{ignoredBuiltDependencies:["esbuild","unrs-resolver"],overrides:{vite:"7.1.11"}},engines:{node:">=18",pnpm:">=10.16.0"},files:["CHANGELOG.md","data/api-method-quota-and-permissions.json","dist/constants.d.ts","dist/file-upload.d.ts","dist/http-client.d.ts","dist/index.d.ts","dist/index.mjs","dist/promise-queue.d.ts","dist/quota-utils.d.ts","dist/socket-sdk-class.d.ts","dist/testing.d.ts","dist/testing.mjs","dist/types-strict.d.ts","dist/types.d.ts","dist/user-agent.d.ts","dist/utils.d.ts","types/api-helpers.d.ts","types/api.d.ts"],typeCoverage:{cache:!0,atLeast:99,ignoreAsAssertion:!0,ignoreCatch:!0,ignoreEmptyType:!0,"ignore-non-null-assertion":!0,"ignore-type-assertion":!0,"ignore-files":"test/*",strict:!0}};function Rr(e){let{homepage:t}=e;return`${e.name.replace("@","").replace("/","-")}/${e.version}${t?` (${t})`:""}`}var xs=Rr(oo),ao=3e4,lo=3,co=1e3,Is=300*1e3,ks=5e3,Ls=10*1024*1024,Wt=100*1024*1024,uo="https://socketusercontent.com",$s=new Set(["http","https","http2"]),nh=new Map([["malware","error"],["criticalCVE","warn"],["didYouMean","warn"],["gitDependency","warn"],["httpDependency","warn"],["licenseSpdxDisj","warn"],["obfuscatedFile","warn"],["troll","warn"],["deprecated","monitor"],["mediumCVE","monitor"],["mildCVE","monitor"],["shrinkwrap","monitor"],["telemetry","monitor"],["unpopularPackage","monitor"],["unstableOwnership","monitor"],["ambiguousClassifier","ignore"],["badEncoding","ignore"],["badSemver","ignore"],["badSemverDependency","ignore"],["bidi","ignore"],["binScriptConfusion","ignore"],["chromeContentScript","ignore"],["chromeHostPermission","ignore"],["chromePermission","ignore"],["chromeWildcardHostPermission","ignore"],["chronoAnomaly","ignore"],["compromisedSSHKey","ignore"],["copyleftLicense","ignore"],["cve","ignore"],["debugAccess","ignore"],["deprecatedLicense","ignore"],["deprecatedException","ignore"],["dynamicRequire","ignore"],["emptyPackage","ignore"],["envVars","ignore"],["explicitlyUnlicensedItem","ignore"],["extraneousDependency","ignore"],["fileDependency","ignore"],["filesystemAccess","ignore"],["floatingDependency","ignore"],["gitHubDependency","ignore"],["gptAnomaly","ignore"],["gptDidYouMean","ignore"],["gptMalware","ignore"],["gptSecurity","ignore"],["hasNativeCode","ignore"],["highEntropyStrings","ignore"],["homoglyphs","ignore"],["installScripts","ignore"],["invalidPackageJSON","ignore"],["invisibleChars","ignore"],["licenseChange","ignore"],["licenseException","ignore"],["longStrings","ignore"],["majorRefactor","ignore"],["manifestConfusion","ignore"],["minifiedFile","ignore"],["miscLicenseIssues","ignore"],["missingAuthor","ignore"],["missingDependency","ignore"],["missingLicense","ignore"],["missingTarball","ignore"],["mixedLicense","ignore"],["modifiedException","ignore"],["modifiedLicense","ignore"],["networkAccess","ignore"],["newAuthor","ignore"],["noAuthorData","ignore"],["noBugTracker","ignore"],["noLicenseFound","ignore"],["noREADME","ignore"],["noRepository","ignore"],["noTests","ignore"],["noV1","ignore"],["noWebsite","ignore"],["nonOSILicense","ignore"],["nonSPDXLicense","ignore"],["nonpermissiveLicense","ignore"],["notice","ignore"],["obfuscatedRequire","ignore"],["peerDependency","ignore"],["potentialVulnerability","ignore"],["semverAnomaly","ignore"],["shellAccess","ignore"],["shellScriptOverride","ignore"],["socketUpgradeAvailable","ignore"],["suspiciousStarActivity","ignore"],["suspiciousString","ignore"],["trivialPackage","ignore"],["typeModuleCompatibility","ignore"],["uncaughtOptionalDependency","ignore"],["unclearLicense","ignore"],["unidentifiedLicense","ignore"],["unmaintained","ignore"],["unpublished","ignore"],["unresolvedRequire","ignore"],["unsafeCopyright","ignore"],["unusedDependency","ignore"],["urlStrings","ignore"],["usesEval","ignore"],["zeroWidth","ignore"]]);var Wa=Le(Ii(),1),Hi=Le(sr(),1);import Fa from"node:path";var Gi=(0,Wa.memoize)(e=>e.endsWith("/")?e:`${e}/`,{name:"normalizeBaseUrl"});function Ui(){if(Promise.withResolvers)return Promise.withResolvers();let e={};return e.promise=new Promise((t,s)=>{e.resolve=t,e.reject=s}),e}function Ze(e){let t=new URLSearchParams(e),s={__proto__:null},i=t.entries();for(let r of i){let o=r[0],l=r[1];o==="defaultBranch"?o="default_branch":o==="perPage"&&(o="per_page"),l&&(s[o]=l)}return new URLSearchParams(s)}function ir(e,t){let s=Lt(t);return e.map(i=>(0,Hi.normalizePath)(Fa.resolve(s,i)))}function Lt(e="."){return(0,Hi.normalizePath)(Fa.resolve(process.cwd(),e))}var Qa=Le(sr(),1);import Xi from"node:events";import{createReadStream as iy}from"node:fs";import Jr from"node:path";import{Readable as ny}from"node:stream";var Ki=Le(tr(),1),Ya=Le(Xr(),1),Vr=Le(Va(),1);import ry from"node:http";import sy from"node:https";var Fe=class e extends Error{response;constructor(t,s=""){let i=t.statusCode??"unknown",r=t.statusMessage??"No status message";super(`Socket API ${s||"Request failed"} (${i}): ${r}`),this.name="ResponseError",this.response=t,Error.captureStackTrace(this,e)}};async function $t(e,t,s){let i=ot(e).request(`${e}${t}`,{method:"DELETE",...s}).end();return await at(i)}async function Te(e,t,s){let i=(0,Vr.perfTimer)("http:get",{urlPath:t});try{let r=ot(e).request(`${e}${t}`,{method:"GET",...s}).end(),o=await at(r);return i({statusCode:o.statusCode}),o}catch(r){throw i({error:!0}),r}}async function De(e,t,s,i,r){let o=(0,Vr.perfTimer)(`http:${e.toLowerCase()}`,{urlPath:s});try{let l=JSON.stringify(i),a=ot(t).request(`${t}${s}`,{method:e,...r,headers:{...r.headers,"Content-Length":Buffer.byteLength(l,"utf8"),"Content-Type":"application/json"}});a.write(l),a.end();let n=await at(a);return o({statusCode:n.statusCode}),n}catch(l){throw o({error:!0}),l}}async function Yr(e){return await new Promise((t,s)=>{let i="",r=0;e.setEncoding("utf8"),e.on("data",o=>{let l=Buffer.byteLength(o,"utf8");if(r+=l,r>Ls){e.destroy(),s(new Error(`Response exceeds maximum size limit of ${Ls} bytes`));return}i+=o}),e.on("end",()=>t(i)),e.on("error",o=>s(o))})}function ot(e){return e.startsWith("https:")?sy:ry}async function at(e){return await new Promise((t,s)=>{let i=!1;e.on("response",r=>{i||t(r)}),e.on("timeout",()=>{i=!0,e.destroy(),s(new Error("Request timed out"))}),e.on("error",r=>{i||s(r)})})}async function be(e,t){let s=(0,Vr.perfTimer)("http:parse-json");try{if(!vt(e))throw new Fe(e,t?`${t} Request failed`:void 0);let i=await Yr(e);if(i==="")return(0,Ki.debugLog)("API response: empty response treated as {}"),s({success:!0}),{};try{let r=(0,Ya.jsonParse)(i);return(0,Ki.debugLog)("API response:",r),s({success:!0}),r}catch(r){if(s({error:!0}),r instanceof SyntaxError){let l=new Error(`Socket API - Invalid JSON response:
41
+ `,o!==void 0?o:!0,l,a);c.writeFileSync(e,u,{encoding:"utf8",...n,__proto__:null})}});var $u=Oe((uP,Lu)=>{"use strict";var Vn=Object.defineProperty,vw=Object.getOwnPropertyDescriptor,Sw=Object.getOwnPropertyNames,Ew=Object.prototype.hasOwnProperty,bw=(e,t)=>{for(var s in t)Vn(e,s,{get:t[s],enumerable:!0})},ww=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Sw(t))!Ew.call(e,r)&&r!==s&&Vn(e,r,{get:()=>t[r],enumerable:!(i=vw(t,r))||i.enumerable});return e},Rw=e=>ww(Vn({},"__esModule",{value:!0}),e),xu={};bw(xu,{normalizeIterationOptions:()=>Qn,normalizeRetryOptions:()=>Sr,pEach:()=>Pw,pEachChunk:()=>Tw,pFilter:()=>Cw,pFilterChunk:()=>ku,pRetry:()=>Os,resolveRetryOptions:()=>Jn});Lu.exports=Rw(xu);var Kn=Or(),Aw=qt(),Yn=Pr(),Iu=(0,Aw.getAbortSignal)(),Xn;function Ow(){return Xn===void 0&&(Xn=le("node:timers/promises")),Xn}function Qn(e){let t=typeof e=="number"?{concurrency:e}:e,{concurrency:s=1,retries:i,signal:r=Iu}={__proto__:null,...t};return{__proto__:null,concurrency:Math.max(1,s),retries:Sr({signal:r,...Jn(i)}),signal:r}}function Sr(e){let t=Jn(e),{args:s=[],backoffFactor:i=t.factor||2,baseDelayMs:r=t.minTimeout||200,jitter:o=!0,maxDelayMs:l=t.maxTimeout||1e4,onRetry:a,onRetryCancelOnFalse:n=!1,onRetryRethrow:c=!1,retries:u=t.retries||0,signal:h=Iu}=t;return{args:s,backoffFactor:i,baseDelayMs:r,jitter:o,maxDelayMs:l,minTimeout:r,maxTimeout:l,onRetry:a,onRetryCancelOnFalse:n,onRetryRethrow:c,retries:u,signal:h}}function Jn(e){let t={__proto__:null,retries:0,minTimeout:200,maxTimeout:1e4,factor:2};return typeof e=="number"?{...t,retries:e}:e?{...t,...e}:t}async function Pw(e,t,s){let i=Qn(s),{concurrency:r,retries:o,signal:l}=i,a=(0,Yn.arrayChunk)(e,r);for(let n of a){if(l?.aborted)return;await Promise.all(n.map(c=>Os((...u)=>t(u[0]),{...o,args:[c],signal:l})))}}async function Cw(e,t,s){let i=Qn(s);return(await ku((0,Yn.arrayChunk)(e,i.concurrency),t,i.retries)).flat()}async function Tw(e,t,s){let{chunkSize:i=100,...r}=s||{},o=(0,Yn.arrayChunk)(e,i),l=Sr(r),{signal:a}=l;for(let n of o){if(a?.aborted)return;await Os((...c)=>t(c[0]),{...l,args:[n]})}}async function ku(e,t,s){let i=Sr(s),{signal:r}=i,{length:o}=e,l=Array(o);for(let a=0;a<o;a+=1)if(r?.aborted)l[a]=[];else{let n=e[a],c=await Promise.all(n.map(u=>Os((...h)=>t(h[0]),{...i,args:[u]})));l[a]=n.filter((u,h)=>c[h])}return l}async function Os(e,t){let{args:s,backoffFactor:i,baseDelayMs:r,jitter:o,maxDelayMs:l,onRetry:a,onRetryCancelOnFalse:n,onRetryRethrow:c,retries:u,signal:h}=Sr(t);if(h?.aborted)return;if(u===0)return await e(...s||[],{signal:h});let p=Ow(),f=u,d=r,g=Kn.UNDEFINED_TOKEN;for(;f-->=0;){if(h?.aborted)return;try{return await e(...s||[],{signal:h})}catch(m){if(g===Kn.UNDEFINED_TOKEN&&(g=m),f<0)break;let y=d;if(o&&(y+=Math.floor(Math.random()*d)),y=Math.min(y,l),typeof a=="function")try{let S=a(u-f,m,y);if(S===!1&&n)break;typeof S=="number"&&S>=0&&(y=Math.min(S,l))}catch(S){if(c)throw S}try{await p.setTimeout(y,void 0,{signal:h})}catch{return}if(h?.aborted)return;d=Math.min(d*i,l)}}if(g!==Kn.UNDEFINED_TOKEN)throw g}});var Bu=Oe((hP,ju)=>{"use strict";var Zn=Object.defineProperty,xw=Object.getOwnPropertyDescriptor,Iw=Object.getOwnPropertyNames,kw=Object.prototype.hasOwnProperty,Lw=(e,t)=>{for(var s in t)Zn(e,s,{get:t[s],enumerable:!0})},$w=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Iw(t))!kw.call(e,r)&&r!==s&&Zn(e,r,{get:()=>t[r],enumerable:!(i=xw(t,r))||i.enumerable});return e},Nw=e=>$w(Zn({},"__esModule",{value:!0}),e),Nu={};Lw(Nu,{restoreWarnings:()=>Bw,setMaxEventTargetListeners:()=>jw,suppressMaxListenersWarning:()=>Mw,suppressWarningType:()=>Mu,withSuppressedWarnings:()=>Hw});ju.exports=Nw(Nu);var{apply:Dw}=Reflect,Ft,Er=new Set;function Du(){Ft||(Ft=process.emitWarning,process.emitWarning=(e,...t)=>{if(typeof e=="string"){for(let s of Er)if(e.includes(s))return}else if(e&&typeof e=="object"){let s=e;if(s.name&&Er.has(s.name))return}return Dw(Ft,process,[e,...t])})}function Mw(){Er.add("MaxListenersExceededWarning"),Du()}function Mu(e){Er.add(e),Du()}function jw(e,t=10){if(!e)return;let i=Object.getOwnPropertySymbols(e).find(r=>r.description==="events.maxEventTargetListeners");i&&(e[i]=t)}function Bw(){Ft&&(process.emitWarning=Ft,Ft=void 0,Er.clear())}async function Hw(e,t){let s=process.emitWarning;Mu(e);try{return await t()}finally{process.emitWarning=s}}});var qu=Oe((pP,Wu)=>{"use strict";var eo=Object.defineProperty,Gw=Object.getOwnPropertyDescriptor,Uw=Object.getOwnPropertyNames,Fw=Object.prototype.hasOwnProperty,Ww=(e,t)=>{for(var s in t)eo(e,s,{get:t[s],enumerable:!0})},qw=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Uw(t))!Fw.call(e,r)&&r!==s&&eo(e,r,{get:()=>t[r],enumerable:!(i=Gw(t,r))||i.enumerable});return e},zw=e=>qw(eo({},"__esModule",{value:!0}),e),Hu={};Ww(Hu,{createRelativeUrl:()=>Jw,isUrl:()=>Vw,parseUrl:()=>Gu,urlSearchParamAsArray:()=>Uu,urlSearchParamAsBoolean:()=>Fu,urlSearchParamAsNumber:()=>eR,urlSearchParamAsString:()=>Zw,urlSearchParamsGetArray:()=>Yw,urlSearchParamsGetBoolean:()=>Qw});Wu.exports=zw(Hu);var Kw=Boolean,Xw=URL;function Vw(e){return(typeof e=="string"&&e!==""||e!==null&&typeof e=="object")&&!!Gu(e)}function Gu(e){try{return new Xw(e)}catch{}}function Uu(e){return typeof e=="string"?e.trim().split(/, */).map(t=>t.trim()).filter(Kw):[]}function Fu(e,t){let{defaultValue:s=!1}={__proto__:null,...t};if(typeof e=="string"){let i=e.trim();return i==="1"||i.toLowerCase()==="true"}return e==null?!!s:!!e}function Yw(e,t){if(e&&typeof e.getAll=="function"){let s=e.getAll(t),i=s[0];return s.length===1&&i&&i.includes(",")?Uu(i):s}return[]}function Qw(e,t,s){let{defaultValue:i=!1}={__proto__:null,...s};if(e&&typeof e.get=="function"){let r=e.get(t);return r!==null?Fu(r,{defaultValue:i}):i}return i}function Jw(e,t){let{base:s=""}={__proto__:null,...t},i=e.replace(/^\//,"");if(s){let r=s;return r.endsWith("/")||(r+="/"),r+i}return i}function Zw(e,t,s){let{defaultValue:i=""}={__proto__:null,...s};if(e&&typeof e.get=="function"){let r=e.get(t);return r!==null?r:i}return i}function eR(e,t,s){let{defaultValue:i=0}={__proto__:null,...s};if(e&&typeof e.get=="function"){let r=e.get(t);if(r!==null){let o=Number(r);return Number.isNaN(o)?i:o}}return i}});var oo={name:"@socketsecurity/sdk",version:"3.0.5",license:"MIT",description:"SDK for the Socket API client",author:{name:"Socket Inc",email:"eng@socket.dev",url:"https://socket.dev"},homepage:"https://github.com/SocketDev/socket-sdk-js",repository:{type:"git",url:"git://github.com/SocketDev/socket-sdk-js.git"},type:"module",main:"./dist/index.mjs",types:"./dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",default:"./dist/index.mjs"},"./package.json":"./package.json","./testing":{types:"./dist/testing.d.ts",default:"./dist/testing.mjs"},"./types/api":{types:"./types/api.d.ts",default:"./types/api.d.ts"},"./types/api-helpers":{types:"./types/api-helpers.d.ts",default:"./types/api-helpers.d.ts"}},scripts:{build:"node scripts/build.mjs",bump:"bash scripts/node-with-loader.sh scripts/bump.mjs",check:"bash scripts/node-with-loader.sh scripts/check.mjs","check-ci":"pnpm run check --all",clean:"node scripts/clean.mjs",cover:"bash scripts/node-with-loader.sh scripts/cover.mjs",fix:"node scripts/lint.mjs --fix","generate-sdk":"bash scripts/node-with-loader.sh scripts/generate-sdk.mjs",lint:"node scripts/lint.mjs","lint-ci":"pnpm run lint --all",precommit:"pnpm run check --lint --staged",prepare:"husky",prepublishOnly:"echo 'ERROR: Use GitHub Actions workflow for publishing' && exit 1",publish:"bash scripts/node-with-loader.sh scripts/publish.mjs",claude:"bash scripts/node-with-loader.sh scripts/claude.mjs",test:"node scripts/test.mjs","test-ci":"pnpm run test --all",type:"tsgo --noEmit -p .config/tsconfig.check.json","type-ci":"pnpm run type",update:"bash scripts/node-with-loader.sh scripts/update.mjs"},devDependencies:{"@babel/parser":"7.26.3","@babel/traverse":"7.26.4","@babel/types":"7.26.3","@biomejs/biome":"2.2.4","@dotenvx/dotenvx":"1.49.0","@eslint/compat":"1.3.2","@eslint/js":"9.35.0","@socketsecurity/lib":"1.3.2","@socketsecurity/registry":"1.5.3","@types/node":"24.6.2","@typescript/native-preview":"7.0.0-dev.20250926.1","@vitest/coverage-v8":"3.2.4",del:"8.0.1","dev-null-cli":"2.0.0",esbuild:"0.25.10",eslint:"9.35.0","eslint-import-resolver-typescript":"4.4.4","eslint-plugin-import-x":"4.16.1","eslint-plugin-jsdoc":"57.0.8","eslint-plugin-n":"17.23.1","eslint-plugin-sort-destructure-keys":"2.0.0","eslint-plugin-unicorn":"56.0.1","fast-glob":"3.3.3",globals:"16.4.0","http2-wrapper":"2.2.1",husky:"9.1.7","magic-string":"0.30.14",nock:"14.0.10","npm-run-all2":"8.0.4","openapi-typescript":"6.7.6",semver:"7.7.2",taze:"19.6.0","type-coverage":"2.29.7","typescript-eslint":"8.44.1",vitest:"3.2.4","yoctocolors-cjs":"2.1.3"},pnpm:{ignoredBuiltDependencies:["esbuild","unrs-resolver"],overrides:{vite:"7.1.11"}},engines:{node:">=18",pnpm:">=10.16.0"},files:["CHANGELOG.md","data/*.json","dist/*.d.ts","dist/*.js","dist/*.mjs","types/*.d.ts"],typeCoverage:{cache:!0,atLeast:99,ignoreAsAssertion:!0,ignoreCatch:!0,ignoreEmptyType:!0,"ignore-non-null-assertion":!0,"ignore-type-assertion":!0,"ignore-files":"test/*",strict:!0}};function Rr(e){let{homepage:t}=e;return`${e.name.replace("@","").replace("/","-")}/${e.version}${t?` (${t})`:""}`}var xs=Rr(oo),ao=3e4,lo=3,co=1e3,Is=300*1e3,ks=5e3,Ls=10*1024*1024,Wt=100*1024*1024,uo="https://socketusercontent.com",$s=new Set(["http","https","http2"]),nh=new Map([["malware","error"],["criticalCVE","warn"],["didYouMean","warn"],["gitDependency","warn"],["httpDependency","warn"],["licenseSpdxDisj","warn"],["obfuscatedFile","warn"],["troll","warn"],["deprecated","monitor"],["mediumCVE","monitor"],["mildCVE","monitor"],["shrinkwrap","monitor"],["telemetry","monitor"],["unpopularPackage","monitor"],["unstableOwnership","monitor"],["ambiguousClassifier","ignore"],["badEncoding","ignore"],["badSemver","ignore"],["badSemverDependency","ignore"],["bidi","ignore"],["binScriptConfusion","ignore"],["chromeContentScript","ignore"],["chromeHostPermission","ignore"],["chromePermission","ignore"],["chromeWildcardHostPermission","ignore"],["chronoAnomaly","ignore"],["compromisedSSHKey","ignore"],["copyleftLicense","ignore"],["cve","ignore"],["debugAccess","ignore"],["deprecatedLicense","ignore"],["deprecatedException","ignore"],["dynamicRequire","ignore"],["emptyPackage","ignore"],["envVars","ignore"],["explicitlyUnlicensedItem","ignore"],["extraneousDependency","ignore"],["fileDependency","ignore"],["filesystemAccess","ignore"],["floatingDependency","ignore"],["gitHubDependency","ignore"],["gptAnomaly","ignore"],["gptDidYouMean","ignore"],["gptMalware","ignore"],["gptSecurity","ignore"],["hasNativeCode","ignore"],["highEntropyStrings","ignore"],["homoglyphs","ignore"],["installScripts","ignore"],["invalidPackageJSON","ignore"],["invisibleChars","ignore"],["licenseChange","ignore"],["licenseException","ignore"],["longStrings","ignore"],["majorRefactor","ignore"],["manifestConfusion","ignore"],["minifiedFile","ignore"],["miscLicenseIssues","ignore"],["missingAuthor","ignore"],["missingDependency","ignore"],["missingLicense","ignore"],["missingTarball","ignore"],["mixedLicense","ignore"],["modifiedException","ignore"],["modifiedLicense","ignore"],["networkAccess","ignore"],["newAuthor","ignore"],["noAuthorData","ignore"],["noBugTracker","ignore"],["noLicenseFound","ignore"],["noREADME","ignore"],["noRepository","ignore"],["noTests","ignore"],["noV1","ignore"],["noWebsite","ignore"],["nonOSILicense","ignore"],["nonSPDXLicense","ignore"],["nonpermissiveLicense","ignore"],["notice","ignore"],["obfuscatedRequire","ignore"],["peerDependency","ignore"],["potentialVulnerability","ignore"],["semverAnomaly","ignore"],["shellAccess","ignore"],["shellScriptOverride","ignore"],["socketUpgradeAvailable","ignore"],["suspiciousStarActivity","ignore"],["suspiciousString","ignore"],["trivialPackage","ignore"],["typeModuleCompatibility","ignore"],["uncaughtOptionalDependency","ignore"],["unclearLicense","ignore"],["unidentifiedLicense","ignore"],["unmaintained","ignore"],["unpublished","ignore"],["unresolvedRequire","ignore"],["unsafeCopyright","ignore"],["unusedDependency","ignore"],["urlStrings","ignore"],["usesEval","ignore"],["zeroWidth","ignore"]]);var Wa=Le(Ii(),1),Hi=Le(sr(),1);import Fa from"node:path";var Gi=(0,Wa.memoize)(e=>e.endsWith("/")?e:`${e}/`,{name:"normalizeBaseUrl"});function Ui(){if(Promise.withResolvers)return Promise.withResolvers();let e={};return e.promise=new Promise((t,s)=>{e.resolve=t,e.reject=s}),e}function Ze(e){let t=new URLSearchParams(e),s={__proto__:null},i=t.entries();for(let r of i){let o=r[0],l=r[1];o==="defaultBranch"?o="default_branch":o==="perPage"&&(o="per_page"),l&&(s[o]=l)}return new URLSearchParams(s)}function ir(e,t){let s=Lt(t);return e.map(i=>(0,Hi.normalizePath)(Fa.resolve(s,i)))}function Lt(e="."){return(0,Hi.normalizePath)(Fa.resolve(process.cwd(),e))}var Qa=Le(sr(),1);import Xi from"node:events";import{createReadStream as iy}from"node:fs";import Jr from"node:path";import{Readable as ny}from"node:stream";var Ki=Le(tr(),1),Ya=Le(Xr(),1),Vr=Le(Va(),1);import ry from"node:http";import sy from"node:https";var Fe=class e extends Error{response;constructor(t,s=""){let i=t.statusCode??"unknown",r=t.statusMessage??"No status message";super(`Socket API ${s||"Request failed"} (${i}): ${r}`),this.name="ResponseError",this.response=t,Error.captureStackTrace(this,e)}};async function $t(e,t,s){let i=ot(e).request(`${e}${t}`,{method:"DELETE",...s}).end();return await at(i)}async function Te(e,t,s){let i=(0,Vr.perfTimer)("http:get",{urlPath:t});try{let r=ot(e).request(`${e}${t}`,{method:"GET",...s}).end(),o=await at(r);return i({statusCode:o.statusCode}),o}catch(r){throw i({error:!0}),r}}async function De(e,t,s,i,r){let o=(0,Vr.perfTimer)(`http:${e.toLowerCase()}`,{urlPath:s});try{let l=JSON.stringify(i),a=ot(t).request(`${t}${s}`,{method:e,...r,headers:{...r.headers,"Content-Length":Buffer.byteLength(l,"utf8"),"Content-Type":"application/json"}});a.write(l),a.end();let n=await at(a);return o({statusCode:n.statusCode}),n}catch(l){throw o({error:!0}),l}}async function Yr(e){return await new Promise((t,s)=>{let i="",r=0;e.setEncoding("utf8"),e.on("data",o=>{let l=Buffer.byteLength(o,"utf8");if(r+=l,r>Ls){e.destroy(),s(new Error(`Response exceeds maximum size limit of ${Ls} bytes`));return}i+=o}),e.on("end",()=>t(i)),e.on("error",o=>s(o))})}function ot(e){return e.startsWith("https:")?sy:ry}async function at(e){return await new Promise((t,s)=>{let i=!1;e.on("response",r=>{i||t(r)}),e.on("timeout",()=>{i=!0,e.destroy(),s(new Error("Request timed out"))}),e.on("error",r=>{i||s(r)})})}async function be(e,t){let s=(0,Vr.perfTimer)("http:parse-json");try{if(!vt(e))throw new Fe(e,t?`${t} Request failed`:void 0);let i=await Yr(e);if(i==="")return(0,Ki.debugLog)("API response: empty response treated as {}"),s({success:!0}),{};try{let r=(0,Ya.jsonParse)(i);return(0,Ki.debugLog)("API response:",r),s({success:!0}),r}catch(r){if(s({error:!0}),r instanceof SyntaxError){let l=new Error(`Socket API - Invalid JSON response:
42
42
  ${i}
43
43
  \u2192 ${r.message}`,{cause:r});throw l.name="SyntaxError",l.originalResponse=i,Object.setPrototypeOf(l,SyntaxError.prototype),l}if(r instanceof Error)throw r;let o=new Error("Unknown JSON parsing error",{cause:r});throw o.name="SyntaxError",o.originalResponse=i,Object.setPrototypeOf(o,SyntaxError.prototype),o}}catch(i){throw s({error:!0}),i}}function vt(e){let{statusCode:t}=e;return t?t>=200&&t<300:!1}function Qr(e,t,s){if(!t){let i=s?s.split(","):void 0,r=o=>({name:o.name,version:o.version,size:o.size,author:o.author,type:o.type,supplyChainRisk:o.supplyChainRisk,scorecards:o.scorecards,topLevelAncestors:o.topLevelAncestors,alerts:o.alerts?.filter(l=>!(l.severity==="low"||i&&l.action&&!i.includes(l.action))).map(l=>({type:l.type,severity:l.severity,key:l.key}))});if(e.artifacts){let o=e.artifacts;return{...e,artifacts:Array.isArray(o)?o.map(r):o}}if(e.alerts)return r(e)}return e}function or(e,t){let s=[];for(let i of e){let r=(0,Qa.normalizePath)(Jr.relative(t,i)),o=Jr.basename(i);s.push([`Content-Disposition: form-data; name="${r}"; filename="${o}"\r
44
44
  `,`Content-Type: application/octet-stream\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/sdk",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "license": "MIT",
5
5
  "description": "SDK for the Socket API client",
6
6
  "author": {
@@ -110,23 +110,11 @@
110
110
  },
111
111
  "files": [
112
112
  "CHANGELOG.md",
113
- "data/api-method-quota-and-permissions.json",
114
- "dist/constants.d.ts",
115
- "dist/file-upload.d.ts",
116
- "dist/http-client.d.ts",
117
- "dist/index.d.ts",
118
- "dist/index.mjs",
119
- "dist/promise-queue.d.ts",
120
- "dist/quota-utils.d.ts",
121
- "dist/socket-sdk-class.d.ts",
122
- "dist/testing.d.ts",
123
- "dist/testing.mjs",
124
- "dist/types-strict.d.ts",
125
- "dist/types.d.ts",
126
- "dist/user-agent.d.ts",
127
- "dist/utils.d.ts",
128
- "types/api-helpers.d.ts",
129
- "types/api.d.ts"
113
+ "data/*.json",
114
+ "dist/*.d.ts",
115
+ "dist/*.js",
116
+ "dist/*.mjs",
117
+ "types/*.d.ts"
130
118
  ],
131
119
  "typeCoverage": {
132
120
  "cache": true,