@eslint-sukka/react 8.9.1 → 8.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -407,7 +407,7 @@ The file was not found in any of the provided ${a}: ${r}`)},d6.createProgramFrom
|
|
|
407
407
|
Having many files run with the default project is known to cause performance issues and slow down linting.
|
|
408
408
|
|
|
409
409
|
See https://tseslint.com/allowdefaultproject-glob-too-wide
|
|
410
|
-
`,pn)}var pi={};function pa(){if(tU)return pi;tU=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.addCandidateTSConfigRootDir=function(t){e.add(t)},pi.clearCandidateTSConfigRootDirs=function(){e.clear()},pi.getInferredTSConfigRootDir=function(){let t=[...e];switch(t.length){case 0:return process.cwd();case 1:return t[0];default:throw Error(["No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present:",...t.map(e=>` - ${e}`),"You'll need to explicitly set tsconfigRootDir in your parser options.","See: https://tseslint.com/parser-tsconfigrootdir"].join("\n"))}};let e=new Set;return pi}var po={};function ps(){if(tB)return po;tB=1,Object.defineProperty(po,"__esModule",{value:!0}),po.ExpiringCache=po.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=void 0,po.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=30;let e=[0,0];return po.ExpiringCache=class{#S;#E=new Map;constructor(e){this.#S=e}clear(){this.#E.clear()}get(e){let t=this.#E.get(e);if(t?.value!=null){if("Infinity"===this.#S||process.hrtime(t.lastSeen)[0]<this.#S)return t.value;this.#E.delete(e)}}set(t,n){return this.#E.set(t,{lastSeen:"Infinity"===this.#S?e:process.hrtime(),value:n}),this}},po}var pl={},pc={},pu={},p_=aF.createRequire("u"<typeof document?require("url").pathToFileURL(__filename).href:aU&&"SCRIPT"===aU.tagName.toUpperCase()&&aU.src||new URL("index.cjs",document.baseURI).href);let pd=/[\\/]/g;function pp(e,t){return e.replace(pd,t)}let pf=/^[a-z]:[\\/]$/i;function pm(e,t){var n;let r,{resolvePaths:i,normalizePath:a,pathSeparator:o}=t,s="win32"===process.platform&&e.includes("/")||e.startsWith(".");return i&&(e=aw.resolve(e)),((a||s)&&(n=e,(r=aw.normalize(n)).length>1&&r[r.length-1]===aw.sep&&(r=r.substring(0,r.length-1)),e=r),"."===e)?"":pp(e[e.length-1]!==o?e+o:e,o)}function pg(e,t){return t+e}function ph(e){return e}let py=(e,t)=>{t.push(e||".")},pv=(e,t,n)=>{let r=e||".";n.every(e=>e(r,!0))&&t.push(r)},pb=()=>{},px=(e,t,n,r)=>{r.every(t=>t(e,!1))&&n.files++},pT=(e,t,n,r)=>{r.every(t=>t(e,!1))&&t.push(e)},pS=(e,t,n,r)=>{n.files++},pE=(e,t)=>{t.push(e)},pk=()=>{},pP=e=>e,pC=()=>[""].slice(0,0),pw=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},pA=()=>{},pD=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue(),i.realpath(e,(o,s)=>{if(o)return r.dequeue(a?null:o,t);i.stat(s,(i,o)=>i?r.dequeue(a?null:i,t):o.isDirectory()&&pF(e,s,t)?r.dequeue(null,t):void(n(o,s),r.dequeue(null,t)))})},pN=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue();try{let r=i.realpathSync(e),a=i.statSync(r);if(a.isDirectory()&&pF(e,r,t))return;n(a,r)}catch(e){if(!a)throw e}};function pF(e,t,n){if(n.options.useRealPaths){var r,i;return r=t,(i=n).visited.includes(r+i.options.pathSeparator)}let a=aw.dirname(e),o=1;for(;a!==n.root&&o<2;){let e=n.symlinks.get(a);e&&(e===t||e.startsWith(t)||t.startsWith(e))?o++:a=aw.dirname(a)}return n.symlinks.set(e,t),o>1}let pI=e=>e.counts,pO=e=>e.groups,pL=e=>e.paths,pM=e=>e.paths.slice(0,e.options.maxFiles),pR=(e,t,n)=>(pB(t,n,e.counts,e.options.suppressErrors),null),pj=(e,t,n)=>(pB(t,n,e.paths,e.options.suppressErrors),null),pY=(e,t,n)=>(pB(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),pU=(e,t,n)=>(pB(t,n,e.groups,e.options.suppressErrors),null);function pB(e,t,n,r){t(e&&!r?e:null,n)}let pV={withFileTypes:!0},pJ=(e,t,n,r,i)=>{if(e.queue.enqueue(),r<0)return e.queue.dequeue(null,e);let{fs:a}=e;e.visited.push(t),e.counts.directories++,a.readdir(t||".",pV,(t,a=[])=>{i(a,n,r),e.queue.dequeue(e.options.suppressErrors?null:t,e)})},pz=(e,t,n,r,i)=>{let{fs:a}=e;if(r<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=a.readdirSync(t||".",pV)}catch(t){if(!e.options.suppressErrors)throw t}i(o,n,r)};var pq=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},p$=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},pW=class{aborted=!1;abort(){this.aborted=!0}},pK=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){var r,i;this.isSynchronous=!n,this.callbackInvoker=function(e,t){let{onlyCounts:n,group:r,maxFiles:i}=e;return n?t?pI:pR:r?t?pO:pU:i?t?pM:pY:t?pL:pj}(t,this.isSynchronous),this.root=pm(e,t),this.state={root:"/"===(r=this.root)||pf.test(r)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new p$,options:t,queue:new pq((e,t)=>this.callbackInvoker(t,e,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new pW,fs:t.fs||aK},this.joinPath=function(e,t){let{relativePaths:n,includeBasePath:r}=t;return n&&e?function(n,r){return r.startsWith(e)?r.slice(e.length)+n:pp(aw.relative(e,r),t.pathSeparator)+t.pathSeparator+n}:r?pg:ph}(this.root,t),this.pushDirectory=function(e,t){let{includeDirs:n,filters:r,relativePaths:i}=t;if(!n)return pb;if(i)return r&&r.length?function(t,n,r){let i=t.substring(e.length)||".";r.every(e=>e(i,!0))&&n.push(i)}:function(t,n){n.push(t.substring(e.length)||".")};return r&&r.length?pv:py}(this.root,t),this.pushFile=function(e){let{excludeFiles:t,filters:n,onlyCounts:r}=e;return t?pk:n&&n.length?r?px:pT:r?pS:pE}(t),this.getArray=t.group?pC:pP,this.groupFiles=t.group?pw:pA,this.resolveSymlink=(i=this.isSynchronous,!t.resolveSymlinks||t.excludeSymlinks?null:i?pN:pD),this.walkDirectory=this.isSynchronous?pz:pJ}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:r,options:{filters:i,resolveSymlinks:a,excludeSymlinks:o,exclude:s,maxFiles:l,signal:c,useRealPaths:u,pathSeparator:_},controller:d}=this.state;if(d.aborted||c&&c.aborted||l&&r.length>l)return;let p=this.getArray(this.state.paths);for(let l=0;l<e.length;++l){let c=e[l];if(c.isFile()||c.isSymbolicLink()&&!a&&!o){let e=this.joinPath(c.name,t);this.pushFile(e,p,this.state.counts,i)}else if(c.isDirectory()){let e=t+c.name+this.state.options.pathSeparator;if(s&&s(c.name,e))continue;this.pushDirectory(e,r,i),this.walkDirectory(this.state,e,e,n-1,this.walk)}else if(this.resolveSymlink&&c.isSymbolicLink()){let e=t+c.name;this.resolveSymlink(e,this.state,(t,r)=>{if(t.isDirectory())r=pm(r,this.state.options),s&&s(c.name,u?r:e+_)||this.walkDirectory(this.state,r,u?r:e+_,n-1,this.walk);else{r=u?r:e;let t=aw.basename(r),n=pm(aw.dirname(r),this.state.options);r=this.joinPath(t,n),this.pushFile(r,p,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,p)}};function pG(e,t,n){new pK(e,t,n).start()}var pH=class{constructor(e,t){this.root=e,this.options=t}withPromise(){var e,t;return e=this.root,t=this.options,new Promise((n,r)=>{pG(e,t,(e,t)=>{if(e)return r(e);n(t)})})}withCallback(e){pG(this.root,this.options,e)}sync(){return new pK(this.root,this.options).start()}};let pX=null;try{p_.resolve("picomatch"),pX=p_("picomatch")}catch{}var pQ=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:aw.sep,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new pH(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new pH(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||pX;if(!n)throw Error("Please specify a glob function to use glob matching.");var r=this.globCache[e.join("\0")];return r||(r=n(e,...t),this.globCache[e.join("\0")]=r),this.options.filters.push(e=>r(e)),this}},pZ={};function p0(){if(tq)return tz;tq=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,a=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,s=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:s,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r,SEP:"/"},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};return tz={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{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"},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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function p1(){return t$||(t$=1,!function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=p0();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("u">typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return"u">typeof process&&!!process.platform&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",a=`${r}(?:${e})${i}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),r=n[n.length-1];return""===r?n[n.length-2]:r}}(pZ)),pZ}var p2=a5(function(){if(t0)return tZ;t0=1;let e=function(){if(tQ)return tX;tQ=1;let e=function(){if(tK)return tW;tK=1;let e=p1(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:_,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=p0(),g=e=>e===s||e===r,h=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return tW=(y,b)=>{let x,T,S=b||{},E=y.length-1,k=!0===S.parts||!0===S.scanToEnd,P=[],C=[],w=[],A=y,D=-1,N=0,F=0,I=!1,O=!1,L=!1,M=!1,R=!1,j=!1,Y=!1,U=!1,B=!1,V=!1,J=0,z={value:"",depth:0,isGlob:!1},q=()=>D>=E,$=()=>A.charCodeAt(D+1),W=()=>(x=T,A.charCodeAt(++D));for(;D<E;){let e;if((T=W())===r){Y=z.backslashes=!0,(T=W())===l&&(j=!0);continue}if(!0===j||T===l){for(J++;!0!==q()&&(T=W());){if(T===r){Y=z.backslashes=!0,W();continue}if(T===l){J++;continue}if(!0!==j&&T===a&&(T=W())===a||!0!==j&&T===i){if(I=z.isBrace=!0,L=z.isGlob=!0,V=!0,!0===k)continue;break}if(T===p&&0==--J){j=!1,I=z.isBrace=!0,V=!0;break}}if(!0===k)continue;break}if(T===s){if(P.push(D),C.push(z),z={value:"",depth:0,isGlob:!1},!0===V)continue;if(x===a&&D===N+1){N+=2;continue}F=D+1;continue}if(!0!==S.noext&&!0==(T===_||T===n||T===t||T===d||T===o)&&$()===c){if(L=z.isGlob=!0,M=z.isExtglob=!0,V=!0,T===o&&D===N&&(B=!0),!0===k){for(;!0!==q()&&(T=W());){if(T===r){Y=z.backslashes=!0,T=W();continue}if(T===f){L=z.isGlob=!0,V=!0;break}}continue}break}if(T===t){if(x===t&&(R=z.isGlobstar=!0),L=z.isGlob=!0,V=!0,!0===k)continue;break}if(T===d){if(L=z.isGlob=!0,V=!0,!0===k)continue;break}if(T===u){for(;!0!==q()&&(e=W());){if(e===r){Y=z.backslashes=!0,W();continue}if(e===m){O=z.isBracket=!0,L=z.isGlob=!0,V=!0;break}}if(!0===k)continue;break}if(!0!==S.nonegate&&T===o&&D===N){U=z.negated=!0,N++;continue}if(!0!==S.noparen&&T===c){if(L=z.isGlob=!0,!0===k){for(;!0!==q()&&(T=W());){if(T===c){Y=z.backslashes=!0,T=W();continue}if(T===f){V=!0;break}}continue}break}if(!0===L){if(V=!0,!0===k)continue;break}}!0===S.noext&&(M=!1,L=!1);let K=A,G="",H="";N>0&&(G=A.slice(0,N),A=A.slice(N),F-=N),K&&!0===L&&F>0?(K=A.slice(0,F),H=A.slice(F)):!0===L?(K="",H=A):K=A,K&&""!==K&&"/"!==K&&K!==A&&g(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===S.unescape&&(H&&(H=e.removeBackslashes(H)),K&&!0===Y&&(K=e.removeBackslashes(K)));let X={prefix:G,input:y,start:N,base:K,glob:H,isBrace:I,isBracket:O,isGlob:L,isExtglob:M,isGlobstar:R,negated:U,negatedExtglob:B};if(!0===S.tokens&&(X.maxDepth=0,g(T)||C.push(z),X.tokens=C),!0===S.parts||!0===S.tokens){let e;for(let t=0;t<P.length;t++){let n=e?e+1:N,r=P[t],i=y.slice(n,r);S.tokens&&(0===t&&0!==N?(C[t].isPrefix=!0,C[t].value=G):C[t].value=i,h(C[t]),X.maxDepth+=C[t].depth),(0!==t||""!==i)&&w.push(i),e=r}if(e&&e+1<y.length){let t=y.slice(e+1);w.push(t),S.tokens&&(C[C.length-1].value=t,h(C[C.length-1]),X.maxDepth+=C[C.length-1].depth)}X.slashes=P,X.parts=w}return X}}(),t=function(){if(tH)return tG;tH=1;let e=p0(),t=p1(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,_)=>{let d;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let p={..._},f="number"==typeof p.maxLength?Math.min(n,p.maxLength):n,m=u.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:p.prepend||""},h=[g],y=p.capture?"":"?:",b=e.globChars(p.windows),x=e.extglobChars(b),{DOT_LITERAL:T,PLUS_LITERAL:S,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:C,NO_DOT_SLASH:w,NO_DOTS_SLASH:A,QMARK:D,QMARK_NO_DOT:N,STAR:F,START_ANCHOR:I}=b,O=e=>`(${y}(?:(?!${I}${e.dot?P:T}).)*?)`,L=p.dot?"":C,M=p.dot?D:N,R=!0===p.bash?O(p):F;p.capture&&(R=`(${R})`),"boolean"==typeof p.noext&&(p.noextglob=p.noext);let j={input:u,index:-1,start:0,dot:!0===p.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};m=(u=t.removePrefix(u,j)).length;let Y=[],U=[],B=[],V=g,J=()=>j.index===m-1,z=j.peek=(e=1)=>u[j.index+e],q=j.advance=()=>u[++j.index]||"",$=()=>u.slice(j.index+1),W=(e="",t=0)=>{j.consumed+=e,j.index+=t},K=e=>{j.output+=null!=e.output?e.output:e.value,W(e.value)},G=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)q(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},H=e=>{j[e]++,B.push(e)},X=e=>{j[e]--,B.pop()},Q=e=>{if("globstar"===V.type){let t=j.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||Y.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(j.output=j.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=R,j.output+=V.output)}if(Y.length&&"paren"!==e.type&&(Y[Y.length-1].inner+=e.value),(e.value||e.output)&&K(e),V&&"text"===V.type&&"text"===e.type){V.output=(V.output||V.value)+e.value,V.value+=e.value;return}e.prev=V,h.push(e),V=e},Z=(e,t)=>{let n={...x[t],conditions:1,inner:""};n.prev=V,n.parens=j.parens,n.output=j.output;let r=(p.capture?"(":"")+n.open;H("parens"),Q({type:e,value:t,output:j.output?"":k}),Q({type:"paren",extglob:!0,value:q(),output:r}),Y.push(n)},ee=e=>{let t,n=e.close+(p.capture?")":"");if("negate"===e.type){let r=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=O(p)),(r!==R||J()||/^\)+$/.test($()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=$())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{..._,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:d,output:n}),X("parens")};if(!1!==p.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(a,(t,n,r,i,a,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(a?D.repeat(a.length):""):0===o?M+(a?D.repeat(a.length):""):D.repeat(r.length):"."===i?T.repeat(r.length):"*"===i?n?n+i+(a?R:""):R:n?t:`\\${t}`);return(!0===e&&(n=!0===p.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===p.contains)?j.output=u:j.output=t.wrapOutput(n,j,_),j}for(;!J();){if("\0"===(d=q()))continue;if("\\"===d){let e=z();if("/"===e&&!0!==p.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:d+="\\"});continue}let t=/^\\+/.exec($()),n=0;if(t&&t[0].length>2&&(n=t[0].length,j.index+=n,n%2!=0&&(d+="\\")),!0===p.unescape?d=q():d+=q(),0===j.brackets){Q({type:"text",value:d});continue}}if(j.brackets>0&&("]"!==d||"["===V.value||"[^"===V.value)){if(!1!==p.posix&&":"===d){let e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){let e=V.value.lastIndexOf("["),t=V.value.slice(0,e),n=r[V.value.slice(e+2)];if(n){V.value=t+n,j.backtrack=!0,q(),g.output||1!==h.indexOf(V)||(g.output=k);continue}}}("["===d&&":"!==z()||"-"===d&&"]"===z())&&(d=`\\${d}`),"]"===d&&("["===V.value||"[^"===V.value)&&(d=`\\${d}`),!0===p.posix&&"!"===d&&"["===V.value&&(d="^"),V.value+=d,K({value:d});continue}if(1===j.quotes&&'"'!==d){d=t.escapeRegex(d),V.value+=d,K({value:d});continue}if('"'===d){j.quotes=+(1!==j.quotes),!0===p.keepQuotes&&Q({type:"text",value:d});continue}if("("===d){H("parens"),Q({type:"paren",value:d});continue}if(")"===d){if(0===j.parens&&!0===p.strictBrackets)throw SyntaxError(l("opening","("));let e=Y[Y.length-1];if(e&&j.parens===e.parens+1){ee(Y.pop());continue}Q({type:"paren",value:d,output:j.parens?")":"\\)"}),X("parens");continue}if("["===d){if(!0!==p.nobracket&&$().includes("]"))H("brackets");else{if(!0!==p.nobracket&&!0===p.strictBrackets)throw SyntaxError(l("closing","]"));d=`\\${d}`}Q({type:"bracket",value:d});continue}if("]"===d){if(!0===p.nobracket||V&&"bracket"===V.type&&1===V.value.length){Q({type:"text",value:d,output:`\\${d}`});continue}if(0===j.brackets){if(!0===p.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:d,output:`\\${d}`});continue}X("brackets");let e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(d=`/${d}`),V.value+=d,K({value:d}),!1===p.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(V.value);if(j.output=j.output.slice(0,-V.value.length),!0===p.literalBrackets){j.output+=n,V.value=n;continue}V.value=`(${y}${n}|${V.value})`,j.output+=V.value;continue}if("{"===d&&!0!==p.nobrace){H("braces");let e={type:"brace",value:d,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};U.push(e),Q(e);continue}if("}"===d){let e=U[U.length-1];if(!0===p.nobrace||!e){Q({type:"text",value:d,output:d});continue}let t=")";if(!0===e.dots){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=s(n,p),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=j.output.slice(0,e.outputIndex),r=j.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",d=t="\\}",j.output=n,r))j.output+=i.output||i.value}Q({type:"brace",value:d,output:t}),X("braces"),U.pop();continue}if("|"===d){Y.length>0&&Y[Y.length-1].conditions++,Q({type:"text",value:d});continue}if(","===d){let e=d,t=U[U.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:d,output:e});continue}if("/"===d){if("dot"===V.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",h.pop(),V=g;continue}Q({type:"slash",value:d,output:E});continue}if("."===d){if(j.braces>0&&"dot"===V.type){"."===V.value&&(V.output=T);let e=U[U.length-1];V.type="dots",V.output+=d,V.value+=d,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==V.type&&"slash"!==V.type){Q({type:"text",value:d,output:T});continue}Q({type:"dot",value:d,output:T});continue}if("?"===d){if(!(V&&"("===V.value)&&!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("qmark",d);continue}if(V&&"paren"===V.type){let e=z(),t=d;("("!==V.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test($()))||(t=`\\${d}`),Q({type:"text",value:d,output:t});continue}if(!0!==p.dot&&("slash"===V.type||"bos"===V.type)){Q({type:"qmark",value:d,output:N});continue}Q({type:"qmark",value:d,output:D});continue}if("!"===d){if(!0!==p.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){Z("negate",d);continue}if(!0!==p.nonegate&&0===j.index){G();continue}}if("+"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("plus",d);continue}if(V&&"("===V.value||!1===p.regex){Q({type:"plus",value:d,output:S});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||j.parens>0){Q({type:"plus",value:d});continue}Q({type:"plus",value:S});continue}if("@"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Q({type:"at",extglob:!0,value:d,output:""});continue}Q({type:"text",value:d});continue}if("*"!==d){("$"===d||"^"===d)&&(d=`\\${d}`);let e=i.exec($());e&&(d+=e[0],j.index+=e[0].length),Q({type:"text",value:d});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=d,V.output=R,j.backtrack=!0,j.globstar=!0,W(d);continue}let e=$();if(!0!==p.noextglob&&/^\([^?]/.test(e)){Z("star",d);continue}if("star"===V.type){if(!0===p.noglobstar){W(d);continue}let t=V.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===p.bash&&(!r||e[0]&&"/"!==e[0])){Q({type:"star",value:d,output:""});continue}let a=j.braces>0&&("comma"===t.type||"brace"===t.type),o=Y.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!a&&!o){Q({type:"star",value:d,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[j.index+4];if(t&&"/"!==t)break;e=e.slice(3),W("/**",3)}if("bos"===t.type&&J()){V.type="globstar",V.value+=d,V.output=O(p),j.output=V.output,j.globstar=!0,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&J()){j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=O(p)+(p.strictSlashes?")":"|$)"),V.value+=d,j.globstar=!0,j.output+=t.output+V.output,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=`${O(p)}${E}|${E}${n})`,V.value+=d,j.output+=t.output+V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){V.type="globstar",V.value+=d,V.output=`(?:^|${E}|${O(p)}${E})`,j.output=V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-V.output.length),V.type="globstar",V.output=O(p),V.value+=d,j.output+=V.output,j.globstar=!0,W(d);continue}let n={type:"star",value:d,output:R};if(!0===p.bash){n.output=".*?",("bos"===V.type||"slash"===V.type)&&(n.output=L+n.output),Q(n);continue}if(V&&("bracket"===V.type||"paren"===V.type)&&!0===p.regex){n.output=d,Q(n);continue}(j.index===j.start||"slash"===V.type||"dot"===V.type)&&("dot"===V.type?(j.output+=w,V.output+=w):!0===p.dot?(j.output+=A,V.output+=A):(j.output+=L,V.output+=L),"*"!==z()&&(j.output+=k,V.output+=k)),Q(n)}for(;j.brackets>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","]"));j.output=t.escapeLast(j.output,"["),X("brackets")}for(;j.parens>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing",")"));j.output=t.escapeLast(j.output,"("),X("parens")}for(;j.braces>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","}"));j.output=t.escapeLast(j.output,"{"),X("braces")}if(!0!==p.strictSlashes&&("star"===V.type||"bracket"===V.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===j.backtrack)for(let e of(j.output="",j.tokens))j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix);return j};return c.fastpaths=(r,i)=>{let a={...i},s="number"==typeof a.maxLength?Math.min(n,a.maxLength):n,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:_,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:h}=e.globChars(a.windows),y=a.dot?f:p,b=a.dot?m:p,x=a.capture?"":"?:",T=!0===a.bash?".*?":g;a.capture&&(T=`(${T})`);let S=e=>!0===e.noglobstar?T:`(${x}(?:(?!${h}${e.dot?d:c}).)*?)`,E=e=>{switch(e){case"*":return`${y}${_}${T}`;case".*":return`${c}${_}${T}`;case"*.*":return`${y}${T}${c}${_}${T}`;case"*/*":return`${y}${T}${u}${_}${b}${T}`;case"**":return y+S(a);case"**/*":return`(?:${y}${S(a)}${u})?${b}${_}${T}`;case"**/*.*":return`(?:${y}${S(a)}${u})?${b}${T}${c}${_}${T}`;case"**/.*":return`(?:${y}${S(a)}${u})?${c}${_}${T}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=E(t[1]);if(!n)return;return n+c+t[2]}}},k=E(t.removePrefix(r,{negated:!1,prefix:""}));return k&&!0!==a.strictSlashes&&(k+=`${u}?`),k},tG=c}(),n=p1(),r=p0(),i=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>i(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!r)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,s=r?i.compileRe(e,t):i.makeRe(e,t,!1,!0),l=s.state;delete s.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=i(a.ignore,e,n)}let u=(n,r=!1)=>{let{isMatch:u,match:_,output:d}=i.test(n,s,t,{glob:e,posix:o}),p={glob:e,state:l,regex:s,posix:o,input:n,output:d,match:_,isMatch:u};return("function"==typeof a.onResult&&a.onResult(p),!1===u)?(p.isMatch=!1,!!r&&p):c(n)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof a.onMatch&&a.onMatch(p),!r||p)};return n&&(u.state=l),u};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},l=s.format||(o?n.toPosixSlashes:null),c=e===a,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===a),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r)=>(t instanceof RegExp?t:i.makeRe(t,r)).test(n.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?"":"^",s=a.contains?"":"$",l=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,tX=i}(),t=p1();function n(r,i,a=!1){return i&&(null===i.windows||void 0===i.windows)&&(i={...i,windows:t.isWindows()}),e(r,i,a)}return Object.assign(n,e),tZ=n}());let p3=Array.isArray,p6="win32"===process.platform,p4=/^(\/?\.\.)+$/,p8=/^[A-Z]:\/$/i,p5=p6?e=>p8.test(e):e=>"/"===e;function p7(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let t=p5(e)?e.length:e.length+1;return(e,n)=>e.slice(t,n?-1:void 0)||"."}let r=t.slice(e.length+1);return r?(e,t)=>{if("."===e)return r;let n=`${r}/${e}`;return t?n.slice(0,-1):n}:(e,t)=>t&&"."!==e?e.slice(0,-1):e}return n?t=>aw.posix.relative(e,t)||".":n=>aw.posix.relative(e,`${t}/${n}`)||"."}let p9={parts:!0};function fe(e){var t;let n=p2.scan(e,p9);return(null==(t=n.parts)?void 0:t.length)?n.parts:[e]}let ft=/\\(?![()[\]{}!+@])/g,fn=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,fr=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,fi=e=>e.replace(fn,"\\$&"),fa=e=>e.replace(fr,"\\$&"),fo=p6?fa:fi;function fs(e,t){if((null==t?void 0:t.caseSensitiveMatch)===!1)return!0;let n=p2.scan(e);return n.isGlob||n.negated}function fl(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}let fc=/^(\/?\.\.)+/,fu=/\\(?=[()[\]{}!*+?@|])/g,f_=/\\/g;function fd(e,t,n,r,i){let a=e;e.endsWith("/")&&(a=e.slice(0,-1)),!a.endsWith("*")&&t&&(a+="/**");let o=fo(n);a=aw.isAbsolute(a.replace(fu,""))?aw.posix.relative(o,a):aw.posix.normalize(a);let s=fc.exec(a),l=fe(a);if(null==s?void 0:s[0]){let e=(s[0].length+1)/3,t=0,i=o.split("/");for(;t<e&&l[t+e]===i[i.length+t-e];)a=a.slice(0,(e-t-1)*3)+a.slice((e-t)*3+l[t+e].length+1)||".",t++;let c=aw.posix.join(n,s[0].slice(3*t));!c.startsWith(".")&&r.root.length>c.length&&(r.root=c,r.depthOffset=-e+t)}if(!i&&r.depthOffset>=0){null!=r.commonPath||(r.commonPath=l);let e=[],t=Math.min(r.commonPath.length,l.length);for(let n=0;n<t;n++){let t=l[n];if("**"===t&&!l[n+1]){e.pop();break}if(t!==r.commonPath[n]||fs(t)||n===l.length-1)break;e.push(t)}r.depthOffset=e.length,r.commonPath=e,r.root=e.length>0?aw.posix.join(n,...e):n}return a}function fp(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];e[n]=t(r)}return e}function ff(e,t={}){var n;let r=process.env.TINYGLOBBY_DEBUG?{...t,debug:!0}:t,i=(n=r.cwd)?n instanceof URL?aN.fileURLToPath(n).replace(f_,"/"):aw.resolve(n).replace(f_,"/"):process.cwd().replace(f_,"/");if(r.debug&&fl("globbing with:",{patterns:e,options:r,cwd:i}),Array.isArray(e)&&0===e.length)return[{sync:()=>[],withPromise:async()=>[]},!1];let a={root:i,commonPath:null,depthOffset:0},o=function({patterns:e=["**/*"],ignore:t=[],expandDirectories:n=!0},r,i){"string"==typeof e&&(e=[e]),"string"==typeof t&&(t=[t]);let a=[],o=[];for(let e of t)e&&("!"!==e[0]||"("===e[1])&&o.push(fd(e,n,r,i,!0));for(let t of e)t&&("!"!==t[0]||"("===t[1]?a.push(fd(t,n,r,i,!1)):("!"!==t[1]||"("===t[2])&&o.push(fd(t.slice(1),n,r,i,!0)));return{match:a,ignore:o}}({...r,patterns:e},i,a);r.debug&&fl("internal processing patterns:",o);let s={dot:r.dot,nobrace:!1===r.braceExpansion,nocase:!1===r.caseSensitiveMatch,noextglob:!1===r.extglob,noglobstar:!1===r.globstar,posix:!0},l=p2(o.match,{...s,ignore:o.ignore}),c=p2(o.ignore,s),u=function(e,t={}){let n=e.length,r=Array(n),i=Array(n),a=!t.noglobstar;for(let a=0;a<n;a++){let n=fe(e[a]);r[a]=n;let o=n.length,s=Array(o);for(let e=0;e<o;e++)s[e]=p2(n[e],t);i[a]=s}return t=>{let n=t.split("/");if(".."===n[0]&&p4.test(t))return!0;for(let t=0;t<e.length;t++){let e=r[t],o=i[t],s=n.length,l=Math.min(s,e.length),c=0;for(;c<l;){let t=e[c];if(t.includes("/"))return!0;if(!o[c](n[c]))break;if(a&&"**"===t)return!0;c++}if(c===s)return!0}return!1}}(o.match,s),_=p7(i,a.root,r.absolute),d=r.absolute?_:p7(i,a.root,!0),p={filters:[r.debug?(e,t)=>{let n=_(e,t),r=l(n);return r&&fl(`matched ${n}`),r}:(e,t)=>l(_(e,t))],exclude:r.debug?(e,t)=>{let n=d(t,!0),r="."!==n&&!u(n)||c(n);return r?fl(`skipped ${t}`):fl(`crawling ${t}`),r}:(e,t)=>{let n=d(t,!0);return"."!==n&&!u(n)||c(n)},fs:r.fs?{readdir:r.fs.readdir||aC.readdir,readdirSync:r.fs.readdirSync||aC.readdirSync,realpath:r.fs.realpath||aC.realpath,realpathSync:r.fs.realpathSync||aC.realpathSync,stat:r.fs.stat||aC.stat,statSync:r.fs.statSync||aC.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:r.signal};void 0!==r.deep&&(p.maxDepth=Math.round(r.deep-a.depthOffset)),r.absolute&&(p.relativePaths=!1,p.resolvePaths=!0,p.includeBasePath=!0),!1===r.followSymbolicLinks&&(p.resolveSymlinks=!1,p.excludeSymlinks=!0),r.onlyDirectories?(p.excludeFiles=!0,p.includeDirs=!0):!1===r.onlyFiles&&(p.includeDirs=!0),a.root=a.root.replace(f_,"");let f=a.root;r.debug&&fl("internal properties:",a);let m=i!==f&&!r.absolute&&function(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return e=>`${n}/${e}`}return n=>{let r=aw.posix.relative(e,`${t}/${n}`);return n.endsWith("/")&&""!==r?`${r}/`:r||"."}}(i,a.root);return[new pQ(p).crawl(f),m]}var fm=a7(Object.freeze({__proto__:null,convertPathToPattern:p6?function(e){return fa(e).replace(ft,"/")}:function(e){return fi(e)},escapePath:fo,glob:async function e(e,t){if(e&&(null==t?void 0:t.patterns))throw Error("Cannot pass patterns as both an argument and an option");let n=p3(e)||"string"==typeof e,r=n?t:e,[i,a]=ff(n?e:e.patterns,r);return a?fp(await i.withPromise(),a):i.withPromise()},globSync:function(e,t){if(e&&(null==t?void 0:t.patterns))throw Error("Cannot pass patterns as both an argument and an option");let n=p3(e)||"string"==typeof e,r=n?t:e,[i,a]=ff(n?e:e.patterns,r);return a?fp(i.sync(),a):i.sync()},isDynamicPattern:fs}));function fg(){if(t1)return pu;t1=1;var e=pu&&pu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pu,"__esModule",{value:!0}),pu.clearGlobCache=function(){a?.clear()},pu.resolveProjectList=function(e){let t=[];if(null!=e.project)for(let n of e.project)"string"==typeof n&&t.push(n);if(0===t.length)return new Map;let o=(e.projectFolderIgnoreList??["**/node_modules/**"]).filter(e=>"string"==typeof e),s=function({project:e,projectFolderIgnoreList:t,tsconfigRootDir:r}){let i={tsconfigRootDir:r,project:e,projectFolderIgnoreList:[...t].sort()};return(0,n.createHash)(JSON.stringify(i))}({project:t,projectFolderIgnoreList:o,tsconfigRootDir:e.tsconfigRootDir});if(null==a)a=new r.ExpiringCache(e.singleRun?"Infinity":e.cacheLifetime?.glob??r.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS);else{let e=a.get(s);if(e)return e}let l=t.filter(e=>!(0,fm.isDynamicPattern)(e)),c=t.filter(e=>(0,fm.isDynamicPattern)(e)),u=[];c.length>0&&(u=c.flatMap(t=>(0,fm.globSync)(t,{cwd:e.tsconfigRootDir,expandDirectories:!1,ignore:o})));let _=new Map([...l,...u].map(t=>[(0,n.getCanonicalFileName)((0,n.ensureAbsolutePath)(t,e.tsconfigRootDir)),(0,n.ensureAbsolutePath)(t,e.tsconfigRootDir)]));return i("parserOptions.project (excluding ignored) matched projects: %s",_),a.set(s,_),_},pu.clearGlobResolutionCache=function(){a?.clear(),a=null};let t=e(c6()),n=uC(),r=ps(),i=(0,t.default)("typescript-eslint:typescript-estree:parseSettings:resolveProjectList"),a=null;return pu}var fh={},fy={};function fv(){return t2||(t2=1,Object.defineProperty(fy,"__esModule",{value:!0}),fy.version=void 0,fy.version="8.58.0"),fy}function fb(){let e;if(t6)return d5;t6=1;var t,n=d5&&d5.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=d5&&d5.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=d5&&d5.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var a=t(e),o=0;o<a.length;o++)"default"!==a[o]&&n(i,e,a[o]);return r(i,e),i}),a=d5&&d5.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d5,"__esModule",{value:!0}),d5.createParseSettings=function(t,n={}){var r,i,a;let S,E=(r=t,(0,d.isSourceFile)(r)?r.getFullText(r):"string"==typeof r?r:String(r)),k=(0,g.inferSingleRun)(n),P=(()=>{if(null==n.tsconfigRootDir){let e=(0,p.getInferredTSConfigRootDir)();if(l.default.resolve(e)!==e)throw Error(`inferred tsconfigRootDir should be a resolved absolute path, but received: ${JSON.stringify(e)}. This is a bug in typescript-eslint! Please report it to us at https://github.com/typescript-eslint/typescript-eslint/issues/new/choose.`);return e}if("string"==typeof n.tsconfigRootDir){let e=n.tsconfigRootDir;if(!l.default.isAbsolute(e)||"win32"===process.platform&&!/^[a-zA-Z]:/.test(e))throw Error(`parserOptions.tsconfigRootDir must be an absolute path, but received: ${JSON.stringify(e)}. This is a bug in your configuration; please supply an absolute path.`);return l.default.resolve(e)}throw Error(`If provided, parserOptions.tsconfigRootDir must be a string, but received a value of type "${typeof n.tsconfigRootDir}"`)})(),C="function"==typeof n.loggerFn,w=(0,u.ensureAbsolutePath)("string"==typeof n.filePath&&"<input>"!==n.filePath?n.filePath:n.jsx?"estree.tsx":"estree.ts",P),A=l.default.extname(w).toLowerCase(),D=(()=>{switch(n.jsDocParsingMode){case"all":default:return T.ParseAll;case"none":return T.ParseNone;case"type-info":return T.ParseForTypeInfo}})(),N={loc:!0===n.loc,range:!0===n.range,allowInvalidAST:!0===n.allowInvalidAST,code:t,codeFullText:E,comment:!0===n.comment,comments:[],debugLevel:!0===n.debugLevel?new Set(["typescript-eslint"]):Array.isArray(n.debugLevel)?new Set(n.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!0===n.errorOnUnknownASTType,extraFileExtensions:Array.isArray(n.extraFileExtensions)&&n.extraFileExtensions.every(e=>"string"==typeof e)?n.extraFileExtensions:[],filePath:w,jsDocParsingMode:D,jsx:!0===n.jsx,log:"function"==typeof n.loggerFn?n.loggerFn:!1===n.loggerFn?()=>{}:console.log,preserveNodeMaps:!1!==n.preserveNodeMaps,programs:Array.isArray(n.programs)?n.programs:null,projects:new Map,projectService:n.projectService||n.project&&!1!==n.projectService&&"true"===process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE?(i=n.projectService,a={jsDocParsingMode:D,tsconfigRootDir:P},S="object"==typeof i?i:{},(0,_.validateDefaultProjectForFilesGlob)(S.allowDefaultProject),x??=(0,o.createProjectService)({options:S,...a})):void 0,setExternalModuleIndicator:"module"===n.sourceType||null==n.sourceType&&A===c.Extension.Mjs||null==n.sourceType&&A===c.Extension.Mts?e=>{e.externalModuleIndicator=!0}:void 0,singleRun:k,suppressDeprecatedPropertyWarnings:n.suppressDeprecatedPropertyWarnings??"test"!==process.env.NODE_ENV,tokens:!0===n.tokens?[]:null,tsconfigMatchCache:e??=new f.ExpiringCache(k?"Infinity":n.cacheLifetime?.glob??f.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS),tsconfigRootDir:P};if(N.projectService&&n.project&&"true"!==process.env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR)throw Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(N.debugLevel.size>0){let e=[];N.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(N.debugLevel.has("eslint")||s.default.enabled("eslint:*,-eslint:code-path"))&&e.push("eslint:*,-eslint:code-path"),s.default.enable(e.join(","))}if(Array.isArray(n.programs)){if(!n.programs.length)throw Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");b("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return N.programs||N.projectService||(N.projects=(0,h.resolveProjectList)({cacheLifetime:n.cacheLifetime,project:(0,m.getProjectConfigFiles)(N,n.project),projectFolderIgnoreList:n.projectFolderIgnoreList,singleRun:N.singleRun,tsconfigRootDir:P})),null==n.jsDocParsingMode&&0===N.projects.size&&null==N.programs&&null==N.projectService&&(N.jsDocParsingMode=T.ParseNone),(0,y.warnAboutTSVersion)(N,C),N},d5.clearTSConfigMatchCache=function(){e?.clear()},d5.clearTSServerProjectService=function(){x=null};let o=function(){var e,t;return tj?d7:(tj=1,e=d7&&d7.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=d7&&d7.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(d7,"__esModule",{value:!0}),t(function(){if(tR)return d9;tR=1;var e=d9&&d9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d9,"__esModule",{value:!0}),d9.createProjectService=function({host:e,jsDocParsingMode:t,options:u={},tsconfigRootDir:_}={}){let d={defaultProject:"tsconfig.json",...u},p=function(){if(tM)return pt.exports;tM=1;if(pt.exports)pt.exports=uh();else throw Error("tsserverlibrary requires CommonJS; use typescript.js instead");return pt.exports}(),f={...p.sys,clearImmediate,clearTimeout,setImmediate,setTimeout,watchDirectory:c,watchFile:c,...!d.loadTypeScriptPlugins&&{require:()=>({error:{message:"TypeScript plugins are not required when using parserOptions.projectService."},module:void 0})},...e};r("Creating Project Service with: %o",d);let m=new p.server.ProjectService({cancellationToken:{isCancellationRequested:()=>!1},eventHandler:s.enabled?e=>{s(e)}:void 0,host:f,jsDocParsingMode:t,logger:{close:l,endGroup:l,getLogFileName:()=>void 0,hasLevel:()=>!0,info(e){this.msg(e,p.server.Msg.Info)},loggingEnabled:()=>a.enabled||i.enabled||o.enabled,msg:(e,t)=>{switch(t){case p.server.Msg.Err:i(e);break;case p.server.Msg.Perf:o(e);break;default:a(e)}},perftrc(e){this.msg(e,p.server.Msg.Perf)},startGroup:l},session:void 0,useInferredProjectPerProjectRoot:!1,useSingleInferredProject:!1});m.setHostConfiguration({preferences:{includePackageJsonAutoImports:"off"}}),r("Enabling default project: %s",d.defaultProject);let g=(0,n.getParsedConfigFileFromTSServer)(p,d.defaultProject,!!u.defaultProject,_);return g&&m.setCompilerOptionsForInferredProjects(g.options),{allowDefaultProject:d.allowDefaultProject,lastReloadTimestamp:performance.now(),maximumDefaultProjectFileMatchCount:d.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING??8,service:m}};let t=e(c6()),n=function(){if(tL)return pe;tL=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.getParsedConfigFileFromTSServer=function(t,n,r,i){try{return(0,e.getParsedConfigFile)(t,n,i)}catch(e){if(r)throw Error(`Could not read Project Service default project '${n}': ${e.message}`)}};let e=uP();return pe}(),r=(0,t.default)("typescript-eslint:project-service:createProjectService"),i=(0,t.default)("typescript-eslint:project-service:tsserver:err"),a=(0,t.default)("typescript-eslint:project-service:tsserver:info"),o=(0,t.default)("typescript-eslint:project-service:tsserver:perf"),s=(0,t.default)("typescript-eslint:project-service:tsserver:event"),l=()=>{},c=()=>({close:l});return d9}(),d7),d7)}(),s=a(c6()),l=a(uk),c=i(uh()),u=uC(),_=pr(),d=uv(),p=pa(),f=ps(),m=function(){if(tV)return pl;tV=1;var e,t=pl&&pl.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=pl&&pl.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=pl&&pl.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=pl&&pl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pl,"__esModule",{value:!0}),pl.getProjectConfigFiles=function(e,t){if(!0!==t)return null==t||!1===t?null:Array.isArray(t)?t:[t];l("Looking for tsconfig.json at or above file: %s",e.filePath);let n=s.dirname(e.filePath),r=[n];do{l("Checking tsconfig.json path: %s",n);let t=s.join(n,"tsconfig.json"),i=e.tsconfigMatchCache.get(n)??(o.existsSync(t)&&t);if(i){for(let t of r)e.tsconfigMatchCache.set(t,i);return[i]}n=s.dirname(n),r.push(n)}while(n.length>1&&n.length>=e.tsconfigRootDir.length);throw Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${e.filePath}' within '${e.tsconfigRootDir}'.`)};let a=i(c6()),o=r(c4),s=r(uk),l=(0,a.default)("typescript-eslint:typescript-estree:parseSettings:getProjectConfigFiles");return pl}(),g=function(){if(tJ)return pc;tJ=1;var e=pc&&pc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pc,"__esModule",{value:!0}),pc.inferSingleRun=function(e){return(!e?.extraFileExtensions?.length||!e.project)&&(e?.project!=null||!!e?.projectService)&&null==e.programs&&"false"!==process.env.TSESTREE_SINGLE_RUN&&("true"===process.env.TSESTREE_SINGLE_RUN||!!(!e.disallowAutomaticSingleRunInference&&("true"===process.env.CI||["node_modules/.bin/eslint","node_modules/eslint/bin/eslint.js"].some(e=>process.argv.length>1&&process.argv[1].endsWith(t.default.normalize(e)))))&&!process.argv.includes("--fix"))};let t=e(uk);return pc}(),h=fg(),y=function(){var e,t,n,r,i;let a,o,s,l,c,u;return t3?fh:(t3=1,e=fh&&fh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=fh&&fh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=fh&&fh.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=n(r),o=0;o<a.length;o++)"default"!==a[o]&&e(i,r,a[o]);return t(i,r),i}),i=fh&&fh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(fh,"__esModule",{value:!0}),fh.SUPPORTED_TYPESCRIPT_VERSIONS=void 0,fh.warnAboutTSVersion=function(e,t){if(!c&&!u){if(t||"u">typeof process&&process.stdout?.isTTY){let t="=============",n=[t,"\n\nWARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.\n\n",`* @typescript-eslint/typescript-estree version: ${s.version}`,`* Supported TypeScript versions: ${fh.SUPPORTED_TYPESCRIPT_VERSIONS}`,`* Your TypeScript version: ${l}`,"\n\nPlease only submit bug reports when using the officially supported version.\n\n",t].join("\n");e.log(n)}u=!0}},a=i(u3()),o=r(uh()),s=fv(),fh.SUPPORTED_TYPESCRIPT_VERSIONS=">=4.8.4 <6.1.0",l=o.version,c=a.default.satisfies(l,[fh.SUPPORTED_TYPESCRIPT_VERSIONS].join(" || ")),u=!1,fh)}(),b=(0,s.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),x=null,T={ParseAll:c.JSDocParsingMode?.ParseAll,ParseForTypeErrors:c.JSDocParsingMode?.ParseForTypeErrors,ParseForTypeInfo:c.JSDocParsingMode?.ParseForTypeInfo,ParseNone:c.JSDocParsingMode?.ParseNone};return d5}var fx={},fT={};let fS=(e,t,n)=>{let r=e instanceof RegExp?fE(e,n):e,i=t instanceof RegExp?fE(t,n):t,a=null!==r&&null!=i&&fk(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},fE=(e,t)=>{let n=t.match(e);return n?n[0]:null},fk=(e,t,n)=>{let r,i,a,o,s,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;u>=0&&!s;){if(u===l)r.push(u),l=n.indexOf(e,u+1);else if(1===r.length){let e=r.pop();void 0!==e&&(s=[e,c])}else void 0!==(i=r.pop())&&i<a&&(a=i,o=c),c=n.indexOf(t,u+1);u=l<c&&l>=0?l:c}r.length&&void 0!==o&&(s=[a,o])}return s},fP="\0SLASH"+Math.random()+"\0",fC="\0OPEN"+Math.random()+"\0",fw="\0CLOSE"+Math.random()+"\0",fA="\0COMMA"+Math.random()+"\0",fD="\0PERIOD"+Math.random()+"\0",fN=RegExp(fP,"g"),fF=RegExp(fC,"g"),fI=RegExp(fw,"g"),fO=RegExp(fA,"g"),fL=RegExp(fD,"g"),fM=/\\\\/g,fR=/\\{/g,fj=/\\}/g,fY=/\\,/g,fU=/\\./g;function fB(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function fV(e){return e.replace(fN,"\\").replace(fF,"{").replace(fI,"}").replace(fO,",").replace(fL,".")}function fJ(e){return"{"+e+"}"}function fz(e){return/^-?0\d/.test(e)}function fq(e,t){return e<=t}function f$(e,t){return e>=t}let fW=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")},fK={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},fG=e=>e.replace(/[[\]\\-]/g,"\\$&"),fH=(e,t)=>{if("["!==e.charAt(t))throw Error("not in a brace expression");let n=[],r=[],i=t+1,a=!1,o=!1,s=!1,l=!1,c=t,u="";l:for(;i<e.length;){let _=e.charAt(i);if(("!"===_||"^"===_)&&i===t+1){l=!0,i++;continue}if("]"===_&&a&&!s){c=i+1;break}if(a=!0,"\\"===_&&!s){s=!0,i++;continue}if("["===_&&!s){for(let[a,[s,l,c]]of Object.entries(fK))if(e.startsWith(a,i)){if(u)return["$.",!1,e.length-t,!0];i+=a.length,c?r.push(s):n.push(s),o=o||l;continue l}}if(s=!1,u){_>u?n.push(fG(u)+"-"+fG(_)):_===u&&n.push(fG(_)),u="",i++;continue}if(e.startsWith("-]",i+1)){n.push(fG(_+"-")),i+=2;continue}if(e.startsWith("-",i+1)){u=_,i+=2;continue}n.push(fG(_)),i++}if(c<i)return["",!1,0,!1];if(!n.length&&!r.length)return["$.",!1,e.length-t,!0];if(0===r.length&&1===n.length&&/^\\?.$/.test(n[0])&&!l)return[(2===n[0].length?n[0].slice(-1):n[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,c-t,!1];let _="["+(l?"^":"")+n.join("")+"]",d="["+(l?"":"^")+r.join("")+"]";return[n.length&&r.length?"("+_+"|"+d+")":n.length?_:d,o,c-t,!0]},fX=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),fQ=new Set(["!","?","+","*","@"]),fZ=e=>fQ.has(e),f0=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),f1=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),f2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),f3=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),f6="(?!\\.)",f4=new Set(["[","."]),f8=new Set(["..","."]),f5=new Set("().*{}+?[]^$\\!"),f7=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),f9="[^/]",me=f9+"*?",mt=f9+"+?",mn=0;class mr{type;#k;#P;#C=!1;#w=[];#A;#D;#N;#F=!1;#I;#O;#L=!1;id=++mn;get depth(){return(this.#A?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#k.id,parent:this.#A?.id,depth:this.depth,partsLength:this.#w.length,parts:this.#w}}constructor(e,t,n={}){this.type=e,e&&(this.#P=!0),this.#A=t,this.#k=this.#A?this.#A.#k:this,this.#I=this.#k===this?n:this.#k.#I,this.#N=this.#k===this?[]:this.#k.#N,"!"!==e||this.#k.#F||this.#N.push(this),this.#D=this.#A?this.#A.#w.length:0}get hasMagic(){if(void 0!==this.#P)return this.#P;for(let e of this.#w)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#P=!0;return this.#P}toString(){return void 0!==this.#O?this.#O:this.type?this.#O=this.type+"("+this.#w.map(e=>String(e)).join("|")+")":this.#O=this.#w.map(e=>String(e)).join("")}#M(){let e;if(this!==this.#k)throw Error("should only call on root");if(this.#F)return this;for(this.toString(),this.#F=!0;e=this.#N.pop();){if("!"!==e.type)continue;let t=e,n=t.#A;for(;n;){for(let r=t.#D+1;!n.type&&r<n.#w.length;r++)for(let t of e.#w){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(n.#w[r])}n=(t=n).#A}}return this}push(...e){for(let t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof t8&&t.#A===this))throw Error("invalid part: "+t);this.#w.push(t)}}toJSON(){let e=null===this.type?this.#w.slice().map(e=>"string"==typeof e?e:e.toJSON()):[this.type,...this.#w.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#k||this.#k.#F&&this.#A?.type==="!")&&e.push({}),e}isStart(){if(this.#k===this)return!0;if(!this.#A?.isStart())return!1;if(0===this.#D)return!0;let e=this.#A;for(let t=0;t<this.#D;t++){let n=e.#w[t];if(!(n instanceof t8&&"!"===n.type))return!1}return!0}isEnd(){if(this.#k===this||this.#A?.type==="!")return!0;if(!this.#A?.isEnd())return!1;if(!this.type)return this.#A?.isEnd();let e=this.#A?this.#A.#w.length:0;return this.#D===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){let t=new t8(this.type,e);for(let e of this.#w)t.copyIn(e);return t}static #R(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,l=-1,c=!1;if(null===t.type){let u=n,_="";for(;u<e.length;){let n=e.charAt(u++);if(o||"\\"===n){o=!o,_+=n;continue}if(s){u===l+1?("^"===n||"!"===n)&&(c=!0):"]"!==n||u===l+2&&c||(s=!1),_+=n;continue}if("["===n){s=!0,l=u,c=!1,_+=n;continue}if(!r.noext&&fZ(n)&&"("===e.charAt(u)&&i<=a){t.push(_),_="";let a=new t8(n,t);u=t8.#R(e,a,u,r,i+1),t.push(a);continue}_+=n}return t.push(_),u}let u=n+1,_=new t8(null,t),d=[],p="";for(;u<e.length;){let n=e.charAt(u++);if(o||"\\"===n){o=!o,p+=n;continue}if(s){u===l+1?("^"===n||"!"===n)&&(c=!0):"]"!==n||u===l+2&&c||(s=!1),p+=n;continue}if("["===n){s=!0,l=u,c=!1,p+=n;continue}if(!r.noext&&fZ(n)&&"("===e.charAt(u)&&(i<=a||t&&t.#j(n))){let a=t&&t.#j(n)?0:1;_.push(p),p="";let o=new t8(n,_);_.push(o),u=t8.#R(e,o,u,r,i+a);continue}if("|"===n){_.push(p),p="",d.push(_),_=new t8(null,t);continue}if(")"===n)return""===p&&0===t.#w.length&&(t.#L=!0),_.push(p),p="",t.push(...d,_),u;p+=n}return t.type=null,t.#P=void 0,t.#w=[e.substring(n-1)],u}#Y(e){return this.#U(e,f1)}#U(e,t=f0){if(!e||"object"!=typeof e||null!==e.type||1!==e.#w.length||null===this.type)return!1;let n=e.#w[0];return!!n&&"object"==typeof n&&null!==n.type&&this.#j(n.type,t)}#j(e,t=f2){return!!t.get(this.type)?.includes(e)}#B(e,t){let n=e.#w[0],r=new t8(null,n,this.options);r.#w.push(""),n.push(r),this.#V(e,t)}#V(e,t){let n=e.#w[0];for(let e of(this.#w.splice(t,1,...n.#w),n.#w))"object"==typeof e&&(e.#A=this);this.#O=void 0}#J(e){let t=f3.get(this.type);return!!t?.has(e)}#z(e){if(!e||"object"!=typeof e||null!==e.type||1!==e.#w.length||null===this.type||1!==this.#w.length)return!1;let t=e.#w[0];return!!t&&"object"==typeof t&&null!==t.type&&this.#J(t.type)}#q(e){let t=f3.get(this.type),n=e.#w[0],r=t?.get(n.type);if(!r)return!1;for(let e of(this.#w=n.#w,this.#w))"object"==typeof e&&(e.#A=this);this.type=r,this.#O=void 0,this.#L=!1}static fromGlob(e,t={}){let n=new t8(null,void 0,t);return t8.#R(e,n,0,t,0),n}toMMPattern(){if(this!==this.#k)return this.#k.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();return r||this.#P||this.#I.nocase&&!this.#I.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()?Object.assign(RegExp(`^${t}$`,(this.#I.nocase?"i":"")+(i?"u":"")),{_src:t,_glob:e}):n}get options(){return this.#I}toRegExpSource(e){let t=e??!!this.#I.dot;if(this.#k===this&&(this.#$(),this.#M()),!fZ(this.type)){let n=this.isStart()&&this.isEnd()&&!this.#w.some(e=>"string"!=typeof e),r=this.#w.map(t=>{let[r,i,a,o]="string"==typeof t?t8.#W(t,this.#P,n):t.toRegExpSource(e);return this.#P=this.#P||a,this.#C=this.#C||o,r}).join(""),i="";if(this.isStart()&&"string"==typeof this.#w[0]&&!(1===this.#w.length&&f8.has(this.#w[0]))){let n=t&&f4.has(r.charAt(0))||r.startsWith("\\.")&&f4.has(r.charAt(2))||r.startsWith("\\.\\.")&&f4.has(r.charAt(4)),a=!t&&!e&&f4.has(r.charAt(0));i=n?"(?!(?:^|/)\\.\\.?(?:$|/))":a?f6:""}let a="";return this.isEnd()&&this.#k.#F&&this.#A?.type==="!"&&(a="(?:$|\\/)"),[i+r+a,fX(r),this.#P=!!this.#P,this.#C]}let n="*"===this.type||"+"===this.type,r="!"===this.type?"(?:(?!(?:":"(?:",i=this.#K(t);if(this.isStart()&&this.isEnd()&&!i&&"!"!==this.type){let e=this.toString();return this.#w=[e],this.type=null,this.#P=void 0,[e,fX(this.toString()),!1,!1]}let a=!n||e||t||!f6?"":this.#K(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);return["!"===this.type&&this.#L?(this.isStart()&&!t?f6:"")+mt:r+i+("!"===this.type?"))"+(!this.isStart()||t||e?"":f6)+me+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&a?")":"*"===this.type&&a?")?":`)${this.type}`),fX(i),this.#P=!!this.#P,this.#C]}#$(){if(fZ(this.type)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#w.length;e++){let n=this.#w[e];"object"==typeof n&&(n.#$(),this.#U(n)?(t=!1,this.#V(n,e)):this.#Y(n)?(t=!1,this.#B(n,e)):this.#z(n)&&(t=!1,this.#q(n)))}}while(!t&&++e<10)}else for(let e of this.#w)"object"==typeof e&&e.#$();this.#O=void 0}#K(e){return this.#w.map(t=>{if("string"==typeof t)throw Error("string type in extglob ast??");let[n,r,i,a]=t.toRegExpSource(e);return this.#C=this.#C||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static #W(e,t,n=!1){let r=!1,i="",a=!1,o=!1;for(let s=0;s<e.length;s++){let l=e.charAt(s);if(r){r=!1,i+=(f5.has(l)?"\\":"")+l;continue}if("*"===l){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?mt:me,t=!0;continue}if(o=!1,"\\"===l){s===e.length-1?i+="\\\\":r=!0;continue}if("["===l){let[n,r,o,l]=fH(e,s);if(o){i+=n,a=a||r,s+=o-1,t=t||l;continue}}if("?"===l){i+=f9,t=!0;continue}i+=f7(l)}return[i,fX(e),!!t,a]}}t8=mr;let mi=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),ma=(e,t,n={})=>(fW(t),(!!n.nocomment||"#"!==t.charAt(0))&&new mw(t,n).match(e)),mo=/^\*+([^+@!?\*\[\(]*)$/,ms=/^\*+\.\*+$/,ml=e=>!e.startsWith(".")&&e.includes("."),mc=e=>"."!==e&&".."!==e&&e.includes("."),mu=/^\.\*+$/,m_=e=>"."!==e&&".."!==e&&e.startsWith("."),md=/^\*+$/,mp=e=>0!==e.length&&!e.startsWith("."),mf=e=>0!==e.length&&"."!==e&&".."!==e,mm=/^\?+([^+@!?\*\[\(]*)?$/,mg=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(".")},mh=([e])=>{let t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},my="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",mv="win32"===my?"\\":"/";ma.sep=mv;let mb=Symbol("globstar **");ma.GLOBSTAR=mb;let mx=(e,t={})=>n=>ma(n,e,t);ma.filter=mx;let mT=(e,t={})=>Object.assign({},e,t),mS=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return ma;let t=ma;return Object.assign((n,r,i={})=>t(n,r,mT(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,mT(e,n))}static defaults(n){return t.defaults(mT(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,mT(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,mT(e,r))}},unescape:(n,r={})=>t.unescape(n,mT(e,r)),escape:(n,r={})=>t.escape(n,mT(e,r)),filter:(n,r={})=>t.filter(n,mT(e,r)),defaults:n=>t.defaults(mT(e,n)),makeRe:(n,r={})=>t.makeRe(n,mT(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,mT(e,r)),match:(n,r,i={})=>t.match(n,r,mT(e,i)),sep:t.sep,GLOBSTAR:mb})};ma.defaults=mS;let mE=(e,t={})=>(fW(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:function(e,t={}){if(!e)return[];let{max:n=1e5}=t;return"{}"===e.slice(0,2)&&(e="\\{\\}"+e.slice(2)),(function e(t,n,r){let i=[],a=fS("{","}",t);if(!a)return[t];let o=a.pre,s=a.post.length?e(a.post,n,!1):[""];if(/\$$/.test(a.pre))for(let e=0;e<s.length&&e<n;e++){let t=o+"{"+a.body+"}"+s[e];i.push(t)}else{let l,c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),d=u||_,p=a.body.indexOf(",")>=0;if(!d&&!p)return a.post.match(/,(?!,).*\}/)?e(t=a.pre+"{"+a.body+fw+a.post,n,!0):[t];if(d)l=a.body.split(/\.\./);else if(1===(l=function e(t){if(!t)return[""];let n=[],r=fS("{","}",t);if(!r)return t.split(",");let{pre:i,body:a,post:o}=r,s=i.split(",");s[s.length-1]+="{"+a+"}";let l=e(o);return o.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),n.push.apply(n,s),n}(a.body)).length&&void 0!==l[0]&&1===(l=e(l[0],n,!1).map(fJ)).length)return s.map(e=>a.pre+l[0]+e);if(d&&void 0!==l[0]&&void 0!==l[1]){let e=fB(l[0]),t=fB(l[1]),n=Math.max(l[0].length,l[1].length),r=3===l.length&&void 0!==l[2]?Math.abs(fB(l[2])):1,i=fq;t<e&&(r*=-1,i=f$);let a=l.some(fz);c=[];for(let o=e;i(o,t);o+=r){let e;if(_)"\\"===(e=String.fromCharCode(o))&&(e="");else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join("0");e=o<0?"-"+n+e.slice(1):n+e}}c.push(e)}}else{c=[];for(let t=0;t<l.length;t++)c.push.apply(c,e(l[t],n,!1))}for(let e=0;e<c.length;e++)for(let t=0;t<s.length&&i.length<n;t++){let n=o+c[e]+s[t];(!r||d||n)&&i.push(n)}}return i})(e.replace(fM,fP).replace(fR,fC).replace(fj,fw).replace(fY,fA).replace(fU,fD),n,!0).map(fV)}(e,{max:t.braceExpandMax});ma.braceExpand=mE;let mk=(e,t={})=>new mw(e,t).makeRe();ma.makeRe=mk;let mP=(e,t,n={})=>{let r=new mw(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};ma.match=mP;let mC=/[?*]|[+@!]\(.*?\)|\[|\]/;class mw{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){fW(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||my,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if("string"!=typeof t)return!0;return!1}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=""===e[0]&&""===e[1]&&("?"===e[2]||!mC.test(e[2]))&&!mC.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)"**"===e[t][n]&&(e[t][n]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>0===(e=e.reduce((e,t)=>{let n=e[e.length-1];return"**"===t&&"**"===n||(".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?e.pop():e.push(t)),e},[])).length?[""]:e)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];(1!==n||""!==r||""!==e[0])&&("."===r||""===r)&&(t=!0,e.splice(n,1),n--)}"."===e[0]&&2===e.length&&("."===e[1]||""===e[1])&&(t=!0,e.pop())}let n=0;for(;-1!==(n=e.indexOf("..",n+1));){let r=e[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do for(let n of(t=!1,e)){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let i=r;for(;"**"===n[i+1];)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(".."!==a||!o||"."===o||".."===o||!s||"."===s||".."===s)continue;t=!0,n.splice(r,1);let l=n.slice(0);l[r]="**",e.push(l),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];(1!==e||""!==r||""!==n[0])&&("."===r||""===r)&&(t=!0,n.splice(e,1),e--)}"."===n[0]&&2===n.length&&("."===n[1]||""===n[1])&&(t=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){let e=n[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;let e=1===i&&"**"===n[i+1]?["."]:[];n.splice(i-1,2,...e),0===n.length&&n.push(""),i-=2}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o="";for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push("b"===o?t[i]:e[r]),r++,i++;else if(n&&"**"===e[r]&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&"**"===t[i]&&e[r]===t[i+1])a.push(t[i]),i++;else if("*"===e[r]&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&"**"!==t[i]){if("b"===o)return!1;o="a",a.push(e[r]),r++,i++}else{if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r]||"a"===o)return!1;o="b",a.push(t[i]),r++,i++}return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),a=!n&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),o="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!o&&""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]),l=a?3:n?0:void 0,c=s?3:o?0:void 0;if("number"==typeof l&&"number"==typeof c){let[n,a]=[e[l],t[c]];n.toLowerCase()===a.toLowerCase()&&(t[c]=n,i=c,r=l)}}let{optimizationLevel:a=1}=this.options;return(a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(mb))?this.#G(e,t,n,r,i):this.#H(e,t,n,r,i)}#G(e,t,n,r,i){let a=t.indexOf(mb,i),o=t.lastIndexOf(mb),[s,l,c]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#H(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(c.length){if(c.length+r>e.length)return!1;let t=e.length-c.length;if(this.#H(e,c,n,t,0))u=c.length;else{if(""!==e[e.length-1]||r+c.length===e.length||(t--,!this.#H(e,c,n,t,0)))return!1;u=c.length+1}}if(!l.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,"."===r||".."===r||!this.options.dot&&r.startsWith("."))return!1}return n||t}let _=[[[],0]],d=_[0],p=0,f=[0];for(let e of l)e===mb?(f.push(p),d=[[],0],_.push(d)):(d[0].push(e),p++);let m=_.length-1,g=e.length-u;for(let e of _)e[1]=g-(f[m--]+e[0].length);return!!this.#X(e,_,r,0,n,0,!!u)}#X(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if("."===n||".."===n||!this.options.dot&&n.startsWith("."))return!1}return o}let[l,c]=s;for(;n<=c;){if(this.#H(e.slice(0,n+l.length),l,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#X(e,t,n+l.length,r+1,i,a+1,o);if(!1!==s)return s}let s=e[n];if("."===s||".."===s||!this.options.dot&&s.startsWith("."))return!1;n++}return i||null}#H(e,t,n,r,i){let a,o,s,l;for(a=r,o=i,l=e.length,s=t.length;a<l&&o<s;a++,o++){let n;this.debug("matchOne loop");let r=t[o],i=e[a];if(this.debug(t,r,i),!1===r||r===mb||("string"==typeof r?(n=i===r,this.debug("string match",r,i,n)):(n=r.test(i),this.debug("pattern match",r,i,n)),!n))return!1}if(a===l&&o===s)return!0;if(a===l)return n;if(o===s)return a===l-1&&""===e[a];throw Error("wtf?")}braceExpand(){return mE(this.pattern,this.options)}parse(e){let t;fW(e);let n=this.options;if("**"===e)return mb;if(""===e)return"";let r=null;(t=e.match(md))?r=n.dot?mf:mp:(t=e.match(mo))?r=(n.nocase?n.dot?e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)):e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)):n.dot?e=>t=>t.endsWith(e):e=>t=>!t.startsWith(".")&&t.endsWith(e))(t[1]):(t=e.match(mm))?r=(n.nocase?n.dot?([e,t=""])=>{let n=mh([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:([e,t=""])=>{let n=mg([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:n.dot?([e,t=""])=>{let n=mh([e]);return t?e=>n(e)&&e.endsWith(t):n}:([e,t=""])=>{let n=mg([e]);return t?e=>n(e)&&e.endsWith(t):n})(t):(t=e.match(ms))?r=n.dot?mc:ml:(t=e.match(mu))&&(r=m_);let i=mr.fromGlob(e,this.options).toMMPattern();return r&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:r}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(t.nocase?["i"]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(""))r.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===mb?mb:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e===mb&&a!==mb&&(void 0===a?void 0!==i&&i!==mb?t[r+1]="(?:\\/|"+n+"\\/)?"+i:t[r]=n:void 0===i?t[r-1]=a+"(?:\\/|\\/"+n+")?":i!==mb&&(t[r-1]=a+"(?:\\/|\\/"+n+"\\/)"+i,t[r+1]=mb))});let i=t.filter(e=>e!==mb);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join("/"));return"(?:"+e.join("|")+")"}return i.join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];i="^"+a+i+o+"$",this.partial&&(i="^(?:\\/|"+a+i.slice(1,-1)+o+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...r].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let i=this.set;this.debug(this.pattern,"set",i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&1===o.length&&(s=[a]),this.matchOne(s,o,t)){if(n.flipNegate)return!0;return!this.negate}}return!n.flipNegate&&this.negate}static defaults(e){return ma.defaults(e).Minimatch}}ma.AST=mr,ma.Minimatch=mw,ma.escape=mi,ma.unescape=fX;var mA=a7(Object.freeze({__proto__:null,AST:mr,GLOBSTAR:mb,Minimatch:mw,braceExpand:mE,defaults:mS,escape:mi,filter:mx,makeRe:mk,match:mP,minimatch:ma,sep:mv,unescape:fX})),mD=a7(aQ);function mN(){if(t7)return uA;t7=1;var e=uA&&uA.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uA,"__esModule",{value:!0}),uA.clearProgramCache=function(){f.clear()},uA.clearDefaultProjectMatchedFiles=function(){m.clear()},uA.parse=function(e,t){let{ast:r}=function(e,t,r){let i=(0,u.createParseSettings)(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let a=(0,o.createSourceFile)(i),{astMaps:s,estree:l}=(0,n.astConverter)(a,i,r);return{ast:l,esTreeNodeToTSNodeMap:s.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:s.tsNodeToESTreeNodeMap}}(e,t,!1);return r},uA.clearParseAndGenerateServicesCalls=function(){g={}},uA.parseAndGenerateServices=function(e,t){let h=(0,u.createParseSettings)(e,t);h.singleRun&&!h.programs&&h.projects.size>0&&(h.programs={*[Symbol.iterator](){for(let e of h.projects){let t=f.get(e[0]);if(t)yield t;else{p("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);let t=(0,l.createProgramFromConfigFile)(e[1]);f.set(e[0],t),yield t}}}});let y=null!=h.programs||h.projects.size>0||!!h.projectService;if("boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(h.errorOnTypeScriptSyntacticAndSemanticIssues=!0),h.errorOnTypeScriptSyntacticAndSemanticIssues&&!y)throw Error("Cannot calculate TypeScript semantic issues without a valid project.");h.singleRun&&t.filePath&&(g[t.filePath]=(g[t.filePath]||0)+1);let{ast:b,program:x}=h.singleRun&&t.filePath&&g[t.filePath]>1&&!h.projectService?(0,i.createIsolatedProgram)(h):function(e,t){if(e.projectService){let n=(0,d.useProgramFromProjectService)(e.projectService,e,t,m);if(n)return n}return e.programs?(0,l.useProvidedPrograms)(e.programs,e):t?(0,a.createProjectProgram)(e,(0,s.getWatchProgramsForProjects)(e)):(0,o.createNoProgram)(e)}(h,y),T="boolean"!=typeof h.preserveNodeMaps||h.preserveNodeMaps,{astMaps:S,estree:E}=(0,n.astConverter)(b,h,T);if(x&&h.errorOnTypeScriptSyntacticAndSemanticIssues){let e=(0,_.getFirstSemanticOrSyntacticError)(x,b);if(e)throw(0,r.convertError)(e)}return{ast:E,services:(0,c.createParserServices)(S,x)}};let t=e(c6()),n=function(){if(tP)return uD;tP=1,Object.defineProperty(uD,"__esModule",{value:!0}),uD.astConverter=function(i,a,o){let{parseDiagnostics:s}=i;if(s.length)throw(0,e.convertError)(s[0]);let l=new e.Converter(i,{allowInvalidAST:a.allowInvalidAST,errorOnUnknownASTType:a.errorOnUnknownASTType,shouldPreserveNodeMaps:o,suppressDeprecatedPropertyWarnings:a.suppressDeprecatedPropertyWarnings}),c=l.convertProgram();return a.range&&a.loc||(0,r.simpleTraverse)(c,{enter:e=>{a.range||delete e.range,a.loc||delete e.loc}}),a.tokens&&(c.tokens=(0,n.convertTokens)(i)),a.comment&&(c.comments=(0,t.convertComments)(i)),{astMaps:l.getASTMaps(),estree:c}};let e=_i(),t=function(){if(tx)return _a;tx=1;var e,t=_a&&_a.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=_a&&_a.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=_a&&_a.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(_a,"__esModule",{value:!0}),_a.convertComments=function(e){return Array.from(i.iterateComments(e),({end:t,kind:n,pos:r,value:i})=>{let l=n===a.SyntaxKind.SingleLineCommentTrivia?s.AST_TOKEN_TYPES.Line:s.AST_TOKEN_TYPES.Block,c=[r,t];return{type:l,loc:(0,o.getLocFor)(c,e),range:c,value:i}})};let i=r(dj),a=r(uh()),o=_r(),s=_n();return _a}(),n=_r(),r=dK();return uD}(),r=_i(),i=function(){if(tw)return dG;tw=1;var e,t=dG&&dG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=dG&&dG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=dG&&dG.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=dG&&dG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dG,"__esModule",{value:!0}),dG.createIsolatedProgram=function(e){c("Getting isolated program in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath);let t=o.createProgram([e.filePath],{jsDocParsingMode:e.jsDocParsingMode,jsx:e.jsx?o.JsxEmit.Preserve:void 0,noResolve:!0,target:o.ScriptTarget.Latest,...(0,l.createDefaultCompilerOptionsFromExtra)(e)},{fileExists:()=>!0,getCanonicalFileName:()=>e.filePath,getCurrentDirectory:()=>"",getDefaultLibFileName:()=>"lib.d.ts",getDirectories:()=>[],getNewLine:()=>"\n",getSourceFile:t=>o.createSourceFile(t,e.codeFullText,o.ScriptTarget.Latest,!0,(0,s.getScriptKind)(e.filePath,e.jsx)),readFile(){},useCaseSensitiveFileNames:()=>!0,writeFile:()=>null}),n=t.getSourceFile(e.filePath);if(!n)throw Error("Expected an ast to be returned for the single-file isolated program.");return{ast:n,program:t}};let a=i(c6()),o=r(uh()),s=dX(),l=uC(),c=(0,a.default)("typescript-eslint:typescript-estree:create-program:createIsolatedProgram");return dG}(),a=d1(),o=d3(),s=uw(),l=d4(),c=(tO||(tO=1,Object.defineProperty(d8,"__esModule",{value:!0}),d8.createParserServices=function(e,t){if(!t)return{emitDecoratorMetadata:void 0,experimentalDecorators:void 0,isolatedDeclarations:void 0,program:t,...e};let n=t.getTypeChecker(),r=t.getCompilerOptions();return{program:t,emitDecoratorMetadata:r.emitDecoratorMetadata??!1,experimentalDecorators:r.experimentalDecorators??!1,isolatedDeclarations:r.isolatedDeclarations??!1,...e,getContextualType:t=>n.getContextualType(e.esTreeNodeToTSNodeMap.get(t)),getResolvedSignature:t=>n.getResolvedSignature(e.esTreeNodeToTSNodeMap.get(t)),getSymbolAtLocation:t=>n.getSymbolAtLocation(e.esTreeNodeToTSNodeMap.get(t)),getTypeAtLocation:t=>n.getTypeAtLocation(e.esTreeNodeToTSNodeMap.get(t)),getTypeFromTypeNode:t=>n.getTypeFromTypeNode(e.esTreeNodeToTSNodeMap.get(t)),getTypeOfSymbolAtLocation:(t,r)=>n.getTypeOfSymbolAtLocation(t,e.esTreeNodeToTSNodeMap.get(r))}}),d8),u=fb(),_=function(){if(t4)return fx;t4=1,Object.defineProperty(fx,"__esModule",{value:!0}),fx.getFirstSemanticOrSyntacticError=function(e,r){try{let i=t(e.getSyntacticDiagnostics(r));if(i.length>0)return n(i[0]);let a=t(e.getSemanticDiagnostics(r));if(a.length>0)return n(a[0]);return}catch(e){console.warn(`Warning From TSC: "${e.message}`);return}};let e=uh();function t(e){return e.filter(e=>{switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function n(t){return{...t,message:(0,e.flattenDiagnosticMessageText)(t.messageText,e.sys.newLine)}}return fx}(),d=function(){if(t5)return fT;t5=1;var e,t=fT&&fT.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fT&&fT.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=fT&&fT.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=fT&&fT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fT,"__esModule",{value:!0}),fT.useProgramFromProjectService=function(e,t,n,r){var i,a,m,g,h,y,b;let x,T,S;i=e.service,a=t.extraFileExtensions,x=f.get(i)??[],s.default.isDeepStrictEqual(x,a)||(p("Updating extra file extensions: before=%s: after=%s",x,a),i.setHostConfiguration({extraFileExtensions:a.map(e=>({extension:e,isMixedContent:!1,scriptKind:l.ScriptKind.Deferred}))}),f.set(i,a),p("Extra file extensions updated: %o",a));let E=(g=t.filePath,h=e,o.default.isAbsolute(g)?g:o.default.join(h.service.host.getCurrentDirectory(),g));p("Opening project service file for: %s at absolute path %s",t.filePath,E);let k=(y=o.default.relative(t.tsconfigRootDir,E),b=e.allowDefaultProject,!!b?.some(e=>(0,mA.minimatch)(y,e,{dot:!0})));if(!n&&!k)return m=e.service,p("No project service information available. Creating no program."),m.getScriptInfo(E)&&(p("Script info available. Opening client file in project service."),m.openClientFile(E,t.codeFullText,void 0,t.tsconfigRootDir)),(0,u.createNoProgram)(t);let P=n&&function(e,t,n,r,i){let a,s=(p("Opening project service client file at path: %s",n),!(a=l()).configFileErrors&&!a.configFileName&&!r.singleRun&&!t&&performance.now()-i.lastReloadTimestamp>250&&(p("No config file found; reloading project service and retrying."),i.service.reloadProjects(),a=l(),i.lastReloadTimestamp=performance.now()),a);if(p("Result from attempting to open client file: %o",s),p("Default project allowed path: %s, based on config file: %s",t,s.configFileName),s.configFileName){if(t)throw Error(`${r.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`)}else{let e=`${r.filePath} was not found by the project service`,i=o.default.extname(r.filePath),a=r.extraFileExtensions;if(!_.DEFAULT_EXTRA_FILE_EXTENSIONS.has(i)&&!a.includes(i)){let t=`${e} because the extension for the file (\`${i}\`) is non-standard`;if(a.length>0)throw Error(`${t}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`);throw Error(`${t}. You should add \`parserOptions.extraFileExtensions\` to your config.`)}if(!t){let t=`${e}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`,i=r.projectService?.allowDefaultProject;if(!i)throw Error(t);let a=o.default.relative(r.tsconfigRootDir,n);throw Error([t,`allowDefaultProject is set to ${JSON.stringify(i)}, which does not match '${a}'.`].join("\n"))}}if(!s.configFileName&&(e.add(n),e.size>i.maximumDefaultProjectFileMatchCount)){let t=[...e].slice(0,20),n=e.size-t.length;throw Error(`Too many files (>${i.maximumDefaultProjectFileMatchCount}) have matched the default project.${d.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}
|
|
410
|
+
`,pn)}var pi={};function pa(){if(tU)return pi;tU=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.addCandidateTSConfigRootDir=function(t){e.add(t)},pi.clearCandidateTSConfigRootDirs=function(){e.clear()},pi.getInferredTSConfigRootDir=function(){let t=[...e];switch(t.length){case 0:return process.cwd();case 1:return t[0];default:throw Error(["No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present:",...t.map(e=>` - ${e}`),"You'll need to explicitly set tsconfigRootDir in your parser options.","See: https://tseslint.com/parser-tsconfigrootdir"].join("\n"))}};let e=new Set;return pi}var po={};function ps(){if(tB)return po;tB=1,Object.defineProperty(po,"__esModule",{value:!0}),po.ExpiringCache=po.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=void 0,po.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS=30;let e=[0,0];return po.ExpiringCache=class{#S;#E=new Map;constructor(e){this.#S=e}clear(){this.#E.clear()}get(e){let t=this.#E.get(e);if(t?.value!=null){if("Infinity"===this.#S||process.hrtime(t.lastSeen)[0]<this.#S)return t.value;this.#E.delete(e)}}set(t,n){return this.#E.set(t,{lastSeen:"Infinity"===this.#S?e:process.hrtime(),value:n}),this}},po}var pl={},pc={},pu={},p_=aF.createRequire("u"<typeof document?require("url").pathToFileURL(__filename).href:aU&&"SCRIPT"===aU.tagName.toUpperCase()&&aU.src||new URL("index.cjs",document.baseURI).href);let pd=/[\\/]/g;function pp(e,t){return e.replace(pd,t)}let pf=/^[a-z]:[\\/]$/i;function pm(e,t){var n;let r,{resolvePaths:i,normalizePath:a,pathSeparator:o}=t,s="win32"===process.platform&&e.includes("/")||e.startsWith(".");return i&&(e=aw.resolve(e)),((a||s)&&(n=e,(r=aw.normalize(n)).length>1&&r[r.length-1]===aw.sep&&(r=r.substring(0,r.length-1)),e=r),"."===e)?"":pp(e[e.length-1]!==o?e+o:e,o)}function pg(e,t){return t+e}function ph(e){return e}let py=(e,t)=>{t.push(e||".")},pv=(e,t,n)=>{let r=e||".";n.every(e=>e(r,!0))&&t.push(r)},pb=()=>{},px=(e,t,n,r)=>{r.every(t=>t(e,!1))&&n.files++},pT=(e,t,n,r)=>{r.every(t=>t(e,!1))&&t.push(e)},pS=(e,t,n,r)=>{n.files++},pE=(e,t)=>{t.push(e)},pk=()=>{},pP=e=>e,pC=()=>[""].slice(0,0),pw=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},pA=()=>{},pD=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue(),i.realpath(e,(o,s)=>{if(o)return r.dequeue(a?null:o,t);i.stat(s,(i,o)=>i?r.dequeue(a?null:i,t):o.isDirectory()&&pF(e,s,t)?r.dequeue(null,t):void(n(o,s),r.dequeue(null,t)))})},pN=function(e,t,n){let{queue:r,fs:i,options:{suppressErrors:a}}=t;r.enqueue();try{let r=i.realpathSync(e),a=i.statSync(r);if(a.isDirectory()&&pF(e,r,t))return;n(a,r)}catch(e){if(!a)throw e}};function pF(e,t,n){if(n.options.useRealPaths){var r,i;return r=t,(i=n).visited.includes(r+i.options.pathSeparator)}let a=aw.dirname(e),o=1;for(;a!==n.root&&o<2;){let e=n.symlinks.get(a);e&&(e===t||e.startsWith(t)||t.startsWith(e))?o++:a=aw.dirname(a)}return n.symlinks.set(e,t),o>1}let pI=e=>e.counts,pO=e=>e.groups,pL=e=>e.paths,pM=e=>e.paths.slice(0,e.options.maxFiles),pR=(e,t,n)=>(pB(t,n,e.counts,e.options.suppressErrors),null),pj=(e,t,n)=>(pB(t,n,e.paths,e.options.suppressErrors),null),pY=(e,t,n)=>(pB(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),pU=(e,t,n)=>(pB(t,n,e.groups,e.options.suppressErrors),null);function pB(e,t,n,r){t(e&&!r?e:null,n)}let pV={withFileTypes:!0},pJ=(e,t,n,r,i)=>{if(e.queue.enqueue(),r<0)return e.queue.dequeue(null,e);let{fs:a}=e;e.visited.push(t),e.counts.directories++,a.readdir(t||".",pV,(t,a=[])=>{i(a,n,r),e.queue.dequeue(e.options.suppressErrors?null:t,e)})},pz=(e,t,n,r,i)=>{let{fs:a}=e;if(r<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=a.readdirSync(t||".",pV)}catch(t){if(!e.options.suppressErrors)throw t}i(o,n,r)};var pq=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},p$=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},pW=class{aborted=!1;abort(){this.aborted=!0}},pK=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){var r,i;this.isSynchronous=!n,this.callbackInvoker=function(e,t){let{onlyCounts:n,group:r,maxFiles:i}=e;return n?t?pI:pR:r?t?pO:pU:i?t?pM:pY:t?pL:pj}(t,this.isSynchronous),this.root=pm(e,t),this.state={root:"/"===(r=this.root)||pf.test(r)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new p$,options:t,queue:new pq((e,t)=>this.callbackInvoker(t,e,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new pW,fs:t.fs||aK},this.joinPath=function(e,t){let{relativePaths:n,includeBasePath:r}=t;return n&&e?function(n,r){return r.startsWith(e)?r.slice(e.length)+n:pp(aw.relative(e,r),t.pathSeparator)+t.pathSeparator+n}:r?pg:ph}(this.root,t),this.pushDirectory=function(e,t){let{includeDirs:n,filters:r,relativePaths:i}=t;if(!n)return pb;if(i)return r&&r.length?function(t,n,r){let i=t.substring(e.length)||".";r.every(e=>e(i,!0))&&n.push(i)}:function(t,n){n.push(t.substring(e.length)||".")};return r&&r.length?pv:py}(this.root,t),this.pushFile=function(e){let{excludeFiles:t,filters:n,onlyCounts:r}=e;return t?pk:n&&n.length?r?px:pT:r?pS:pE}(t),this.getArray=t.group?pC:pP,this.groupFiles=t.group?pw:pA,this.resolveSymlink=(i=this.isSynchronous,!t.resolveSymlinks||t.excludeSymlinks?null:i?pN:pD),this.walkDirectory=this.isSynchronous?pz:pJ}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:r,options:{filters:i,resolveSymlinks:a,excludeSymlinks:o,exclude:s,maxFiles:l,signal:c,useRealPaths:u,pathSeparator:_},controller:d}=this.state;if(d.aborted||c&&c.aborted||l&&r.length>l)return;let p=this.getArray(this.state.paths);for(let l=0;l<e.length;++l){let c=e[l];if(c.isFile()||c.isSymbolicLink()&&!a&&!o){let e=this.joinPath(c.name,t);this.pushFile(e,p,this.state.counts,i)}else if(c.isDirectory()){let e=t+c.name+this.state.options.pathSeparator;if(s&&s(c.name,e))continue;this.pushDirectory(e,r,i),this.walkDirectory(this.state,e,e,n-1,this.walk)}else if(this.resolveSymlink&&c.isSymbolicLink()){let e=t+c.name;this.resolveSymlink(e,this.state,(t,r)=>{if(t.isDirectory())r=pm(r,this.state.options),s&&s(c.name,u?r:e+_)||this.walkDirectory(this.state,r,u?r:e+_,n-1,this.walk);else{r=u?r:e;let t=aw.basename(r),n=pm(aw.dirname(r),this.state.options);r=this.joinPath(t,n),this.pushFile(r,p,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,p)}};function pG(e,t,n){new pK(e,t,n).start()}var pH=class{constructor(e,t){this.root=e,this.options=t}withPromise(){var e,t;return e=this.root,t=this.options,new Promise((n,r)=>{pG(e,t,(e,t)=>{if(e)return r(e);n(t)})})}withCallback(e){pG(this.root,this.options,e)}sync(){return new pK(this.root,this.options).start()}};let pX=null;try{p_.resolve("picomatch"),pX=p_("picomatch")}catch{}var pQ=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:aw.sep,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new pH(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new pH(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||pX;if(!n)throw Error("Please specify a glob function to use glob matching.");var r=this.globCache[e.join("\0")];return r||(r=n(e,...t),this.globCache[e.join("\0")]=r),this.options.filters.push(e=>r(e)),this}},pZ={};function p0(){if(tq)return tz;tq=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,a=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,s=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:s,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r,SEP:"/"},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};return tz={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{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"},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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function p1(){return t$||(t$=1,!function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=p0();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("u">typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return"u">typeof process&&!!process.platform&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",a=`${r}(?:${e})${i}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),r=n[n.length-1];return""===r?n[n.length-2]:r}}(pZ)),pZ}var p2=a5(function(){if(t0)return tZ;t0=1;let e=function(){if(tQ)return tX;tQ=1;let e=function(){if(tK)return tW;tK=1;let e=p1(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:_,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=p0(),g=e=>e===s||e===r,h=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return tW=(y,b)=>{let x,T,S=b||{},E=y.length-1,k=!0===S.parts||!0===S.scanToEnd,P=[],C=[],w=[],A=y,D=-1,N=0,F=0,I=!1,O=!1,L=!1,M=!1,R=!1,j=!1,Y=!1,U=!1,B=!1,V=!1,J=0,z={value:"",depth:0,isGlob:!1},q=()=>D>=E,$=()=>A.charCodeAt(D+1),W=()=>(x=T,A.charCodeAt(++D));for(;D<E;){let e;if((T=W())===r){Y=z.backslashes=!0,(T=W())===l&&(j=!0);continue}if(!0===j||T===l){for(J++;!0!==q()&&(T=W());){if(T===r){Y=z.backslashes=!0,W();continue}if(T===l){J++;continue}if(!0!==j&&T===a&&(T=W())===a||!0!==j&&T===i){if(I=z.isBrace=!0,L=z.isGlob=!0,V=!0,!0===k)continue;break}if(T===p&&0==--J){j=!1,I=z.isBrace=!0,V=!0;break}}if(!0===k)continue;break}if(T===s){if(P.push(D),C.push(z),z={value:"",depth:0,isGlob:!1},!0===V)continue;if(x===a&&D===N+1){N+=2;continue}F=D+1;continue}if(!0!==S.noext&&!0==(T===_||T===n||T===t||T===d||T===o)&&$()===c){if(L=z.isGlob=!0,M=z.isExtglob=!0,V=!0,T===o&&D===N&&(B=!0),!0===k){for(;!0!==q()&&(T=W());){if(T===r){Y=z.backslashes=!0,T=W();continue}if(T===f){L=z.isGlob=!0,V=!0;break}}continue}break}if(T===t){if(x===t&&(R=z.isGlobstar=!0),L=z.isGlob=!0,V=!0,!0===k)continue;break}if(T===d){if(L=z.isGlob=!0,V=!0,!0===k)continue;break}if(T===u){for(;!0!==q()&&(e=W());){if(e===r){Y=z.backslashes=!0,W();continue}if(e===m){O=z.isBracket=!0,L=z.isGlob=!0,V=!0;break}}if(!0===k)continue;break}if(!0!==S.nonegate&&T===o&&D===N){U=z.negated=!0,N++;continue}if(!0!==S.noparen&&T===c){if(L=z.isGlob=!0,!0===k){for(;!0!==q()&&(T=W());){if(T===c){Y=z.backslashes=!0,T=W();continue}if(T===f){V=!0;break}}continue}break}if(!0===L){if(V=!0,!0===k)continue;break}}!0===S.noext&&(M=!1,L=!1);let K=A,G="",H="";N>0&&(G=A.slice(0,N),A=A.slice(N),F-=N),K&&!0===L&&F>0?(K=A.slice(0,F),H=A.slice(F)):!0===L?(K="",H=A):K=A,K&&""!==K&&"/"!==K&&K!==A&&g(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===S.unescape&&(H&&(H=e.removeBackslashes(H)),K&&!0===Y&&(K=e.removeBackslashes(K)));let X={prefix:G,input:y,start:N,base:K,glob:H,isBrace:I,isBracket:O,isGlob:L,isExtglob:M,isGlobstar:R,negated:U,negatedExtglob:B};if(!0===S.tokens&&(X.maxDepth=0,g(T)||C.push(z),X.tokens=C),!0===S.parts||!0===S.tokens){let e;for(let t=0;t<P.length;t++){let n=e?e+1:N,r=P[t],i=y.slice(n,r);S.tokens&&(0===t&&0!==N?(C[t].isPrefix=!0,C[t].value=G):C[t].value=i,h(C[t]),X.maxDepth+=C[t].depth),(0!==t||""!==i)&&w.push(i),e=r}if(e&&e+1<y.length){let t=y.slice(e+1);w.push(t),S.tokens&&(C[C.length-1].value=t,h(C[C.length-1]),X.maxDepth+=C[C.length-1].depth)}X.slashes=P,X.parts=w}return X}}(),t=function(){if(tH)return tG;tH=1;let e=p0(),t=p1(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,_)=>{let d;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let p={..._},f="number"==typeof p.maxLength?Math.min(n,p.maxLength):n,m=u.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:p.prepend||""},h=[g],y=p.capture?"":"?:",b=e.globChars(p.windows),x=e.extglobChars(b),{DOT_LITERAL:T,PLUS_LITERAL:S,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:C,NO_DOT_SLASH:w,NO_DOTS_SLASH:A,QMARK:D,QMARK_NO_DOT:N,STAR:F,START_ANCHOR:I}=b,O=e=>`(${y}(?:(?!${I}${e.dot?P:T}).)*?)`,L=p.dot?"":C,M=p.dot?D:N,R=!0===p.bash?O(p):F;p.capture&&(R=`(${R})`),"boolean"==typeof p.noext&&(p.noextglob=p.noext);let j={input:u,index:-1,start:0,dot:!0===p.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};m=(u=t.removePrefix(u,j)).length;let Y=[],U=[],B=[],V=g,J=()=>j.index===m-1,z=j.peek=(e=1)=>u[j.index+e],q=j.advance=()=>u[++j.index]||"",$=()=>u.slice(j.index+1),W=(e="",t=0)=>{j.consumed+=e,j.index+=t},K=e=>{j.output+=null!=e.output?e.output:e.value,W(e.value)},G=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)q(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},H=e=>{j[e]++,B.push(e)},X=e=>{j[e]--,B.pop()},Q=e=>{if("globstar"===V.type){let t=j.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||Y.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(j.output=j.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=R,j.output+=V.output)}if(Y.length&&"paren"!==e.type&&(Y[Y.length-1].inner+=e.value),(e.value||e.output)&&K(e),V&&"text"===V.type&&"text"===e.type){V.output=(V.output||V.value)+e.value,V.value+=e.value;return}e.prev=V,h.push(e),V=e},Z=(e,t)=>{let n={...x[t],conditions:1,inner:""};n.prev=V,n.parens=j.parens,n.output=j.output;let r=(p.capture?"(":"")+n.open;H("parens"),Q({type:e,value:t,output:j.output?"":k}),Q({type:"paren",extglob:!0,value:q(),output:r}),Y.push(n)},ee=e=>{let t,n=e.close+(p.capture?")":"");if("negate"===e.type){let r=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=O(p)),(r!==R||J()||/^\)+$/.test($()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=$())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{..._,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:d,output:n}),X("parens")};if(!1!==p.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(a,(t,n,r,i,a,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(a?D.repeat(a.length):""):0===o?M+(a?D.repeat(a.length):""):D.repeat(r.length):"."===i?T.repeat(r.length):"*"===i?n?n+i+(a?R:""):R:n?t:`\\${t}`);return(!0===e&&(n=!0===p.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===p.contains)?j.output=u:j.output=t.wrapOutput(n,j,_),j}for(;!J();){if("\0"===(d=q()))continue;if("\\"===d){let e=z();if("/"===e&&!0!==p.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:d+="\\"});continue}let t=/^\\+/.exec($()),n=0;if(t&&t[0].length>2&&(n=t[0].length,j.index+=n,n%2!=0&&(d+="\\")),!0===p.unescape?d=q():d+=q(),0===j.brackets){Q({type:"text",value:d});continue}}if(j.brackets>0&&("]"!==d||"["===V.value||"[^"===V.value)){if(!1!==p.posix&&":"===d){let e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){let e=V.value.lastIndexOf("["),t=V.value.slice(0,e),n=r[V.value.slice(e+2)];if(n){V.value=t+n,j.backtrack=!0,q(),g.output||1!==h.indexOf(V)||(g.output=k);continue}}}("["===d&&":"!==z()||"-"===d&&"]"===z())&&(d=`\\${d}`),"]"===d&&("["===V.value||"[^"===V.value)&&(d=`\\${d}`),!0===p.posix&&"!"===d&&"["===V.value&&(d="^"),V.value+=d,K({value:d});continue}if(1===j.quotes&&'"'!==d){d=t.escapeRegex(d),V.value+=d,K({value:d});continue}if('"'===d){j.quotes=+(1!==j.quotes),!0===p.keepQuotes&&Q({type:"text",value:d});continue}if("("===d){H("parens"),Q({type:"paren",value:d});continue}if(")"===d){if(0===j.parens&&!0===p.strictBrackets)throw SyntaxError(l("opening","("));let e=Y[Y.length-1];if(e&&j.parens===e.parens+1){ee(Y.pop());continue}Q({type:"paren",value:d,output:j.parens?")":"\\)"}),X("parens");continue}if("["===d){if(!0!==p.nobracket&&$().includes("]"))H("brackets");else{if(!0!==p.nobracket&&!0===p.strictBrackets)throw SyntaxError(l("closing","]"));d=`\\${d}`}Q({type:"bracket",value:d});continue}if("]"===d){if(!0===p.nobracket||V&&"bracket"===V.type&&1===V.value.length){Q({type:"text",value:d,output:`\\${d}`});continue}if(0===j.brackets){if(!0===p.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:d,output:`\\${d}`});continue}X("brackets");let e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(d=`/${d}`),V.value+=d,K({value:d}),!1===p.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(V.value);if(j.output=j.output.slice(0,-V.value.length),!0===p.literalBrackets){j.output+=n,V.value=n;continue}V.value=`(${y}${n}|${V.value})`,j.output+=V.value;continue}if("{"===d&&!0!==p.nobrace){H("braces");let e={type:"brace",value:d,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};U.push(e),Q(e);continue}if("}"===d){let e=U[U.length-1];if(!0===p.nobrace||!e){Q({type:"text",value:d,output:d});continue}let t=")";if(!0===e.dots){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=s(n,p),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=j.output.slice(0,e.outputIndex),r=j.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",d=t="\\}",j.output=n,r))j.output+=i.output||i.value}Q({type:"brace",value:d,output:t}),X("braces"),U.pop();continue}if("|"===d){Y.length>0&&Y[Y.length-1].conditions++,Q({type:"text",value:d});continue}if(","===d){let e=d,t=U[U.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:d,output:e});continue}if("/"===d){if("dot"===V.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",h.pop(),V=g;continue}Q({type:"slash",value:d,output:E});continue}if("."===d){if(j.braces>0&&"dot"===V.type){"."===V.value&&(V.output=T);let e=U[U.length-1];V.type="dots",V.output+=d,V.value+=d,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==V.type&&"slash"!==V.type){Q({type:"text",value:d,output:T});continue}Q({type:"dot",value:d,output:T});continue}if("?"===d){if(!(V&&"("===V.value)&&!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("qmark",d);continue}if(V&&"paren"===V.type){let e=z(),t=d;("("!==V.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test($()))||(t=`\\${d}`),Q({type:"text",value:d,output:t});continue}if(!0!==p.dot&&("slash"===V.type||"bos"===V.type)){Q({type:"qmark",value:d,output:N});continue}Q({type:"qmark",value:d,output:D});continue}if("!"===d){if(!0!==p.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){Z("negate",d);continue}if(!0!==p.nonegate&&0===j.index){G();continue}}if("+"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("plus",d);continue}if(V&&"("===V.value||!1===p.regex){Q({type:"plus",value:d,output:S});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||j.parens>0){Q({type:"plus",value:d});continue}Q({type:"plus",value:S});continue}if("@"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Q({type:"at",extglob:!0,value:d,output:""});continue}Q({type:"text",value:d});continue}if("*"!==d){("$"===d||"^"===d)&&(d=`\\${d}`);let e=i.exec($());e&&(d+=e[0],j.index+=e[0].length),Q({type:"text",value:d});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=d,V.output=R,j.backtrack=!0,j.globstar=!0,W(d);continue}let e=$();if(!0!==p.noextglob&&/^\([^?]/.test(e)){Z("star",d);continue}if("star"===V.type){if(!0===p.noglobstar){W(d);continue}let t=V.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===p.bash&&(!r||e[0]&&"/"!==e[0])){Q({type:"star",value:d,output:""});continue}let a=j.braces>0&&("comma"===t.type||"brace"===t.type),o=Y.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!a&&!o){Q({type:"star",value:d,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[j.index+4];if(t&&"/"!==t)break;e=e.slice(3),W("/**",3)}if("bos"===t.type&&J()){V.type="globstar",V.value+=d,V.output=O(p),j.output=V.output,j.globstar=!0,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&J()){j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=O(p)+(p.strictSlashes?")":"|$)"),V.value+=d,j.globstar=!0,j.output+=t.output+V.output,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=`${O(p)}${E}|${E}${n})`,V.value+=d,j.output+=t.output+V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){V.type="globstar",V.value+=d,V.output=`(?:^|${E}|${O(p)}${E})`,j.output=V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-V.output.length),V.type="globstar",V.output=O(p),V.value+=d,j.output+=V.output,j.globstar=!0,W(d);continue}let n={type:"star",value:d,output:R};if(!0===p.bash){n.output=".*?",("bos"===V.type||"slash"===V.type)&&(n.output=L+n.output),Q(n);continue}if(V&&("bracket"===V.type||"paren"===V.type)&&!0===p.regex){n.output=d,Q(n);continue}(j.index===j.start||"slash"===V.type||"dot"===V.type)&&("dot"===V.type?(j.output+=w,V.output+=w):!0===p.dot?(j.output+=A,V.output+=A):(j.output+=L,V.output+=L),"*"!==z()&&(j.output+=k,V.output+=k)),Q(n)}for(;j.brackets>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","]"));j.output=t.escapeLast(j.output,"["),X("brackets")}for(;j.parens>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing",")"));j.output=t.escapeLast(j.output,"("),X("parens")}for(;j.braces>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","}"));j.output=t.escapeLast(j.output,"{"),X("braces")}if(!0!==p.strictSlashes&&("star"===V.type||"bracket"===V.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===j.backtrack)for(let e of(j.output="",j.tokens))j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix);return j};return c.fastpaths=(r,i)=>{let a={...i},s="number"==typeof a.maxLength?Math.min(n,a.maxLength):n,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:_,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:h}=e.globChars(a.windows),y=a.dot?f:p,b=a.dot?m:p,x=a.capture?"":"?:",T=!0===a.bash?".*?":g;a.capture&&(T=`(${T})`);let S=e=>!0===e.noglobstar?T:`(${x}(?:(?!${h}${e.dot?d:c}).)*?)`,E=e=>{switch(e){case"*":return`${y}${_}${T}`;case".*":return`${c}${_}${T}`;case"*.*":return`${y}${T}${c}${_}${T}`;case"*/*":return`${y}${T}${u}${_}${b}${T}`;case"**":return y+S(a);case"**/*":return`(?:${y}${S(a)}${u})?${b}${_}${T}`;case"**/*.*":return`(?:${y}${S(a)}${u})?${b}${T}${c}${_}${T}`;case"**/.*":return`(?:${y}${S(a)}${u})?${c}${_}${T}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=E(t[1]);if(!n)return;return n+c+t[2]}}},k=E(t.removePrefix(r,{negated:!1,prefix:""}));return k&&!0!==a.strictSlashes&&(k+=`${u}?`),k},tG=c}(),n=p1(),r=p0(),i=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>i(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!r)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,s=r?i.compileRe(e,t):i.makeRe(e,t,!1,!0),l=s.state;delete s.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=i(a.ignore,e,n)}let u=(n,r=!1)=>{let{isMatch:u,match:_,output:d}=i.test(n,s,t,{glob:e,posix:o}),p={glob:e,state:l,regex:s,posix:o,input:n,output:d,match:_,isMatch:u};return("function"==typeof a.onResult&&a.onResult(p),!1===u)?(p.isMatch=!1,!!r&&p):c(n)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof a.onMatch&&a.onMatch(p),!r||p)};return n&&(u.state=l),u};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},l=s.format||(o?n.toPosixSlashes:null),c=e===a,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===a),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r)=>(t instanceof RegExp?t:i.makeRe(t,r)).test(n.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?"":"^",s=a.contains?"":"$",l=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,tX=i}(),t=p1();function n(r,i,a=!1){return i&&(null===i.windows||void 0===i.windows)&&(i={...i,windows:t.isWindows()}),e(r,i,a)}return Object.assign(n,e),tZ=n}());let p3=Array.isArray,p6="win32"===process.platform,p4=/^(\/?\.\.)+$/,p8=/^[A-Z]:\/$/i,p5=p6?e=>p8.test(e):e=>"/"===e;function p7(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let t=p5(e)?e.length:e.length+1;return(e,n)=>e.slice(t,n?-1:void 0)||"."}let r=t.slice(e.length+1);return r?(e,t)=>{if("."===e)return r;let n=`${r}/${e}`;return t?n.slice(0,-1):n}:(e,t)=>t&&"."!==e?e.slice(0,-1):e}return n?t=>aw.posix.relative(e,t)||".":n=>aw.posix.relative(e,`${t}/${n}`)||"."}let p9={parts:!0};function fe(e){var t;let n=p2.scan(e,p9);return(null==(t=n.parts)?void 0:t.length)?n.parts:[e]}let ft=/\\(?![()[\]{}!+@])/g,fn=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,fr=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,fi=e=>e.replace(fn,"\\$&"),fa=e=>e.replace(fr,"\\$&"),fo=p6?fa:fi;function fs(e,t){if((null==t?void 0:t.caseSensitiveMatch)===!1)return!0;let n=p2.scan(e);return n.isGlob||n.negated}function fl(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}let fc=/^(\/?\.\.)+/,fu=/\\(?=[()[\]{}!*+?@|])/g,f_=/\\/g;function fd(e,t,n,r,i){let a=e;e.endsWith("/")&&(a=e.slice(0,-1)),!a.endsWith("*")&&t&&(a+="/**");let o=fo(n);a=aw.isAbsolute(a.replace(fu,""))?aw.posix.relative(o,a):aw.posix.normalize(a);let s=fc.exec(a),l=fe(a);if(null==s?void 0:s[0]){let e=(s[0].length+1)/3,t=0,i=o.split("/");for(;t<e&&l[t+e]===i[i.length+t-e];)a=a.slice(0,(e-t-1)*3)+a.slice((e-t)*3+l[t+e].length+1)||".",t++;let c=aw.posix.join(n,s[0].slice(3*t));!c.startsWith(".")&&r.root.length>c.length&&(r.root=c,r.depthOffset=-e+t)}if(!i&&r.depthOffset>=0){null!=r.commonPath||(r.commonPath=l);let e=[],t=Math.min(r.commonPath.length,l.length);for(let n=0;n<t;n++){let t=l[n];if("**"===t&&!l[n+1]){e.pop();break}if(t!==r.commonPath[n]||fs(t)||n===l.length-1)break;e.push(t)}r.depthOffset=e.length,r.commonPath=e,r.root=e.length>0?aw.posix.join(n,...e):n}return a}function fp(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];e[n]=t(r)}return e}function ff(e,t={}){var n;let r=process.env.TINYGLOBBY_DEBUG?{...t,debug:!0}:t,i=(n=r.cwd)?n instanceof URL?aN.fileURLToPath(n).replace(f_,"/"):aw.resolve(n).replace(f_,"/"):process.cwd().replace(f_,"/");if(r.debug&&fl("globbing with:",{patterns:e,options:r,cwd:i}),Array.isArray(e)&&0===e.length)return[{sync:()=>[],withPromise:async()=>[]},!1];let a={root:i,commonPath:null,depthOffset:0},o=function({patterns:e=["**/*"],ignore:t=[],expandDirectories:n=!0},r,i){"string"==typeof e&&(e=[e]),"string"==typeof t&&(t=[t]);let a=[],o=[];for(let e of t)e&&("!"!==e[0]||"("===e[1])&&o.push(fd(e,n,r,i,!0));for(let t of e)t&&("!"!==t[0]||"("===t[1]?a.push(fd(t,n,r,i,!1)):("!"!==t[1]||"("===t[2])&&o.push(fd(t.slice(1),n,r,i,!0)));return{match:a,ignore:o}}({...r,patterns:e},i,a);r.debug&&fl("internal processing patterns:",o);let s={dot:r.dot,nobrace:!1===r.braceExpansion,nocase:!1===r.caseSensitiveMatch,noextglob:!1===r.extglob,noglobstar:!1===r.globstar,posix:!0},l=p2(o.match,{...s,ignore:o.ignore}),c=p2(o.ignore,s),u=function(e,t={}){let n=e.length,r=Array(n),i=Array(n),a=!t.noglobstar;for(let a=0;a<n;a++){let n=fe(e[a]);r[a]=n;let o=n.length,s=Array(o);for(let e=0;e<o;e++)s[e]=p2(n[e],t);i[a]=s}return t=>{let n=t.split("/");if(".."===n[0]&&p4.test(t))return!0;for(let t=0;t<e.length;t++){let e=r[t],o=i[t],s=n.length,l=Math.min(s,e.length),c=0;for(;c<l;){let t=e[c];if(t.includes("/"))return!0;if(!o[c](n[c]))break;if(a&&"**"===t)return!0;c++}if(c===s)return!0}return!1}}(o.match,s),_=p7(i,a.root,r.absolute),d=r.absolute?_:p7(i,a.root,!0),p={filters:[r.debug?(e,t)=>{let n=_(e,t),r=l(n);return r&&fl(`matched ${n}`),r}:(e,t)=>l(_(e,t))],exclude:r.debug?(e,t)=>{let n=d(t,!0),r="."!==n&&!u(n)||c(n);return r?fl(`skipped ${t}`):fl(`crawling ${t}`),r}:(e,t)=>{let n=d(t,!0);return"."!==n&&!u(n)||c(n)},fs:r.fs?{readdir:r.fs.readdir||aC.readdir,readdirSync:r.fs.readdirSync||aC.readdirSync,realpath:r.fs.realpath||aC.realpath,realpathSync:r.fs.realpathSync||aC.realpathSync,stat:r.fs.stat||aC.stat,statSync:r.fs.statSync||aC.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:r.signal};void 0!==r.deep&&(p.maxDepth=Math.round(r.deep-a.depthOffset)),r.absolute&&(p.relativePaths=!1,p.resolvePaths=!0,p.includeBasePath=!0),!1===r.followSymbolicLinks&&(p.resolveSymlinks=!1,p.excludeSymlinks=!0),r.onlyDirectories?(p.excludeFiles=!0,p.includeDirs=!0):!1===r.onlyFiles&&(p.includeDirs=!0),a.root=a.root.replace(f_,"");let f=a.root;r.debug&&fl("internal properties:",a);let m=i!==f&&!r.absolute&&function(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return e=>`${n}/${e}`}return n=>{let r=aw.posix.relative(e,`${t}/${n}`);return n.endsWith("/")&&""!==r?`${r}/`:r||"."}}(i,a.root);return[new pQ(p).crawl(f),m]}var fm=a7(Object.freeze({__proto__:null,convertPathToPattern:p6?function(e){return fa(e).replace(ft,"/")}:function(e){return fi(e)},escapePath:fo,glob:async function e(e,t){if(e&&(null==t?void 0:t.patterns))throw Error("Cannot pass patterns as both an argument and an option");let n=p3(e)||"string"==typeof e,r=n?t:e,[i,a]=ff(n?e:e.patterns,r);return a?fp(await i.withPromise(),a):i.withPromise()},globSync:function(e,t){if(e&&(null==t?void 0:t.patterns))throw Error("Cannot pass patterns as both an argument and an option");let n=p3(e)||"string"==typeof e,r=n?t:e,[i,a]=ff(n?e:e.patterns,r);return a?fp(i.sync(),a):i.sync()},isDynamicPattern:fs}));function fg(){if(t1)return pu;t1=1;var e=pu&&pu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pu,"__esModule",{value:!0}),pu.clearGlobCache=function(){a?.clear()},pu.resolveProjectList=function(e){let t=[];if(null!=e.project)for(let n of e.project)"string"==typeof n&&t.push(n);if(0===t.length)return new Map;let o=(e.projectFolderIgnoreList??["**/node_modules/**"]).filter(e=>"string"==typeof e),s=function({project:e,projectFolderIgnoreList:t,tsconfigRootDir:r}){let i={tsconfigRootDir:r,project:e,projectFolderIgnoreList:[...t].sort()};return(0,n.createHash)(JSON.stringify(i))}({project:t,projectFolderIgnoreList:o,tsconfigRootDir:e.tsconfigRootDir});if(null==a)a=new r.ExpiringCache(e.singleRun?"Infinity":e.cacheLifetime?.glob??r.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS);else{let e=a.get(s);if(e)return e}let l=t.filter(e=>!(0,fm.isDynamicPattern)(e)),c=t.filter(e=>(0,fm.isDynamicPattern)(e)),u=[];c.length>0&&(u=c.flatMap(t=>(0,fm.globSync)(t,{cwd:e.tsconfigRootDir,expandDirectories:!1,ignore:o})));let _=new Map([...l,...u].map(t=>[(0,n.getCanonicalFileName)((0,n.ensureAbsolutePath)(t,e.tsconfigRootDir)),(0,n.ensureAbsolutePath)(t,e.tsconfigRootDir)]));return i("parserOptions.project (excluding ignored) matched projects: %s",_),a.set(s,_),_},pu.clearGlobResolutionCache=function(){a?.clear(),a=null};let t=e(c6()),n=uC(),r=ps(),i=(0,t.default)("typescript-eslint:typescript-estree:parseSettings:resolveProjectList"),a=null;return pu}var fh={},fy={};function fv(){return t2||(t2=1,Object.defineProperty(fy,"__esModule",{value:!0}),fy.version=void 0,fy.version="8.58.1"),fy}function fb(){let e;if(t6)return d5;t6=1;var t,n=d5&&d5.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=d5&&d5.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=d5&&d5.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var a=t(e),o=0;o<a.length;o++)"default"!==a[o]&&n(i,e,a[o]);return r(i,e),i}),a=d5&&d5.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d5,"__esModule",{value:!0}),d5.createParseSettings=function(t,n={}){var r,i,a;let S,E=(r=t,(0,d.isSourceFile)(r)?r.getFullText(r):"string"==typeof r?r:String(r)),k=(0,g.inferSingleRun)(n),P=(()=>{if(null==n.tsconfigRootDir){let e=(0,p.getInferredTSConfigRootDir)();if(l.default.resolve(e)!==e)throw Error(`inferred tsconfigRootDir should be a resolved absolute path, but received: ${JSON.stringify(e)}. This is a bug in typescript-eslint! Please report it to us at https://github.com/typescript-eslint/typescript-eslint/issues/new/choose.`);return e}if("string"==typeof n.tsconfigRootDir){let e=n.tsconfigRootDir;if(!l.default.isAbsolute(e)||"win32"===process.platform&&!/^[a-zA-Z]:/.test(e))throw Error(`parserOptions.tsconfigRootDir must be an absolute path, but received: ${JSON.stringify(e)}. This is a bug in your configuration; please supply an absolute path.`);return l.default.resolve(e)}throw Error(`If provided, parserOptions.tsconfigRootDir must be a string, but received a value of type "${typeof n.tsconfigRootDir}"`)})(),C="function"==typeof n.loggerFn,w=(0,u.ensureAbsolutePath)("string"==typeof n.filePath&&"<input>"!==n.filePath?n.filePath:n.jsx?"estree.tsx":"estree.ts",P),A=l.default.extname(w).toLowerCase(),D=(()=>{switch(n.jsDocParsingMode){case"all":default:return T.ParseAll;case"none":return T.ParseNone;case"type-info":return T.ParseForTypeInfo}})(),N={loc:!0===n.loc,range:!0===n.range,allowInvalidAST:!0===n.allowInvalidAST,code:t,codeFullText:E,comment:!0===n.comment,comments:[],debugLevel:!0===n.debugLevel?new Set(["typescript-eslint"]):Array.isArray(n.debugLevel)?new Set(n.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!0===n.errorOnUnknownASTType,extraFileExtensions:Array.isArray(n.extraFileExtensions)&&n.extraFileExtensions.every(e=>"string"==typeof e)?n.extraFileExtensions:[],filePath:w,jsDocParsingMode:D,jsx:!0===n.jsx,log:"function"==typeof n.loggerFn?n.loggerFn:!1===n.loggerFn?()=>{}:console.log,preserveNodeMaps:!1!==n.preserveNodeMaps,programs:Array.isArray(n.programs)?n.programs:null,projects:new Map,projectService:n.projectService||n.project&&!1!==n.projectService&&"true"===process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE?(i=n.projectService,a={jsDocParsingMode:D,tsconfigRootDir:P},S="object"==typeof i?i:{},(0,_.validateDefaultProjectForFilesGlob)(S.allowDefaultProject),x??=(0,o.createProjectService)({options:S,...a})):void 0,setExternalModuleIndicator:"module"===n.sourceType||null==n.sourceType&&A===c.Extension.Mjs||null==n.sourceType&&A===c.Extension.Mts?e=>{e.externalModuleIndicator=!0}:void 0,singleRun:k,suppressDeprecatedPropertyWarnings:n.suppressDeprecatedPropertyWarnings??"test"!==process.env.NODE_ENV,tokens:!0===n.tokens?[]:null,tsconfigMatchCache:e??=new f.ExpiringCache(k?"Infinity":n.cacheLifetime?.glob??f.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS),tsconfigRootDir:P};if(N.projectService&&n.project&&"true"!==process.env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR)throw Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(N.debugLevel.size>0){let e=[];N.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(N.debugLevel.has("eslint")||s.default.enabled("eslint:*,-eslint:code-path"))&&e.push("eslint:*,-eslint:code-path"),s.default.enable(e.join(","))}if(Array.isArray(n.programs)){if(!n.programs.length)throw Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");b("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return N.programs||N.projectService||(N.projects=(0,h.resolveProjectList)({cacheLifetime:n.cacheLifetime,project:(0,m.getProjectConfigFiles)(N,n.project),projectFolderIgnoreList:n.projectFolderIgnoreList,singleRun:N.singleRun,tsconfigRootDir:P})),null==n.jsDocParsingMode&&0===N.projects.size&&null==N.programs&&null==N.projectService&&(N.jsDocParsingMode=T.ParseNone),(0,y.warnAboutTSVersion)(N,C),N},d5.clearTSConfigMatchCache=function(){e?.clear()},d5.clearTSServerProjectService=function(){x=null};let o=function(){var e,t;return tj?d7:(tj=1,e=d7&&d7.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=d7&&d7.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(d7,"__esModule",{value:!0}),t(function(){if(tR)return d9;tR=1;var e=d9&&d9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d9,"__esModule",{value:!0}),d9.createProjectService=function({host:e,jsDocParsingMode:t,options:u={},tsconfigRootDir:_}={}){let d={defaultProject:"tsconfig.json",...u},p=function(){if(tM)return pt.exports;tM=1;if(pt.exports)pt.exports=uh();else throw Error("tsserverlibrary requires CommonJS; use typescript.js instead");return pt.exports}(),f={...p.sys,clearImmediate,clearTimeout,setImmediate,setTimeout,watchDirectory:c,watchFile:c,...!d.loadTypeScriptPlugins&&{require:()=>({error:{message:"TypeScript plugins are not required when using parserOptions.projectService."},module:void 0})},...e};r("Creating Project Service with: %o",d);let m=new p.server.ProjectService({cancellationToken:{isCancellationRequested:()=>!1},eventHandler:s.enabled?e=>{s(e)}:void 0,host:f,jsDocParsingMode:t,logger:{close:l,endGroup:l,getLogFileName:()=>void 0,hasLevel:()=>!0,info(e){this.msg(e,p.server.Msg.Info)},loggingEnabled:()=>a.enabled||i.enabled||o.enabled,msg:(e,t)=>{switch(t){case p.server.Msg.Err:i(e);break;case p.server.Msg.Perf:o(e);break;default:a(e)}},perftrc(e){this.msg(e,p.server.Msg.Perf)},startGroup:l},session:void 0,useInferredProjectPerProjectRoot:!1,useSingleInferredProject:!1});m.setHostConfiguration({preferences:{includePackageJsonAutoImports:"off"}}),r("Enabling default project: %s",d.defaultProject);let g=(0,n.getParsedConfigFileFromTSServer)(p,d.defaultProject,!!u.defaultProject,_);return g&&m.setCompilerOptionsForInferredProjects(g.options),{allowDefaultProject:d.allowDefaultProject,lastReloadTimestamp:performance.now(),maximumDefaultProjectFileMatchCount:d.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING??8,service:m}};let t=e(c6()),n=function(){if(tL)return pe;tL=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.getParsedConfigFileFromTSServer=function(t,n,r,i){try{return(0,e.getParsedConfigFile)(t,n,i)}catch(e){if(r)throw Error(`Could not read Project Service default project '${n}': ${e.message}`)}};let e=uP();return pe}(),r=(0,t.default)("typescript-eslint:project-service:createProjectService"),i=(0,t.default)("typescript-eslint:project-service:tsserver:err"),a=(0,t.default)("typescript-eslint:project-service:tsserver:info"),o=(0,t.default)("typescript-eslint:project-service:tsserver:perf"),s=(0,t.default)("typescript-eslint:project-service:tsserver:event"),l=()=>{},c=()=>({close:l});return d9}(),d7),d7)}(),s=a(c6()),l=a(uk),c=i(uh()),u=uC(),_=pr(),d=uv(),p=pa(),f=ps(),m=function(){if(tV)return pl;tV=1;var e,t=pl&&pl.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=pl&&pl.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=pl&&pl.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=pl&&pl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pl,"__esModule",{value:!0}),pl.getProjectConfigFiles=function(e,t){if(!0!==t)return null==t||!1===t?null:Array.isArray(t)?t:[t];l("Looking for tsconfig.json at or above file: %s",e.filePath);let n=s.dirname(e.filePath),r=[n];do{l("Checking tsconfig.json path: %s",n);let t=s.join(n,"tsconfig.json"),i=e.tsconfigMatchCache.get(n)??(o.existsSync(t)&&t);if(i){for(let t of r)e.tsconfigMatchCache.set(t,i);return[i]}n=s.dirname(n),r.push(n)}while(n.length>1&&n.length>=e.tsconfigRootDir.length);throw Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${e.filePath}' within '${e.tsconfigRootDir}'.`)};let a=i(c6()),o=r(c4),s=r(uk),l=(0,a.default)("typescript-eslint:typescript-estree:parseSettings:getProjectConfigFiles");return pl}(),g=function(){if(tJ)return pc;tJ=1;var e=pc&&pc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pc,"__esModule",{value:!0}),pc.inferSingleRun=function(e){return(!e?.extraFileExtensions?.length||!e.project)&&(e?.project!=null||!!e?.projectService)&&null==e.programs&&"false"!==process.env.TSESTREE_SINGLE_RUN&&("true"===process.env.TSESTREE_SINGLE_RUN||!!(!e.disallowAutomaticSingleRunInference&&("true"===process.env.CI||["node_modules/.bin/eslint","node_modules/eslint/bin/eslint.js"].some(e=>process.argv.length>1&&process.argv[1].endsWith(t.default.normalize(e)))))&&!process.argv.includes("--fix"))};let t=e(uk);return pc}(),h=fg(),y=function(){var e,t,n,r,i;let a,o,s,l,c,u;return t3?fh:(t3=1,e=fh&&fh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=fh&&fh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=fh&&fh.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=n(r),o=0;o<a.length;o++)"default"!==a[o]&&e(i,r,a[o]);return t(i,r),i}),i=fh&&fh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(fh,"__esModule",{value:!0}),fh.SUPPORTED_TYPESCRIPT_VERSIONS=void 0,fh.warnAboutTSVersion=function(e,t){if(!c&&!u){if(t||"u">typeof process&&process.stdout?.isTTY){let t="=============",n=[t,"\n\nWARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.\n\n",`* @typescript-eslint/typescript-estree version: ${s.version}`,`* Supported TypeScript versions: ${fh.SUPPORTED_TYPESCRIPT_VERSIONS}`,`* Your TypeScript version: ${l}`,"\n\nPlease only submit bug reports when using the officially supported version.\n\n",t].join("\n");e.log(n)}u=!0}},a=i(u3()),o=r(uh()),s=fv(),fh.SUPPORTED_TYPESCRIPT_VERSIONS=">=4.8.4 <6.1.0",l=o.version,c=a.default.satisfies(l,[fh.SUPPORTED_TYPESCRIPT_VERSIONS].join(" || ")),u=!1,fh)}(),b=(0,s.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),x=null,T={ParseAll:c.JSDocParsingMode?.ParseAll,ParseForTypeErrors:c.JSDocParsingMode?.ParseForTypeErrors,ParseForTypeInfo:c.JSDocParsingMode?.ParseForTypeInfo,ParseNone:c.JSDocParsingMode?.ParseNone};return d5}var fx={},fT={};let fS=(e,t,n)=>{let r=e instanceof RegExp?fE(e,n):e,i=t instanceof RegExp?fE(t,n):t,a=null!==r&&null!=i&&fk(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},fE=(e,t)=>{let n=t.match(e);return n?n[0]:null},fk=(e,t,n)=>{let r,i,a,o,s,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;u>=0&&!s;){if(u===l)r.push(u),l=n.indexOf(e,u+1);else if(1===r.length){let e=r.pop();void 0!==e&&(s=[e,c])}else void 0!==(i=r.pop())&&i<a&&(a=i,o=c),c=n.indexOf(t,u+1);u=l<c&&l>=0?l:c}r.length&&void 0!==o&&(s=[a,o])}return s},fP="\0SLASH"+Math.random()+"\0",fC="\0OPEN"+Math.random()+"\0",fw="\0CLOSE"+Math.random()+"\0",fA="\0COMMA"+Math.random()+"\0",fD="\0PERIOD"+Math.random()+"\0",fN=RegExp(fP,"g"),fF=RegExp(fC,"g"),fI=RegExp(fw,"g"),fO=RegExp(fA,"g"),fL=RegExp(fD,"g"),fM=/\\\\/g,fR=/\\{/g,fj=/\\}/g,fY=/\\,/g,fU=/\\./g;function fB(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function fV(e){return e.replace(fN,"\\").replace(fF,"{").replace(fI,"}").replace(fO,",").replace(fL,".")}function fJ(e){return"{"+e+"}"}function fz(e){return/^-?0\d/.test(e)}function fq(e,t){return e<=t}function f$(e,t){return e>=t}let fW=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")},fK={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},fG=e=>e.replace(/[[\]\\-]/g,"\\$&"),fH=(e,t)=>{if("["!==e.charAt(t))throw Error("not in a brace expression");let n=[],r=[],i=t+1,a=!1,o=!1,s=!1,l=!1,c=t,u="";l:for(;i<e.length;){let _=e.charAt(i);if(("!"===_||"^"===_)&&i===t+1){l=!0,i++;continue}if("]"===_&&a&&!s){c=i+1;break}if(a=!0,"\\"===_&&!s){s=!0,i++;continue}if("["===_&&!s){for(let[a,[s,l,c]]of Object.entries(fK))if(e.startsWith(a,i)){if(u)return["$.",!1,e.length-t,!0];i+=a.length,c?r.push(s):n.push(s),o=o||l;continue l}}if(s=!1,u){_>u?n.push(fG(u)+"-"+fG(_)):_===u&&n.push(fG(_)),u="",i++;continue}if(e.startsWith("-]",i+1)){n.push(fG(_+"-")),i+=2;continue}if(e.startsWith("-",i+1)){u=_,i+=2;continue}n.push(fG(_)),i++}if(c<i)return["",!1,0,!1];if(!n.length&&!r.length)return["$.",!1,e.length-t,!0];if(0===r.length&&1===n.length&&/^\\?.$/.test(n[0])&&!l)return[(2===n[0].length?n[0].slice(-1):n[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,c-t,!1];let _="["+(l?"^":"")+n.join("")+"]",d="["+(l?"":"^")+r.join("")+"]";return[n.length&&r.length?"("+_+"|"+d+")":n.length?_:d,o,c-t,!0]},fX=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),fQ=new Set(["!","?","+","*","@"]),fZ=e=>fQ.has(e),f0=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),f1=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),f2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),f3=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),f6="(?!\\.)",f4=new Set(["[","."]),f8=new Set(["..","."]),f5=new Set("().*{}+?[]^$\\!"),f7=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),f9="[^/]",me=f9+"*?",mt=f9+"+?",mn=0;class mr{type;#k;#P;#C=!1;#w=[];#A;#D;#N;#F=!1;#I;#O;#L=!1;id=++mn;get depth(){return(this.#A?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#k.id,parent:this.#A?.id,depth:this.depth,partsLength:this.#w.length,parts:this.#w}}constructor(e,t,n={}){this.type=e,e&&(this.#P=!0),this.#A=t,this.#k=this.#A?this.#A.#k:this,this.#I=this.#k===this?n:this.#k.#I,this.#N=this.#k===this?[]:this.#k.#N,"!"!==e||this.#k.#F||this.#N.push(this),this.#D=this.#A?this.#A.#w.length:0}get hasMagic(){if(void 0!==this.#P)return this.#P;for(let e of this.#w)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#P=!0;return this.#P}toString(){return void 0!==this.#O?this.#O:this.type?this.#O=this.type+"("+this.#w.map(e=>String(e)).join("|")+")":this.#O=this.#w.map(e=>String(e)).join("")}#M(){let e;if(this!==this.#k)throw Error("should only call on root");if(this.#F)return this;for(this.toString(),this.#F=!0;e=this.#N.pop();){if("!"!==e.type)continue;let t=e,n=t.#A;for(;n;){for(let r=t.#D+1;!n.type&&r<n.#w.length;r++)for(let t of e.#w){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(n.#w[r])}n=(t=n).#A}}return this}push(...e){for(let t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof t8&&t.#A===this))throw Error("invalid part: "+t);this.#w.push(t)}}toJSON(){let e=null===this.type?this.#w.slice().map(e=>"string"==typeof e?e:e.toJSON()):[this.type,...this.#w.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#k||this.#k.#F&&this.#A?.type==="!")&&e.push({}),e}isStart(){if(this.#k===this)return!0;if(!this.#A?.isStart())return!1;if(0===this.#D)return!0;let e=this.#A;for(let t=0;t<this.#D;t++){let n=e.#w[t];if(!(n instanceof t8&&"!"===n.type))return!1}return!0}isEnd(){if(this.#k===this||this.#A?.type==="!")return!0;if(!this.#A?.isEnd())return!1;if(!this.type)return this.#A?.isEnd();let e=this.#A?this.#A.#w.length:0;return this.#D===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){let t=new t8(this.type,e);for(let e of this.#w)t.copyIn(e);return t}static #R(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,l=-1,c=!1;if(null===t.type){let u=n,_="";for(;u<e.length;){let n=e.charAt(u++);if(o||"\\"===n){o=!o,_+=n;continue}if(s){u===l+1?("^"===n||"!"===n)&&(c=!0):"]"!==n||u===l+2&&c||(s=!1),_+=n;continue}if("["===n){s=!0,l=u,c=!1,_+=n;continue}if(!r.noext&&fZ(n)&&"("===e.charAt(u)&&i<=a){t.push(_),_="";let a=new t8(n,t);u=t8.#R(e,a,u,r,i+1),t.push(a);continue}_+=n}return t.push(_),u}let u=n+1,_=new t8(null,t),d=[],p="";for(;u<e.length;){let n=e.charAt(u++);if(o||"\\"===n){o=!o,p+=n;continue}if(s){u===l+1?("^"===n||"!"===n)&&(c=!0):"]"!==n||u===l+2&&c||(s=!1),p+=n;continue}if("["===n){s=!0,l=u,c=!1,p+=n;continue}if(!r.noext&&fZ(n)&&"("===e.charAt(u)&&(i<=a||t&&t.#j(n))){let a=t&&t.#j(n)?0:1;_.push(p),p="";let o=new t8(n,_);_.push(o),u=t8.#R(e,o,u,r,i+a);continue}if("|"===n){_.push(p),p="",d.push(_),_=new t8(null,t);continue}if(")"===n)return""===p&&0===t.#w.length&&(t.#L=!0),_.push(p),p="",t.push(...d,_),u;p+=n}return t.type=null,t.#P=void 0,t.#w=[e.substring(n-1)],u}#Y(e){return this.#U(e,f1)}#U(e,t=f0){if(!e||"object"!=typeof e||null!==e.type||1!==e.#w.length||null===this.type)return!1;let n=e.#w[0];return!!n&&"object"==typeof n&&null!==n.type&&this.#j(n.type,t)}#j(e,t=f2){return!!t.get(this.type)?.includes(e)}#B(e,t){let n=e.#w[0],r=new t8(null,n,this.options);r.#w.push(""),n.push(r),this.#V(e,t)}#V(e,t){let n=e.#w[0];for(let e of(this.#w.splice(t,1,...n.#w),n.#w))"object"==typeof e&&(e.#A=this);this.#O=void 0}#J(e){let t=f3.get(this.type);return!!t?.has(e)}#z(e){if(!e||"object"!=typeof e||null!==e.type||1!==e.#w.length||null===this.type||1!==this.#w.length)return!1;let t=e.#w[0];return!!t&&"object"==typeof t&&null!==t.type&&this.#J(t.type)}#q(e){let t=f3.get(this.type),n=e.#w[0],r=t?.get(n.type);if(!r)return!1;for(let e of(this.#w=n.#w,this.#w))"object"==typeof e&&(e.#A=this);this.type=r,this.#O=void 0,this.#L=!1}static fromGlob(e,t={}){let n=new t8(null,void 0,t);return t8.#R(e,n,0,t,0),n}toMMPattern(){if(this!==this.#k)return this.#k.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();return r||this.#P||this.#I.nocase&&!this.#I.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()?Object.assign(RegExp(`^${t}$`,(this.#I.nocase?"i":"")+(i?"u":"")),{_src:t,_glob:e}):n}get options(){return this.#I}toRegExpSource(e){let t=e??!!this.#I.dot;if(this.#k===this&&(this.#$(),this.#M()),!fZ(this.type)){let n=this.isStart()&&this.isEnd()&&!this.#w.some(e=>"string"!=typeof e),r=this.#w.map(t=>{let[r,i,a,o]="string"==typeof t?t8.#W(t,this.#P,n):t.toRegExpSource(e);return this.#P=this.#P||a,this.#C=this.#C||o,r}).join(""),i="";if(this.isStart()&&"string"==typeof this.#w[0]&&!(1===this.#w.length&&f8.has(this.#w[0]))){let n=t&&f4.has(r.charAt(0))||r.startsWith("\\.")&&f4.has(r.charAt(2))||r.startsWith("\\.\\.")&&f4.has(r.charAt(4)),a=!t&&!e&&f4.has(r.charAt(0));i=n?"(?!(?:^|/)\\.\\.?(?:$|/))":a?f6:""}let a="";return this.isEnd()&&this.#k.#F&&this.#A?.type==="!"&&(a="(?:$|\\/)"),[i+r+a,fX(r),this.#P=!!this.#P,this.#C]}let n="*"===this.type||"+"===this.type,r="!"===this.type?"(?:(?!(?:":"(?:",i=this.#K(t);if(this.isStart()&&this.isEnd()&&!i&&"!"!==this.type){let e=this.toString();return this.#w=[e],this.type=null,this.#P=void 0,[e,fX(this.toString()),!1,!1]}let a=!n||e||t||!f6?"":this.#K(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);return["!"===this.type&&this.#L?(this.isStart()&&!t?f6:"")+mt:r+i+("!"===this.type?"))"+(!this.isStart()||t||e?"":f6)+me+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&a?")":"*"===this.type&&a?")?":`)${this.type}`),fX(i),this.#P=!!this.#P,this.#C]}#$(){if(fZ(this.type)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#w.length;e++){let n=this.#w[e];"object"==typeof n&&(n.#$(),this.#U(n)?(t=!1,this.#V(n,e)):this.#Y(n)?(t=!1,this.#B(n,e)):this.#z(n)&&(t=!1,this.#q(n)))}}while(!t&&++e<10)}else for(let e of this.#w)"object"==typeof e&&e.#$();this.#O=void 0}#K(e){return this.#w.map(t=>{if("string"==typeof t)throw Error("string type in extglob ast??");let[n,r,i,a]=t.toRegExpSource(e);return this.#C=this.#C||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static #W(e,t,n=!1){let r=!1,i="",a=!1,o=!1;for(let s=0;s<e.length;s++){let l=e.charAt(s);if(r){r=!1,i+=(f5.has(l)?"\\":"")+l;continue}if("*"===l){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?mt:me,t=!0;continue}if(o=!1,"\\"===l){s===e.length-1?i+="\\\\":r=!0;continue}if("["===l){let[n,r,o,l]=fH(e,s);if(o){i+=n,a=a||r,s+=o-1,t=t||l;continue}}if("?"===l){i+=f9,t=!0;continue}i+=f7(l)}return[i,fX(e),!!t,a]}}t8=mr;let mi=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),ma=(e,t,n={})=>(fW(t),(!!n.nocomment||"#"!==t.charAt(0))&&new mw(t,n).match(e)),mo=/^\*+([^+@!?\*\[\(]*)$/,ms=/^\*+\.\*+$/,ml=e=>!e.startsWith(".")&&e.includes("."),mc=e=>"."!==e&&".."!==e&&e.includes("."),mu=/^\.\*+$/,m_=e=>"."!==e&&".."!==e&&e.startsWith("."),md=/^\*+$/,mp=e=>0!==e.length&&!e.startsWith("."),mf=e=>0!==e.length&&"."!==e&&".."!==e,mm=/^\?+([^+@!?\*\[\(]*)?$/,mg=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(".")},mh=([e])=>{let t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},my="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",mv="win32"===my?"\\":"/";ma.sep=mv;let mb=Symbol("globstar **");ma.GLOBSTAR=mb;let mx=(e,t={})=>n=>ma(n,e,t);ma.filter=mx;let mT=(e,t={})=>Object.assign({},e,t),mS=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return ma;let t=ma;return Object.assign((n,r,i={})=>t(n,r,mT(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,mT(e,n))}static defaults(n){return t.defaults(mT(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,mT(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,mT(e,r))}},unescape:(n,r={})=>t.unescape(n,mT(e,r)),escape:(n,r={})=>t.escape(n,mT(e,r)),filter:(n,r={})=>t.filter(n,mT(e,r)),defaults:n=>t.defaults(mT(e,n)),makeRe:(n,r={})=>t.makeRe(n,mT(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,mT(e,r)),match:(n,r,i={})=>t.match(n,r,mT(e,i)),sep:t.sep,GLOBSTAR:mb})};ma.defaults=mS;let mE=(e,t={})=>(fW(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:function(e,t={}){if(!e)return[];let{max:n=1e5}=t;return"{}"===e.slice(0,2)&&(e="\\{\\}"+e.slice(2)),(function e(t,n,r){let i=[],a=fS("{","}",t);if(!a)return[t];let o=a.pre,s=a.post.length?e(a.post,n,!1):[""];if(/\$$/.test(a.pre))for(let e=0;e<s.length&&e<n;e++){let t=o+"{"+a.body+"}"+s[e];i.push(t)}else{let l,c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),d=u||_,p=a.body.indexOf(",")>=0;if(!d&&!p)return a.post.match(/,(?!,).*\}/)?e(t=a.pre+"{"+a.body+fw+a.post,n,!0):[t];if(d)l=a.body.split(/\.\./);else if(1===(l=function e(t){if(!t)return[""];let n=[],r=fS("{","}",t);if(!r)return t.split(",");let{pre:i,body:a,post:o}=r,s=i.split(",");s[s.length-1]+="{"+a+"}";let l=e(o);return o.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),n.push.apply(n,s),n}(a.body)).length&&void 0!==l[0]&&1===(l=e(l[0],n,!1).map(fJ)).length)return s.map(e=>a.pre+l[0]+e);if(d&&void 0!==l[0]&&void 0!==l[1]){let e=fB(l[0]),t=fB(l[1]),n=Math.max(l[0].length,l[1].length),r=3===l.length&&void 0!==l[2]?Math.abs(fB(l[2])):1,i=fq;t<e&&(r*=-1,i=f$);let a=l.some(fz);c=[];for(let o=e;i(o,t);o+=r){let e;if(_)"\\"===(e=String.fromCharCode(o))&&(e="");else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join("0");e=o<0?"-"+n+e.slice(1):n+e}}c.push(e)}}else{c=[];for(let t=0;t<l.length;t++)c.push.apply(c,e(l[t],n,!1))}for(let e=0;e<c.length;e++)for(let t=0;t<s.length&&i.length<n;t++){let n=o+c[e]+s[t];(!r||d||n)&&i.push(n)}}return i})(e.replace(fM,fP).replace(fR,fC).replace(fj,fw).replace(fY,fA).replace(fU,fD),n,!0).map(fV)}(e,{max:t.braceExpandMax});ma.braceExpand=mE;let mk=(e,t={})=>new mw(e,t).makeRe();ma.makeRe=mk;let mP=(e,t,n={})=>{let r=new mw(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};ma.match=mP;let mC=/[?*]|[+@!]\(.*?\)|\[|\]/;class mw{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){fW(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||my,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if("string"!=typeof t)return!0;return!1}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=""===e[0]&&""===e[1]&&("?"===e[2]||!mC.test(e[2]))&&!mC.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)"**"===e[t][n]&&(e[t][n]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>0===(e=e.reduce((e,t)=>{let n=e[e.length-1];return"**"===t&&"**"===n||(".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?e.pop():e.push(t)),e},[])).length?[""]:e)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];(1!==n||""!==r||""!==e[0])&&("."===r||""===r)&&(t=!0,e.splice(n,1),n--)}"."===e[0]&&2===e.length&&("."===e[1]||""===e[1])&&(t=!0,e.pop())}let n=0;for(;-1!==(n=e.indexOf("..",n+1));){let r=e[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do for(let n of(t=!1,e)){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let i=r;for(;"**"===n[i+1];)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(".."!==a||!o||"."===o||".."===o||!s||"."===s||".."===s)continue;t=!0,n.splice(r,1);let l=n.slice(0);l[r]="**",e.push(l),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];(1!==e||""!==r||""!==n[0])&&("."===r||""===r)&&(t=!0,n.splice(e,1),e--)}"."===n[0]&&2===n.length&&("."===n[1]||""===n[1])&&(t=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){let e=n[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;let e=1===i&&"**"===n[i+1]?["."]:[];n.splice(i-1,2,...e),0===n.length&&n.push(""),i-=2}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o="";for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push("b"===o?t[i]:e[r]),r++,i++;else if(n&&"**"===e[r]&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&"**"===t[i]&&e[r]===t[i+1])a.push(t[i]),i++;else if("*"===e[r]&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&"**"!==t[i]){if("b"===o)return!1;o="a",a.push(e[r]),r++,i++}else{if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r]||"a"===o)return!1;o="b",a.push(t[i]),r++,i++}return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),a=!n&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),o="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!o&&""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]),l=a?3:n?0:void 0,c=s?3:o?0:void 0;if("number"==typeof l&&"number"==typeof c){let[n,a]=[e[l],t[c]];n.toLowerCase()===a.toLowerCase()&&(t[c]=n,i=c,r=l)}}let{optimizationLevel:a=1}=this.options;return(a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(mb))?this.#G(e,t,n,r,i):this.#H(e,t,n,r,i)}#G(e,t,n,r,i){let a=t.indexOf(mb,i),o=t.lastIndexOf(mb),[s,l,c]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#H(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(c.length){if(c.length+r>e.length)return!1;let t=e.length-c.length;if(this.#H(e,c,n,t,0))u=c.length;else{if(""!==e[e.length-1]||r+c.length===e.length||(t--,!this.#H(e,c,n,t,0)))return!1;u=c.length+1}}if(!l.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,"."===r||".."===r||!this.options.dot&&r.startsWith("."))return!1}return n||t}let _=[[[],0]],d=_[0],p=0,f=[0];for(let e of l)e===mb?(f.push(p),d=[[],0],_.push(d)):(d[0].push(e),p++);let m=_.length-1,g=e.length-u;for(let e of _)e[1]=g-(f[m--]+e[0].length);return!!this.#X(e,_,r,0,n,0,!!u)}#X(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if("."===n||".."===n||!this.options.dot&&n.startsWith("."))return!1}return o}let[l,c]=s;for(;n<=c;){if(this.#H(e.slice(0,n+l.length),l,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#X(e,t,n+l.length,r+1,i,a+1,o);if(!1!==s)return s}let s=e[n];if("."===s||".."===s||!this.options.dot&&s.startsWith("."))return!1;n++}return i||null}#H(e,t,n,r,i){let a,o,s,l;for(a=r,o=i,l=e.length,s=t.length;a<l&&o<s;a++,o++){let n;this.debug("matchOne loop");let r=t[o],i=e[a];if(this.debug(t,r,i),!1===r||r===mb||("string"==typeof r?(n=i===r,this.debug("string match",r,i,n)):(n=r.test(i),this.debug("pattern match",r,i,n)),!n))return!1}if(a===l&&o===s)return!0;if(a===l)return n;if(o===s)return a===l-1&&""===e[a];throw Error("wtf?")}braceExpand(){return mE(this.pattern,this.options)}parse(e){let t;fW(e);let n=this.options;if("**"===e)return mb;if(""===e)return"";let r=null;(t=e.match(md))?r=n.dot?mf:mp:(t=e.match(mo))?r=(n.nocase?n.dot?e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)):e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)):n.dot?e=>t=>t.endsWith(e):e=>t=>!t.startsWith(".")&&t.endsWith(e))(t[1]):(t=e.match(mm))?r=(n.nocase?n.dot?([e,t=""])=>{let n=mh([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:([e,t=""])=>{let n=mg([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n}:n.dot?([e,t=""])=>{let n=mh([e]);return t?e=>n(e)&&e.endsWith(t):n}:([e,t=""])=>{let n=mg([e]);return t?e=>n(e)&&e.endsWith(t):n})(t):(t=e.match(ms))?r=n.dot?mc:ml:(t=e.match(mu))&&(r=m_);let i=mr.fromGlob(e,this.options).toMMPattern();return r&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:r}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(t.nocase?["i"]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(""))r.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===mb?mb:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e===mb&&a!==mb&&(void 0===a?void 0!==i&&i!==mb?t[r+1]="(?:\\/|"+n+"\\/)?"+i:t[r]=n:void 0===i?t[r-1]=a+"(?:\\/|\\/"+n+")?":i!==mb&&(t[r-1]=a+"(?:\\/|\\/"+n+"\\/)"+i,t[r+1]=mb))});let i=t.filter(e=>e!==mb);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join("/"));return"(?:"+e.join("|")+")"}return i.join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];i="^"+a+i+o+"$",this.partial&&(i="^(?:\\/|"+a+i.slice(1,-1)+o+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...r].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let i=this.set;this.debug(this.pattern,"set",i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&1===o.length&&(s=[a]),this.matchOne(s,o,t)){if(n.flipNegate)return!0;return!this.negate}}return!n.flipNegate&&this.negate}static defaults(e){return ma.defaults(e).Minimatch}}ma.AST=mr,ma.Minimatch=mw,ma.escape=mi,ma.unescape=fX;var mA=a7(Object.freeze({__proto__:null,AST:mr,GLOBSTAR:mb,Minimatch:mw,braceExpand:mE,defaults:mS,escape:mi,filter:mx,makeRe:mk,match:mP,minimatch:ma,sep:mv,unescape:fX})),mD=a7(aQ);function mN(){if(t7)return uA;t7=1;var e=uA&&uA.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uA,"__esModule",{value:!0}),uA.clearProgramCache=function(){f.clear()},uA.clearDefaultProjectMatchedFiles=function(){m.clear()},uA.parse=function(e,t){let{ast:r}=function(e,t,r){let i=(0,u.createParseSettings)(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let a=(0,o.createSourceFile)(i),{astMaps:s,estree:l}=(0,n.astConverter)(a,i,r);return{ast:l,esTreeNodeToTSNodeMap:s.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:s.tsNodeToESTreeNodeMap}}(e,t,!1);return r},uA.clearParseAndGenerateServicesCalls=function(){g={}},uA.parseAndGenerateServices=function(e,t){let h=(0,u.createParseSettings)(e,t);h.singleRun&&!h.programs&&h.projects.size>0&&(h.programs={*[Symbol.iterator](){for(let e of h.projects){let t=f.get(e[0]);if(t)yield t;else{p("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);let t=(0,l.createProgramFromConfigFile)(e[1]);f.set(e[0],t),yield t}}}});let y=null!=h.programs||h.projects.size>0||!!h.projectService;if("boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(h.errorOnTypeScriptSyntacticAndSemanticIssues=!0),h.errorOnTypeScriptSyntacticAndSemanticIssues&&!y)throw Error("Cannot calculate TypeScript semantic issues without a valid project.");h.singleRun&&t.filePath&&(g[t.filePath]=(g[t.filePath]||0)+1);let{ast:b,program:x}=h.singleRun&&t.filePath&&g[t.filePath]>1&&!h.projectService?(0,i.createIsolatedProgram)(h):function(e,t){if(e.projectService){let n=(0,d.useProgramFromProjectService)(e.projectService,e,t,m);if(n)return n}return e.programs?(0,l.useProvidedPrograms)(e.programs,e):t?(0,a.createProjectProgram)(e,(0,s.getWatchProgramsForProjects)(e)):(0,o.createNoProgram)(e)}(h,y),T="boolean"!=typeof h.preserveNodeMaps||h.preserveNodeMaps,{astMaps:S,estree:E}=(0,n.astConverter)(b,h,T);if(x&&h.errorOnTypeScriptSyntacticAndSemanticIssues){let e=(0,_.getFirstSemanticOrSyntacticError)(x,b);if(e)throw(0,r.convertError)(e)}return{ast:E,services:(0,c.createParserServices)(S,x)}};let t=e(c6()),n=function(){if(tP)return uD;tP=1,Object.defineProperty(uD,"__esModule",{value:!0}),uD.astConverter=function(i,a,o){let{parseDiagnostics:s}=i;if(s.length)throw(0,e.convertError)(s[0]);let l=new e.Converter(i,{allowInvalidAST:a.allowInvalidAST,errorOnUnknownASTType:a.errorOnUnknownASTType,shouldPreserveNodeMaps:o,suppressDeprecatedPropertyWarnings:a.suppressDeprecatedPropertyWarnings}),c=l.convertProgram();return a.range&&a.loc||(0,r.simpleTraverse)(c,{enter:e=>{a.range||delete e.range,a.loc||delete e.loc}}),a.tokens&&(c.tokens=(0,n.convertTokens)(i)),a.comment&&(c.comments=(0,t.convertComments)(i)),{astMaps:l.getASTMaps(),estree:c}};let e=_i(),t=function(){if(tx)return _a;tx=1;var e,t=_a&&_a.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=_a&&_a.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=_a&&_a.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(_a,"__esModule",{value:!0}),_a.convertComments=function(e){return Array.from(i.iterateComments(e),({end:t,kind:n,pos:r,value:i})=>{let l=n===a.SyntaxKind.SingleLineCommentTrivia?s.AST_TOKEN_TYPES.Line:s.AST_TOKEN_TYPES.Block,c=[r,t];return{type:l,loc:(0,o.getLocFor)(c,e),range:c,value:i}})};let i=r(dj),a=r(uh()),o=_r(),s=_n();return _a}(),n=_r(),r=dK();return uD}(),r=_i(),i=function(){if(tw)return dG;tw=1;var e,t=dG&&dG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=dG&&dG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=dG&&dG.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=dG&&dG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dG,"__esModule",{value:!0}),dG.createIsolatedProgram=function(e){c("Getting isolated program in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath);let t=o.createProgram([e.filePath],{jsDocParsingMode:e.jsDocParsingMode,jsx:e.jsx?o.JsxEmit.Preserve:void 0,noResolve:!0,target:o.ScriptTarget.Latest,...(0,l.createDefaultCompilerOptionsFromExtra)(e)},{fileExists:()=>!0,getCanonicalFileName:()=>e.filePath,getCurrentDirectory:()=>"",getDefaultLibFileName:()=>"lib.d.ts",getDirectories:()=>[],getNewLine:()=>"\n",getSourceFile:t=>o.createSourceFile(t,e.codeFullText,o.ScriptTarget.Latest,!0,(0,s.getScriptKind)(e.filePath,e.jsx)),readFile(){},useCaseSensitiveFileNames:()=>!0,writeFile:()=>null}),n=t.getSourceFile(e.filePath);if(!n)throw Error("Expected an ast to be returned for the single-file isolated program.");return{ast:n,program:t}};let a=i(c6()),o=r(uh()),s=dX(),l=uC(),c=(0,a.default)("typescript-eslint:typescript-estree:create-program:createIsolatedProgram");return dG}(),a=d1(),o=d3(),s=uw(),l=d4(),c=(tO||(tO=1,Object.defineProperty(d8,"__esModule",{value:!0}),d8.createParserServices=function(e,t){if(!t)return{emitDecoratorMetadata:void 0,experimentalDecorators:void 0,isolatedDeclarations:void 0,program:t,...e};let n=t.getTypeChecker(),r=t.getCompilerOptions();return{program:t,emitDecoratorMetadata:r.emitDecoratorMetadata??!1,experimentalDecorators:r.experimentalDecorators??!1,isolatedDeclarations:r.isolatedDeclarations??!1,...e,getContextualType:t=>n.getContextualType(e.esTreeNodeToTSNodeMap.get(t)),getResolvedSignature:t=>n.getResolvedSignature(e.esTreeNodeToTSNodeMap.get(t)),getSymbolAtLocation:t=>n.getSymbolAtLocation(e.esTreeNodeToTSNodeMap.get(t)),getTypeAtLocation:t=>n.getTypeAtLocation(e.esTreeNodeToTSNodeMap.get(t)),getTypeFromTypeNode:t=>n.getTypeFromTypeNode(e.esTreeNodeToTSNodeMap.get(t)),getTypeOfSymbolAtLocation:(t,r)=>n.getTypeOfSymbolAtLocation(t,e.esTreeNodeToTSNodeMap.get(r))}}),d8),u=fb(),_=function(){if(t4)return fx;t4=1,Object.defineProperty(fx,"__esModule",{value:!0}),fx.getFirstSemanticOrSyntacticError=function(e,r){try{let i=t(e.getSyntacticDiagnostics(r));if(i.length>0)return n(i[0]);let a=t(e.getSemanticDiagnostics(r));if(a.length>0)return n(a[0]);return}catch(e){console.warn(`Warning From TSC: "${e.message}`);return}};let e=uh();function t(e){return e.filter(e=>{switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function n(t){return{...t,message:(0,e.flattenDiagnosticMessageText)(t.messageText,e.sys.newLine)}}return fx}(),d=function(){if(t5)return fT;t5=1;var e,t=fT&&fT.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fT&&fT.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=fT&&fT.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=fT&&fT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fT,"__esModule",{value:!0}),fT.useProgramFromProjectService=function(e,t,n,r){var i,a,m,g,h,y,b;let x,T,S;i=e.service,a=t.extraFileExtensions,x=f.get(i)??[],s.default.isDeepStrictEqual(x,a)||(p("Updating extra file extensions: before=%s: after=%s",x,a),i.setHostConfiguration({extraFileExtensions:a.map(e=>({extension:e,isMixedContent:!1,scriptKind:l.ScriptKind.Deferred}))}),f.set(i,a),p("Extra file extensions updated: %o",a));let E=(g=t.filePath,h=e,o.default.isAbsolute(g)?g:o.default.join(h.service.host.getCurrentDirectory(),g));p("Opening project service file for: %s at absolute path %s",t.filePath,E);let k=(y=o.default.relative(t.tsconfigRootDir,E),b=e.allowDefaultProject,!!b?.some(e=>(0,mA.minimatch)(y,e,{dot:!0})));if(!n&&!k)return m=e.service,p("No project service information available. Creating no program."),m.getScriptInfo(E)&&(p("Script info available. Opening client file in project service."),m.openClientFile(E,t.codeFullText,void 0,t.tsconfigRootDir)),(0,u.createNoProgram)(t);let P=n&&function(e,t,n,r,i){let a,s=(p("Opening project service client file at path: %s",n),!(a=l()).configFileErrors&&!a.configFileName&&!r.singleRun&&!t&&performance.now()-i.lastReloadTimestamp>250&&(p("No config file found; reloading project service and retrying."),i.service.reloadProjects(),a=l(),i.lastReloadTimestamp=performance.now()),a);if(p("Result from attempting to open client file: %o",s),p("Default project allowed path: %s, based on config file: %s",t,s.configFileName),s.configFileName){if(t)throw Error(`${r.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`)}else{let e=`${r.filePath} was not found by the project service`,i=o.default.extname(r.filePath),a=r.extraFileExtensions;if(!_.DEFAULT_EXTRA_FILE_EXTENSIONS.has(i)&&!a.includes(i)){let t=`${e} because the extension for the file (\`${i}\`) is non-standard`;if(a.length>0)throw Error(`${t}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`);throw Error(`${t}. You should add \`parserOptions.extraFileExtensions\` to your config.`)}if(!t){let t=`${e}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`,i=r.projectService?.allowDefaultProject;if(!i)throw Error(t);let a=o.default.relative(r.tsconfigRootDir,n);throw Error([t,`allowDefaultProject is set to ${JSON.stringify(i)}, which does not match '${a}'.`].join("\n"))}}if(!s.configFileName&&(e.add(n),e.size>i.maximumDefaultProjectFileMatchCount)){let t=[...e].slice(0,20),n=e.size-t.length;throw Error(`Too many files (>${i.maximumDefaultProjectFileMatchCount}) have matched the default project.${d.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}
|
|
411
411
|
Matching files:
|
|
412
412
|
${t.map(e=>`- ${e}`).join("\n")}
|
|
413
413
|
${n?`...and ${n} more files
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/react",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.2",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"author": "Sukka <https://skk.moe>",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@eslint/compat": "^2.0.
|
|
29
|
+
"@eslint/compat": "^2.0.5",
|
|
30
30
|
"@next/eslint-plugin-next": "^16.2.2",
|
|
31
31
|
"@stylexjs/eslint-plugin": "^0.18.2",
|
|
32
|
-
"@typescript-eslint/types": "^8.58.
|
|
33
|
-
"@typescript-eslint/utils": "^8.58.
|
|
32
|
+
"@typescript-eslint/types": "^8.58.1",
|
|
33
|
+
"@typescript-eslint/utils": "^8.58.1",
|
|
34
34
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
35
35
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
36
36
|
"foxts": "^5.4.0",
|
|
37
|
-
"@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.9.
|
|
38
|
-
"@eslint-sukka/eslint-plugin-stylistic": "8.9.
|
|
39
|
-
"@eslint-sukka/shared": "8.9.
|
|
37
|
+
"@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.9.2",
|
|
38
|
+
"@eslint-sukka/eslint-plugin-stylistic": "8.9.2",
|
|
39
|
+
"@eslint-sukka/shared": "8.9.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
43
43
|
"@eslint-react/kit": "^4.2.3",
|
|
44
44
|
"eslint-plugin-react-prefer-function-component": "^5.0.0",
|
|
45
45
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
46
|
-
"@eslint-sukka/rollup-config": "8.9.
|
|
46
|
+
"@eslint-sukka/rollup-config": "8.9.2"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|