@rsbuild/core 2.2.3 → 2.2.4
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/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss/index.js +1 -1
- package/compiled/postcss/lib/container.d.ts +16 -20
- package/compiled/postcss/lib/declaration.d.ts +2 -2
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-chain/types/index.d.ts +120 -36
- package/dist/626.js +98 -92
- package/dist/client/hmr.js +2 -2
- package/dist/cors.js +5 -5
- package/dist/http-proxy-middleware.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/launch-editor-middleware.js +1 -1
- package/dist/manifest-plugin.js +1 -1
- package/dist/memfs.js +1 -1
- package/dist/range-parser.js +3 -3
- package/dist/rslib-runtime.js +19 -17
- package/dist/server/helper.d.ts +1 -1
- package/dist/server/open.d.ts +2 -2
- package/dist/tinyglobby.js +1 -1
- package/dist/types/config.d.ts +2 -2
- package/dist/types/hooks.d.ts +3 -2
- package/dist/ws.js +2 -2
- package/package.json +5 -5
package/dist/range-parser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! LICENSE: range-parser.js.LICENSE.txt */
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { rspackRequire, moduleFactories } from "./rslib-runtime.js";
|
|
3
|
+
moduleFactories.add({
|
|
4
4
|
"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/range-parser/1.3.0/d49e5dcb9d0e39475844e240fad8cd1db6a58f4144f7ede43d9755e2fce5babc/node_modules/range-parser/index.js" (module) {
|
|
5
5
|
function parsePos(str) {
|
|
6
6
|
return /^\d+$/.test(str) ? Number(str) : 0 / 0;
|
|
@@ -52,4 +52,4 @@ __webpack_require__.add({
|
|
|
52
52
|
return ranges.length < 1 ? -1 : options && options.combine ? combineRanges(ranges) : ranges;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), rspackRequire("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/range-parser/1.3.0/d49e5dcb9d0e39475844e240fad8cd1db6a58f4144f7ede43d9755e2fce5babc/node_modules/range-parser/index.js");
|
package/dist/rslib-runtime.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var leafPrototypes,
|
|
2
|
-
function
|
|
3
|
-
var cachedModule =
|
|
1
|
+
var leafPrototypes, modules = {}, moduleCache = {};
|
|
2
|
+
function rspackRequire(moduleId) {
|
|
3
|
+
var cachedModule = moduleCache[moduleId];
|
|
4
4
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
5
|
-
var module =
|
|
5
|
+
var module = moduleCache[moduleId] = {
|
|
6
6
|
exports: {}
|
|
7
7
|
};
|
|
8
|
-
return
|
|
8
|
+
return modules[moduleId](module, module.exports, rspackRequire), module.exports;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
var moduleFactories = modules, compatGetDefaultExport = (module)=>{
|
|
11
11
|
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
12
|
-
return
|
|
12
|
+
return definePropertyGetters(getter, {
|
|
13
13
|
a: getter
|
|
14
14
|
}), getter;
|
|
15
|
-
}, getProto = Object.getPrototypeOf ? (obj)=>Object.getPrototypeOf(obj) : (obj)=>obj.__proto__,
|
|
16
|
-
if (1 & mode && (value = this(value)), 8 & mode || 'object' == typeof value && value && (4 & mode && value.__esModule || 16 & mode && 'function' == typeof value.then)) return value;
|
|
15
|
+
}, getProto = Object.getPrototypeOf ? (obj)=>Object.getPrototypeOf(obj) : (obj)=>obj.__proto__, createFakeNamespaceObject = function(value, mode) {
|
|
16
|
+
if (1 & mode && (value = ("function" == typeof this ? this : this.r)(value)), 8 & mode || 'object' == typeof value && value && (4 & mode && value.__esModule || 16 & mode && 'function' == typeof value.then)) return value;
|
|
17
17
|
var ns = Object.create(null);
|
|
18
|
-
|
|
18
|
+
makeNamespaceObject(ns);
|
|
19
19
|
var def = {};
|
|
20
20
|
leafPrototypes = leafPrototypes || [
|
|
21
21
|
null,
|
|
@@ -26,22 +26,24 @@ __webpack_require__.m = __webpack_modules__, __webpack_require__.n = (module)=>{
|
|
|
26
26
|
for(var current = 2 & mode && value; ('object' == typeof current || 'function' == typeof current) && !~leafPrototypes.indexOf(current); current = getProto(current))Object.getOwnPropertyNames(current).forEach((key)=>{
|
|
27
27
|
def[key] = ()=>value[key];
|
|
28
28
|
});
|
|
29
|
-
return def.default = ()=>value,
|
|
30
|
-
},
|
|
29
|
+
return def.default = ()=>value, definePropertyGetters(ns, def), ns;
|
|
30
|
+
}, definePropertyGetters = (exports, getters, values)=>{
|
|
31
31
|
var define = (defs, kind)=>{
|
|
32
|
-
for(var key in defs)
|
|
32
|
+
for(var key in defs)hasOwnProperty(defs, key) && !hasOwnProperty(exports, key) && Object.defineProperty(exports, key, {
|
|
33
33
|
enumerable: !0,
|
|
34
34
|
[kind]: defs[key]
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
define(getters, "get"), define(values, "value");
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
};
|
|
39
|
+
moduleFactories.add = function registerModules(modules) {
|
|
40
|
+
Object.assign(moduleFactories, modules);
|
|
41
|
+
};
|
|
42
|
+
var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), makeNamespaceObject = (exports)=>{
|
|
41
43
|
"u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
|
|
42
44
|
value: 'Module'
|
|
43
45
|
}), Object.defineProperty(exports, '__esModule', {
|
|
44
46
|
value: !0
|
|
45
47
|
});
|
|
46
48
|
};
|
|
47
|
-
export {
|
|
49
|
+
export { rspackRequire, moduleFactories, compatGetDefaultExport, createFakeNamespaceObject, definePropertyGetters };
|
package/dist/server/helper.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { RsbuildDevServer } from './devServer.js';
|
|
|
7
7
|
import type { RsbuildPreviewServer } from './previewServer.js';
|
|
8
8
|
/**
|
|
9
9
|
* It used to subscribe http upgrade event
|
|
10
|
-
*/ export type UpgradeEvent = (req: IncomingMessage, socket: Socket, head:
|
|
10
|
+
*/ export type UpgradeEvent = (req: IncomingMessage, socket: Socket, head: Buffer) => void;
|
|
11
11
|
export type ServerStartResult<T> = {
|
|
12
12
|
/**
|
|
13
13
|
* The URLs that server is listening on.
|
package/dist/server/open.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Logger } from '../logger.js';
|
|
2
|
-
import type { NormalizedConfig,
|
|
2
|
+
import type { NormalizedConfig, ReadonlyRoutes } from '../types/index.js';
|
|
3
3
|
export declare const replacePortPlaceholder: (url: string, port: number) => string;
|
|
4
4
|
export declare function resolveUrl(str: string, base: string): string;
|
|
5
5
|
export declare function open({ port, routes, config, protocol, clearCache, logger }: {
|
|
6
6
|
port: number;
|
|
7
|
-
routes:
|
|
7
|
+
routes: ReadonlyRoutes;
|
|
8
8
|
config: NormalizedConfig;
|
|
9
9
|
protocol: string;
|
|
10
10
|
clearCache?: boolean;
|
package/dist/tinyglobby.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"fs";import{readdir as e,readdirSync as s,realpath as o,realpathSync as n,stat as i,statSync as r}from"fs";import{basename as u,dirname as a,isAbsolute as l,normalize as p,posix as c,relative as h,resolve as f,sep as d}from"path";import{fileURLToPath as g}from"url";import{createRequire as m}from"module";import{__webpack_require__ as b}from"./rslib-runtime.js";b.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/index.js"(t,e,s){let o=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/picomatch.js"),n=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/utils.js");function i(t,e,s=!1){return e&&(null===e.windows||void 0===e.windows)&&(e={...e,windows:n.isWindows()}),o(t,e,s)}Object.assign(i,o),t.exports=i},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/constants.js"(t){let e="[^\\\\/]",s="[^/]",o="(?:\\/|$)",n="(?:^|\\/)",i=`\\.{1,2}${o}`,r=`(?!${n}${i})`,u=`(?!\\.{0,1}${o})`,a=`(?!${i})`,l=`${s}*?`,p={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:s,END_ANCHOR:o,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:r,NO_DOT_SLASH:u,NO_DOTS_SLASH:a,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:n,SEP:"/"},c={...p,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:"\\"};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,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:t=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:t=>!0===t?c:p}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/parse.js"(t,e,s){let o=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/constants.js"),n=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/utils.js"),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:l}=o,p=(t,e)=>{if("function"==typeof e.expandRange)return e.expandRange(...t,e);t.sort();let s=`[${t.join("-")}]`;try{new RegExp(s)}catch(e){return t.map(t=>n.escapeRegex(t)).join("..")}return s},c=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,h=t=>{let e=[],s=0,o=0,n=0,i="",r=!1;for(let u of t){if(!0===r){i+=u,r=!1;continue}if("\\"===u){i+=u,r=!0;continue}if('"'===u){n=+(1!==n),i+=u;continue}if(0===n){if("["===u)s++;else if("]"===u&&s>0)s--;else if(0===s){if("("===u)o++;else if(")"===u&&o>0)o--;else if("|"===u&&0===o){e.push(i),i="";continue}}}i+=u}return e.push(i),e},f=t=>{let e=t.trim(),s=!0;for(;!0===s;)s=!1,/^@\([^\\()[\]{}|]+\)$/.test(e)&&(e=e.slice(2,-1),s=!0);if((t=>{let e=!1;for(let s of t){if(!0===e){e=!1;continue}if("\\"===s){e=!0;continue}if(/[?*+@!()[\]{}]/.test(s))return!1}return!0})(e))return e.replace(/\\(.)/g,"$1")},d=(t,e=!0)=>{if("+"!==t[0]&&"*"!==t[0]||"("!==t[1])return;let s=0,o=0,n=0,i=!1;for(let r=1;r<t.length;r++){let u=t[r];if(!0===i){i=!1;continue}if("\\"===u){i=!0;continue}if('"'===u){n=+(1!==n);continue}if(1!==n){if("["===u){s++;continue}if("]"===u&&s>0){s--;continue}if(!(s>0)){if("("===u){o++;continue}if(")"===u&&0==--o){if(!0===e&&r!==t.length-1)return;return{type:t[0],body:t.slice(2,r),end:r}}}}}},g=t=>{let e=0,s=[];for(;e<t.length;){let o=d(t.slice(e),!1);if(!o||"*"!==o.type)return;let n=h(o.body).map(t=>t.trim());if(1!==n.length)return;let i=f(n[0]);if(!i||1!==i.length)return;s.push(i),e+=o.end+1}if(s.length<1)return;let o=1===s.length?n.escapeRegex(s[0]):`[${s.map(t=>n.escapeRegex(t)).join("")}]`;return`${o}*`},m=t=>{let e=0,s=t.trim(),o=d(s);for(;o;)e++,o=d(s=o.body.trim());return e},b=(t,e)=>{let s;if("string"!=typeof t)throw TypeError("Expected a string");t=l[t]||t;let d={...e},y="number"==typeof d.maxLength?Math.min(i,d.maxLength):i,_=t.length;if(_>y)throw SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${y}`);let x={type:"bos",value:"",output:d.prepend||""},A=[x],R=d.capture?"":"?:",v=o.globChars(d.windows),$=o.extglobChars(v),{DOT_LITERAL:E,PLUS_LITERAL:k,SLASH_LITERAL:S,ONE_CHAR:C,DOTS_SLASH:w,NO_DOT:H,NO_DOT_SLASH:L,NO_DOTS_SLASH:O,QMARK:T,QMARK_NO_DOT:P,STAR:D,START_ANCHOR:I}=v,B=t=>`(${R}(?:(?!${I}${t.dot?w:E}).)*?)`,F=d.dot?"":H,N=d.dot?T:P,M=!0===d.bash?B(d):D;d.capture&&(M=`(${M})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);let j={input:t,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:A};_=(t=n.removePrefix(t,j)).length;let G=[],U=[],q=[],W=x,K=()=>j.index===_-1,Q=j.peek=(e=1)=>t[j.index+e],X=j.advance=()=>t[++j.index]||"",z=()=>t.slice(j.index+1),Z=(t="",e=0)=>{j.consumed+=t,j.index+=e},Y=t=>{j.output+=null!=t.output?t.output:t.value,Z(t.value)},V=()=>{let t=1;for(;"!"===Q()&&("("!==Q(2)||"?"===Q(3));)X(),j.start++,t++;return t%2!=0&&(j.negated=!0,j.start++,!0)},J=t=>{j[t]++,q.push(t)},tt=t=>{j[t]--,q.pop()},te=t=>{if("globstar"===W.type){let e=j.braces>0&&("comma"===t.type||"brace"===t.type),s=!0===t.extglob||G.length&&("pipe"===t.type||"paren"===t.type);"slash"===t.type||"paren"===t.type||e||s||(j.output=j.output.slice(0,-W.output.length),W.type="star",W.value="*",W.output=M,j.output+=W.output)}if(G.length&&"paren"!==t.type&&(G[G.length-1].inner+=t.value),(t.value||t.output)&&Y(t),W&&"text"===W.type&&"text"===t.type){W.output=(W.output||W.value)+t.value,W.value+=t.value;return}t.prev=W,A.push(t),W=t},ts=(t,e)=>{let s={...$[e],conditions:1,inner:""};s.prev=W,s.parens=j.parens,s.output=j.output,s.startIndex=j.index,s.tokensIndex=A.length;let o=(d.capture?"(":"")+s.open;J("parens"),te({type:t,value:e,output:j.output?"":C}),te({type:"paren",extglob:!0,value:X(),output:o}),G.push(s)},to=i=>{let r,u=t.slice(i.startIndex,j.index+1),a=((t,e)=>{if(!1===e.maxExtglobRecursion)return{risky:!1};let s="number"==typeof e.maxExtglobRecursion?e.maxExtglobRecursion:o.DEFAULT_MAX_EXTGLOB_RECURSION,n=h(t).map(t=>t.trim());if(n.length>1&&(n.some(t=>""===t)||n.some(t=>/^[*?]+$/.test(t))||(t=>{let e=t.map(f).filter(Boolean);for(let t=0;t<e.length;t++)for(let s=t+1;s<e.length;s++){let o=e[t],n=e[s],i=o[0];if(i&&o===i.repeat(o.length)&&n===i.repeat(n.length)&&(o===n||o.startsWith(n)||n.startsWith(o)))return!0}return!1})(n)))return{risky:!0};for(let t of n){let e=g(t);if(e)return{risky:!0,safeOutput:e};if(m(t)>s)return{risky:!0}}return{risky:!1}})(t.slice(i.startIndex+2,j.index),d);if(("plus"===i.type||"star"===i.type)&&a.risky){let t=a.safeOutput?(i.output?"":C)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,e=A[i.tokensIndex];e.type="text",e.value=u,e.output=t||n.escapeRegex(u);for(let t=i.tokensIndex+1;t<A.length;t++)A[t].value="",A[t].output="",delete A[t].suffix;j.output=i.output+e.output,j.backtrack=!0,te({type:"paren",extglob:!0,value:s,output:""}),tt("parens");return}let l=i.close+(d.capture?")":"");if("negate"===i.type){let t=M;if(i.inner&&i.inner.length>1&&i.inner.includes("/")&&(t=B(d)),(t!==M||K()||/^\)+$/.test(z()))&&(l=i.close=`)$))${t}`),i.inner.includes("*")&&(r=z())&&/^\.[^\\/.]+$/.test(r)){let s=b(r,{...e,fastpaths:!1}).output;l=i.close=`)${s})${t})`}"bos"===i.prev.type&&(j.negatedExtglob=!0)}te({type:"paren",extglob:!0,value:s,output:l}),tt("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(t)){let s=!1,o=t.replace(a,(t,e,o,n,i,r)=>"\\"===n?(s=!0,t):"?"===n?e?e+n+(i?T.repeat(i.length):""):0===r?N+(i?T.repeat(i.length):""):T.repeat(o.length):"."===n?E.repeat(o.length):"*"===n?e?e+n+(i?M:""):M:e?t:`\\${t}`);return(!0===s&&(o=!0===d.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,t=>t.length%2==0?"\\\\":t?"\\":"")),o===t&&!0===d.contains)?j.output=t:j.output=n.wrapOutput(o,j,e),j}for(;!K();){if("\0"===(s=X()))continue;if("\\"===s){let t=Q();if("/"===t&&!0!==d.bash||"."===t||";"===t)continue;if(!t){te({type:"text",value:s+="\\"});continue}let e=/^\\+/.exec(z()),o=0;if(e&&e[0].length>2&&(o=e[0].length,j.index+=o,o%2!=0&&(s+="\\")),!0===d.unescape?s=X():s+=X(),0===j.brackets){te({type:"text",value:s});continue}}if(j.brackets>0&&("]"!==s||"["===W.value||"[^"===W.value)){if(!1!==d.posix&&":"===s){let t=W.value.slice(1);if(t.includes("[")&&(W.posix=!0,t.includes(":"))){let t=W.value.lastIndexOf("["),e=W.value.slice(0,t),s=r[W.value.slice(t+2)];if(s){W.value=e+s,j.backtrack=!0,X(),x.output||1!==A.indexOf(W)||(x.output=C);continue}}}("["===s&&":"!==Q()||"-"===s&&"]"===Q())&&(s=`\\${s}`),"]"===s&&("["===W.value||"[^"===W.value)&&(s=`\\${s}`),!0===d.posix&&"!"===s&&"["===W.value&&(s="^"),W.value+=s,Y({value:s});continue}if(1===j.quotes&&'"'!==s){s=n.escapeRegex(s),W.value+=s,Y({value:s});continue}if('"'===s){j.quotes=+(1!==j.quotes),!0===d.keepQuotes&&te({type:"text",value:s});continue}if("("===s){J("parens"),te({type:"paren",value:s});continue}if(")"===s){if(0===j.parens&&!0===d.strictBrackets)throw SyntaxError(c("opening","("));let t=G[G.length-1];if(t&&j.parens===t.parens+1){to(G.pop());continue}te({type:"paren",value:s,output:j.parens?")":"\\)"}),tt("parens");continue}if("["===s){if(!0!==d.nobracket&&z().includes("]"))J("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(c("closing","]"));s=`\\${s}`}te({type:"bracket",value:s});continue}if("]"===s){if(!0===d.nobracket||W&&"bracket"===W.type&&1===W.value.length){te({type:"text",value:s,output:`\\${s}`});continue}if(0===j.brackets){if(!0===d.strictBrackets)throw SyntaxError(c("opening","["));te({type:"text",value:s,output:`\\${s}`});continue}tt("brackets");let t=W.value.slice(1);if(!0===W.posix||"^"!==t[0]||t.includes("/")||(s=`/${s}`),W.value+=s,Y({value:s}),!1===d.literalBrackets||n.hasRegexChars(t))continue;let e=n.escapeRegex(W.value);if(j.output=j.output.slice(0,-W.value.length),!0===d.literalBrackets){j.output+=e,W.value=e;continue}W.value=`(${R}${e}|${W.value})`,j.output+=W.value;continue}if("{"===s&&!0!==d.nobrace){J("braces");let t={type:"brace",value:s,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};U.push(t),te(t);continue}if("}"===s){let t=U[U.length-1];if(!0===d.nobrace||!t){te({type:"text",value:s,output:s});continue}let e=")";if(!0===t.dots){let t=A.slice(),s=[];for(let e=t.length-1;e>=0&&(A.pop(),"brace"!==t[e].type);e--)"dots"!==t[e].type&&s.unshift(t[e].value);e=p(s,d),j.backtrack=!0}if(!0!==t.comma&&!0!==t.dots){let o=j.output.slice(0,t.outputIndex),n=j.tokens.slice(t.tokensIndex);for(let i of(t.value=t.output="\\{",s=e="\\}",j.output=o,n))j.output+=i.output||i.value}te({type:"brace",value:s,output:e}),tt("braces"),U.pop();continue}if("|"===s){G.length>0&&G[G.length-1].conditions++,te({type:"text",value:s});continue}if(","===s){let t=s,e=U[U.length-1];e&&"braces"===q[q.length-1]&&(e.comma=!0,t="|"),te({type:"comma",value:s,output:t});continue}if("/"===s){if("dot"===W.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",A.pop(),W=x;continue}te({type:"slash",value:s,output:S});continue}if("."===s){if(j.braces>0&&"dot"===W.type){"."===W.value&&(W.output=E);let t=U[U.length-1];W.type="dots",W.output+=s,W.value+=s,t.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==W.type&&"slash"!==W.type){te({type:"text",value:s,output:E});continue}te({type:"dot",value:s,output:E});continue}if("?"===s){if(!(W&&"("===W.value)&&!0!==d.noextglob&&"("===Q()&&"?"!==Q(2)){ts("qmark",s);continue}if(W&&"paren"===W.type){let t=Q(),e=s;("("!==W.value||/[!=<:]/.test(t))&&("<"!==t||/<([!=]|\w+>)/.test(z()))||(e=`\\${s}`),te({type:"text",value:s,output:e});continue}if(!0!==d.dot&&("slash"===W.type||"bos"===W.type)){te({type:"qmark",value:s,output:P});continue}te({type:"qmark",value:s,output:T});continue}if("!"===s){if(!0!==d.noextglob&&"("===Q()&&("?"!==Q(2)||!/[!=<:]/.test(Q(3)))){ts("negate",s);continue}if(!0!==d.nonegate&&0===j.index){V();continue}}if("+"===s){if(!0!==d.noextglob&&"("===Q()&&"?"!==Q(2)){ts("plus",s);continue}if(W&&"("===W.value||!1===d.regex){te({type:"plus",value:s,output:k});continue}if(W&&("bracket"===W.type||"paren"===W.type||"brace"===W.type)||j.parens>0){te({type:"plus",value:s});continue}te({type:"plus",value:k});continue}if("@"===s){if(!0!==d.noextglob&&"("===Q()&&"?"!==Q(2)){te({type:"at",extglob:!0,value:s,output:""});continue}te({type:"text",value:s});continue}if("*"!==s){("$"===s||"^"===s)&&(s=`\\${s}`);let t=u.exec(z());t&&(s+=t[0],j.index+=t[0].length),te({type:"text",value:s});continue}if(W&&("globstar"===W.type||!0===W.star)){W.type="star",W.star=!0,W.value+=s,W.output=M,j.backtrack=!0,j.globstar=!0,Z(s);continue}let e=z();if(!0!==d.noextglob&&/^\([^?]/.test(e)){ts("star",s);continue}if("star"===W.type){if(!0===d.noglobstar){Z(s);continue}let o=W.prev,n=o.prev,i="slash"===o.type||"bos"===o.type,r=n&&("star"===n.type||"globstar"===n.type);if(!0===d.bash&&(!i||e[0]&&"/"!==e[0])){te({type:"star",value:s,output:""});continue}let u=j.braces>0&&("comma"===o.type||"brace"===o.type),a=G.length&&("pipe"===o.type||"paren"===o.type);if(!i&&"paren"!==o.type&&!u&&!a){te({type:"star",value:s,output:""});continue}for(;"/**"===e.slice(0,3);){let s=t[j.index+4];if(s&&"/"!==s)break;e=e.slice(3),Z("/**",3)}if("bos"===o.type&&K()){W.type="globstar",W.value+=s,W.output=B(d),j.output=W.output,j.globstar=!0,Z(s);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!r&&K()){j.output=j.output.slice(0,-(o.output+W.output).length),o.output=`(?:${o.output}`,W.type="globstar",W.output=B(d)+(d.strictSlashes?")":"|$)"),W.value+=s,j.globstar=!0,j.output+=o.output+W.output,Z(s);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===e[0]){let t=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(o.output+W.output).length),o.output=`(?:${o.output}`,W.type="globstar",W.output=`${B(d)}${S}|${S}${t})`,W.value+=s,j.output+=o.output+W.output,j.globstar=!0,Z(s+X()),te({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===e[0]){W.type="globstar",W.value+=s,W.output=`(?:^|${S}|${B(d)}${S})`,j.output=W.output,j.globstar=!0,Z(s+X()),te({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-W.output.length),W.type="globstar",W.output=B(d),W.value+=s,j.output+=W.output,j.globstar=!0,Z(s);continue}let o={type:"star",value:s,output:M};if(!0===d.bash){o.output=".*?",("bos"===W.type||"slash"===W.type)&&(o.output=F+o.output),te(o);continue}if(W&&("bracket"===W.type||"paren"===W.type)&&!0===d.regex){o.output=s,te(o);continue}(j.index===j.start||"slash"===W.type||"dot"===W.type)&&("dot"===W.type?(j.output+=L,W.output+=L):!0===d.dot?(j.output+=O,W.output+=O):(j.output+=F,W.output+=F),"*"!==Q()&&(j.output+=C,W.output+=C)),te(o)}for(;j.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(c("closing","]"));j.output=n.escapeLast(j.output,"["),tt("brackets")}for(;j.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(c("closing",")"));j.output=n.escapeLast(j.output,"("),tt("parens")}for(;j.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(c("closing","}"));j.output=n.escapeLast(j.output,"{"),tt("braces")}if(!0!==d.strictSlashes&&("star"===W.type||"bracket"===W.type)&&te({type:"maybe_slash",value:"",output:`${S}?`}),!0===j.backtrack)for(let t of(j.output="",j.tokens))j.output+=null!=t.output?t.output:t.value,t.suffix&&(j.output+=t.suffix);return j};b.fastpaths=(t,e)=>{let s={...e},r="number"==typeof s.maxLength?Math.min(i,s.maxLength):i,u=t.length;if(u>r)throw SyntaxError(`Input length: ${u}, exceeds maximum allowed length: ${r}`);t=l[t]||t;let{DOT_LITERAL:a,SLASH_LITERAL:p,ONE_CHAR:c,DOTS_SLASH:h,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:g,STAR:m,START_ANCHOR:b}=o.globChars(s.windows),y=s.dot?d:f,_=s.dot?g:f,x=s.capture?"":"?:",A=!0===s.bash?".*?":m;s.capture&&(A=`(${A})`);let R=t=>!0===t.noglobstar?A:`(${x}(?:(?!${b}${t.dot?h:a}).)*?)`,v=t=>{switch(t){case"*":return`${y}${c}${A}`;case".*":return`${a}${c}${A}`;case"*.*":return`${y}${A}${a}${c}${A}`;case"*/*":return`${y}${A}${p}${c}${_}${A}`;case"**":return y+R(s);case"**/*":return`(?:${y}${R(s)}${p})?${_}${c}${A}`;case"**/*.*":return`(?:${y}${R(s)}${p})?${_}${A}${a}${c}${A}`;case"**/.*":return`(?:${y}${R(s)}${p})?${a}${c}${A}`;default:{let e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;let s=v(e[1]);if(!s)return;return s+a+e[2]}}},$=v(n.removePrefix(t,{negated:!1,prefix:""}));return $&&!0!==s.strictSlashes&&($+=`${p}?`),$},t.exports=b},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/picomatch.js"(t,e,s){let o=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/scan.js"),n=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/parse.js"),i=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/utils.js"),r=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/constants.js"),u=(t,e,s=!1)=>{if(Array.isArray(t)){let o=t.map(t=>u(t,e,s));return t=>{for(let e of o){let s=e(t);if(s)return s}return!1}}let o=t&&"object"==typeof t&&!Array.isArray(t)&&t.tokens&&t.input;if(""===t||"string"!=typeof t&&!o)throw TypeError("Expected pattern to be a non-empty string");let n=e||{},i=n.windows,r=o?u.compileRe(t,e):u.makeRe(t,e,!1,!0),a=r.state;delete r.state;let l=()=>!1;if(n.ignore){let t={...e,ignore:null,onMatch:null,onResult:null};l=u(n.ignore,t,s)}let p=(s,o=!1)=>{let{isMatch:p,match:c,output:h}=u.test(s,r,e,{glob:t,posix:i}),f={glob:t,state:a,regex:r,posix:i,input:s,output:h,match:c,isMatch:p};return("function"==typeof n.onResult&&n.onResult(f),!1===p)?(f.isMatch=!1,!!o&&f):l(s)?("function"==typeof n.onIgnore&&n.onIgnore(f),f.isMatch=!1,!!o&&f):("function"==typeof n.onMatch&&n.onMatch(f),!o||f)};return s&&(p.state=a),p};u.test=(t,e,s,{glob:o,posix:n}={})=>{if("string"!=typeof t)throw TypeError("Expected input to be a string");if(""===t)return{isMatch:!1,output:""};let r=s||{},a=r.format||(n?i.toPosixSlashes:null),l=t===o,p=l&&a?a(t):t;return!1===l&&(l=(p=a?a(t):t)===o),(!1===l||!0===r.capture)&&(l=!0===r.matchBase||!0===r.basename?u.matchBase(t,e,s,n):e.exec(p)),{isMatch:!!l,match:l,output:p}},u.matchBase=(t,e,s)=>(e instanceof RegExp?e:u.makeRe(e,s)).test(i.basename(t)),u.isMatch=(t,e,s)=>u(e,s)(t),u.parse=(t,e)=>Array.isArray(t)?t.map(t=>u.parse(t,e)):n(t,{...e,fastpaths:!1}),u.scan=(t,e)=>o(t,e),u.compileRe=(t,e,s=!1,o=!1)=>{if(!0===s)return t.output;let n=e||{},i=n.contains?"":"^",r=n.contains?"":"$",a=`${i}(?:${t.output})${r}`;t&&!0===t.negated&&(a=`^(?!${a}).*$`);let l=u.toRegex(a,e);return!0===o&&(l.state=t),l},u.makeRe=(t,e={},s=!1,o=!1)=>{if(!t||"string"!=typeof t)throw TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1!==e.fastpaths&&("."===t[0]||"*"===t[0])&&(i.output=n.fastpaths(t,e)),i.output||(i=n(t,e)),u.compileRe(i,e,s,o)},u.toRegex=(t,e)=>{try{let s=e||{};return new RegExp(t,s.flags||(s.nocase?"i":""))}catch(t){if(e&&!0===e.debug)throw t;return/$^/}},u.constants=r,t.exports=u},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/scan.js"(t,e,s){let o=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/utils.js"),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:u,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:y}=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/constants.js"),_=t=>t===p||t===r,x=t=>{!0!==t.isPrefix&&(t.depth=t.isGlobstar?1/0:1)};t.exports=(t,e)=>{let s,A,R=e||{},v=t.length-1,$=!0===R.parts||!0===R.scanToEnd,E=[],k=[],S=[],C=t,w=-1,H=0,L=0,O=!1,T=!1,P=!1,D=!1,I=!1,B=!1,F=!1,N=!1,M=!1,j=!1,G=0,U={value:"",depth:0,isGlob:!1},q=()=>w>=v,W=()=>C.charCodeAt(w+1),K=()=>(s=A,C.charCodeAt(++w));for(;w<v;){let t;if((A=K())===r){F=U.backslashes=!0,(A=K())===c&&(B=!0);continue}if(!0===B||A===c){for(G++;!0!==q()&&(A=K());){if(A===r){F=U.backslashes=!0,K();continue}if(A===c){G++;continue}if(!0!==B&&A===a&&(A=K())===a||!0!==B&&A===u){if(O=U.isBrace=!0,P=U.isGlob=!0,j=!0,!0===$)continue;break}if(A===m&&0==--G){B=!1,O=U.isBrace=!0,j=!0;break}}if(!0===$)continue;break}if(A===p){if(E.push(w),k.push(U),U={value:"",depth:0,isGlob:!1},!0===j)continue;if(s===a&&w===H+1){H+=2;continue}L=w+1;continue}if(!0!==R.noext&&!0==(A===d||A===i||A===n||A===g||A===l)&&W()===h){if(P=U.isGlob=!0,D=U.isExtglob=!0,j=!0,A===l&&w===H&&(M=!0),!0===$){for(;!0!==q()&&(A=K());){if(A===r){F=U.backslashes=!0,A=K();continue}if(A===b){P=U.isGlob=!0,j=!0;break}}continue}break}if(A===n){if(s===n&&(I=U.isGlobstar=!0),P=U.isGlob=!0,j=!0,!0===$)continue;break}if(A===g){if(P=U.isGlob=!0,j=!0,!0===$)continue;break}if(A===f){for(;!0!==q()&&(t=K());){if(t===r){F=U.backslashes=!0,K();continue}if(t===y){T=U.isBracket=!0,P=U.isGlob=!0,j=!0;break}}if(!0===$)continue;break}if(!0!==R.nonegate&&A===l&&w===H){N=U.negated=!0,H++;continue}if(!0!==R.noparen&&A===h){if(P=U.isGlob=!0,!0===$){for(;!0!==q()&&(A=K());){if(A===h){F=U.backslashes=!0,A=K();continue}if(A===b){j=!0;break}}continue}break}if(!0===P){if(j=!0,!0===$)continue;break}}!0===R.noext&&(D=!1,P=!1);let Q=C,X="",z="";H>0&&(X=C.slice(0,H),C=C.slice(H),L-=H),Q&&!0===P&&L>0?(Q=C.slice(0,L),z=C.slice(L)):!0===P?(Q="",z=C):Q=C,Q&&""!==Q&&"/"!==Q&&Q!==C&&_(Q.charCodeAt(Q.length-1))&&(Q=Q.slice(0,-1)),!0===R.unescape&&(z&&(z=o.removeBackslashes(z)),Q&&!0===F&&(Q=o.removeBackslashes(Q)));let Z={prefix:X,input:t,start:H,base:Q,glob:z,isBrace:O,isBracket:T,isGlob:P,isExtglob:D,isGlobstar:I,negated:N,negatedExtglob:M};if(!0===R.tokens&&(Z.maxDepth=0,_(A)||k.push(U),Z.tokens=k),!0===R.parts||!0===R.tokens){let e;for(let s=0;s<E.length;s++){let o=e?e+1:H,n=E[s],i=t.slice(o,n);R.tokens&&(0===s&&0!==H?(k[s].isPrefix=!0,k[s].value=X):k[s].value=i,x(k[s]),Z.maxDepth+=k[s].depth),(0!==s||""!==i)&&S.push(i),e=n}if(e&&e+1<t.length){let s=t.slice(e+1);S.push(s),R.tokens&&(k[k.length-1].value=s,x(k[k.length-1]),Z.maxDepth+=k[k.length-1].depth)}Z.slashes=E,Z.parts=S}return Z}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/utils.js"(t,e,s){let{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:r}=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/lib/constants.js");e.isObject=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),e.hasRegexChars=t=>i.test(t),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=t=>t.replace(r,"\\$1"),e.toPosixSlashes=t=>t.replace(o,"/"),e.isWindows=()=>{if("u">typeof navigator&&navigator.platform){let t=navigator.platform.toLowerCase();return"win32"===t||"windows"===t}return"u">typeof process&&!!process.platform&&"win32"===process.platform},e.removeBackslashes=t=>t.replace(n,t=>"\\"===t?"":t),e.escapeLast=(t,s,o)=>{let n=t.lastIndexOf(s,o);return -1===n?t:"\\"===t[n-1]?e.escapeLast(t,s,n-1):`${t.slice(0,n)}\\${t.slice(n)}`},e.removePrefix=(t,e={})=>{let s=t;return s.startsWith("./")&&(s=s.slice(2),e.prefix="./"),s},e.wrapOutput=(t,e={},s={})=>{let o=s.contains?"":"^",n=s.contains?"":"$",i=`${o}(?:${t})${n}`;return!0===e.negated&&(i=`(?:^(?!${i}).*$)`),i},e.basename=(t,{windows:e}={})=>{let s=t.split(e?/[\\/]/:"/"),o=s[s.length-1];return""===o?s[s.length-2]:o}}});var y=m(import.meta.url);let _=/[\\/]/g;function x(t,e){return t.replace(_,e)}let A=/^[a-z]:[\\/]$/i;function R(t,e){let s,{resolvePaths:o,normalizePath:n,pathSeparator:i}=e,r="win32"===process.platform&&t.includes("/")||t.startsWith(".");return o&&(t=f(t)),((n||r)&&((s=p(t)).length>1&&s[s.length-1]===d&&(s=s.substring(0,s.length-1)),t=s),"."===t)?"":x(t[t.length-1]!==i?t+i:t,i)}function v(t,e){return e+t}function $(t){return t}let E=(t,e)=>{e.push(t||".")},k=(t,e,s)=>{let o=t||".";s.every(t=>t(o,!0))&&e.push(o)},S=()=>{},C=(t,e,s,o)=>{o.every(e=>e(t,!1))&&s.files++},w=(t,e,s,o)=>{o.every(e=>e(t,!1))&&e.push(t)},H=(t,e,s,o)=>{s.files++},L=(t,e)=>{e.push(t)},O=()=>{},T=t=>t,P=()=>[""].slice(0,0),D=(t,e,s)=>{t.push({directory:e,files:s,dir:e})},I=()=>{},B=function(t,e,s){let{queue:o,fs:n,options:{suppressErrors:i}}=e;o.enqueue(),n.realpath(t,(r,u)=>{if(r)return o.dequeue(i?null:r,e);n.stat(u,(n,r)=>n?o.dequeue(i?null:n,e):r.isDirectory()&&N(t,u,e)?o.dequeue(null,e):void(s(r,u),o.dequeue(null,e)))})},F=function(t,e,s){let{queue:o,fs:n,options:{suppressErrors:i}}=e;o.enqueue();try{let o=n.realpathSync(t),i=n.statSync(o);if(i.isDirectory()&&N(t,o,e))return;s(i,o)}catch(t){if(!i)throw t}};function N(t,e,s){if(s.options.useRealPaths){var o,n;return o=e,(n=s).visited.includes(o+n.options.pathSeparator)}let i=a(t),r=1;for(;i!==s.root&&r<2;){let t=s.symlinks.get(i);t&&(t===e||t.startsWith(e)||e.startsWith(t))?r++:i=a(i)}return s.symlinks.set(t,e),r>1}let M=t=>t.counts,j=t=>t.groups,G=t=>t.paths,U=t=>t.paths.slice(0,t.options.maxFiles),q=(t,e,s)=>(X(e,s,t.counts,t.options.suppressErrors),null),W=(t,e,s)=>(X(e,s,t.paths,t.options.suppressErrors),null),K=(t,e,s)=>(X(e,s,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),Q=(t,e,s)=>(X(e,s,t.groups,t.options.suppressErrors),null);function X(t,e,s,o){e(t&&!o?t:null,s)}let z={withFileTypes:!0},Z=(t,e,s,o,n)=>{if(t.queue.enqueue(),o<0)return t.queue.dequeue(null,t);let{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",z,(e,i=[])=>{n(i,s,o),t.queue.dequeue(t.options.suppressErrors?null:e,t)})},Y=(t,e,s,o,n)=>{let{fs:i}=t;if(o<0)return;t.visited.push(e),t.counts.directories++;let r=[];try{r=i.readdirSync(e||".",z)}catch(e){if(!t.options.suppressErrors)throw e}n(r,s,o)};var V=class{count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},J=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},tt=class{aborted=!1;abort(){this.aborted=!0}},te=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,s,o){var n,i;this.isSynchronous=!o,this.callbackInvoker=function(t,e){let{onlyCounts:s,group:o,maxFiles:n}=t;return s?e?M:q:o?e?j:Q:n?e?U:K:e?G:W}(s,this.isSynchronous),this.root=R(e,s),this.state={root:"/"===(n=this.root)||A.test(n)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new J,options:s,queue:new V((t,e)=>this.callbackInvoker(e,t,o)),symlinks:new Map,visited:[""].slice(0,0),controller:new tt,fs:s.fs||t},this.joinPath=function(t,e){let{relativePaths:s,includeBasePath:o}=e;return s&&t?function(s,o){return o.startsWith(t)?o.slice(t.length)+s:x(h(t,o),e.pathSeparator)+e.pathSeparator+s}:o?v:$}(this.root,s),this.pushDirectory=function(t,e){let{includeDirs:s,filters:o,relativePaths:n}=e;if(!s)return S;if(n)return o&&o.length?function(e,s,o){let n=e.substring(t.length)||".";o.every(t=>t(n,!0))&&s.push(n)}:function(e,s){s.push(e.substring(t.length)||".")};return o&&o.length?k:E}(this.root,s),this.pushFile=function(t){let{excludeFiles:e,filters:s,onlyCounts:o}=t;return e?O:s&&s.length?o?C:w:o?H:L}(s),this.getArray=s.group?P:T,this.groupFiles=s.group?D:I,this.resolveSymlink=(i=this.isSynchronous,!s.resolveSymlinks||s.excludeSymlinks?null:i?F:B),this.walkDirectory=this.isSynchronous?Y:Z}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=(t,e,s)=>{let{paths:o,options:{filters:n,resolveSymlinks:i,excludeSymlinks:r,exclude:l,maxFiles:p,signal:c,useRealPaths:h,pathSeparator:f},controller:d}=this.state;if(d.aborted||c&&c.aborted||p&&o.length>p)return;let g=this.getArray(this.state.paths);for(let p=0;p<t.length;++p){let c=t[p];if(c.isFile()||c.isSymbolicLink()&&!i&&!r){let t=this.joinPath(c.name,e);this.pushFile(t,g,this.state.counts,n)}else if(c.isDirectory()){let t=e+c.name+this.state.options.pathSeparator;if(l&&l(c.name,t))continue;this.pushDirectory(t,o,n),this.walkDirectory(this.state,t,t,s-1,this.walk)}else if(this.resolveSymlink&&c.isSymbolicLink()){let t=e+c.name;this.resolveSymlink(t,this.state,(e,o)=>{if(e.isDirectory())o=R(o,this.state.options),l&&l(c.name,h?o:t+f)||this.walkDirectory(this.state,o,h?o:t+f,s-1,this.walk);else{let e=u(o=h?o:t),s=R(a(o),this.state.options);o=this.joinPath(e,s),this.pushFile(o,g,this.state.counts,n)}})}}this.groupFiles(this.state.groups,e,g)}};function ts(t,e,s){new te(t,e,s).start()}var to=class{constructor(t,e){this.root=t,this.options=e}withPromise(){var t,e;return t=this.root,e=this.options,new Promise((s,o)=>{ts(t,e,(t,e)=>{if(t)return o(t);s(e)})})}withCallback(t){ts(this.root,this.options,t)}sync(){return new te(this.root,this.options).start()}};let tn=null;try{y.resolve("picomatch"),tn=y("picomatch")}catch{}var ti=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:d,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new to(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new to(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){let s=this.globFunction||tn;if(!s)throw Error("Please specify a glob function to use glob matching.");var o=this.globCache[t.join("\0")];return o||(o=s(t,...e),this.globCache[t.join("\0")]=o),this.options.filters.push(t=>o(t)),this}};let tr=b("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.4/0546af7cfa9a5912a758e05e0c75d31dec268037998816328e491e436f64c2fd/node_modules/picomatch/index.js"),tu=Array.isArray,ta=/\\/g,tl=/^[A-Za-z]:$/,tp="win32"===process.platform,tc=/^(\/?\.\.)+$/,th=/^[A-Z]:\/$/i,tf=tp?t=>th.test(t):t=>"/"===t;function td(t,e,s){if(t===e||e.startsWith(`${t}/`)){if(s){let e=t.length+ +!tf(t);return(t,s)=>t.slice(e,s?-1:void 0)||"."}let o=e.slice(t.length+1);return o?(t,e)=>{if("."===t)return o;let s=`${o}/${t}`;return e?s.slice(0,-1):s}:(t,e)=>e&&"."!==t?t.slice(0,-1):t}return s?e=>c.relative(t,e)||".":s=>c.relative(t,`${e}/${s}`)||"."}function tg(t){return t.replace(tl,t=>`${t}/`)}let tm={parts:!0};function tb(t){var e;let s=tr.scan(t,tm);return(null==(e=s.parts)?void 0:e.length)?s.parts:[t]}let ty=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,t_=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,tx=tp?t=>t.replace(t_,"\\$&"):t=>t.replace(ty,"\\$&");function tA(...t){console.log(`[tinyglobby ${(new Date).toLocaleTimeString("es")}]`,...t)}function tR(t){return"string"==typeof t?[t]:null!=t?t:[]}let tv=/^(\/?\.\.)+/,t$=/\\(?=[()[\]{}!*+?@|])/g;function tE(t,e,s,o){var n;let i=e.cwd,r=t;"/"===t[t.length-1]&&(r=t.slice(0,-1)),"*"!==r[r.length-1]&&e.expandDirectories&&(r+="/**");let u=tx(i);r=l(r.replace(t$,""))?c.relative(u,r):c.normalize(r);let a=null==(n=tv.exec(r))?void 0:n[0],p=tb(r);if(a){let t=(a.length+1)/3,e=0,o=u.split("/");for(;e<t&&p[e+t]===o[o.length+e-t];)r=r.slice(0,(t-e-1)*3)+r.slice((t-e)*3+p[e+t].length+1)||".",e++;let n=c.join(i,a.slice(3*e));"."!==n[0]&&s.root.length>n.length&&(s.root=tg(n),s.depthOffset=-t+e)}if(!o&&s.depthOffset>=0){null!=s.commonPath||(s.commonPath=p);let t=[],e=Math.min(s.commonPath.length,p.length);for(let o=0;o<e;o++){let e=p[o];if("**"===e&&!p[o+1]){t.pop();break}if(o===p.length-1||e!==s.commonPath[o]||function(t){let e=tr.scan(t);return e.isGlob||e.negated}(e))break;t.push(e)}s.depthOffset=t.length,s.commonPath=t,s.root=tg(t.length>0?c.join(i,...t):i)}return r}function tk(t,e){if(e)for(let s=t.length-1;s>=0;s--)t[s]=e(t[s]);return t}let tS={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function tC(t,u={}){var a;if(t&&(null==u?void 0:u.patterns))throw Error("Cannot pass patterns as both an argument and an option");let l=tu(t)||"string"==typeof t,p=tR(null!=(a=l?t:t.patterns)?a:"**/*"),h=function(t){let u=Object.assign({},t);for(let t in tS)void 0===u[t]&&Object.assign(u,{[t]:tS[t]});return u.cwd=(u.cwd instanceof URL?g(u.cwd):f(u.cwd||process.cwd())).replace(ta,"/"),u.ignore=tR(u.ignore),u.fs&&(u.fs={readdir:u.fs.readdir||e,readdirSync:u.fs.readdirSync||s,realpath:u.fs.realpath||o,realpathSync:u.fs.realpathSync||n,stat:u.fs.stat||i,statSync:u.fs.statSync||r}),u.debug&&tA("globbing with options:",u),u}(l?u:t);return p.length>0?function(t,e){let s,o=t.cwd,n={root:o,depthOffset:0},i=function(t,e,s){let o=[],n=[];for(let e of t.ignore)e&&("!"!==e[0]||"("===e[1])&&n.push(tE(e,t,s,!0));for(let i of e)i&&("!"!==i[0]||"("===i[1]?o.push(tE(i,t,s,!1)):("!"!==i[1]||"("===i[2])&&n.push(tE(i.slice(1),t,s,!0)));return{match:o,ignore:n}}(t,e,n);t.debug&&tA("internal processing patterns:",i);let{absolute:r,caseSensitiveMatch:u,debug:a,dot:l,followSymbolicLinks:p,onlyDirectories:h}=t,f=n.root.replace(ta,""),d={dot:l,nobrace:!1===t.braceExpansion,nocase:!u,noextglob:!1===t.extglob,noglobstar:!1===t.globstar,posix:!0},g=tr(i.match,d),m=tr(i.ignore,d),b=function(t,e={}){let s,o,n=t.length,i=Array(n),r=Array(n);for(s=0;s<n;s++){let n=tb(t[s]);i[s]=n;let u=n.length,a=Array(u);for(o=0;o<u;o++)a[o]=tr(n[o],e);r[s]=a}return t=>{let u=t.split("/");if(".."===u[0]&&tc.test(t))return!0;for(s=0;s<n;s++){let t=i[s],n=r[s],a=u.length,l=Math.min(a,t.length);for(o=0;o<l;){let s=t[o];if(s.includes("/"))return!0;if(!n[o](u[o]))break;if(!e.noglobstar&&"**"===s)return!0;o++}if(o===a)return!0}return!1}}(i.match,d),y=td(o,f,r),_=r?y:td(o,f,!0),x=(t,e)=>{let s=_(e,!0);return"."!==s&&!b(s)||m(s)};void 0!==t.deep&&(s=Math.round(t.deep-n.depthOffset));let A=new ti({filters:[a?(t,e)=>{let s=y(t,e),o=g(s)&&!m(s);return o&&tA(`matched ${s}`),o}:(t,e)=>{let s=y(t,e);return g(s)&&!m(s)}],exclude:a?(t,e)=>{let s=x(t,e);return tA(`${s?"skipped":"crawling"} ${e}`),s}:x,fs:t.fs,pathSeparator:"/",relativePaths:!r,resolvePaths:r,includeBasePath:r,resolveSymlinks:p,excludeSymlinks:!p,excludeFiles:h,includeDirs:h||!t.onlyFiles,maxDepth:s,signal:t.signal}).crawl(f);return t.debug&&tA("internal properties:",{...n,root:f}),[A,o!==f&&!r&&function(t,e){if(e.startsWith(`${t}/`)){let s=e.slice(t.length+1);return t=>`${s}/${t}`}return s=>{let o=c.relative(t,`${e}/${s}`);return"/"===s[s.length-1]&&""!==o?`${o}/`:o||"."}}(o,f)]}(h,p):[]}async function tw(t,e){let[s,o]=tC(t,e);return s?tk(await s.withPromise(),o):[]}function tH(t,e){let[s,o]=tC(t,e);return s?tk(s.sync(),o):[]}export{tw as glob,tH as globSync};
|
|
1
|
+
import{rspackRequire as t,moduleFactories as e}from"./rslib-runtime.js";import*as s from"fs";import{readdir as o,readdirSync as n,realpath as i,realpathSync as r,stat as a,statSync as u}from"fs";import{basename as l,dirname as p,isAbsolute as c,normalize as h,posix as f,relative as d,resolve as b,sep as g}from"path";import{fileURLToPath as m}from"url";import{createRequire as y}from"module";e.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/index.js"(e){let s=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/picomatch.js"),o=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/utils.js");function n(t,e,i=!1){return e&&(null===e.windows||void 0===e.windows)&&(e={...e,windows:o.isWindows()}),s(t,e,i)}Object.assign(n,s),e.exports=n},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/constants.js"(t){let e="[^\\\\/]",s="[^/]",o="(?:\\/|$)",n="(?:^|\\/)",i=`\\.{1,2}${o}`,r=`(?!${n}${i})`,a=`(?!\\.{0,1}${o})`,u=`(?!${i})`,l=`${s}*?`,p={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:s,END_ANCHOR:o,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:r,NO_DOT_SLASH:a,NO_DOTS_SLASH:u,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:n,SEP:"/"},c={...p,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:"\\"};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,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:t=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:t=>!0===t?c:p}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/parse.js"(e){let s=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/constants.js"),o=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/utils.js"),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:u}=s,l=(t,e)=>{if("function"==typeof e.expandRange)return e.expandRange(...t,e);t.sort();let s=`[${t.join("-")}]`;try{new RegExp(s)}catch(e){return t.map(t=>o.escapeRegex(t)).join("..")}return s},p=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,c=t=>{let e=[],s=0,o=0,n=0,i="",r=!1;for(let a of t){if(!0===r){i+=a,r=!1;continue}if("\\"===a){i+=a,r=!0;continue}if('"'===a){n=+(1!==n),i+=a;continue}if(0===n){if("["===a)s++;else if("]"===a&&s>0)s--;else if(0===s){if("("===a)o++;else if(")"===a&&o>0)o--;else if("|"===a&&0===o){e.push(i),i="";continue}}}i+=a}return e.push(i),e},h=t=>{let e=t.trim(),s=!0;for(;!0===s;)s=!1,/^@\([^\\()[\]{}|]+\)$/.test(e)&&(e=e.slice(2,-1),s=!0);if((t=>{let e=!1;for(let s of t){if(!0===e){e=!1;continue}if("\\"===s){e=!0;continue}if(/[?*+@!()[\]{}]/.test(s))return!1}return!0})(e))return e.replace(/\\(.)/g,"$1")},f=(t,e=!0)=>{if("+"!==t[0]&&"*"!==t[0]||"("!==t[1])return;let s=0,o=0,n=0,i=!1;for(let r=1;r<t.length;r++){let a=t[r];if(!0===i){i=!1;continue}if("\\"===a){i=!0;continue}if('"'===a){n=+(1!==n);continue}if(1!==n){if("["===a){s++;continue}if("]"===a&&s>0){s--;continue}if(!(s>0)){if("("===a){o++;continue}if(")"===a&&0==--o){if(!0===e&&r!==t.length-1)return;return{type:t[0],body:t.slice(2,r),end:r}}}}}},d=t=>{let e=0,s=[];for(;e<t.length;){let o=f(t.slice(e),!1);if(!o||"*"!==o.type)return;let n=c(o.body).map(t=>t.trim());if(1!==n.length)return;let i=h(n[0]);if(!i||1!==i.length)return;s.push(i),e+=o.end+1}if(!(s.length<1))return s},b=t=>{let e=0,s=t.trim(),o=f(s);for(;o;)e++,o=f(s=o.body.trim());return e},g=(t,e)=>{let f;if("string"!=typeof t)throw TypeError("Expected a string");t=u[t]||t;let m={...e},y="number"==typeof m.maxLength?Math.min(n,m.maxLength):n,_=t.length;if(_>y)throw SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${y}`);let x={type:"bos",value:"",output:m.prepend||""},A=[x],R=m.capture?"":"?:",v=s.globChars(m.windows),$=s.extglobChars(v),{DOT_LITERAL:E,PLUS_LITERAL:k,SLASH_LITERAL:S,ONE_CHAR:C,DOTS_SLASH:w,NO_DOT:H,NO_DOT_SLASH:O,NO_DOTS_SLASH:L,QMARK:T,QMARK_NO_DOT:P,STAR:D,START_ANCHOR:I}=v,B=t=>`(${R}(?:(?!${I}${t.dot?w:E}).)*?)`,F=m.dot?"":H,N=m.dot?T:P,M=!0===m.bash?B(m):D;m.capture&&(M=`(${M})`),"boolean"==typeof m.noext&&(m.noextglob=m.noext);let j={input:t,index:-1,start:0,dot:!0===m.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:A};_=(t=o.removePrefix(t,j)).length;let G=[],U=[],q=[],W=x,K=()=>j.index===_-1,Q=j.peek=(e=1)=>t[j.index+e],X=j.advance=()=>t[++j.index]||"",z=()=>t.slice(j.index+1),Z=(t="",e=0)=>{j.consumed+=t,j.index+=e},Y=t=>{j.output+=null!=t.output?t.output:t.value,Z(t.value)},V=()=>{let t=1;for(;"!"===Q()&&("("!==Q(2)||"?"===Q(3));)X(),j.start++,t++;return t%2!=0&&(j.negated=!0,j.start++,!0)},J=t=>{j[t]++,q.push(t)},tt=t=>{j[t]--,q.pop()},te=t=>{if("globstar"===W.type){let e=j.braces>0&&("comma"===t.type||"brace"===t.type),s=!0===t.extglob||G.length&&("pipe"===t.type||"paren"===t.type);"slash"===t.type||"paren"===t.type||e||s||(j.output=j.output.slice(0,-W.output.length),W.type="star",W.value="*",W.output=M,j.output+=W.output)}if(G.length&&"paren"!==t.type&&(G[G.length-1].inner+=t.value),(t.value||t.output)&&Y(t),W&&"text"===W.type&&"text"===t.type){W.output=(W.output||W.value)+t.value,W.value+=t.value;return}t.prev=W,A.push(t),W=t},ts=(t,e)=>{let s={...$[e],conditions:1,inner:""};s.prev=W,s.parens=j.parens,s.output=j.output,s.startIndex=j.index,s.tokensIndex=A.length;let o=(m.capture?"(":"")+s.open;J("parens"),te({type:t,value:e,output:j.output?"":C}),te({type:"paren",extglob:!0,value:X(),output:o}),G.push(s)},to=n=>{let i,r=t.slice(n.startIndex,j.index+1),a=((t,e)=>{if(!1===e.maxExtglobRecursion)return{risky:!1};let n="number"==typeof e.maxExtglobRecursion?e.maxExtglobRecursion:s.DEFAULT_MAX_EXTGLOB_RECURSION,i=c(t).map(t=>t.trim());if(i.length>1&&(i.some(t=>""===t)||i.some(t=>/^[*?]+$/.test(t))||(t=>{let e=t.map(h).filter(Boolean);for(let t=0;t<e.length;t++)for(let s=t+1;s<e.length;s++){let o=e[t],n=e[s],i=o[0];if(i&&o===i.repeat(o.length)&&n===i.repeat(n.length)&&(o===n||o.startsWith(n)||n.startsWith(o)))return!0}return!1})(i)))return{risky:!0};let r=[],a=!1,u=!0;for(let t of i){let e=d(t);if(e){a=!0,r.push(...e);continue}let s=h(t);if(s&&1===s.length){r.push(s);continue}if(u=!1,b(t)>n)return{risky:!0}}if(a){var l;let t;return u?{risky:!0,safeOutput:(t=1===(l=[...new Set(r)]).length?o.escapeRegex(l[0]):`[${l.map(t=>o.escapeRegex(t)).join("")}]`,`${t}*`)}:{risky:!0}}return{risky:!1}})(t.slice(n.startIndex+2,j.index),m);if(("plus"===n.type||"star"===n.type)&&a.risky){let t=a.safeOutput?(n.output?"":C)+(m.capture?`(${a.safeOutput})`:a.safeOutput):void 0,e=A[n.tokensIndex];e.type="text",e.value=r,e.output=t||o.escapeRegex(r);for(let t=n.tokensIndex+1;t<A.length;t++)A[t].value="",A[t].output="",delete A[t].suffix;j.output=n.output+e.output,j.backtrack=!0,te({type:"paren",extglob:!0,value:f,output:""}),tt("parens");return}let u=n.close+(m.capture?")":"");if("negate"===n.type){let t=M;if(n.inner&&n.inner.length>1&&n.inner.includes("/")&&(t=B(m)),(t!==M||K()||/^\)+$/.test(z()))&&(u=n.close=`)$))${t}`),n.inner.includes("*")&&(i=z())&&/^\.[^\\/.]+$/.test(i)){let s=g(i,{...e,fastpaths:!1}).output;u=n.close=`)${s})${t})`}"bos"===n.prev.type&&(j.negatedExtglob=!0)}te({type:"paren",extglob:!0,value:f,output:u}),tt("parens")};if(!1!==m.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(t)){let s=!1,n=t.replace(a,(t,e,o,n,i,r)=>"\\"===n?(s=!0,t):"?"===n?e?e+n+(i?T.repeat(i.length):""):0===r?N+(i?T.repeat(i.length):""):T.repeat(o.length):"."===n?E.repeat(o.length):"*"===n?e?e+n+(i?M:""):M:e?t:`\\${t}`);return(!0===s&&(n=!0===m.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,t=>t.length%2==0?"\\\\":t?"\\":"")),n===t&&!0===m.contains)?j.output=t:j.output=o.wrapOutput(n,j,e),j}for(;!K();){if("\0"===(f=X()))continue;if("\\"===f){let t=Q();if("/"===t&&!0!==m.bash||"."===t||";"===t)continue;if(!t){te({type:"text",value:f+="\\"});continue}let e=/^\\+/.exec(z()),s=0;if(e&&e[0].length>2&&(s=e[0].length,j.index+=s,s%2!=0&&(f+="\\")),!0===m.unescape?f=X():f+=X(),0===j.brackets){te({type:"text",value:f});continue}}if(j.brackets>0&&("]"!==f||"["===W.value||"[^"===W.value)){if(!1!==m.posix&&":"===f){let t=W.value.slice(1);if(t.includes("[")&&(W.posix=!0,t.includes(":"))){let t=W.value.lastIndexOf("["),e=W.value.slice(0,t),s=i[W.value.slice(t+2)];if(s){W.value=e+s,j.backtrack=!0,X(),x.output||1!==A.indexOf(W)||(x.output=C);continue}}}("["===f&&":"!==Q()||"-"===f&&"]"===Q())&&(f=`\\${f}`),"]"===f&&("["===W.value||"[^"===W.value)&&(f=`\\${f}`),!0===m.posix&&"!"===f&&"["===W.value&&(f="^"),W.value+=f,Y({value:f});continue}if(1===j.quotes&&'"'!==f){f=o.escapeRegex(f),W.value+=f,Y({value:f});continue}if('"'===f){j.quotes=+(1!==j.quotes),!0===m.keepQuotes&&te({type:"text",value:f});continue}if("("===f){J("parens"),te({type:"paren",value:f});continue}if(")"===f){if(0===j.parens&&!0===m.strictBrackets)throw SyntaxError(p("opening","("));let t=G[G.length-1];if(t&&j.parens===t.parens+1){to(G.pop());continue}te({type:"paren",value:f,output:j.parens?")":"\\)"}),tt("parens");continue}if("["===f){if(!0!==m.nobracket&&z().includes("]"))J("brackets");else{if(!0!==m.nobracket&&!0===m.strictBrackets)throw SyntaxError(p("closing","]"));f=`\\${f}`}te({type:"bracket",value:f});continue}if("]"===f){if(!0===m.nobracket||W&&"bracket"===W.type&&1===W.value.length){te({type:"text",value:f,output:`\\${f}`});continue}if(0===j.brackets){if(!0===m.strictBrackets)throw SyntaxError(p("opening","["));te({type:"text",value:f,output:`\\${f}`});continue}tt("brackets");let t=W.value.slice(1);if(!0===W.posix||"^"!==t[0]||t.includes("/")||(f=`/${f}`),W.value+=f,Y({value:f}),!1===m.literalBrackets||o.hasRegexChars(t))continue;let e=o.escapeRegex(W.value);if(j.output=j.output.slice(0,-W.value.length),!0===m.literalBrackets){j.output+=e,W.value=e;continue}W.value=`(${R}${e}|${W.value})`,j.output+=W.value;continue}if("{"===f&&!0!==m.nobrace){J("braces");let t={type:"brace",value:f,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};U.push(t),te(t);continue}if("}"===f){let t=U[U.length-1];if(!0===m.nobrace||!t){te({type:"text",value:f,output:f});continue}let e=")";if(!0===t.dots){let t=A.slice(),s=[];for(let e=t.length-1;e>=0&&(A.pop(),"brace"!==t[e].type);e--)"dots"!==t[e].type&&s.unshift(t[e].value);e=l(s,m),j.backtrack=!0}if(!0!==t.comma&&!0!==t.dots){let s=j.output.slice(0,t.outputIndex),o=j.tokens.slice(t.tokensIndex);for(let n of(t.value=t.output="\\{",f=e="\\}",j.output=s,o))j.output+=n.output||n.value}te({type:"brace",value:f,output:e}),tt("braces"),U.pop();continue}if("|"===f){G.length>0&&G[G.length-1].conditions++,te({type:"text",value:f});continue}if(","===f){let t=f,e=U[U.length-1];e&&"braces"===q[q.length-1]&&(e.comma=!0,t="|"),te({type:"comma",value:f,output:t});continue}if("/"===f){if("dot"===W.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",A.pop(),W=x;continue}te({type:"slash",value:f,output:S});continue}if("."===f){if(j.braces>0&&"dot"===W.type){"."===W.value&&(W.output=E);let t=U[U.length-1];W.type="dots",W.output+=f,W.value+=f,t.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==W.type&&"slash"!==W.type){te({type:"text",value:f,output:E});continue}te({type:"dot",value:f,output:E});continue}if("?"===f){if(!(W&&"("===W.value)&&!0!==m.noextglob&&"("===Q()&&"?"!==Q(2)){ts("qmark",f);continue}if(W&&"paren"===W.type){let t=Q(),e=f;("("!==W.value||/[!=<:]/.test(t))&&("<"!==t||/<([!=]|\w+>)/.test(z()))||(e=`\\${f}`),te({type:"text",value:f,output:e});continue}if(!0!==m.dot&&("slash"===W.type||"bos"===W.type)){te({type:"qmark",value:f,output:P});continue}te({type:"qmark",value:f,output:T});continue}if("!"===f){if(!0!==m.noextglob&&"("===Q()&&("?"!==Q(2)||!/[!=<:]/.test(Q(3)))){ts("negate",f);continue}if(!0!==m.nonegate&&0===j.index){V();continue}}if("+"===f){if(!0!==m.noextglob&&"("===Q()&&"?"!==Q(2)){ts("plus",f);continue}if(W&&"("===W.value||!1===m.regex){te({type:"plus",value:f,output:k});continue}if(W&&("bracket"===W.type||"paren"===W.type||"brace"===W.type)||j.parens>0){te({type:"plus",value:f});continue}te({type:"plus",value:k});continue}if("@"===f){if(!0!==m.noextglob&&"("===Q()&&"?"!==Q(2)){te({type:"at",extglob:!0,value:f,output:""});continue}te({type:"text",value:f});continue}if("*"!==f){("$"===f||"^"===f)&&(f=`\\${f}`);let t=r.exec(z());t&&(f+=t[0],j.index+=t[0].length),te({type:"text",value:f});continue}if(W&&("globstar"===W.type||!0===W.star)){W.type="star",W.star=!0,W.value+=f,W.output=M,j.backtrack=!0,j.globstar=!0,Z(f);continue}let e=z();if(!0!==m.noextglob&&/^\([^?]/.test(e)){ts("star",f);continue}if("star"===W.type){if(!0===m.noglobstar){Z(f);continue}let s=W.prev,o=s.prev,n="slash"===s.type||"bos"===s.type,i=o&&("star"===o.type||"globstar"===o.type);if(!0===m.bash&&(!n||e[0]&&"/"!==e[0])){te({type:"star",value:f,output:""});continue}let r=j.braces>0&&("comma"===s.type||"brace"===s.type),a=G.length&&("pipe"===s.type||"paren"===s.type);if(!n&&"paren"!==s.type&&!r&&!a){te({type:"star",value:f,output:""});continue}for(;"/**"===e.slice(0,3);){let s=t[j.index+4];if(s&&"/"!==s)break;e=e.slice(3),Z("/**",3)}if("bos"===s.type&&K()){W.type="globstar",W.value+=f,W.output=B(m),j.output=W.output,j.globstar=!0,Z(f);continue}if("slash"===s.type&&"bos"!==s.prev.type&&!i&&K()){j.output=j.output.slice(0,-(s.output+W.output).length),s.output=`(?:${s.output}`,W.type="globstar",W.output=B(m)+(m.strictSlashes?")":"|$)"),W.value+=f,j.globstar=!0,j.output+=s.output+W.output,Z(f);continue}if("slash"===s.type&&"bos"!==s.prev.type&&"/"===e[0]){let t=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(s.output+W.output).length),s.output=`(?:${s.output}`,W.type="globstar",W.output=`${B(m)}${S}|${S}${t})`,W.value+=f,j.output+=s.output+W.output,j.globstar=!0,Z(f+X()),te({type:"slash",value:"/",output:""});continue}if("bos"===s.type&&"/"===e[0]){W.type="globstar",W.value+=f,W.output=`(?:^|${S}|${B(m)}${S})`,j.output=W.output,j.globstar=!0,Z(f+X()),te({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-W.output.length),W.type="globstar",W.output=B(m),W.value+=f,j.output+=W.output,j.globstar=!0,Z(f);continue}let s={type:"star",value:f,output:M};if(!0===m.bash){s.output=".*?",("bos"===W.type||"slash"===W.type)&&(s.output=F+s.output),te(s);continue}if(W&&("bracket"===W.type||"paren"===W.type)&&!0===m.regex){s.output=f,te(s);continue}(j.index===j.start||"slash"===W.type||"dot"===W.type)&&("dot"===W.type?(j.output+=O,W.output+=O):!0===m.dot?(j.output+=L,W.output+=L):(j.output+=F,W.output+=F),"*"!==Q()&&(j.output+=C,W.output+=C)),te(s)}for(;j.brackets>0;){if(!0===m.strictBrackets)throw SyntaxError(p("closing","]"));j.output=o.escapeLast(j.output,"["),tt("brackets")}for(;j.parens>0;){if(!0===m.strictBrackets)throw SyntaxError(p("closing",")"));j.output=o.escapeLast(j.output,"("),tt("parens")}for(;j.braces>0;){if(!0===m.strictBrackets)throw SyntaxError(p("closing","}"));j.output=o.escapeLast(j.output,"{"),tt("braces")}if(!0!==m.strictSlashes&&("star"===W.type||"bracket"===W.type)&&te({type:"maybe_slash",value:"",output:`${S}?`}),!0===j.backtrack)for(let t of(j.output="",j.tokens))j.output+=null!=t.output?t.output:t.value,t.suffix&&(j.output+=t.suffix);return j};g.fastpaths=(t,e)=>{let i={...e},r="number"==typeof i.maxLength?Math.min(n,i.maxLength):n,a=t.length;if(a>r)throw SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${r}`);t=u[t]||t;let{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:c,DOTS_SLASH:h,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:b,STAR:g,START_ANCHOR:m}=s.globChars(i.windows),y=i.dot?d:f,_=i.dot?b:f,x=i.capture?"":"?:",A=!0===i.bash?".*?":g;i.capture&&(A=`(${A})`);let R=t=>!0===t.noglobstar?A:`(${x}(?:(?!${m}${t.dot?h:l}).)*?)`,v=t=>{switch(t){case"*":return`${y}${c}${A}`;case".*":return`${l}${c}${A}`;case"*.*":return`${y}${A}${l}${c}${A}`;case"*/*":return`${y}${A}${p}${c}${_}${A}`;case"**":return y+R(i);case"**/*":return`(?:${y}${R(i)}${p})?${_}${c}${A}`;case"**/*.*":return`(?:${y}${R(i)}${p})?${_}${A}${l}${c}${A}`;case"**/.*":return`(?:${y}${R(i)}${p})?${l}${c}${A}`;default:{let e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;let s=v(e[1]);if(!s)return;return s+l+e[2]}}},$=v(o.removePrefix(t,{negated:!1,prefix:""}));return $&&!0!==i.strictSlashes&&($+=`${p}?`),$},e.exports=g},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/picomatch.js"(e){let s=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/scan.js"),o=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/parse.js"),n=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/utils.js"),i=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/constants.js"),r=(t,e,s=!1)=>{if(Array.isArray(t)){let o=t.map(t=>r(t,e,s));return t=>{for(let e of o){let s=e(t);if(s)return s}return!1}}let o=t&&"object"==typeof t&&!Array.isArray(t)&&t.tokens&&t.input;if(""===t||"string"!=typeof t&&!o)throw TypeError("Expected pattern to be a non-empty string");let n=e||{},i=n.windows,a=o?r.compileRe(t,e):r.makeRe(t,e,!1,!0),u=a.state;delete a.state;let l=()=>!1;if(n.ignore){let t={...e,ignore:null,onMatch:null,onResult:null};l=r(n.ignore,t,s)}let p=(s,o=!1)=>{let{isMatch:p,match:c,output:h}=r.test(s,a,e,{glob:t,posix:i}),f={glob:t,state:u,regex:a,posix:i,input:s,output:h,match:c,isMatch:p};return("function"==typeof n.onResult&&n.onResult(f),!1===p)?(f.isMatch=!1,!!o&&f):l(s)?("function"==typeof n.onIgnore&&n.onIgnore(f),f.isMatch=!1,!!o&&f):("function"==typeof n.onMatch&&n.onMatch(f),!o||f)};return s&&(p.state=u),p};r.test=(t,e,s,{glob:o,posix:i}={})=>{if("string"!=typeof t)throw TypeError("Expected input to be a string");if(""===t)return{isMatch:!1,output:""};let a=s||{},u=a.format||(i?n.toPosixSlashes:null),l=t===o,p=l&&u?u(t):t;return!1===l&&(l=(p=u?u(t):t)===o),(!1===l||!0===a.capture)&&(l=!0===a.matchBase||!0===a.basename?r.matchBase(t,e,s,i):e.exec(p)),{isMatch:!!l,match:l,output:p}},r.matchBase=(t,e,s,o=s&&s.windows)=>(e instanceof RegExp?e:r.makeRe(e,s)).test(n.basename(t,{windows:o})),r.isMatch=(t,e,s)=>r(e,s)(t),r.parse=(t,e)=>Array.isArray(t)?t.map(t=>r.parse(t,e)):o(t,{...e,fastpaths:!1}),r.scan=(t,e)=>s(t,e),r.compileRe=(t,e,s=!1,o=!1)=>{if(!0===s)return t.output;let n=e||{},i=n.contains?"":"^",a=n.contains?"":"$",u=`${i}(?:${t.output})${a}`;t&&!0===t.negated&&(u=`^(?!${u}).*$`);let l=r.toRegex(u,e);return!0===o&&(l.state=t),l},r.makeRe=(t,e={},s=!1,n=!1)=>{if(!t||"string"!=typeof t)throw TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1!==e.fastpaths&&("."===t[0]||"*"===t[0])&&(i.output=o.fastpaths(t,e)),i.output||(i=o(t,e)),r.compileRe(i,e,s,n)},r.toRegex=(t,e)=>{try{let s=e||{};return new RegExp(t,s.flags||(s.nocase?"i":""))}catch(t){if(e&&!0===e.debug)throw t;return/$^/}},r.constants=i,e.exports=r},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/scan.js"(e){let s=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/utils.js"),{CHAR_ASTERISK:o,CHAR_AT:n,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:r,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:f,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:b,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:m}=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/constants.js"),y=t=>t===l||t===i,_=t=>{!0!==t.isPrefix&&(t.depth=t.isGlobstar?1/0:1)};e.exports=(t,e)=>{let x,A,R=e||{},v=t.length-1,$=!0===R.parts||!0===R.scanToEnd,E=[],k=[],S=[],C=t,w=-1,H=0,O=0,L=!1,T=!1,P=!1,D=!1,I=!1,B=!1,F=!1,N=!1,M=!1,j=!1,G=0,U={value:"",depth:0,isGlob:!1},q=()=>w>=v,W=()=>C.charCodeAt(w+1),K=()=>(x=A,C.charCodeAt(++w));for(;w<v;){let t;if((A=K())===i){F=U.backslashes=!0,(A=K())===p&&(B=!0);continue}if(!0===B||A===p){for(G++;!0!==q()&&(A=K());){if(A===i){F=U.backslashes=!0,K();continue}if(A===p){G++;continue}if(!0!==B&&A===a&&(A=K())===a||!0!==B&&A===r){if(L=U.isBrace=!0,P=U.isGlob=!0,j=!0,!0===$)continue;break}if(A===b&&0==--G){B=!1,L=U.isBrace=!0,j=!0;break}}if(!0===$)continue;break}if(A===l){if(E.push(w),k.push(U),U={value:"",depth:0,isGlob:!1},!0===j)continue;if(x===a&&w===H+1){H+=2;continue}O=w+1;continue}if(!0!==R.noext&&!0==(A===f||A===n||A===o||A===d||A===u)&&W()===c){if(P=U.isGlob=!0,D=U.isExtglob=!0,j=!0,A===u&&w===H&&(M=!0),!0===$){for(;!0!==q()&&(A=K());){if(A===i){F=U.backslashes=!0,A=K();continue}if(A===g){P=U.isGlob=!0,j=!0;break}}continue}break}if(A===o){if(x===o&&(I=U.isGlobstar=!0),P=U.isGlob=!0,j=!0,!0===$)continue;break}if(A===d){if(P=U.isGlob=!0,j=!0,!0===$)continue;break}if(A===h){for(;!0!==q()&&(t=K());){if(t===i){F=U.backslashes=!0,K();continue}if(t===m){T=U.isBracket=!0,P=U.isGlob=!0,j=!0;break}}if(!0===$)continue;break}if(!0!==R.nonegate&&A===u&&w===H){N=U.negated=!0,H++;continue}if(!0!==R.noparen&&A===c){if(P=U.isGlob=!0,!0===$){for(;!0!==q()&&(A=K());){if(A===c){F=U.backslashes=!0,A=K();continue}if(A===g){j=!0;break}}continue}break}if(!0===P){if(j=!0,!0===$)continue;break}}!0===R.noext&&(D=!1,P=!1);let Q=C,X="",z="";H>0&&(X=C.slice(0,H),C=C.slice(H),O-=H),Q&&!0===P&&O>0?(Q=C.slice(0,O),z=C.slice(O)):!0===P?(Q="",z=C):Q=C,Q&&""!==Q&&"/"!==Q&&Q!==C&&y(Q.charCodeAt(Q.length-1))&&(Q=Q.slice(0,-1)),!0===R.unescape&&(z&&(z=s.removeBackslashes(z)),Q&&!0===F&&(Q=s.removeBackslashes(Q)));let Z={prefix:X,input:t,start:H,base:Q,glob:z,isBrace:L,isBracket:T,isGlob:P,isExtglob:D,isGlobstar:I,negated:N,negatedExtglob:M};if(!0===R.tokens&&(Z.maxDepth=0,y(A)||k.push(U),Z.tokens=k),!0===R.parts||!0===R.tokens){let e;for(let s=0;s<E.length;s++){let o=e?e+1:H,n=E[s],i=t.slice(o,n);R.tokens&&(0===s&&0!==H?(k[s].isPrefix=!0,k[s].value=X):k[s].value=i,_(k[s]),Z.maxDepth+=k[s].depth),(0!==s||""!==i)&&S.push(i),e=n}if(e&&e+1<t.length){let s=t.slice(e+1);S.push(s),R.tokens&&(k[k.length-1].value=s,_(k[k.length-1]),Z.maxDepth+=k[k.length-1].depth)}Z.slashes=E,Z.parts=S}return Z}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/utils.js"(e,s){let{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:r}=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/lib/constants.js");s.isObject=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),s.hasRegexChars=t=>i.test(t),s.isRegexChar=t=>1===t.length&&s.hasRegexChars(t),s.escapeRegex=t=>t.replace(r,"\\$1"),s.toPosixSlashes=t=>t.replace(o,"/"),s.isWindows=()=>{if("u">typeof navigator&&navigator.platform){let t=navigator.platform.toLowerCase();return"win32"===t||"windows"===t}return"u">typeof process&&!!process.platform&&"win32"===process.platform},s.removeBackslashes=t=>t.replace(n,t=>"\\"===t?"":t),s.escapeLast=(t,e,o)=>{let n=t.lastIndexOf(e,o);return -1===n?t:"\\"===t[n-1]?s.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`},s.removePrefix=(t,e={})=>{let s=t;return s.startsWith("./")&&(s=s.slice(2),e.prefix="./"),s},s.wrapOutput=(t,e={},s={})=>{let o=s.contains?"":"^",n=s.contains?"":"$",i=`${o}(?:${t})${n}`;return!0===e.negated&&(i=`(?:^(?!${i}).*$)`),i},s.basename=(t,{windows:e}={})=>{let s=t.split(e?/[\\/]/:"/"),o=s[s.length-1];return""===o?s[s.length-2]:o}}});var _=y(import.meta.url);let x=/[\\/]/g;function A(t,e){return t.replace(x,e)}let R=/^[a-z]:[\\/]$/i;function v(t,e){let s,{resolvePaths:o,normalizePath:n,pathSeparator:i}=e,r="win32"===process.platform&&t.includes("/")||t.startsWith(".");return o&&(t=b(t)),((n||r)&&((s=h(t)).length>1&&s[s.length-1]===g&&(s=s.substring(0,s.length-1)),t=s),"."===t)?"":A(t[t.length-1]!==i?t+i:t,i)}function $(t,e){return e+t}function E(t){return t}let k=(t,e)=>{e.push(t||".")},S=(t,e,s)=>{let o=t||".";s.every(t=>t(o,!0))&&e.push(o)},C=()=>{},w=(t,e,s,o)=>{o.every(e=>e(t,!1))&&s.files++},H=(t,e,s,o)=>{o.every(e=>e(t,!1))&&e.push(t)},O=(t,e,s,o)=>{s.files++},L=(t,e)=>{e.push(t)},T=()=>{},P=t=>t,D=()=>[""].slice(0,0),I=(t,e,s)=>{t.push({directory:e,files:s,dir:e})},B=()=>{},F=function(t,e,s){let{queue:o,fs:n,options:{suppressErrors:i}}=e;o.enqueue(),n.realpath(t,(r,a)=>{if(r)return o.dequeue(i?null:r,e);n.stat(a,(n,r)=>n?o.dequeue(i?null:n,e):r.isDirectory()&&M(t,a,e)?o.dequeue(null,e):void(s(r,a),o.dequeue(null,e)))})},N=function(t,e,s){let{queue:o,fs:n,options:{suppressErrors:i}}=e;o.enqueue();try{let o=n.realpathSync(t),i=n.statSync(o);if(i.isDirectory()&&M(t,o,e))return;s(i,o)}catch(t){if(!i)throw t}};function M(t,e,s){if(s.options.useRealPaths){var o,n;return o=e,(n=s).visited.includes(o+n.options.pathSeparator)}let i=p(t),r=1;for(;i!==s.root&&r<2;){let t=s.symlinks.get(i);t&&(t===e||t.startsWith(e)||e.startsWith(t))?r++:i=p(i)}return s.symlinks.set(t,e),r>1}let j=t=>t.counts,G=t=>t.groups,U=t=>t.paths,q=t=>t.paths.slice(0,t.options.maxFiles),W=(t,e,s)=>(z(e,s,t.counts,t.options.suppressErrors),null),K=(t,e,s)=>(z(e,s,t.paths,t.options.suppressErrors),null),Q=(t,e,s)=>(z(e,s,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),X=(t,e,s)=>(z(e,s,t.groups,t.options.suppressErrors),null);function z(t,e,s,o){e(t&&!o?t:null,s)}let Z={withFileTypes:!0},Y=(t,e,s,o,n)=>{if(t.queue.enqueue(),o<0)return t.queue.dequeue(null,t);let{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",Z,(e,i=[])=>{n(i,s,o),t.queue.dequeue(t.options.suppressErrors?null:e,t)})},V=(t,e,s,o,n)=>{let{fs:i}=t;if(o<0)return;t.visited.push(e),t.counts.directories++;let r=[];try{r=i.readdirSync(e||".",Z)}catch(e){if(!t.options.suppressErrors)throw e}n(r,s,o)};var J=class{count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},tt=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},te=class{aborted=!1;abort(){this.aborted=!0}},ts=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,o){var n,i;this.isSynchronous=!o,this.callbackInvoker=function(t,e){let{onlyCounts:s,group:o,maxFiles:n}=t;return s?e?j:W:o?e?G:X:n?e?q:Q:e?U:K}(e,this.isSynchronous),this.root=v(t,e),this.state={root:"/"===(n=this.root)||R.test(n)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new tt,options:e,queue:new J((t,e)=>this.callbackInvoker(e,t,o)),symlinks:new Map,visited:[""].slice(0,0),controller:new te,fs:e.fs||s},this.joinPath=function(t,e){let{relativePaths:s,includeBasePath:o}=e;return s&&t?function(s,o){return o.startsWith(t)?o.slice(t.length)+s:A(d(t,o),e.pathSeparator)+e.pathSeparator+s}:o?$:E}(this.root,e),this.pushDirectory=function(t,e){let{includeDirs:s,filters:o,relativePaths:n}=e;if(!s)return C;if(n)return o&&o.length?function(e,s,o){let n=e.substring(t.length)||".";o.every(t=>t(n,!0))&&s.push(n)}:function(e,s){s.push(e.substring(t.length)||".")};return o&&o.length?S:k}(this.root,e),this.pushFile=function(t){let{excludeFiles:e,filters:s,onlyCounts:o}=t;return e?T:s&&s.length?o?w:H:o?O:L}(e),this.getArray=e.group?D:P,this.groupFiles=e.group?I:B,this.resolveSymlink=(i=this.isSynchronous,!e.resolveSymlinks||e.excludeSymlinks?null:i?N:F),this.walkDirectory=this.isSynchronous?V:Y}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=(t,e,s)=>{let{paths:o,options:{filters:n,resolveSymlinks:i,excludeSymlinks:r,exclude:a,maxFiles:u,signal:c,useRealPaths:h,pathSeparator:f},controller:d}=this.state;if(d.aborted||c&&c.aborted||u&&o.length>u)return;let b=this.getArray(this.state.paths);for(let u=0;u<t.length;++u){let c=t[u];if(c.isFile()||c.isSymbolicLink()&&!i&&!r){let t=this.joinPath(c.name,e);this.pushFile(t,b,this.state.counts,n)}else if(c.isDirectory()){let t=e+c.name+this.state.options.pathSeparator;if(a&&a(c.name,t))continue;this.pushDirectory(t,o,n),this.walkDirectory(this.state,t,t,s-1,this.walk)}else if(this.resolveSymlink&&c.isSymbolicLink()){let t=e+c.name;this.resolveSymlink(t,this.state,(e,o)=>{if(e.isDirectory())o=v(o,this.state.options),a&&a(c.name,h?o:t+f)||this.walkDirectory(this.state,o,h?o:t+f,s-1,this.walk);else{let e=l(o=h?o:t),s=v(p(o),this.state.options);o=this.joinPath(e,s),this.pushFile(o,b,this.state.counts,n)}})}}this.groupFiles(this.state.groups,e,b)}};function to(t,e,s){new ts(t,e,s).start()}var tn=class{constructor(t,e){this.root=t,this.options=e}withPromise(){var t,e;return t=this.root,e=this.options,new Promise((s,o)=>{to(t,e,(t,e)=>{if(t)return o(t);s(e)})})}withCallback(t){to(this.root,this.options,t)}sync(){return new ts(this.root,this.options).start()}};let ti=null;try{_.resolve("picomatch"),ti=_("picomatch")}catch{}var tr=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:g,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new tn(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new tn(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){let s=this.globFunction||ti;if(!s)throw Error("Please specify a glob function to use glob matching.");var o=this.globCache[t.join("\0")];return o||(o=s(t,...e),this.globCache[t.join("\0")]=o),this.options.filters.push(t=>o(t)),this}};let ta=t("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picomatch/4.0.5/b8dea5617f0d4573a84f4dd7127438bc2998da20025ab7c9668f49b248d777a8/node_modules/picomatch/index.js"),tu=Array.isArray,tl=/\\/g,tp=/^[A-Za-z]:$/,tc="win32"===process.platform,th=/^(\/?\.\.)+$/,tf=/^[A-Z]:\/$/i,td=tc?t=>tf.test(t):t=>"/"===t;function tb(t,e,s){if(t===e||e.startsWith(`${t}/`)){if(s){let e=t.length+ +!td(t);return(t,s)=>t.slice(e,s?-1:void 0)||"."}let o=e.slice(t.length+1);return o?(t,e)=>{if("."===t)return o;let s=`${o}/${t}`;return e?s.slice(0,-1):s}:(t,e)=>e&&"."!==t?t.slice(0,-1):t}return s?e=>f.relative(t,e)||".":s=>f.relative(t,`${e}/${s}`)||"."}function tg(t){return t.replace(tp,t=>`${t}/`)}let tm={parts:!0};function ty(t){var e;let s=ta.scan(t,tm);return(null==(e=s.parts)?void 0:e.length)?s.parts:[t]}let t_=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,tx=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,tA=tc?t=>t.replace(tx,"\\$&"):t=>t.replace(t_,"\\$&");function tR(...t){console.log(`[tinyglobby ${(new Date).toLocaleTimeString("es")}]`,...t)}function tv(t){return"string"==typeof t?[t]:null!=t?t:[]}let t$=/^(\/?\.\.)+/,tE=/\\(?=[()[\]{}!*+?@|])/g;function tk(t,e,s,o){var n;let i=e.cwd,r=t;"/"===t[t.length-1]&&(r=t.slice(0,-1)),"*"!==r[r.length-1]&&e.expandDirectories&&(r+="/**");let a=tA(i);r=c(r.replace(tE,""))?f.relative(a,r):f.normalize(r);let u=null==(n=t$.exec(r))?void 0:n[0],l=ty(r);if(u){let t=(u.length+1)/3,e=0,o=a.split("/");for(;e<t&&l[e+t]===o[o.length+e-t];)r=r.slice(0,(t-e-1)*3)+r.slice((t-e)*3+l[e+t].length+1)||".",e++;let n=f.join(i,u.slice(3*e));"."!==n[0]&&s.root.length>n.length&&(s.root=tg(n),s.depthOffset=-t+e)}if(!o&&s.depthOffset>=0){null!=s.commonPath||(s.commonPath=l);let t=[],e=Math.min(s.commonPath.length,l.length);for(let o=0;o<e;o++){let e=l[o];if("**"===e&&!l[o+1]){t.pop();break}if(o===l.length-1||e!==s.commonPath[o]||function(t){let e=ta.scan(t);return e.isGlob||e.negated}(e))break;t.push(e)}s.depthOffset=t.length,s.commonPath=t,s.root=tg(t.length>0?f.join(i,...t):i)}return r}function tS(t,e){if(e)for(let s=t.length-1;s>=0;s--)t[s]=e(t[s]);return t}let tC={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function tw(t,e={}){var s;if(t&&(null==e?void 0:e.patterns))throw Error("Cannot pass patterns as both an argument and an option");let l=tu(t)||"string"==typeof t,p=tv(null!=(s=l?t:t.patterns)?s:"**/*"),c=function(t){let e=Object.assign({},t);for(let t in tC)void 0===e[t]&&Object.assign(e,{[t]:tC[t]});return e.cwd=(e.cwd instanceof URL?m(e.cwd):b(e.cwd||process.cwd())).replace(tl,"/"),e.ignore=tv(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||o,readdirSync:e.fs.readdirSync||n,realpath:e.fs.realpath||i,realpathSync:e.fs.realpathSync||r,stat:e.fs.stat||a,statSync:e.fs.statSync||u}),e.debug&&tR("globbing with options:",e),e}(l?e:t);return p.length>0?function(t,e){let s,o=t.cwd,n={root:o,depthOffset:0},i=function(t,e,s){let o=[],n=[];for(let e of t.ignore)e&&("!"!==e[0]||"("===e[1])&&n.push(tk(e,t,s,!0));for(let i of e)i&&("!"!==i[0]||"("===i[1]?o.push(tk(i,t,s,!1)):("!"!==i[1]||"("===i[2])&&n.push(tk(i.slice(1),t,s,!0)));return{match:o,ignore:n}}(t,e,n);t.debug&&tR("internal processing patterns:",i);let{absolute:r,caseSensitiveMatch:a,debug:u,dot:l,followSymbolicLinks:p,onlyDirectories:c}=t,h=n.root.replace(tl,""),d={dot:l,nobrace:!1===t.braceExpansion,nocase:!a,noextglob:!1===t.extglob,noglobstar:!1===t.globstar,posix:!0},b=ta(i.match,d),g=ta(i.ignore,d),m=function(t,e={}){let s,o,n=t.length,i=Array(n),r=Array(n);for(s=0;s<n;s++){let n=ty(t[s]);i[s]=n;let a=n.length,u=Array(a);for(o=0;o<a;o++)u[o]=ta(n[o],e);r[s]=u}return t=>{let a=t.split("/");if(".."===a[0]&&th.test(t))return!0;for(s=0;s<n;s++){let t=i[s],n=r[s],u=a.length,l=Math.min(u,t.length);for(o=0;o<l;){let s=t[o];if(s.includes("/"))return!0;if(!n[o](a[o]))break;if(!e.noglobstar&&"**"===s)return!0;o++}if(o===u)return!0}return!1}}(i.match,d),y=tb(o,h,r),_=r?y:tb(o,h,!0),x=(t,e)=>{let s=_(e,!0);return"."!==s&&!m(s)||g(s)};void 0!==t.deep&&(s=Math.round(t.deep-n.depthOffset));let A=new tr({filters:[u?(t,e)=>{let s=y(t,e),o=b(s)&&!g(s);return o&&tR(`matched ${s}`),o}:(t,e)=>{let s=y(t,e);return b(s)&&!g(s)}],exclude:u?(t,e)=>{let s=x(t,e);return tR(`${s?"skipped":"crawling"} ${e}`),s}:x,fs:t.fs,pathSeparator:"/",relativePaths:!r,resolvePaths:r,includeBasePath:r,resolveSymlinks:p,excludeSymlinks:!p,excludeFiles:c,includeDirs:c||!t.onlyFiles,maxDepth:s,signal:t.signal}).crawl(h);return t.debug&&tR("internal properties:",{...n,root:h}),[A,o!==h&&!r&&function(t,e){if(e.startsWith(`${t}/`)){let s=e.slice(t.length+1);return t=>`${s}/${t}`}return s=>{let o=f.relative(t,`${e}/${s}`);return"/"===s[s.length-1]&&""!==o?`${o}/`:o||"."}}(o,h)]}(c,p):[]}async function tH(t,e){let[s,o]=tw(t,e);return s?tS(await s.withPromise(),o):[]}function tO(t,e){let[s,o]=tw(t,e);return s?tS(s.sync(),o):[]}export{tH as glob,tO as globSync};
|
package/dist/types/config.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { FileDescriptor } from '../../compiled/rspack-manifest-plugin/index
|
|
|
11
11
|
import type { HotSend, RsbuildDevServer } from '../server/devServer.js';
|
|
12
12
|
import type { RsbuildPreviewServer } from '../server/previewServer.js';
|
|
13
13
|
import type { Logger } from '../logger.js';
|
|
14
|
-
import type { EnvironmentContext, ModifyBundlerChainUtils, ModifyChainUtils,
|
|
14
|
+
import type { EnvironmentContext, ModifyBundlerChainUtils, ModifyChainUtils, ReadonlyRoutes, WatchFileEvent } from './hooks.js';
|
|
15
15
|
import type { RsbuildPlugins } from './plugin.js';
|
|
16
16
|
import type { RsbuildEntry, RsbuildMode, RsbuildTarget } from './rsbuild.js';
|
|
17
17
|
import type { Rspack, RspackRule } from './rspack.js';
|
|
@@ -258,7 +258,7 @@ export type HistoryApiFallbackOptions = {
|
|
|
258
258
|
export type PrintUrlsParams = {
|
|
259
259
|
urls: string[];
|
|
260
260
|
port: number;
|
|
261
|
-
routes:
|
|
261
|
+
routes: ReadonlyRoutes;
|
|
262
262
|
protocol: string;
|
|
263
263
|
};
|
|
264
264
|
export type PrintUrlsOptions = {
|
package/dist/types/hooks.d.ts
CHANGED
|
@@ -73,16 +73,17 @@ export type Routes = {
|
|
|
73
73
|
entryName: string;
|
|
74
74
|
pathname: string;
|
|
75
75
|
}[];
|
|
76
|
+
export type ReadonlyRoutes = ReadonlyArray<Readonly<Routes[number]>>;
|
|
76
77
|
export type OnAfterStartDevServerFn = (params: {
|
|
77
78
|
port: number;
|
|
78
|
-
routes:
|
|
79
|
+
routes: ReadonlyRoutes;
|
|
79
80
|
/**
|
|
80
81
|
* Context information for all environments.
|
|
81
82
|
*/ environments: Record<string, EnvironmentContext>;
|
|
82
83
|
}) => MaybePromise<void>;
|
|
83
84
|
export type OnAfterStartPreviewServerFn = (params: {
|
|
84
85
|
port: number;
|
|
85
|
-
routes:
|
|
86
|
+
routes: ReadonlyRoutes;
|
|
86
87
|
/**
|
|
87
88
|
* Context information for all environments.
|
|
88
89
|
*/ environments: Record<string, EnvironmentContext>;
|