@vue/devtools-electron 7.0.14 → 7.0.16
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-NT1OIsSF.js → html-KTYx-Ibi.js} +1 -1
- package/client/assets/index-I_7g5ZQb.css +1 -0
- package/client/assets/index-i1LJCmJt.js +1096 -0
- package/client/assets/{javascript-4rbEI_qn.js → javascript-JMZ6uy5M.js} +1 -1
- package/client/assets/{typescript-IWNmnGsa.js → typescript-HpdcmTOD.js} +1 -1
- package/client/assets/unocss-runtime-hgvl0qIb.js +2 -0
- package/client/assets/{vue-YzhXM3IG.js → vue-Wn5yI_YW.js} +8 -8
- package/client/assets/{vue-html-K7eG1nl_.js → vue-html-eZW7UT2w.js} +1 -1
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +18065 -19638
- package/client/{html-WFjUqgJ3.js → html-5TX0KzMQ.js} +1 -1
- package/client/index.html +2 -2
- package/client/{javascript-_oSuCsY2.js → javascript-ewd2r-0o.js} +1 -1
- package/client/{typescript-Pt1W475c.js → typescript-Uom77LgO.js} +1 -1
- package/client/{unocss-runtime-Pdo20xvb.js → unocss-runtime-LDZHG8oo.js} +415 -413
- package/client/{vue-CJRD3BeY.js → vue--7M_SvxI.js} +30 -24
- package/client/{vue-html-9E-FEOoO.js → vue-html-GGnAavHU.js} +4 -9
- package/dist/devtools.js +167 -165
- package/dist/index.cjs +70 -68
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +69 -67
- package/dist/user-app.cjs +69 -67
- package/dist/user-app.iife.js +76 -74
- package/dist/user-app.js +69 -67
- package/package.json +9 -9
- package/client/assets/index-KXVUFBYX.js +0 -1096
- package/client/assets/index-fx3Lb9Fg.css +0 -1
- package/client/assets/unocss-runtime-TAqnQCrJ.js +0 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
1
|
+
const De = /"(?:_|\\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*:/, Pe = /"(?: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*:/, Fe = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
2
|
+
function Ve(e, t) {
|
|
3
3
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
4
|
-
|
|
4
|
+
Ge(e);
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Ge(e) {
|
|
10
10
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function He(e, t = {}) {
|
|
13
13
|
if (typeof e != "string")
|
|
14
14
|
return e;
|
|
15
15
|
const n = e.trim();
|
|
16
16
|
if (
|
|
17
17
|
// eslint-disable-next-line unicorn/prefer-at
|
|
18
|
-
e[0] === '"' && e.
|
|
18
|
+
e[0] === '"' && e.endsWith('"') && !e.includes("\\")
|
|
19
19
|
)
|
|
20
20
|
return n.slice(1, -1);
|
|
21
21
|
if (n.length <= 9) {
|
|
@@ -35,16 +35,16 @@ function Ve(e, t = {}) {
|
|
|
35
35
|
if (s === "-infinity")
|
|
36
36
|
return Number.NEGATIVE_INFINITY;
|
|
37
37
|
}
|
|
38
|
-
if (!
|
|
38
|
+
if (!Fe.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 (
|
|
44
|
+
if (De.test(e) || Pe.test(e)) {
|
|
45
45
|
if (t.strict)
|
|
46
46
|
throw new Error("[destr] Possible prototype pollution");
|
|
47
|
-
return JSON.parse(e,
|
|
47
|
+
return JSON.parse(e, Ve);
|
|
48
48
|
}
|
|
49
49
|
return JSON.parse(e);
|
|
50
50
|
} catch (s) {
|
|
@@ -53,15 +53,15 @@ function Ve(e, t = {}) {
|
|
|
53
53
|
return e;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
function
|
|
58
|
-
return encodeURI("" + e).replace(
|
|
56
|
+
const Be = /#/g, ze = /&/g, qe = /\//g, We = /=/g, ne = /\+/g, Ke = /%5e/gi, Je = /%60/gi, Xe = /%7c/gi, Ye = /%20/gi;
|
|
57
|
+
function Qe(e) {
|
|
58
|
+
return encodeURI("" + e).replace(Xe, "|");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
60
|
+
function Z(e) {
|
|
61
|
+
return Qe(typeof e == "string" ? e : JSON.stringify(e)).replace(ne, "%2B").replace(Ye, "+").replace(Be, "%23").replace(ze, "%26").replace(Je, "`").replace(Ke, "^").replace(qe, "%2F");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
63
|
+
function K(e) {
|
|
64
|
+
return Z(e).replace(We, "%3D");
|
|
65
65
|
}
|
|
66
66
|
function we(e = "") {
|
|
67
67
|
try {
|
|
@@ -70,45 +70,44 @@ function we(e = "") {
|
|
|
70
70
|
return "" + e;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ze(e) {
|
|
74
74
|
return we(e.replace(ne, " "));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function et(e) {
|
|
77
77
|
return we(e.replace(ne, " "));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function tt(e = "") {
|
|
80
80
|
const t = {};
|
|
81
81
|
e[0] === "?" && (e = e.slice(1));
|
|
82
82
|
for (const n of e.split("&")) {
|
|
83
83
|
const s = n.match(/([^=]+)=?(.*)/) || [];
|
|
84
84
|
if (s.length < 2)
|
|
85
85
|
continue;
|
|
86
|
-
const o =
|
|
86
|
+
const o = Ze(s[1]);
|
|
87
87
|
if (o === "__proto__" || o === "constructor")
|
|
88
88
|
continue;
|
|
89
|
-
const r =
|
|
89
|
+
const r = et(s[2] || "");
|
|
90
90
|
t[o] === void 0 ? t[o] = r : Array.isArray(t[o]) ? t[o].push(r) : t[o] = [t[o], r];
|
|
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 nt(e, t) {
|
|
95
|
+
return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${K(e)}=${Z(n)}`).join("&") : `${K(e)}=${Z(t)}` : K(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) =>
|
|
97
|
+
function st(e) {
|
|
98
|
+
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => nt(t, e[t])).filter(Boolean).join("&");
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const ot = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, rt = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, it = /^([/\\]\s*){2,}[^/\\]/, at = /\/$|\/\?|\/#/, ct = /^\.?\//;
|
|
101
101
|
function Se(e, t = {}) {
|
|
102
|
-
return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ?
|
|
102
|
+
return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ? ot.test(e) : rt.test(e) || (t.acceptRelative ? it.test(e) : !1);
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return t ? rt.test(e) : e.endsWith("/");
|
|
104
|
+
function ee(e = "", t) {
|
|
105
|
+
return t ? at.test(e) : e.endsWith("/");
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function lt(e = "", t) {
|
|
109
108
|
if (!t)
|
|
110
|
-
return (
|
|
111
|
-
if (!
|
|
109
|
+
return (ee(e) ? e.slice(0, -1) : e) || "/";
|
|
110
|
+
if (!ee(e, !0))
|
|
112
111
|
return e || "/";
|
|
113
112
|
let n = e, s = "";
|
|
114
113
|
const o = e.indexOf("#");
|
|
@@ -116,10 +115,10 @@ function it(e = "", t) {
|
|
|
116
115
|
const [r, ...a] = n.split("?");
|
|
117
116
|
return (r.slice(0, -1) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
118
117
|
}
|
|
119
|
-
function
|
|
118
|
+
function ut(e = "", t) {
|
|
120
119
|
if (!t)
|
|
121
120
|
return e.endsWith("/") ? e : e + "/";
|
|
122
|
-
if (
|
|
121
|
+
if (ee(e, !0))
|
|
123
122
|
return e || "/";
|
|
124
123
|
let n = e, s = "";
|
|
125
124
|
const o = e.indexOf("#");
|
|
@@ -128,33 +127,33 @@ function at(e = "", t) {
|
|
|
128
127
|
const [r, ...a] = n.split("?");
|
|
129
128
|
return r + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
130
129
|
}
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
130
|
+
function ft(e, t) {
|
|
131
|
+
if (pt(t) || Se(e))
|
|
133
132
|
return e;
|
|
134
|
-
const n =
|
|
135
|
-
return e.startsWith(n) ? e :
|
|
133
|
+
const n = lt(t);
|
|
134
|
+
return e.startsWith(n) ? e : ht(n, e);
|
|
136
135
|
}
|
|
137
|
-
function
|
|
138
|
-
const n = xe(e), s = { ...
|
|
139
|
-
return n.search =
|
|
136
|
+
function dt(e, t) {
|
|
137
|
+
const n = xe(e), s = { ...tt(n.search), ...t };
|
|
138
|
+
return n.search = st(s), _t(n);
|
|
140
139
|
}
|
|
141
|
-
function
|
|
140
|
+
function pt(e) {
|
|
142
141
|
return !e || e === "/";
|
|
143
142
|
}
|
|
144
|
-
function
|
|
143
|
+
function mt(e) {
|
|
145
144
|
return e && e !== "/";
|
|
146
145
|
}
|
|
147
|
-
|
|
148
|
-
function pt(e, ...t) {
|
|
146
|
+
function ht(e, ...t) {
|
|
149
147
|
let n = e || "";
|
|
150
|
-
for (const s of t.filter((o) =>
|
|
148
|
+
for (const s of t.filter((o) => mt(o)))
|
|
151
149
|
if (n) {
|
|
152
|
-
const o = s.replace(
|
|
153
|
-
n =
|
|
150
|
+
const o = s.replace(ct, "");
|
|
151
|
+
n = ut(n) + o;
|
|
154
152
|
} else
|
|
155
153
|
n = s;
|
|
156
154
|
return n;
|
|
157
155
|
}
|
|
156
|
+
const Ee = Symbol.for("ufo:protocolRelative");
|
|
158
157
|
function xe(e = "", t) {
|
|
159
158
|
const n = e.match(
|
|
160
159
|
/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
|
|
@@ -182,7 +181,8 @@ function xe(e = "", t) {
|
|
|
182
181
|
host: a,
|
|
183
182
|
pathname: c,
|
|
184
183
|
search: u,
|
|
185
|
-
hash: i
|
|
184
|
+
hash: i,
|
|
185
|
+
[Ee]: !s
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
function re(e = "") {
|
|
@@ -193,18 +193,18 @@ function re(e = "") {
|
|
|
193
193
|
hash: s
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function _t(e) {
|
|
197
197
|
const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "", o = e.auth ? e.auth + "@" : "", r = e.host || "";
|
|
198
|
-
return (e.protocol ? e.protocol + "//" : "") + o + r + t + n + s;
|
|
198
|
+
return (e.protocol || e[Ee] ? (e.protocol || "") + "//" : "") + o + r + t + n + s;
|
|
199
199
|
}
|
|
200
|
-
class
|
|
200
|
+
class gt extends Error {
|
|
201
201
|
constructor(t, n) {
|
|
202
202
|
super(t, n), this.name = "FetchError", n != null && n.cause && !this.cause && (this.cause = n.cause);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function yt(e) {
|
|
206
206
|
var c, u, i, f, p;
|
|
207
|
-
const t = ((c = e.error) == null ? void 0 : c.message) || ((u = e.error) == null ? void 0 : u.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((f = e.options) == null ? void 0 : f.method) || "GET", s = ((p = e.request) == null ? void 0 : p.url) || String(e.request) || "/", o = `[${n}] ${JSON.stringify(s)}`, r = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${o}: ${r}${t ? ` ${t}` : ""}`, l = new
|
|
207
|
+
const t = ((c = e.error) == null ? void 0 : c.message) || ((u = e.error) == null ? void 0 : u.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((f = e.options) == null ? void 0 : f.method) || "GET", s = ((p = e.request) == null ? void 0 : p.url) || String(e.request) || "/", o = `[${n}] ${JSON.stringify(s)}`, r = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${o}: ${r}${t ? ` ${t}` : ""}`, l = new gt(
|
|
208
208
|
a,
|
|
209
209
|
e.error ? { cause: e.error } : void 0
|
|
210
210
|
);
|
|
@@ -228,31 +228,31 @@ function _t(e) {
|
|
|
228
228
|
});
|
|
229
229
|
return l;
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const bt = new Set(
|
|
232
232
|
Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
|
|
233
233
|
);
|
|
234
234
|
function ie(e = "GET") {
|
|
235
|
-
return
|
|
235
|
+
return bt.has(e.toUpperCase());
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function vt(e) {
|
|
238
238
|
if (e === void 0)
|
|
239
239
|
return !1;
|
|
240
240
|
const t = typeof e;
|
|
241
241
|
return t === "string" || t === "number" || t === "boolean" || t === null ? !0 : t !== "object" ? !1 : Array.isArray(e) ? !0 : e.buffer ? !1 : e.constructor && e.constructor.name === "Object" || typeof e.toJSON == "function";
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const wt = /* @__PURE__ */ new Set([
|
|
244
244
|
"image/svg",
|
|
245
245
|
"application/xml",
|
|
246
246
|
"application/xhtml",
|
|
247
247
|
"application/html"
|
|
248
|
-
]),
|
|
249
|
-
function
|
|
248
|
+
]), St = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
|
|
249
|
+
function Et(e = "") {
|
|
250
250
|
if (!e)
|
|
251
251
|
return "json";
|
|
252
252
|
const t = e.split(";").shift() || "";
|
|
253
|
-
return
|
|
253
|
+
return St.test(t) ? "json" : wt.has(t) || t.startsWith("text/") ? "text" : "blob";
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function xt(e, t, n = globalThis.Headers) {
|
|
256
256
|
const s = {
|
|
257
257
|
...t,
|
|
258
258
|
...e
|
|
@@ -270,7 +270,7 @@ function St(e, t, n = globalThis.Headers) {
|
|
|
270
270
|
}
|
|
271
271
|
return s;
|
|
272
272
|
}
|
|
273
|
-
const
|
|
273
|
+
const Ct = /* @__PURE__ */ new Set([
|
|
274
274
|
408,
|
|
275
275
|
// Request Timeout
|
|
276
276
|
409,
|
|
@@ -287,8 +287,8 @@ const xt = /* @__PURE__ */ new Set([
|
|
|
287
287
|
// Service Unavailable
|
|
288
288
|
504
|
|
289
289
|
// Gateway Timeout
|
|
290
|
-
]),
|
|
291
|
-
function
|
|
290
|
+
]), At = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
291
|
+
function Ce(e = {}) {
|
|
292
292
|
const {
|
|
293
293
|
fetch: t = globalThis.fetch,
|
|
294
294
|
Headers: n = globalThis.Headers,
|
|
@@ -300,7 +300,7 @@ function Ee(e = {}) {
|
|
|
300
300
|
let i;
|
|
301
301
|
typeof l.options.retry == "number" ? i = l.options.retry : i = ie(l.options.method) ? 0 : 1;
|
|
302
302
|
const f = l.response && l.response.status || 500;
|
|
303
|
-
if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(f) :
|
|
303
|
+
if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(f) : Ct.has(f))) {
|
|
304
304
|
const p = l.options.retryDelay || 0;
|
|
305
305
|
return p > 0 && await new Promise((h) => setTimeout(h, p)), r(l.request, {
|
|
306
306
|
...l.options,
|
|
@@ -309,21 +309,21 @@ function Ee(e = {}) {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
const u =
|
|
312
|
+
const u = yt(l);
|
|
313
313
|
throw Error.captureStackTrace && Error.captureStackTrace(u, r), u;
|
|
314
314
|
}
|
|
315
315
|
const r = async function(c, u = {}) {
|
|
316
316
|
var p;
|
|
317
317
|
const i = {
|
|
318
318
|
request: c,
|
|
319
|
-
options:
|
|
319
|
+
options: xt(u, e.defaults, n),
|
|
320
320
|
response: void 0,
|
|
321
321
|
error: void 0
|
|
322
322
|
};
|
|
323
|
-
if (i.options.method = (p = i.options.method) == null ? void 0 : p.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request =
|
|
323
|
+
if (i.options.method = (p = i.options.method) == null ? void 0 : p.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = ft(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = dt(i.request, {
|
|
324
324
|
...i.options.params,
|
|
325
325
|
...i.options.query
|
|
326
|
-
}))), i.options.body && ie(i.options.method) && (
|
|
326
|
+
}))), i.options.body && ie(i.options.method) && (vt(i.options.body) ? (i.options.body = typeof i.options.body == "string" ? i.options.body : JSON.stringify(i.options.body), i.options.headers = new n(i.options.headers || {}), i.options.headers.has("content-type") || i.options.headers.set("content-type", "application/json"), i.options.headers.has("accept") || i.options.headers.set("accept", "application/json")) : (
|
|
327
327
|
// ReadableStream Body
|
|
328
328
|
("pipeTo" in i.options.body && typeof i.options.body.pipeTo == "function" || // Node.js Stream Body
|
|
329
329
|
typeof i.options.body.pipe == "function") && ("duplex" in i.options || (i.options.duplex = "half"))
|
|
@@ -339,11 +339,11 @@ function Ee(e = {}) {
|
|
|
339
339
|
} catch (h) {
|
|
340
340
|
return i.error = h, i.options.onRequestError && await i.options.onRequestError(i), await o(i);
|
|
341
341
|
}
|
|
342
|
-
if (i.response.body && !
|
|
343
|
-
const h = (i.options.parseResponse ? "json" : i.options.responseType) ||
|
|
342
|
+
if (i.response.body && !At.has(i.response.status) && i.options.method !== "HEAD") {
|
|
343
|
+
const h = (i.options.parseResponse ? "json" : i.options.responseType) || Et(i.response.headers.get("content-type") || "");
|
|
344
344
|
switch (h) {
|
|
345
345
|
case "json": {
|
|
346
|
-
const g = await i.response.text(), _ = i.options.parseResponse ||
|
|
346
|
+
const g = await i.response.text(), _ = i.options.parseResponse || He;
|
|
347
347
|
i.response._data = _(g);
|
|
348
348
|
break;
|
|
349
349
|
}
|
|
@@ -359,7 +359,7 @@ function Ee(e = {}) {
|
|
|
359
359
|
}, a = async function(c, u) {
|
|
360
360
|
return (await r(c, u))._data;
|
|
361
361
|
};
|
|
362
|
-
return a.raw = r, a.native = (...l) => t(...l), a.create = (l = {}) =>
|
|
362
|
+
return a.raw = r, a.native = (...l) => t(...l), a.create = (l = {}) => Ce({
|
|
363
363
|
...e,
|
|
364
364
|
defaults: {
|
|
365
365
|
...e.defaults,
|
|
@@ -377,8 +377,8 @@ const se = function() {
|
|
|
377
377
|
if (typeof global < "u")
|
|
378
378
|
return global;
|
|
379
379
|
throw new Error("unable to locate global object");
|
|
380
|
-
}(),
|
|
381
|
-
function
|
|
380
|
+
}(), Ot = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), Rt = se.Headers, kt = se.AbortController, $t = Ce({ fetch: Ot, Headers: Rt, AbortController: kt }), Tt = $t;
|
|
381
|
+
function Ut(e) {
|
|
382
382
|
const t = e.length;
|
|
383
383
|
let n = -1, s, o = "";
|
|
384
384
|
const r = e.charCodeAt(0);
|
|
@@ -419,26 +419,26 @@ function Rt(e) {
|
|
|
419
419
|
}
|
|
420
420
|
return o;
|
|
421
421
|
}
|
|
422
|
-
const J =
|
|
423
|
-
function
|
|
422
|
+
const J = Ut;
|
|
423
|
+
function I(e = []) {
|
|
424
424
|
return Array.isArray(e) ? e : [e];
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function q(e) {
|
|
427
427
|
return Array.from(new Set(e));
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Lt(e, t) {
|
|
430
430
|
return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function U(e) {
|
|
433
433
|
return typeof e == "string";
|
|
434
434
|
}
|
|
435
435
|
function F(e) {
|
|
436
|
-
return
|
|
436
|
+
return U(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Mt(e) {
|
|
439
439
|
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => F(t)) : [e] : [F(e)];
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function It(e) {
|
|
442
442
|
return e.filter(([t, n], s) => {
|
|
443
443
|
if (t.startsWith("$$"))
|
|
444
444
|
return !1;
|
|
@@ -448,63 +448,63 @@ function Lt(e) {
|
|
|
448
448
|
return !0;
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return e == null ? "" :
|
|
451
|
+
function X(e) {
|
|
452
|
+
return e == null ? "" : It(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function G(e) {
|
|
455
455
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Ae(e, t, n = !1) {
|
|
458
458
|
const s = e, o = t;
|
|
459
459
|
if (Array.isArray(o))
|
|
460
460
|
return n && Array.isArray(o) ? [...s, ...o] : [...o];
|
|
461
461
|
const r = { ...s };
|
|
462
|
-
return
|
|
463
|
-
|
|
462
|
+
return G(s) && G(o) && Object.keys(o).forEach((a) => {
|
|
463
|
+
G(s[a]) && G(o[a]) || Array.isArray(s[a]) && Array.isArray(o[a]) ? r[a] = Ae(s[a], o[a], n) : Object.assign(r, { [a]: o[a] });
|
|
464
464
|
}), r;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function B(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" ? B(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: B(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" ? B(s) : s;
|
|
482
482
|
return n;
|
|
483
483
|
}
|
|
484
484
|
return e;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
return
|
|
486
|
+
function Nt(e) {
|
|
487
|
+
return U(e[0]);
|
|
488
488
|
}
|
|
489
489
|
function jt(e) {
|
|
490
|
-
return
|
|
490
|
+
return U(e[0]);
|
|
491
491
|
}
|
|
492
492
|
const ae = "$$shortcut-no-merge";
|
|
493
|
-
function
|
|
493
|
+
function Dt(e) {
|
|
494
494
|
return typeof e == "function" ? { match: e } : e;
|
|
495
495
|
}
|
|
496
496
|
function ce(e) {
|
|
497
497
|
return e.length === 3;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Pt(e) {
|
|
500
500
|
return e != null;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Ft() {
|
|
503
503
|
}
|
|
504
|
-
var
|
|
505
|
-
class
|
|
504
|
+
var Vt = Object.defineProperty, Gt = (e, t, n) => t in e ? Vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ht = (e, t, n) => (Gt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
505
|
+
class Bt {
|
|
506
506
|
constructor() {
|
|
507
|
-
|
|
507
|
+
Ht(this, "_map", /* @__PURE__ */ new Map());
|
|
508
508
|
}
|
|
509
509
|
get(t, n) {
|
|
510
510
|
const s = this._map.get(t);
|
|
@@ -534,10 +534,10 @@ class Vt {
|
|
|
534
534
|
return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([o, r]) => t(r, n, o)));
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
class
|
|
537
|
+
var zt = Object.defineProperty, qt = (e, t, n) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wt = (e, t, n) => (qt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
538
|
+
class Oe extends Set {
|
|
539
539
|
constructor(t) {
|
|
540
|
-
super(t),
|
|
540
|
+
super(t), Wt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
|
|
541
541
|
}
|
|
542
542
|
add(t) {
|
|
543
543
|
return this._map ?? (this._map = /* @__PURE__ */ new Map()), this._map.set(t, (this._map.get(t) ?? 0) + 1), super.add(t);
|
|
@@ -556,15 +556,15 @@ class Ae extends Set {
|
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
function Y(e) {
|
|
559
|
-
return e instanceof
|
|
559
|
+
return e instanceof Oe;
|
|
560
560
|
}
|
|
561
561
|
const H = {};
|
|
562
|
-
function
|
|
562
|
+
function Kt(e = ["-", ":"]) {
|
|
563
563
|
const t = e.join("|");
|
|
564
564
|
return H[t] || (H[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), H[t].lastIndex = 0, H[t];
|
|
565
565
|
}
|
|
566
|
-
function
|
|
567
|
-
const s =
|
|
566
|
+
function Jt(e, t = ["-", ":"], n = 5) {
|
|
567
|
+
const s = Kt(t);
|
|
568
568
|
let o, r = e.toString();
|
|
569
569
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
570
570
|
do
|
|
@@ -577,15 +577,15 @@ function Wt(e, t = ["-", ":"], n = 5) {
|
|
|
577
577
|
o = !0, a.add(i + f);
|
|
578
578
|
const g = h + i.length + f.length + 1, _ = { length: u.length, items: [] };
|
|
579
579
|
l.set(h, _);
|
|
580
|
-
for (const
|
|
581
|
-
const w = g +
|
|
582
|
-
let
|
|
583
|
-
|
|
580
|
+
for (const x of [...p.matchAll(/\S+/g)]) {
|
|
581
|
+
const w = g + x.index;
|
|
582
|
+
let b = (y = l.get(w)) == null ? void 0 : y.items;
|
|
583
|
+
b ? l.delete(w) : b = [{
|
|
584
584
|
offset: w,
|
|
585
|
-
length:
|
|
586
|
-
className:
|
|
585
|
+
length: x[0].length,
|
|
586
|
+
className: x[0]
|
|
587
587
|
}];
|
|
588
|
-
for (const m of
|
|
588
|
+
for (const m of b)
|
|
589
589
|
m.className = m.className === "~" ? i : m.className.replace(/^(!?)(.*)/, `$1${i}${f}$2`), _.items.push(m);
|
|
590
590
|
}
|
|
591
591
|
return "$".repeat(u.length);
|
|
@@ -618,26 +618,26 @@ function Wt(e, t = ["-", ":"], n = 5) {
|
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
const s =
|
|
621
|
+
function Xt(e, t = ["-", ":"], n = 5) {
|
|
622
|
+
const s = Jt(e, t, n);
|
|
623
623
|
return typeof e == "string" ? s.expanded : e;
|
|
624
624
|
}
|
|
625
625
|
const le = /* @__PURE__ */ new Set();
|
|
626
|
-
function
|
|
626
|
+
function Re(e) {
|
|
627
627
|
le.has(e) || (console.warn("[unocss]", e), le.add(e));
|
|
628
628
|
}
|
|
629
|
-
const
|
|
630
|
-
function
|
|
631
|
-
return e.split(
|
|
629
|
+
const Yt = /[\\:]?[\s'"`;{}]+/g;
|
|
630
|
+
function Qt(e) {
|
|
631
|
+
return e.split(Yt);
|
|
632
632
|
}
|
|
633
|
-
const
|
|
633
|
+
const Zt = {
|
|
634
634
|
name: "@unocss/core/extractor-split",
|
|
635
635
|
order: 0,
|
|
636
636
|
extract({ code: e }) {
|
|
637
|
-
return
|
|
637
|
+
return Qt(e);
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
|
-
function
|
|
640
|
+
function en() {
|
|
641
641
|
return {
|
|
642
642
|
events: {},
|
|
643
643
|
emit(e, ...t) {
|
|
@@ -648,17 +648,17 @@ function Xt() {
|
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
[
|
|
651
|
+
const z = "default", te = "preflights", tn = "shortcuts", nn = "imports", sn = {
|
|
652
|
+
[nn]: -200,
|
|
653
653
|
[te]: -100,
|
|
654
|
-
[
|
|
655
|
-
[
|
|
654
|
+
[tn]: -10,
|
|
655
|
+
[z]: 0
|
|
656
656
|
};
|
|
657
|
-
function
|
|
658
|
-
return
|
|
657
|
+
function ke(e) {
|
|
658
|
+
return I(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
659
659
|
}
|
|
660
660
|
const ue = "_uno_resolved";
|
|
661
|
-
function
|
|
661
|
+
function on(e) {
|
|
662
662
|
var s;
|
|
663
663
|
let t = typeof e == "function" ? e() : e;
|
|
664
664
|
if (ue in t)
|
|
@@ -667,71 +667,71 @@ function nn(e) {
|
|
|
667
667
|
value: !0,
|
|
668
668
|
enumerable: !1
|
|
669
669
|
});
|
|
670
|
-
const n = t.shortcuts ?
|
|
670
|
+
const n = t.shortcuts ? ke(t.shortcuts) : void 0;
|
|
671
671
|
if (t.shortcuts = n, t.prefix || t.layer) {
|
|
672
672
|
const o = (r) => {
|
|
673
673
|
r[2] || (r[2] = {});
|
|
674
674
|
const a = r[2];
|
|
675
|
-
a.prefix == null && t.prefix && (a.prefix =
|
|
675
|
+
a.prefix == null && t.prefix && (a.prefix = I(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
676
676
|
};
|
|
677
677
|
n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
|
|
678
678
|
}
|
|
679
679
|
return t;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
682
|
-
const t =
|
|
681
|
+
function $e(e) {
|
|
682
|
+
const t = on(e);
|
|
683
683
|
if (!t.presets)
|
|
684
684
|
return [t];
|
|
685
|
-
const n = (t.presets || []).flatMap(
|
|
685
|
+
const n = (t.presets || []).flatMap(I).flatMap($e);
|
|
686
686
|
return [t, ...n];
|
|
687
687
|
}
|
|
688
688
|
function fe(e = {}, t = {}) {
|
|
689
|
-
var m,
|
|
690
|
-
const n = Object.assign({}, t, e), s =
|
|
689
|
+
var m, S;
|
|
690
|
+
const n = Object.assign({}, t, e), s = Lt((n.presets || []).flatMap(I).flatMap($e), (d, E) => d.name === E.name), o = [
|
|
691
691
|
...s.filter((d) => d.enforce === "pre"),
|
|
692
692
|
...s.filter((d) => !d.enforce),
|
|
693
693
|
...s.filter((d) => d.enforce === "post")
|
|
694
694
|
], r = [
|
|
695
695
|
...o,
|
|
696
696
|
n
|
|
697
|
-
], a = [...r].reverse(), l = Object.assign({},
|
|
697
|
+
], a = [...r].reverse(), l = Object.assign({}, sn, ...r.map((d) => d.layers));
|
|
698
698
|
function c(d) {
|
|
699
|
-
return
|
|
699
|
+
return q(r.flatMap((E) => I(E[d] || [])));
|
|
700
700
|
}
|
|
701
701
|
const u = c("extractors");
|
|
702
702
|
let i = (m = a.find((d) => d.extractorDefault !== void 0)) == null ? void 0 : m.extractorDefault;
|
|
703
|
-
i === void 0 && (i =
|
|
704
|
-
const f = c("rules"), p = {}, h = f.length, g = f.map((d,
|
|
705
|
-
var
|
|
706
|
-
if (
|
|
707
|
-
|
|
708
|
-
p[N + d[0]] = [
|
|
703
|
+
i === void 0 && (i = Zt), i && !u.includes(i) && u.unshift(i), u.sort((d, E) => (d.order || 0) - (E.order || 0));
|
|
704
|
+
const f = c("rules"), p = {}, h = f.length, g = f.map((d, E) => {
|
|
705
|
+
var R;
|
|
706
|
+
if (Nt(d)) {
|
|
707
|
+
I(((R = d[2]) == null ? void 0 : R.prefix) || "").forEach((N) => {
|
|
708
|
+
p[N + d[0]] = [E, d[1], d[2], d];
|
|
709
709
|
});
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
|
-
return [
|
|
712
|
+
return [E, ...d];
|
|
713
713
|
}).filter(Boolean).reverse();
|
|
714
|
-
let _ =
|
|
714
|
+
let _ = rn(r.map((d) => d.theme));
|
|
715
715
|
const y = c("extendTheme");
|
|
716
716
|
for (const d of y)
|
|
717
717
|
_ = d(_) || _;
|
|
718
|
-
const
|
|
719
|
-
templates:
|
|
720
|
-
var
|
|
721
|
-
return
|
|
718
|
+
const x = {
|
|
719
|
+
templates: q(r.flatMap((d) => {
|
|
720
|
+
var E;
|
|
721
|
+
return I((E = d.autocomplete) == null ? void 0 : E.templates);
|
|
722
722
|
})),
|
|
723
723
|
extractors: r.flatMap((d) => {
|
|
724
|
-
var
|
|
725
|
-
return
|
|
726
|
-
}).sort((d,
|
|
727
|
-
shorthands:
|
|
728
|
-
var
|
|
729
|
-
return ((
|
|
724
|
+
var E;
|
|
725
|
+
return I((E = d.autocomplete) == null ? void 0 : E.extractors);
|
|
726
|
+
}).sort((d, E) => (d.order || 0) - (E.order || 0)),
|
|
727
|
+
shorthands: an(r.map((d) => {
|
|
728
|
+
var E;
|
|
729
|
+
return ((E = d.autocomplete) == null ? void 0 : E.shorthands) || {};
|
|
730
730
|
}))
|
|
731
731
|
};
|
|
732
732
|
let w = c("separators");
|
|
733
733
|
w.length || (w = [":", "-"]);
|
|
734
|
-
const
|
|
734
|
+
const b = {
|
|
735
735
|
mergeSelectors: !0,
|
|
736
736
|
warn: !0,
|
|
737
737
|
sortLayers: (d) => d,
|
|
@@ -748,22 +748,22 @@ function fe(e = {}, t = {}) {
|
|
|
748
748
|
preprocess: c("preprocess"),
|
|
749
749
|
postprocess: c("postprocess"),
|
|
750
750
|
preflights: c("preflights"),
|
|
751
|
-
autocomplete:
|
|
752
|
-
variants: c("variants").map(
|
|
753
|
-
shortcuts:
|
|
751
|
+
autocomplete: x,
|
|
752
|
+
variants: c("variants").map(Dt).sort((d, E) => (d.order || 0) - (E.order || 0)),
|
|
753
|
+
shortcuts: ke(c("shortcuts")).reverse(),
|
|
754
754
|
extractors: u,
|
|
755
755
|
safelist: c("safelist"),
|
|
756
756
|
separators: w,
|
|
757
757
|
details: n.details ?? n.envMode === "dev"
|
|
758
758
|
};
|
|
759
759
|
for (const d of r)
|
|
760
|
-
(
|
|
761
|
-
return
|
|
760
|
+
(S = d == null ? void 0 : d.configResolved) == null || S.call(d, b);
|
|
761
|
+
return b;
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
return e.map((t) => t ?
|
|
763
|
+
function rn(e) {
|
|
764
|
+
return e.map((t) => t ? B(t) : {}).reduce((t, n) => Ae(t, n), {});
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function an(e) {
|
|
767
767
|
return e.reduce((t, n) => {
|
|
768
768
|
const s = {};
|
|
769
769
|
for (const o in n) {
|
|
@@ -776,11 +776,11 @@ function on(e) {
|
|
|
776
776
|
};
|
|
777
777
|
}, {});
|
|
778
778
|
}
|
|
779
|
-
const
|
|
780
|
-
var
|
|
781
|
-
class
|
|
779
|
+
const cn = "0.58.5";
|
|
780
|
+
var ln = Object.defineProperty, un = (e, t, n) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t, n) => (un(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
781
|
+
class fn {
|
|
782
782
|
constructor(t = {}, n = {}) {
|
|
783
|
-
this.userConfig = t, this.defaults = n, D(this, "version",
|
|
783
|
+
this.userConfig = t, this.defaults = n, D(this, "version", cn), D(this, "_cache", /* @__PURE__ */ new Map()), D(this, "config"), D(this, "blocked", /* @__PURE__ */ new Set()), D(this, "parentOrders", /* @__PURE__ */ new Map()), D(this, "events", en()), this.config = fe(t, n), this.events.emit("config", this.config);
|
|
784
784
|
}
|
|
785
785
|
setConfig(t, n) {
|
|
786
786
|
t && (n && (this.defaults = n), this.userConfig = t, this.blocked.clear(), this.parentOrders.clear(), this._cache.clear(), this.config = fe(t, this.defaults), this.events.emit("config", this.config));
|
|
@@ -839,7 +839,7 @@ class ln {
|
|
|
839
839
|
}
|
|
840
840
|
const a = this.makeContext(t, [n || r[0], r[1], r[2], r[3]]);
|
|
841
841
|
this.config.details && (a.variants = [...r[3]]);
|
|
842
|
-
const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (u = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : u.map((i) => this.stringifyUtil(i, a)).filter(
|
|
842
|
+
const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (u = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : u.map((i) => this.stringifyUtil(i, a)).filter(Pt);
|
|
843
843
|
if (c != null && c.length)
|
|
844
844
|
return this._cache.set(s, c), c;
|
|
845
845
|
this._cache.set(s, null);
|
|
@@ -852,30 +852,30 @@ class ln {
|
|
|
852
852
|
safelist: a = !0,
|
|
853
853
|
minify: l = !1,
|
|
854
854
|
extendedInfo: c = !1
|
|
855
|
-
} = n, u =
|
|
855
|
+
} = n, u = U(t) ? await this.applyExtractors(
|
|
856
856
|
t,
|
|
857
857
|
s,
|
|
858
|
-
c ? new
|
|
858
|
+
c ? new Oe() : /* @__PURE__ */ new Set()
|
|
859
859
|
) : Array.isArray(t) ? new Set(t) : t;
|
|
860
860
|
a && this.config.safelist.forEach((m) => {
|
|
861
861
|
u.has(m) || u.add(m);
|
|
862
862
|
});
|
|
863
863
|
const i = l ? "" : `
|
|
864
|
-
`, f = /* @__PURE__ */ new Set([
|
|
864
|
+
`, f = /* @__PURE__ */ new Set([z]), p = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map();
|
|
865
865
|
let g = {};
|
|
866
866
|
const _ = Array.from(u).map(async (m) => {
|
|
867
867
|
var d;
|
|
868
868
|
if (p.has(m))
|
|
869
869
|
return;
|
|
870
|
-
const
|
|
871
|
-
if (
|
|
870
|
+
const S = await this.parseToken(m);
|
|
871
|
+
if (S != null) {
|
|
872
872
|
p instanceof Map ? p.set(m, {
|
|
873
|
-
data:
|
|
873
|
+
data: S,
|
|
874
874
|
count: Y(u) ? u.getCount(m) : -1
|
|
875
875
|
}) : p.add(m);
|
|
876
|
-
for (const
|
|
877
|
-
const
|
|
878
|
-
h.has(
|
|
876
|
+
for (const E of S) {
|
|
877
|
+
const R = E[3] || "", $ = (d = E[4]) == null ? void 0 : d.layer;
|
|
878
|
+
h.has(R) || h.set(R, []), h.get(R).push(E), $ && f.add($);
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
});
|
|
@@ -885,69 +885,69 @@ class ln {
|
|
|
885
885
|
const m = {
|
|
886
886
|
generator: this,
|
|
887
887
|
theme: this.config.theme
|
|
888
|
-
},
|
|
888
|
+
}, S = /* @__PURE__ */ new Set([]);
|
|
889
889
|
this.config.preflights.forEach(({ layer: d = te }) => {
|
|
890
|
-
f.add(d),
|
|
890
|
+
f.add(d), S.add(d);
|
|
891
891
|
}), g = Object.fromEntries(
|
|
892
|
-
await Promise.all(Array.from(
|
|
892
|
+
await Promise.all(Array.from(S).map(
|
|
893
893
|
async (d) => {
|
|
894
|
-
const
|
|
895
|
-
this.config.preflights.filter((
|
|
894
|
+
const R = (await Promise.all(
|
|
895
|
+
this.config.preflights.filter(($) => ($.layer || te) === d).map(async ($) => await $.getCSS(m))
|
|
896
896
|
)).filter(Boolean).join(i);
|
|
897
|
-
return [d,
|
|
897
|
+
return [d, R];
|
|
898
898
|
}
|
|
899
899
|
))
|
|
900
900
|
);
|
|
901
901
|
})();
|
|
902
|
-
const y = this.config.sortLayers(Array.from(f).sort((m,
|
|
903
|
-
if (
|
|
904
|
-
return
|
|
905
|
-
let
|
|
906
|
-
var
|
|
907
|
-
return (this.parentOrders.get(
|
|
908
|
-
}).map(([
|
|
909
|
-
const
|
|
910
|
-
var
|
|
911
|
-
return (((
|
|
912
|
-
}).sort((
|
|
913
|
-
var L,
|
|
914
|
-
return
|
|
915
|
-
}).map(([,
|
|
916
|
-
[[(
|
|
917
|
-
|
|
918
|
-
!!(
|
|
902
|
+
const y = this.config.sortLayers(Array.from(f).sort((m, S) => (this.config.layers[m] ?? 0) - (this.config.layers[S] ?? 0) || m.localeCompare(S))), x = {}, w = (m = z) => {
|
|
903
|
+
if (x[m])
|
|
904
|
+
return x[m];
|
|
905
|
+
let S = Array.from(h).sort((E, R) => {
|
|
906
|
+
var $;
|
|
907
|
+
return (this.parentOrders.get(E[0]) ?? 0) - (this.parentOrders.get(R[0]) ?? 0) || (($ = E[0]) == null ? void 0 : $.localeCompare(R[0] || "")) || 0;
|
|
908
|
+
}).map(([E, R]) => {
|
|
909
|
+
const $ = R.length, N = R.filter((k) => {
|
|
910
|
+
var T;
|
|
911
|
+
return (((T = k[4]) == null ? void 0 : T.layer) || z) === m;
|
|
912
|
+
}).sort((k, T) => {
|
|
913
|
+
var L, v, A, C, O, M, j;
|
|
914
|
+
return k[0] - T[0] || (((L = k[4]) == null ? void 0 : L.sort) || 0) - (((v = T[4]) == null ? void 0 : v.sort) || 0) || ((O = (A = k[5]) == null ? void 0 : A.currentSelector) == null ? void 0 : O.localeCompare(((C = T[5]) == null ? void 0 : C.currentSelector) ?? "")) || ((M = k[1]) == null ? void 0 : M.localeCompare(T[1] || "")) || ((j = k[2]) == null ? void 0 : j.localeCompare(T[2] || "")) || 0;
|
|
915
|
+
}).map(([, k, T, , L, , v]) => [
|
|
916
|
+
[[(k && mn(k, o)) ?? "", (L == null ? void 0 : L.sort) ?? 0]],
|
|
917
|
+
T,
|
|
918
|
+
!!(v ?? (L == null ? void 0 : L.noMerge))
|
|
919
919
|
]);
|
|
920
920
|
if (!N.length)
|
|
921
921
|
return;
|
|
922
|
-
const P = N.reverse().map(([
|
|
922
|
+
const P = N.reverse().map(([k, T, L], v) => {
|
|
923
923
|
if (!L && this.config.mergeSelectors)
|
|
924
|
-
for (let C =
|
|
925
|
-
const
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
924
|
+
for (let C = v + 1; C < $; C++) {
|
|
925
|
+
const O = N[C];
|
|
926
|
+
if (O && !O[2] && (k && O[0] || k == null && O[0] == null) && O[1] === T)
|
|
927
|
+
return k && O[0] && O[0].push(...k), null;
|
|
928
928
|
}
|
|
929
|
-
const A =
|
|
929
|
+
const A = k ? q(k.sort((C, O) => {
|
|
930
930
|
var M;
|
|
931
|
-
return C[1] -
|
|
931
|
+
return C[1] - O[1] || ((M = C[0]) == null ? void 0 : M.localeCompare(O[0] || "")) || 0;
|
|
932
932
|
}).map((C) => C[0]).filter(Boolean)) : [];
|
|
933
|
-
return A.length ? `${A.join(`,${i}`)}{${
|
|
933
|
+
return A.length ? `${A.join(`,${i}`)}{${T}}` : T;
|
|
934
934
|
}).filter(Boolean).reverse().join(i);
|
|
935
|
-
if (!
|
|
935
|
+
if (!E)
|
|
936
936
|
return P;
|
|
937
|
-
const
|
|
938
|
-
return `${
|
|
937
|
+
const V = E.split(" $$ ");
|
|
938
|
+
return `${V.join("{")}{${i}${P}${i}${"}".repeat(V.length)}`;
|
|
939
939
|
}).filter(Boolean).join(i);
|
|
940
|
-
r && (
|
|
940
|
+
r && (S = [g[m], S].filter(Boolean).join(i));
|
|
941
941
|
const d = l ? "" : `/* layer: ${m} */${i}`;
|
|
942
|
-
return
|
|
943
|
-
},
|
|
942
|
+
return x[m] = S ? d + S : "";
|
|
943
|
+
}, b = (m = y, S) => m.filter((d) => !(S != null && S.includes(d))).map((d) => w(d) || "").filter(Boolean).join(i);
|
|
944
944
|
return {
|
|
945
945
|
get css() {
|
|
946
|
-
return
|
|
946
|
+
return b();
|
|
947
947
|
},
|
|
948
948
|
layers: y,
|
|
949
949
|
matched: p,
|
|
950
|
-
getLayers:
|
|
950
|
+
getLayers: b,
|
|
951
951
|
getLayer: w
|
|
952
952
|
};
|
|
953
953
|
}
|
|
@@ -966,7 +966,7 @@ class ln {
|
|
|
966
966
|
continue;
|
|
967
967
|
let u = await c.match(r, l);
|
|
968
968
|
if (u) {
|
|
969
|
-
if (
|
|
969
|
+
if (U(u)) {
|
|
970
970
|
if (u === r)
|
|
971
971
|
continue;
|
|
972
972
|
u = { matcher: u };
|
|
@@ -987,7 +987,7 @@ class ln {
|
|
|
987
987
|
(u, i) => (f) => {
|
|
988
988
|
var g, _;
|
|
989
989
|
const p = ((g = i.body) == null ? void 0 : g.call(i, f.entries)) || f.entries, h = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
|
|
990
|
-
return (i.handle ??
|
|
990
|
+
return (i.handle ?? _n)({
|
|
991
991
|
...f,
|
|
992
992
|
entries: p,
|
|
993
993
|
selector: ((_ = i.selector) == null ? void 0 : _.call(i, f.selector, p)) || f.selector,
|
|
@@ -1000,7 +1000,7 @@ class ln {
|
|
|
1000
1000
|
(u) => u
|
|
1001
1001
|
)({
|
|
1002
1002
|
prefix: "",
|
|
1003
|
-
selector:
|
|
1003
|
+
selector: hn(s),
|
|
1004
1004
|
pseudo: "",
|
|
1005
1005
|
entries: t[2]
|
|
1006
1006
|
}), { parent: a, parentOrder: l } = r;
|
|
@@ -1023,20 +1023,20 @@ class ln {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
constructCustomCSS(t, n, s) {
|
|
1025
1025
|
const o = F(n);
|
|
1026
|
-
if (
|
|
1026
|
+
if (U(o))
|
|
1027
1027
|
return o;
|
|
1028
|
-
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${
|
|
1028
|
+
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${X(a)}}`;
|
|
1029
1029
|
return l ? `${l}{${c}}` : c;
|
|
1030
1030
|
}
|
|
1031
1031
|
async parseUtil(t, n, s = !1, o) {
|
|
1032
1032
|
var i;
|
|
1033
|
-
const [r, a, l] =
|
|
1033
|
+
const [r, a, l] = U(t) ? await this.matchVariants(t) : t;
|
|
1034
1034
|
this.config.details && (n.rules = n.rules ?? []);
|
|
1035
1035
|
const c = this.config.rulesStaticMap[a];
|
|
1036
1036
|
if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
|
|
1037
1037
|
this.config.details && n.rules.push(c[3]);
|
|
1038
1038
|
const f = c[0], p = F(c[1]), h = c[2];
|
|
1039
|
-
return
|
|
1039
|
+
return U(p) ? [[f, p, h]] : [[f, r, p, h, l]];
|
|
1040
1040
|
}
|
|
1041
1041
|
n.variantHandlers = l;
|
|
1042
1042
|
const { rulesDynamic: u } = this.config;
|
|
@@ -1045,13 +1045,13 @@ class ln {
|
|
|
1045
1045
|
continue;
|
|
1046
1046
|
let _ = a;
|
|
1047
1047
|
if (g != null && g.prefix) {
|
|
1048
|
-
const
|
|
1048
|
+
const b = I(g.prefix);
|
|
1049
1049
|
if (o) {
|
|
1050
|
-
const m =
|
|
1051
|
-
if (!
|
|
1050
|
+
const m = I(o);
|
|
1051
|
+
if (!b.some((S) => m.includes(S)))
|
|
1052
1052
|
continue;
|
|
1053
1053
|
} else {
|
|
1054
|
-
const m =
|
|
1054
|
+
const m = b.find((S) => a.startsWith(S));
|
|
1055
1055
|
if (m == null)
|
|
1056
1056
|
continue;
|
|
1057
1057
|
_ = a.slice(m.length);
|
|
@@ -1060,13 +1060,13 @@ class ln {
|
|
|
1060
1060
|
const y = _.match(p);
|
|
1061
1061
|
if (!y)
|
|
1062
1062
|
continue;
|
|
1063
|
-
const
|
|
1064
|
-
if (!
|
|
1063
|
+
const x = await h(y, n);
|
|
1064
|
+
if (!x)
|
|
1065
1065
|
continue;
|
|
1066
1066
|
this.config.details && n.rules.push([p, h, g]);
|
|
1067
|
-
const w =
|
|
1067
|
+
const w = Mt(x).filter((b) => b.length);
|
|
1068
1068
|
if (w.length)
|
|
1069
|
-
return w.map((
|
|
1069
|
+
return w.map((b) => U(b) ? [f, b, g] : [f, r, b, g, l]);
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
stringifyUtil(t, n) {
|
|
@@ -1074,7 +1074,7 @@ class ln {
|
|
|
1074
1074
|
return;
|
|
1075
1075
|
if (ce(t))
|
|
1076
1076
|
return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
|
|
1077
|
-
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), u =
|
|
1077
|
+
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), u = X(o);
|
|
1078
1078
|
if (!u)
|
|
1079
1079
|
return;
|
|
1080
1080
|
const { layer: i, sort: f, ...p } = t[3] ?? {}, h = {
|
|
@@ -1090,12 +1090,12 @@ class ln {
|
|
|
1090
1090
|
return;
|
|
1091
1091
|
const o = this.config.details ? (c) => {
|
|
1092
1092
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1093
|
-
} :
|
|
1093
|
+
} : Ft;
|
|
1094
1094
|
let r, a;
|
|
1095
1095
|
for (const c of this.config.shortcuts) {
|
|
1096
1096
|
let u = t;
|
|
1097
1097
|
if ((l = c[2]) != null && l.prefix) {
|
|
1098
|
-
const f =
|
|
1098
|
+
const f = I(c[2].prefix).find((p) => t.startsWith(p));
|
|
1099
1099
|
if (f == null)
|
|
1100
1100
|
continue;
|
|
1101
1101
|
u = t.slice(f.length);
|
|
@@ -1113,27 +1113,27 @@ class ln {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
if (
|
|
1117
|
-
const [c, u] =
|
|
1116
|
+
if (U(a) && (a = Xt(a.trim()).split(/\s+/g)), !a) {
|
|
1117
|
+
const [c, u] = U(t) ? await this.matchVariants(t) : t;
|
|
1118
1118
|
if (c !== u) {
|
|
1119
1119
|
const i = await this.expandShortcut(u, n, s - 1);
|
|
1120
|
-
i && (a = i[0].map((f) =>
|
|
1120
|
+
i && (a = i[0].map((f) => U(f) ? c.replace(u, f) : f));
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
1123
|
if (a)
|
|
1124
1124
|
return [
|
|
1125
1125
|
(await Promise.all(a.map(async (c) => {
|
|
1126
1126
|
var u;
|
|
1127
|
-
return (
|
|
1127
|
+
return (U(c) ? (u = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : u[0] : void 0) || [c];
|
|
1128
1128
|
}))).flat(1).filter(Boolean),
|
|
1129
1129
|
r
|
|
1130
1130
|
];
|
|
1131
1131
|
}
|
|
1132
1132
|
async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
|
|
1133
1133
|
var i;
|
|
1134
|
-
const r = new
|
|
1135
|
-
const p =
|
|
1136
|
-
return !p && this.config.warn &&
|
|
1134
|
+
const r = new Bt(), a = (await Promise.all(q(s).map(async (f) => {
|
|
1135
|
+
const p = U(f) ? await this.parseUtil(f, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", F(f), void 0, []]];
|
|
1136
|
+
return !p && this.config.warn && Re(`unmatched utility "${f}" in shortcut "${t[1]}"`), p || [];
|
|
1137
1137
|
}))).flat(1).filter(Boolean).sort((f, p) => f[0] - p[0]), [l, , c] = t, u = [];
|
|
1138
1138
|
for (const f of a) {
|
|
1139
1139
|
if (ce(f)) {
|
|
@@ -1144,85 +1144,85 @@ class ln {
|
|
|
1144
1144
|
r.getFallback(p, g, [[], f[0]])[0].push([h, !!(y ?? ((i = f[3]) == null ? void 0 : i.noMerge)), _ ?? 0]);
|
|
1145
1145
|
}
|
|
1146
1146
|
return u.concat(r.map(([f, p], h, g) => {
|
|
1147
|
-
const _ = (
|
|
1148
|
-
const m = Math.max(...
|
|
1149
|
-
return (
|
|
1150
|
-
const
|
|
1151
|
-
if (
|
|
1152
|
-
return [p, h,
|
|
1147
|
+
const _ = (x, w, b) => {
|
|
1148
|
+
const m = Math.max(...b.map((d) => d[1])), S = b.map((d) => d[0]);
|
|
1149
|
+
return (x ? [S.flat(1)] : S).map((d) => {
|
|
1150
|
+
const E = X(d);
|
|
1151
|
+
if (E)
|
|
1152
|
+
return [p, h, E, g, { ...o, noMerge: w, sort: m }, n, void 0];
|
|
1153
1153
|
});
|
|
1154
1154
|
};
|
|
1155
1155
|
return [
|
|
1156
|
-
[f.filter(([,
|
|
1157
|
-
[f.filter(([,
|
|
1158
|
-
].map(([
|
|
1159
|
-
..._(!1, w,
|
|
1160
|
-
..._(!0, w,
|
|
1156
|
+
[f.filter(([, x]) => x).map(([x, , w]) => [x, w]), !0],
|
|
1157
|
+
[f.filter(([, x]) => !x).map(([x, , w]) => [x, w]), !1]
|
|
1158
|
+
].map(([x, w]) => [
|
|
1159
|
+
..._(!1, w, x.filter(([b]) => b.some((m) => m[0] === ae))),
|
|
1160
|
+
..._(!0, w, x.filter(([b]) => b.every((m) => m[0] !== ae)))
|
|
1161
1161
|
]);
|
|
1162
1162
|
}).flat(2).filter(Boolean));
|
|
1163
1163
|
}
|
|
1164
1164
|
isBlocked(t) {
|
|
1165
|
-
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) :
|
|
1165
|
+
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) : U(n) ? n === t : n.test(t));
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1169
|
-
return new
|
|
1168
|
+
function dn(e, t) {
|
|
1169
|
+
return new fn(e, t);
|
|
1170
1170
|
}
|
|
1171
|
-
const
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1171
|
+
const Te = /\s\$\$\s+/g;
|
|
1172
|
+
function pn(e) {
|
|
1173
|
+
return Te.test(e);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1175
|
+
function mn(e, t) {
|
|
1176
|
+
return pn(e) ? e.replace(Te, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
|
|
1177
1177
|
}
|
|
1178
1178
|
const de = /^\[(.+?)(~?=)"(.*)"\]$/;
|
|
1179
|
-
function
|
|
1179
|
+
function hn(e) {
|
|
1180
1180
|
return de.test(e) ? e.replace(de, (t, n, s, o) => `[${J(n)}${s}"${J(o)}"]`) : `.${J(e)}`;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function _n(e, t) {
|
|
1183
1183
|
return t(e);
|
|
1184
1184
|
}
|
|
1185
|
-
var pe = { npm_package_dependencies__vueuse_core: "^10.7.2", npm_package_dependencies__vue_devtools_schema: "workspace:*", TERM_PROGRAM: "iTerm.app", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/usr/local/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.0.12", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "2.0.0", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.58.4", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "3.4.23", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.3", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", TERM_SESSION_ID: "w0t0p0:FB106173-92F1-4DCB-88AD-60B781B92E39", 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.1DnXYu7f3x/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.0/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.0/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.0/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.0/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.0/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/usr/local/lib/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/87492_1706793599726/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: "E85F189D-F09F-474B-886B-4AAAE42FBC59", 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.15", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.9.0", npm_package_devDependencies_sass: "^1.70.0", npm_package_devDependencies__unocss_reset: "^0.58.4", 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.0.12_@types+node@20.11.10_sass@1.70.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.0.12_@types+node@20.11.10_sass@1.70.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.0.12_@types+node@20.11.10_sass@1.70.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/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.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/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.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/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/@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/87492_1706793599726", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.58.4", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/usr/local/lib/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.176", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.14", XPC_SERVICE_NAME: "0", npm_package_devDependencies_unocss: "^0.58.4", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", SHLVL: "1", HOME: "/Users/arlo", COLORFGBG: "7;0", 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:FB106173-92F1-4DCB-88AD-60B781B92E39", 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.7.2", npm_config_user_agent: "pnpm/8.15.0 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.11.10", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.6.0", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies_shiki: "1.0.0-beta.0", SECURITYSESSIONID: "186a3", npm_package_dependencies__unocss_preset_icons: "^0.58.4", npm_node_execpath: "/usr/local/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1186
|
-
const
|
|
1185
|
+
var pe = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", 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", npm_package_devDependencies_vite: "^5.1.4", 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.5", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", ZDOTDIR: "/Users/arlo", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", TERM_SESSION_ID: "w0t0p0:EBC13AFE-91E7-4C01-A0EE-906F38822844", 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.6SNYWUo0i8/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.4/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: "", LSCOLORS: "Gxfxcxdxbxegedabagacad", FNM_VERSION_FILE_STRATEGY: "local", 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.4/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.4/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.4/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.4/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/usr/local/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/791_1709303876576/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:/Users/arlo/Library/pnpm:/Users/arlo/Library/Caches/fnm_multishells/98905_1709302425015/bin:/opt/homebrew/bin", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "8C52347B-2A2B-41CD-812D-4952400B468B", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", USER_ZDOTDIR: "/Users/arlo", __CFBundleIdentifier: "com.microsoft.VSCode", 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.9.0", npm_package_devDependencies_sass: "^1.71.1", npm_package_devDependencies__unocss_reset: "^0.58.5", 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.1.4_@types+node@20.11.24_sass@1.71.1/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.4_@types+node@20.11.24_sass@1.71.1/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.4_@types+node@20.11.24_sass@1.71.1/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/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.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/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.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/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/@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", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", FNM_MULTISHELL_PATH: "/Users/arlo/Library/Caches/fnm_multishells/791_1709303876576", npm_package_devDependencies__unocss_core: "^0.58.5", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/usr/local/lib/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.188", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.16", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.58.5", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", COLORFGBG: "7;0", HOME: "/Users/arlo", SHLVL: "3", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", 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:EBC13AFE-91E7-4C01-A0EE-906F38822844", 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", VSCODE_GIT_IPC_HANDLE: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/vscode-git-4d965c4849.sock", npm_config_user_agent: "pnpm/8.15.4 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.11.24", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_devDependencies_vite_plugin_vue_devtools: "workspace:^", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.7.1", npm_package_dependencies_vue_router: "^4.3.0", npm_package_dependencies_shiki: "1.1.5", SECURITYSESSIONID: "186a4", npm_package_dependencies__unocss_preset_icons: "^0.58.5", 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" };
|
|
1186
|
+
const gn = Object.freeze(
|
|
1187
1187
|
{
|
|
1188
1188
|
left: 0,
|
|
1189
1189
|
top: 0,
|
|
1190
1190
|
width: 16,
|
|
1191
1191
|
height: 16
|
|
1192
1192
|
}
|
|
1193
|
-
),
|
|
1193
|
+
), W = Object.freeze({
|
|
1194
1194
|
rotate: 0,
|
|
1195
1195
|
vFlip: !1,
|
|
1196
1196
|
hFlip: !1
|
|
1197
|
-
}),
|
|
1198
|
-
...
|
|
1199
|
-
...
|
|
1200
|
-
}),
|
|
1201
|
-
...
|
|
1197
|
+
}), Ue = Object.freeze({
|
|
1198
|
+
...gn,
|
|
1199
|
+
...W
|
|
1200
|
+
}), yn = Object.freeze({
|
|
1201
|
+
...Ue,
|
|
1202
1202
|
body: "",
|
|
1203
1203
|
hidden: !1
|
|
1204
|
-
}),
|
|
1204
|
+
}), bn = Object.freeze({
|
|
1205
1205
|
width: null,
|
|
1206
1206
|
height: null
|
|
1207
|
-
}),
|
|
1207
|
+
}), Le = Object.freeze({
|
|
1208
1208
|
// Dimensions
|
|
1209
|
-
...
|
|
1209
|
+
...bn,
|
|
1210
1210
|
// Transformations
|
|
1211
|
-
...
|
|
1211
|
+
...W
|
|
1212
1212
|
});
|
|
1213
|
-
function
|
|
1213
|
+
function vn(e, t) {
|
|
1214
1214
|
const n = {};
|
|
1215
1215
|
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
1216
1216
|
const s = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
1217
1217
|
return s && (n.rotate = s), n;
|
|
1218
1218
|
}
|
|
1219
1219
|
function me(e, t) {
|
|
1220
|
-
const n =
|
|
1221
|
-
for (const s in
|
|
1222
|
-
s in
|
|
1220
|
+
const n = vn(e, t);
|
|
1221
|
+
for (const s in yn)
|
|
1222
|
+
s in W ? s in e && !(s in n) && (n[s] = W[s]) : s in t ? n[s] = t[s] : s in e && (n[s] = e[s]);
|
|
1223
1223
|
return n;
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function wn(e, t) {
|
|
1226
1226
|
const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
1227
1227
|
function r(a) {
|
|
1228
1228
|
if (n[a])
|
|
@@ -1247,13 +1247,13 @@ function he(e, t, n) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
return a(t), n.forEach(a), me(e, r);
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Sn(e, t) {
|
|
1251
1251
|
if (e.icons[t])
|
|
1252
1252
|
return he(e, t, []);
|
|
1253
|
-
const n =
|
|
1253
|
+
const n = wn(e, [t])[t];
|
|
1254
1254
|
return n ? he(e, t, n) : null;
|
|
1255
1255
|
}
|
|
1256
|
-
const
|
|
1256
|
+
const En = /(-?[0-9.]*[0-9]+[0-9.]*)/g, xn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
1257
1257
|
function _e(e, t, n) {
|
|
1258
1258
|
if (t === 1)
|
|
1259
1259
|
return e;
|
|
@@ -1261,11 +1261,11 @@ function _e(e, t, n) {
|
|
|
1261
1261
|
return Math.ceil(e * t * n) / n;
|
|
1262
1262
|
if (typeof e != "string")
|
|
1263
1263
|
return e;
|
|
1264
|
-
const s = e.split(
|
|
1264
|
+
const s = e.split(En);
|
|
1265
1265
|
if (s === null || !s.length)
|
|
1266
1266
|
return e;
|
|
1267
1267
|
const o = [];
|
|
1268
|
-
let r = s.shift(), a =
|
|
1268
|
+
let r = s.shift(), a = xn.test(r);
|
|
1269
1269
|
for (; ; ) {
|
|
1270
1270
|
if (a) {
|
|
1271
1271
|
const l = parseFloat(r);
|
|
@@ -1277,7 +1277,7 @@ function _e(e, t, n) {
|
|
|
1277
1277
|
a = !a;
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function Cn(e, t = "defs") {
|
|
1281
1281
|
let n = "";
|
|
1282
1282
|
const s = e.indexOf("<" + t);
|
|
1283
1283
|
for (; s >= 0; ) {
|
|
@@ -1294,20 +1294,20 @@ function xn(e, t = "defs") {
|
|
|
1294
1294
|
content: e
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function An(e, t) {
|
|
1298
1298
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1301
|
-
const s =
|
|
1302
|
-
return
|
|
1300
|
+
function On(e, t, n) {
|
|
1301
|
+
const s = Cn(e);
|
|
1302
|
+
return An(s.defs, t + s.content + n);
|
|
1303
1303
|
}
|
|
1304
1304
|
const oe = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1305
|
-
function
|
|
1305
|
+
function Rn(e, t) {
|
|
1306
1306
|
const n = {
|
|
1307
|
-
...
|
|
1307
|
+
...Ue,
|
|
1308
1308
|
...e
|
|
1309
1309
|
}, s = {
|
|
1310
|
-
...
|
|
1310
|
+
...Le,
|
|
1311
1311
|
...t
|
|
1312
1312
|
}, o = {
|
|
1313
1313
|
left: n.left,
|
|
@@ -1317,15 +1317,15 @@ function An(e, t) {
|
|
|
1317
1317
|
};
|
|
1318
1318
|
let r = n.body;
|
|
1319
1319
|
[n, s].forEach((_) => {
|
|
1320
|
-
const y = [],
|
|
1321
|
-
let
|
|
1322
|
-
|
|
1320
|
+
const y = [], x = _.hFlip, w = _.vFlip;
|
|
1321
|
+
let b = _.rotate;
|
|
1322
|
+
x ? w ? b += 2 : (y.push(
|
|
1323
1323
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
1324
1324
|
), y.push("scale(-1 1)"), o.top = o.left = 0) : w && (y.push(
|
|
1325
1325
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
1326
1326
|
), y.push("scale(1 -1)"), o.top = o.left = 0);
|
|
1327
1327
|
let m;
|
|
1328
|
-
switch (
|
|
1328
|
+
switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
|
|
1329
1329
|
case 1:
|
|
1330
1330
|
m = o.height / 2 + o.top, y.unshift(
|
|
1331
1331
|
"rotate(90 " + m.toString() + " " + m.toString() + ")"
|
|
@@ -1342,7 +1342,7 @@ function An(e, t) {
|
|
|
1342
1342
|
);
|
|
1343
1343
|
break;
|
|
1344
1344
|
}
|
|
1345
|
-
|
|
1345
|
+
b % 2 === 1 && (o.left !== o.top && (m = o.left, o.left = o.top, o.top = m), o.width !== o.height && (m = o.width, o.width = o.height, o.height = m)), y.length && (r = On(
|
|
1346
1346
|
r,
|
|
1347
1347
|
'<g transform="' + y.join(" ") + '">',
|
|
1348
1348
|
"</g>"
|
|
@@ -1375,24 +1375,24 @@ function $n(e) {
|
|
|
1375
1375
|
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1376
1376
|
)), kn(t);
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Tn(e) {
|
|
1379
1379
|
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();
|
|
1380
1380
|
}
|
|
1381
|
-
const
|
|
1382
|
-
function
|
|
1381
|
+
const Un = /\swidth\s*=\s*["']([\w.]+)["']/, Ln = /\sheight\s*=\s*["']([\w.]+)["']/, Q = /<svg\s+/;
|
|
1382
|
+
function Mn(e, t, n) {
|
|
1383
1383
|
const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
|
|
1384
1384
|
const l = a.exec(s), c = l != null, u = t[r];
|
|
1385
1385
|
return !u && !oe(u) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
|
|
1386
1386
|
};
|
|
1387
|
-
return [o("width",
|
|
1387
|
+
return [o("width", Un), o("height", Ln)];
|
|
1388
1388
|
}
|
|
1389
|
-
async function
|
|
1389
|
+
async function Me(e, t, n, s, o, r) {
|
|
1390
1390
|
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: u } = (s == null ? void 0 : s.customizations) ?? {}, i = await (o == null ? void 0 : o()) ?? {};
|
|
1391
1391
|
await (u == null ? void 0 : u(t, n, i)), Object.keys(c).forEach((_) => {
|
|
1392
1392
|
const y = c[_];
|
|
1393
1393
|
y != null && (i[_] = y);
|
|
1394
1394
|
}), r == null || r(i);
|
|
1395
|
-
const [f, p] =
|
|
1395
|
+
const [f, p] = Mn(e, i, a);
|
|
1396
1396
|
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"));
|
|
1397
1397
|
const h = Object.keys(i).map(
|
|
1398
1398
|
(_) => _ === "width" && f || _ === "height" && p ? null : `${_}="${i[_]}"`
|
|
@@ -1428,8 +1428,8 @@ async function ge(e, t, n, s) {
|
|
|
1428
1428
|
const a = o.indexOf("<svg");
|
|
1429
1429
|
a > 0 && (o = o.slice(a));
|
|
1430
1430
|
const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1431
|
-
return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await
|
|
1432
|
-
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ?
|
|
1431
|
+
return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Me(
|
|
1432
|
+
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? Tn(o) : o,
|
|
1433
1433
|
t,
|
|
1434
1434
|
n,
|
|
1435
1435
|
s,
|
|
@@ -1439,18 +1439,18 @@ async function ge(e, t, n, s) {
|
|
|
1439
1439
|
), o);
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
-
async function
|
|
1442
|
+
async function Ie(e, t, n, s) {
|
|
1443
1443
|
let o;
|
|
1444
1444
|
const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1445
1445
|
for (const a of n)
|
|
1446
|
-
if (o =
|
|
1447
|
-
let l = { ...
|
|
1446
|
+
if (o = Sn(e, a), o) {
|
|
1447
|
+
let l = { ...Le };
|
|
1448
1448
|
typeof r == "function" && (l = r(l));
|
|
1449
1449
|
const {
|
|
1450
1450
|
attributes: { width: c, height: u, ...i },
|
|
1451
1451
|
body: f
|
|
1452
|
-
} =
|
|
1453
|
-
return await
|
|
1452
|
+
} = Rn(o, l), p = s == null ? void 0 : s.scale;
|
|
1453
|
+
return await Me(
|
|
1454
1454
|
// DON'T remove space on <svg >
|
|
1455
1455
|
`<svg >${f}</svg>`,
|
|
1456
1456
|
t,
|
|
@@ -1459,10 +1459,10 @@ async function Me(e, t, n, s) {
|
|
|
1459
1459
|
() => ({ ...i }),
|
|
1460
1460
|
(h) => {
|
|
1461
1461
|
const g = (_, y) => {
|
|
1462
|
-
const
|
|
1462
|
+
const x = h[_];
|
|
1463
1463
|
let w;
|
|
1464
|
-
if (!oe(
|
|
1465
|
-
if (
|
|
1464
|
+
if (!oe(x)) {
|
|
1465
|
+
if (x)
|
|
1466
1466
|
return;
|
|
1467
1467
|
typeof p == "number" ? p && (w = `${p}em`) : w = y;
|
|
1468
1468
|
}
|
|
@@ -1473,7 +1473,7 @@ async function Me(e, t, n, s) {
|
|
|
1473
1473
|
);
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
const
|
|
1476
|
+
const Ne = async (e, t, n) => {
|
|
1477
1477
|
var o;
|
|
1478
1478
|
const s = (o = n == null ? void 0 : n.customCollections) == null ? void 0 : o[e];
|
|
1479
1479
|
if (s)
|
|
@@ -1502,7 +1502,7 @@ const je = async (e, t, n) => {
|
|
|
1502
1502
|
t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1503
1503
|
t.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1504
1504
|
];
|
|
1505
|
-
return await
|
|
1505
|
+
return await Ie(
|
|
1506
1506
|
r,
|
|
1507
1507
|
e,
|
|
1508
1508
|
a,
|
|
@@ -1513,10 +1513,10 @@ const je = async (e, t, n) => {
|
|
|
1513
1513
|
} else
|
|
1514
1514
|
return await ge(s, e, t, n);
|
|
1515
1515
|
};
|
|
1516
|
-
function
|
|
1516
|
+
function In(e) {
|
|
1517
1517
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1519
|
+
var Nn = [
|
|
1520
1520
|
"academicons",
|
|
1521
1521
|
"akar-icons",
|
|
1522
1522
|
"ant-design",
|
|
@@ -1688,8 +1688,8 @@ var Mn = [
|
|
|
1688
1688
|
"zmdi",
|
|
1689
1689
|
"zondicons"
|
|
1690
1690
|
];
|
|
1691
|
-
const jn = /* @__PURE__ */
|
|
1692
|
-
function
|
|
1691
|
+
const jn = /* @__PURE__ */ In(Nn), Dn = 3;
|
|
1692
|
+
function Pn(e) {
|
|
1693
1693
|
return (t = {}) => {
|
|
1694
1694
|
const {
|
|
1695
1695
|
scale: n = 1,
|
|
@@ -1700,26 +1700,28 @@ function In(e) {
|
|
|
1700
1700
|
extraProperties: l = {},
|
|
1701
1701
|
customizations: c = {},
|
|
1702
1702
|
autoInstall: u = !1,
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1703
|
+
collectionsNodeResolvePath: i,
|
|
1704
|
+
layer: f = "icons",
|
|
1705
|
+
unit: p
|
|
1706
|
+
} = t, h = Fn(), g = {
|
|
1706
1707
|
addXmlNs: !0,
|
|
1707
1708
|
scale: n,
|
|
1708
1709
|
customCollections: a,
|
|
1709
1710
|
autoInstall: u,
|
|
1711
|
+
cwd: i,
|
|
1710
1712
|
// avoid warn from @iconify/loader: we'll warn below if not found
|
|
1711
1713
|
warn: void 0,
|
|
1712
1714
|
customizations: {
|
|
1713
1715
|
...c,
|
|
1714
1716
|
additionalProps: { ...l },
|
|
1715
1717
|
trimCustomSvg: !0,
|
|
1716
|
-
async iconCustomizer(
|
|
1717
|
-
var
|
|
1718
|
-
await ((
|
|
1718
|
+
async iconCustomizer(y, x, w) {
|
|
1719
|
+
var b;
|
|
1720
|
+
await ((b = c.iconCustomizer) == null ? void 0 : b.call(c, y, x, w)), p && (w.width || (w.width = `${n}${p}`), w.height || (w.height = `${n}${p}`));
|
|
1719
1721
|
}
|
|
1720
1722
|
}
|
|
1721
1723
|
};
|
|
1722
|
-
let
|
|
1724
|
+
let _;
|
|
1723
1725
|
return {
|
|
1724
1726
|
name: "@unocss/preset-icons",
|
|
1725
1727
|
enforce: "pre",
|
|
@@ -1727,24 +1729,24 @@ function In(e) {
|
|
|
1727
1729
|
layers: { icons: -30 },
|
|
1728
1730
|
rules: [[
|
|
1729
1731
|
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1730
|
-
async ([
|
|
1731
|
-
let
|
|
1732
|
-
|
|
1733
|
-
const
|
|
1734
|
-
if (
|
|
1735
|
-
[
|
|
1732
|
+
async ([y, x, w = s]) => {
|
|
1733
|
+
let b = "", m = "", S;
|
|
1734
|
+
_ = _ || await e(t);
|
|
1735
|
+
const d = {};
|
|
1736
|
+
if (x.includes(":"))
|
|
1737
|
+
[b, m] = x.split(":"), S = await _(b, m, { ...g, usedProps: d });
|
|
1736
1738
|
else {
|
|
1737
|
-
const
|
|
1738
|
-
for (let
|
|
1739
|
+
const R = x.split(/-/g);
|
|
1740
|
+
for (let $ = Dn; $ >= 1 && (b = R.slice(0, $).join("-"), m = R.slice($).join("-"), S = await _(b, m, { ...g, usedProps: d }), !S); $--)
|
|
1739
1741
|
;
|
|
1740
1742
|
}
|
|
1741
|
-
if (!
|
|
1742
|
-
r && !
|
|
1743
|
+
if (!S) {
|
|
1744
|
+
r && !h.isESLint && Re(`failed to load icon "${y}"`);
|
|
1743
1745
|
return;
|
|
1744
1746
|
}
|
|
1745
|
-
const
|
|
1746
|
-
return
|
|
1747
|
-
"--un-icon":
|
|
1747
|
+
const E = `url("data:image/svg+xml;utf8,${$n(S)}")`;
|
|
1748
|
+
return w === "auto" && (w = S.includes("currentColor") ? "mask" : "bg"), w === "mask" ? {
|
|
1749
|
+
"--un-icon": E,
|
|
1748
1750
|
"-webkit-mask": "var(--un-icon) no-repeat",
|
|
1749
1751
|
mask: "var(--un-icon) no-repeat",
|
|
1750
1752
|
"-webkit-mask-size": "100% 100%",
|
|
@@ -1752,27 +1754,27 @@ function In(e) {
|
|
|
1752
1754
|
"background-color": "currentColor",
|
|
1753
1755
|
// for Safari https://github.com/elk-zone/elk/pull/264
|
|
1754
1756
|
color: "inherit",
|
|
1755
|
-
...
|
|
1757
|
+
...d
|
|
1756
1758
|
} : {
|
|
1757
|
-
background: `${
|
|
1759
|
+
background: `${E} no-repeat`,
|
|
1758
1760
|
"background-size": "100% 100%",
|
|
1759
1761
|
"background-color": "transparent",
|
|
1760
|
-
...
|
|
1762
|
+
...d
|
|
1761
1763
|
};
|
|
1762
1764
|
},
|
|
1763
|
-
{ layer:
|
|
1765
|
+
{ layer: f, prefix: o }
|
|
1764
1766
|
]]
|
|
1765
1767
|
};
|
|
1766
1768
|
};
|
|
1767
1769
|
}
|
|
1768
|
-
function
|
|
1770
|
+
function je(e, t) {
|
|
1769
1771
|
const n = /* @__PURE__ */ new Map();
|
|
1770
1772
|
function s(o) {
|
|
1771
1773
|
if (jn.includes(o))
|
|
1772
1774
|
return n.has(o) || n.set(o, e(`${t}@iconify-json/${o}/icons.json`)), n.get(o);
|
|
1773
1775
|
}
|
|
1774
1776
|
return async (o, r, a) => {
|
|
1775
|
-
let l = await
|
|
1777
|
+
let l = await Ne(o, r, a);
|
|
1776
1778
|
if (l)
|
|
1777
1779
|
return l;
|
|
1778
1780
|
const c = await s(o);
|
|
@@ -1782,12 +1784,12 @@ function Ne(e, t) {
|
|
|
1782
1784
|
r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1783
1785
|
r.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1784
1786
|
];
|
|
1785
|
-
l = await
|
|
1787
|
+
l = await Ie(c, o, u, a);
|
|
1786
1788
|
}
|
|
1787
1789
|
return l;
|
|
1788
1790
|
};
|
|
1789
1791
|
}
|
|
1790
|
-
function
|
|
1792
|
+
function Fn() {
|
|
1791
1793
|
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!pe.VSCODE_CWD, n = e && !!pe.ESLINT;
|
|
1792
1794
|
return {
|
|
1793
1795
|
isNode: e,
|
|
@@ -1795,14 +1797,14 @@ function Dn() {
|
|
|
1795
1797
|
isESLint: n
|
|
1796
1798
|
};
|
|
1797
1799
|
}
|
|
1798
|
-
function
|
|
1799
|
-
return
|
|
1800
|
+
function Vn(e) {
|
|
1801
|
+
return je(Tt, e);
|
|
1800
1802
|
}
|
|
1801
|
-
const
|
|
1803
|
+
const Gn = Pn(async (e) => {
|
|
1802
1804
|
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1803
|
-
return t && n ?
|
|
1805
|
+
return t && n ? je(t, n) : n ? Vn(n) : Ne;
|
|
1804
1806
|
});
|
|
1805
|
-
function
|
|
1807
|
+
function Hn(e) {
|
|
1806
1808
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
1807
1809
|
}
|
|
1808
1810
|
function ye(e) {
|
|
@@ -1812,13 +1814,13 @@ function be(e) {
|
|
|
1812
1814
|
return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
|
|
1813
1815
|
}
|
|
1814
1816
|
var ve = ["Webkit", "Moz", "ms"];
|
|
1815
|
-
function
|
|
1817
|
+
function Bn(e) {
|
|
1816
1818
|
const t = {};
|
|
1817
1819
|
function n(s) {
|
|
1818
1820
|
const o = t[s];
|
|
1819
1821
|
if (o)
|
|
1820
1822
|
return o;
|
|
1821
|
-
let r =
|
|
1823
|
+
let r = Hn(s);
|
|
1822
1824
|
if (r !== "filter" && r in e)
|
|
1823
1825
|
return t[s] = be(r);
|
|
1824
1826
|
r = ye(r);
|
|
@@ -1833,124 +1835,124 @@ function Vn(e) {
|
|
|
1833
1835
|
o[0].startsWith("--") || (o[0] = n(o[0]));
|
|
1834
1836
|
});
|
|
1835
1837
|
}
|
|
1836
|
-
function
|
|
1838
|
+
function zn(e) {
|
|
1837
1839
|
return e.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<");
|
|
1838
1840
|
}
|
|
1839
|
-
function
|
|
1840
|
-
var
|
|
1841
|
+
function qn(e = {}) {
|
|
1842
|
+
var k, T, L;
|
|
1841
1843
|
if (typeof window > "u") {
|
|
1842
1844
|
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
1843
1845
|
return;
|
|
1844
1846
|
}
|
|
1845
1847
|
const t = window, n = window.document, s = () => n.documentElement, o = t.__unocss || {}, r = Object.assign({}, e, o.runtime), a = r.defaults || {}, l = r.cloakAttribute ?? "un-cloak";
|
|
1846
|
-
r.autoPrefix && (a.postprocess =
|
|
1847
|
-
const c =
|
|
1848
|
+
r.autoPrefix && (a.postprocess = I(a.postprocess)).unshift(Bn(n.createElement("div").style)), (k = r.configResolved) == null || k.call(r, o, a);
|
|
1849
|
+
const c = dn(o, a), u = (v) => r.inject ? r.inject(v) : s().prepend(v), i = () => r.rootElement ? r.rootElement() : n.body, f = /* @__PURE__ */ new Map();
|
|
1848
1850
|
let p = !0, h = /* @__PURE__ */ new Set(), g, _, y = [];
|
|
1849
|
-
const
|
|
1850
|
-
y.push(
|
|
1851
|
+
const x = () => new Promise((v) => {
|
|
1852
|
+
y.push(v), _ != null && clearTimeout(_), _ = setTimeout(() => m().then(() => {
|
|
1851
1853
|
const A = y;
|
|
1852
1854
|
y = [], A.forEach((C) => C());
|
|
1853
1855
|
}), 0);
|
|
1854
1856
|
});
|
|
1855
|
-
function w(
|
|
1856
|
-
if (
|
|
1857
|
+
function w(v) {
|
|
1858
|
+
if (v.nodeType !== 1)
|
|
1857
1859
|
return;
|
|
1858
|
-
const A =
|
|
1860
|
+
const A = v;
|
|
1859
1861
|
A.hasAttribute(l) && A.removeAttribute(l), A.querySelectorAll(`[${l}]`).forEach((C) => {
|
|
1860
1862
|
C.removeAttribute(l);
|
|
1861
1863
|
});
|
|
1862
1864
|
}
|
|
1863
|
-
function
|
|
1864
|
-
let C = f.get(
|
|
1865
|
+
function b(v, A) {
|
|
1866
|
+
let C = f.get(v);
|
|
1865
1867
|
if (!C)
|
|
1866
|
-
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer",
|
|
1868
|
+
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", v), f.set(v, C), A == null)
|
|
1867
1869
|
u(C);
|
|
1868
1870
|
else {
|
|
1869
|
-
const
|
|
1870
|
-
M ? M.insertBefore(C,
|
|
1871
|
+
const O = b(A), M = O.parentNode;
|
|
1872
|
+
M ? M.insertBefore(C, O.nextSibling) : u(C);
|
|
1871
1873
|
}
|
|
1872
1874
|
return C;
|
|
1873
1875
|
}
|
|
1874
1876
|
async function m() {
|
|
1875
|
-
const
|
|
1876
|
-
return
|
|
1877
|
-
...
|
|
1877
|
+
const v = await c.generate(h);
|
|
1878
|
+
return v.layers.reduce((A, C) => (b(C, A).innerHTML = v.getLayer(C) ?? "", C), void 0), h = v.matched, {
|
|
1879
|
+
...v,
|
|
1878
1880
|
getStyleElement: (A) => f.get(A),
|
|
1879
1881
|
getStyleElements: () => f
|
|
1880
1882
|
};
|
|
1881
1883
|
}
|
|
1882
|
-
async function
|
|
1884
|
+
async function S(v) {
|
|
1883
1885
|
const A = h.size;
|
|
1884
|
-
await c.applyExtractors(
|
|
1886
|
+
await c.applyExtractors(v, void 0, h), A !== h.size && await x();
|
|
1885
1887
|
}
|
|
1886
|
-
async function d(
|
|
1887
|
-
const A =
|
|
1888
|
-
A && (await
|
|
1888
|
+
async function d(v = i()) {
|
|
1889
|
+
const A = v && v.outerHTML;
|
|
1890
|
+
A && (await S(`${A} ${zn(A)}`), w(s()), w(v));
|
|
1889
1891
|
}
|
|
1890
|
-
const
|
|
1891
|
-
p ||
|
|
1892
|
+
const E = new MutationObserver((v) => {
|
|
1893
|
+
p || v.forEach(async (A) => {
|
|
1892
1894
|
if (A.target.nodeType !== 1)
|
|
1893
1895
|
return;
|
|
1894
1896
|
const C = A.target;
|
|
1895
|
-
for (const
|
|
1896
|
-
if (C ===
|
|
1897
|
+
for (const O of f)
|
|
1898
|
+
if (C === O[1])
|
|
1897
1899
|
return;
|
|
1898
1900
|
if (A.type === "childList")
|
|
1899
|
-
A.addedNodes.forEach(async (
|
|
1900
|
-
if (
|
|
1901
|
+
A.addedNodes.forEach(async (O) => {
|
|
1902
|
+
if (O.nodeType !== 1)
|
|
1901
1903
|
return;
|
|
1902
|
-
const M =
|
|
1903
|
-
g && !g(M) || (await
|
|
1904
|
+
const M = O;
|
|
1905
|
+
g && !g(M) || (await S(M.outerHTML), w(M));
|
|
1904
1906
|
});
|
|
1905
1907
|
else {
|
|
1906
1908
|
if (g && !g(C))
|
|
1907
1909
|
return;
|
|
1908
1910
|
if (A.attributeName !== l) {
|
|
1909
|
-
const
|
|
1910
|
-
await
|
|
1911
|
+
const O = Array.from(C.attributes).map((j) => j.value ? `${j.name}="${j.value}"` : j.name).join(" "), M = `<${C.tagName.toLowerCase()} ${O}>`;
|
|
1912
|
+
await S(M);
|
|
1911
1913
|
}
|
|
1912
1914
|
C.hasAttribute(l) && C.removeAttribute(l);
|
|
1913
1915
|
}
|
|
1914
1916
|
});
|
|
1915
1917
|
});
|
|
1916
|
-
let
|
|
1917
|
-
function
|
|
1918
|
+
let R = !1;
|
|
1919
|
+
function $() {
|
|
1918
1920
|
var A, C;
|
|
1919
|
-
if (
|
|
1921
|
+
if (R)
|
|
1920
1922
|
return;
|
|
1921
|
-
const
|
|
1922
|
-
|
|
1923
|
+
const v = (A = r.observer) != null && A.target ? r.observer.target() : i();
|
|
1924
|
+
v && (E.observe(v, {
|
|
1923
1925
|
childList: !0,
|
|
1924
1926
|
subtree: !0,
|
|
1925
1927
|
attributes: !0,
|
|
1926
1928
|
attributeFilter: (C = r.observer) == null ? void 0 : C.attributeFilter
|
|
1927
|
-
}),
|
|
1929
|
+
}), R = !0);
|
|
1928
1930
|
}
|
|
1929
1931
|
function N() {
|
|
1930
|
-
r.bypassDefined &&
|
|
1932
|
+
r.bypassDefined && Wn(c.blocked), d(), $();
|
|
1931
1933
|
}
|
|
1932
1934
|
function P() {
|
|
1933
1935
|
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", N) : N();
|
|
1934
1936
|
}
|
|
1935
|
-
const
|
|
1937
|
+
const V = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1936
1938
|
version: c.version,
|
|
1937
1939
|
uno: c,
|
|
1938
|
-
async extract(
|
|
1939
|
-
|
|
1940
|
+
async extract(v) {
|
|
1941
|
+
U(v) || (v.forEach((A) => h.add(A)), v = ""), await S(v);
|
|
1940
1942
|
},
|
|
1941
1943
|
extractAll: d,
|
|
1942
|
-
inspect(
|
|
1943
|
-
g =
|
|
1944
|
+
inspect(v) {
|
|
1945
|
+
g = v;
|
|
1944
1946
|
},
|
|
1945
|
-
toggleObserver(
|
|
1946
|
-
|
|
1947
|
+
toggleObserver(v) {
|
|
1948
|
+
v === void 0 ? p = !p : p = !!v, !R && !p && P();
|
|
1947
1949
|
},
|
|
1948
1950
|
update: m,
|
|
1949
|
-
presets: ((
|
|
1951
|
+
presets: ((T = t.__unocss_runtime) == null ? void 0 : T.presets) ?? {}
|
|
1950
1952
|
};
|
|
1951
|
-
((L = r.ready) == null ? void 0 : L.call(r,
|
|
1953
|
+
((L = r.ready) == null ? void 0 : L.call(r, V)) !== !1 && (p = !1, P());
|
|
1952
1954
|
}
|
|
1953
|
-
function
|
|
1955
|
+
function Wn(e = /* @__PURE__ */ new Set()) {
|
|
1954
1956
|
for (let t = 0; t < document.styleSheets.length; t++) {
|
|
1955
1957
|
const n = document.styleSheets[t];
|
|
1956
1958
|
let s;
|
|
@@ -1969,10 +1971,10 @@ function Gn(e = /* @__PURE__ */ new Set()) {
|
|
|
1969
1971
|
}
|
|
1970
1972
|
return e;
|
|
1971
1973
|
}
|
|
1972
|
-
|
|
1974
|
+
qn({
|
|
1973
1975
|
defaults: {
|
|
1974
1976
|
presets: [
|
|
1975
|
-
|
|
1977
|
+
Gn({
|
|
1976
1978
|
prefix: ["i-", ""],
|
|
1977
1979
|
collections: {},
|
|
1978
1980
|
cdn: "https://esm.sh/",
|