@vue/devtools-electron 7.0.20 → 7.0.22
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/client/assets/{html-KTYx-Ibi.js → html-CqhC7HHo.js} +1 -1
- package/client/assets/{index-GBG_N3yP.css → index-THmizwtr.css} +1 -1
- package/client/assets/{index-en3zToJy.js → index-ZUOE1mxz.js} +68 -68
- package/client/assets/{vue-EJd75Pva.js → vue-CP4EDFt0.js} +1 -1
- package/client/assets/{vue-html-Zq9JvlnT.js → vue-html-9lCBN0KK.js} +1 -1
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +10271 -10231
- package/client/{html-5TX0KzMQ.js → html-BZB5lEhh.js} +2 -2
- package/client/index.html +2 -2
- package/client/{unocss-runtime-PndJdV84.js → unocss-runtime-czrFVoqY.js} +392 -392
- package/client/{vue-Wq24sg5G.js → vue-CSiwUDF5.js} +6 -6
- package/client/{vue-html-IdmxoL84.js → vue-html-D0BKftsE.js} +2 -2
- package/dist/devtools.js +130 -130
- package/dist/index.cjs +43 -43
- package/dist/index.js +44 -44
- package/dist/user-app.cjs +44 -44
- package/dist/user-app.iife.js +54 -54
- package/dist/user-app.js +43 -43
- package/package.json +4 -4
- /package/client/assets/{css-tuEqSfZX.js → css-CbYhyuC0.js} +0 -0
- /package/client/assets/{diff--l9-nN5b.js → diff-DvyTQcux.js} +0 -0
- /package/client/assets/{javascript-JMZ6uy5M.js → javascript-Dch3xQiY.js} +0 -0
- /package/client/assets/{json-xL80yL3n.js → json-CupVZNk8.js} +0 -0
- /package/client/assets/{shellscript-QP4ZqdYB.js → shellscript-BVYSsK7b.js} +0 -0
- /package/client/assets/{typescript-HpdcmTOD.js → typescript-DC8MraHL.js} +0 -0
- /package/client/assets/{unocss-runtime-1I7U-Xvx.js → unocss-runtime--QU4d9Ny.js} +0 -0
- /package/client/assets/{vitesse-dark-jCpginLY.js → vitesse-dark-DggdVF2v.js} +0 -0
- /package/client/assets/{vitesse-light-W1hZpt2R.js → vitesse-light-A1WiD9SJ.js} +0 -0
- /package/client/assets/{vue-apis-Nh9IahXf.js → vue-apis-buOuct3A.js} +0 -0
- /package/client/assets/{yaml-zytfnWoA.js → yaml-C5gCGmDW.js} +0 -0
- /package/client/{css-FzZ_BjSq.js → css-CAzixsid.js} +0 -0
- /package/client/{diff-nydZCsp5.js → diff-Bo5iyMQ2.js} +0 -0
- /package/client/{javascript-ewd2r-0o.js → javascript-DqVBMyXe.js} +0 -0
- /package/client/{json-GUBx_oBO.js → json-B12k4-6m.js} +0 -0
- /package/client/{shellscript-h-Nc7Y6x.js → shellscript-CUUTQKn5.js} +0 -0
- /package/client/{typescript-Uom77LgO.js → typescript-AEg-ehu7.js} +0 -0
- /package/client/{vitesse-dark-dKCfdby4.js → vitesse-dark-DEltXrMK.js} +0 -0
- /package/client/{vitesse-light-zG4GVY1U.js → vitesse-light-C4WnY2Z4.js} +0 -0
- /package/client/{vue-apis-j7ljdRbm.js → vue-apis-CBD-3_AQ.js} +0 -0
- /package/client/{yaml-0qnKYER3.js → yaml-PGla5xPP.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,
|
|
1
|
+
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Be = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, Ve = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
2
2
|
function He(e, t) {
|
|
3
3
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
4
|
-
|
|
4
|
+
ze(e);
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ze(e) {
|
|
10
10
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ge(e, t = {}) {
|
|
13
13
|
if (typeof e != "string")
|
|
14
14
|
return e;
|
|
15
15
|
const n = e.trim();
|
|
@@ -35,13 +35,13 @@ function ze(e, t = {}) {
|
|
|
35
35
|
if (s === "-infinity")
|
|
36
36
|
return Number.NEGATIVE_INFINITY;
|
|
37
37
|
}
|
|
38
|
-
if (!
|
|
38
|
+
if (!Ve.test(e)) {
|
|
39
39
|
if (t.strict)
|
|
40
40
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
43
|
try {
|
|
44
|
-
if (Fe.test(e) ||
|
|
44
|
+
if (Fe.test(e) || Be.test(e)) {
|
|
45
45
|
if (t.strict)
|
|
46
46
|
throw new Error("[destr] Possible prototype pollution");
|
|
47
47
|
return JSON.parse(e, He);
|
|
@@ -53,15 +53,15 @@ function ze(e, t = {}) {
|
|
|
53
53
|
return e;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
const qe = /#/g, We = /&/g,
|
|
56
|
+
const qe = /#/g, We = /&/g, Je = /\//g, Ke = /=/g, se = /\+/g, Qe = /%5e/gi, Ye = /%60/gi, Xe = /%7c/gi, Ze = /%20/gi;
|
|
57
57
|
function et(e) {
|
|
58
|
-
return encodeURI("" + e).replace(
|
|
58
|
+
return encodeURI("" + e).replace(Xe, "|");
|
|
59
59
|
}
|
|
60
60
|
function ee(e) {
|
|
61
|
-
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(
|
|
61
|
+
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(Ye, "`").replace(Qe, "^").replace(Je, "%2F");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return ee(e).replace(
|
|
63
|
+
function K(e) {
|
|
64
|
+
return ee(e).replace(Ke, "%3D");
|
|
65
65
|
}
|
|
66
66
|
function Ee(e = "") {
|
|
67
67
|
try {
|
|
@@ -83,19 +83,19 @@ function st(e = "") {
|
|
|
83
83
|
const s = n.match(/([^=]+)=?(.*)/) || [];
|
|
84
84
|
if (s.length < 2)
|
|
85
85
|
continue;
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
86
|
+
const r = tt(s[1]);
|
|
87
|
+
if (r === "__proto__" || r === "constructor")
|
|
88
88
|
continue;
|
|
89
|
-
const
|
|
90
|
-
t[
|
|
89
|
+
const o = nt(s[2] || "");
|
|
90
|
+
t[r] === void 0 ? t[r] = o : Array.isArray(t[r]) ? t[r].push(o) : t[r] = [t[r], o];
|
|
91
91
|
}
|
|
92
92
|
return t;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${
|
|
94
|
+
function rt(e, t) {
|
|
95
|
+
return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${K(e)}=${ee(n)}`).join("&") : `${K(e)}=${ee(t)}` : K(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) =>
|
|
97
|
+
function ot(e) {
|
|
98
|
+
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => rt(t, e[t])).filter(Boolean).join("&");
|
|
99
99
|
}
|
|
100
100
|
const it = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, at = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, ct = /^([/\\]\s*){2,}[^/\\]/, lt = /\/$|\/\?|\/#/, ut = /^\.?\//;
|
|
101
101
|
function xe(e, t = {}) {
|
|
@@ -110,10 +110,10 @@ function ft(e = "", t) {
|
|
|
110
110
|
if (!te(e, !0))
|
|
111
111
|
return e || "/";
|
|
112
112
|
let n = e, s = "";
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
const [
|
|
116
|
-
return (
|
|
113
|
+
const r = e.indexOf("#");
|
|
114
|
+
r >= 0 && (n = e.slice(0, r), s = e.slice(r));
|
|
115
|
+
const [o, ...a] = n.split("?");
|
|
116
|
+
return (o.slice(0, -1) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
117
117
|
}
|
|
118
118
|
function pt(e = "", t) {
|
|
119
119
|
if (!t)
|
|
@@ -121,11 +121,11 @@ function pt(e = "", t) {
|
|
|
121
121
|
if (te(e, !0))
|
|
122
122
|
return e || "/";
|
|
123
123
|
let n = e, s = "";
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
124
|
+
const r = e.indexOf("#");
|
|
125
|
+
if (r >= 0 && (n = e.slice(0, r), s = e.slice(r), !n))
|
|
126
126
|
return s;
|
|
127
|
-
const [
|
|
128
|
-
return
|
|
127
|
+
const [o, ...a] = n.split("?");
|
|
128
|
+
return o + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
129
129
|
}
|
|
130
130
|
function dt(e, t) {
|
|
131
131
|
if (ht(t) || xe(e))
|
|
@@ -135,7 +135,7 @@ function dt(e, t) {
|
|
|
135
135
|
}
|
|
136
136
|
function mt(e, t) {
|
|
137
137
|
const n = Ae(e), s = { ...st(n.search), ...t };
|
|
138
|
-
return n.search =
|
|
138
|
+
return n.search = ot(s), yt(n);
|
|
139
139
|
}
|
|
140
140
|
function ht(e) {
|
|
141
141
|
return !e || e === "/";
|
|
@@ -145,10 +145,10 @@ function _t(e) {
|
|
|
145
145
|
}
|
|
146
146
|
function gt(e, ...t) {
|
|
147
147
|
let n = e || "";
|
|
148
|
-
for (const s of t.filter((
|
|
148
|
+
for (const s of t.filter((r) => _t(r)))
|
|
149
149
|
if (n) {
|
|
150
|
-
const
|
|
151
|
-
n = pt(n) +
|
|
150
|
+
const r = s.replace(ut, "");
|
|
151
|
+
n = pt(n) + r;
|
|
152
152
|
} else
|
|
153
153
|
n = s;
|
|
154
154
|
return n;
|
|
@@ -172,12 +172,12 @@ function Ae(e = "", t) {
|
|
|
172
172
|
}
|
|
173
173
|
if (!xe(e, { acceptRelative: !0 }))
|
|
174
174
|
return t ? Ae(t + e) : ae(e);
|
|
175
|
-
const [, s = "",
|
|
175
|
+
const [, s = "", r, o = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = o.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: f, hash: i } = ae(
|
|
176
176
|
l.replace(/\/(?=[A-Za-z]:)/, "")
|
|
177
177
|
);
|
|
178
178
|
return {
|
|
179
179
|
protocol: s.toLowerCase(),
|
|
180
|
-
auth:
|
|
180
|
+
auth: r ? r.slice(0, Math.max(0, r.length - 1)) : "",
|
|
181
181
|
host: a,
|
|
182
182
|
pathname: c,
|
|
183
183
|
search: f,
|
|
@@ -194,8 +194,8 @@ function ae(e = "") {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
function yt(e) {
|
|
197
|
-
const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "",
|
|
198
|
-
return (e.protocol || e[Ce] ? (e.protocol || "") + "//" : "") +
|
|
197
|
+
const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "", r = e.auth ? e.auth + "@" : "", o = e.host || "";
|
|
198
|
+
return (e.protocol || e[Ce] ? (e.protocol || "") + "//" : "") + r + o + t + n + s;
|
|
199
199
|
}
|
|
200
200
|
class bt extends Error {
|
|
201
201
|
constructor(t, n) {
|
|
@@ -204,7 +204,7 @@ class bt extends Error {
|
|
|
204
204
|
}
|
|
205
205
|
function vt(e) {
|
|
206
206
|
var c, f, i, u, d;
|
|
207
|
-
const t = ((c = e.error) == null ? void 0 : c.message) || ((f = e.error) == null ? void 0 : f.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((u = e.options) == null ? void 0 : u.method) || "GET", s = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/",
|
|
207
|
+
const t = ((c = e.error) == null ? void 0 : c.message) || ((f = e.error) == null ? void 0 : f.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((u = e.options) == null ? void 0 : u.method) || "GET", s = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", r = `[${n}] ${JSON.stringify(s)}`, o = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${r}: ${o}${t ? ` ${t}` : ""}`, l = new bt(
|
|
208
208
|
a,
|
|
209
209
|
e.error ? { cause: e.error } : void 0
|
|
210
210
|
);
|
|
@@ -265,12 +265,12 @@ function At(e, t, n = globalThis.Headers) {
|
|
|
265
265
|
...e == null ? void 0 : e.query
|
|
266
266
|
}), t != null && t.headers && (e != null && e.headers)) {
|
|
267
267
|
s.headers = new n((t == null ? void 0 : t.headers) || {});
|
|
268
|
-
for (const [
|
|
269
|
-
s.headers.set(
|
|
268
|
+
for (const [r, o] of new n((e == null ? void 0 : e.headers) || {}))
|
|
269
|
+
s.headers.set(r, o);
|
|
270
270
|
}
|
|
271
271
|
return s;
|
|
272
272
|
}
|
|
273
|
-
const
|
|
273
|
+
const $t = /* @__PURE__ */ new Set([
|
|
274
274
|
408,
|
|
275
275
|
// Request Timeout
|
|
276
276
|
409,
|
|
@@ -288,21 +288,21 @@ const Ot = /* @__PURE__ */ new Set([
|
|
|
288
288
|
504
|
|
289
289
|
// Gateway Timeout
|
|
290
290
|
]), Rt = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
291
|
-
function
|
|
291
|
+
function $e(e = {}) {
|
|
292
292
|
const {
|
|
293
293
|
fetch: t = globalThis.fetch,
|
|
294
294
|
Headers: n = globalThis.Headers,
|
|
295
295
|
AbortController: s = globalThis.AbortController
|
|
296
296
|
} = e;
|
|
297
|
-
async function
|
|
297
|
+
async function r(l) {
|
|
298
298
|
const c = l.error && l.error.name === "AbortError" && !l.options.timeout || !1;
|
|
299
299
|
if (l.options.retry !== !1 && !c) {
|
|
300
300
|
let i;
|
|
301
301
|
typeof l.options.retry == "number" ? i = l.options.retry : i = ce(l.options.method) ? 0 : 1;
|
|
302
302
|
const u = l.response && l.response.status || 500;
|
|
303
|
-
if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(u) :
|
|
303
|
+
if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(u) : $t.has(u))) {
|
|
304
304
|
const d = l.options.retryDelay || 0;
|
|
305
|
-
return d > 0 && await new Promise((m) => setTimeout(m, d)),
|
|
305
|
+
return d > 0 && await new Promise((m) => setTimeout(m, d)), o(l.request, {
|
|
306
306
|
...l.options,
|
|
307
307
|
retry: i - 1,
|
|
308
308
|
timeout: l.options.timeout
|
|
@@ -310,9 +310,9 @@ function Oe(e = {}) {
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
const f = vt(l);
|
|
313
|
-
throw Error.captureStackTrace && Error.captureStackTrace(f,
|
|
313
|
+
throw Error.captureStackTrace && Error.captureStackTrace(f, o), f;
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const o = async function(c, f = {}) {
|
|
316
316
|
var d;
|
|
317
317
|
const i = {
|
|
318
318
|
request: c,
|
|
@@ -337,13 +337,13 @@ function Oe(e = {}) {
|
|
|
337
337
|
i.options
|
|
338
338
|
);
|
|
339
339
|
} catch (m) {
|
|
340
|
-
return i.error = m, i.options.onRequestError && await i.options.onRequestError(i), await
|
|
340
|
+
return i.error = m, i.options.onRequestError && await i.options.onRequestError(i), await r(i);
|
|
341
341
|
}
|
|
342
342
|
if (i.response.body && !Rt.has(i.response.status) && i.options.method !== "HEAD") {
|
|
343
343
|
const m = (i.options.parseResponse ? "json" : i.options.responseType) || Ct(i.response.headers.get("content-type") || "");
|
|
344
344
|
switch (m) {
|
|
345
345
|
case "json": {
|
|
346
|
-
const y = await i.response.text(), h = i.options.parseResponse ||
|
|
346
|
+
const y = await i.response.text(), h = i.options.parseResponse || Ge;
|
|
347
347
|
i.response._data = h(y);
|
|
348
348
|
break;
|
|
349
349
|
}
|
|
@@ -355,11 +355,11 @@ function Oe(e = {}) {
|
|
|
355
355
|
i.response._data = await i.response[m]();
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await
|
|
358
|
+
return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await r(i)) : i.response;
|
|
359
359
|
}, a = async function(c, f) {
|
|
360
|
-
return (await
|
|
360
|
+
return (await o(c, f))._data;
|
|
361
361
|
};
|
|
362
|
-
return a.raw =
|
|
362
|
+
return a.raw = o, a.native = (...l) => t(...l), a.create = (l = {}) => $e({
|
|
363
363
|
...e,
|
|
364
364
|
defaults: {
|
|
365
365
|
...e.defaults,
|
|
@@ -367,7 +367,7 @@ function Oe(e = {}) {
|
|
|
367
367
|
}
|
|
368
368
|
}), a;
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const re = function() {
|
|
371
371
|
if (typeof globalThis < "u")
|
|
372
372
|
return globalThis;
|
|
373
373
|
if (typeof self < "u")
|
|
@@ -377,30 +377,30 @@ const oe = function() {
|
|
|
377
377
|
if (typeof global < "u")
|
|
378
378
|
return global;
|
|
379
379
|
throw new Error("unable to locate global object");
|
|
380
|
-
}(),
|
|
380
|
+
}(), Ot = re.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), kt = re.Headers, Lt = re.AbortController, Tt = $e({ fetch: Ot, Headers: kt, AbortController: Lt }), Mt = Tt;
|
|
381
381
|
function Ut(e) {
|
|
382
382
|
const t = e.length;
|
|
383
|
-
let n = -1, s,
|
|
384
|
-
const
|
|
383
|
+
let n = -1, s, r = "";
|
|
384
|
+
const o = e.charCodeAt(0);
|
|
385
385
|
for (; ++n < t; ) {
|
|
386
386
|
if (s = e.charCodeAt(n), s === 0) {
|
|
387
|
-
|
|
387
|
+
r += "�";
|
|
388
388
|
continue;
|
|
389
389
|
}
|
|
390
390
|
if (s === 37) {
|
|
391
|
-
|
|
391
|
+
r += "\\%";
|
|
392
392
|
continue;
|
|
393
393
|
}
|
|
394
394
|
if (s === 44) {
|
|
395
|
-
|
|
395
|
+
r += "\\,";
|
|
396
396
|
continue;
|
|
397
397
|
}
|
|
398
398
|
if (
|
|
399
399
|
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
|
|
400
400
|
// U+007F, […]
|
|
401
|
-
s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 &&
|
|
401
|
+
s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 && o === 45
|
|
402
402
|
) {
|
|
403
|
-
|
|
403
|
+
r += `\\${s.toString(16)} `;
|
|
404
404
|
continue;
|
|
405
405
|
}
|
|
406
406
|
if (
|
|
@@ -408,18 +408,18 @@ function Ut(e) {
|
|
|
408
408
|
// there is no second character, […]
|
|
409
409
|
n === 0 && t === 1 && s === 45
|
|
410
410
|
) {
|
|
411
|
-
|
|
411
|
+
r += `\\${e.charAt(n)}`;
|
|
412
412
|
continue;
|
|
413
413
|
}
|
|
414
414
|
if (s >= 128 || s === 45 || s === 95 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122) {
|
|
415
|
-
|
|
415
|
+
r += e.charAt(n);
|
|
416
416
|
continue;
|
|
417
417
|
}
|
|
418
|
-
|
|
418
|
+
r += `\\${e.charAt(n)}`;
|
|
419
419
|
}
|
|
420
|
-
return
|
|
420
|
+
return r;
|
|
421
421
|
}
|
|
422
|
-
const
|
|
422
|
+
const Q = Ut;
|
|
423
423
|
function N(e = []) {
|
|
424
424
|
return Array.isArray(e) ? e : [e];
|
|
425
425
|
}
|
|
@@ -427,58 +427,58 @@ function W(e) {
|
|
|
427
427
|
return Array.from(new Set(e));
|
|
428
428
|
}
|
|
429
429
|
function Nt(e, t) {
|
|
430
|
-
return e.reduce((n, s) => (n.findIndex((
|
|
430
|
+
return e.reduce((n, s) => (n.findIndex((o) => t(s, o)) === -1 && n.push(s), n), []);
|
|
431
431
|
}
|
|
432
432
|
function U(e) {
|
|
433
433
|
return typeof e == "string";
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function V(e) {
|
|
436
436
|
return U(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
437
437
|
}
|
|
438
|
-
function It(e) {
|
|
439
|
-
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => G(t)) : [e] : [G(e)];
|
|
440
|
-
}
|
|
441
438
|
function jt(e) {
|
|
439
|
+
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => V(t)) : [e] : [V(e)];
|
|
440
|
+
}
|
|
441
|
+
function It(e) {
|
|
442
442
|
return e.filter(([t, n], s) => {
|
|
443
443
|
if (t.startsWith("$$"))
|
|
444
444
|
return !1;
|
|
445
|
-
for (let
|
|
446
|
-
if (e[
|
|
445
|
+
for (let r = s - 1; r >= 0; r--)
|
|
446
|
+
if (e[r][0] === t && e[r][1] === n)
|
|
447
447
|
return !1;
|
|
448
448
|
return !0;
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return e == null ? "" :
|
|
451
|
+
function Y(e) {
|
|
452
|
+
return e == null ? "" : It(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
453
453
|
}
|
|
454
454
|
function H(e) {
|
|
455
455
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
456
456
|
}
|
|
457
457
|
function Re(e, t, n = !1) {
|
|
458
|
-
const s = e,
|
|
459
|
-
if (Array.isArray(
|
|
460
|
-
return n && Array.isArray(
|
|
461
|
-
const
|
|
462
|
-
return H(s) && H(
|
|
463
|
-
H(s[a]) && H(
|
|
464
|
-
}),
|
|
465
|
-
}
|
|
466
|
-
function
|
|
458
|
+
const s = e, r = t;
|
|
459
|
+
if (Array.isArray(r))
|
|
460
|
+
return n && Array.isArray(r) ? [...s, ...r] : [...r];
|
|
461
|
+
const o = { ...s };
|
|
462
|
+
return H(s) && H(r) && Object.keys(r).forEach((a) => {
|
|
463
|
+
H(s[a]) && H(r[a]) || Array.isArray(s[a]) && Array.isArray(r[a]) ? o[a] = Re(s[a], r[a], n) : Object.assign(o, { [a]: r[a] });
|
|
464
|
+
}), o;
|
|
465
|
+
}
|
|
466
|
+
function G(e) {
|
|
467
467
|
let t, n, s;
|
|
468
468
|
if (Array.isArray(e)) {
|
|
469
469
|
for (n = Array(t = e.length); t--; )
|
|
470
|
-
n[t] = (s = e[t]) && typeof s == "object" ?
|
|
470
|
+
n[t] = (s = e[t]) && typeof s == "object" ? G(s) : s;
|
|
471
471
|
return n;
|
|
472
472
|
}
|
|
473
473
|
if (Object.prototype.toString.call(e) === "[object Object]") {
|
|
474
474
|
n = {};
|
|
475
475
|
for (t in e)
|
|
476
476
|
t === "__proto__" ? Object.defineProperty(n, t, {
|
|
477
|
-
value:
|
|
477
|
+
value: G(e[t]),
|
|
478
478
|
configurable: !0,
|
|
479
479
|
enumerable: !0,
|
|
480
480
|
writable: !0
|
|
481
|
-
}) : n[t] = (s = e[t]) && typeof s == "object" ?
|
|
481
|
+
}) : n[t] = (s = e[t]) && typeof s == "object" ? G(s) : s;
|
|
482
482
|
return n;
|
|
483
483
|
}
|
|
484
484
|
return e;
|
|
@@ -496,15 +496,15 @@ function Ft(e) {
|
|
|
496
496
|
function ue(e) {
|
|
497
497
|
return e.length === 3;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Bt(e) {
|
|
500
500
|
return e != null;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Vt() {
|
|
503
503
|
}
|
|
504
|
-
var Ht = Object.defineProperty,
|
|
504
|
+
var Ht = Object.defineProperty, zt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gt = (e, t, n) => (zt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
505
505
|
class qt {
|
|
506
506
|
constructor() {
|
|
507
|
-
|
|
507
|
+
Gt(this, "_map", /* @__PURE__ */ new Map());
|
|
508
508
|
}
|
|
509
509
|
get(t, n) {
|
|
510
510
|
const s = this._map.get(t);
|
|
@@ -512,12 +512,12 @@ class qt {
|
|
|
512
512
|
return s.get(n);
|
|
513
513
|
}
|
|
514
514
|
getFallback(t, n, s) {
|
|
515
|
-
let
|
|
516
|
-
return
|
|
515
|
+
let r = this._map.get(t);
|
|
516
|
+
return r || (r = /* @__PURE__ */ new Map(), this._map.set(t, r)), r.has(n) || r.set(n, s), r.get(n);
|
|
517
517
|
}
|
|
518
518
|
set(t, n, s) {
|
|
519
|
-
let
|
|
520
|
-
return
|
|
519
|
+
let r = this._map.get(t);
|
|
520
|
+
return r || (r = /* @__PURE__ */ new Map(), this._map.set(t, r)), r.set(n, s), this;
|
|
521
521
|
}
|
|
522
522
|
has(t, n) {
|
|
523
523
|
var s;
|
|
@@ -531,7 +531,7 @@ class qt {
|
|
|
531
531
|
return this._map.delete(t);
|
|
532
532
|
}
|
|
533
533
|
map(t) {
|
|
534
|
-
return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([
|
|
534
|
+
return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([r, o]) => t(o, n, r)));
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
class Wt extends Map {
|
|
@@ -541,21 +541,21 @@ class Wt extends Map {
|
|
|
541
541
|
}
|
|
542
542
|
map(t) {
|
|
543
543
|
const n = [];
|
|
544
|
-
return this.forEach((s,
|
|
545
|
-
n.push(t(s,
|
|
544
|
+
return this.forEach((s, r) => {
|
|
545
|
+
n.push(t(s, r));
|
|
546
546
|
}), n;
|
|
547
547
|
}
|
|
548
548
|
flatMap(t) {
|
|
549
549
|
const n = [];
|
|
550
|
-
return this.forEach((s,
|
|
551
|
-
n.push(...t(s,
|
|
550
|
+
return this.forEach((s, r) => {
|
|
551
|
+
n.push(...t(s, r));
|
|
552
552
|
}), n;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
class
|
|
555
|
+
var Jt = Object.defineProperty, Kt = (e, t, n) => t in e ? Jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Qt = (e, t, n) => (Kt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
556
|
+
class Oe extends Set {
|
|
557
557
|
constructor(t) {
|
|
558
|
-
super(t),
|
|
558
|
+
super(t), Qt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
|
|
559
559
|
}
|
|
560
560
|
add(t) {
|
|
561
561
|
return this._map ?? (this._map = /* @__PURE__ */ new Map()), this._map.set(t, (this._map.get(t) ?? 0) + 1), super.add(t);
|
|
@@ -573,26 +573,26 @@ class ke extends Set {
|
|
|
573
573
|
return this._map.set(t, n), super.add(t);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
return e instanceof
|
|
576
|
+
function X(e) {
|
|
577
|
+
return e instanceof Oe;
|
|
578
578
|
}
|
|
579
|
-
const
|
|
580
|
-
function
|
|
579
|
+
const z = {};
|
|
580
|
+
function Yt(e = ["-", ":"]) {
|
|
581
581
|
const t = e.join("|");
|
|
582
|
-
return
|
|
582
|
+
return z[t] || (z[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), z[t].lastIndex = 0, z[t];
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
const s =
|
|
586
|
-
let
|
|
584
|
+
function Xt(e, t = ["-", ":"], n = 5) {
|
|
585
|
+
const s = Yt(t);
|
|
586
|
+
let r, o = e.toString();
|
|
587
587
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
588
588
|
do
|
|
589
|
-
|
|
589
|
+
r = !1, o = o.replace(
|
|
590
590
|
s,
|
|
591
591
|
(f, i, u, d, m) => {
|
|
592
592
|
var v;
|
|
593
593
|
if (!t.includes(u))
|
|
594
594
|
return f;
|
|
595
|
-
|
|
595
|
+
r = !0, a.add(i + u);
|
|
596
596
|
const y = m + i.length + u.length + 1, h = { length: f.length, items: [] };
|
|
597
597
|
l.set(m, h);
|
|
598
598
|
for (const A of [...d.matchAll(/\S+/g)]) {
|
|
@@ -609,7 +609,7 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
609
609
|
return "$".repeat(f.length);
|
|
610
610
|
}
|
|
611
611
|
), n -= 1;
|
|
612
|
-
while (
|
|
612
|
+
while (r && n);
|
|
613
613
|
let c;
|
|
614
614
|
if (typeof e == "string") {
|
|
615
615
|
c = "";
|
|
@@ -628,7 +628,7 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
628
628
|
}
|
|
629
629
|
return {
|
|
630
630
|
prefixes: Array.from(a),
|
|
631
|
-
hasChanged:
|
|
631
|
+
hasChanged: r,
|
|
632
632
|
groupsByOffset: l,
|
|
633
633
|
// Computed lazily because MagicString's toString does a lot of work
|
|
634
634
|
get expanded() {
|
|
@@ -637,11 +637,11 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
639
|
function Zt(e, t = ["-", ":"], n = 5) {
|
|
640
|
-
const s =
|
|
640
|
+
const s = Xt(e, t, n);
|
|
641
641
|
return typeof e == "string" ? s.expanded : e;
|
|
642
642
|
}
|
|
643
643
|
const fe = /* @__PURE__ */ new Set();
|
|
644
|
-
function
|
|
644
|
+
function ke(e) {
|
|
645
645
|
fe.has(e) || (console.warn("[unocss]", e), fe.add(e));
|
|
646
646
|
}
|
|
647
647
|
const en = /[\\:]?[\s'"`;{}]+/g;
|
|
@@ -666,13 +666,13 @@ function sn() {
|
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
const q = "default", ne = "preflights",
|
|
670
|
-
[
|
|
669
|
+
const q = "default", ne = "preflights", rn = "shortcuts", on = "imports", an = {
|
|
670
|
+
[on]: -200,
|
|
671
671
|
[ne]: -100,
|
|
672
|
-
[
|
|
672
|
+
[rn]: -10,
|
|
673
673
|
[q]: 0
|
|
674
674
|
};
|
|
675
|
-
function
|
|
675
|
+
function Le(e) {
|
|
676
676
|
return N(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
677
677
|
}
|
|
678
678
|
const pe = "_uno_resolved";
|
|
@@ -685,36 +685,36 @@ function cn(e) {
|
|
|
685
685
|
value: !0,
|
|
686
686
|
enumerable: !1
|
|
687
687
|
});
|
|
688
|
-
const n = t.shortcuts ?
|
|
688
|
+
const n = t.shortcuts ? Le(t.shortcuts) : void 0;
|
|
689
689
|
if (t.shortcuts = n, t.prefix || t.layer) {
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
const a =
|
|
690
|
+
const r = (o) => {
|
|
691
|
+
o[2] || (o[2] = {});
|
|
692
|
+
const a = o[2];
|
|
693
693
|
a.prefix == null && t.prefix && (a.prefix = N(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
694
694
|
};
|
|
695
|
-
n == null || n.forEach(
|
|
695
|
+
n == null || n.forEach(r), (s = t.rules) == null || s.forEach(r);
|
|
696
696
|
}
|
|
697
697
|
return t;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Te(e) {
|
|
700
700
|
const t = cn(e);
|
|
701
701
|
if (!t.presets)
|
|
702
702
|
return [t];
|
|
703
|
-
const n = (t.presets || []).flatMap(N).flatMap(
|
|
703
|
+
const n = (t.presets || []).flatMap(N).flatMap(Te);
|
|
704
704
|
return [t, ...n];
|
|
705
705
|
}
|
|
706
706
|
function de(e = {}, t = {}) {
|
|
707
707
|
var S, b;
|
|
708
|
-
const n = Object.assign({}, t, e), s = Nt((n.presets || []).flatMap(N).flatMap(
|
|
708
|
+
const n = Object.assign({}, t, e), s = Nt((n.presets || []).flatMap(N).flatMap(Te), (p, w) => p.name === w.name), r = [
|
|
709
709
|
...s.filter((p) => p.enforce === "pre"),
|
|
710
710
|
...s.filter((p) => !p.enforce),
|
|
711
711
|
...s.filter((p) => p.enforce === "post")
|
|
712
|
-
],
|
|
713
|
-
...
|
|
712
|
+
], o = [
|
|
713
|
+
...r,
|
|
714
714
|
n
|
|
715
|
-
], a = [...
|
|
715
|
+
], a = [...o].reverse(), l = Object.assign({}, an, ...o.map((p) => p.layers));
|
|
716
716
|
function c(p) {
|
|
717
|
-
return W(
|
|
717
|
+
return W(o.flatMap((w) => N(w[p] || [])));
|
|
718
718
|
}
|
|
719
719
|
const f = c("extractors");
|
|
720
720
|
let i = (S = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : S.extractorDefault;
|
|
@@ -722,27 +722,27 @@ function de(e = {}, t = {}) {
|
|
|
722
722
|
const u = c("rules"), d = {}, m = u.length, y = u.map((p, w) => {
|
|
723
723
|
var R;
|
|
724
724
|
if (Dt(p)) {
|
|
725
|
-
N(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((
|
|
726
|
-
d[
|
|
725
|
+
N(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((T) => {
|
|
726
|
+
d[T + p[0]] = [w, p[1], p[2], p];
|
|
727
727
|
});
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
730
|
return [w, ...p];
|
|
731
731
|
}).filter(Boolean).reverse();
|
|
732
|
-
let h = ln(
|
|
732
|
+
let h = ln(o.map((p) => p.theme));
|
|
733
733
|
const v = c("extendTheme");
|
|
734
734
|
for (const p of v)
|
|
735
735
|
h = p(h) || h;
|
|
736
736
|
const A = {
|
|
737
|
-
templates: W(
|
|
737
|
+
templates: W(o.flatMap((p) => {
|
|
738
738
|
var w;
|
|
739
739
|
return N((w = p.autocomplete) == null ? void 0 : w.templates);
|
|
740
740
|
})),
|
|
741
|
-
extractors:
|
|
741
|
+
extractors: o.flatMap((p) => {
|
|
742
742
|
var w;
|
|
743
743
|
return N((w = p.autocomplete) == null ? void 0 : w.extractors);
|
|
744
744
|
}).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
745
|
-
shorthands: un(
|
|
745
|
+
shorthands: un(o.map((p) => {
|
|
746
746
|
var w;
|
|
747
747
|
return ((w = p.autocomplete) == null ? void 0 : w.shorthands) || {};
|
|
748
748
|
}))
|
|
@@ -755,7 +755,7 @@ function de(e = {}, t = {}) {
|
|
|
755
755
|
sortLayers: (p) => p,
|
|
756
756
|
...n,
|
|
757
757
|
blocklist: c("blocklist"),
|
|
758
|
-
presets:
|
|
758
|
+
presets: r,
|
|
759
759
|
envMode: n.envMode || "build",
|
|
760
760
|
shortcutsLayer: n.shortcutsLayer || "shortcuts",
|
|
761
761
|
layers: l,
|
|
@@ -768,25 +768,25 @@ function de(e = {}, t = {}) {
|
|
|
768
768
|
preflights: c("preflights"),
|
|
769
769
|
autocomplete: A,
|
|
770
770
|
variants: c("variants").map(Ft).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
771
|
-
shortcuts:
|
|
771
|
+
shortcuts: Le(c("shortcuts")).reverse(),
|
|
772
772
|
extractors: f,
|
|
773
773
|
safelist: c("safelist"),
|
|
774
774
|
separators: x,
|
|
775
775
|
details: n.details ?? n.envMode === "dev"
|
|
776
776
|
};
|
|
777
|
-
for (const p of
|
|
777
|
+
for (const p of o)
|
|
778
778
|
(b = p == null ? void 0 : p.configResolved) == null || b.call(p, g);
|
|
779
779
|
return g;
|
|
780
780
|
}
|
|
781
781
|
function ln(e) {
|
|
782
|
-
return e.map((t) => t ?
|
|
782
|
+
return e.map((t) => t ? G(t) : {}).reduce((t, n) => Re(t, n), {});
|
|
783
783
|
}
|
|
784
784
|
function un(e) {
|
|
785
785
|
return e.reduce((t, n) => {
|
|
786
786
|
const s = {};
|
|
787
|
-
for (const
|
|
788
|
-
const
|
|
789
|
-
Array.isArray(
|
|
787
|
+
for (const r in n) {
|
|
788
|
+
const o = n[r];
|
|
789
|
+
Array.isArray(o) ? s[r] = `(${o.join("|")})` : s[r] = o;
|
|
790
790
|
}
|
|
791
791
|
return {
|
|
792
792
|
...t,
|
|
@@ -795,17 +795,17 @@ function un(e) {
|
|
|
795
795
|
}, {});
|
|
796
796
|
}
|
|
797
797
|
const fn = "0.58.6";
|
|
798
|
-
var pn = Object.defineProperty, dn = (e, t, n) => t in e ? pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
798
|
+
var pn = Object.defineProperty, dn = (e, t, n) => t in e ? pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
799
799
|
class mn {
|
|
800
800
|
constructor(t = {}, n = {}) {
|
|
801
|
-
this.userConfig = t, this.defaults = n,
|
|
801
|
+
this.userConfig = t, this.defaults = n, I(this, "version", fn), I(this, "_cache", /* @__PURE__ */ new Map()), I(this, "config"), I(this, "blocked", /* @__PURE__ */ new Set()), I(this, "parentOrders", /* @__PURE__ */ new Map()), I(this, "events", sn()), this.config = de(t, n), this.events.emit("config", this.config);
|
|
802
802
|
}
|
|
803
803
|
setConfig(t, n) {
|
|
804
804
|
t && (n && (this.defaults = n), this.userConfig = t, this.blocked.clear(), this.parentOrders.clear(), this._cache.clear(), this.config = de(t, this.defaults), this.events.emit("config", this.config));
|
|
805
805
|
}
|
|
806
806
|
async applyExtractors(t, n, s = /* @__PURE__ */ new Set()) {
|
|
807
|
-
var
|
|
808
|
-
const
|
|
807
|
+
var o;
|
|
808
|
+
const r = {
|
|
809
809
|
original: t,
|
|
810
810
|
code: t,
|
|
811
811
|
id: n,
|
|
@@ -813,9 +813,9 @@ class mn {
|
|
|
813
813
|
envMode: this.config.envMode
|
|
814
814
|
};
|
|
815
815
|
for (const a of this.config.extractors) {
|
|
816
|
-
const l = await ((
|
|
816
|
+
const l = await ((o = a.extract) == null ? void 0 : o.call(a, r));
|
|
817
817
|
if (l)
|
|
818
|
-
if (
|
|
818
|
+
if (X(l) && X(s))
|
|
819
819
|
for (const c of l)
|
|
820
820
|
s.setCount(c, s.getCount(c) + l.getCount(c));
|
|
821
821
|
else
|
|
@@ -831,7 +831,7 @@ class mn {
|
|
|
831
831
|
theme: this.config.theme,
|
|
832
832
|
generator: this,
|
|
833
833
|
variantHandlers: n[2],
|
|
834
|
-
constructCSS: (...
|
|
834
|
+
constructCSS: (...r) => this.constructCustomCSS(s, ...r),
|
|
835
835
|
variantMatch: n
|
|
836
836
|
};
|
|
837
837
|
return s;
|
|
@@ -843,21 +843,21 @@ class mn {
|
|
|
843
843
|
const s = `${t}${n ? ` ${n}` : ""}`;
|
|
844
844
|
if (this._cache.has(s))
|
|
845
845
|
return this._cache.get(s);
|
|
846
|
-
let
|
|
846
|
+
let r = t;
|
|
847
847
|
for (const i of this.config.preprocess)
|
|
848
|
-
|
|
849
|
-
if (this.isBlocked(
|
|
848
|
+
r = i(t);
|
|
849
|
+
if (this.isBlocked(r)) {
|
|
850
850
|
this.blocked.add(t), this._cache.set(s, null);
|
|
851
851
|
return;
|
|
852
852
|
}
|
|
853
|
-
const
|
|
854
|
-
if (!
|
|
853
|
+
const o = await this.matchVariants(t, r);
|
|
854
|
+
if (!o || this.isBlocked(o[1])) {
|
|
855
855
|
this.blocked.add(t), this._cache.set(s, null);
|
|
856
856
|
return;
|
|
857
857
|
}
|
|
858
|
-
const a = this.makeContext(t, [n ||
|
|
859
|
-
this.config.details && (a.variants = [...
|
|
860
|
-
const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (f = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : f.map((i) => this.stringifyUtil(i, a)).filter(
|
|
858
|
+
const a = this.makeContext(t, [n || o[0], o[1], o[2], o[3]]);
|
|
859
|
+
this.config.details && (a.variants = [...o[3]]);
|
|
860
|
+
const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (f = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : f.map((i) => this.stringifyUtil(i, a)).filter(Bt);
|
|
861
861
|
if (c != null && c.length)
|
|
862
862
|
return this._cache.set(s, c), c;
|
|
863
863
|
this._cache.set(s, null);
|
|
@@ -865,15 +865,15 @@ class mn {
|
|
|
865
865
|
async generate(t, n = {}) {
|
|
866
866
|
const {
|
|
867
867
|
id: s,
|
|
868
|
-
scope:
|
|
869
|
-
preflights:
|
|
868
|
+
scope: r,
|
|
869
|
+
preflights: o = !0,
|
|
870
870
|
safelist: a = !0,
|
|
871
871
|
minify: l = !1,
|
|
872
872
|
extendedInfo: c = !1
|
|
873
873
|
} = n, f = this.config.outputToCssLayers, i = U(t) ? await this.applyExtractors(
|
|
874
874
|
t,
|
|
875
875
|
s,
|
|
876
|
-
c ? new
|
|
876
|
+
c ? new Oe() : /* @__PURE__ */ new Set()
|
|
877
877
|
) : Array.isArray(t) ? new Set(t) : t;
|
|
878
878
|
a && this.config.safelist.forEach((b) => {
|
|
879
879
|
i.has(b) || i.add(b);
|
|
@@ -889,16 +889,16 @@ class mn {
|
|
|
889
889
|
if (p != null) {
|
|
890
890
|
m instanceof Map ? m.set(b, {
|
|
891
891
|
data: p,
|
|
892
|
-
count:
|
|
892
|
+
count: X(i) ? i.getCount(b) : -1
|
|
893
893
|
}) : m.add(b);
|
|
894
894
|
for (const R of p) {
|
|
895
|
-
const
|
|
896
|
-
y.has(
|
|
895
|
+
const $ = R[3] || "", T = (w = R[4]) == null ? void 0 : w.layer;
|
|
896
|
+
y.has($) || y.set($, []), y.get($).push(R), T && d.add(T);
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
900
|
await Promise.all(v), await (async () => {
|
|
901
|
-
if (!
|
|
901
|
+
if (!o)
|
|
902
902
|
return;
|
|
903
903
|
const b = {
|
|
904
904
|
generator: this,
|
|
@@ -909,10 +909,10 @@ class mn {
|
|
|
909
909
|
}), h = Object.fromEntries(
|
|
910
910
|
await Promise.all(Array.from(p).map(
|
|
911
911
|
async (w) => {
|
|
912
|
-
const
|
|
913
|
-
this.config.preflights.filter((
|
|
912
|
+
const $ = (await Promise.all(
|
|
913
|
+
this.config.preflights.filter((T) => (T.layer || ne) === w).map(async (T) => await T.getCSS(b))
|
|
914
914
|
)).filter(Boolean).join(u);
|
|
915
|
-
return [w,
|
|
915
|
+
return [w, $];
|
|
916
916
|
}
|
|
917
917
|
))
|
|
918
918
|
);
|
|
@@ -921,44 +921,44 @@ class mn {
|
|
|
921
921
|
var R;
|
|
922
922
|
if (x[b])
|
|
923
923
|
return x[b];
|
|
924
|
-
let p = Array.from(y).sort((
|
|
925
|
-
var
|
|
926
|
-
return (this.parentOrders.get(
|
|
927
|
-
}).map(([
|
|
928
|
-
const
|
|
924
|
+
let p = Array.from(y).sort(($, T) => {
|
|
925
|
+
var j;
|
|
926
|
+
return (this.parentOrders.get($[0]) ?? 0) - (this.parentOrders.get(T[0]) ?? 0) || ((j = $[0]) == null ? void 0 : j.localeCompare(T[0] || "")) || 0;
|
|
927
|
+
}).map(([$, T]) => {
|
|
928
|
+
const j = T.length, D = T.filter((O) => {
|
|
929
929
|
var _;
|
|
930
|
-
return (((_ =
|
|
931
|
-
}).sort((
|
|
932
|
-
var E, C, M,
|
|
933
|
-
return
|
|
934
|
-
}).map(([,
|
|
935
|
-
[[(
|
|
930
|
+
return (((_ = O[4]) == null ? void 0 : _.layer) || q) === b;
|
|
931
|
+
}).sort((O, _) => {
|
|
932
|
+
var E, C, M, k, L, B, ie;
|
|
933
|
+
return O[0] - _[0] || (((E = O[4]) == null ? void 0 : E.sort) || 0) - (((C = _[4]) == null ? void 0 : C.sort) || 0) || ((L = (M = O[5]) == null ? void 0 : M.currentSelector) == null ? void 0 : L.localeCompare(((k = _[5]) == null ? void 0 : k.currentSelector) ?? "")) || ((B = O[1]) == null ? void 0 : B.localeCompare(_[1] || "")) || ((ie = O[2]) == null ? void 0 : ie.localeCompare(_[2] || "")) || 0;
|
|
934
|
+
}).map(([, O, _, , E, , C]) => [
|
|
935
|
+
[[(O && gn(O, r)) ?? "", (E == null ? void 0 : E.sort) ?? 0]],
|
|
936
936
|
_,
|
|
937
937
|
!!(C ?? (E == null ? void 0 : E.noMerge))
|
|
938
938
|
]);
|
|
939
939
|
if (!D.length)
|
|
940
940
|
return;
|
|
941
|
-
const P = D.reverse().map(([
|
|
941
|
+
const P = D.reverse().map(([O, _, E], C) => {
|
|
942
942
|
if (!E && this.config.mergeSelectors)
|
|
943
|
-
for (let
|
|
944
|
-
const
|
|
945
|
-
if (
|
|
946
|
-
return
|
|
943
|
+
for (let k = C + 1; k < j; k++) {
|
|
944
|
+
const L = D[k];
|
|
945
|
+
if (L && !L[2] && (O && L[0] || O == null && L[0] == null) && L[1] === _)
|
|
946
|
+
return O && L[0] && L[0].push(...O), null;
|
|
947
947
|
}
|
|
948
|
-
const M =
|
|
949
|
-
var
|
|
950
|
-
return
|
|
951
|
-
}).map((
|
|
948
|
+
const M = O ? W(O.sort((k, L) => {
|
|
949
|
+
var B;
|
|
950
|
+
return k[1] - L[1] || ((B = k[0]) == null ? void 0 : B.localeCompare(L[0] || "")) || 0;
|
|
951
|
+
}).map((k) => k[0]).filter(Boolean)) : [];
|
|
952
952
|
return M.length ? `${M.join(`,${u}`)}{${_}}` : _;
|
|
953
953
|
}).filter(Boolean).reverse().join(u);
|
|
954
|
-
if (
|
|
954
|
+
if (!$)
|
|
955
955
|
return P;
|
|
956
|
-
const F =
|
|
956
|
+
const F = $.split(" $$ ");
|
|
957
957
|
return `${F.join("{")}{${u}${P}${u}${"}".repeat(F.length)}`;
|
|
958
958
|
}).filter(Boolean).join(u);
|
|
959
|
-
if (
|
|
960
|
-
let
|
|
961
|
-
|
|
959
|
+
if (o && (p = [h[b], p].filter(Boolean).join(u)), f && p) {
|
|
960
|
+
let $ = typeof f == "object" ? (R = f.cssLayerName) == null ? void 0 : R.call(f, b) : void 0;
|
|
961
|
+
$ !== null && ($ || ($ = b), p = `@layer ${$}{${u}${p}${u}}`);
|
|
962
962
|
}
|
|
963
963
|
const w = l ? "" : `/* layer: ${b} */${u}`;
|
|
964
964
|
return x[b] = p ? w + p : "";
|
|
@@ -974,8 +974,8 @@ class mn {
|
|
|
974
974
|
};
|
|
975
975
|
}
|
|
976
976
|
async matchVariants(t, n) {
|
|
977
|
-
const s = /* @__PURE__ */ new Set(),
|
|
978
|
-
let
|
|
977
|
+
const s = /* @__PURE__ */ new Set(), r = [];
|
|
978
|
+
let o = n || t, a = !0;
|
|
979
979
|
const l = {
|
|
980
980
|
rawSelector: t,
|
|
981
981
|
theme: this.config.theme,
|
|
@@ -986,26 +986,26 @@ class mn {
|
|
|
986
986
|
for (const c of this.config.variants) {
|
|
987
987
|
if (!c.multiPass && s.has(c))
|
|
988
988
|
continue;
|
|
989
|
-
let f = await c.match(
|
|
989
|
+
let f = await c.match(o, l);
|
|
990
990
|
if (f) {
|
|
991
991
|
if (U(f)) {
|
|
992
|
-
if (f ===
|
|
992
|
+
if (f === o)
|
|
993
993
|
continue;
|
|
994
994
|
f = { matcher: f };
|
|
995
995
|
}
|
|
996
|
-
|
|
996
|
+
o = f.matcher, r.unshift(f), s.add(c), a = !0;
|
|
997
997
|
break;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
1000
|
if (!a)
|
|
1001
1001
|
break;
|
|
1002
|
-
if (
|
|
1002
|
+
if (r.length > 500)
|
|
1003
1003
|
throw new Error(`Too many variants applied to "${t}"`);
|
|
1004
1004
|
}
|
|
1005
|
-
return [t,
|
|
1005
|
+
return [t, o, r, s];
|
|
1006
1006
|
}
|
|
1007
1007
|
applyVariants(t, n = t[4], s = t[1]) {
|
|
1008
|
-
const
|
|
1008
|
+
const o = n.slice().sort((f, i) => (f.order || 0) - (i.order || 0)).reduceRight(
|
|
1009
1009
|
(f, i) => (u) => {
|
|
1010
1010
|
var y, h;
|
|
1011
1011
|
const d = ((y = i.body) == null ? void 0 : y.call(i, u.entries)) || u.entries, m = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
|
|
@@ -1025,40 +1025,40 @@ class mn {
|
|
|
1025
1025
|
selector: yn(s),
|
|
1026
1026
|
pseudo: "",
|
|
1027
1027
|
entries: t[2]
|
|
1028
|
-
}), { parent: a, parentOrder: l } =
|
|
1028
|
+
}), { parent: a, parentOrder: l } = o;
|
|
1029
1029
|
a != null && l != null && this.parentOrders.set(a, l);
|
|
1030
1030
|
const c = {
|
|
1031
1031
|
selector: [
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1032
|
+
o.prefix,
|
|
1033
|
+
o.selector,
|
|
1034
|
+
o.pseudo
|
|
1035
1035
|
].join(""),
|
|
1036
|
-
entries:
|
|
1036
|
+
entries: o.entries,
|
|
1037
1037
|
parent: a,
|
|
1038
|
-
layer:
|
|
1039
|
-
sort:
|
|
1040
|
-
noMerge:
|
|
1038
|
+
layer: o.layer,
|
|
1039
|
+
sort: o.sort,
|
|
1040
|
+
noMerge: o.noMerge
|
|
1041
1041
|
};
|
|
1042
1042
|
for (const f of this.config.postprocess)
|
|
1043
1043
|
f(c);
|
|
1044
1044
|
return c;
|
|
1045
1045
|
}
|
|
1046
1046
|
constructCustomCSS(t, n, s) {
|
|
1047
|
-
const
|
|
1048
|
-
if (U(
|
|
1049
|
-
return
|
|
1050
|
-
const { selector:
|
|
1047
|
+
const r = V(n);
|
|
1048
|
+
if (U(r))
|
|
1049
|
+
return r;
|
|
1050
|
+
const { selector: o, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, r, void 0, t.variantHandlers]), c = `${o}{${Y(a)}}`;
|
|
1051
1051
|
return l ? `${l}{${c}}` : c;
|
|
1052
1052
|
}
|
|
1053
|
-
async parseUtil(t, n, s = !1,
|
|
1053
|
+
async parseUtil(t, n, s = !1, r) {
|
|
1054
1054
|
var i;
|
|
1055
|
-
const [
|
|
1055
|
+
const [o, a, l] = U(t) ? await this.matchVariants(t) : t;
|
|
1056
1056
|
this.config.details && (n.rules = n.rules ?? []);
|
|
1057
1057
|
const c = this.config.rulesStaticMap[a];
|
|
1058
1058
|
if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
|
|
1059
1059
|
this.config.details && n.rules.push(c[3]);
|
|
1060
|
-
const u = c[0], d =
|
|
1061
|
-
return U(d) ? [[u, d, m]] : [[u,
|
|
1060
|
+
const u = c[0], d = V(c[1]), m = c[2];
|
|
1061
|
+
return U(d) ? [[u, d, m]] : [[u, o, d, m, l]];
|
|
1062
1062
|
}
|
|
1063
1063
|
n.variantHandlers = l;
|
|
1064
1064
|
const { rulesDynamic: f } = this.config;
|
|
@@ -1068,8 +1068,8 @@ class mn {
|
|
|
1068
1068
|
let h = a;
|
|
1069
1069
|
if (y != null && y.prefix) {
|
|
1070
1070
|
const g = N(y.prefix);
|
|
1071
|
-
if (
|
|
1072
|
-
const S = N(
|
|
1071
|
+
if (r) {
|
|
1072
|
+
const S = N(r);
|
|
1073
1073
|
if (!g.some((b) => S.includes(b)))
|
|
1074
1074
|
continue;
|
|
1075
1075
|
} else {
|
|
@@ -1086,9 +1086,9 @@ class mn {
|
|
|
1086
1086
|
if (!A)
|
|
1087
1087
|
continue;
|
|
1088
1088
|
this.config.details && n.rules.push([d, m, y]);
|
|
1089
|
-
const x =
|
|
1089
|
+
const x = jt(A).filter((g) => g.length);
|
|
1090
1090
|
if (x.length)
|
|
1091
|
-
return x.map((g) => U(g) ? [u, g, y] : [u,
|
|
1091
|
+
return x.map((g) => U(g) ? [u, g, y] : [u, o, g, y, l]);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
stringifyUtil(t, n) {
|
|
@@ -1096,7 +1096,7 @@ class mn {
|
|
|
1096
1096
|
return;
|
|
1097
1097
|
if (ue(t))
|
|
1098
1098
|
return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
|
|
1099
|
-
const { selector: s, entries:
|
|
1099
|
+
const { selector: s, entries: r, parent: o, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Y(r);
|
|
1100
1100
|
if (!f)
|
|
1101
1101
|
return;
|
|
1102
1102
|
const { layer: i, sort: u, ...d } = t[3] ?? {}, m = {
|
|
@@ -1104,16 +1104,16 @@ class mn {
|
|
|
1104
1104
|
layer: a ?? i,
|
|
1105
1105
|
sort: l ?? u
|
|
1106
1106
|
};
|
|
1107
|
-
return [t[0], s, f,
|
|
1107
|
+
return [t[0], s, f, o, m, this.config.details ? n : void 0, c];
|
|
1108
1108
|
}
|
|
1109
1109
|
async expandShortcut(t, n, s = 5) {
|
|
1110
1110
|
var l;
|
|
1111
1111
|
if (s === 0)
|
|
1112
1112
|
return;
|
|
1113
|
-
const
|
|
1113
|
+
const r = this.config.details ? (c) => {
|
|
1114
1114
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1115
|
-
} :
|
|
1116
|
-
let
|
|
1115
|
+
} : Vt;
|
|
1116
|
+
let o, a;
|
|
1117
1117
|
for (const c of this.config.shortcuts) {
|
|
1118
1118
|
let f = t;
|
|
1119
1119
|
if ((l = c[2]) != null && l.prefix) {
|
|
@@ -1124,13 +1124,13 @@ class mn {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
if (Pt(c)) {
|
|
1126
1126
|
if (c[0] === f) {
|
|
1127
|
-
|
|
1127
|
+
o = o || c[2], a = c[1], r(c);
|
|
1128
1128
|
break;
|
|
1129
1129
|
}
|
|
1130
1130
|
} else {
|
|
1131
1131
|
const i = f.match(c[0]);
|
|
1132
1132
|
if (i && (a = c[1](i, n)), a) {
|
|
1133
|
-
|
|
1133
|
+
o = o || c[2], r(c);
|
|
1134
1134
|
break;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
@@ -1148,14 +1148,14 @@ class mn {
|
|
|
1148
1148
|
var f;
|
|
1149
1149
|
return (U(c) ? (f = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : f[0] : void 0) || [c];
|
|
1150
1150
|
}))).flat(1).filter(Boolean),
|
|
1151
|
-
|
|
1151
|
+
o
|
|
1152
1152
|
];
|
|
1153
1153
|
}
|
|
1154
|
-
async stringifyShortcuts(t, n, s,
|
|
1154
|
+
async stringifyShortcuts(t, n, s, r = { layer: this.config.shortcutsLayer }) {
|
|
1155
1155
|
var i;
|
|
1156
|
-
const
|
|
1157
|
-
const d = U(u) ? await this.parseUtil(u, n, !0,
|
|
1158
|
-
return !d && this.config.warn &&
|
|
1156
|
+
const o = new Wt(), a = (await Promise.all(W(s).map(async (u) => {
|
|
1157
|
+
const d = U(u) ? await this.parseUtil(u, n, !0, r.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", V(u), void 0, []]];
|
|
1158
|
+
return !d && this.config.warn && ke(`unmatched utility "${u}" in shortcut "${t[1]}"`), d || [];
|
|
1159
1159
|
}))).flat(1).filter(Boolean).sort((u, d) => u[0] - d[0]), [l, , c] = t, f = [];
|
|
1160
1160
|
for (const u of a) {
|
|
1161
1161
|
if (ue(u)) {
|
|
@@ -1163,16 +1163,16 @@ class mn {
|
|
|
1163
1163
|
continue;
|
|
1164
1164
|
}
|
|
1165
1165
|
const { selector: d, entries: m, parent: y, sort: h, noMerge: v, layer: A } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1166
|
-
|
|
1166
|
+
o.getFallback(A ?? r.layer, new qt()).getFallback(d, y, [[], u[0]])[0].push([m, !!(v ?? ((i = u[3]) == null ? void 0 : i.noMerge)), h ?? 0]);
|
|
1167
1167
|
}
|
|
1168
|
-
return f.concat(
|
|
1168
|
+
return f.concat(o.flatMap(
|
|
1169
1169
|
(u, d) => u.map(([m, y], h, v) => {
|
|
1170
1170
|
const A = (g, S, b) => {
|
|
1171
1171
|
const p = Math.max(...b.map((R) => R[1])), w = b.map((R) => R[0]);
|
|
1172
1172
|
return (g ? [w.flat(1)] : w).map((R) => {
|
|
1173
|
-
const
|
|
1174
|
-
if (
|
|
1175
|
-
return [y, h,
|
|
1173
|
+
const $ = Y(R);
|
|
1174
|
+
if ($)
|
|
1175
|
+
return [y, h, $, v, { ...r, noMerge: S, sort: p, layer: d }, n, void 0];
|
|
1176
1176
|
});
|
|
1177
1177
|
};
|
|
1178
1178
|
return [
|
|
@@ -1201,12 +1201,12 @@ function gn(e, t) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
const me = /^\[(.+?)(~?=)"(.*)"\]$/;
|
|
1203
1203
|
function yn(e) {
|
|
1204
|
-
return me.test(e) ? e.replace(me, (t, n, s,
|
|
1204
|
+
return me.test(e) ? e.replace(me, (t, n, s, r) => `[${Q(n)}${s}"${Q(r)}"]`) : `.${Q(e)}`;
|
|
1205
1205
|
}
|
|
1206
1206
|
function bn(e, t) {
|
|
1207
1207
|
return t(e);
|
|
1208
1208
|
}
|
|
1209
|
-
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "
|
|
1209
|
+
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "iTerm.app", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.2.6", SHELL: "/bin/zsh", TERM: "xterm-256color", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "5.2.2", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.58.6", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "3.4.23", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", TERM_SESSION_ID: "w0t0p0:2E0B5736-117B-4988-B3C1-797FF9A069EE", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", PNPM_HOME: "/Users/arlo/Library/pnpm", ZSH: "/Users/arlo/.oh-my-zsh", FNM_COREPACK_ENABLED: "false", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^3.1.0", USER: "arlo", npm_package_license: "MIT", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", COMMAND_MODE: "unix2003", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.iiMoEa4udc/Listeners", npm_package_devDependencies_dayjs: "^1.11.10", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_devDependencies_unplugin_auto_import: "^0.17.5", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", FNM_VERSION_FILE_STRATEGY: "local", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", FNM_ARCH: "arm64", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/pnpm/global/5/.pnpm/pnpm@8.15.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/pnpm:/Users/arlo/Library/Caches/fnm_multishells/80019_1711455399433/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "9CD3969C-9E80-46DA-8F0E-F29DBC07DB6B", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", __CFBundleIdentifier: "com.googlecode.iterm2", npm_command: "run-script", PWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_exports____: "./dist/*", npm_lifecycle_event: "build:lib", npm_package_devDependencies_vue: "^3.4.21", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.11.0", npm_package_devDependencies_sass: "^1.72.0", npm_package_devDependencies__unocss_reset: "^0.58.6", npm_package_scripts_build: "tsx ./scripts/pre-build.ts && (nr build:lib & vite build)", NODE_PATH: "/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.6_@types+node@20.11.30_sass@1.72.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.6_@types+node@20.11.30_sass@1.72.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.6_@types+node@20.11.30_sass@1.72.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.0/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.0/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/pnpm@8.15.5/node_modules/pnpm/bin/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/pnpm@8.15.5/node_modules/pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/pnpm@8.15.5/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", FNM_MULTISHELL_PATH: "/Users/arlo/Library/Caches/fnm_multishells/80019_1711455399433", TURBO_HASH: "41d4800e35dfc663", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.58.6", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/Library/pnpm/global/5/.pnpm/pnpm@8.15.5/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", npm_config_side_effects_cache: "", npm_package_dependencies_colord: "^2.9.3", npm_package_devDependencies__iconify_json: "^2.2.195", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.22", XPC_SERVICE_NAME: "0", npm_package_devDependencies_unocss: "^0.58.6", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", COLORFGBG: "7;0", HOME: "/Users/arlo", SHLVL: "1", npm_package_dependencies_vite_hot_client: "^0.2.3", LC_TERMINAL_VERSION: "3.4.23", FNM_DIR: "/Users/arlo/Library/Application Support/fnm", npm_package_dependencies_vis_network: "^9.1.9", ITERM_SESSION_ID: "w0t0p0:2E0B5736-117B-4988-B3C1-797FF9A069EE", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", LESS: "-R", LOGNAME: "arlo", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.9.0", npm_config_user_agent: "pnpm/8.15.5 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.11.30", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.10.0", npm_package_dependencies_vue_router: "^4.3.0", npm_package_dependencies_shiki: "1.2.0", SECURITYSESSIONID: "186b8", npm_package_dependencies__unocss_preset_icons: "^0.58.6", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1210
1210
|
const vn = Object.freeze(
|
|
1211
1211
|
{
|
|
1212
1212
|
left: 0,
|
|
@@ -1214,13 +1214,13 @@ const vn = Object.freeze(
|
|
|
1214
1214
|
width: 16,
|
|
1215
1215
|
height: 16
|
|
1216
1216
|
}
|
|
1217
|
-
),
|
|
1217
|
+
), J = Object.freeze({
|
|
1218
1218
|
rotate: 0,
|
|
1219
1219
|
vFlip: !1,
|
|
1220
1220
|
hFlip: !1
|
|
1221
1221
|
}), Ue = Object.freeze({
|
|
1222
1222
|
...vn,
|
|
1223
|
-
...
|
|
1223
|
+
...J
|
|
1224
1224
|
}), wn = Object.freeze({
|
|
1225
1225
|
...Ue,
|
|
1226
1226
|
body: "",
|
|
@@ -1232,7 +1232,7 @@ const vn = Object.freeze(
|
|
|
1232
1232
|
// Dimensions
|
|
1233
1233
|
...Sn,
|
|
1234
1234
|
// Transformations
|
|
1235
|
-
...
|
|
1235
|
+
...J
|
|
1236
1236
|
});
|
|
1237
1237
|
function En(e, t) {
|
|
1238
1238
|
const n = {};
|
|
@@ -1243,33 +1243,33 @@ function En(e, t) {
|
|
|
1243
1243
|
function _e(e, t) {
|
|
1244
1244
|
const n = En(e, t);
|
|
1245
1245
|
for (const s in wn)
|
|
1246
|
-
s in
|
|
1246
|
+
s in J ? s in e && !(s in n) && (n[s] = J[s]) : s in t ? n[s] = t[s] : s in e && (n[s] = e[s]);
|
|
1247
1247
|
return n;
|
|
1248
1248
|
}
|
|
1249
1249
|
function xn(e, t) {
|
|
1250
|
-
const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null),
|
|
1251
|
-
function
|
|
1250
|
+
const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
1251
|
+
function o(a) {
|
|
1252
1252
|
if (n[a])
|
|
1253
|
-
return
|
|
1254
|
-
if (!(a in
|
|
1255
|
-
|
|
1256
|
-
const l = s[a] && s[a].parent, c = l &&
|
|
1257
|
-
c && (
|
|
1253
|
+
return r[a] = [];
|
|
1254
|
+
if (!(a in r)) {
|
|
1255
|
+
r[a] = null;
|
|
1256
|
+
const l = s[a] && s[a].parent, c = l && o(l);
|
|
1257
|
+
c && (r[a] = [l].concat(c));
|
|
1258
1258
|
}
|
|
1259
|
-
return
|
|
1259
|
+
return r[a];
|
|
1260
1260
|
}
|
|
1261
|
-
return (t || Object.keys(n).concat(Object.keys(s))).forEach(
|
|
1261
|
+
return (t || Object.keys(n).concat(Object.keys(s))).forEach(o), r;
|
|
1262
1262
|
}
|
|
1263
1263
|
function ge(e, t, n) {
|
|
1264
|
-
const s = e.icons,
|
|
1265
|
-
let
|
|
1264
|
+
const s = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
1265
|
+
let o = {};
|
|
1266
1266
|
function a(l) {
|
|
1267
|
-
|
|
1268
|
-
s[l] ||
|
|
1269
|
-
|
|
1267
|
+
o = _e(
|
|
1268
|
+
s[l] || r[l],
|
|
1269
|
+
o
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
1272
|
-
return a(t), n.forEach(a), _e(e,
|
|
1272
|
+
return a(t), n.forEach(a), _e(e, o);
|
|
1273
1273
|
}
|
|
1274
1274
|
function Cn(e, t) {
|
|
1275
1275
|
if (e.icons[t])
|
|
@@ -1277,7 +1277,7 @@ function Cn(e, t) {
|
|
|
1277
1277
|
const n = xn(e, [t])[t];
|
|
1278
1278
|
return n ? ge(e, t, n) : null;
|
|
1279
1279
|
}
|
|
1280
|
-
const An = /(-?[0-9.]*[0-9]+[0-9.]*)/g,
|
|
1280
|
+
const An = /(-?[0-9.]*[0-9]+[0-9.]*)/g, $n = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
1281
1281
|
function ye(e, t, n) {
|
|
1282
1282
|
if (t === 1)
|
|
1283
1283
|
return e;
|
|
@@ -1288,16 +1288,16 @@ function ye(e, t, n) {
|
|
|
1288
1288
|
const s = e.split(An);
|
|
1289
1289
|
if (s === null || !s.length)
|
|
1290
1290
|
return e;
|
|
1291
|
-
const
|
|
1292
|
-
let
|
|
1291
|
+
const r = [];
|
|
1292
|
+
let o = s.shift(), a = $n.test(o);
|
|
1293
1293
|
for (; ; ) {
|
|
1294
1294
|
if (a) {
|
|
1295
|
-
const l = parseFloat(
|
|
1296
|
-
isNaN(l) ?
|
|
1295
|
+
const l = parseFloat(o);
|
|
1296
|
+
isNaN(l) ? r.push(o) : r.push(Math.ceil(l * t * n) / n);
|
|
1297
1297
|
} else
|
|
1298
|
-
|
|
1299
|
-
if (
|
|
1300
|
-
return
|
|
1298
|
+
r.push(o);
|
|
1299
|
+
if (o = s.shift(), o === void 0)
|
|
1300
|
+
return r.join("");
|
|
1301
1301
|
a = !a;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
@@ -1305,88 +1305,88 @@ function Rn(e, t = "defs") {
|
|
|
1305
1305
|
let n = "";
|
|
1306
1306
|
const s = e.indexOf("<" + t);
|
|
1307
1307
|
for (; s >= 0; ) {
|
|
1308
|
-
const
|
|
1309
|
-
if (
|
|
1308
|
+
const r = e.indexOf(">", s), o = e.indexOf("</" + t);
|
|
1309
|
+
if (r === -1 || o === -1)
|
|
1310
1310
|
break;
|
|
1311
|
-
const a = e.indexOf(">",
|
|
1311
|
+
const a = e.indexOf(">", o);
|
|
1312
1312
|
if (a === -1)
|
|
1313
1313
|
break;
|
|
1314
|
-
n += e.slice(
|
|
1314
|
+
n += e.slice(r + 1, o).trim(), e = e.slice(0, s).trim() + e.slice(a + 1);
|
|
1315
1315
|
}
|
|
1316
1316
|
return {
|
|
1317
1317
|
defs: n,
|
|
1318
1318
|
content: e
|
|
1319
1319
|
};
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function On(e, t) {
|
|
1322
1322
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function kn(e, t, n) {
|
|
1325
1325
|
const s = Rn(e);
|
|
1326
|
-
return
|
|
1326
|
+
return On(s.defs, t + s.content + n);
|
|
1327
1327
|
}
|
|
1328
|
-
const
|
|
1329
|
-
function
|
|
1328
|
+
const oe = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1329
|
+
function Ln(e, t) {
|
|
1330
1330
|
const n = {
|
|
1331
1331
|
...Ue,
|
|
1332
1332
|
...e
|
|
1333
1333
|
}, s = {
|
|
1334
1334
|
...Ne,
|
|
1335
1335
|
...t
|
|
1336
|
-
},
|
|
1336
|
+
}, r = {
|
|
1337
1337
|
left: n.left,
|
|
1338
1338
|
top: n.top,
|
|
1339
1339
|
width: n.width,
|
|
1340
1340
|
height: n.height
|
|
1341
1341
|
};
|
|
1342
|
-
let
|
|
1342
|
+
let o = n.body;
|
|
1343
1343
|
[n, s].forEach((h) => {
|
|
1344
1344
|
const v = [], A = h.hFlip, x = h.vFlip;
|
|
1345
1345
|
let g = h.rotate;
|
|
1346
1346
|
A ? x ? g += 2 : (v.push(
|
|
1347
|
-
"translate(" + (
|
|
1348
|
-
), v.push("scale(-1 1)"),
|
|
1349
|
-
"translate(" + (0 -
|
|
1350
|
-
), v.push("scale(1 -1)"),
|
|
1347
|
+
"translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
|
|
1348
|
+
), v.push("scale(-1 1)"), r.top = r.left = 0) : x && (v.push(
|
|
1349
|
+
"translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
|
|
1350
|
+
), v.push("scale(1 -1)"), r.top = r.left = 0);
|
|
1351
1351
|
let S;
|
|
1352
1352
|
switch (g < 0 && (g -= Math.floor(g / 4) * 4), g = g % 4, g) {
|
|
1353
1353
|
case 1:
|
|
1354
|
-
S =
|
|
1354
|
+
S = r.height / 2 + r.top, v.unshift(
|
|
1355
1355
|
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
1356
1356
|
);
|
|
1357
1357
|
break;
|
|
1358
1358
|
case 2:
|
|
1359
1359
|
v.unshift(
|
|
1360
|
-
"rotate(180 " + (
|
|
1360
|
+
"rotate(180 " + (r.width / 2 + r.left).toString() + " " + (r.height / 2 + r.top).toString() + ")"
|
|
1361
1361
|
);
|
|
1362
1362
|
break;
|
|
1363
1363
|
case 3:
|
|
1364
|
-
S =
|
|
1364
|
+
S = r.width / 2 + r.left, v.unshift(
|
|
1365
1365
|
"rotate(-90 " + S.toString() + " " + S.toString() + ")"
|
|
1366
1366
|
);
|
|
1367
1367
|
break;
|
|
1368
1368
|
}
|
|
1369
|
-
g % 2 === 1 && (
|
|
1370
|
-
|
|
1369
|
+
g % 2 === 1 && (r.left !== r.top && (S = r.left, r.left = r.top, r.top = S), r.width !== r.height && (S = r.width, r.width = r.height, r.height = S)), v.length && (o = kn(
|
|
1370
|
+
o,
|
|
1371
1371
|
'<g transform="' + v.join(" ") + '">',
|
|
1372
1372
|
"</g>"
|
|
1373
1373
|
));
|
|
1374
1374
|
});
|
|
1375
|
-
const a = s.width, l = s.height, c =
|
|
1375
|
+
const a = s.width, l = s.height, c = r.width, f = r.height;
|
|
1376
1376
|
let i, u;
|
|
1377
1377
|
a === null ? (u = l === null ? "1em" : l === "auto" ? f : l, i = ye(u, c / f)) : (i = a === "auto" ? c : a, u = l === null ? ye(i, f / c) : l === "auto" ? f : l);
|
|
1378
1378
|
const d = {}, m = (h, v) => {
|
|
1379
|
-
|
|
1379
|
+
oe(v) || (d[h] = v.toString());
|
|
1380
1380
|
};
|
|
1381
1381
|
m("width", i), m("height", u);
|
|
1382
|
-
const y = [
|
|
1382
|
+
const y = [r.left, r.top, c, f];
|
|
1383
1383
|
return d.viewBox = y.join(" "), {
|
|
1384
1384
|
attributes: d,
|
|
1385
1385
|
viewBox: y,
|
|
1386
|
-
body:
|
|
1386
|
+
body: o
|
|
1387
1387
|
};
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Tn(e) {
|
|
1390
1390
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1391
1391
|
}
|
|
1392
1392
|
function Mn(e) {
|
|
@@ -1397,26 +1397,26 @@ function Mn(e) {
|
|
|
1397
1397
|
)), t.includes(" xmlns=") || (t = t.replace(
|
|
1398
1398
|
"<svg ",
|
|
1399
1399
|
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1400
|
-
)),
|
|
1400
|
+
)), Tn(t);
|
|
1401
1401
|
}
|
|
1402
1402
|
function Un(e) {
|
|
1403
1403
|
return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').replace(/(\s)+\/>/g, "/>").trim();
|
|
1404
1404
|
}
|
|
1405
|
-
const Nn = /\swidth\s*=\s*["']([\w.]+)["']/,
|
|
1406
|
-
function
|
|
1407
|
-
const s = e.slice(0, e.indexOf(">")),
|
|
1408
|
-
const l = a.exec(s), c = l != null, f = t[
|
|
1409
|
-
return !f && !
|
|
1405
|
+
const Nn = /\swidth\s*=\s*["']([\w.]+)["']/, jn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1406
|
+
function In(e, t, n) {
|
|
1407
|
+
const s = e.slice(0, e.indexOf(">")), r = (o, a) => {
|
|
1408
|
+
const l = a.exec(s), c = l != null, f = t[o];
|
|
1409
|
+
return !f && !oe(f) && (typeof n == "number" ? n > 0 && (t[o] = `${n}em`) : l && (t[o] = l[1])), c;
|
|
1410
1410
|
};
|
|
1411
|
-
return [
|
|
1411
|
+
return [r("width", Nn), r("height", jn)];
|
|
1412
1412
|
}
|
|
1413
|
-
async function
|
|
1414
|
-
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (
|
|
1413
|
+
async function je(e, t, n, s, r, o) {
|
|
1414
|
+
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (r == null ? void 0 : r()) ?? {};
|
|
1415
1415
|
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((h) => {
|
|
1416
1416
|
const v = c[h];
|
|
1417
1417
|
v != null && (i[h] = v);
|
|
1418
|
-
}),
|
|
1419
|
-
const [u, d] =
|
|
1418
|
+
}), o == null || o(i);
|
|
1419
|
+
const [u, d] = In(e, i, a);
|
|
1420
1420
|
l && (!e.includes("xmlns=") && !i.xmlns && (i.xmlns = "http://www.w3.org/2000/svg"), !e.includes("xmlns:xlink=") && e.includes("xlink:") && !i["xmlns:xlink"] && (i["xmlns:xlink"] = "http://www.w3.org/1999/xlink"));
|
|
1421
1421
|
const m = Object.keys(i).map(
|
|
1422
1422
|
(h) => h === "width" && u || h === "height" && d ? null : `${h}="${i[h]}"`
|
|
@@ -1432,14 +1432,14 @@ async function Ie(e, t, n, s, o, r) {
|
|
|
1432
1432
|
}), typeof i.width < "u" && i.width !== null && (y.width = i.width), typeof i.height < "u" && i.height !== null && (y.height = i.height)), e;
|
|
1433
1433
|
}
|
|
1434
1434
|
async function be(e, t, n, s) {
|
|
1435
|
-
var
|
|
1436
|
-
let
|
|
1435
|
+
var o;
|
|
1436
|
+
let r;
|
|
1437
1437
|
try {
|
|
1438
1438
|
if (typeof e == "function")
|
|
1439
|
-
|
|
1439
|
+
r = await e(n);
|
|
1440
1440
|
else {
|
|
1441
1441
|
const a = e[n];
|
|
1442
|
-
|
|
1442
|
+
r = typeof a == "function" ? await a() : a;
|
|
1443
1443
|
}
|
|
1444
1444
|
} catch (a) {
|
|
1445
1445
|
console.warn(
|
|
@@ -1448,33 +1448,33 @@ async function be(e, t, n, s) {
|
|
|
1448
1448
|
);
|
|
1449
1449
|
return;
|
|
1450
1450
|
}
|
|
1451
|
-
if (
|
|
1452
|
-
const a =
|
|
1453
|
-
a > 0 && (
|
|
1451
|
+
if (r) {
|
|
1452
|
+
const a = r.indexOf("<svg");
|
|
1453
|
+
a > 0 && (r = r.slice(a));
|
|
1454
1454
|
const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1455
|
-
return
|
|
1456
|
-
((
|
|
1455
|
+
return r = typeof l == "function" ? await l(r, t, n) : r, r.startsWith("<svg") ? await je(
|
|
1456
|
+
((o = s == null ? void 0 : s.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ? Un(r) : r,
|
|
1457
1457
|
t,
|
|
1458
1458
|
n,
|
|
1459
1459
|
s,
|
|
1460
1460
|
void 0
|
|
1461
1461
|
) : (console.warn(
|
|
1462
1462
|
`Custom icon "${n}" in "${t}" is not a valid SVG`
|
|
1463
|
-
),
|
|
1463
|
+
), r);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
async function
|
|
1467
|
-
let
|
|
1468
|
-
const { customize:
|
|
1466
|
+
async function Ie(e, t, n, s) {
|
|
1467
|
+
let r;
|
|
1468
|
+
const { customize: o } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1469
1469
|
for (const a of n)
|
|
1470
|
-
if (
|
|
1470
|
+
if (r = Cn(e, a), r) {
|
|
1471
1471
|
let l = { ...Ne };
|
|
1472
|
-
typeof
|
|
1472
|
+
typeof o == "function" && (l = o(l));
|
|
1473
1473
|
const {
|
|
1474
1474
|
attributes: { width: c, height: f, ...i },
|
|
1475
1475
|
body: u
|
|
1476
|
-
} =
|
|
1477
|
-
return await
|
|
1476
|
+
} = Ln(r, l), d = s == null ? void 0 : s.scale;
|
|
1477
|
+
return await je(
|
|
1478
1478
|
// DON'T remove space on <svg >
|
|
1479
1479
|
`<svg >${u}</svg>`,
|
|
1480
1480
|
t,
|
|
@@ -1485,7 +1485,7 @@ async function je(e, t, n, s) {
|
|
|
1485
1485
|
const y = (h, v) => {
|
|
1486
1486
|
const A = m[h];
|
|
1487
1487
|
let x;
|
|
1488
|
-
if (!
|
|
1488
|
+
if (!oe(A)) {
|
|
1489
1489
|
if (A)
|
|
1490
1490
|
return;
|
|
1491
1491
|
typeof d == "number" ? d && (x = `${d}em`) : x = v;
|
|
@@ -1498,13 +1498,13 @@ async function je(e, t, n, s) {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
const De = async (e, t, n) => {
|
|
1501
|
-
var
|
|
1502
|
-
const s = (
|
|
1501
|
+
var r;
|
|
1502
|
+
const s = (r = n == null ? void 0 : n.customCollections) == null ? void 0 : r[e];
|
|
1503
1503
|
if (s)
|
|
1504
1504
|
if (typeof s == "function") {
|
|
1505
|
-
let
|
|
1505
|
+
let o;
|
|
1506
1506
|
try {
|
|
1507
|
-
|
|
1507
|
+
o = await s(t);
|
|
1508
1508
|
} catch (a) {
|
|
1509
1509
|
console.warn(
|
|
1510
1510
|
`Failed to load custom icon "${t}" in "${e}":`,
|
|
@@ -1512,22 +1512,22 @@ const De = async (e, t, n) => {
|
|
|
1512
1512
|
);
|
|
1513
1513
|
return;
|
|
1514
1514
|
}
|
|
1515
|
-
if (
|
|
1516
|
-
if (typeof
|
|
1515
|
+
if (o) {
|
|
1516
|
+
if (typeof o == "string")
|
|
1517
1517
|
return await be(
|
|
1518
|
-
() =>
|
|
1518
|
+
() => o,
|
|
1519
1519
|
e,
|
|
1520
1520
|
t,
|
|
1521
1521
|
n
|
|
1522
1522
|
);
|
|
1523
|
-
if ("icons" in
|
|
1523
|
+
if ("icons" in o) {
|
|
1524
1524
|
const a = [
|
|
1525
1525
|
t,
|
|
1526
1526
|
t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1527
1527
|
t.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1528
1528
|
];
|
|
1529
|
-
return await
|
|
1530
|
-
|
|
1529
|
+
return await Ie(
|
|
1530
|
+
o,
|
|
1531
1531
|
e,
|
|
1532
1532
|
a,
|
|
1533
1533
|
n
|
|
@@ -1713,14 +1713,14 @@ var Pn = [
|
|
|
1713
1713
|
"zmdi",
|
|
1714
1714
|
"zondicons"
|
|
1715
1715
|
];
|
|
1716
|
-
const Fn = /* @__PURE__ */ Dn(Pn),
|
|
1717
|
-
function
|
|
1716
|
+
const Fn = /* @__PURE__ */ Dn(Pn), Bn = 3;
|
|
1717
|
+
function Vn(e) {
|
|
1718
1718
|
return (t = {}) => {
|
|
1719
1719
|
const {
|
|
1720
1720
|
scale: n = 1,
|
|
1721
1721
|
mode: s = "auto",
|
|
1722
|
-
prefix:
|
|
1723
|
-
warn:
|
|
1722
|
+
prefix: r = "i-",
|
|
1723
|
+
warn: o = !1,
|
|
1724
1724
|
collections: a,
|
|
1725
1725
|
extraProperties: l = {},
|
|
1726
1726
|
customizations: c = {},
|
|
@@ -1762,11 +1762,11 @@ function Gn(e) {
|
|
|
1762
1762
|
[g, S] = A.split(":"), b = await h(g, S, { ...y, usedProps: p });
|
|
1763
1763
|
else {
|
|
1764
1764
|
const R = A.split(/-/g);
|
|
1765
|
-
for (let
|
|
1765
|
+
for (let $ = Bn; $ >= 1 && (g = R.slice(0, $).join("-"), S = R.slice($).join("-"), b = await h(g, S, { ...y, usedProps: p }), !b); $--)
|
|
1766
1766
|
;
|
|
1767
1767
|
}
|
|
1768
1768
|
if (!b) {
|
|
1769
|
-
|
|
1769
|
+
o && !m.isESLint && ke(`failed to load icon "${v}"`);
|
|
1770
1770
|
return;
|
|
1771
1771
|
}
|
|
1772
1772
|
const w = `url("data:image/svg+xml;utf8,${Mn(b)}")`;
|
|
@@ -1787,29 +1787,29 @@ function Gn(e) {
|
|
|
1787
1787
|
...p
|
|
1788
1788
|
};
|
|
1789
1789
|
},
|
|
1790
|
-
{ layer: u, prefix:
|
|
1790
|
+
{ layer: u, prefix: r }
|
|
1791
1791
|
]]
|
|
1792
1792
|
};
|
|
1793
1793
|
};
|
|
1794
1794
|
}
|
|
1795
1795
|
function Pe(e, t) {
|
|
1796
1796
|
const n = /* @__PURE__ */ new Map();
|
|
1797
|
-
function s(
|
|
1798
|
-
if (Fn.includes(
|
|
1799
|
-
return n.has(
|
|
1797
|
+
function s(r) {
|
|
1798
|
+
if (Fn.includes(r))
|
|
1799
|
+
return n.has(r) || n.set(r, e(`${t}@iconify-json/${r}/icons.json`)), n.get(r);
|
|
1800
1800
|
}
|
|
1801
|
-
return async (
|
|
1802
|
-
let l = await De(
|
|
1801
|
+
return async (r, o, a) => {
|
|
1802
|
+
let l = await De(r, o, a);
|
|
1803
1803
|
if (l)
|
|
1804
1804
|
return l;
|
|
1805
|
-
const c = await s(
|
|
1805
|
+
const c = await s(r);
|
|
1806
1806
|
if (c) {
|
|
1807
1807
|
const f = [
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1808
|
+
o,
|
|
1809
|
+
o.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1810
|
+
o.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1811
1811
|
];
|
|
1812
|
-
l = await
|
|
1812
|
+
l = await Ie(c, r, f, a);
|
|
1813
1813
|
}
|
|
1814
1814
|
return l;
|
|
1815
1815
|
};
|
|
@@ -1822,12 +1822,12 @@ function Hn() {
|
|
|
1822
1822
|
isESLint: n
|
|
1823
1823
|
};
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function zn(e) {
|
|
1826
1826
|
return Pe(Mt, e);
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1828
|
+
const Gn = Vn(async (e) => {
|
|
1829
1829
|
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1830
|
-
return t && n ? Pe(t, n) : n ?
|
|
1830
|
+
return t && n ? Pe(t, n) : n ? zn(n) : De;
|
|
1831
1831
|
});
|
|
1832
1832
|
function qn(e) {
|
|
1833
1833
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
@@ -1842,36 +1842,36 @@ var Se = ["Webkit", "Moz", "ms"];
|
|
|
1842
1842
|
function Wn(e) {
|
|
1843
1843
|
const t = {};
|
|
1844
1844
|
function n(s) {
|
|
1845
|
-
const
|
|
1846
|
-
if (
|
|
1847
|
-
return
|
|
1848
|
-
let
|
|
1849
|
-
if (
|
|
1850
|
-
return t[s] = we(
|
|
1851
|
-
|
|
1845
|
+
const r = t[s];
|
|
1846
|
+
if (r)
|
|
1847
|
+
return r;
|
|
1848
|
+
let o = qn(s);
|
|
1849
|
+
if (o !== "filter" && o in e)
|
|
1850
|
+
return t[s] = we(o);
|
|
1851
|
+
o = ve(o);
|
|
1852
1852
|
for (let a = 0; a < Se.length; a++) {
|
|
1853
|
-
const l = `${Se[a]}${
|
|
1853
|
+
const l = `${Se[a]}${o}`;
|
|
1854
1854
|
if (l in e)
|
|
1855
1855
|
return t[s] = we(ve(l));
|
|
1856
1856
|
}
|
|
1857
1857
|
return s;
|
|
1858
1858
|
}
|
|
1859
|
-
return ({ entries: s }) => s.forEach((
|
|
1860
|
-
|
|
1859
|
+
return ({ entries: s }) => s.forEach((r) => {
|
|
1860
|
+
r[0].startsWith("--") || (r[0] = n(r[0]));
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function Jn(e) {
|
|
1864
1864
|
return e.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<");
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1867
|
-
var P, F,
|
|
1866
|
+
function Kn(e = {}) {
|
|
1867
|
+
var P, F, O;
|
|
1868
1868
|
if (typeof window > "u") {
|
|
1869
1869
|
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
1870
1870
|
return;
|
|
1871
1871
|
}
|
|
1872
|
-
const t = window, n = window.document, s = () => n.documentElement,
|
|
1873
|
-
|
|
1874
|
-
const c = hn(
|
|
1872
|
+
const t = window, n = window.document, s = () => n.documentElement, r = t.__unocss || {}, o = Object.assign({}, e, r.runtime), a = o.defaults || {}, l = o.cloakAttribute ?? "un-cloak";
|
|
1873
|
+
o.autoPrefix && (a.postprocess = N(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = o.configResolved) == null || P.call(o, r, a);
|
|
1874
|
+
const c = hn(r, a), f = (_) => o.inject ? o.inject(_) : s().prepend(_), i = () => o.rootElement ? o.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1875
1875
|
let d = !0, m = /* @__PURE__ */ new Set(), y, h, v = [];
|
|
1876
1876
|
const A = () => new Promise((_) => {
|
|
1877
1877
|
v.push(_), h != null && clearTimeout(h), h = setTimeout(() => S().then(() => {
|
|
@@ -1893,8 +1893,8 @@ function Jn(e = {}) {
|
|
|
1893
1893
|
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", _), u.set(_, C), E == null)
|
|
1894
1894
|
f(C);
|
|
1895
1895
|
else {
|
|
1896
|
-
const M = g(E),
|
|
1897
|
-
|
|
1896
|
+
const M = g(E), k = M.parentNode;
|
|
1897
|
+
k ? k.insertBefore(C, M.nextSibling) : f(C);
|
|
1898
1898
|
}
|
|
1899
1899
|
return C;
|
|
1900
1900
|
}
|
|
@@ -1912,7 +1912,7 @@ function Jn(e = {}) {
|
|
|
1912
1912
|
}
|
|
1913
1913
|
async function p(_ = i()) {
|
|
1914
1914
|
const E = _ && _.outerHTML;
|
|
1915
|
-
E && (await b(`${E} ${
|
|
1915
|
+
E && (await b(`${E} ${Jn(E)}`), x(s()), x(_));
|
|
1916
1916
|
}
|
|
1917
1917
|
const w = new MutationObserver((_) => {
|
|
1918
1918
|
d || _.forEach(async (E) => {
|
|
@@ -1926,38 +1926,38 @@ function Jn(e = {}) {
|
|
|
1926
1926
|
E.addedNodes.forEach(async (M) => {
|
|
1927
1927
|
if (M.nodeType !== 1)
|
|
1928
1928
|
return;
|
|
1929
|
-
const
|
|
1930
|
-
y && !y(
|
|
1929
|
+
const k = M;
|
|
1930
|
+
y && !y(k) || (await b(k.outerHTML), x(k));
|
|
1931
1931
|
});
|
|
1932
1932
|
else {
|
|
1933
1933
|
if (y && !y(C))
|
|
1934
1934
|
return;
|
|
1935
1935
|
if (E.attributeName !== l) {
|
|
1936
|
-
const M = Array.from(C.attributes).map((
|
|
1937
|
-
await b(
|
|
1936
|
+
const M = Array.from(C.attributes).map((L) => L.value ? `${L.name}="${L.value}"` : L.name).join(" "), k = `<${C.tagName.toLowerCase()} ${M}>`;
|
|
1937
|
+
await b(k);
|
|
1938
1938
|
}
|
|
1939
1939
|
C.hasAttribute(l) && C.removeAttribute(l);
|
|
1940
1940
|
}
|
|
1941
1941
|
});
|
|
1942
1942
|
});
|
|
1943
1943
|
let R = !1;
|
|
1944
|
-
function
|
|
1944
|
+
function $() {
|
|
1945
1945
|
var E, C;
|
|
1946
1946
|
if (R)
|
|
1947
1947
|
return;
|
|
1948
|
-
const _ = (E =
|
|
1948
|
+
const _ = (E = o.observer) != null && E.target ? o.observer.target() : i();
|
|
1949
1949
|
_ && (w.observe(_, {
|
|
1950
1950
|
childList: !0,
|
|
1951
1951
|
subtree: !0,
|
|
1952
1952
|
attributes: !0,
|
|
1953
|
-
attributeFilter: (C =
|
|
1953
|
+
attributeFilter: (C = o.observer) == null ? void 0 : C.attributeFilter
|
|
1954
1954
|
}), R = !0);
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1957
|
-
|
|
1956
|
+
function T() {
|
|
1957
|
+
o.bypassDefined && Qn(c.blocked), p(), $();
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1960
|
-
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded",
|
|
1959
|
+
function j() {
|
|
1960
|
+
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", T) : T();
|
|
1961
1961
|
}
|
|
1962
1962
|
const D = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1963
1963
|
version: c.version,
|
|
@@ -1970,25 +1970,25 @@ function Jn(e = {}) {
|
|
|
1970
1970
|
y = _;
|
|
1971
1971
|
},
|
|
1972
1972
|
toggleObserver(_) {
|
|
1973
|
-
_ === void 0 ? d = !d : d = !!_, !R && !d &&
|
|
1973
|
+
_ === void 0 ? d = !d : d = !!_, !R && !d && j();
|
|
1974
1974
|
},
|
|
1975
1975
|
update: S,
|
|
1976
1976
|
presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
|
|
1977
1977
|
};
|
|
1978
|
-
((
|
|
1978
|
+
((O = o.ready) == null ? void 0 : O.call(o, D)) !== !1 && (d = !1, j());
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function Qn(e = /* @__PURE__ */ new Set()) {
|
|
1981
1981
|
for (let t = 0; t < document.styleSheets.length; t++) {
|
|
1982
1982
|
const n = document.styleSheets[t];
|
|
1983
1983
|
let s;
|
|
1984
1984
|
try {
|
|
1985
1985
|
if (s = n.cssRules || n.rules, !s)
|
|
1986
1986
|
continue;
|
|
1987
|
-
Array.from(s).flatMap((
|
|
1988
|
-
var
|
|
1989
|
-
return ((
|
|
1990
|
-
}).forEach((
|
|
1991
|
-
|
|
1987
|
+
Array.from(s).flatMap((r) => {
|
|
1988
|
+
var o;
|
|
1989
|
+
return ((o = r.selectorText) == null ? void 0 : o.split(/,/g)) || [];
|
|
1990
|
+
}).forEach((r) => {
|
|
1991
|
+
r && (r = r.trim(), r.startsWith(".") && (r = r.slice(1)), e.add(r));
|
|
1992
1992
|
});
|
|
1993
1993
|
} catch {
|
|
1994
1994
|
continue;
|
|
@@ -1996,10 +1996,10 @@ function Xn(e = /* @__PURE__ */ new Set()) {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
return e;
|
|
1998
1998
|
}
|
|
1999
|
-
|
|
1999
|
+
Kn({
|
|
2000
2000
|
defaults: {
|
|
2001
2001
|
presets: [
|
|
2002
|
-
|
|
2002
|
+
Gn({
|
|
2003
2003
|
prefix: ["i-", ""],
|
|
2004
2004
|
collections: {},
|
|
2005
2005
|
cdn: "https://esm.sh/",
|