exploria-ui 2026.2.31
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/LICENSE +194 -0
- package/README.md +26 -0
- package/dist/EDomUtil-Bm3Zqw96.js +65 -0
- package/dist/ESizeOb-VeHF4XTz.js +44 -0
- package/dist/components/advanced/EParallaxScrolling/EParallaxScrolling.vue.d.ts +7 -0
- package/dist/components/advanced/ERollingFollow/ERollingFollow.vue.d.ts +30 -0
- package/dist/components/advanced/EVirtualList/EVirtualList.vue.d.ts +24 -0
- package/dist/components/advanced/EWatermark/EWatermark.vue.d.ts +27 -0
- package/dist/components/basic/EButton/EButton.vue.d.ts +32 -0
- package/dist/components/basic/ESvgIcon/ESvgIcon.vue.d.ts +5 -0
- package/dist/components/basic/EUnderLine/EUnderLine.vue.d.ts +17 -0
- package/dist/components/data/EAvatar/EAvatar.vue.d.ts +5 -0
- package/dist/components/data/ECalendar.vue.d.ts +9 -0
- package/dist/components/data/ECarousel/ECarousel.vue.d.ts +36 -0
- package/dist/components/data/ECarousel/ECarouselItem.vue.d.ts +21 -0
- package/dist/components/data/ECodeCollapse/ECodeCollapse.vue.d.ts +25 -0
- package/dist/components/data/ECollapse/ECollapse.vue.d.ts +24 -0
- package/dist/components/data/EImage.vue.d.ts +9 -0
- package/dist/components/data/EList.vue.d.ts +31 -0
- package/dist/components/data/EMediaViewer/EMediaViewer.d.ts +4 -0
- package/dist/components/data/EMediaViewer/EMediaViewer.vue.d.ts +13 -0
- package/dist/components/data/EProgress.vue.d.ts +22 -0
- package/dist/components/data/ERollingPagination.vue.d.ts +33 -0
- package/dist/components/data/ESkeleton/ESkeleton.vue.d.ts +2 -0
- package/dist/components/data/ETable/ETable.vue.d.ts +26 -0
- package/dist/components/data/ETable/ETableColumn.vue.d.ts +3 -0
- package/dist/components/data/ETimeline/ETimeline.vue.d.ts +17 -0
- package/dist/components/data/ETimeline/ETimelineItem.vue.d.ts +25 -0
- package/dist/components/feedback/EDialog/EDialog.vue.d.ts +43 -0
- package/dist/components/feedback/EDrawer/EDrawer.vue.d.ts +44 -0
- package/dist/components/feedback/EMessage/EMessage.d.ts +10 -0
- package/dist/components/feedback/EMessage/EMessage.vue.d.ts +8 -0
- package/dist/components/feedback/EMessageBox/EMessageBox.d.ts +5 -0
- package/dist/components/feedback/EMessageBox/EMessageBox.vue.d.ts +17 -0
- package/dist/components/feedback/ENotification/ENotification.d.ts +32 -0
- package/dist/components/feedback/ENotification/ENotification.vue.d.ts +14 -0
- package/dist/components/feedback/EPopover.vue.d.ts +35 -0
- package/dist/components/feedback/ETooltip.vue.d.ts +29 -0
- package/dist/components/form/ECheckbox.vue.d.ts +26 -0
- package/dist/components/form/EColorPicker.vue.d.ts +14 -0
- package/dist/components/form/EConditionGroup/EConditionGroup.vue.d.ts +31 -0
- package/dist/components/form/EFileSelector.vue.d.ts +30 -0
- package/dist/components/form/EForm.vue.d.ts +24 -0
- package/dist/components/form/EFormItem.vue.d.ts +24 -0
- package/dist/components/form/EInput/EInput.vue.d.ts +45 -0
- package/dist/components/form/ERadio.vue.d.ts +26 -0
- package/dist/components/form/ESelect/ESelect.vue.d.ts +24 -0
- package/dist/components/form/ESlider.vue.d.ts +18 -0
- package/dist/components/form/ETimePicker.vue.d.ts +13 -0
- package/dist/components/geometry/ECube.vue.d.ts +2 -0
- package/dist/components/hooks/usePosition.d.ts +27 -0
- package/dist/components/index.d.ts +60 -0
- package/dist/components/index.js +19368 -0
- package/dist/components/layout/EContainerWithScrollbar.vue.d.ts +26 -0
- package/dist/components/layout/EDivider.vue.d.ts +20 -0
- package/dist/components/layout/EScrollX.vue.d.ts +21 -0
- package/dist/components/layout/EScrollbar.vue.d.ts +13 -0
- package/dist/components/navigation/EDropdown.vue.d.ts +35 -0
- package/dist/components/navigation/ETabs/ETabPane.vue.d.ts +21 -0
- package/dist/components/navigation/ETabs/ETabs.vue.d.ts +33 -0
- package/dist/directives/EDrag.d.ts +5 -0
- package/dist/directives/ESizeOb.d.ts +9 -0
- package/dist/directives/ESlideIn.d.ts +5 -0
- package/dist/directives/index.d.ts +4 -0
- package/dist/directives/index.js +23 -0
- package/dist/index.css +2 -0
- package/dist/plugins/EPreloadImageBuilder.d.ts +5 -0
- package/dist/plugins/ESvgPolyfill.d.ts +3 -0
- package/dist/plugins/ESvgSpriteBuilder.d.ts +6 -0
- package/dist/plugins/index.d.ts +4 -0
- package/dist/plugins/index.js +3127 -0
- package/dist/utils/index.js +2 -0
- package/package.json +65 -0
- package/src/plugins/EPreloadImageBuilder.ts +66 -0
- package/src/plugins/ESvgPolyfill.ts +29 -0
- package/src/plugins/ESvgSpriteBuilder.ts +49 -0
- package/src/plugins/index.ts +5 -0
|
@@ -0,0 +1,3127 @@
|
|
|
1
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __copyProps = (e, i, o, s) => {
|
|
2
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = __getOwnPropNames(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !__hasOwnProp.call(e, d) && d !== o && __defProp(e, d, {
|
|
3
|
+
get: ((e) => i[e]).bind(null, d),
|
|
4
|
+
enumerable: !(s = __getOwnPropDesc(i, d)) || s.enumerable
|
|
5
|
+
});
|
|
6
|
+
return e;
|
|
7
|
+
}, __toESM = (n, r, a) => (a = n == null ? {} : __create(__getProtoOf(n)), __copyProps(r || !n || !n.__esModule ? __defProp(a, "default", {
|
|
8
|
+
value: n,
|
|
9
|
+
enumerable: !0
|
|
10
|
+
}) : a, n)), require_array = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
11
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.splitWhen = e.flatten = void 0;
|
|
12
|
+
function t(e) {
|
|
13
|
+
return e.reduce((e, t) => [].concat(e, t), []);
|
|
14
|
+
}
|
|
15
|
+
e.flatten = t;
|
|
16
|
+
function n(e, t) {
|
|
17
|
+
let n = [[]], r = 0;
|
|
18
|
+
for (let i of e) t(i) ? (r++, n[r] = []) : n[r].push(i);
|
|
19
|
+
return n;
|
|
20
|
+
}
|
|
21
|
+
e.splitWhen = n;
|
|
22
|
+
})), require_errno = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
23
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEnoentCodeError = void 0;
|
|
24
|
+
function t(e) {
|
|
25
|
+
return e.code === "ENOENT";
|
|
26
|
+
}
|
|
27
|
+
e.isEnoentCodeError = t;
|
|
28
|
+
})), require_fs$3 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
29
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.createDirentFromStats = void 0;
|
|
30
|
+
var t = class {
|
|
31
|
+
constructor(e, t) {
|
|
32
|
+
this.name = e, this.isBlockDevice = t.isBlockDevice.bind(t), this.isCharacterDevice = t.isCharacterDevice.bind(t), this.isDirectory = t.isDirectory.bind(t), this.isFIFO = t.isFIFO.bind(t), this.isFile = t.isFile.bind(t), this.isSocket = t.isSocket.bind(t), this.isSymbolicLink = t.isSymbolicLink.bind(t);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function n(e, n) {
|
|
36
|
+
return new t(e, n);
|
|
37
|
+
}
|
|
38
|
+
e.createDirentFromStats = n;
|
|
39
|
+
})), require___vite_browser_external = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
40
|
+
t.exports = {};
|
|
41
|
+
})), require_path = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
42
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.convertPosixPathToPattern = e.convertWindowsPathToPattern = e.convertPathToPattern = e.escapePosixPath = e.escapeWindowsPath = e.escape = e.removeLeadingDotSegment = e.makeAbsolute = e.unixify = void 0;
|
|
43
|
+
var t = require___vite_browser_external(), n = require___vite_browser_external(), r = t.platform() === "win32", i = 2, a = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g, o = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g, s = /^\\\\([.?])/, c = /\\(?![!()+@[\]{}])/g;
|
|
44
|
+
function l(e) {
|
|
45
|
+
return e.replace(/\\/g, "/");
|
|
46
|
+
}
|
|
47
|
+
e.unixify = l;
|
|
48
|
+
function u(e, t) {
|
|
49
|
+
return n.resolve(e, t);
|
|
50
|
+
}
|
|
51
|
+
e.makeAbsolute = u;
|
|
52
|
+
function d(e) {
|
|
53
|
+
if (e.charAt(0) === ".") {
|
|
54
|
+
let t = e.charAt(1);
|
|
55
|
+
if (t === "/" || t === "\\") return e.slice(i);
|
|
56
|
+
}
|
|
57
|
+
return e;
|
|
58
|
+
}
|
|
59
|
+
e.removeLeadingDotSegment = d, e.escape = r ? p : m;
|
|
60
|
+
function p(e) {
|
|
61
|
+
return e.replace(o, "\\$2");
|
|
62
|
+
}
|
|
63
|
+
e.escapeWindowsPath = p;
|
|
64
|
+
function m(e) {
|
|
65
|
+
return e.replace(a, "\\$2");
|
|
66
|
+
}
|
|
67
|
+
e.escapePosixPath = m, e.convertPathToPattern = r ? h : g;
|
|
68
|
+
function h(e) {
|
|
69
|
+
return p(e).replace(s, "//$1").replace(c, "/");
|
|
70
|
+
}
|
|
71
|
+
e.convertWindowsPathToPattern = h;
|
|
72
|
+
function g(e) {
|
|
73
|
+
return m(e);
|
|
74
|
+
}
|
|
75
|
+
e.convertPosixPathToPattern = g;
|
|
76
|
+
})), require_is_extglob = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
77
|
+
t.exports = function(e) {
|
|
78
|
+
if (typeof e != "string" || e === "") return !1;
|
|
79
|
+
for (var t; t = /(\\).|([@?!+*]\(.*\))/g.exec(e);) {
|
|
80
|
+
if (t[2]) return !0;
|
|
81
|
+
e = e.slice(t.index + t[0].length);
|
|
82
|
+
}
|
|
83
|
+
return !1;
|
|
84
|
+
};
|
|
85
|
+
})), require_is_glob = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
86
|
+
var n = require_is_extglob(), r = {
|
|
87
|
+
"{": "}",
|
|
88
|
+
"(": ")",
|
|
89
|
+
"[": "]"
|
|
90
|
+
}, i = function(e) {
|
|
91
|
+
if (e[0] === "!") return !0;
|
|
92
|
+
for (var t = 0, n = -2, i = -2, a = -2, o = -2, s = -2; t < e.length;) {
|
|
93
|
+
if (e[t] === "*" || e[t + 1] === "?" && /[\].+)]/.test(e[t]) || i !== -1 && e[t] === "[" && e[t + 1] !== "]" && (i < t && (i = e.indexOf("]", t)), i > t && (s === -1 || s > i || (s = e.indexOf("\\", t), s === -1 || s > i))) || a !== -1 && e[t] === "{" && e[t + 1] !== "}" && (a = e.indexOf("}", t), a > t && (s = e.indexOf("\\", t), s === -1 || s > a)) || o !== -1 && e[t] === "(" && e[t + 1] === "?" && /[:!=]/.test(e[t + 2]) && e[t + 3] !== ")" && (o = e.indexOf(")", t), o > t && (s = e.indexOf("\\", t), s === -1 || s > o)) || n !== -1 && e[t] === "(" && e[t + 1] !== "|" && (n < t && (n = e.indexOf("|", t)), n !== -1 && e[n + 1] !== ")" && (o = e.indexOf(")", n), o > n && (s = e.indexOf("\\", n), s === -1 || s > o)))) return !0;
|
|
94
|
+
if (e[t] === "\\") {
|
|
95
|
+
var c = e[t + 1];
|
|
96
|
+
t += 2;
|
|
97
|
+
var l = r[c];
|
|
98
|
+
if (l) {
|
|
99
|
+
var u = e.indexOf(l, t);
|
|
100
|
+
u !== -1 && (t = u + 1);
|
|
101
|
+
}
|
|
102
|
+
if (e[t] === "!") return !0;
|
|
103
|
+
} else t++;
|
|
104
|
+
}
|
|
105
|
+
return !1;
|
|
106
|
+
}, a = function(e) {
|
|
107
|
+
if (e[0] === "!") return !0;
|
|
108
|
+
for (var t = 0; t < e.length;) {
|
|
109
|
+
if (/[*?{}()[\]]/.test(e[t])) return !0;
|
|
110
|
+
if (e[t] === "\\") {
|
|
111
|
+
var n = e[t + 1];
|
|
112
|
+
t += 2;
|
|
113
|
+
var i = r[n];
|
|
114
|
+
if (i) {
|
|
115
|
+
var a = e.indexOf(i, t);
|
|
116
|
+
a !== -1 && (t = a + 1);
|
|
117
|
+
}
|
|
118
|
+
if (e[t] === "!") return !0;
|
|
119
|
+
} else t++;
|
|
120
|
+
}
|
|
121
|
+
return !1;
|
|
122
|
+
};
|
|
123
|
+
t.exports = function(e, t) {
|
|
124
|
+
if (typeof e != "string" || e === "") return !1;
|
|
125
|
+
if (n(e)) return !0;
|
|
126
|
+
var r = i;
|
|
127
|
+
return t && t.strict === !1 && (r = a), r(e);
|
|
128
|
+
};
|
|
129
|
+
})), require_glob_parent = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
130
|
+
var n = require_is_glob(), r = require___vite_browser_external().posix.dirname, i = require___vite_browser_external().platform() === "win32", a = "/", o = /\\/g, s = /[\{\[].*[\}\]]$/, c = /(^|[^\\])([\{\[]|\([^\)]+$)/, l = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
|
|
131
|
+
t.exports = function(e, t) {
|
|
132
|
+
Object.assign({ flipBackslashes: !0 }, t).flipBackslashes && i && e.indexOf(a) < 0 && (e = e.replace(o, a)), s.test(e) && (e += a), e += "a";
|
|
133
|
+
do
|
|
134
|
+
e = r(e);
|
|
135
|
+
while (n(e) || c.test(e));
|
|
136
|
+
return e.replace(l, "$1");
|
|
137
|
+
};
|
|
138
|
+
})), require_utils$3 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
139
|
+
e.isInteger = (e) => typeof e == "number" ? Number.isInteger(e) : typeof e == "string" && e.trim() !== "" ? Number.isInteger(Number(e)) : !1, e.find = (e, t) => e.nodes.find((e) => e.type === t), e.exceedsLimit = (t, n, r = 1, i) => i === !1 || !e.isInteger(t) || !e.isInteger(n) ? !1 : (Number(n) - Number(t)) / Number(r) >= i, e.escapeNode = (e, t = 0, n) => {
|
|
140
|
+
let r = e.nodes[t];
|
|
141
|
+
r && (n && r.type === n || r.type === "open" || r.type === "close") && r.escaped !== !0 && (r.value = "\\" + r.value, r.escaped = !0);
|
|
142
|
+
}, e.encloseBrace = (e) => e.type === "brace" ? e.commas >> 0 + e.ranges >> 0 ? !1 : (e.invalid = !0, !0) : !1, e.isInvalidBrace = (e) => e.type === "brace" ? e.invalid === !0 || e.dollar ? !0 : !(e.commas >> 0 + e.ranges >> 0) || e.open !== !0 || e.close !== !0 ? (e.invalid = !0, !0) : !1 : !1, e.isOpenOrClose = (e) => e.type === "open" || e.type === "close" ? !0 : e.open === !0 || e.close === !0, e.reduce = (e) => e.reduce((e, t) => (t.type === "text" && e.push(t.value), t.type === "range" && (t.type = "text"), e), []), e.flatten = (...e) => {
|
|
143
|
+
let t = [], n = (e) => {
|
|
144
|
+
for (let r = 0; r < e.length; r++) {
|
|
145
|
+
let i = e[r];
|
|
146
|
+
if (Array.isArray(i)) {
|
|
147
|
+
n(i);
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
i !== void 0 && t.push(i);
|
|
151
|
+
}
|
|
152
|
+
return t;
|
|
153
|
+
};
|
|
154
|
+
return n(e), t;
|
|
155
|
+
};
|
|
156
|
+
})), require_stringify = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
157
|
+
var n = require_utils$3();
|
|
158
|
+
t.exports = (e, t = {}) => {
|
|
159
|
+
let r = (e, i = {}) => {
|
|
160
|
+
let a = t.escapeInvalid && n.isInvalidBrace(i), o = e.invalid === !0 && t.escapeInvalid === !0, s = "";
|
|
161
|
+
if (e.value) return (a || o) && n.isOpenOrClose(e) ? "\\" + e.value : e.value;
|
|
162
|
+
if (e.value) return e.value;
|
|
163
|
+
if (e.nodes) for (let t of e.nodes) s += r(t);
|
|
164
|
+
return s;
|
|
165
|
+
};
|
|
166
|
+
return r(e);
|
|
167
|
+
};
|
|
168
|
+
})), require_is_number = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
169
|
+
t.exports = function(e) {
|
|
170
|
+
return typeof e == "number" ? e - e === 0 : typeof e == "string" && e.trim() !== "" ? Number.isFinite ? Number.isFinite(+e) : isFinite(+e) : !1;
|
|
171
|
+
};
|
|
172
|
+
})), require_to_regex_range = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
173
|
+
var n = require_is_number(), r = (e, t, a) => {
|
|
174
|
+
if (n(e) === !1) throw TypeError("toRegexRange: expected the first argument to be a number");
|
|
175
|
+
if (t === void 0 || e === t) return String(e);
|
|
176
|
+
if (n(t) === !1) throw TypeError("toRegexRange: expected the second argument to be a number.");
|
|
177
|
+
let o = {
|
|
178
|
+
relaxZeros: !0,
|
|
179
|
+
...a
|
|
180
|
+
};
|
|
181
|
+
typeof o.strictZeros == "boolean" && (o.relaxZeros = o.strictZeros === !1);
|
|
182
|
+
let c = String(o.relaxZeros), l = String(o.shorthand), u = String(o.capture), d = String(o.wrap), f = e + ":" + t + "=" + c + l + u + d;
|
|
183
|
+
if (r.cache.hasOwnProperty(f)) return r.cache[f].result;
|
|
184
|
+
let p = Math.min(e, t), m = Math.max(e, t);
|
|
185
|
+
if (Math.abs(p - m) === 1) {
|
|
186
|
+
let n = e + "|" + t;
|
|
187
|
+
return o.capture ? `(${n})` : o.wrap === !1 ? n : `(?:${n})`;
|
|
188
|
+
}
|
|
189
|
+
let h = g(e) || g(t), _ = {
|
|
190
|
+
min: e,
|
|
191
|
+
max: t,
|
|
192
|
+
a: p,
|
|
193
|
+
b: m
|
|
194
|
+
}, v = [], y = [];
|
|
195
|
+
return h && (_.isPadded = h, _.maxLen = String(_.max).length), p < 0 && (y = s(m < 0 ? Math.abs(m) : 1, Math.abs(p), _, o), p = _.a = 0), m >= 0 && (v = s(p, m, _, o)), _.negatives = y, _.positives = v, _.result = i(y, v, o), o.capture === !0 ? _.result = `(${_.result})` : o.wrap !== !1 && v.length + y.length > 1 && (_.result = `(?:${_.result})`), r.cache[f] = _, _.result;
|
|
196
|
+
};
|
|
197
|
+
function i(e, t, n) {
|
|
198
|
+
let r = c(e, t, "-", !1, n) || [], i = c(t, e, "", !1, n) || [], a = c(e, t, "-?", !0, n) || [];
|
|
199
|
+
return r.concat(a).concat(i).join("|");
|
|
200
|
+
}
|
|
201
|
+
function a(e, t) {
|
|
202
|
+
let n = 1, r = 1, i = f(e, n), a = new Set([t]);
|
|
203
|
+
for (; e <= i && i <= t;) a.add(i), n += 1, i = f(e, n);
|
|
204
|
+
for (i = p(t + 1, r) - 1; e < i && i <= t;) a.add(i), r += 1, i = p(t + 1, r) - 1;
|
|
205
|
+
return a = [...a], a.sort(u), a;
|
|
206
|
+
}
|
|
207
|
+
function o(e, t, n) {
|
|
208
|
+
if (e === t) return {
|
|
209
|
+
pattern: e,
|
|
210
|
+
count: [],
|
|
211
|
+
digits: 0
|
|
212
|
+
};
|
|
213
|
+
let r = l(e, t), i = r.length, a = "", o = 0;
|
|
214
|
+
for (let e = 0; e < i; e++) {
|
|
215
|
+
let [t, i] = r[e];
|
|
216
|
+
t === i ? a += t : t !== "0" || i !== "9" ? a += h(t, i, n) : o++;
|
|
217
|
+
}
|
|
218
|
+
return o && (a += n.shorthand === !0 ? "\\d" : "[0-9]"), {
|
|
219
|
+
pattern: a,
|
|
220
|
+
count: [o],
|
|
221
|
+
digits: i
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function s(e, t, n, r) {
|
|
225
|
+
let i = a(e, t), s = [], c = e, l;
|
|
226
|
+
for (let e = 0; e < i.length; e++) {
|
|
227
|
+
let t = i[e], a = o(String(c), String(t), r), u = "";
|
|
228
|
+
if (!n.isPadded && l && l.pattern === a.pattern) {
|
|
229
|
+
l.count.length > 1 && l.count.pop(), l.count.push(a.count[0]), l.string = l.pattern + m(l.count), c = t + 1;
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
n.isPadded && (u = _(t, n, r)), a.string = u + a.pattern + m(a.count), s.push(a), c = t + 1, l = a;
|
|
233
|
+
}
|
|
234
|
+
return s;
|
|
235
|
+
}
|
|
236
|
+
function c(e, t, n, r, i) {
|
|
237
|
+
let a = [];
|
|
238
|
+
for (let i of e) {
|
|
239
|
+
let { string: e } = i;
|
|
240
|
+
!r && !d(t, "string", e) && a.push(n + e), r && d(t, "string", e) && a.push(n + e);
|
|
241
|
+
}
|
|
242
|
+
return a;
|
|
243
|
+
}
|
|
244
|
+
function l(e, t) {
|
|
245
|
+
let n = [];
|
|
246
|
+
for (let r = 0; r < e.length; r++) n.push([e[r], t[r]]);
|
|
247
|
+
return n;
|
|
248
|
+
}
|
|
249
|
+
function u(e, t) {
|
|
250
|
+
return e > t ? 1 : t > e ? -1 : 0;
|
|
251
|
+
}
|
|
252
|
+
function d(e, t, n) {
|
|
253
|
+
return e.some((e) => e[t] === n);
|
|
254
|
+
}
|
|
255
|
+
function f(e, t) {
|
|
256
|
+
return Number(String(e).slice(0, -t) + "9".repeat(t));
|
|
257
|
+
}
|
|
258
|
+
function p(e, t) {
|
|
259
|
+
return e - e % 10 ** t;
|
|
260
|
+
}
|
|
261
|
+
function m(e) {
|
|
262
|
+
let [t = 0, n = ""] = e;
|
|
263
|
+
return n || t > 1 ? `{${t + (n ? "," + n : "")}}` : "";
|
|
264
|
+
}
|
|
265
|
+
function h(e, t, n) {
|
|
266
|
+
return `[${e}${t - e === 1 ? "" : "-"}${t}]`;
|
|
267
|
+
}
|
|
268
|
+
function g(e) {
|
|
269
|
+
return /^-?(0+)\d/.test(e);
|
|
270
|
+
}
|
|
271
|
+
function _(e, t, n) {
|
|
272
|
+
if (!t.isPadded) return e;
|
|
273
|
+
let r = Math.abs(t.maxLen - String(e).length), i = n.relaxZeros !== !1;
|
|
274
|
+
switch (r) {
|
|
275
|
+
case 0: return "";
|
|
276
|
+
case 1: return i ? "0?" : "0";
|
|
277
|
+
case 2: return i ? "0{0,2}" : "00";
|
|
278
|
+
default: return i ? `0{0,${r}}` : `0{${r}}`;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
r.cache = {}, r.clearCache = () => r.cache = {}, t.exports = r;
|
|
282
|
+
})), require_fill_range = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
283
|
+
var n = require___vite_browser_external(), r = require_to_regex_range(), i = (e) => typeof e == "object" && !!e && !Array.isArray(e), a = (e) => (t) => e === !0 ? Number(t) : String(t), o = (e) => typeof e == "number" || typeof e == "string" && e !== "", s = (e) => Number.isInteger(+e), c = (e) => {
|
|
284
|
+
let t = `${e}`, n = -1;
|
|
285
|
+
if (t[0] === "-" && (t = t.slice(1)), t === "0") return !1;
|
|
286
|
+
for (; t[++n] === "0";);
|
|
287
|
+
return n > 0;
|
|
288
|
+
}, l = (e, t, n) => typeof e == "string" || typeof t == "string" ? !0 : n.stringify === !0, u = (e, t, n) => {
|
|
289
|
+
if (t > 0) {
|
|
290
|
+
let n = e[0] === "-" ? "-" : "";
|
|
291
|
+
n && (e = e.slice(1)), e = n + e.padStart(n ? t - 1 : t, "0");
|
|
292
|
+
}
|
|
293
|
+
return n === !1 ? String(e) : e;
|
|
294
|
+
}, d = (e, t) => {
|
|
295
|
+
let n = e[0] === "-" ? "-" : "";
|
|
296
|
+
for (n && (e = e.slice(1), t--); e.length < t;) e = "0" + e;
|
|
297
|
+
return n ? "-" + e : e;
|
|
298
|
+
}, p = (e, t, n) => {
|
|
299
|
+
e.negatives.sort((e, t) => e < t ? -1 : e > t ? 1 : 0), e.positives.sort((e, t) => e < t ? -1 : e > t ? 1 : 0);
|
|
300
|
+
let r = t.capture ? "" : "?:", i = "", a = "", o;
|
|
301
|
+
return e.positives.length && (i = e.positives.map((e) => d(String(e), n)).join("|")), e.negatives.length && (a = `-(${r}${e.negatives.map((e) => d(String(e), n)).join("|")})`), o = i && a ? `${i}|${a}` : i || a, t.wrap ? `(${r}${o})` : o;
|
|
302
|
+
}, m = (e, t, n, i) => {
|
|
303
|
+
if (n) return r(e, t, {
|
|
304
|
+
wrap: !1,
|
|
305
|
+
...i
|
|
306
|
+
});
|
|
307
|
+
let a = String.fromCharCode(e);
|
|
308
|
+
return e === t ? a : `[${a}-${String.fromCharCode(t)}]`;
|
|
309
|
+
}, h = (e, t, n) => {
|
|
310
|
+
if (Array.isArray(e)) {
|
|
311
|
+
let t = n.wrap === !0, r = n.capture ? "" : "?:";
|
|
312
|
+
return t ? `(${r}${e.join("|")})` : e.join("|");
|
|
313
|
+
}
|
|
314
|
+
return r(e, t, n);
|
|
315
|
+
}, g = (...e) => /* @__PURE__ */ RangeError("Invalid range arguments: " + n.inspect(...e)), _ = (e, t, n) => {
|
|
316
|
+
if (n.strictRanges === !0) throw g([e, t]);
|
|
317
|
+
return [];
|
|
318
|
+
}, v = (e, t) => {
|
|
319
|
+
if (t.strictRanges === !0) throw TypeError(`Expected step "${e}" to be a number`);
|
|
320
|
+
return [];
|
|
321
|
+
}, y = (e, t, n = 1, r = {}) => {
|
|
322
|
+
let i = Number(e), o = Number(t);
|
|
323
|
+
if (!Number.isInteger(i) || !Number.isInteger(o)) {
|
|
324
|
+
if (r.strictRanges === !0) throw g([e, t]);
|
|
325
|
+
return [];
|
|
326
|
+
}
|
|
327
|
+
i === 0 && (i = 0), o === 0 && (o = 0);
|
|
328
|
+
let s = i > o, f = String(e), _ = String(t), v = String(n);
|
|
329
|
+
n = Math.max(Math.abs(n), 1);
|
|
330
|
+
let y = c(f) || c(_) || c(v), b = y ? Math.max(f.length, _.length, v.length) : 0, x = y === !1 && l(e, t, r) === !1, S = r.transform || a(x);
|
|
331
|
+
if (r.toRegex && n === 1) return m(d(e, b), d(t, b), !0, r);
|
|
332
|
+
let C = {
|
|
333
|
+
negatives: [],
|
|
334
|
+
positives: []
|
|
335
|
+
}, w = (e) => C[e < 0 ? "negatives" : "positives"].push(Math.abs(e)), T = [], E = 0;
|
|
336
|
+
for (; s ? i >= o : i <= o;) r.toRegex === !0 && n > 1 ? w(i) : T.push(u(S(i, E), b, x)), i = s ? i - n : i + n, E++;
|
|
337
|
+
return r.toRegex === !0 ? n > 1 ? p(C, r, b) : h(T, null, {
|
|
338
|
+
wrap: !1,
|
|
339
|
+
...r
|
|
340
|
+
}) : T;
|
|
341
|
+
}, x = (e, t, n = 1, r = {}) => {
|
|
342
|
+
if (!s(e) && e.length > 1 || !s(t) && t.length > 1) return _(e, t, r);
|
|
343
|
+
let i = r.transform || ((e) => String.fromCharCode(e)), a = `${e}`.charCodeAt(0), o = `${t}`.charCodeAt(0), c = a > o, l = Math.min(a, o), u = Math.max(a, o);
|
|
344
|
+
if (r.toRegex && n === 1) return m(l, u, !1, r);
|
|
345
|
+
let d = [], f = 0;
|
|
346
|
+
for (; c ? a >= o : a <= o;) d.push(i(a, f)), a = c ? a - n : a + n, f++;
|
|
347
|
+
return r.toRegex === !0 ? h(d, null, {
|
|
348
|
+
wrap: !1,
|
|
349
|
+
options: r
|
|
350
|
+
}) : d;
|
|
351
|
+
}, S = (e, t, n, r = {}) => {
|
|
352
|
+
if (t == null && o(e)) return [e];
|
|
353
|
+
if (!o(e) || !o(t)) return _(e, t, r);
|
|
354
|
+
if (typeof n == "function") return S(e, t, 1, { transform: n });
|
|
355
|
+
if (i(n)) return S(e, t, 0, n);
|
|
356
|
+
let a = { ...r };
|
|
357
|
+
return a.capture === !0 && (a.wrap = !0), n = n || a.step || 1, s(n) ? s(e) && s(t) ? y(e, t, n, a) : x(e, t, Math.max(Math.abs(n), 1), a) : n != null && !i(n) ? v(n, a) : S(e, t, 1, n);
|
|
358
|
+
};
|
|
359
|
+
t.exports = S;
|
|
360
|
+
})), require_compile = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
361
|
+
var n = require_fill_range(), r = require_utils$3();
|
|
362
|
+
t.exports = (e, t = {}) => {
|
|
363
|
+
let i = (e, a = {}) => {
|
|
364
|
+
let o = r.isInvalidBrace(a), s = e.invalid === !0 && t.escapeInvalid === !0, c = o === !0 || s === !0, l = t.escapeInvalid === !0 ? "\\" : "", u = "";
|
|
365
|
+
if (e.isOpen === !0) return l + e.value;
|
|
366
|
+
if (e.isClose === !0) return console.log("node.isClose", l, e.value), l + e.value;
|
|
367
|
+
if (e.type === "open") return c ? l + e.value : "(";
|
|
368
|
+
if (e.type === "close") return c ? l + e.value : ")";
|
|
369
|
+
if (e.type === "comma") return e.prev.type === "comma" ? "" : c ? e.value : "|";
|
|
370
|
+
if (e.value) return e.value;
|
|
371
|
+
if (e.nodes && e.ranges > 0) {
|
|
372
|
+
let i = r.reduce(e.nodes), a = n(...i, {
|
|
373
|
+
...t,
|
|
374
|
+
wrap: !1,
|
|
375
|
+
toRegex: !0,
|
|
376
|
+
strictZeros: !0
|
|
377
|
+
});
|
|
378
|
+
if (a.length !== 0) return i.length > 1 && a.length > 1 ? `(${a})` : a;
|
|
379
|
+
}
|
|
380
|
+
if (e.nodes) for (let t of e.nodes) u += i(t, e);
|
|
381
|
+
return u;
|
|
382
|
+
};
|
|
383
|
+
return i(e);
|
|
384
|
+
};
|
|
385
|
+
})), require_expand = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
386
|
+
var n = require_fill_range(), r = require_stringify(), i = require_utils$3(), a = (e = "", t = "", n = !1) => {
|
|
387
|
+
let r = [];
|
|
388
|
+
if (e = [].concat(e), t = [].concat(t), !t.length) return e;
|
|
389
|
+
if (!e.length) return n ? i.flatten(t).map((e) => `{${e}}`) : t;
|
|
390
|
+
for (let i of e) if (Array.isArray(i)) for (let e of i) r.push(a(e, t, n));
|
|
391
|
+
else for (let e of t) n === !0 && typeof e == "string" && (e = `{${e}}`), r.push(Array.isArray(e) ? a(i, e, n) : i + e);
|
|
392
|
+
return i.flatten(r);
|
|
393
|
+
};
|
|
394
|
+
t.exports = (e, t = {}) => {
|
|
395
|
+
let o = t.rangeLimit === void 0 ? 1e3 : t.rangeLimit, s = (e, c = {}) => {
|
|
396
|
+
e.queue = [];
|
|
397
|
+
let l = c, u = c.queue;
|
|
398
|
+
for (; l.type !== "brace" && l.type !== "root" && l.parent;) l = l.parent, u = l.queue;
|
|
399
|
+
if (e.invalid || e.dollar) {
|
|
400
|
+
u.push(a(u.pop(), r(e, t)));
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
if (e.type === "brace" && e.invalid !== !0 && e.nodes.length === 2) {
|
|
404
|
+
u.push(a(u.pop(), ["{}"]));
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
if (e.nodes && e.ranges > 0) {
|
|
408
|
+
let s = i.reduce(e.nodes);
|
|
409
|
+
if (i.exceedsLimit(...s, t.step, o)) throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
410
|
+
let c = n(...s, t);
|
|
411
|
+
c.length === 0 && (c = r(e, t)), u.push(a(u.pop(), c)), e.nodes = [];
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
let d = i.encloseBrace(e), f = e.queue, p = e;
|
|
415
|
+
for (; p.type !== "brace" && p.type !== "root" && p.parent;) p = p.parent, f = p.queue;
|
|
416
|
+
for (let t = 0; t < e.nodes.length; t++) {
|
|
417
|
+
let n = e.nodes[t];
|
|
418
|
+
if (n.type === "comma" && e.type === "brace") {
|
|
419
|
+
t === 1 && f.push(""), f.push("");
|
|
420
|
+
continue;
|
|
421
|
+
}
|
|
422
|
+
if (n.type === "close") {
|
|
423
|
+
u.push(a(u.pop(), f, d));
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
if (n.value && n.type !== "open") {
|
|
427
|
+
f.push(a(f.pop(), n.value));
|
|
428
|
+
continue;
|
|
429
|
+
}
|
|
430
|
+
n.nodes && s(n, e);
|
|
431
|
+
}
|
|
432
|
+
return f;
|
|
433
|
+
};
|
|
434
|
+
return i.flatten(s(e));
|
|
435
|
+
};
|
|
436
|
+
})), require_constants$2 = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
437
|
+
t.exports = {
|
|
438
|
+
MAX_LENGTH: 1e4,
|
|
439
|
+
CHAR_0: "0",
|
|
440
|
+
CHAR_9: "9",
|
|
441
|
+
CHAR_UPPERCASE_A: "A",
|
|
442
|
+
CHAR_LOWERCASE_A: "a",
|
|
443
|
+
CHAR_UPPERCASE_Z: "Z",
|
|
444
|
+
CHAR_LOWERCASE_Z: "z",
|
|
445
|
+
CHAR_LEFT_PARENTHESES: "(",
|
|
446
|
+
CHAR_RIGHT_PARENTHESES: ")",
|
|
447
|
+
CHAR_ASTERISK: "*",
|
|
448
|
+
CHAR_AMPERSAND: "&",
|
|
449
|
+
CHAR_AT: "@",
|
|
450
|
+
CHAR_BACKSLASH: "\\",
|
|
451
|
+
CHAR_BACKTICK: "`",
|
|
452
|
+
CHAR_CARRIAGE_RETURN: "\r",
|
|
453
|
+
CHAR_CIRCUMFLEX_ACCENT: "^",
|
|
454
|
+
CHAR_COLON: ":",
|
|
455
|
+
CHAR_COMMA: ",",
|
|
456
|
+
CHAR_DOLLAR: "$",
|
|
457
|
+
CHAR_DOT: ".",
|
|
458
|
+
CHAR_DOUBLE_QUOTE: "\"",
|
|
459
|
+
CHAR_EQUAL: "=",
|
|
460
|
+
CHAR_EXCLAMATION_MARK: "!",
|
|
461
|
+
CHAR_FORM_FEED: "\f",
|
|
462
|
+
CHAR_FORWARD_SLASH: "/",
|
|
463
|
+
CHAR_HASH: "#",
|
|
464
|
+
CHAR_HYPHEN_MINUS: "-",
|
|
465
|
+
CHAR_LEFT_ANGLE_BRACKET: "<",
|
|
466
|
+
CHAR_LEFT_CURLY_BRACE: "{",
|
|
467
|
+
CHAR_LEFT_SQUARE_BRACKET: "[",
|
|
468
|
+
CHAR_LINE_FEED: "\n",
|
|
469
|
+
CHAR_NO_BREAK_SPACE: "\xA0",
|
|
470
|
+
CHAR_PERCENT: "%",
|
|
471
|
+
CHAR_PLUS: "+",
|
|
472
|
+
CHAR_QUESTION_MARK: "?",
|
|
473
|
+
CHAR_RIGHT_ANGLE_BRACKET: ">",
|
|
474
|
+
CHAR_RIGHT_CURLY_BRACE: "}",
|
|
475
|
+
CHAR_RIGHT_SQUARE_BRACKET: "]",
|
|
476
|
+
CHAR_SEMICOLON: ";",
|
|
477
|
+
CHAR_SINGLE_QUOTE: "'",
|
|
478
|
+
CHAR_SPACE: " ",
|
|
479
|
+
CHAR_TAB: " ",
|
|
480
|
+
CHAR_UNDERSCORE: "_",
|
|
481
|
+
CHAR_VERTICAL_LINE: "|",
|
|
482
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
483
|
+
};
|
|
484
|
+
})), require_parse$1 = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
485
|
+
var n = require_stringify(), { MAX_LENGTH: r, CHAR_BACKSLASH: i, CHAR_BACKTICK: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_LEFT_PARENTHESES: c, CHAR_RIGHT_PARENTHESES: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_RIGHT_CURLY_BRACE: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_RIGHT_SQUARE_BRACKET: p, CHAR_DOUBLE_QUOTE: m, CHAR_SINGLE_QUOTE: h, CHAR_NO_BREAK_SPACE: g, CHAR_ZERO_WIDTH_NOBREAK_SPACE: _ } = require_constants$2();
|
|
486
|
+
t.exports = (e, t = {}) => {
|
|
487
|
+
if (typeof e != "string") throw TypeError("Expected a string");
|
|
488
|
+
let v = t || {}, y = typeof v.maxLength == "number" ? Math.min(r, v.maxLength) : r;
|
|
489
|
+
if (e.length > y) throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);
|
|
490
|
+
let b = {
|
|
491
|
+
type: "root",
|
|
492
|
+
input: e,
|
|
493
|
+
nodes: []
|
|
494
|
+
}, x = [b], S = b, C = b, w = 0, T = e.length, E = 0, D = 0, O, k = () => e[E++], A = (e) => {
|
|
495
|
+
if (e.type === "text" && C.type === "dot" && (C.type = "text"), C && C.type === "text" && e.type === "text") {
|
|
496
|
+
C.value += e.value;
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
return S.nodes.push(e), e.parent = S, e.prev = C, C = e, e;
|
|
500
|
+
};
|
|
501
|
+
for (A({ type: "bos" }); E < T;) if (S = x[x.length - 1], O = k(), !(O === _ || O === g)) {
|
|
502
|
+
if (O === i) {
|
|
503
|
+
A({
|
|
504
|
+
type: "text",
|
|
505
|
+
value: (t.keepEscaping ? O : "") + k()
|
|
506
|
+
});
|
|
507
|
+
continue;
|
|
508
|
+
}
|
|
509
|
+
if (O === p) {
|
|
510
|
+
A({
|
|
511
|
+
type: "text",
|
|
512
|
+
value: "\\" + O
|
|
513
|
+
});
|
|
514
|
+
continue;
|
|
515
|
+
}
|
|
516
|
+
if (O === f) {
|
|
517
|
+
w++;
|
|
518
|
+
let e;
|
|
519
|
+
for (; E < T && (e = k());) {
|
|
520
|
+
if (O += e, e === f) {
|
|
521
|
+
w++;
|
|
522
|
+
continue;
|
|
523
|
+
}
|
|
524
|
+
if (e === i) {
|
|
525
|
+
O += k();
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
if (e === p && (w--, w === 0)) break;
|
|
529
|
+
}
|
|
530
|
+
A({
|
|
531
|
+
type: "text",
|
|
532
|
+
value: O
|
|
533
|
+
});
|
|
534
|
+
continue;
|
|
535
|
+
}
|
|
536
|
+
if (O === c) {
|
|
537
|
+
S = A({
|
|
538
|
+
type: "paren",
|
|
539
|
+
nodes: []
|
|
540
|
+
}), x.push(S), A({
|
|
541
|
+
type: "text",
|
|
542
|
+
value: O
|
|
543
|
+
});
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
if (O === l) {
|
|
547
|
+
if (S.type !== "paren") {
|
|
548
|
+
A({
|
|
549
|
+
type: "text",
|
|
550
|
+
value: O
|
|
551
|
+
});
|
|
552
|
+
continue;
|
|
553
|
+
}
|
|
554
|
+
S = x.pop(), A({
|
|
555
|
+
type: "text",
|
|
556
|
+
value: O
|
|
557
|
+
}), S = x[x.length - 1];
|
|
558
|
+
continue;
|
|
559
|
+
}
|
|
560
|
+
if (O === m || O === h || O === a) {
|
|
561
|
+
let e = O, n;
|
|
562
|
+
for (t.keepQuotes !== !0 && (O = ""); E < T && (n = k());) {
|
|
563
|
+
if (n === i) {
|
|
564
|
+
O += n + k();
|
|
565
|
+
continue;
|
|
566
|
+
}
|
|
567
|
+
if (n === e) {
|
|
568
|
+
t.keepQuotes === !0 && (O += n);
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
O += n;
|
|
572
|
+
}
|
|
573
|
+
A({
|
|
574
|
+
type: "text",
|
|
575
|
+
value: O
|
|
576
|
+
});
|
|
577
|
+
continue;
|
|
578
|
+
}
|
|
579
|
+
if (O === u) {
|
|
580
|
+
D++, S = A({
|
|
581
|
+
type: "brace",
|
|
582
|
+
open: !0,
|
|
583
|
+
close: !1,
|
|
584
|
+
dollar: C.value && C.value.slice(-1) === "$" || S.dollar === !0,
|
|
585
|
+
depth: D,
|
|
586
|
+
commas: 0,
|
|
587
|
+
ranges: 0,
|
|
588
|
+
nodes: []
|
|
589
|
+
}), x.push(S), A({
|
|
590
|
+
type: "open",
|
|
591
|
+
value: O
|
|
592
|
+
});
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
if (O === d) {
|
|
596
|
+
if (S.type !== "brace") {
|
|
597
|
+
A({
|
|
598
|
+
type: "text",
|
|
599
|
+
value: O
|
|
600
|
+
});
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
S = x.pop(), S.close = !0, A({
|
|
604
|
+
type: "close",
|
|
605
|
+
value: O
|
|
606
|
+
}), D--, S = x[x.length - 1];
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
if (O === o && D > 0) {
|
|
610
|
+
if (S.ranges > 0) {
|
|
611
|
+
S.ranges = 0;
|
|
612
|
+
let e = S.nodes.shift();
|
|
613
|
+
S.nodes = [e, {
|
|
614
|
+
type: "text",
|
|
615
|
+
value: n(S)
|
|
616
|
+
}];
|
|
617
|
+
}
|
|
618
|
+
A({
|
|
619
|
+
type: "comma",
|
|
620
|
+
value: O
|
|
621
|
+
}), S.commas++;
|
|
622
|
+
continue;
|
|
623
|
+
}
|
|
624
|
+
if (O === s && D > 0 && S.commas === 0) {
|
|
625
|
+
let e = S.nodes;
|
|
626
|
+
if (D === 0 || e.length === 0) {
|
|
627
|
+
A({
|
|
628
|
+
type: "text",
|
|
629
|
+
value: O
|
|
630
|
+
});
|
|
631
|
+
continue;
|
|
632
|
+
}
|
|
633
|
+
if (C.type === "dot") {
|
|
634
|
+
if (S.range = [], C.value += O, C.type = "range", S.nodes.length !== 3 && S.nodes.length !== 5) {
|
|
635
|
+
S.invalid = !0, S.ranges = 0, C.type = "text";
|
|
636
|
+
continue;
|
|
637
|
+
}
|
|
638
|
+
S.ranges++, S.args = [];
|
|
639
|
+
continue;
|
|
640
|
+
}
|
|
641
|
+
if (C.type === "range") {
|
|
642
|
+
e.pop();
|
|
643
|
+
let t = e[e.length - 1];
|
|
644
|
+
t.value += C.value + O, C = t, S.ranges--;
|
|
645
|
+
continue;
|
|
646
|
+
}
|
|
647
|
+
A({
|
|
648
|
+
type: "dot",
|
|
649
|
+
value: O
|
|
650
|
+
});
|
|
651
|
+
continue;
|
|
652
|
+
}
|
|
653
|
+
A({
|
|
654
|
+
type: "text",
|
|
655
|
+
value: O
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
do
|
|
659
|
+
if (S = x.pop(), S.type !== "root") {
|
|
660
|
+
S.nodes.forEach((e) => {
|
|
661
|
+
e.nodes || (e.type === "open" && (e.isOpen = !0), e.type === "close" && (e.isClose = !0), e.nodes || (e.type = "text"), e.invalid = !0);
|
|
662
|
+
});
|
|
663
|
+
let e = x[x.length - 1], t = e.nodes.indexOf(S);
|
|
664
|
+
e.nodes.splice(t, 1, ...S.nodes);
|
|
665
|
+
}
|
|
666
|
+
while (x.length > 0);
|
|
667
|
+
return A({ type: "eos" }), b;
|
|
668
|
+
};
|
|
669
|
+
})), require_braces = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
670
|
+
var n = require_stringify(), r = require_compile(), i = require_expand(), a = require_parse$1(), o = (e, t = {}) => {
|
|
671
|
+
let n = [];
|
|
672
|
+
if (Array.isArray(e)) for (let r of e) {
|
|
673
|
+
let e = o.create(r, t);
|
|
674
|
+
Array.isArray(e) ? n.push(...e) : n.push(e);
|
|
675
|
+
}
|
|
676
|
+
else n = [].concat(o.create(e, t));
|
|
677
|
+
return t && t.expand === !0 && t.nodupes === !0 && (n = [...new Set(n)]), n;
|
|
678
|
+
};
|
|
679
|
+
o.parse = (e, t = {}) => a(e, t), o.stringify = (e, t = {}) => n(typeof e == "string" ? o.parse(e, t) : e, t), o.compile = (e, t = {}) => (typeof e == "string" && (e = o.parse(e, t)), r(e, t)), o.expand = (e, t = {}) => {
|
|
680
|
+
typeof e == "string" && (e = o.parse(e, t));
|
|
681
|
+
let n = i(e, t);
|
|
682
|
+
return t.noempty === !0 && (n = n.filter(Boolean)), t.nodupes === !0 && (n = [...new Set(n)]), n;
|
|
683
|
+
}, o.create = (e, t = {}) => e === "" || e.length < 3 ? [e] : t.expand === !0 ? o.expand(e, t) : o.compile(e, t), t.exports = o;
|
|
684
|
+
})), require_constants$1 = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
685
|
+
var n = require___vite_browser_external(), r = "\\\\/", i = `[^${r}]`, a = "\\.", o = "\\+", s = "\\?", c = "\\/", l = "(?=.)", u = "[^/]", d = `(?:${c}|$)`, p = `(?:^|${c})`, m = `${a}{1,2}${d}`, h = {
|
|
686
|
+
DOT_LITERAL: a,
|
|
687
|
+
PLUS_LITERAL: o,
|
|
688
|
+
QMARK_LITERAL: s,
|
|
689
|
+
SLASH_LITERAL: c,
|
|
690
|
+
ONE_CHAR: l,
|
|
691
|
+
QMARK: u,
|
|
692
|
+
END_ANCHOR: d,
|
|
693
|
+
DOTS_SLASH: m,
|
|
694
|
+
NO_DOT: `(?!${a})`,
|
|
695
|
+
NO_DOTS: `(?!${p}${m})`,
|
|
696
|
+
NO_DOT_SLASH: `(?!${a}{0,1}${d})`,
|
|
697
|
+
NO_DOTS_SLASH: `(?!${m})`,
|
|
698
|
+
QMARK_NO_DOT: `[^.${c}]`,
|
|
699
|
+
STAR: `${u}*?`,
|
|
700
|
+
START_ANCHOR: p
|
|
701
|
+
}, g = {
|
|
702
|
+
...h,
|
|
703
|
+
SLASH_LITERAL: `[${r}]`,
|
|
704
|
+
QMARK: i,
|
|
705
|
+
STAR: `${i}*?`,
|
|
706
|
+
DOTS_SLASH: `${a}{1,2}(?:[${r}]|$)`,
|
|
707
|
+
NO_DOT: `(?!${a})`,
|
|
708
|
+
NO_DOTS: `(?!(?:^|[${r}])${a}{1,2}(?:[${r}]|$))`,
|
|
709
|
+
NO_DOT_SLASH: `(?!${a}{0,1}(?:[${r}]|$))`,
|
|
710
|
+
NO_DOTS_SLASH: `(?!${a}{1,2}(?:[${r}]|$))`,
|
|
711
|
+
QMARK_NO_DOT: `[^.${r}]`,
|
|
712
|
+
START_ANCHOR: `(?:^|[${r}])`,
|
|
713
|
+
END_ANCHOR: `(?:[${r}]|$)`
|
|
714
|
+
};
|
|
715
|
+
t.exports = {
|
|
716
|
+
MAX_LENGTH: 1024 * 64,
|
|
717
|
+
POSIX_REGEX_SOURCE: {
|
|
718
|
+
alnum: "a-zA-Z0-9",
|
|
719
|
+
alpha: "a-zA-Z",
|
|
720
|
+
ascii: "\\x00-\\x7F",
|
|
721
|
+
blank: " \\t",
|
|
722
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
723
|
+
digit: "0-9",
|
|
724
|
+
graph: "\\x21-\\x7E",
|
|
725
|
+
lower: "a-z",
|
|
726
|
+
print: "\\x20-\\x7E ",
|
|
727
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
728
|
+
space: " \\t\\r\\n\\v\\f",
|
|
729
|
+
upper: "A-Z",
|
|
730
|
+
word: "A-Za-z0-9_",
|
|
731
|
+
xdigit: "A-Fa-f0-9"
|
|
732
|
+
},
|
|
733
|
+
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
734
|
+
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
735
|
+
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
736
|
+
REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
|
|
737
|
+
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
|
|
738
|
+
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
739
|
+
REPLACEMENTS: {
|
|
740
|
+
"***": "*",
|
|
741
|
+
"**/**": "**",
|
|
742
|
+
"**/**/**": "**"
|
|
743
|
+
},
|
|
744
|
+
CHAR_0: 48,
|
|
745
|
+
CHAR_9: 57,
|
|
746
|
+
CHAR_UPPERCASE_A: 65,
|
|
747
|
+
CHAR_LOWERCASE_A: 97,
|
|
748
|
+
CHAR_UPPERCASE_Z: 90,
|
|
749
|
+
CHAR_LOWERCASE_Z: 122,
|
|
750
|
+
CHAR_LEFT_PARENTHESES: 40,
|
|
751
|
+
CHAR_RIGHT_PARENTHESES: 41,
|
|
752
|
+
CHAR_ASTERISK: 42,
|
|
753
|
+
CHAR_AMPERSAND: 38,
|
|
754
|
+
CHAR_AT: 64,
|
|
755
|
+
CHAR_BACKWARD_SLASH: 92,
|
|
756
|
+
CHAR_CARRIAGE_RETURN: 13,
|
|
757
|
+
CHAR_CIRCUMFLEX_ACCENT: 94,
|
|
758
|
+
CHAR_COLON: 58,
|
|
759
|
+
CHAR_COMMA: 44,
|
|
760
|
+
CHAR_DOT: 46,
|
|
761
|
+
CHAR_DOUBLE_QUOTE: 34,
|
|
762
|
+
CHAR_EQUAL: 61,
|
|
763
|
+
CHAR_EXCLAMATION_MARK: 33,
|
|
764
|
+
CHAR_FORM_FEED: 12,
|
|
765
|
+
CHAR_FORWARD_SLASH: 47,
|
|
766
|
+
CHAR_GRAVE_ACCENT: 96,
|
|
767
|
+
CHAR_HASH: 35,
|
|
768
|
+
CHAR_HYPHEN_MINUS: 45,
|
|
769
|
+
CHAR_LEFT_ANGLE_BRACKET: 60,
|
|
770
|
+
CHAR_LEFT_CURLY_BRACE: 123,
|
|
771
|
+
CHAR_LEFT_SQUARE_BRACKET: 91,
|
|
772
|
+
CHAR_LINE_FEED: 10,
|
|
773
|
+
CHAR_NO_BREAK_SPACE: 160,
|
|
774
|
+
CHAR_PERCENT: 37,
|
|
775
|
+
CHAR_PLUS: 43,
|
|
776
|
+
CHAR_QUESTION_MARK: 63,
|
|
777
|
+
CHAR_RIGHT_ANGLE_BRACKET: 62,
|
|
778
|
+
CHAR_RIGHT_CURLY_BRACE: 125,
|
|
779
|
+
CHAR_RIGHT_SQUARE_BRACKET: 93,
|
|
780
|
+
CHAR_SEMICOLON: 59,
|
|
781
|
+
CHAR_SINGLE_QUOTE: 39,
|
|
782
|
+
CHAR_SPACE: 32,
|
|
783
|
+
CHAR_TAB: 9,
|
|
784
|
+
CHAR_UNDERSCORE: 95,
|
|
785
|
+
CHAR_VERTICAL_LINE: 124,
|
|
786
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
787
|
+
SEP: n.sep,
|
|
788
|
+
extglobChars(e) {
|
|
789
|
+
return {
|
|
790
|
+
"!": {
|
|
791
|
+
type: "negate",
|
|
792
|
+
open: "(?:(?!(?:",
|
|
793
|
+
close: `))${e.STAR})`
|
|
794
|
+
},
|
|
795
|
+
"?": {
|
|
796
|
+
type: "qmark",
|
|
797
|
+
open: "(?:",
|
|
798
|
+
close: ")?"
|
|
799
|
+
},
|
|
800
|
+
"+": {
|
|
801
|
+
type: "plus",
|
|
802
|
+
open: "(?:",
|
|
803
|
+
close: ")+"
|
|
804
|
+
},
|
|
805
|
+
"*": {
|
|
806
|
+
type: "star",
|
|
807
|
+
open: "(?:",
|
|
808
|
+
close: ")*"
|
|
809
|
+
},
|
|
810
|
+
"@": {
|
|
811
|
+
type: "at",
|
|
812
|
+
open: "(?:",
|
|
813
|
+
close: ")"
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
},
|
|
817
|
+
globChars(e) {
|
|
818
|
+
return e === !0 ? g : h;
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
})), require_utils$2 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
822
|
+
var t = require___vite_browser_external(), n = process.platform === "win32", { REGEX_BACKSLASH: r, REGEX_REMOVE_BACKSLASH: i, REGEX_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_GLOBAL: o } = require_constants$1();
|
|
823
|
+
e.isObject = (e) => typeof e == "object" && !!e && !Array.isArray(e), e.hasRegexChars = (e) => a.test(e), e.isRegexChar = (t) => t.length === 1 && e.hasRegexChars(t), e.escapeRegex = (e) => e.replace(o, "\\$1"), e.toPosixSlashes = (e) => e.replace(r, "/"), e.removeBackslashes = (e) => e.replace(i, (e) => e === "\\" ? "" : e), e.supportsLookbehinds = () => {
|
|
824
|
+
let e = process.version.slice(1).split(".").map(Number);
|
|
825
|
+
return e.length === 3 && e[0] >= 9 || e[0] === 8 && e[1] >= 10;
|
|
826
|
+
}, e.isWindows = (e) => e && typeof e.windows == "boolean" ? e.windows : n === !0 || t.sep === "\\", e.escapeLast = (t, n, r) => {
|
|
827
|
+
let i = t.lastIndexOf(n, r);
|
|
828
|
+
return i === -1 ? t : t[i - 1] === "\\" ? e.escapeLast(t, n, i - 1) : `${t.slice(0, i)}\\${t.slice(i)}`;
|
|
829
|
+
}, e.removePrefix = (e, t = {}) => {
|
|
830
|
+
let n = e;
|
|
831
|
+
return n.startsWith("./") && (n = n.slice(2), t.prefix = "./"), n;
|
|
832
|
+
}, e.wrapOutput = (e, t = {}, n = {}) => {
|
|
833
|
+
let r = `${n.contains ? "" : "^"}(?:${e})${n.contains ? "" : "$"}`;
|
|
834
|
+
return t.negated === !0 && (r = `(?:^(?!${r}).*$)`), r;
|
|
835
|
+
};
|
|
836
|
+
})), require_scan = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
837
|
+
var n = require_utils$2(), { CHAR_ASTERISK: r, CHAR_AT: i, CHAR_BACKWARD_SLASH: a, CHAR_COMMA: o, CHAR_DOT: s, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: l, CHAR_LEFT_CURLY_BRACE: u, CHAR_LEFT_PARENTHESES: d, CHAR_LEFT_SQUARE_BRACKET: f, CHAR_PLUS: p, CHAR_QUESTION_MARK: m, CHAR_RIGHT_CURLY_BRACE: h, CHAR_RIGHT_PARENTHESES: g, CHAR_RIGHT_SQUARE_BRACKET: _ } = require_constants$1(), v = (e) => e === l || e === a, y = (e) => {
|
|
838
|
+
e.isPrefix !== !0 && (e.depth = e.isGlobstar ? Infinity : 1);
|
|
839
|
+
};
|
|
840
|
+
t.exports = (e, t) => {
|
|
841
|
+
let b = t || {}, x = e.length - 1, S = b.parts === !0 || b.scanToEnd === !0, C = [], w = [], T = [], E = e, D = -1, O = 0, k = 0, A = !1, j = !1, M = !1, N = !1, P = !1, F = !1, I = !1, L = !1, R = !1, z = !1, B = 0, V, H, U = {
|
|
842
|
+
value: "",
|
|
843
|
+
depth: 0,
|
|
844
|
+
isGlob: !1
|
|
845
|
+
}, W = () => D >= x, G = () => E.charCodeAt(D + 1), K = () => (V = H, E.charCodeAt(++D));
|
|
846
|
+
for (; D < x;) {
|
|
847
|
+
H = K();
|
|
848
|
+
let e;
|
|
849
|
+
if (H === a) {
|
|
850
|
+
I = U.backslashes = !0, H = K(), H === u && (F = !0);
|
|
851
|
+
continue;
|
|
852
|
+
}
|
|
853
|
+
if (F === !0 || H === u) {
|
|
854
|
+
for (B++; W() !== !0 && (H = K());) {
|
|
855
|
+
if (H === a) {
|
|
856
|
+
I = U.backslashes = !0, K();
|
|
857
|
+
continue;
|
|
858
|
+
}
|
|
859
|
+
if (H === u) {
|
|
860
|
+
B++;
|
|
861
|
+
continue;
|
|
862
|
+
}
|
|
863
|
+
if (F !== !0 && H === s && (H = K()) === s) {
|
|
864
|
+
if (A = U.isBrace = !0, M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
if (F !== !0 && H === o) {
|
|
868
|
+
if (A = U.isBrace = !0, M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
if (H === h && (B--, B === 0)) {
|
|
872
|
+
F = !1, A = U.isBrace = !0, z = !0;
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
if (S === !0) continue;
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
if (H === l) {
|
|
880
|
+
if (C.push(D), w.push(U), U = {
|
|
881
|
+
value: "",
|
|
882
|
+
depth: 0,
|
|
883
|
+
isGlob: !1
|
|
884
|
+
}, z === !0) continue;
|
|
885
|
+
if (V === s && D === O + 1) {
|
|
886
|
+
O += 2;
|
|
887
|
+
continue;
|
|
888
|
+
}
|
|
889
|
+
k = D + 1;
|
|
890
|
+
continue;
|
|
891
|
+
}
|
|
892
|
+
if (b.noext !== !0 && (H === p || H === i || H === r || H === m || H === c) && G() === d) {
|
|
893
|
+
if (M = U.isGlob = !0, N = U.isExtglob = !0, z = !0, H === c && D === O && (R = !0), S === !0) {
|
|
894
|
+
for (; W() !== !0 && (H = K());) {
|
|
895
|
+
if (H === a) {
|
|
896
|
+
I = U.backslashes = !0, H = K();
|
|
897
|
+
continue;
|
|
898
|
+
}
|
|
899
|
+
if (H === g) {
|
|
900
|
+
M = U.isGlob = !0, z = !0;
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
continue;
|
|
905
|
+
}
|
|
906
|
+
break;
|
|
907
|
+
}
|
|
908
|
+
if (H === r) {
|
|
909
|
+
if (V === r && (P = U.isGlobstar = !0), M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
910
|
+
break;
|
|
911
|
+
}
|
|
912
|
+
if (H === m) {
|
|
913
|
+
if (M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
914
|
+
break;
|
|
915
|
+
}
|
|
916
|
+
if (H === f) {
|
|
917
|
+
for (; W() !== !0 && (e = K());) {
|
|
918
|
+
if (e === a) {
|
|
919
|
+
I = U.backslashes = !0, K();
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
922
|
+
if (e === _) {
|
|
923
|
+
j = U.isBracket = !0, M = U.isGlob = !0, z = !0;
|
|
924
|
+
break;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
if (S === !0) continue;
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
if (b.nonegate !== !0 && H === c && D === O) {
|
|
931
|
+
L = U.negated = !0, O++;
|
|
932
|
+
continue;
|
|
933
|
+
}
|
|
934
|
+
if (b.noparen !== !0 && H === d) {
|
|
935
|
+
if (M = U.isGlob = !0, S === !0) {
|
|
936
|
+
for (; W() !== !0 && (H = K());) {
|
|
937
|
+
if (H === d) {
|
|
938
|
+
I = U.backslashes = !0, H = K();
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
if (H === g) {
|
|
942
|
+
z = !0;
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
continue;
|
|
947
|
+
}
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
if (M === !0) {
|
|
951
|
+
if (z = !0, S === !0) continue;
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
b.noext === !0 && (N = !1, M = !1);
|
|
956
|
+
let q = E, J = "", Y = "";
|
|
957
|
+
O > 0 && (J = E.slice(0, O), E = E.slice(O), k -= O), q && M === !0 && k > 0 ? (q = E.slice(0, k), Y = E.slice(k)) : M === !0 ? (q = "", Y = E) : q = E, q && q !== "" && q !== "/" && q !== E && v(q.charCodeAt(q.length - 1)) && (q = q.slice(0, -1)), b.unescape === !0 && (Y &&= n.removeBackslashes(Y), q && I === !0 && (q = n.removeBackslashes(q)));
|
|
958
|
+
let X = {
|
|
959
|
+
prefix: J,
|
|
960
|
+
input: e,
|
|
961
|
+
start: O,
|
|
962
|
+
base: q,
|
|
963
|
+
glob: Y,
|
|
964
|
+
isBrace: A,
|
|
965
|
+
isBracket: j,
|
|
966
|
+
isGlob: M,
|
|
967
|
+
isExtglob: N,
|
|
968
|
+
isGlobstar: P,
|
|
969
|
+
negated: L,
|
|
970
|
+
negatedExtglob: R
|
|
971
|
+
};
|
|
972
|
+
if (b.tokens === !0 && (X.maxDepth = 0, v(H) || w.push(U), X.tokens = w), b.parts === !0 || b.tokens === !0) {
|
|
973
|
+
let t;
|
|
974
|
+
for (let n = 0; n < C.length; n++) {
|
|
975
|
+
let r = t ? t + 1 : O, i = C[n], a = e.slice(r, i);
|
|
976
|
+
b.tokens && (n === 0 && O !== 0 ? (w[n].isPrefix = !0, w[n].value = J) : w[n].value = a, y(w[n]), X.maxDepth += w[n].depth), (n !== 0 || a !== "") && T.push(a), t = i;
|
|
977
|
+
}
|
|
978
|
+
if (t && t + 1 < e.length) {
|
|
979
|
+
let n = e.slice(t + 1);
|
|
980
|
+
T.push(n), b.tokens && (w[w.length - 1].value = n, y(w[w.length - 1]), X.maxDepth += w[w.length - 1].depth);
|
|
981
|
+
}
|
|
982
|
+
X.slashes = C, X.parts = T;
|
|
983
|
+
}
|
|
984
|
+
return X;
|
|
985
|
+
};
|
|
986
|
+
})), require_parse = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
987
|
+
var n = require_constants$1(), r = require_utils$2(), { MAX_LENGTH: i, POSIX_REGEX_SOURCE: a, REGEX_NON_SPECIAL_CHARS: o, REGEX_SPECIAL_CHARS_BACKREF: s, REPLACEMENTS: c } = n, l = (e, t) => {
|
|
988
|
+
if (typeof t.expandRange == "function") return t.expandRange(...e, t);
|
|
989
|
+
e.sort();
|
|
990
|
+
let n = `[${e.join("-")}]`;
|
|
991
|
+
try {
|
|
992
|
+
new RegExp(n);
|
|
993
|
+
} catch {
|
|
994
|
+
return e.map((e) => r.escapeRegex(e)).join("..");
|
|
995
|
+
}
|
|
996
|
+
return n;
|
|
997
|
+
}, u = (e, t) => `Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`, d = (e, t) => {
|
|
998
|
+
if (typeof e != "string") throw TypeError("Expected a string");
|
|
999
|
+
e = c[e] || e;
|
|
1000
|
+
let f = { ...t }, p = typeof f.maxLength == "number" ? Math.min(i, f.maxLength) : i, m = e.length;
|
|
1001
|
+
if (m > p) throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`);
|
|
1002
|
+
let h = {
|
|
1003
|
+
type: "bos",
|
|
1004
|
+
value: "",
|
|
1005
|
+
output: f.prepend || ""
|
|
1006
|
+
}, g = [h], _ = f.capture ? "" : "?:", v = r.isWindows(t), y = n.globChars(v), b = n.extglobChars(y), { DOT_LITERAL: x, PLUS_LITERAL: S, SLASH_LITERAL: C, ONE_CHAR: w, DOTS_SLASH: T, NO_DOT: E, NO_DOT_SLASH: D, NO_DOTS_SLASH: O, QMARK: k, QMARK_NO_DOT: A, STAR: j, START_ANCHOR: M } = y, N = (e) => `(${_}(?:(?!${M}${e.dot ? T : x}).)*?)`, P = f.dot ? "" : E, F = f.dot ? k : A, I = f.bash === !0 ? N(f) : j;
|
|
1007
|
+
f.capture && (I = `(${I})`), typeof f.noext == "boolean" && (f.noextglob = f.noext);
|
|
1008
|
+
let L = {
|
|
1009
|
+
input: e,
|
|
1010
|
+
index: -1,
|
|
1011
|
+
start: 0,
|
|
1012
|
+
dot: f.dot === !0,
|
|
1013
|
+
consumed: "",
|
|
1014
|
+
output: "",
|
|
1015
|
+
prefix: "",
|
|
1016
|
+
backtrack: !1,
|
|
1017
|
+
negated: !1,
|
|
1018
|
+
brackets: 0,
|
|
1019
|
+
braces: 0,
|
|
1020
|
+
parens: 0,
|
|
1021
|
+
quotes: 0,
|
|
1022
|
+
globstar: !1,
|
|
1023
|
+
tokens: g
|
|
1024
|
+
};
|
|
1025
|
+
e = r.removePrefix(e, L), m = e.length;
|
|
1026
|
+
let R = [], z = [], B = [], V = h, H, U = () => L.index === m - 1, W = L.peek = (t = 1) => e[L.index + t], G = L.advance = () => e[++L.index] || "", K = () => e.slice(L.index + 1), q = (e = "", t = 0) => {
|
|
1027
|
+
L.consumed += e, L.index += t;
|
|
1028
|
+
}, J = (e) => {
|
|
1029
|
+
L.output += e.output == null ? e.value : e.output, q(e.value);
|
|
1030
|
+
}, Y = () => {
|
|
1031
|
+
let e = 1;
|
|
1032
|
+
for (; W() === "!" && (W(2) !== "(" || W(3) === "?");) G(), L.start++, e++;
|
|
1033
|
+
return e % 2 == 0 ? !1 : (L.negated = !0, L.start++, !0);
|
|
1034
|
+
}, X = (e) => {
|
|
1035
|
+
L[e]++, B.push(e);
|
|
1036
|
+
}, Z = (e) => {
|
|
1037
|
+
L[e]--, B.pop();
|
|
1038
|
+
}, Q = (e) => {
|
|
1039
|
+
if (V.type === "globstar") {
|
|
1040
|
+
let t = L.braces > 0 && (e.type === "comma" || e.type === "brace"), n = e.extglob === !0 || R.length && (e.type === "pipe" || e.type === "paren");
|
|
1041
|
+
e.type !== "slash" && e.type !== "paren" && !t && !n && (L.output = L.output.slice(0, -V.output.length), V.type = "star", V.value = "*", V.output = I, L.output += V.output);
|
|
1042
|
+
}
|
|
1043
|
+
if (R.length && e.type !== "paren" && (R[R.length - 1].inner += e.value), (e.value || e.output) && J(e), V && V.type === "text" && e.type === "text") {
|
|
1044
|
+
V.value += e.value, V.output = (V.output || "") + e.value;
|
|
1045
|
+
return;
|
|
1046
|
+
}
|
|
1047
|
+
e.prev = V, g.push(e), V = e;
|
|
1048
|
+
}, $ = (e, t) => {
|
|
1049
|
+
let n = {
|
|
1050
|
+
...b[t],
|
|
1051
|
+
conditions: 1,
|
|
1052
|
+
inner: ""
|
|
1053
|
+
};
|
|
1054
|
+
n.prev = V, n.parens = L.parens, n.output = L.output;
|
|
1055
|
+
let r = (f.capture ? "(" : "") + n.open;
|
|
1056
|
+
X("parens"), Q({
|
|
1057
|
+
type: e,
|
|
1058
|
+
value: t,
|
|
1059
|
+
output: L.output ? "" : w
|
|
1060
|
+
}), Q({
|
|
1061
|
+
type: "paren",
|
|
1062
|
+
extglob: !0,
|
|
1063
|
+
value: G(),
|
|
1064
|
+
output: r
|
|
1065
|
+
}), R.push(n);
|
|
1066
|
+
}, Le = (e) => {
|
|
1067
|
+
let n = e.close + (f.capture ? ")" : ""), r;
|
|
1068
|
+
if (e.type === "negate") {
|
|
1069
|
+
let i = I;
|
|
1070
|
+
e.inner && e.inner.length > 1 && e.inner.includes("/") && (i = N(f)), (i !== I || U() || /^\)+$/.test(K())) && (n = e.close = `)$))${i}`), e.inner.includes("*") && (r = K()) && /^\.[^\\/.]+$/.test(r) && (n = e.close = `)${d(r, {
|
|
1071
|
+
...t,
|
|
1072
|
+
fastpaths: !1
|
|
1073
|
+
}).output})${i})`), e.prev.type === "bos" && (L.negatedExtglob = !0);
|
|
1074
|
+
}
|
|
1075
|
+
Q({
|
|
1076
|
+
type: "paren",
|
|
1077
|
+
extglob: !0,
|
|
1078
|
+
value: H,
|
|
1079
|
+
output: n
|
|
1080
|
+
}), Z("parens");
|
|
1081
|
+
};
|
|
1082
|
+
if (f.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(e)) {
|
|
1083
|
+
let n = !1, i = e.replace(s, (e, t, r, i, a, o) => i === "\\" ? (n = !0, e) : i === "?" ? t ? t + i + (a ? k.repeat(a.length) : "") : o === 0 ? F + (a ? k.repeat(a.length) : "") : k.repeat(r.length) : i === "." ? x.repeat(r.length) : i === "*" ? t ? t + i + (a ? I : "") : I : t ? e : `\\${e}`);
|
|
1084
|
+
return n === !0 && (i = f.unescape === !0 ? i.replace(/\\/g, "") : i.replace(/\\+/g, (e) => e.length % 2 == 0 ? "\\\\" : e ? "\\" : "")), i === e && f.contains === !0 ? (L.output = e, L) : (L.output = r.wrapOutput(i, L, t), L);
|
|
1085
|
+
}
|
|
1086
|
+
for (; !U();) {
|
|
1087
|
+
if (H = G(), H === "\0") continue;
|
|
1088
|
+
if (H === "\\") {
|
|
1089
|
+
let e = W();
|
|
1090
|
+
if (e === "/" && f.bash !== !0 || e === "." || e === ";") continue;
|
|
1091
|
+
if (!e) {
|
|
1092
|
+
H += "\\", Q({
|
|
1093
|
+
type: "text",
|
|
1094
|
+
value: H
|
|
1095
|
+
});
|
|
1096
|
+
continue;
|
|
1097
|
+
}
|
|
1098
|
+
let t = /^\\+/.exec(K()), n = 0;
|
|
1099
|
+
if (t && t[0].length > 2 && (n = t[0].length, L.index += n, n % 2 != 0 && (H += "\\")), f.unescape === !0 ? H = G() : H += G(), L.brackets === 0) {
|
|
1100
|
+
Q({
|
|
1101
|
+
type: "text",
|
|
1102
|
+
value: H
|
|
1103
|
+
});
|
|
1104
|
+
continue;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
if (L.brackets > 0 && (H !== "]" || V.value === "[" || V.value === "[^")) {
|
|
1108
|
+
if (f.posix !== !1 && H === ":") {
|
|
1109
|
+
let e = V.value.slice(1);
|
|
1110
|
+
if (e.includes("[") && (V.posix = !0, e.includes(":"))) {
|
|
1111
|
+
let e = V.value.lastIndexOf("["), t = V.value.slice(0, e), n = a[V.value.slice(e + 2)];
|
|
1112
|
+
if (n) {
|
|
1113
|
+
V.value = t + n, L.backtrack = !0, G(), !h.output && g.indexOf(V) === 1 && (h.output = w);
|
|
1114
|
+
continue;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
(H === "[" && W() !== ":" || H === "-" && W() === "]") && (H = `\\${H}`), H === "]" && (V.value === "[" || V.value === "[^") && (H = `\\${H}`), f.posix === !0 && H === "!" && V.value === "[" && (H = "^"), V.value += H, J({ value: H });
|
|
1119
|
+
continue;
|
|
1120
|
+
}
|
|
1121
|
+
if (L.quotes === 1 && H !== "\"") {
|
|
1122
|
+
H = r.escapeRegex(H), V.value += H, J({ value: H });
|
|
1123
|
+
continue;
|
|
1124
|
+
}
|
|
1125
|
+
if (H === "\"") {
|
|
1126
|
+
L.quotes = L.quotes === 1 ? 0 : 1, f.keepQuotes === !0 && Q({
|
|
1127
|
+
type: "text",
|
|
1128
|
+
value: H
|
|
1129
|
+
});
|
|
1130
|
+
continue;
|
|
1131
|
+
}
|
|
1132
|
+
if (H === "(") {
|
|
1133
|
+
X("parens"), Q({
|
|
1134
|
+
type: "paren",
|
|
1135
|
+
value: H
|
|
1136
|
+
});
|
|
1137
|
+
continue;
|
|
1138
|
+
}
|
|
1139
|
+
if (H === ")") {
|
|
1140
|
+
if (L.parens === 0 && f.strictBrackets === !0) throw SyntaxError(u("opening", "("));
|
|
1141
|
+
let e = R[R.length - 1];
|
|
1142
|
+
if (e && L.parens === e.parens + 1) {
|
|
1143
|
+
Le(R.pop());
|
|
1144
|
+
continue;
|
|
1145
|
+
}
|
|
1146
|
+
Q({
|
|
1147
|
+
type: "paren",
|
|
1148
|
+
value: H,
|
|
1149
|
+
output: L.parens ? ")" : "\\)"
|
|
1150
|
+
}), Z("parens");
|
|
1151
|
+
continue;
|
|
1152
|
+
}
|
|
1153
|
+
if (H === "[") {
|
|
1154
|
+
if (f.nobracket === !0 || !K().includes("]")) {
|
|
1155
|
+
if (f.nobracket !== !0 && f.strictBrackets === !0) throw SyntaxError(u("closing", "]"));
|
|
1156
|
+
H = `\\${H}`;
|
|
1157
|
+
} else X("brackets");
|
|
1158
|
+
Q({
|
|
1159
|
+
type: "bracket",
|
|
1160
|
+
value: H
|
|
1161
|
+
});
|
|
1162
|
+
continue;
|
|
1163
|
+
}
|
|
1164
|
+
if (H === "]") {
|
|
1165
|
+
if (f.nobracket === !0 || V && V.type === "bracket" && V.value.length === 1) {
|
|
1166
|
+
Q({
|
|
1167
|
+
type: "text",
|
|
1168
|
+
value: H,
|
|
1169
|
+
output: `\\${H}`
|
|
1170
|
+
});
|
|
1171
|
+
continue;
|
|
1172
|
+
}
|
|
1173
|
+
if (L.brackets === 0) {
|
|
1174
|
+
if (f.strictBrackets === !0) throw SyntaxError(u("opening", "["));
|
|
1175
|
+
Q({
|
|
1176
|
+
type: "text",
|
|
1177
|
+
value: H,
|
|
1178
|
+
output: `\\${H}`
|
|
1179
|
+
});
|
|
1180
|
+
continue;
|
|
1181
|
+
}
|
|
1182
|
+
Z("brackets");
|
|
1183
|
+
let e = V.value.slice(1);
|
|
1184
|
+
if (V.posix !== !0 && e[0] === "^" && !e.includes("/") && (H = `/${H}`), V.value += H, J({ value: H }), f.literalBrackets === !1 || r.hasRegexChars(e)) continue;
|
|
1185
|
+
let t = r.escapeRegex(V.value);
|
|
1186
|
+
if (L.output = L.output.slice(0, -V.value.length), f.literalBrackets === !0) {
|
|
1187
|
+
L.output += t, V.value = t;
|
|
1188
|
+
continue;
|
|
1189
|
+
}
|
|
1190
|
+
V.value = `(${_}${t}|${V.value})`, L.output += V.value;
|
|
1191
|
+
continue;
|
|
1192
|
+
}
|
|
1193
|
+
if (H === "{" && f.nobrace !== !0) {
|
|
1194
|
+
X("braces");
|
|
1195
|
+
let e = {
|
|
1196
|
+
type: "brace",
|
|
1197
|
+
value: H,
|
|
1198
|
+
output: "(",
|
|
1199
|
+
outputIndex: L.output.length,
|
|
1200
|
+
tokensIndex: L.tokens.length
|
|
1201
|
+
};
|
|
1202
|
+
z.push(e), Q(e);
|
|
1203
|
+
continue;
|
|
1204
|
+
}
|
|
1205
|
+
if (H === "}") {
|
|
1206
|
+
let e = z[z.length - 1];
|
|
1207
|
+
if (f.nobrace === !0 || !e) {
|
|
1208
|
+
Q({
|
|
1209
|
+
type: "text",
|
|
1210
|
+
value: H,
|
|
1211
|
+
output: H
|
|
1212
|
+
});
|
|
1213
|
+
continue;
|
|
1214
|
+
}
|
|
1215
|
+
let t = ")";
|
|
1216
|
+
if (e.dots === !0) {
|
|
1217
|
+
let e = g.slice(), n = [];
|
|
1218
|
+
for (let t = e.length - 1; t >= 0 && (g.pop(), e[t].type !== "brace"); t--) e[t].type !== "dots" && n.unshift(e[t].value);
|
|
1219
|
+
t = l(n, f), L.backtrack = !0;
|
|
1220
|
+
}
|
|
1221
|
+
if (e.comma !== !0 && e.dots !== !0) {
|
|
1222
|
+
let n = L.output.slice(0, e.outputIndex), r = L.tokens.slice(e.tokensIndex);
|
|
1223
|
+
e.value = e.output = "\\{", H = t = "\\}", L.output = n;
|
|
1224
|
+
for (let e of r) L.output += e.output || e.value;
|
|
1225
|
+
}
|
|
1226
|
+
Q({
|
|
1227
|
+
type: "brace",
|
|
1228
|
+
value: H,
|
|
1229
|
+
output: t
|
|
1230
|
+
}), Z("braces"), z.pop();
|
|
1231
|
+
continue;
|
|
1232
|
+
}
|
|
1233
|
+
if (H === "|") {
|
|
1234
|
+
R.length > 0 && R[R.length - 1].conditions++, Q({
|
|
1235
|
+
type: "text",
|
|
1236
|
+
value: H
|
|
1237
|
+
});
|
|
1238
|
+
continue;
|
|
1239
|
+
}
|
|
1240
|
+
if (H === ",") {
|
|
1241
|
+
let e = H, t = z[z.length - 1];
|
|
1242
|
+
t && B[B.length - 1] === "braces" && (t.comma = !0, e = "|"), Q({
|
|
1243
|
+
type: "comma",
|
|
1244
|
+
value: H,
|
|
1245
|
+
output: e
|
|
1246
|
+
});
|
|
1247
|
+
continue;
|
|
1248
|
+
}
|
|
1249
|
+
if (H === "/") {
|
|
1250
|
+
if (V.type === "dot" && L.index === L.start + 1) {
|
|
1251
|
+
L.start = L.index + 1, L.consumed = "", L.output = "", g.pop(), V = h;
|
|
1252
|
+
continue;
|
|
1253
|
+
}
|
|
1254
|
+
Q({
|
|
1255
|
+
type: "slash",
|
|
1256
|
+
value: H,
|
|
1257
|
+
output: C
|
|
1258
|
+
});
|
|
1259
|
+
continue;
|
|
1260
|
+
}
|
|
1261
|
+
if (H === ".") {
|
|
1262
|
+
if (L.braces > 0 && V.type === "dot") {
|
|
1263
|
+
V.value === "." && (V.output = x);
|
|
1264
|
+
let e = z[z.length - 1];
|
|
1265
|
+
V.type = "dots", V.output += H, V.value += H, e.dots = !0;
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
if (L.braces + L.parens === 0 && V.type !== "bos" && V.type !== "slash") {
|
|
1269
|
+
Q({
|
|
1270
|
+
type: "text",
|
|
1271
|
+
value: H,
|
|
1272
|
+
output: x
|
|
1273
|
+
});
|
|
1274
|
+
continue;
|
|
1275
|
+
}
|
|
1276
|
+
Q({
|
|
1277
|
+
type: "dot",
|
|
1278
|
+
value: H,
|
|
1279
|
+
output: x
|
|
1280
|
+
});
|
|
1281
|
+
continue;
|
|
1282
|
+
}
|
|
1283
|
+
if (H === "?") {
|
|
1284
|
+
if (!(V && V.value === "(") && f.noextglob !== !0 && W() === "(" && W(2) !== "?") {
|
|
1285
|
+
$("qmark", H);
|
|
1286
|
+
continue;
|
|
1287
|
+
}
|
|
1288
|
+
if (V && V.type === "paren") {
|
|
1289
|
+
let e = W(), t = H;
|
|
1290
|
+
if (e === "<" && !r.supportsLookbehinds()) throw Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
1291
|
+
(V.value === "(" && !/[!=<:]/.test(e) || e === "<" && !/<([!=]|\w+>)/.test(K())) && (t = `\\${H}`), Q({
|
|
1292
|
+
type: "text",
|
|
1293
|
+
value: H,
|
|
1294
|
+
output: t
|
|
1295
|
+
});
|
|
1296
|
+
continue;
|
|
1297
|
+
}
|
|
1298
|
+
if (f.dot !== !0 && (V.type === "slash" || V.type === "bos")) {
|
|
1299
|
+
Q({
|
|
1300
|
+
type: "qmark",
|
|
1301
|
+
value: H,
|
|
1302
|
+
output: A
|
|
1303
|
+
});
|
|
1304
|
+
continue;
|
|
1305
|
+
}
|
|
1306
|
+
Q({
|
|
1307
|
+
type: "qmark",
|
|
1308
|
+
value: H,
|
|
1309
|
+
output: k
|
|
1310
|
+
});
|
|
1311
|
+
continue;
|
|
1312
|
+
}
|
|
1313
|
+
if (H === "!") {
|
|
1314
|
+
if (f.noextglob !== !0 && W() === "(" && (W(2) !== "?" || !/[!=<:]/.test(W(3)))) {
|
|
1315
|
+
$("negate", H);
|
|
1316
|
+
continue;
|
|
1317
|
+
}
|
|
1318
|
+
if (f.nonegate !== !0 && L.index === 0) {
|
|
1319
|
+
Y();
|
|
1320
|
+
continue;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
if (H === "+") {
|
|
1324
|
+
if (f.noextglob !== !0 && W() === "(" && W(2) !== "?") {
|
|
1325
|
+
$("plus", H);
|
|
1326
|
+
continue;
|
|
1327
|
+
}
|
|
1328
|
+
if (V && V.value === "(" || f.regex === !1) {
|
|
1329
|
+
Q({
|
|
1330
|
+
type: "plus",
|
|
1331
|
+
value: H,
|
|
1332
|
+
output: S
|
|
1333
|
+
});
|
|
1334
|
+
continue;
|
|
1335
|
+
}
|
|
1336
|
+
if (V && (V.type === "bracket" || V.type === "paren" || V.type === "brace") || L.parens > 0) {
|
|
1337
|
+
Q({
|
|
1338
|
+
type: "plus",
|
|
1339
|
+
value: H
|
|
1340
|
+
});
|
|
1341
|
+
continue;
|
|
1342
|
+
}
|
|
1343
|
+
Q({
|
|
1344
|
+
type: "plus",
|
|
1345
|
+
value: S
|
|
1346
|
+
});
|
|
1347
|
+
continue;
|
|
1348
|
+
}
|
|
1349
|
+
if (H === "@") {
|
|
1350
|
+
if (f.noextglob !== !0 && W() === "(" && W(2) !== "?") {
|
|
1351
|
+
Q({
|
|
1352
|
+
type: "at",
|
|
1353
|
+
extglob: !0,
|
|
1354
|
+
value: H,
|
|
1355
|
+
output: ""
|
|
1356
|
+
});
|
|
1357
|
+
continue;
|
|
1358
|
+
}
|
|
1359
|
+
Q({
|
|
1360
|
+
type: "text",
|
|
1361
|
+
value: H
|
|
1362
|
+
});
|
|
1363
|
+
continue;
|
|
1364
|
+
}
|
|
1365
|
+
if (H !== "*") {
|
|
1366
|
+
(H === "$" || H === "^") && (H = `\\${H}`);
|
|
1367
|
+
let e = o.exec(K());
|
|
1368
|
+
e && (H += e[0], L.index += e[0].length), Q({
|
|
1369
|
+
type: "text",
|
|
1370
|
+
value: H
|
|
1371
|
+
});
|
|
1372
|
+
continue;
|
|
1373
|
+
}
|
|
1374
|
+
if (V && (V.type === "globstar" || V.star === !0)) {
|
|
1375
|
+
V.type = "star", V.star = !0, V.value += H, V.output = I, L.backtrack = !0, L.globstar = !0, q(H);
|
|
1376
|
+
continue;
|
|
1377
|
+
}
|
|
1378
|
+
let t = K();
|
|
1379
|
+
if (f.noextglob !== !0 && /^\([^?]/.test(t)) {
|
|
1380
|
+
$("star", H);
|
|
1381
|
+
continue;
|
|
1382
|
+
}
|
|
1383
|
+
if (V.type === "star") {
|
|
1384
|
+
if (f.noglobstar === !0) {
|
|
1385
|
+
q(H);
|
|
1386
|
+
continue;
|
|
1387
|
+
}
|
|
1388
|
+
let n = V.prev, r = n.prev, i = n.type === "slash" || n.type === "bos", a = r && (r.type === "star" || r.type === "globstar");
|
|
1389
|
+
if (f.bash === !0 && (!i || t[0] && t[0] !== "/")) {
|
|
1390
|
+
Q({
|
|
1391
|
+
type: "star",
|
|
1392
|
+
value: H,
|
|
1393
|
+
output: ""
|
|
1394
|
+
});
|
|
1395
|
+
continue;
|
|
1396
|
+
}
|
|
1397
|
+
let o = L.braces > 0 && (n.type === "comma" || n.type === "brace"), s = R.length && (n.type === "pipe" || n.type === "paren");
|
|
1398
|
+
if (!i && n.type !== "paren" && !o && !s) {
|
|
1399
|
+
Q({
|
|
1400
|
+
type: "star",
|
|
1401
|
+
value: H,
|
|
1402
|
+
output: ""
|
|
1403
|
+
});
|
|
1404
|
+
continue;
|
|
1405
|
+
}
|
|
1406
|
+
for (; t.slice(0, 3) === "/**";) {
|
|
1407
|
+
let n = e[L.index + 4];
|
|
1408
|
+
if (n && n !== "/") break;
|
|
1409
|
+
t = t.slice(3), q("/**", 3);
|
|
1410
|
+
}
|
|
1411
|
+
if (n.type === "bos" && U()) {
|
|
1412
|
+
V.type = "globstar", V.value += H, V.output = N(f), L.output = V.output, L.globstar = !0, q(H);
|
|
1413
|
+
continue;
|
|
1414
|
+
}
|
|
1415
|
+
if (n.type === "slash" && n.prev.type !== "bos" && !a && U()) {
|
|
1416
|
+
L.output = L.output.slice(0, -(n.output + V.output).length), n.output = `(?:${n.output}`, V.type = "globstar", V.output = N(f) + (f.strictSlashes ? ")" : "|$)"), V.value += H, L.globstar = !0, L.output += n.output + V.output, q(H);
|
|
1417
|
+
continue;
|
|
1418
|
+
}
|
|
1419
|
+
if (n.type === "slash" && n.prev.type !== "bos" && t[0] === "/") {
|
|
1420
|
+
let e = t[1] === void 0 ? "" : "|$";
|
|
1421
|
+
L.output = L.output.slice(0, -(n.output + V.output).length), n.output = `(?:${n.output}`, V.type = "globstar", V.output = `${N(f)}${C}|${C}${e})`, V.value += H, L.output += n.output + V.output, L.globstar = !0, q(H + G()), Q({
|
|
1422
|
+
type: "slash",
|
|
1423
|
+
value: "/",
|
|
1424
|
+
output: ""
|
|
1425
|
+
});
|
|
1426
|
+
continue;
|
|
1427
|
+
}
|
|
1428
|
+
if (n.type === "bos" && t[0] === "/") {
|
|
1429
|
+
V.type = "globstar", V.value += H, V.output = `(?:^|${C}|${N(f)}${C})`, L.output = V.output, L.globstar = !0, q(H + G()), Q({
|
|
1430
|
+
type: "slash",
|
|
1431
|
+
value: "/",
|
|
1432
|
+
output: ""
|
|
1433
|
+
});
|
|
1434
|
+
continue;
|
|
1435
|
+
}
|
|
1436
|
+
L.output = L.output.slice(0, -V.output.length), V.type = "globstar", V.output = N(f), V.value += H, L.output += V.output, L.globstar = !0, q(H);
|
|
1437
|
+
continue;
|
|
1438
|
+
}
|
|
1439
|
+
let n = {
|
|
1440
|
+
type: "star",
|
|
1441
|
+
value: H,
|
|
1442
|
+
output: I
|
|
1443
|
+
};
|
|
1444
|
+
if (f.bash === !0) {
|
|
1445
|
+
n.output = ".*?", (V.type === "bos" || V.type === "slash") && (n.output = P + n.output), Q(n);
|
|
1446
|
+
continue;
|
|
1447
|
+
}
|
|
1448
|
+
if (V && (V.type === "bracket" || V.type === "paren") && f.regex === !0) {
|
|
1449
|
+
n.output = H, Q(n);
|
|
1450
|
+
continue;
|
|
1451
|
+
}
|
|
1452
|
+
(L.index === L.start || V.type === "slash" || V.type === "dot") && (V.type === "dot" ? (L.output += D, V.output += D) : f.dot === !0 ? (L.output += O, V.output += O) : (L.output += P, V.output += P), W() !== "*" && (L.output += w, V.output += w)), Q(n);
|
|
1453
|
+
}
|
|
1454
|
+
for (; L.brackets > 0;) {
|
|
1455
|
+
if (f.strictBrackets === !0) throw SyntaxError(u("closing", "]"));
|
|
1456
|
+
L.output = r.escapeLast(L.output, "["), Z("brackets");
|
|
1457
|
+
}
|
|
1458
|
+
for (; L.parens > 0;) {
|
|
1459
|
+
if (f.strictBrackets === !0) throw SyntaxError(u("closing", ")"));
|
|
1460
|
+
L.output = r.escapeLast(L.output, "("), Z("parens");
|
|
1461
|
+
}
|
|
1462
|
+
for (; L.braces > 0;) {
|
|
1463
|
+
if (f.strictBrackets === !0) throw SyntaxError(u("closing", "}"));
|
|
1464
|
+
L.output = r.escapeLast(L.output, "{"), Z("braces");
|
|
1465
|
+
}
|
|
1466
|
+
if (f.strictSlashes !== !0 && (V.type === "star" || V.type === "bracket") && Q({
|
|
1467
|
+
type: "maybe_slash",
|
|
1468
|
+
value: "",
|
|
1469
|
+
output: `${C}?`
|
|
1470
|
+
}), L.backtrack === !0) {
|
|
1471
|
+
L.output = "";
|
|
1472
|
+
for (let e of L.tokens) L.output += e.output == null ? e.value : e.output, e.suffix && (L.output += e.suffix);
|
|
1473
|
+
}
|
|
1474
|
+
return L;
|
|
1475
|
+
};
|
|
1476
|
+
d.fastpaths = (e, t) => {
|
|
1477
|
+
let a = { ...t }, o = typeof a.maxLength == "number" ? Math.min(i, a.maxLength) : i, s = e.length;
|
|
1478
|
+
if (s > o) throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);
|
|
1479
|
+
e = c[e] || e;
|
|
1480
|
+
let l = r.isWindows(t), { DOT_LITERAL: u, SLASH_LITERAL: d, ONE_CHAR: f, DOTS_SLASH: p, NO_DOT: m, NO_DOTS: h, NO_DOTS_SLASH: g, STAR: _, START_ANCHOR: v } = n.globChars(l), y = a.dot ? h : m, b = a.dot ? g : m, x = a.capture ? "" : "?:", S = {
|
|
1481
|
+
negated: !1,
|
|
1482
|
+
prefix: ""
|
|
1483
|
+
}, C = a.bash === !0 ? ".*?" : _;
|
|
1484
|
+
a.capture && (C = `(${C})`);
|
|
1485
|
+
let w = (e) => e.noglobstar === !0 ? C : `(${x}(?:(?!${v}${e.dot ? p : u}).)*?)`, T = (e) => {
|
|
1486
|
+
switch (e) {
|
|
1487
|
+
case "*": return `${y}${f}${C}`;
|
|
1488
|
+
case ".*": return `${u}${f}${C}`;
|
|
1489
|
+
case "*.*": return `${y}${C}${u}${f}${C}`;
|
|
1490
|
+
case "*/*": return `${y}${C}${d}${f}${b}${C}`;
|
|
1491
|
+
case "**": return y + w(a);
|
|
1492
|
+
case "**/*": return `(?:${y}${w(a)}${d})?${b}${f}${C}`;
|
|
1493
|
+
case "**/*.*": return `(?:${y}${w(a)}${d})?${b}${C}${u}${f}${C}`;
|
|
1494
|
+
case "**/.*": return `(?:${y}${w(a)}${d})?${u}${f}${C}`;
|
|
1495
|
+
default: {
|
|
1496
|
+
let t = /^(.*?)\.(\w+)$/.exec(e);
|
|
1497
|
+
if (!t) return;
|
|
1498
|
+
let n = T(t[1]);
|
|
1499
|
+
return n ? n + u + t[2] : void 0;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}, E = T(r.removePrefix(e, S));
|
|
1503
|
+
return E && a.strictSlashes !== !0 && (E += `${d}?`), E;
|
|
1504
|
+
}, t.exports = d;
|
|
1505
|
+
})), require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
1506
|
+
var n = require___vite_browser_external(), r = require_scan(), i = require_parse(), a = require_utils$2(), o = require_constants$1(), s = (e) => e && typeof e == "object" && !Array.isArray(e), c = (e, t, n = !1) => {
|
|
1507
|
+
if (Array.isArray(e)) {
|
|
1508
|
+
let r = e.map((e) => c(e, t, n));
|
|
1509
|
+
return (e) => {
|
|
1510
|
+
for (let t of r) {
|
|
1511
|
+
let n = t(e);
|
|
1512
|
+
if (n) return n;
|
|
1513
|
+
}
|
|
1514
|
+
return !1;
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
let r = s(e) && e.tokens && e.input;
|
|
1518
|
+
if (e === "" || typeof e != "string" && !r) throw TypeError("Expected pattern to be a non-empty string");
|
|
1519
|
+
let i = t || {}, o = a.isWindows(t), l = r ? c.compileRe(e, t) : c.makeRe(e, t, !1, !0), u = l.state;
|
|
1520
|
+
delete l.state;
|
|
1521
|
+
let d = () => !1;
|
|
1522
|
+
if (i.ignore) {
|
|
1523
|
+
let e = {
|
|
1524
|
+
...t,
|
|
1525
|
+
ignore: null,
|
|
1526
|
+
onMatch: null,
|
|
1527
|
+
onResult: null
|
|
1528
|
+
};
|
|
1529
|
+
d = c(i.ignore, e, n);
|
|
1530
|
+
}
|
|
1531
|
+
let f = (n, r = !1) => {
|
|
1532
|
+
let { isMatch: a, match: s, output: f } = c.test(n, l, t, {
|
|
1533
|
+
glob: e,
|
|
1534
|
+
posix: o
|
|
1535
|
+
}), p = {
|
|
1536
|
+
glob: e,
|
|
1537
|
+
state: u,
|
|
1538
|
+
regex: l,
|
|
1539
|
+
posix: o,
|
|
1540
|
+
input: n,
|
|
1541
|
+
output: f,
|
|
1542
|
+
match: s,
|
|
1543
|
+
isMatch: a
|
|
1544
|
+
};
|
|
1545
|
+
return typeof i.onResult == "function" && i.onResult(p), a === !1 ? (p.isMatch = !1, r ? p : !1) : d(n) ? (typeof i.onIgnore == "function" && i.onIgnore(p), p.isMatch = !1, r ? p : !1) : (typeof i.onMatch == "function" && i.onMatch(p), r ? p : !0);
|
|
1546
|
+
};
|
|
1547
|
+
return n && (f.state = u), f;
|
|
1548
|
+
};
|
|
1549
|
+
c.test = (e, t, n, { glob: r, posix: i } = {}) => {
|
|
1550
|
+
if (typeof e != "string") throw TypeError("Expected input to be a string");
|
|
1551
|
+
if (e === "") return {
|
|
1552
|
+
isMatch: !1,
|
|
1553
|
+
output: ""
|
|
1554
|
+
};
|
|
1555
|
+
let o = n || {}, s = o.format || (i ? a.toPosixSlashes : null), l = e === r, u = l && s ? s(e) : e;
|
|
1556
|
+
return l === !1 && (u = s ? s(e) : e, l = u === r), (l === !1 || o.capture === !0) && (l = o.matchBase === !0 || o.basename === !0 ? c.matchBase(e, t, n, i) : t.exec(u)), {
|
|
1557
|
+
isMatch: !!l,
|
|
1558
|
+
match: l,
|
|
1559
|
+
output: u
|
|
1560
|
+
};
|
|
1561
|
+
}, c.matchBase = (e, t, r, i = a.isWindows(r)) => (t instanceof RegExp ? t : c.makeRe(t, r)).test(n.basename(e)), c.isMatch = (e, t, n) => c(t, n)(e), c.parse = (e, t) => Array.isArray(e) ? e.map((e) => c.parse(e, t)) : i(e, {
|
|
1562
|
+
...t,
|
|
1563
|
+
fastpaths: !1
|
|
1564
|
+
}), c.scan = (e, t) => r(e, t), c.compileRe = (e, t, n = !1, r = !1) => {
|
|
1565
|
+
if (n === !0) return e.output;
|
|
1566
|
+
let i = t || {}, a = i.contains ? "" : "^", o = i.contains ? "" : "$", s = `${a}(?:${e.output})${o}`;
|
|
1567
|
+
e && e.negated === !0 && (s = `^(?!${s}).*$`);
|
|
1568
|
+
let l = c.toRegex(s, t);
|
|
1569
|
+
return r === !0 && (l.state = e), l;
|
|
1570
|
+
}, c.makeRe = (e, t = {}, n = !1, r = !1) => {
|
|
1571
|
+
if (!e || typeof e != "string") throw TypeError("Expected a non-empty string");
|
|
1572
|
+
let a = {
|
|
1573
|
+
negated: !1,
|
|
1574
|
+
fastpaths: !0
|
|
1575
|
+
};
|
|
1576
|
+
return t.fastpaths !== !1 && (e[0] === "." || e[0] === "*") && (a.output = i.fastpaths(e, t)), a.output || (a = i(e, t)), c.compileRe(a, t, n, r);
|
|
1577
|
+
}, c.toRegex = (e, t) => {
|
|
1578
|
+
try {
|
|
1579
|
+
let n = t || {};
|
|
1580
|
+
return new RegExp(e, n.flags || (n.nocase ? "i" : ""));
|
|
1581
|
+
} catch (e) {
|
|
1582
|
+
if (t && t.debug === !0) throw e;
|
|
1583
|
+
return /$^/;
|
|
1584
|
+
}
|
|
1585
|
+
}, c.constants = o, t.exports = c;
|
|
1586
|
+
})), require_picomatch = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
1587
|
+
t.exports = require_picomatch$1();
|
|
1588
|
+
})), require_micromatch = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
1589
|
+
var n = require___vite_browser_external(), r = require_braces(), i = require_picomatch(), a = require_utils$2(), o = (e) => e === "" || e === "./", s = (e) => {
|
|
1590
|
+
let t = e.indexOf("{");
|
|
1591
|
+
return t > -1 && e.indexOf("}", t) > -1;
|
|
1592
|
+
}, c = (e, t, n) => {
|
|
1593
|
+
t = [].concat(t), e = [].concat(e);
|
|
1594
|
+
let r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = 0, c = (e) => {
|
|
1595
|
+
o.add(e.output), n && n.onResult && n.onResult(e);
|
|
1596
|
+
};
|
|
1597
|
+
for (let o = 0; o < t.length; o++) {
|
|
1598
|
+
let l = i(String(t[o]), {
|
|
1599
|
+
...n,
|
|
1600
|
+
onResult: c
|
|
1601
|
+
}, !0), u = l.state.negated || l.state.negatedExtglob;
|
|
1602
|
+
u && s++;
|
|
1603
|
+
for (let t of e) {
|
|
1604
|
+
let e = l(t, !0);
|
|
1605
|
+
(u ? !e.isMatch : e.isMatch) && (u ? r.add(e.output) : (r.delete(e.output), a.add(e.output)));
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
let l = (s === t.length ? [...o] : [...a]).filter((e) => !r.has(e));
|
|
1609
|
+
if (n && l.length === 0) {
|
|
1610
|
+
if (n.failglob === !0) throw Error(`No matches found for "${t.join(", ")}"`);
|
|
1611
|
+
if (n.nonull === !0 || n.nullglob === !0) return n.unescape ? t.map((e) => e.replace(/\\/g, "")) : t;
|
|
1612
|
+
}
|
|
1613
|
+
return l;
|
|
1614
|
+
};
|
|
1615
|
+
c.match = c, c.matcher = (e, t) => i(e, t), c.isMatch = (e, t, n) => i(t, n)(e), c.any = c.isMatch, c.not = (e, t, n = {}) => {
|
|
1616
|
+
t = [].concat(t).map(String);
|
|
1617
|
+
let r = /* @__PURE__ */ new Set(), i = [], a = (e) => {
|
|
1618
|
+
n.onResult && n.onResult(e), i.push(e.output);
|
|
1619
|
+
}, o = new Set(c(e, t, {
|
|
1620
|
+
...n,
|
|
1621
|
+
onResult: a
|
|
1622
|
+
}));
|
|
1623
|
+
for (let e of i) o.has(e) || r.add(e);
|
|
1624
|
+
return [...r];
|
|
1625
|
+
}, c.contains = (e, t, r) => {
|
|
1626
|
+
if (typeof e != "string") throw TypeError(`Expected a string: "${n.inspect(e)}"`);
|
|
1627
|
+
if (Array.isArray(t)) return t.some((t) => c.contains(e, t, r));
|
|
1628
|
+
if (typeof t == "string") {
|
|
1629
|
+
if (o(e) || o(t)) return !1;
|
|
1630
|
+
if (e.includes(t) || e.startsWith("./") && e.slice(2).includes(t)) return !0;
|
|
1631
|
+
}
|
|
1632
|
+
return c.isMatch(e, t, {
|
|
1633
|
+
...r,
|
|
1634
|
+
contains: !0
|
|
1635
|
+
});
|
|
1636
|
+
}, c.matchKeys = (e, t, n) => {
|
|
1637
|
+
if (!a.isObject(e)) throw TypeError("Expected the first argument to be an object");
|
|
1638
|
+
let r = c(Object.keys(e), t, n), i = {};
|
|
1639
|
+
for (let t of r) i[t] = e[t];
|
|
1640
|
+
return i;
|
|
1641
|
+
}, c.some = (e, t, n) => {
|
|
1642
|
+
let r = [].concat(e);
|
|
1643
|
+
for (let e of [].concat(t)) {
|
|
1644
|
+
let t = i(String(e), n);
|
|
1645
|
+
if (r.some((e) => t(e))) return !0;
|
|
1646
|
+
}
|
|
1647
|
+
return !1;
|
|
1648
|
+
}, c.every = (e, t, n) => {
|
|
1649
|
+
let r = [].concat(e);
|
|
1650
|
+
for (let e of [].concat(t)) {
|
|
1651
|
+
let t = i(String(e), n);
|
|
1652
|
+
if (!r.every((e) => t(e))) return !1;
|
|
1653
|
+
}
|
|
1654
|
+
return !0;
|
|
1655
|
+
}, c.all = (e, t, r) => {
|
|
1656
|
+
if (typeof e != "string") throw TypeError(`Expected a string: "${n.inspect(e)}"`);
|
|
1657
|
+
return [].concat(t).every((t) => i(t, r)(e));
|
|
1658
|
+
}, c.capture = (e, t, n) => {
|
|
1659
|
+
let r = a.isWindows(n), o = i.makeRe(String(e), {
|
|
1660
|
+
...n,
|
|
1661
|
+
capture: !0
|
|
1662
|
+
}).exec(r ? a.toPosixSlashes(t) : t);
|
|
1663
|
+
if (o) return o.slice(1).map((e) => e === void 0 ? "" : e);
|
|
1664
|
+
}, c.makeRe = (...e) => i.makeRe(...e), c.scan = (...e) => i.scan(...e), c.parse = (e, t) => {
|
|
1665
|
+
let n = [];
|
|
1666
|
+
for (let a of [].concat(e || [])) for (let e of r(String(a), t)) n.push(i.parse(e, t));
|
|
1667
|
+
return n;
|
|
1668
|
+
}, c.braces = (e, t) => {
|
|
1669
|
+
if (typeof e != "string") throw TypeError("Expected a string");
|
|
1670
|
+
return t && t.nobrace === !0 || !s(e) ? [e] : r(e, t);
|
|
1671
|
+
}, c.braceExpand = (e, t) => {
|
|
1672
|
+
if (typeof e != "string") throw TypeError("Expected a string");
|
|
1673
|
+
return c.braces(e, {
|
|
1674
|
+
...t,
|
|
1675
|
+
expand: !0
|
|
1676
|
+
});
|
|
1677
|
+
}, c.hasBraces = s, t.exports = c;
|
|
1678
|
+
})), require_pattern = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1679
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.isAbsolute = e.partitionAbsoluteAndRelative = e.removeDuplicateSlashes = e.matchAny = e.convertPatternsToRe = e.makeRe = e.getPatternParts = e.expandBraceExpansion = e.expandPatternsWithBraceExpansion = e.isAffectDepthOfReadingPattern = e.endsWithSlashGlobStar = e.hasGlobStar = e.getBaseDirectory = e.isPatternRelatedToParentDirectory = e.getPatternsOutsideCurrentDirectory = e.getPatternsInsideCurrentDirectory = e.getPositivePatterns = e.getNegativePatterns = e.isPositivePattern = e.isNegativePattern = e.convertToNegativePattern = e.convertToPositivePattern = e.isDynamicPattern = e.isStaticPattern = void 0;
|
|
1680
|
+
var t = require___vite_browser_external(), n = require_glob_parent(), r = require_micromatch(), i = "**", a = "\\", o = /[*?]|^!/, s = /\[[^[]*]/, c = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/, l = /[!*+?@]\([^(]*\)/, u = /,|\.\./, d = /(?!^)\/{2,}/g;
|
|
1681
|
+
function p(e, t = {}) {
|
|
1682
|
+
return !m(e, t);
|
|
1683
|
+
}
|
|
1684
|
+
e.isStaticPattern = p;
|
|
1685
|
+
function m(e, t = {}) {
|
|
1686
|
+
return e === "" ? !1 : !!(t.caseSensitiveMatch === !1 || e.includes(a) || o.test(e) || s.test(e) || c.test(e) || t.extglob !== !1 && l.test(e) || t.braceExpansion !== !1 && h(e));
|
|
1687
|
+
}
|
|
1688
|
+
e.isDynamicPattern = m;
|
|
1689
|
+
function h(e) {
|
|
1690
|
+
let t = e.indexOf("{");
|
|
1691
|
+
if (t === -1) return !1;
|
|
1692
|
+
let n = e.indexOf("}", t + 1);
|
|
1693
|
+
if (n === -1) return !1;
|
|
1694
|
+
let r = e.slice(t, n);
|
|
1695
|
+
return u.test(r);
|
|
1696
|
+
}
|
|
1697
|
+
function _(e) {
|
|
1698
|
+
return y(e) ? e.slice(1) : e;
|
|
1699
|
+
}
|
|
1700
|
+
e.convertToPositivePattern = _;
|
|
1701
|
+
function v(e) {
|
|
1702
|
+
return "!" + e;
|
|
1703
|
+
}
|
|
1704
|
+
e.convertToNegativePattern = v;
|
|
1705
|
+
function y(e) {
|
|
1706
|
+
return e.startsWith("!") && e[1] !== "(";
|
|
1707
|
+
}
|
|
1708
|
+
e.isNegativePattern = y;
|
|
1709
|
+
function b(e) {
|
|
1710
|
+
return !y(e);
|
|
1711
|
+
}
|
|
1712
|
+
e.isPositivePattern = b;
|
|
1713
|
+
function x(e) {
|
|
1714
|
+
return e.filter(y);
|
|
1715
|
+
}
|
|
1716
|
+
e.getNegativePatterns = x;
|
|
1717
|
+
function S(e) {
|
|
1718
|
+
return e.filter(b);
|
|
1719
|
+
}
|
|
1720
|
+
e.getPositivePatterns = S;
|
|
1721
|
+
function C(e) {
|
|
1722
|
+
return e.filter((e) => !T(e));
|
|
1723
|
+
}
|
|
1724
|
+
e.getPatternsInsideCurrentDirectory = C;
|
|
1725
|
+
function w(e) {
|
|
1726
|
+
return e.filter(T);
|
|
1727
|
+
}
|
|
1728
|
+
e.getPatternsOutsideCurrentDirectory = w;
|
|
1729
|
+
function T(e) {
|
|
1730
|
+
return e.startsWith("..") || e.startsWith("./..");
|
|
1731
|
+
}
|
|
1732
|
+
e.isPatternRelatedToParentDirectory = T;
|
|
1733
|
+
function E(e) {
|
|
1734
|
+
return n(e, { flipBackslashes: !1 });
|
|
1735
|
+
}
|
|
1736
|
+
e.getBaseDirectory = E;
|
|
1737
|
+
function D(e) {
|
|
1738
|
+
return e.includes(i);
|
|
1739
|
+
}
|
|
1740
|
+
e.hasGlobStar = D;
|
|
1741
|
+
function O(e) {
|
|
1742
|
+
return e.endsWith("/" + i);
|
|
1743
|
+
}
|
|
1744
|
+
e.endsWithSlashGlobStar = O;
|
|
1745
|
+
function k(e) {
|
|
1746
|
+
let n = t.basename(e);
|
|
1747
|
+
return O(e) || p(n);
|
|
1748
|
+
}
|
|
1749
|
+
e.isAffectDepthOfReadingPattern = k;
|
|
1750
|
+
function A(e) {
|
|
1751
|
+
return e.reduce((e, t) => e.concat(j(t)), []);
|
|
1752
|
+
}
|
|
1753
|
+
e.expandPatternsWithBraceExpansion = A;
|
|
1754
|
+
function j(e) {
|
|
1755
|
+
let t = r.braces(e, {
|
|
1756
|
+
expand: !0,
|
|
1757
|
+
nodupes: !0,
|
|
1758
|
+
keepEscaping: !0
|
|
1759
|
+
});
|
|
1760
|
+
return t.sort((e, t) => e.length - t.length), t.filter((e) => e !== "");
|
|
1761
|
+
}
|
|
1762
|
+
e.expandBraceExpansion = j;
|
|
1763
|
+
function M(e, t) {
|
|
1764
|
+
let { parts: n } = r.scan(e, Object.assign(Object.assign({}, t), { parts: !0 }));
|
|
1765
|
+
return n.length === 0 && (n = [e]), n[0].startsWith("/") && (n[0] = n[0].slice(1), n.unshift("")), n;
|
|
1766
|
+
}
|
|
1767
|
+
e.getPatternParts = M;
|
|
1768
|
+
function P(e, t) {
|
|
1769
|
+
return r.makeRe(e, t);
|
|
1770
|
+
}
|
|
1771
|
+
e.makeRe = P;
|
|
1772
|
+
function F(e, t) {
|
|
1773
|
+
return e.map((e) => P(e, t));
|
|
1774
|
+
}
|
|
1775
|
+
e.convertPatternsToRe = F;
|
|
1776
|
+
function I(e, t) {
|
|
1777
|
+
return t.some((t) => t.test(e));
|
|
1778
|
+
}
|
|
1779
|
+
e.matchAny = I;
|
|
1780
|
+
function L(e) {
|
|
1781
|
+
return e.replace(d, "/");
|
|
1782
|
+
}
|
|
1783
|
+
e.removeDuplicateSlashes = L;
|
|
1784
|
+
function R(e) {
|
|
1785
|
+
let t = [], n = [];
|
|
1786
|
+
for (let r of e) z(r) ? t.push(r) : n.push(r);
|
|
1787
|
+
return [t, n];
|
|
1788
|
+
}
|
|
1789
|
+
e.partitionAbsoluteAndRelative = R;
|
|
1790
|
+
function z(e) {
|
|
1791
|
+
return t.isAbsolute(e);
|
|
1792
|
+
}
|
|
1793
|
+
e.isAbsolute = z;
|
|
1794
|
+
})), require_merge2 = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
1795
|
+
var n = require___vite_browser_external().PassThrough, r = Array.prototype.slice;
|
|
1796
|
+
t.exports = i;
|
|
1797
|
+
function i() {
|
|
1798
|
+
let e = [], t = r.call(arguments), i = !1, o = t[t.length - 1];
|
|
1799
|
+
o && !Array.isArray(o) && o.pipe == null ? t.pop() : o = {};
|
|
1800
|
+
let s = o.end !== !1, c = o.pipeError === !0;
|
|
1801
|
+
o.objectMode ??= !0, o.highWaterMark ??= 64 * 1024;
|
|
1802
|
+
let l = n(o);
|
|
1803
|
+
function u() {
|
|
1804
|
+
for (let t = 0, n = arguments.length; t < n; t++) e.push(a(arguments[t], o));
|
|
1805
|
+
return d(), this;
|
|
1806
|
+
}
|
|
1807
|
+
function d() {
|
|
1808
|
+
if (i) return;
|
|
1809
|
+
i = !0;
|
|
1810
|
+
let t = e.shift();
|
|
1811
|
+
if (!t) {
|
|
1812
|
+
process.nextTick(f);
|
|
1813
|
+
return;
|
|
1814
|
+
}
|
|
1815
|
+
Array.isArray(t) || (t = [t]);
|
|
1816
|
+
let n = t.length + 1;
|
|
1817
|
+
function r() {
|
|
1818
|
+
--n > 0 || (i = !1, d());
|
|
1819
|
+
}
|
|
1820
|
+
function a(e) {
|
|
1821
|
+
function t() {
|
|
1822
|
+
e.removeListener("merge2UnpipeEnd", t), e.removeListener("end", t), c && e.removeListener("error", n), r();
|
|
1823
|
+
}
|
|
1824
|
+
function n(e) {
|
|
1825
|
+
l.emit("error", e);
|
|
1826
|
+
}
|
|
1827
|
+
if (e._readableState.endEmitted) return r();
|
|
1828
|
+
e.on("merge2UnpipeEnd", t), e.on("end", t), c && e.on("error", n), e.pipe(l, { end: !1 }), e.resume();
|
|
1829
|
+
}
|
|
1830
|
+
for (let e = 0; e < t.length; e++) a(t[e]);
|
|
1831
|
+
r();
|
|
1832
|
+
}
|
|
1833
|
+
function f() {
|
|
1834
|
+
i = !1, l.emit("queueDrain"), s && l.end();
|
|
1835
|
+
}
|
|
1836
|
+
return l.setMaxListeners(0), l.add = u, l.on("unpipe", function(e) {
|
|
1837
|
+
e.emit("merge2UnpipeEnd");
|
|
1838
|
+
}), t.length && u.apply(null, t), l;
|
|
1839
|
+
}
|
|
1840
|
+
function a(e, t) {
|
|
1841
|
+
if (Array.isArray(e)) for (let n = 0, r = e.length; n < r; n++) e[n] = a(e[n], t);
|
|
1842
|
+
else {
|
|
1843
|
+
if (!e._readableState && e.pipe && (e = e.pipe(n(t))), !e._readableState || !e.pause || !e.pipe) throw Error("Only readable stream can be merged.");
|
|
1844
|
+
e.pause();
|
|
1845
|
+
}
|
|
1846
|
+
return e;
|
|
1847
|
+
}
|
|
1848
|
+
})), require_stream$3 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1849
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.merge = void 0;
|
|
1850
|
+
var t = require_merge2();
|
|
1851
|
+
function n(e) {
|
|
1852
|
+
let n = t(e);
|
|
1853
|
+
return e.forEach((e) => {
|
|
1854
|
+
e.once("error", (e) => n.emit("error", e));
|
|
1855
|
+
}), n.once("close", () => r(e)), n.once("end", () => r(e)), n;
|
|
1856
|
+
}
|
|
1857
|
+
e.merge = n;
|
|
1858
|
+
function r(e) {
|
|
1859
|
+
e.forEach((e) => e.emit("close"));
|
|
1860
|
+
}
|
|
1861
|
+
})), require_string = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1862
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEmpty = e.isString = void 0;
|
|
1863
|
+
function t(e) {
|
|
1864
|
+
return typeof e == "string";
|
|
1865
|
+
}
|
|
1866
|
+
e.isString = t;
|
|
1867
|
+
function n(e) {
|
|
1868
|
+
return e === "";
|
|
1869
|
+
}
|
|
1870
|
+
e.isEmpty = n;
|
|
1871
|
+
})), require_utils$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1872
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.string = e.stream = e.pattern = e.path = e.fs = e.errno = e.array = void 0, e.array = require_array(), e.errno = require_errno(), e.fs = require_fs$3(), e.path = require_path(), e.pattern = require_pattern(), e.stream = require_stream$3(), e.string = require_string();
|
|
1873
|
+
})), require_tasks = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1874
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.convertPatternGroupToTask = e.convertPatternGroupsToTasks = e.groupPatternsByBaseDirectory = e.getNegativePatternsAsPositive = e.getPositivePatterns = e.convertPatternsToTasks = e.generate = void 0;
|
|
1875
|
+
var t = require_utils$1();
|
|
1876
|
+
function n(e, n) {
|
|
1877
|
+
let s = r(e, n), c = r(n.ignore, n), l = a(s), u = o(s, c), d = l.filter((e) => t.pattern.isStaticPattern(e, n)), f = l.filter((e) => t.pattern.isDynamicPattern(e, n)), p = i(d, u, !1), m = i(f, u, !0);
|
|
1878
|
+
return p.concat(m);
|
|
1879
|
+
}
|
|
1880
|
+
e.generate = n;
|
|
1881
|
+
function r(e, n) {
|
|
1882
|
+
let r = e;
|
|
1883
|
+
return n.braceExpansion && (r = t.pattern.expandPatternsWithBraceExpansion(r)), n.baseNameMatch && (r = r.map((e) => e.includes("/") ? e : `**/${e}`)), r.map((e) => t.pattern.removeDuplicateSlashes(e));
|
|
1884
|
+
}
|
|
1885
|
+
function i(e, n, r) {
|
|
1886
|
+
let i = [], a = t.pattern.getPatternsOutsideCurrentDirectory(e), o = t.pattern.getPatternsInsideCurrentDirectory(e), u = s(a), d = s(o);
|
|
1887
|
+
return i.push(...c(u, n, r)), "." in d ? i.push(l(".", o, n, r)) : i.push(...c(d, n, r)), i;
|
|
1888
|
+
}
|
|
1889
|
+
e.convertPatternsToTasks = i;
|
|
1890
|
+
function a(e) {
|
|
1891
|
+
return t.pattern.getPositivePatterns(e);
|
|
1892
|
+
}
|
|
1893
|
+
e.getPositivePatterns = a;
|
|
1894
|
+
function o(e, n) {
|
|
1895
|
+
return t.pattern.getNegativePatterns(e).concat(n).map(t.pattern.convertToPositivePattern);
|
|
1896
|
+
}
|
|
1897
|
+
e.getNegativePatternsAsPositive = o;
|
|
1898
|
+
function s(e) {
|
|
1899
|
+
return e.reduce((e, n) => {
|
|
1900
|
+
let r = t.pattern.getBaseDirectory(n);
|
|
1901
|
+
return r in e ? e[r].push(n) : e[r] = [n], e;
|
|
1902
|
+
}, {});
|
|
1903
|
+
}
|
|
1904
|
+
e.groupPatternsByBaseDirectory = s;
|
|
1905
|
+
function c(e, t, n) {
|
|
1906
|
+
return Object.keys(e).map((r) => l(r, e[r], t, n));
|
|
1907
|
+
}
|
|
1908
|
+
e.convertPatternGroupsToTasks = c;
|
|
1909
|
+
function l(e, n, r, i) {
|
|
1910
|
+
return {
|
|
1911
|
+
dynamic: i,
|
|
1912
|
+
positive: n,
|
|
1913
|
+
negative: r,
|
|
1914
|
+
base: e,
|
|
1915
|
+
patterns: [].concat(n, r.map(t.pattern.convertToNegativePattern))
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
e.convertPatternGroupToTask = l;
|
|
1919
|
+
})), require_async$5 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1920
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.read = void 0;
|
|
1921
|
+
function t(e, t, i) {
|
|
1922
|
+
t.fs.lstat(e, (a, o) => {
|
|
1923
|
+
if (a !== null) {
|
|
1924
|
+
n(i, a);
|
|
1925
|
+
return;
|
|
1926
|
+
}
|
|
1927
|
+
if (!o.isSymbolicLink() || !t.followSymbolicLink) {
|
|
1928
|
+
r(i, o);
|
|
1929
|
+
return;
|
|
1930
|
+
}
|
|
1931
|
+
t.fs.stat(e, (e, a) => {
|
|
1932
|
+
if (e !== null) {
|
|
1933
|
+
if (t.throwErrorOnBrokenSymbolicLink) {
|
|
1934
|
+
n(i, e);
|
|
1935
|
+
return;
|
|
1936
|
+
}
|
|
1937
|
+
r(i, o);
|
|
1938
|
+
return;
|
|
1939
|
+
}
|
|
1940
|
+
t.markSymbolicLink && (a.isSymbolicLink = () => !0), r(i, a);
|
|
1941
|
+
});
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
e.read = t;
|
|
1945
|
+
function n(e, t) {
|
|
1946
|
+
e(t);
|
|
1947
|
+
}
|
|
1948
|
+
function r(e, t) {
|
|
1949
|
+
e(null, t);
|
|
1950
|
+
}
|
|
1951
|
+
})), require_sync$5 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1952
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.read = void 0;
|
|
1953
|
+
function t(e, t) {
|
|
1954
|
+
let n = t.fs.lstatSync(e);
|
|
1955
|
+
if (!n.isSymbolicLink() || !t.followSymbolicLink) return n;
|
|
1956
|
+
try {
|
|
1957
|
+
let n = t.fs.statSync(e);
|
|
1958
|
+
return t.markSymbolicLink && (n.isSymbolicLink = () => !0), n;
|
|
1959
|
+
} catch (e) {
|
|
1960
|
+
if (!t.throwErrorOnBrokenSymbolicLink) return n;
|
|
1961
|
+
throw e;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
e.read = t;
|
|
1965
|
+
})), require_fs$2 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1966
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
|
|
1967
|
+
var t = require___vite_browser_external();
|
|
1968
|
+
e.FILE_SYSTEM_ADAPTER = {
|
|
1969
|
+
lstat: t.lstat,
|
|
1970
|
+
stat: t.stat,
|
|
1971
|
+
lstatSync: t.lstatSync,
|
|
1972
|
+
statSync: t.statSync
|
|
1973
|
+
};
|
|
1974
|
+
function n(t) {
|
|
1975
|
+
return t === void 0 ? e.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
|
|
1976
|
+
}
|
|
1977
|
+
e.createFileSystemAdapter = n;
|
|
1978
|
+
})), require_settings$3 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1979
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1980
|
+
var t = require_fs$2();
|
|
1981
|
+
e.default = class {
|
|
1982
|
+
constructor(e = {}) {
|
|
1983
|
+
this._options = e, this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, !0), this.fs = t.createFileSystemAdapter(this._options.fs), this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0);
|
|
1984
|
+
}
|
|
1985
|
+
_getValue(e, t) {
|
|
1986
|
+
return e ?? t;
|
|
1987
|
+
}
|
|
1988
|
+
};
|
|
1989
|
+
})), require_out$3 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1990
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.statSync = e.stat = e.Settings = void 0;
|
|
1991
|
+
var t = require_async$5(), n = require_sync$5(), r = require_settings$3();
|
|
1992
|
+
e.Settings = r.default;
|
|
1993
|
+
function i(e, n, r) {
|
|
1994
|
+
if (typeof n == "function") {
|
|
1995
|
+
t.read(e, o(), n);
|
|
1996
|
+
return;
|
|
1997
|
+
}
|
|
1998
|
+
t.read(e, o(n), r);
|
|
1999
|
+
}
|
|
2000
|
+
e.stat = i;
|
|
2001
|
+
function a(e, t) {
|
|
2002
|
+
let r = o(t);
|
|
2003
|
+
return n.read(e, r);
|
|
2004
|
+
}
|
|
2005
|
+
e.statSync = a;
|
|
2006
|
+
function o(e = {}) {
|
|
2007
|
+
return e instanceof r.default ? e : new r.default(e);
|
|
2008
|
+
}
|
|
2009
|
+
})), require_queue_microtask = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
2010
|
+
var n;
|
|
2011
|
+
t.exports = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window < "u" ? window : global) : (e) => (n ||= Promise.resolve()).then(e).catch((e) => setTimeout(() => {
|
|
2012
|
+
throw e;
|
|
2013
|
+
}, 0));
|
|
2014
|
+
})), require_run_parallel = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
2015
|
+
t.exports = r;
|
|
2016
|
+
var n = require_queue_microtask();
|
|
2017
|
+
function r(e, t) {
|
|
2018
|
+
let r, i, a, o = !0;
|
|
2019
|
+
Array.isArray(e) ? (r = [], i = e.length) : (a = Object.keys(e), r = {}, i = a.length);
|
|
2020
|
+
function s(e) {
|
|
2021
|
+
function i() {
|
|
2022
|
+
t && t(e, r), t = null;
|
|
2023
|
+
}
|
|
2024
|
+
o ? n(i) : i();
|
|
2025
|
+
}
|
|
2026
|
+
function c(e, t, n) {
|
|
2027
|
+
r[e] = n, (--i === 0 || t) && s(t);
|
|
2028
|
+
}
|
|
2029
|
+
i ? a ? a.forEach(function(t) {
|
|
2030
|
+
e[t](function(e, n) {
|
|
2031
|
+
c(t, e, n);
|
|
2032
|
+
});
|
|
2033
|
+
}) : e.forEach(function(e, t) {
|
|
2034
|
+
e(function(e, n) {
|
|
2035
|
+
c(t, e, n);
|
|
2036
|
+
});
|
|
2037
|
+
}) : s(null), o = !1;
|
|
2038
|
+
}
|
|
2039
|
+
})), require_constants = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2040
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
2041
|
+
var t = process.versions.node.split(".");
|
|
2042
|
+
if (t[0] === void 0 || t[1] === void 0) throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
2043
|
+
var n = Number.parseInt(t[0], 10), r = Number.parseInt(t[1], 10), i = 10;
|
|
2044
|
+
e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = n > i || n === i && r >= 10;
|
|
2045
|
+
})), require_fs$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2046
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.createDirentFromStats = void 0;
|
|
2047
|
+
var t = class {
|
|
2048
|
+
constructor(e, t) {
|
|
2049
|
+
this.name = e, this.isBlockDevice = t.isBlockDevice.bind(t), this.isCharacterDevice = t.isCharacterDevice.bind(t), this.isDirectory = t.isDirectory.bind(t), this.isFIFO = t.isFIFO.bind(t), this.isFile = t.isFile.bind(t), this.isSocket = t.isSocket.bind(t), this.isSymbolicLink = t.isSymbolicLink.bind(t);
|
|
2050
|
+
}
|
|
2051
|
+
};
|
|
2052
|
+
function n(e, n) {
|
|
2053
|
+
return new t(e, n);
|
|
2054
|
+
}
|
|
2055
|
+
e.createDirentFromStats = n;
|
|
2056
|
+
})), require_utils = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2057
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.fs = void 0, e.fs = require_fs$1();
|
|
2058
|
+
})), require_common$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2059
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.joinPathSegments = void 0;
|
|
2060
|
+
function t(e, t, n) {
|
|
2061
|
+
return e.endsWith(n) ? e + t : e + n + t;
|
|
2062
|
+
}
|
|
2063
|
+
e.joinPathSegments = t;
|
|
2064
|
+
})), require_async$4 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2065
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.readdir = e.readdirWithFileTypes = e.read = void 0;
|
|
2066
|
+
var t = require_out$3(), n = require_run_parallel(), r = require_constants(), i = require_utils(), a = require_common$1();
|
|
2067
|
+
function o(e, t, n) {
|
|
2068
|
+
if (!t.stats && r.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
2069
|
+
s(e, t, n);
|
|
2070
|
+
return;
|
|
2071
|
+
}
|
|
2072
|
+
l(e, t, n);
|
|
2073
|
+
}
|
|
2074
|
+
e.read = o;
|
|
2075
|
+
function s(e, t, r) {
|
|
2076
|
+
t.fs.readdir(e, { withFileTypes: !0 }, (i, o) => {
|
|
2077
|
+
if (i !== null) {
|
|
2078
|
+
u(r, i);
|
|
2079
|
+
return;
|
|
2080
|
+
}
|
|
2081
|
+
let s = o.map((n) => ({
|
|
2082
|
+
dirent: n,
|
|
2083
|
+
name: n.name,
|
|
2084
|
+
path: a.joinPathSegments(e, n.name, t.pathSegmentSeparator)
|
|
2085
|
+
}));
|
|
2086
|
+
if (!t.followSymbolicLinks) {
|
|
2087
|
+
d(r, s);
|
|
2088
|
+
return;
|
|
2089
|
+
}
|
|
2090
|
+
n(s.map((e) => c(e, t)), (e, t) => {
|
|
2091
|
+
if (e !== null) {
|
|
2092
|
+
u(r, e);
|
|
2093
|
+
return;
|
|
2094
|
+
}
|
|
2095
|
+
d(r, t);
|
|
2096
|
+
});
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2099
|
+
e.readdirWithFileTypes = s;
|
|
2100
|
+
function c(e, t) {
|
|
2101
|
+
return (n) => {
|
|
2102
|
+
if (!e.dirent.isSymbolicLink()) {
|
|
2103
|
+
n(null, e);
|
|
2104
|
+
return;
|
|
2105
|
+
}
|
|
2106
|
+
t.fs.stat(e.path, (r, a) => {
|
|
2107
|
+
if (r !== null) {
|
|
2108
|
+
if (t.throwErrorOnBrokenSymbolicLink) {
|
|
2109
|
+
n(r);
|
|
2110
|
+
return;
|
|
2111
|
+
}
|
|
2112
|
+
n(null, e);
|
|
2113
|
+
return;
|
|
2114
|
+
}
|
|
2115
|
+
e.dirent = i.fs.createDirentFromStats(e.name, a), n(null, e);
|
|
2116
|
+
});
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
function l(e, r, o) {
|
|
2120
|
+
r.fs.readdir(e, (s, c) => {
|
|
2121
|
+
if (s !== null) {
|
|
2122
|
+
u(o, s);
|
|
2123
|
+
return;
|
|
2124
|
+
}
|
|
2125
|
+
n(c.map((n) => {
|
|
2126
|
+
let o = a.joinPathSegments(e, n, r.pathSegmentSeparator);
|
|
2127
|
+
return (e) => {
|
|
2128
|
+
t.stat(o, r.fsStatSettings, (t, a) => {
|
|
2129
|
+
if (t !== null) {
|
|
2130
|
+
e(t);
|
|
2131
|
+
return;
|
|
2132
|
+
}
|
|
2133
|
+
let s = {
|
|
2134
|
+
name: n,
|
|
2135
|
+
path: o,
|
|
2136
|
+
dirent: i.fs.createDirentFromStats(n, a)
|
|
2137
|
+
};
|
|
2138
|
+
r.stats && (s.stats = a), e(null, s);
|
|
2139
|
+
});
|
|
2140
|
+
};
|
|
2141
|
+
}), (e, t) => {
|
|
2142
|
+
if (e !== null) {
|
|
2143
|
+
u(o, e);
|
|
2144
|
+
return;
|
|
2145
|
+
}
|
|
2146
|
+
d(o, t);
|
|
2147
|
+
});
|
|
2148
|
+
});
|
|
2149
|
+
}
|
|
2150
|
+
e.readdir = l;
|
|
2151
|
+
function u(e, t) {
|
|
2152
|
+
e(t);
|
|
2153
|
+
}
|
|
2154
|
+
function d(e, t) {
|
|
2155
|
+
e(null, t);
|
|
2156
|
+
}
|
|
2157
|
+
})), require_sync$4 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2158
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.readdir = e.readdirWithFileTypes = e.read = void 0;
|
|
2159
|
+
var t = require_out$3(), n = require_constants(), r = require_utils(), i = require_common$1();
|
|
2160
|
+
function a(e, t) {
|
|
2161
|
+
return !t.stats && n.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? o(e, t) : s(e, t);
|
|
2162
|
+
}
|
|
2163
|
+
e.read = a;
|
|
2164
|
+
function o(e, t) {
|
|
2165
|
+
return t.fs.readdirSync(e, { withFileTypes: !0 }).map((n) => {
|
|
2166
|
+
let a = {
|
|
2167
|
+
dirent: n,
|
|
2168
|
+
name: n.name,
|
|
2169
|
+
path: i.joinPathSegments(e, n.name, t.pathSegmentSeparator)
|
|
2170
|
+
};
|
|
2171
|
+
if (a.dirent.isSymbolicLink() && t.followSymbolicLinks) try {
|
|
2172
|
+
let e = t.fs.statSync(a.path);
|
|
2173
|
+
a.dirent = r.fs.createDirentFromStats(a.name, e);
|
|
2174
|
+
} catch (e) {
|
|
2175
|
+
if (t.throwErrorOnBrokenSymbolicLink) throw e;
|
|
2176
|
+
}
|
|
2177
|
+
return a;
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2180
|
+
e.readdirWithFileTypes = o;
|
|
2181
|
+
function s(e, n) {
|
|
2182
|
+
return n.fs.readdirSync(e).map((a) => {
|
|
2183
|
+
let o = i.joinPathSegments(e, a, n.pathSegmentSeparator), s = t.statSync(o, n.fsStatSettings), c = {
|
|
2184
|
+
name: a,
|
|
2185
|
+
path: o,
|
|
2186
|
+
dirent: r.fs.createDirentFromStats(a, s)
|
|
2187
|
+
};
|
|
2188
|
+
return n.stats && (c.stats = s), c;
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
e.readdir = s;
|
|
2192
|
+
})), require_fs = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2193
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
|
|
2194
|
+
var t = require___vite_browser_external();
|
|
2195
|
+
e.FILE_SYSTEM_ADAPTER = {
|
|
2196
|
+
lstat: t.lstat,
|
|
2197
|
+
stat: t.stat,
|
|
2198
|
+
lstatSync: t.lstatSync,
|
|
2199
|
+
statSync: t.statSync,
|
|
2200
|
+
readdir: t.readdir,
|
|
2201
|
+
readdirSync: t.readdirSync
|
|
2202
|
+
};
|
|
2203
|
+
function n(t) {
|
|
2204
|
+
return t === void 0 ? e.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
|
|
2205
|
+
}
|
|
2206
|
+
e.createFileSystemAdapter = n;
|
|
2207
|
+
})), require_settings$2 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2208
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2209
|
+
var t = require___vite_browser_external(), n = require_out$3(), r = require_fs();
|
|
2210
|
+
e.default = class {
|
|
2211
|
+
constructor(e = {}) {
|
|
2212
|
+
this._options = e, this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !1), this.fs = r.createFileSystemAdapter(this._options.fs), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, t.sep), this.stats = this._getValue(this._options.stats, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0), this.fsStatSettings = new n.Settings({
|
|
2213
|
+
followSymbolicLink: this.followSymbolicLinks,
|
|
2214
|
+
fs: this.fs,
|
|
2215
|
+
throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2218
|
+
_getValue(e, t) {
|
|
2219
|
+
return e ?? t;
|
|
2220
|
+
}
|
|
2221
|
+
};
|
|
2222
|
+
})), require_out$2 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2223
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.Settings = e.scandirSync = e.scandir = void 0;
|
|
2224
|
+
var t = require_async$4(), n = require_sync$4(), r = require_settings$2();
|
|
2225
|
+
e.Settings = r.default;
|
|
2226
|
+
function i(e, n, r) {
|
|
2227
|
+
if (typeof n == "function") {
|
|
2228
|
+
t.read(e, o(), n);
|
|
2229
|
+
return;
|
|
2230
|
+
}
|
|
2231
|
+
t.read(e, o(n), r);
|
|
2232
|
+
}
|
|
2233
|
+
e.scandir = i;
|
|
2234
|
+
function a(e, t) {
|
|
2235
|
+
let r = o(t);
|
|
2236
|
+
return n.read(e, r);
|
|
2237
|
+
}
|
|
2238
|
+
e.scandirSync = a;
|
|
2239
|
+
function o(e = {}) {
|
|
2240
|
+
return e instanceof r.default ? e : new r.default(e);
|
|
2241
|
+
}
|
|
2242
|
+
})), require_reusify = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
2243
|
+
function n(e) {
|
|
2244
|
+
var t = new e(), n = t;
|
|
2245
|
+
function r() {
|
|
2246
|
+
var r = t;
|
|
2247
|
+
return r.next ? t = r.next : (t = new e(), n = t), r.next = null, r;
|
|
2248
|
+
}
|
|
2249
|
+
function i(e) {
|
|
2250
|
+
n.next = e, n = e;
|
|
2251
|
+
}
|
|
2252
|
+
return {
|
|
2253
|
+
get: r,
|
|
2254
|
+
release: i
|
|
2255
|
+
};
|
|
2256
|
+
}
|
|
2257
|
+
t.exports = n;
|
|
2258
|
+
})), require_queue = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
2259
|
+
var n = require_reusify();
|
|
2260
|
+
function r(e, t, r) {
|
|
2261
|
+
if (typeof e == "function" && (r = t, t = e, e = null), !(r >= 1)) throw Error("fastqueue concurrency must be equal to or greater than 1");
|
|
2262
|
+
var o = n(a), s = null, c = null, l = 0, u = null, d = {
|
|
2263
|
+
push: v,
|
|
2264
|
+
drain: i,
|
|
2265
|
+
saturated: i,
|
|
2266
|
+
pause: p,
|
|
2267
|
+
paused: !1,
|
|
2268
|
+
get concurrency() {
|
|
2269
|
+
return r;
|
|
2270
|
+
},
|
|
2271
|
+
set concurrency(e) {
|
|
2272
|
+
if (!(e >= 1)) throw Error("fastqueue concurrency must be equal to or greater than 1");
|
|
2273
|
+
if (r = e, !d.paused) for (; s && l < r;) l++, b();
|
|
2274
|
+
},
|
|
2275
|
+
running: f,
|
|
2276
|
+
resume: g,
|
|
2277
|
+
idle: _,
|
|
2278
|
+
length: m,
|
|
2279
|
+
getQueue: h,
|
|
2280
|
+
unshift: y,
|
|
2281
|
+
empty: i,
|
|
2282
|
+
kill: x,
|
|
2283
|
+
killAndDrain: S,
|
|
2284
|
+
error: w,
|
|
2285
|
+
abort: C
|
|
2286
|
+
};
|
|
2287
|
+
return d;
|
|
2288
|
+
function f() {
|
|
2289
|
+
return l;
|
|
2290
|
+
}
|
|
2291
|
+
function p() {
|
|
2292
|
+
d.paused = !0;
|
|
2293
|
+
}
|
|
2294
|
+
function m() {
|
|
2295
|
+
for (var e = s, t = 0; e;) e = e.next, t++;
|
|
2296
|
+
return t;
|
|
2297
|
+
}
|
|
2298
|
+
function h() {
|
|
2299
|
+
for (var e = s, t = []; e;) t.push(e.value), e = e.next;
|
|
2300
|
+
return t;
|
|
2301
|
+
}
|
|
2302
|
+
function g() {
|
|
2303
|
+
if (d.paused) {
|
|
2304
|
+
if (d.paused = !1, s === null) {
|
|
2305
|
+
l++, b();
|
|
2306
|
+
return;
|
|
2307
|
+
}
|
|
2308
|
+
for (; s && l < r;) l++, b();
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
function _() {
|
|
2312
|
+
return l === 0 && d.length() === 0;
|
|
2313
|
+
}
|
|
2314
|
+
function v(n, a) {
|
|
2315
|
+
var f = o.get();
|
|
2316
|
+
f.context = e, f.release = b, f.value = n, f.callback = a || i, f.errorHandler = u, l >= r || d.paused ? c ? (c.next = f, c = f) : (s = f, c = f, d.saturated()) : (l++, t.call(e, f.value, f.worked));
|
|
2317
|
+
}
|
|
2318
|
+
function y(n, a) {
|
|
2319
|
+
var f = o.get();
|
|
2320
|
+
f.context = e, f.release = b, f.value = n, f.callback = a || i, f.errorHandler = u, l >= r || d.paused ? s ? (f.next = s, s = f) : (s = f, c = f, d.saturated()) : (l++, t.call(e, f.value, f.worked));
|
|
2321
|
+
}
|
|
2322
|
+
function b(n) {
|
|
2323
|
+
n && o.release(n);
|
|
2324
|
+
var i = s;
|
|
2325
|
+
i && l <= r ? d.paused ? l-- : (c === s && (c = null), s = i.next, i.next = null, t.call(e, i.value, i.worked), c === null && d.empty()) : --l === 0 && d.drain();
|
|
2326
|
+
}
|
|
2327
|
+
function x() {
|
|
2328
|
+
s = null, c = null, d.drain = i;
|
|
2329
|
+
}
|
|
2330
|
+
function S() {
|
|
2331
|
+
s = null, c = null, d.drain(), d.drain = i;
|
|
2332
|
+
}
|
|
2333
|
+
function C() {
|
|
2334
|
+
var e = s;
|
|
2335
|
+
for (s = null, c = null; e;) {
|
|
2336
|
+
var t = e.next, n = e.callback, r = e.errorHandler, a = e.value, o = e.context;
|
|
2337
|
+
e.value = null, e.callback = i, e.errorHandler = null, r && r(/* @__PURE__ */ Error("abort"), a), n.call(o, /* @__PURE__ */ Error("abort")), e.release(e), e = t;
|
|
2338
|
+
}
|
|
2339
|
+
d.drain = i;
|
|
2340
|
+
}
|
|
2341
|
+
function w(e) {
|
|
2342
|
+
u = e;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
function i() {}
|
|
2346
|
+
function a() {
|
|
2347
|
+
this.value = null, this.callback = i, this.next = null, this.release = i, this.context = null, this.errorHandler = null;
|
|
2348
|
+
var e = this;
|
|
2349
|
+
this.worked = function(t, n) {
|
|
2350
|
+
var r = e.callback, a = e.errorHandler, o = e.value;
|
|
2351
|
+
e.value = null, e.callback = i, e.errorHandler && a(t, o), r.call(e.context, t, n), e.release(e);
|
|
2352
|
+
};
|
|
2353
|
+
}
|
|
2354
|
+
function o(e, t, n) {
|
|
2355
|
+
typeof e == "function" && (n = t, t = e, e = null);
|
|
2356
|
+
function a(e, n) {
|
|
2357
|
+
t.call(this, e).then(function(e) {
|
|
2358
|
+
n(null, e);
|
|
2359
|
+
}, n);
|
|
2360
|
+
}
|
|
2361
|
+
var o = r(e, a, n), s = o.push, c = o.unshift;
|
|
2362
|
+
return o.push = l, o.unshift = u, o.drained = d, o;
|
|
2363
|
+
function l(e) {
|
|
2364
|
+
var t = new Promise(function(t, n) {
|
|
2365
|
+
s(e, function(e, r) {
|
|
2366
|
+
if (e) {
|
|
2367
|
+
n(e);
|
|
2368
|
+
return;
|
|
2369
|
+
}
|
|
2370
|
+
t(r);
|
|
2371
|
+
});
|
|
2372
|
+
});
|
|
2373
|
+
return t.catch(i), t;
|
|
2374
|
+
}
|
|
2375
|
+
function u(e) {
|
|
2376
|
+
var t = new Promise(function(t, n) {
|
|
2377
|
+
c(e, function(e, r) {
|
|
2378
|
+
if (e) {
|
|
2379
|
+
n(e);
|
|
2380
|
+
return;
|
|
2381
|
+
}
|
|
2382
|
+
t(r);
|
|
2383
|
+
});
|
|
2384
|
+
});
|
|
2385
|
+
return t.catch(i), t;
|
|
2386
|
+
}
|
|
2387
|
+
function d() {
|
|
2388
|
+
return new Promise(function(e) {
|
|
2389
|
+
process.nextTick(function() {
|
|
2390
|
+
if (o.idle()) e();
|
|
2391
|
+
else {
|
|
2392
|
+
var t = o.drain;
|
|
2393
|
+
o.drain = function() {
|
|
2394
|
+
typeof t == "function" && t(), e(), o.drain = t;
|
|
2395
|
+
};
|
|
2396
|
+
}
|
|
2397
|
+
});
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
t.exports = r, t.exports.promise = o;
|
|
2402
|
+
})), require_common = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2403
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.joinPathSegments = e.replacePathSegmentSeparator = e.isAppliedFilter = e.isFatalError = void 0;
|
|
2404
|
+
function t(e, t) {
|
|
2405
|
+
return e.errorFilter === null ? !0 : !e.errorFilter(t);
|
|
2406
|
+
}
|
|
2407
|
+
e.isFatalError = t;
|
|
2408
|
+
function n(e, t) {
|
|
2409
|
+
return e === null || e(t);
|
|
2410
|
+
}
|
|
2411
|
+
e.isAppliedFilter = n;
|
|
2412
|
+
function r(e, t) {
|
|
2413
|
+
return e.split(/[/\\]/).join(t);
|
|
2414
|
+
}
|
|
2415
|
+
e.replacePathSegmentSeparator = r;
|
|
2416
|
+
function i(e, t, n) {
|
|
2417
|
+
return e === "" ? t : e.endsWith(n) ? e + t : e + n + t;
|
|
2418
|
+
}
|
|
2419
|
+
e.joinPathSegments = i;
|
|
2420
|
+
})), require_reader$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2421
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2422
|
+
var t = require_common();
|
|
2423
|
+
e.default = class {
|
|
2424
|
+
constructor(e, n) {
|
|
2425
|
+
this._root = e, this._settings = n, this._root = t.replacePathSegmentSeparator(e, n.pathSegmentSeparator);
|
|
2426
|
+
}
|
|
2427
|
+
};
|
|
2428
|
+
})), require_async$3 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2429
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2430
|
+
var t = require___vite_browser_external(), n = require_out$2(), r = require_queue(), i = require_common(), a = require_reader$1();
|
|
2431
|
+
e.default = class extends a.default {
|
|
2432
|
+
constructor(e, i) {
|
|
2433
|
+
super(e, i), this._settings = i, this._scandir = n.scandir, this._emitter = new t.EventEmitter(), this._queue = r(this._worker.bind(this), this._settings.concurrency), this._isFatalError = !1, this._isDestroyed = !1, this._queue.drain = () => {
|
|
2434
|
+
this._isFatalError || this._emitter.emit("end");
|
|
2435
|
+
};
|
|
2436
|
+
}
|
|
2437
|
+
read() {
|
|
2438
|
+
return this._isFatalError = !1, this._isDestroyed = !1, setImmediate(() => {
|
|
2439
|
+
this._pushToQueue(this._root, this._settings.basePath);
|
|
2440
|
+
}), this._emitter;
|
|
2441
|
+
}
|
|
2442
|
+
get isDestroyed() {
|
|
2443
|
+
return this._isDestroyed;
|
|
2444
|
+
}
|
|
2445
|
+
destroy() {
|
|
2446
|
+
if (this._isDestroyed) throw Error("The reader is already destroyed");
|
|
2447
|
+
this._isDestroyed = !0, this._queue.killAndDrain();
|
|
2448
|
+
}
|
|
2449
|
+
onEntry(e) {
|
|
2450
|
+
this._emitter.on("entry", e);
|
|
2451
|
+
}
|
|
2452
|
+
onError(e) {
|
|
2453
|
+
this._emitter.once("error", e);
|
|
2454
|
+
}
|
|
2455
|
+
onEnd(e) {
|
|
2456
|
+
this._emitter.once("end", e);
|
|
2457
|
+
}
|
|
2458
|
+
_pushToQueue(e, t) {
|
|
2459
|
+
let n = {
|
|
2460
|
+
directory: e,
|
|
2461
|
+
base: t
|
|
2462
|
+
};
|
|
2463
|
+
this._queue.push(n, (e) => {
|
|
2464
|
+
e !== null && this._handleError(e);
|
|
2465
|
+
});
|
|
2466
|
+
}
|
|
2467
|
+
_worker(e, t) {
|
|
2468
|
+
this._scandir(e.directory, this._settings.fsScandirSettings, (n, r) => {
|
|
2469
|
+
if (n !== null) {
|
|
2470
|
+
t(n, void 0);
|
|
2471
|
+
return;
|
|
2472
|
+
}
|
|
2473
|
+
for (let t of r) this._handleEntry(t, e.base);
|
|
2474
|
+
t(null, void 0);
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
_handleError(e) {
|
|
2478
|
+
this._isDestroyed || !i.isFatalError(this._settings, e) || (this._isFatalError = !0, this._isDestroyed = !0, this._emitter.emit("error", e));
|
|
2479
|
+
}
|
|
2480
|
+
_handleEntry(e, t) {
|
|
2481
|
+
if (this._isDestroyed || this._isFatalError) return;
|
|
2482
|
+
let n = e.path;
|
|
2483
|
+
t !== void 0 && (e.path = i.joinPathSegments(t, e.name, this._settings.pathSegmentSeparator)), i.isAppliedFilter(this._settings.entryFilter, e) && this._emitEntry(e), e.dirent.isDirectory() && i.isAppliedFilter(this._settings.deepFilter, e) && this._pushToQueue(n, t === void 0 ? void 0 : e.path);
|
|
2484
|
+
}
|
|
2485
|
+
_emitEntry(e) {
|
|
2486
|
+
this._emitter.emit("entry", e);
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
})), require_async$2 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2490
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2491
|
+
var t = require_async$3();
|
|
2492
|
+
e.default = class {
|
|
2493
|
+
constructor(e, n) {
|
|
2494
|
+
this._root = e, this._settings = n, this._reader = new t.default(this._root, this._settings), this._storage = [];
|
|
2495
|
+
}
|
|
2496
|
+
read(e) {
|
|
2497
|
+
this._reader.onError((t) => {
|
|
2498
|
+
n(e, t);
|
|
2499
|
+
}), this._reader.onEntry((e) => {
|
|
2500
|
+
this._storage.push(e);
|
|
2501
|
+
}), this._reader.onEnd(() => {
|
|
2502
|
+
r(e, this._storage);
|
|
2503
|
+
}), this._reader.read();
|
|
2504
|
+
}
|
|
2505
|
+
};
|
|
2506
|
+
function n(e, t) {
|
|
2507
|
+
e(t);
|
|
2508
|
+
}
|
|
2509
|
+
function r(e, t) {
|
|
2510
|
+
e(null, t);
|
|
2511
|
+
}
|
|
2512
|
+
})), require_stream$2 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2513
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2514
|
+
var t = require___vite_browser_external(), n = require_async$3();
|
|
2515
|
+
e.default = class {
|
|
2516
|
+
constructor(e, r) {
|
|
2517
|
+
this._root = e, this._settings = r, this._reader = new n.default(this._root, this._settings), this._stream = new t.Readable({
|
|
2518
|
+
objectMode: !0,
|
|
2519
|
+
read: () => {},
|
|
2520
|
+
destroy: () => {
|
|
2521
|
+
this._reader.isDestroyed || this._reader.destroy();
|
|
2522
|
+
}
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
read() {
|
|
2526
|
+
return this._reader.onError((e) => {
|
|
2527
|
+
this._stream.emit("error", e);
|
|
2528
|
+
}), this._reader.onEntry((e) => {
|
|
2529
|
+
this._stream.push(e);
|
|
2530
|
+
}), this._reader.onEnd(() => {
|
|
2531
|
+
this._stream.push(null);
|
|
2532
|
+
}), this._reader.read(), this._stream;
|
|
2533
|
+
}
|
|
2534
|
+
};
|
|
2535
|
+
})), require_sync$3 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2536
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2537
|
+
var t = require_out$2(), n = require_common(), r = require_reader$1();
|
|
2538
|
+
e.default = class extends r.default {
|
|
2539
|
+
constructor() {
|
|
2540
|
+
super(...arguments), this._scandir = t.scandirSync, this._storage = [], this._queue = /* @__PURE__ */ new Set();
|
|
2541
|
+
}
|
|
2542
|
+
read() {
|
|
2543
|
+
return this._pushToQueue(this._root, this._settings.basePath), this._handleQueue(), this._storage;
|
|
2544
|
+
}
|
|
2545
|
+
_pushToQueue(e, t) {
|
|
2546
|
+
this._queue.add({
|
|
2547
|
+
directory: e,
|
|
2548
|
+
base: t
|
|
2549
|
+
});
|
|
2550
|
+
}
|
|
2551
|
+
_handleQueue() {
|
|
2552
|
+
for (let e of this._queue.values()) this._handleDirectory(e.directory, e.base);
|
|
2553
|
+
}
|
|
2554
|
+
_handleDirectory(e, t) {
|
|
2555
|
+
try {
|
|
2556
|
+
let n = this._scandir(e, this._settings.fsScandirSettings);
|
|
2557
|
+
for (let e of n) this._handleEntry(e, t);
|
|
2558
|
+
} catch (e) {
|
|
2559
|
+
this._handleError(e);
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
_handleError(e) {
|
|
2563
|
+
if (n.isFatalError(this._settings, e)) throw e;
|
|
2564
|
+
}
|
|
2565
|
+
_handleEntry(e, t) {
|
|
2566
|
+
let r = e.path;
|
|
2567
|
+
t !== void 0 && (e.path = n.joinPathSegments(t, e.name, this._settings.pathSegmentSeparator)), n.isAppliedFilter(this._settings.entryFilter, e) && this._pushToStorage(e), e.dirent.isDirectory() && n.isAppliedFilter(this._settings.deepFilter, e) && this._pushToQueue(r, t === void 0 ? void 0 : e.path);
|
|
2568
|
+
}
|
|
2569
|
+
_pushToStorage(e) {
|
|
2570
|
+
this._storage.push(e);
|
|
2571
|
+
}
|
|
2572
|
+
};
|
|
2573
|
+
})), require_sync$2 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2574
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2575
|
+
var t = require_sync$3();
|
|
2576
|
+
e.default = class {
|
|
2577
|
+
constructor(e, n) {
|
|
2578
|
+
this._root = e, this._settings = n, this._reader = new t.default(this._root, this._settings);
|
|
2579
|
+
}
|
|
2580
|
+
read() {
|
|
2581
|
+
return this._reader.read();
|
|
2582
|
+
}
|
|
2583
|
+
};
|
|
2584
|
+
})), require_settings$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2585
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2586
|
+
var t = require___vite_browser_external(), n = require_out$2();
|
|
2587
|
+
e.default = class {
|
|
2588
|
+
constructor(e = {}) {
|
|
2589
|
+
this._options = e, this.basePath = this._getValue(this._options.basePath, void 0), this.concurrency = this._getValue(this._options.concurrency, Infinity), this.deepFilter = this._getValue(this._options.deepFilter, null), this.entryFilter = this._getValue(this._options.entryFilter, null), this.errorFilter = this._getValue(this._options.errorFilter, null), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, t.sep), this.fsScandirSettings = new n.Settings({
|
|
2590
|
+
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
2591
|
+
fs: this._options.fs,
|
|
2592
|
+
pathSegmentSeparator: this._options.pathSegmentSeparator,
|
|
2593
|
+
stats: this._options.stats,
|
|
2594
|
+
throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
|
|
2595
|
+
});
|
|
2596
|
+
}
|
|
2597
|
+
_getValue(e, t) {
|
|
2598
|
+
return e ?? t;
|
|
2599
|
+
}
|
|
2600
|
+
};
|
|
2601
|
+
})), require_out$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2602
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.Settings = e.walkStream = e.walkSync = e.walk = void 0;
|
|
2603
|
+
var t = require_async$2(), n = require_stream$2(), r = require_sync$2(), i = require_settings$1();
|
|
2604
|
+
e.Settings = i.default;
|
|
2605
|
+
function a(e, n, r) {
|
|
2606
|
+
if (typeof n == "function") {
|
|
2607
|
+
new t.default(e, c()).read(n);
|
|
2608
|
+
return;
|
|
2609
|
+
}
|
|
2610
|
+
new t.default(e, c(n)).read(r);
|
|
2611
|
+
}
|
|
2612
|
+
e.walk = a;
|
|
2613
|
+
function o(e, t) {
|
|
2614
|
+
let n = c(t);
|
|
2615
|
+
return new r.default(e, n).read();
|
|
2616
|
+
}
|
|
2617
|
+
e.walkSync = o;
|
|
2618
|
+
function s(e, t) {
|
|
2619
|
+
let r = c(t);
|
|
2620
|
+
return new n.default(e, r).read();
|
|
2621
|
+
}
|
|
2622
|
+
e.walkStream = s;
|
|
2623
|
+
function c(e = {}) {
|
|
2624
|
+
return e instanceof i.default ? e : new i.default(e);
|
|
2625
|
+
}
|
|
2626
|
+
})), require_reader = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2627
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2628
|
+
var t = require___vite_browser_external(), n = require_out$3(), r = require_utils$1();
|
|
2629
|
+
e.default = class {
|
|
2630
|
+
constructor(e) {
|
|
2631
|
+
this._settings = e, this._fsStatSettings = new n.Settings({
|
|
2632
|
+
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
2633
|
+
fs: this._settings.fs,
|
|
2634
|
+
throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
|
|
2635
|
+
});
|
|
2636
|
+
}
|
|
2637
|
+
_getFullEntryPath(e) {
|
|
2638
|
+
return t.resolve(this._settings.cwd, e);
|
|
2639
|
+
}
|
|
2640
|
+
_makeEntry(e, t) {
|
|
2641
|
+
let n = {
|
|
2642
|
+
name: t,
|
|
2643
|
+
path: t,
|
|
2644
|
+
dirent: r.fs.createDirentFromStats(t, e)
|
|
2645
|
+
};
|
|
2646
|
+
return this._settings.stats && (n.stats = e), n;
|
|
2647
|
+
}
|
|
2648
|
+
_isFatalError(e) {
|
|
2649
|
+
return !r.errno.isEnoentCodeError(e) && !this._settings.suppressErrors;
|
|
2650
|
+
}
|
|
2651
|
+
};
|
|
2652
|
+
})), require_stream$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2653
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2654
|
+
var t = require___vite_browser_external(), n = require_out$3(), r = require_out$1(), i = require_reader();
|
|
2655
|
+
e.default = class extends i.default {
|
|
2656
|
+
constructor() {
|
|
2657
|
+
super(...arguments), this._walkStream = r.walkStream, this._stat = n.stat;
|
|
2658
|
+
}
|
|
2659
|
+
dynamic(e, t) {
|
|
2660
|
+
return this._walkStream(e, t);
|
|
2661
|
+
}
|
|
2662
|
+
static(e, n) {
|
|
2663
|
+
let r = e.map(this._getFullEntryPath, this), i = new t.PassThrough({ objectMode: !0 });
|
|
2664
|
+
i._write = (t, a, o) => this._getEntry(r[t], e[t], n).then((e) => {
|
|
2665
|
+
e !== null && n.entryFilter(e) && i.push(e), t === r.length - 1 && i.end(), o();
|
|
2666
|
+
}).catch(o);
|
|
2667
|
+
for (let e = 0; e < r.length; e++) i.write(e);
|
|
2668
|
+
return i;
|
|
2669
|
+
}
|
|
2670
|
+
_getEntry(e, t, n) {
|
|
2671
|
+
return this._getStat(e).then((e) => this._makeEntry(e, t)).catch((e) => {
|
|
2672
|
+
if (n.errorFilter(e)) return null;
|
|
2673
|
+
throw e;
|
|
2674
|
+
});
|
|
2675
|
+
}
|
|
2676
|
+
_getStat(e) {
|
|
2677
|
+
return new Promise((t, n) => {
|
|
2678
|
+
this._stat(e, this._fsStatSettings, (e, r) => e === null ? t(r) : n(e));
|
|
2679
|
+
});
|
|
2680
|
+
}
|
|
2681
|
+
};
|
|
2682
|
+
})), require_async$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2683
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2684
|
+
var t = require_out$1(), n = require_reader(), r = require_stream$1();
|
|
2685
|
+
e.default = class extends n.default {
|
|
2686
|
+
constructor() {
|
|
2687
|
+
super(...arguments), this._walkAsync = t.walk, this._readerStream = new r.default(this._settings);
|
|
2688
|
+
}
|
|
2689
|
+
dynamic(e, t) {
|
|
2690
|
+
return new Promise((n, r) => {
|
|
2691
|
+
this._walkAsync(e, t, (e, t) => {
|
|
2692
|
+
e === null ? n(t) : r(e);
|
|
2693
|
+
});
|
|
2694
|
+
});
|
|
2695
|
+
}
|
|
2696
|
+
async static(e, t) {
|
|
2697
|
+
let n = [], r = this._readerStream.static(e, t);
|
|
2698
|
+
return new Promise((e, t) => {
|
|
2699
|
+
r.once("error", t), r.on("data", (e) => n.push(e)), r.once("end", () => e(n));
|
|
2700
|
+
});
|
|
2701
|
+
}
|
|
2702
|
+
};
|
|
2703
|
+
})), require_matcher = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2704
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2705
|
+
var t = require_utils$1();
|
|
2706
|
+
e.default = class {
|
|
2707
|
+
constructor(e, t, n) {
|
|
2708
|
+
this._patterns = e, this._settings = t, this._micromatchOptions = n, this._storage = [], this._fillStorage();
|
|
2709
|
+
}
|
|
2710
|
+
_fillStorage() {
|
|
2711
|
+
for (let e of this._patterns) {
|
|
2712
|
+
let t = this._getPatternSegments(e), n = this._splitSegmentsIntoSections(t);
|
|
2713
|
+
this._storage.push({
|
|
2714
|
+
complete: n.length <= 1,
|
|
2715
|
+
pattern: e,
|
|
2716
|
+
segments: t,
|
|
2717
|
+
sections: n
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
_getPatternSegments(e) {
|
|
2722
|
+
return t.pattern.getPatternParts(e, this._micromatchOptions).map((e) => t.pattern.isDynamicPattern(e, this._settings) ? {
|
|
2723
|
+
dynamic: !0,
|
|
2724
|
+
pattern: e,
|
|
2725
|
+
patternRe: t.pattern.makeRe(e, this._micromatchOptions)
|
|
2726
|
+
} : {
|
|
2727
|
+
dynamic: !1,
|
|
2728
|
+
pattern: e
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2731
|
+
_splitSegmentsIntoSections(e) {
|
|
2732
|
+
return t.array.splitWhen(e, (e) => e.dynamic && t.pattern.hasGlobStar(e.pattern));
|
|
2733
|
+
}
|
|
2734
|
+
};
|
|
2735
|
+
})), require_partial = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2736
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2737
|
+
var t = require_matcher();
|
|
2738
|
+
e.default = class extends t.default {
|
|
2739
|
+
match(e) {
|
|
2740
|
+
let t = e.split("/"), n = t.length, r = this._storage.filter((e) => !e.complete || e.segments.length > n);
|
|
2741
|
+
for (let e of r) {
|
|
2742
|
+
let r = e.sections[0];
|
|
2743
|
+
if (!e.complete && n > r.length || t.every((t, n) => {
|
|
2744
|
+
let r = e.segments[n];
|
|
2745
|
+
return !!(r.dynamic && r.patternRe.test(t) || !r.dynamic && r.pattern === t);
|
|
2746
|
+
})) return !0;
|
|
2747
|
+
}
|
|
2748
|
+
return !1;
|
|
2749
|
+
}
|
|
2750
|
+
};
|
|
2751
|
+
})), require_deep = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2752
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2753
|
+
var t = require_utils$1(), n = require_partial();
|
|
2754
|
+
e.default = class {
|
|
2755
|
+
constructor(e, t) {
|
|
2756
|
+
this._settings = e, this._micromatchOptions = t;
|
|
2757
|
+
}
|
|
2758
|
+
getFilter(e, t, n) {
|
|
2759
|
+
let r = this._getMatcher(t), i = this._getNegativePatternsRe(n);
|
|
2760
|
+
return (t) => this._filter(e, t, r, i);
|
|
2761
|
+
}
|
|
2762
|
+
_getMatcher(e) {
|
|
2763
|
+
return new n.default(e, this._settings, this._micromatchOptions);
|
|
2764
|
+
}
|
|
2765
|
+
_getNegativePatternsRe(e) {
|
|
2766
|
+
let n = e.filter(t.pattern.isAffectDepthOfReadingPattern);
|
|
2767
|
+
return t.pattern.convertPatternsToRe(n, this._micromatchOptions);
|
|
2768
|
+
}
|
|
2769
|
+
_filter(e, n, r, i) {
|
|
2770
|
+
if (this._isSkippedByDeep(e, n.path) || this._isSkippedSymbolicLink(n)) return !1;
|
|
2771
|
+
let a = t.path.removeLeadingDotSegment(n.path);
|
|
2772
|
+
return this._isSkippedByPositivePatterns(a, r) ? !1 : this._isSkippedByNegativePatterns(a, i);
|
|
2773
|
+
}
|
|
2774
|
+
_isSkippedByDeep(e, t) {
|
|
2775
|
+
return this._settings.deep === Infinity ? !1 : this._getEntryLevel(e, t) >= this._settings.deep;
|
|
2776
|
+
}
|
|
2777
|
+
_getEntryLevel(e, t) {
|
|
2778
|
+
let n = t.split("/").length;
|
|
2779
|
+
return e === "" ? n : n - e.split("/").length;
|
|
2780
|
+
}
|
|
2781
|
+
_isSkippedSymbolicLink(e) {
|
|
2782
|
+
return !this._settings.followSymbolicLinks && e.dirent.isSymbolicLink();
|
|
2783
|
+
}
|
|
2784
|
+
_isSkippedByPositivePatterns(e, t) {
|
|
2785
|
+
return !this._settings.baseNameMatch && !t.match(e);
|
|
2786
|
+
}
|
|
2787
|
+
_isSkippedByNegativePatterns(e, n) {
|
|
2788
|
+
return !t.pattern.matchAny(e, n);
|
|
2789
|
+
}
|
|
2790
|
+
};
|
|
2791
|
+
})), require_entry$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2792
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2793
|
+
var t = require_utils$1();
|
|
2794
|
+
e.default = class {
|
|
2795
|
+
constructor(e, t) {
|
|
2796
|
+
this._settings = e, this._micromatchOptions = t, this.index = /* @__PURE__ */ new Map();
|
|
2797
|
+
}
|
|
2798
|
+
getFilter(e, n) {
|
|
2799
|
+
let [r, i] = t.pattern.partitionAbsoluteAndRelative(n), a = {
|
|
2800
|
+
positive: { all: t.pattern.convertPatternsToRe(e, this._micromatchOptions) },
|
|
2801
|
+
negative: {
|
|
2802
|
+
absolute: t.pattern.convertPatternsToRe(r, Object.assign(Object.assign({}, this._micromatchOptions), { dot: !0 })),
|
|
2803
|
+
relative: t.pattern.convertPatternsToRe(i, Object.assign(Object.assign({}, this._micromatchOptions), { dot: !0 }))
|
|
2804
|
+
}
|
|
2805
|
+
};
|
|
2806
|
+
return (e) => this._filter(e, a);
|
|
2807
|
+
}
|
|
2808
|
+
_filter(e, n) {
|
|
2809
|
+
let r = t.path.removeLeadingDotSegment(e.path);
|
|
2810
|
+
if (this._settings.unique && this._isDuplicateEntry(r) || this._onlyFileFilter(e) || this._onlyDirectoryFilter(e)) return !1;
|
|
2811
|
+
let i = this._isMatchToPatternsSet(r, n, e.dirent.isDirectory());
|
|
2812
|
+
return this._settings.unique && i && this._createIndexRecord(r), i;
|
|
2813
|
+
}
|
|
2814
|
+
_isDuplicateEntry(e) {
|
|
2815
|
+
return this.index.has(e);
|
|
2816
|
+
}
|
|
2817
|
+
_createIndexRecord(e) {
|
|
2818
|
+
this.index.set(e, void 0);
|
|
2819
|
+
}
|
|
2820
|
+
_onlyFileFilter(e) {
|
|
2821
|
+
return this._settings.onlyFiles && !e.dirent.isFile();
|
|
2822
|
+
}
|
|
2823
|
+
_onlyDirectoryFilter(e) {
|
|
2824
|
+
return this._settings.onlyDirectories && !e.dirent.isDirectory();
|
|
2825
|
+
}
|
|
2826
|
+
_isMatchToPatternsSet(e, t, n) {
|
|
2827
|
+
return !(!this._isMatchToPatterns(e, t.positive.all, n) || this._isMatchToPatterns(e, t.negative.relative, n) || this._isMatchToAbsoluteNegative(e, t.negative.absolute, n));
|
|
2828
|
+
}
|
|
2829
|
+
_isMatchToAbsoluteNegative(e, n, r) {
|
|
2830
|
+
if (n.length === 0) return !1;
|
|
2831
|
+
let i = t.path.makeAbsolute(this._settings.cwd, e);
|
|
2832
|
+
return this._isMatchToPatterns(i, n, r);
|
|
2833
|
+
}
|
|
2834
|
+
_isMatchToPatterns(e, n, r) {
|
|
2835
|
+
if (n.length === 0) return !1;
|
|
2836
|
+
let i = t.pattern.matchAny(e, n);
|
|
2837
|
+
return !i && r ? t.pattern.matchAny(e + "/", n) : i;
|
|
2838
|
+
}
|
|
2839
|
+
};
|
|
2840
|
+
})), require_error = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2841
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2842
|
+
var t = require_utils$1();
|
|
2843
|
+
e.default = class {
|
|
2844
|
+
constructor(e) {
|
|
2845
|
+
this._settings = e;
|
|
2846
|
+
}
|
|
2847
|
+
getFilter() {
|
|
2848
|
+
return (e) => this._isNonFatalError(e);
|
|
2849
|
+
}
|
|
2850
|
+
_isNonFatalError(e) {
|
|
2851
|
+
return t.errno.isEnoentCodeError(e) || this._settings.suppressErrors;
|
|
2852
|
+
}
|
|
2853
|
+
};
|
|
2854
|
+
})), require_entry = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2855
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2856
|
+
var t = require_utils$1();
|
|
2857
|
+
e.default = class {
|
|
2858
|
+
constructor(e) {
|
|
2859
|
+
this._settings = e;
|
|
2860
|
+
}
|
|
2861
|
+
getTransformer() {
|
|
2862
|
+
return (e) => this._transform(e);
|
|
2863
|
+
}
|
|
2864
|
+
_transform(e) {
|
|
2865
|
+
let n = e.path;
|
|
2866
|
+
return this._settings.absolute && (n = t.path.makeAbsolute(this._settings.cwd, n), n = t.path.unixify(n)), this._settings.markDirectories && e.dirent.isDirectory() && (n += "/"), this._settings.objectMode ? Object.assign(Object.assign({}, e), { path: n }) : n;
|
|
2867
|
+
}
|
|
2868
|
+
};
|
|
2869
|
+
})), require_provider = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2870
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2871
|
+
var t = require___vite_browser_external(), n = require_deep(), r = require_entry$1(), i = require_error(), a = require_entry();
|
|
2872
|
+
e.default = class {
|
|
2873
|
+
constructor(e) {
|
|
2874
|
+
this._settings = e, this.errorFilter = new i.default(this._settings), this.entryFilter = new r.default(this._settings, this._getMicromatchOptions()), this.deepFilter = new n.default(this._settings, this._getMicromatchOptions()), this.entryTransformer = new a.default(this._settings);
|
|
2875
|
+
}
|
|
2876
|
+
_getRootDirectory(e) {
|
|
2877
|
+
return t.resolve(this._settings.cwd, e.base);
|
|
2878
|
+
}
|
|
2879
|
+
_getReaderOptions(e) {
|
|
2880
|
+
let t = e.base === "." ? "" : e.base;
|
|
2881
|
+
return {
|
|
2882
|
+
basePath: t,
|
|
2883
|
+
pathSegmentSeparator: "/",
|
|
2884
|
+
concurrency: this._settings.concurrency,
|
|
2885
|
+
deepFilter: this.deepFilter.getFilter(t, e.positive, e.negative),
|
|
2886
|
+
entryFilter: this.entryFilter.getFilter(e.positive, e.negative),
|
|
2887
|
+
errorFilter: this.errorFilter.getFilter(),
|
|
2888
|
+
followSymbolicLinks: this._settings.followSymbolicLinks,
|
|
2889
|
+
fs: this._settings.fs,
|
|
2890
|
+
stats: this._settings.stats,
|
|
2891
|
+
throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
|
|
2892
|
+
transform: this.entryTransformer.getTransformer()
|
|
2893
|
+
};
|
|
2894
|
+
}
|
|
2895
|
+
_getMicromatchOptions() {
|
|
2896
|
+
return {
|
|
2897
|
+
dot: this._settings.dot,
|
|
2898
|
+
matchBase: this._settings.baseNameMatch,
|
|
2899
|
+
nobrace: !this._settings.braceExpansion,
|
|
2900
|
+
nocase: !this._settings.caseSensitiveMatch,
|
|
2901
|
+
noext: !this._settings.extglob,
|
|
2902
|
+
noglobstar: !this._settings.globstar,
|
|
2903
|
+
posix: !0,
|
|
2904
|
+
strictSlashes: !1
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
};
|
|
2908
|
+
})), require_async = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2909
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2910
|
+
var t = require_async$1(), n = require_provider();
|
|
2911
|
+
e.default = class extends n.default {
|
|
2912
|
+
constructor() {
|
|
2913
|
+
super(...arguments), this._reader = new t.default(this._settings);
|
|
2914
|
+
}
|
|
2915
|
+
async read(e) {
|
|
2916
|
+
let t = this._getRootDirectory(e), n = this._getReaderOptions(e);
|
|
2917
|
+
return (await this.api(t, e, n)).map((e) => n.transform(e));
|
|
2918
|
+
}
|
|
2919
|
+
api(e, t, n) {
|
|
2920
|
+
return t.dynamic ? this._reader.dynamic(e, n) : this._reader.static(t.patterns, n);
|
|
2921
|
+
}
|
|
2922
|
+
};
|
|
2923
|
+
})), require_stream = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2924
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2925
|
+
var t = require___vite_browser_external(), n = require_stream$1(), r = require_provider();
|
|
2926
|
+
e.default = class extends r.default {
|
|
2927
|
+
constructor() {
|
|
2928
|
+
super(...arguments), this._reader = new n.default(this._settings);
|
|
2929
|
+
}
|
|
2930
|
+
read(e) {
|
|
2931
|
+
let n = this._getRootDirectory(e), r = this._getReaderOptions(e), i = this.api(n, e, r), a = new t.Readable({
|
|
2932
|
+
objectMode: !0,
|
|
2933
|
+
read: () => {}
|
|
2934
|
+
});
|
|
2935
|
+
return i.once("error", (e) => a.emit("error", e)).on("data", (e) => a.emit("data", r.transform(e))).once("end", () => a.emit("end")), a.once("close", () => i.destroy()), a;
|
|
2936
|
+
}
|
|
2937
|
+
api(e, t, n) {
|
|
2938
|
+
return t.dynamic ? this._reader.dynamic(e, n) : this._reader.static(t.patterns, n);
|
|
2939
|
+
}
|
|
2940
|
+
};
|
|
2941
|
+
})), require_sync$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2942
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2943
|
+
var t = require_out$3(), n = require_out$1(), r = require_reader();
|
|
2944
|
+
e.default = class extends r.default {
|
|
2945
|
+
constructor() {
|
|
2946
|
+
super(...arguments), this._walkSync = n.walkSync, this._statSync = t.statSync;
|
|
2947
|
+
}
|
|
2948
|
+
dynamic(e, t) {
|
|
2949
|
+
return this._walkSync(e, t);
|
|
2950
|
+
}
|
|
2951
|
+
static(e, t) {
|
|
2952
|
+
let n = [];
|
|
2953
|
+
for (let r of e) {
|
|
2954
|
+
let e = this._getFullEntryPath(r), i = this._getEntry(e, r, t);
|
|
2955
|
+
i === null || !t.entryFilter(i) || n.push(i);
|
|
2956
|
+
}
|
|
2957
|
+
return n;
|
|
2958
|
+
}
|
|
2959
|
+
_getEntry(e, t, n) {
|
|
2960
|
+
try {
|
|
2961
|
+
let n = this._getStat(e);
|
|
2962
|
+
return this._makeEntry(n, t);
|
|
2963
|
+
} catch (e) {
|
|
2964
|
+
if (n.errorFilter(e)) return null;
|
|
2965
|
+
throw e;
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
_getStat(e) {
|
|
2969
|
+
return this._statSync(e, this._fsStatSettings);
|
|
2970
|
+
}
|
|
2971
|
+
};
|
|
2972
|
+
})), require_sync = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2973
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2974
|
+
var t = require_sync$1(), n = require_provider();
|
|
2975
|
+
e.default = class extends n.default {
|
|
2976
|
+
constructor() {
|
|
2977
|
+
super(...arguments), this._reader = new t.default(this._settings);
|
|
2978
|
+
}
|
|
2979
|
+
read(e) {
|
|
2980
|
+
let t = this._getRootDirectory(e), n = this._getReaderOptions(e);
|
|
2981
|
+
return this.api(t, e, n).map(n.transform);
|
|
2982
|
+
}
|
|
2983
|
+
api(e, t, n) {
|
|
2984
|
+
return t.dynamic ? this._reader.dynamic(e, n) : this._reader.static(t.patterns, n);
|
|
2985
|
+
}
|
|
2986
|
+
};
|
|
2987
|
+
})), require_settings = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2988
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
2989
|
+
var t = require___vite_browser_external(), n = require___vite_browser_external(), r = Math.max(n.cpus().length, 1);
|
|
2990
|
+
e.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
2991
|
+
lstat: t.lstat,
|
|
2992
|
+
lstatSync: t.lstatSync,
|
|
2993
|
+
stat: t.stat,
|
|
2994
|
+
statSync: t.statSync,
|
|
2995
|
+
readdir: t.readdir,
|
|
2996
|
+
readdirSync: t.readdirSync
|
|
2997
|
+
}, e.default = class {
|
|
2998
|
+
constructor(e = {}) {
|
|
2999
|
+
this._options = e, this.absolute = this._getValue(this._options.absolute, !1), this.baseNameMatch = this._getValue(this._options.baseNameMatch, !1), this.braceExpansion = this._getValue(this._options.braceExpansion, !0), this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, !0), this.concurrency = this._getValue(this._options.concurrency, r), this.cwd = this._getValue(this._options.cwd, process.cwd()), this.deep = this._getValue(this._options.deep, Infinity), this.dot = this._getValue(this._options.dot, !1), this.extglob = this._getValue(this._options.extglob, !0), this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !0), this.fs = this._getFileSystemMethods(this._options.fs), this.globstar = this._getValue(this._options.globstar, !0), this.ignore = this._getValue(this._options.ignore, []), this.markDirectories = this._getValue(this._options.markDirectories, !1), this.objectMode = this._getValue(this._options.objectMode, !1), this.onlyDirectories = this._getValue(this._options.onlyDirectories, !1), this.onlyFiles = this._getValue(this._options.onlyFiles, !0), this.stats = this._getValue(this._options.stats, !1), this.suppressErrors = this._getValue(this._options.suppressErrors, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !1), this.unique = this._getValue(this._options.unique, !0), this.onlyDirectories && (this.onlyFiles = !1), this.stats && (this.objectMode = !0), this.ignore = [].concat(this.ignore);
|
|
3000
|
+
}
|
|
3001
|
+
_getValue(e, t) {
|
|
3002
|
+
return e === void 0 ? t : e;
|
|
3003
|
+
}
|
|
3004
|
+
_getFileSystemMethods(t = {}) {
|
|
3005
|
+
return Object.assign(Object.assign({}, e.DEFAULT_FILE_SYSTEM_ADAPTER), t);
|
|
3006
|
+
}
|
|
3007
|
+
};
|
|
3008
|
+
})), require_out = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
3009
|
+
var n = require_tasks(), r = require_async(), i = require_stream(), a = require_sync(), o = require_settings(), s = require_utils$1();
|
|
3010
|
+
async function c(e, t) {
|
|
3011
|
+
u(e);
|
|
3012
|
+
let n = l(e, r.default, t), i = await Promise.all(n);
|
|
3013
|
+
return s.array.flatten(i);
|
|
3014
|
+
}
|
|
3015
|
+
(function(e) {
|
|
3016
|
+
e.glob = e, e.globSync = t, e.globStream = r, e.async = e;
|
|
3017
|
+
function t(e, t) {
|
|
3018
|
+
u(e);
|
|
3019
|
+
let n = l(e, a.default, t);
|
|
3020
|
+
return s.array.flatten(n);
|
|
3021
|
+
}
|
|
3022
|
+
e.sync = t;
|
|
3023
|
+
function r(e, t) {
|
|
3024
|
+
u(e);
|
|
3025
|
+
let n = l(e, i.default, t);
|
|
3026
|
+
return s.stream.merge(n);
|
|
3027
|
+
}
|
|
3028
|
+
e.stream = r;
|
|
3029
|
+
function c(e, t) {
|
|
3030
|
+
u(e);
|
|
3031
|
+
let r = [].concat(e), i = new o.default(t);
|
|
3032
|
+
return n.generate(r, i);
|
|
3033
|
+
}
|
|
3034
|
+
e.generateTasks = c;
|
|
3035
|
+
function d(e, t) {
|
|
3036
|
+
u(e);
|
|
3037
|
+
let n = new o.default(t);
|
|
3038
|
+
return s.pattern.isDynamicPattern(e, n);
|
|
3039
|
+
}
|
|
3040
|
+
e.isDynamicPattern = d;
|
|
3041
|
+
function f(e) {
|
|
3042
|
+
return u(e), s.path.escape(e);
|
|
3043
|
+
}
|
|
3044
|
+
e.escapePath = f;
|
|
3045
|
+
function p(e) {
|
|
3046
|
+
return u(e), s.path.convertPathToPattern(e);
|
|
3047
|
+
}
|
|
3048
|
+
e.convertPathToPattern = p, (function(e) {
|
|
3049
|
+
function t(e) {
|
|
3050
|
+
return u(e), s.path.escapePosixPath(e);
|
|
3051
|
+
}
|
|
3052
|
+
e.escapePath = t;
|
|
3053
|
+
function n(e) {
|
|
3054
|
+
return u(e), s.path.convertPosixPathToPattern(e);
|
|
3055
|
+
}
|
|
3056
|
+
e.convertPathToPattern = n;
|
|
3057
|
+
})(e.posix ||= {}), (function(e) {
|
|
3058
|
+
function t(e) {
|
|
3059
|
+
return u(e), s.path.escapeWindowsPath(e);
|
|
3060
|
+
}
|
|
3061
|
+
e.escapePath = t;
|
|
3062
|
+
function n(e) {
|
|
3063
|
+
return u(e), s.path.convertWindowsPathToPattern(e);
|
|
3064
|
+
}
|
|
3065
|
+
e.convertPathToPattern = n;
|
|
3066
|
+
})(e.win32 ||= {});
|
|
3067
|
+
})(c ||= {});
|
|
3068
|
+
function l(e, t, r) {
|
|
3069
|
+
let i = [].concat(e), a = new o.default(r), s = n.generate(i, a), c = new t(a);
|
|
3070
|
+
return s.map(c.read, c);
|
|
3071
|
+
}
|
|
3072
|
+
function u(e) {
|
|
3073
|
+
if (![].concat(e).every((e) => s.string.isString(e) && !s.string.isEmpty(e))) throw TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
3074
|
+
}
|
|
3075
|
+
t.exports = c;
|
|
3076
|
+
})), import_out$1 = /* @__PURE__ */ __toESM(require_out(), 1), EPreloadImageBuilder_default = (e) => {
|
|
3077
|
+
let { pattern: t } = e, n = [];
|
|
3078
|
+
return {
|
|
3079
|
+
name: "vite-plugin-preload-images",
|
|
3080
|
+
apply: (e, { command: t }) => ["serve", "build"].includes(t),
|
|
3081
|
+
generateBundle(e, r) {
|
|
3082
|
+
let i = [], a = [];
|
|
3083
|
+
import_out$1.default.sync(t).forEach((e) => {
|
|
3084
|
+
e.includes("src/") ? i.push(e.replace("./", "")) : e.includes("public/") && a.push(e.replace("./", ""));
|
|
3085
|
+
}), Object.values(r).forEach((e) => {
|
|
3086
|
+
e.type === "asset" && i.includes(e.originalFileNames[0]) && n.push(e.fileName);
|
|
3087
|
+
});
|
|
3088
|
+
for (let e of a) n.push(e.replace("public/", ""));
|
|
3089
|
+
},
|
|
3090
|
+
transformIndexHtml(e, r) {
|
|
3091
|
+
let i;
|
|
3092
|
+
return i = r.server ? import_out$1.default.sync(t).map((e) => (r.server.config.base || "") + e) : n, i.map((e) => ({
|
|
3093
|
+
tag: "link",
|
|
3094
|
+
attrs: {
|
|
3095
|
+
rel: "preload",
|
|
3096
|
+
href: e,
|
|
3097
|
+
as: "image",
|
|
3098
|
+
fetchpriority: "low"
|
|
3099
|
+
},
|
|
3100
|
+
injectTo: "head"
|
|
3101
|
+
}));
|
|
3102
|
+
}
|
|
3103
|
+
};
|
|
3104
|
+
}, ESvgPolyfill_default = () => ({
|
|
3105
|
+
name: "vite-plugin-svg-polyfill",
|
|
3106
|
+
apply: (e, { command: t }) => ["serve", "build"].includes(t),
|
|
3107
|
+
transformIndexHtml(e) {
|
|
3108
|
+
return e.replace("</body>", "<script>\n document.addEventListener('DOMContentLoaded', () => {\n const defs = document.querySelectorAll('svg defs');\n let globalDefsContent = '';\n defs.forEach(def => {\n globalDefsContent += def.innerHTML;\n });\n const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n svg.class = 'global-svg-defs';\n svg.style.cssText = 'position: fixed; width: 0; height: 0; visibility: hidden;';\n svg.innerHTML = '<defs>'+globalDefsContent+'</defs>';\n document.body.insertBefore(svg, document.body.firstChild);\n });\n <\/script></body>");
|
|
3109
|
+
}
|
|
3110
|
+
}), import___vite_browser_external = /* @__PURE__ */ __toESM(require___vite_browser_external(), 1), import___vite_browser_external$1 = /* @__PURE__ */ __toESM(require___vite_browser_external(), 1), import_out = /* @__PURE__ */ __toESM(require_out(), 1), getSvgInnerContent = (e) => {
|
|
3111
|
+
let t = e.match(/<svg[^>]*>(.*?)<\/svg>/s);
|
|
3112
|
+
return t ? t[1] : null;
|
|
3113
|
+
}, getSvgSymbols = (e, t) => import_out.default.sync(e, { cwd: process.cwd() }).map((e) => {
|
|
3114
|
+
let n = import___vite_browser_external$1.default.basename(e, ".svg"), r = import___vite_browser_external.default.readFileSync(e, "utf-8"), i = getSvgInnerContent(r), a = r.match(/viewBox="([^"]*)"/), o = a ? a[1] : "0 0 16 16";
|
|
3115
|
+
return `<symbol id="${t(n)}" viewBox="${o}">${i}</symbol>`;
|
|
3116
|
+
}), ESvgSpriteBuilder_default = (e) => {
|
|
3117
|
+
let { pattern: t, symbolId: n } = e;
|
|
3118
|
+
return {
|
|
3119
|
+
name: "vite-plugin-e-svg-sprite-builder",
|
|
3120
|
+
apply: (e, { command: t }) => ["serve", "build"].includes(t),
|
|
3121
|
+
transformIndexHtml(e) {
|
|
3122
|
+
let r = `<svg xmlns="http://www.w3.org/2000/svg" style="position: fixed;">${getSvgSymbols(t, n).join("")}</svg>`;
|
|
3123
|
+
return e.replace("</body>", `${r}</body>`);
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
export { EPreloadImageBuilder_default as EPreloadImageBuilder, ESvgPolyfill_default as ESvgPolyfill, ESvgSpriteBuilder_default as ESvgSpriteBuilder };
|