@vue/devtools-electron 7.3.1 → 7.3.3

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.
@@ -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*:/, ze = /"(?: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
- function He(e, t) {
1
+ const ze = /"(?:_|\\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*:/, Ve = /"(?: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*:/, He = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
2
+ function Be(e, t) {
3
3
  if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
4
- Be(e);
4
+ qe(e);
5
5
  return;
6
6
  }
7
7
  return t;
8
8
  }
9
- function Be(e) {
9
+ function qe(e) {
10
10
  console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
11
11
  }
12
- function qe(e, t = {}) {
12
+ function Ge(e, t = {}) {
13
13
  if (typeof e != "string")
14
14
  return e;
15
15
  const n = e.trim();
@@ -35,16 +35,16 @@ function qe(e, t = {}) {
35
35
  if (r === "-infinity")
36
36
  return Number.NEGATIVE_INFINITY;
37
37
  }
38
- if (!Ve.test(e)) {
38
+ if (!He.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) || ze.test(e)) {
44
+ if (ze.test(e) || Ve.test(e)) {
45
45
  if (t.strict)
46
46
  throw new Error("[destr] Possible prototype pollution");
47
- return JSON.parse(e, He);
47
+ return JSON.parse(e, Be);
48
48
  }
49
49
  return JSON.parse(e);
50
50
  } catch (r) {
@@ -53,61 +53,61 @@ function qe(e, t = {}) {
53
53
  return e;
54
54
  }
55
55
  }
56
- const Ge = /#/g, We = /&/g, Je = /\//g, Qe = /=/g, re = /\+/g, Ke = /%5e/gi, Ye = /%60/gi, Xe = /%7c/gi, Ze = /%20/gi;
57
- function et(e) {
58
- return encodeURI("" + e).replace(Xe, "|");
56
+ const We = /#/g, Je = /&/g, Qe = /\//g, Ke = /=/g, se = /\+/g, Ye = /%5e/gi, Xe = /%60/gi, Ze = /%7c/gi, et = /%20/gi;
57
+ function tt(e) {
58
+ return encodeURI("" + e).replace(Ze, "|");
59
59
  }
60
- function ee(e) {
61
- return et(typeof e == "string" ? e : JSON.stringify(e)).replace(re, "%2B").replace(Ze, "+").replace(Ge, "%23").replace(We, "%26").replace(Ye, "`").replace(Ke, "^").replace(Je, "%2F");
60
+ function te(e) {
61
+ return tt(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(et, "+").replace(We, "%23").replace(Je, "%26").replace(Xe, "`").replace(Ye, "^").replace(Qe, "%2F");
62
62
  }
63
- function Q(e) {
64
- return ee(e).replace(Qe, "%3D");
63
+ function K(e) {
64
+ return te(e).replace(Ke, "%3D");
65
65
  }
66
- function xe(e = "") {
66
+ function Ee(e = "") {
67
67
  try {
68
68
  return decodeURIComponent("" + e);
69
69
  } catch {
70
70
  return "" + e;
71
71
  }
72
72
  }
73
- function tt(e) {
74
- return xe(e.replace(re, " "));
75
- }
76
73
  function nt(e) {
77
- return xe(e.replace(re, " "));
74
+ return Ee(e.replace(se, " "));
75
+ }
76
+ function rt(e) {
77
+ return Ee(e.replace(se, " "));
78
78
  }
79
- function rt(e = "") {
79
+ function st(e = "") {
80
80
  const t = {};
81
81
  e[0] === "?" && (e = e.slice(1));
82
82
  for (const n of e.split("&")) {
83
83
  const r = n.match(/([^=]+)=?(.*)/) || [];
84
84
  if (r.length < 2)
85
85
  continue;
86
- const s = tt(r[1]);
86
+ const s = nt(r[1]);
87
87
  if (s === "__proto__" || s === "constructor")
88
88
  continue;
89
- const o = nt(r[2] || "");
89
+ const o = rt(r[2] || "");
90
90
  t[s] === void 0 ? t[s] = o : Array.isArray(t[s]) ? t[s].push(o) : t[s] = [t[s], o];
91
91
  }
92
92
  return t;
93
93
  }
94
- function st(e, t) {
95
- return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${Q(e)}=${ee(n)}`).join("&") : `${Q(e)}=${ee(t)}` : Q(e);
94
+ function ot(e, t) {
95
+ return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${K(e)}=${te(n)}`).join("&") : `${K(e)}=${te(t)}` : K(e);
96
96
  }
97
- function ot(e) {
98
- return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => st(t, e[t])).filter(Boolean).join("&");
97
+ function it(e) {
98
+ return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => ot(t, e[t])).filter(Boolean).join("&");
99
99
  }
100
- const it = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, at = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, ct = /^([/\\]\s*){2,}[^/\\]/, lt = /\/$|\/\?|\/#/, ut = /^\.?\//;
101
- function Ee(e, t = {}) {
102
- return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ? it.test(e) : at.test(e) || (t.acceptRelative ? ct.test(e) : !1);
100
+ const at = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, ct = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, lt = /^([/\\]\s*){2,}[^/\\]/, ut = /\/$|\/\?|\/#/, ft = /^\.?\//;
101
+ function ke(e, t = {}) {
102
+ return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ? at.test(e) : ct.test(e) || (t.acceptRelative ? lt.test(e) : !1);
103
103
  }
104
- function te(e = "", t) {
105
- return t ? lt.test(e) : e.endsWith("/");
104
+ function ne(e = "", t) {
105
+ return t ? ut.test(e) : e.endsWith("/");
106
106
  }
107
- function ft(e = "", t) {
107
+ function pt(e = "", t) {
108
108
  if (!t)
109
- return (te(e) ? e.slice(0, -1) : e) || "/";
110
- if (!te(e, !0))
109
+ return (ne(e) ? e.slice(0, -1) : e) || "/";
110
+ if (!ne(e, !0))
111
111
  return e || "/";
112
112
  let n = e, r = "";
113
113
  const s = e.indexOf("#");
@@ -115,10 +115,10 @@ function ft(e = "", t) {
115
115
  const [o, ...a] = n.split("?");
116
116
  return ((o.endsWith("/") ? o.slice(0, -1) : o) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + r;
117
117
  }
118
- function pt(e = "", t) {
118
+ function dt(e = "", t) {
119
119
  if (!t)
120
120
  return e.endsWith("/") ? e : e + "/";
121
- if (te(e, !0))
121
+ if (ne(e, !0))
122
122
  return e || "/";
123
123
  let n = e, r = "";
124
124
  const s = e.indexOf("#");
@@ -127,34 +127,34 @@ function pt(e = "", t) {
127
127
  const [o, ...a] = n.split("?");
128
128
  return o + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + r;
129
129
  }
130
- function dt(e, t) {
131
- if (mt(t) || Ee(e))
130
+ function ht(e, t) {
131
+ if (gt(t) || ke(e))
132
132
  return e;
133
- const n = ft(t);
134
- return e.startsWith(n) ? e : _t(n, e);
133
+ const n = pt(t);
134
+ return e.startsWith(n) ? e : yt(n, e);
135
135
  }
136
- function ht(e, t) {
137
- const n = $e(e), r = { ...rt(n.search), ...t };
138
- return n.search = ot(r), yt(n);
136
+ function mt(e, t) {
137
+ const n = Ae(e), r = { ...st(n.search), ...t };
138
+ return n.search = it(r), bt(n);
139
139
  }
140
- function mt(e) {
140
+ function gt(e) {
141
141
  return !e || e === "/";
142
142
  }
143
- function gt(e) {
143
+ function _t(e) {
144
144
  return e && e !== "/";
145
145
  }
146
- function _t(e, ...t) {
146
+ function yt(e, ...t) {
147
147
  let n = e || "";
148
- for (const r of t.filter((s) => gt(s)))
148
+ for (const r of t.filter((s) => _t(s)))
149
149
  if (n) {
150
- const s = r.replace(ut, "");
151
- n = pt(n) + s;
150
+ const s = r.replace(ft, "");
151
+ n = dt(n) + s;
152
152
  } else
153
153
  n = r;
154
154
  return n;
155
155
  }
156
- const ke = Symbol.for("ufo:protocolRelative");
157
- function $e(e = "", t) {
156
+ const $e = Symbol.for("ufo:protocolRelative");
157
+ function Ae(e = "", t) {
158
158
  const n = e.match(
159
159
  /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
160
160
  );
@@ -170,9 +170,9 @@ function $e(e = "", t) {
170
170
  hash: ""
171
171
  };
172
172
  }
173
- if (!Ee(e, { acceptRelative: !0 }))
174
- return t ? $e(t + e) : ae(e);
175
- const [, r = "", s, o = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = o.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: f, hash: i } = ae(
173
+ if (!ke(e, { acceptRelative: !0 }))
174
+ return t ? Ae(t + e) : ce(e);
175
+ const [, r = "", s, o = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = o.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: f, hash: i } = ce(
176
176
  l.replace(/\/(?=[A-Za-z]:)/, "")
177
177
  );
178
178
  return {
@@ -182,10 +182,10 @@ function $e(e = "", t) {
182
182
  pathname: c,
183
183
  search: f,
184
184
  hash: i,
185
- [ke]: !r
185
+ [$e]: !r
186
186
  };
187
187
  }
188
- function ae(e = "") {
188
+ function ce(e = "") {
189
189
  const [t = "", n = "", r = ""] = (e.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
190
190
  return {
191
191
  pathname: t,
@@ -193,66 +193,66 @@ function ae(e = "") {
193
193
  hash: r
194
194
  };
195
195
  }
196
- function yt(e) {
196
+ function bt(e) {
197
197
  const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", r = e.hash || "", s = e.auth ? e.auth + "@" : "", o = e.host || "";
198
- return (e.protocol || e[ke] ? (e.protocol || "") + "//" : "") + s + o + t + n + r;
198
+ return (e.protocol || e[$e] ? (e.protocol || "") + "//" : "") + s + o + t + n + r;
199
199
  }
200
- class bt extends Error {
200
+ class vt 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 vt(e) {
205
+ function wt(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", r = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", s = `[${n}] ${JSON.stringify(r)}`, o = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${s}: ${o}${t ? ` ${t}` : ""}`, l = new bt(
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", r = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", s = `[${n}] ${JSON.stringify(r)}`, o = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${s}: ${o}${t ? ` ${t}` : ""}`, l = new vt(
208
208
  a,
209
209
  e.error ? { cause: e.error } : void 0
210
210
  );
211
- for (const h of ["request", "options", "response"])
212
- Object.defineProperty(l, h, {
211
+ for (const m of ["request", "options", "response"])
212
+ Object.defineProperty(l, m, {
213
213
  get() {
214
- return e[h];
214
+ return e[m];
215
215
  }
216
216
  });
217
- for (const [h, m] of [
217
+ for (const [m, _] of [
218
218
  ["data", "_data"],
219
219
  ["status", "status"],
220
220
  ["statusCode", "status"],
221
221
  ["statusText", "statusText"],
222
222
  ["statusMessage", "statusText"]
223
223
  ])
224
- Object.defineProperty(l, h, {
224
+ Object.defineProperty(l, m, {
225
225
  get() {
226
- return e.response && e.response[m];
226
+ return e.response && e.response[_];
227
227
  }
228
228
  });
229
229
  return l;
230
230
  }
231
- const wt = new Set(
231
+ const St = new Set(
232
232
  Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
233
233
  );
234
- function ce(e = "GET") {
235
- return wt.has(e.toUpperCase());
234
+ function le(e = "GET") {
235
+ return St.has(e.toUpperCase());
236
236
  }
237
- function St(e) {
237
+ function xt(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 xt = /* @__PURE__ */ new Set([
243
+ const Et = /* @__PURE__ */ new Set([
244
244
  "image/svg",
245
245
  "application/xml",
246
246
  "application/xhtml",
247
247
  "application/html"
248
- ]), Et = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
249
- function kt(e = "") {
248
+ ]), kt = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
249
+ function $t(e = "") {
250
250
  if (!e)
251
251
  return "json";
252
252
  const t = e.split(";").shift() || "";
253
- return Et.test(t) ? "json" : xt.has(t) || t.startsWith("text/") ? "text" : "blob";
253
+ return kt.test(t) ? "json" : Et.has(t) || t.startsWith("text/") ? "text" : "blob";
254
254
  }
255
- function $t(e, t, n = globalThis.Headers) {
255
+ function At(e, t, n = globalThis.Headers) {
256
256
  const r = {
257
257
  ...t,
258
258
  ...e
@@ -270,7 +270,7 @@ function $t(e, t, n = globalThis.Headers) {
270
270
  }
271
271
  return r;
272
272
  }
273
- const At = /* @__PURE__ */ new Set([
273
+ const Ct = /* @__PURE__ */ new Set([
274
274
  408,
275
275
  // Request Timeout
276
276
  409,
@@ -287,8 +287,8 @@ const At = /* @__PURE__ */ new Set([
287
287
  // Service Unavailable
288
288
  504
289
289
  // Gateway Timeout
290
- ]), Ct = /* @__PURE__ */ new Set([101, 204, 205, 304]);
291
- function Ae(e = {}) {
290
+ ]), Ot = /* @__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,
@@ -298,59 +298,59 @@ function Ae(e = {}) {
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
- typeof l.options.retry == "number" ? i = l.options.retry : i = ce(l.options.method) ? 0 : 1;
301
+ typeof l.options.retry == "number" ? i = l.options.retry : i = le(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) : At.has(u))) {
303
+ if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(u) : Ct.has(u))) {
304
304
  const d = l.options.retryDelay || 0;
305
- return d > 0 && await new Promise((h) => setTimeout(h, d)), o(l.request, {
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
  });
309
309
  }
310
310
  }
311
- const f = vt(l);
311
+ const f = wt(l);
312
312
  throw Error.captureStackTrace && Error.captureStackTrace(f, o), f;
313
313
  }
314
314
  const o = async function(c, f = {}) {
315
- var h;
315
+ var m;
316
316
  const i = {
317
317
  request: c,
318
- options: $t(f, e.defaults, n),
318
+ options: At(f, e.defaults, n),
319
319
  response: void 0,
320
320
  error: void 0
321
321
  };
322
- i.options.method = (h = i.options.method) == null ? void 0 : h.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = dt(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = ht(i.request, {
322
+ i.options.method = (m = i.options.method) == null ? void 0 : m.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = ht(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = mt(i.request, {
323
323
  ...i.options.params,
324
324
  ...i.options.query
325
- }))), i.options.body && ce(i.options.method) && (St(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")) : (
325
+ }))), i.options.body && le(i.options.method) && (xt(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")) : (
326
326
  // ReadableStream Body
327
327
  ("pipeTo" in i.options.body && typeof i.options.body.pipeTo == "function" || // Node.js Stream Body
328
328
  typeof i.options.body.pipe == "function") && ("duplex" in i.options || (i.options.duplex = "half"))
329
329
  ));
330
330
  let u;
331
331
  if (!i.options.signal && i.options.timeout) {
332
- const m = new r();
332
+ const _ = new r();
333
333
  u = setTimeout(
334
- () => m.abort(),
334
+ () => _.abort(),
335
335
  i.options.timeout
336
- ), i.options.signal = m.signal;
336
+ ), i.options.signal = _.signal;
337
337
  }
338
338
  try {
339
339
  i.response = await t(
340
340
  i.request,
341
341
  i.options
342
342
  );
343
- } catch (m) {
344
- return i.error = m, i.options.onRequestError && await i.options.onRequestError(i), await s(i);
343
+ } catch (_) {
344
+ return i.error = _, i.options.onRequestError && await i.options.onRequestError(i), await s(i);
345
345
  } finally {
346
346
  u && clearTimeout(u);
347
347
  }
348
- if (i.response.body && !Ct.has(i.response.status) && i.options.method !== "HEAD") {
349
- const m = (i.options.parseResponse ? "json" : i.options.responseType) || kt(i.response.headers.get("content-type") || "");
350
- switch (m) {
348
+ if (i.response.body && !Ot.has(i.response.status) && i.options.method !== "HEAD") {
349
+ const _ = (i.options.parseResponse ? "json" : i.options.responseType) || $t(i.response.headers.get("content-type") || "");
350
+ switch (_) {
351
351
  case "json": {
352
- const g = await i.response.text(), b = i.options.parseResponse || qe;
353
- i.response._data = b(g);
352
+ const y = await i.response.text(), w = i.options.parseResponse || Ge;
353
+ i.response._data = w(y);
354
354
  break;
355
355
  }
356
356
  case "stream": {
@@ -358,14 +358,14 @@ function Ae(e = {}) {
358
358
  break;
359
359
  }
360
360
  default:
361
- i.response._data = await i.response[m]();
361
+ i.response._data = await i.response[_]();
362
362
  }
363
363
  }
364
364
  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 s(i)) : i.response;
365
365
  }, a = async function(c, f) {
366
366
  return (await o(c, f))._data;
367
367
  };
368
- return a.raw = o, a.native = (...l) => t(...l), a.create = (l = {}) => Ae({
368
+ return a.raw = o, a.native = (...l) => t(...l), a.create = (l = {}) => Ce({
369
369
  ...e,
370
370
  defaults: {
371
371
  ...e.defaults,
@@ -373,7 +373,7 @@ function Ae(e = {}) {
373
373
  }
374
374
  }), a;
375
375
  }
376
- const se = function() {
376
+ const oe = function() {
377
377
  if (typeof globalThis < "u")
378
378
  return globalThis;
379
379
  if (typeof self < "u")
@@ -383,7 +383,7 @@ const se = function() {
383
383
  if (typeof global < "u")
384
384
  return global;
385
385
  throw new Error("unable to locate global object");
386
- }(), Ot = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), Tt = se.Headers, jt = se.AbortController, Rt = Ae({ fetch: Ot, Headers: Tt, AbortController: jt }), Mt = Rt;
386
+ }(), Rt = oe.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), Tt = oe.Headers, jt = oe.AbortController, Mt = Ce({ fetch: Rt, Headers: Tt, AbortController: jt }), Lt = Mt;
387
387
  function Ut(e) {
388
388
  const t = e.length;
389
389
  let n = -1, r, s = "";
@@ -425,26 +425,26 @@ function Ut(e) {
425
425
  }
426
426
  return s;
427
427
  }
428
- const K = Ut;
429
- function L(e = []) {
428
+ const Y = Ut;
429
+ function U(e = []) {
430
430
  return Array.isArray(e) ? e : [e];
431
431
  }
432
- function W(e) {
432
+ function J(e) {
433
433
  return Array.from(new Set(e));
434
434
  }
435
- function Lt(e, t) {
435
+ function Pt(e, t) {
436
436
  return e.reduce((n, r) => (n.findIndex((o) => t(r, o)) === -1 && n.push(r), n), []);
437
437
  }
438
438
  function M(e) {
439
439
  return typeof e == "string";
440
440
  }
441
- function V(e) {
441
+ function H(e) {
442
442
  return M(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
443
443
  }
444
- function Pt(e) {
445
- return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => V(t)) : [e] : [V(e)];
446
- }
447
444
  function Nt(e) {
445
+ return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => H(t)) : [e] : [H(e)];
446
+ }
447
+ function Dt(e) {
448
448
  return e.filter(([t, n], r) => {
449
449
  if (t.startsWith("$$"))
450
450
  return !1;
@@ -454,55 +454,54 @@ function Nt(e) {
454
454
  return !0;
455
455
  });
456
456
  }
457
- function Y(e) {
458
- return e == null ? "" : Nt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
457
+ function X(e) {
458
+ return e == null ? "" : Dt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
459
459
  }
460
- function H(e) {
460
+ function B(e) {
461
461
  return e && typeof e == "object" && !Array.isArray(e);
462
462
  }
463
- function Ce(e, t, n = !1) {
463
+ function Oe(e, t, n = !1) {
464
464
  const r = e, s = t;
465
465
  if (Array.isArray(s))
466
466
  return n && Array.isArray(s) ? [...r, ...s] : [...s];
467
467
  const o = { ...r };
468
- return H(r) && H(s) && Object.keys(s).forEach((a) => {
469
- H(r[a]) && H(s[a]) || Array.isArray(r[a]) && Array.isArray(s[a]) ? o[a] = Ce(r[a], s[a], n) : Object.assign(o, { [a]: s[a] });
468
+ return B(r) && B(s) && Object.keys(s).forEach((a) => {
469
+ B(r[a]) && B(s[a]) || Array.isArray(r[a]) && Array.isArray(s[a]) ? o[a] = Oe(r[a], s[a], n) : Object.assign(o, { [a]: s[a] });
470
470
  }), o;
471
471
  }
472
- function q(e) {
472
+ function G(e) {
473
473
  let t, n, r;
474
474
  if (Array.isArray(e)) {
475
475
  for (n = Array(t = e.length); t--; )
476
- n[t] = (r = e[t]) && typeof r == "object" ? q(r) : r;
476
+ n[t] = (r = e[t]) && typeof r == "object" ? G(r) : r;
477
477
  return n;
478
478
  }
479
479
  if (Object.prototype.toString.call(e) === "[object Object]") {
480
480
  n = {};
481
481
  for (t in e)
482
482
  t === "__proto__" ? Object.defineProperty(n, t, {
483
- value: q(e[t]),
483
+ value: G(e[t]),
484
484
  configurable: !0,
485
485
  enumerable: !0,
486
486
  writable: !0
487
- }) : n[t] = (r = e[t]) && typeof r == "object" ? q(r) : r;
487
+ }) : n[t] = (r = e[t]) && typeof r == "object" ? G(r) : r;
488
488
  return n;
489
489
  }
490
490
  return e;
491
491
  }
492
- function Dt(e) {
493
- return M(e[0]);
494
- }
495
492
  function It(e) {
496
493
  return M(e[0]);
497
494
  }
498
- const le = "$$shortcut-no-merge";
499
495
  function Ft(e) {
496
+ return M(e[0]);
497
+ }
498
+ function zt(e) {
500
499
  return typeof e == "function" ? { match: e } : e;
501
500
  }
502
501
  function ue(e) {
503
502
  return e.length === 3;
504
503
  }
505
- function zt(e) {
504
+ function fe(e) {
506
505
  return e != null;
507
506
  }
508
507
  function Vt() {
@@ -559,7 +558,7 @@ class Wt extends Map {
559
558
  }
560
559
  }
561
560
  var Jt = Object.defineProperty, Qt = (e, t, n) => t in e ? Jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kt = (e, t, n) => (Qt(e, t + "", n), n);
562
- class Oe extends Set {
561
+ class Re extends Set {
563
562
  constructor(t) {
564
563
  super(t), Kt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
565
564
  }
@@ -579,13 +578,13 @@ class Oe extends Set {
579
578
  return this._map.set(t, n), super.add(t);
580
579
  }
581
580
  }
582
- function X(e) {
583
- return e instanceof Oe;
581
+ function Z(e) {
582
+ return e instanceof Re;
584
583
  }
585
- const B = {};
584
+ const q = {};
586
585
  function Yt(e = ["-", ":"]) {
587
586
  const t = e.join("|");
588
- return B[t] || (B[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), B[t].lastIndex = 0, B[t];
587
+ return q[t] || (q[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), q[t].lastIndex = 0, q[t];
589
588
  }
590
589
  function Xt(e, t = ["-", ":"], n = 5) {
591
590
  const r = Yt(t);
@@ -594,23 +593,23 @@ function Xt(e, t = ["-", ":"], n = 5) {
594
593
  do
595
594
  s = !1, o = o.replace(
596
595
  r,
597
- (f, i, u, d, h) => {
598
- var b;
596
+ (f, i, u, d, m) => {
597
+ var w;
599
598
  if (!t.includes(u))
600
599
  return f;
601
600
  s = !0, a.add(i + u);
602
- const m = h + i.length + u.length + 1, g = { length: f.length, items: [] };
603
- l.set(h, g);
604
- for (const $ of [...d.matchAll(/\S+/g)]) {
605
- const k = m + $.index;
606
- let _ = (b = l.get(k)) == null ? void 0 : b.items;
607
- _ ? l.delete(k) : _ = [{
608
- offset: k,
609
- length: $[0].length,
610
- className: $[0]
601
+ const _ = m + i.length + u.length + 1, y = { length: f.length, items: [] };
602
+ l.set(m, y);
603
+ for (const E of [...d.matchAll(/\S+/g)]) {
604
+ const $ = _ + E.index;
605
+ let h = (w = l.get($)) == null ? void 0 : w.items;
606
+ h ? l.delete($) : h = [{
607
+ offset: $,
608
+ length: E[0].length,
609
+ className: E[0]
611
610
  }];
612
- for (const S of _)
613
- S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), g.items.push(S);
611
+ for (const g of h)
612
+ g.className = g.className === "~" ? i : g.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), y.items.push(g);
614
613
  }
615
614
  return "$".repeat(f.length);
616
615
  }
@@ -646,9 +645,9 @@ function Zt(e, t = ["-", ":"], n = 5) {
646
645
  const r = Xt(e, t, n);
647
646
  return typeof e == "string" ? r.expanded : e;
648
647
  }
649
- const fe = /* @__PURE__ */ new Set();
648
+ const pe = /* @__PURE__ */ new Set();
650
649
  function Te(e) {
651
- fe.has(e) || (console.warn("[unocss]", e), fe.add(e));
650
+ pe.has(e) || (console.warn("[unocss]", e), pe.add(e));
652
651
  }
653
652
  const en = /[\\:]?[\s'"`;{}]+/g;
654
653
  function tn(e) {
@@ -672,22 +671,22 @@ function rn() {
672
671
  }
673
672
  };
674
673
  }
675
- const G = "default", ne = "preflights", sn = "shortcuts", on = "imports", an = {
674
+ const W = "default", re = "preflights", sn = "shortcuts", on = "imports", an = {
676
675
  [on]: -200,
677
- [ne]: -100,
676
+ [re]: -100,
678
677
  [sn]: -10,
679
- [G]: 0
678
+ [W]: 0
680
679
  };
681
680
  function je(e) {
682
- return L(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
681
+ return U(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
683
682
  }
684
- const pe = "_uno_resolved";
683
+ const de = "_uno_resolved";
685
684
  function cn(e) {
686
685
  var r;
687
686
  let t = typeof e == "function" ? e() : e;
688
- if (pe in t)
687
+ if (de in t)
689
688
  return t;
690
- t = { ...t }, Object.defineProperty(t, pe, {
689
+ t = { ...t }, Object.defineProperty(t, de, {
691
690
  value: !0,
692
691
  enumerable: !1
693
692
  });
@@ -696,22 +695,22 @@ function cn(e) {
696
695
  const s = (o) => {
697
696
  o[2] || (o[2] = {});
698
697
  const a = o[2];
699
- a.prefix == null && t.prefix && (a.prefix = L(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
698
+ a.prefix == null && t.prefix && (a.prefix = U(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
700
699
  };
701
700
  n == null || n.forEach(s), (r = t.rules) == null || r.forEach(s);
702
701
  }
703
702
  return t;
704
703
  }
705
- function Re(e) {
704
+ function Me(e) {
706
705
  const t = cn(e);
707
706
  if (!t.presets)
708
707
  return [t];
709
- const n = (t.presets || []).flatMap(L).flatMap(Re);
708
+ const n = (t.presets || []).flatMap(U).flatMap(Me);
710
709
  return [t, ...n];
711
710
  }
712
- function de(e = {}, t = {}) {
713
- var S, w;
714
- const n = Object.assign({}, t, e), r = Lt((n.presets || []).flatMap(L).flatMap(Re), (p, v) => p.name === v.name), s = [
711
+ function he(e = {}, t = {}) {
712
+ var g, b;
713
+ const n = Object.assign({}, t, e), r = Pt((n.presets || []).flatMap(U).flatMap(Me), (p, S) => p.name === S.name), s = [
715
714
  ...r.filter((p) => p.enforce === "pre"),
716
715
  ...r.filter((p) => !p.enforce),
717
716
  ...r.filter((p) => p.enforce === "post")
@@ -720,42 +719,42 @@ function de(e = {}, t = {}) {
720
719
  n
721
720
  ], a = [...o].reverse(), l = Object.assign({}, an, ...o.map((p) => p.layers));
722
721
  function c(p) {
723
- return W(o.flatMap((v) => L(v[p] || [])));
722
+ return J(o.flatMap((S) => U(S[p] || [])));
724
723
  }
725
724
  const f = c("extractors");
726
- let i = (S = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : S.extractorDefault;
727
- i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p, v) => (p.order || 0) - (v.order || 0));
728
- const u = c("rules"), d = {}, h = u.length, m = u.map((p, v) => {
725
+ let i = (g = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : g.extractorDefault;
726
+ i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p, S) => (p.order || 0) - (S.order || 0));
727
+ const u = c("rules"), d = {}, m = u.length, _ = u.map((p, S) => {
729
728
  var C;
730
- if (Dt(p)) {
731
- L(((C = p[2]) == null ? void 0 : C.prefix) || "").forEach((T) => {
732
- d[T + p[0]] = [v, p[1], p[2], p];
729
+ if (It(p)) {
730
+ U(((C = p[2]) == null ? void 0 : C.prefix) || "").forEach((R) => {
731
+ d[R + p[0]] = [S, p[1], p[2], p];
733
732
  });
734
733
  return;
735
734
  }
736
- return [v, ...p];
735
+ return [S, ...p];
737
736
  }).filter(Boolean).reverse();
738
- let g = ln(o.map((p) => p.theme));
739
- const b = c("extendTheme");
740
- for (const p of b)
741
- g = p(g) || g;
742
- const $ = {
743
- templates: W(o.flatMap((p) => {
744
- var v;
745
- return L((v = p.autocomplete) == null ? void 0 : v.templates);
737
+ let y = ln(o.map((p) => p.theme));
738
+ const w = c("extendTheme");
739
+ for (const p of w)
740
+ y = p(y) || y;
741
+ const E = {
742
+ templates: J(o.flatMap((p) => {
743
+ var S;
744
+ return U((S = p.autocomplete) == null ? void 0 : S.templates);
746
745
  })),
747
746
  extractors: o.flatMap((p) => {
748
- var v;
749
- return L((v = p.autocomplete) == null ? void 0 : v.extractors);
750
- }).sort((p, v) => (p.order || 0) - (v.order || 0)),
747
+ var S;
748
+ return U((S = p.autocomplete) == null ? void 0 : S.extractors);
749
+ }).sort((p, S) => (p.order || 0) - (S.order || 0)),
751
750
  shorthands: un(o.map((p) => {
752
- var v;
753
- return ((v = p.autocomplete) == null ? void 0 : v.shorthands) || {};
751
+ var S;
752
+ return ((S = p.autocomplete) == null ? void 0 : S.shorthands) || {};
754
753
  }))
755
754
  };
756
- let k = c("separators");
757
- k.length || (k = [":", "-"]);
758
- const _ = {
755
+ let $ = c("separators");
756
+ $.length || ($ = [":", "-"]);
757
+ const h = {
759
758
  mergeSelectors: !0,
760
759
  warn: !0,
761
760
  sortLayers: (p) => p,
@@ -765,27 +764,27 @@ function de(e = {}, t = {}) {
765
764
  envMode: n.envMode || "build",
766
765
  shortcutsLayer: n.shortcutsLayer || "shortcuts",
767
766
  layers: l,
768
- theme: g,
769
- rulesSize: h,
770
- rulesDynamic: m,
767
+ theme: y,
768
+ rulesSize: m,
769
+ rulesDynamic: _,
771
770
  rulesStaticMap: d,
772
771
  preprocess: c("preprocess"),
773
772
  postprocess: c("postprocess"),
774
773
  preflights: c("preflights"),
775
- autocomplete: $,
776
- variants: c("variants").map(Ft).sort((p, v) => (p.order || 0) - (v.order || 0)),
774
+ autocomplete: E,
775
+ variants: c("variants").map(zt).sort((p, S) => (p.order || 0) - (S.order || 0)),
777
776
  shortcuts: je(c("shortcuts")).reverse(),
778
777
  extractors: f,
779
778
  safelist: c("safelist"),
780
- separators: k,
779
+ separators: $,
781
780
  details: n.details ?? n.envMode === "dev"
782
781
  };
783
782
  for (const p of o)
784
- (w = p == null ? void 0 : p.configResolved) == null || w.call(p, _);
785
- return _;
783
+ (b = p == null ? void 0 : p.configResolved) == null || b.call(p, h);
784
+ return h;
786
785
  }
787
786
  function ln(e) {
788
- return e.map((t) => t ? q(t) : {}).reduce((t, n) => Ce(t, n), {});
787
+ return e.map((t) => t ? G(t) : {}).reduce((t, n) => Oe(t, n), {});
789
788
  }
790
789
  function un(e) {
791
790
  return e.reduce((t, n) => {
@@ -800,14 +799,20 @@ function un(e) {
800
799
  };
801
800
  }, {});
802
801
  }
803
- const fn = "0.60.4";
802
+ const fn = "0.61.0";
804
803
  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, D = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
804
+ const I = {
805
+ shortcutsNoMerge: "$$symbol-shortcut-no-merge",
806
+ variants: "$$symbol-variants",
807
+ parent: "$$symbol-parent",
808
+ selector: "$$symbol-selector"
809
+ };
805
810
  class hn {
806
811
  constructor(t = {}, n = {}) {
807
- this.userConfig = t, this.defaults = n, D(this, "version", fn), D(this, "_cache", /* @__PURE__ */ new Map()), D(this, "config"), D(this, "blocked", /* @__PURE__ */ new Set()), D(this, "parentOrders", /* @__PURE__ */ new Map()), D(this, "events", rn()), this.config = de(t, n), this.events.emit("config", this.config);
812
+ this.userConfig = t, this.defaults = n, D(this, "version", fn), D(this, "_cache", /* @__PURE__ */ new Map()), D(this, "config"), D(this, "blocked", /* @__PURE__ */ new Set()), D(this, "parentOrders", /* @__PURE__ */ new Map()), D(this, "events", rn()), this.config = he(t, n), this.events.emit("config", this.config);
808
813
  }
809
814
  setConfig(t, n) {
810
- 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));
815
+ t && (n && (this.defaults = n), this.userConfig = t, this.blocked.clear(), this.parentOrders.clear(), this._cache.clear(), this.config = he(t, this.defaults), this.events.emit("config", this.config));
811
816
  }
812
817
  async applyExtractors(t, n, r = /* @__PURE__ */ new Set()) {
813
818
  var o;
@@ -821,7 +826,7 @@ class hn {
821
826
  for (const a of this.config.extractors) {
822
827
  const l = await ((o = a.extract) == null ? void 0 : o.call(a, s));
823
828
  if (l)
824
- if (X(l) && X(r))
829
+ if (Z(l) && Z(r))
825
830
  for (const c of l)
826
831
  r.setCount(c, r.getCount(c) + l.getCount(c));
827
832
  else
@@ -836,6 +841,7 @@ class hn {
836
841
  currentSelector: n[1],
837
842
  theme: this.config.theme,
838
843
  generator: this,
844
+ symbols: I,
839
845
  variantHandlers: n[2],
840
846
  constructCSS: (...s) => this.constructCustomCSS(r, ...s),
841
847
  variantMatch: n
@@ -863,7 +869,7 @@ class hn {
863
869
  }
864
870
  const a = this.makeContext(t, [n || o[0], o[1], o[2], o[3]]);
865
871
  this.config.details && (a.variants = [...o[3]]);
866
- 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(zt);
872
+ 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(fe);
867
873
  if (c != null && c.length)
868
874
  return this._cache.set(r, c), c;
869
875
  this._cache.set(r, null);
@@ -879,110 +885,110 @@ class hn {
879
885
  } = n, f = this.config.outputToCssLayers, i = M(t) ? await this.applyExtractors(
880
886
  t,
881
887
  r,
882
- c ? new Oe() : /* @__PURE__ */ new Set()
888
+ c ? new Re() : /* @__PURE__ */ new Set()
883
889
  ) : Array.isArray(t) ? new Set(t) : t;
884
890
  if (a) {
885
- const w = {
891
+ const b = {
886
892
  generator: this,
887
893
  theme: this.config.theme
888
894
  };
889
- this.config.safelist.flatMap((p) => typeof p == "function" ? p(w) : p).forEach((p) => {
895
+ this.config.safelist.flatMap((p) => typeof p == "function" ? p(b) : p).forEach((p) => {
890
896
  i.has(p) || i.add(p);
891
897
  });
892
898
  }
893
899
  const u = l ? "" : `
894
- `, d = /* @__PURE__ */ new Set([G]), h = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Map();
895
- let g = {};
896
- const b = Array.from(i).map(async (w) => {
897
- var v;
898
- if (h.has(w))
900
+ `, d = /* @__PURE__ */ new Set([W]), m = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Map();
901
+ let y = {};
902
+ const w = Array.from(i).map(async (b) => {
903
+ var S;
904
+ if (m.has(b))
899
905
  return;
900
- const p = await this.parseToken(w);
906
+ const p = await this.parseToken(b);
901
907
  if (p != null) {
902
- h instanceof Map ? h.set(w, {
908
+ m instanceof Map ? m.set(b, {
903
909
  data: p,
904
- count: X(i) ? i.getCount(w) : -1
905
- }) : h.add(w);
910
+ count: Z(i) ? i.getCount(b) : -1
911
+ }) : m.add(b);
906
912
  for (const C of p) {
907
- const A = C[3] || "", T = (v = C[4]) == null ? void 0 : v.layer;
908
- m.has(A) || m.set(A, []), m.get(A).push(C), T && d.add(T);
913
+ const A = C[3] || "", R = (S = C[4]) == null ? void 0 : S.layer;
914
+ _.has(A) || _.set(A, []), _.get(A).push(C), R && d.add(R);
909
915
  }
910
916
  }
911
917
  });
912
- await Promise.all(b), await (async () => {
918
+ await Promise.all(w), await (async () => {
913
919
  if (!o)
914
920
  return;
915
- const w = {
921
+ const b = {
916
922
  generator: this,
917
923
  theme: this.config.theme
918
924
  }, p = /* @__PURE__ */ new Set([]);
919
- this.config.preflights.forEach(({ layer: v = ne }) => {
920
- d.add(v), p.add(v);
921
- }), g = Object.fromEntries(
925
+ this.config.preflights.forEach(({ layer: S = re }) => {
926
+ d.add(S), p.add(S);
927
+ }), y = Object.fromEntries(
922
928
  await Promise.all(Array.from(p).map(
923
- async (v) => {
929
+ async (S) => {
924
930
  const A = (await Promise.all(
925
- this.config.preflights.filter((T) => (T.layer || ne) === v).map(async (T) => await T.getCSS(w))
931
+ this.config.preflights.filter((R) => (R.layer || re) === S).map(async (R) => await R.getCSS(b))
926
932
  )).filter(Boolean).join(u);
927
- return [v, A];
933
+ return [S, A];
928
934
  }
929
935
  ))
930
936
  );
931
937
  })();
932
- const $ = this.config.sortLayers(Array.from(d).sort((w, p) => (this.config.layers[w] ?? 0) - (this.config.layers[p] ?? 0) || w.localeCompare(p))), k = {}, _ = (w = G) => {
938
+ const E = this.config.sortLayers(Array.from(d).sort((b, p) => (this.config.layers[b] ?? 0) - (this.config.layers[p] ?? 0) || b.localeCompare(p))), $ = {}, h = (b = W) => {
933
939
  var C;
934
- if (k[w])
935
- return k[w];
936
- let p = Array.from(m).sort((A, T) => {
940
+ if ($[b])
941
+ return $[b];
942
+ let p = Array.from(_).sort((A, R) => {
937
943
  var P;
938
- return (this.parentOrders.get(A[0]) ?? 0) - (this.parentOrders.get(T[0]) ?? 0) || ((P = A[0]) == null ? void 0 : P.localeCompare(T[0] || "")) || 0;
939
- }).map(([A, T]) => {
940
- const P = T.length, N = T.filter((O) => {
941
- var y;
942
- return (((y = O[4]) == null ? void 0 : y.layer) || G) === w;
943
- }).sort((O, y) => {
944
- var x, E, U, j, R, z, ie;
945
- return O[0] - y[0] || (((x = O[4]) == null ? void 0 : x.sort) || 0) - (((E = y[4]) == null ? void 0 : E.sort) || 0) || ((R = (U = O[5]) == null ? void 0 : U.currentSelector) == null ? void 0 : R.localeCompare(((j = y[5]) == null ? void 0 : j.currentSelector) ?? "")) || ((z = O[1]) == null ? void 0 : z.localeCompare(y[1] || "")) || ((ie = O[2]) == null ? void 0 : ie.localeCompare(y[2] || "")) || 0;
946
- }).map(([, O, y, , x, , E]) => [
944
+ return (this.parentOrders.get(A[0]) ?? 0) - (this.parentOrders.get(R[0]) ?? 0) || ((P = A[0]) == null ? void 0 : P.localeCompare(R[0] || "")) || 0;
945
+ }).map(([A, R]) => {
946
+ const P = R.length, N = R.filter((O) => {
947
+ var v;
948
+ return (((v = O[4]) == null ? void 0 : v.layer) || W) === b;
949
+ }).sort((O, v) => {
950
+ var x, k, L, T, j, V, ae;
951
+ return O[0] - v[0] || (((x = O[4]) == null ? void 0 : x.sort) || 0) - (((k = v[4]) == null ? void 0 : k.sort) || 0) || ((j = (L = O[5]) == null ? void 0 : L.currentSelector) == null ? void 0 : j.localeCompare(((T = v[5]) == null ? void 0 : T.currentSelector) ?? "")) || ((V = O[1]) == null ? void 0 : V.localeCompare(v[1] || "")) || ((ae = O[2]) == null ? void 0 : ae.localeCompare(v[2] || "")) || 0;
952
+ }).map(([, O, v, , x, , k]) => [
947
953
  [[(O && _n(O, s)) ?? "", (x == null ? void 0 : x.sort) ?? 0]],
948
- y,
949
- !!(E ?? (x == null ? void 0 : x.noMerge))
954
+ v,
955
+ !!(k ?? (x == null ? void 0 : x.noMerge))
950
956
  ]);
951
957
  if (!N.length)
952
958
  return;
953
- const I = N.reverse().map(([O, y, x], E) => {
959
+ const F = N.reverse().map(([O, v, x], k) => {
954
960
  if (!x && this.config.mergeSelectors)
955
- for (let j = E + 1; j < P; j++) {
956
- const R = N[j];
957
- if (R && !R[2] && (O && R[0] || O == null && R[0] == null) && R[1] === y)
958
- return O && R[0] && R[0].push(...O), null;
961
+ for (let T = k + 1; T < P; T++) {
962
+ const j = N[T];
963
+ if (j && !j[2] && (O && j[0] || O == null && j[0] == null) && j[1] === v)
964
+ return O && j[0] && j[0].push(...O), null;
959
965
  }
960
- const U = O ? W(O.sort((j, R) => {
961
- var z;
962
- return j[1] - R[1] || ((z = j[0]) == null ? void 0 : z.localeCompare(R[0] || "")) || 0;
963
- }).map((j) => j[0]).filter(Boolean)) : [];
964
- return U.length ? `${U.join(`,${u}`)}{${y}}` : y;
966
+ const L = O ? J(O.sort((T, j) => {
967
+ var V;
968
+ return T[1] - j[1] || ((V = T[0]) == null ? void 0 : V.localeCompare(j[0] || "")) || 0;
969
+ }).map((T) => T[0]).filter(Boolean)) : [];
970
+ return L.length ? `${L.join(`,${u}`)}{${v}}` : v;
965
971
  }).filter(Boolean).reverse().join(u);
966
972
  if (!A)
967
- return I;
968
- const F = A.split(" $$ ");
969
- return `${F.join("{")}{${u}${I}${u}${"}".repeat(F.length)}`;
973
+ return F;
974
+ const z = A.split(" $$ ");
975
+ return `${z.join("{")}{${u}${F}${u}${"}".repeat(z.length)}`;
970
976
  }).filter(Boolean).join(u);
971
- if (o && (p = [g[w], p].filter(Boolean).join(u)), f && p) {
972
- let A = typeof f == "object" ? (C = f.cssLayerName) == null ? void 0 : C.call(f, w) : void 0;
973
- A !== null && (A || (A = w), p = `@layer ${A}{${u}${p}${u}}`);
977
+ if (o && (p = [y[b], p].filter(Boolean).join(u)), f && p) {
978
+ let A = typeof f == "object" ? (C = f.cssLayerName) == null ? void 0 : C.call(f, b) : void 0;
979
+ A !== null && (A || (A = b), p = `@layer ${A}{${u}${p}${u}}`);
974
980
  }
975
- const v = l ? "" : `/* layer: ${w} */${u}`;
976
- return k[w] = p ? v + p : "";
977
- }, S = (w = $, p) => w.filter((v) => !(p != null && p.includes(v))).map((v) => _(v) || "").filter(Boolean).join(u);
981
+ const S = l ? "" : `/* layer: ${b} */${u}`;
982
+ return $[b] = p ? S + p : "";
983
+ }, g = (b = E, p) => b.filter((S) => !(p != null && p.includes(S))).map((S) => h(S) || "").filter(Boolean).join(u);
978
984
  return {
979
985
  get css() {
980
- return S();
986
+ return g();
981
987
  },
982
- layers: $,
983
- matched: h,
984
- getLayers: S,
985
- getLayer: _
988
+ layers: E,
989
+ matched: m,
990
+ getLayers: g,
991
+ getLayer: h
986
992
  };
987
993
  }
988
994
  async matchVariants(t, n) {
@@ -1005,7 +1011,7 @@ class hn {
1005
1011
  continue;
1006
1012
  f = { matcher: f };
1007
1013
  }
1008
- o = f.matcher, s.unshift(f), r.add(c), a = !0;
1014
+ o = f.matcher ?? o, s.unshift(f), r.add(c), a = !0;
1009
1015
  break;
1010
1016
  }
1011
1017
  }
@@ -1019,14 +1025,14 @@ class hn {
1019
1025
  applyVariants(t, n = t[4], r = t[1]) {
1020
1026
  const o = n.slice().sort((f, i) => (f.order || 0) - (i.order || 0)).reduceRight(
1021
1027
  (f, i) => (u) => {
1022
- var m, g;
1023
- const d = ((m = i.body) == null ? void 0 : m.call(i, u.entries)) || u.entries, h = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
1028
+ var _, y;
1029
+ const d = ((_ = i.body) == null ? void 0 : _.call(i, u.entries)) || u.entries, m = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
1024
1030
  return (i.handle ?? bn)({
1025
1031
  ...u,
1026
1032
  entries: d,
1027
- selector: ((g = i.selector) == null ? void 0 : g.call(i, u.selector, d)) || u.selector,
1028
- parent: h[0] || u.parent,
1029
- parentOrder: h[1] || u.parentOrder,
1033
+ selector: ((y = i.selector) == null ? void 0 : y.call(i, u.selector, d)) || u.selector,
1034
+ parent: m[0] || u.parent,
1035
+ parentOrder: m[1] || u.parentOrder,
1030
1036
  layer: i.layer || u.layer,
1031
1037
  sort: i.sort || u.sort
1032
1038
  }, f);
@@ -1056,10 +1062,10 @@ class hn {
1056
1062
  return c;
1057
1063
  }
1058
1064
  constructCustomCSS(t, n, r) {
1059
- const s = V(n);
1065
+ const s = H(n);
1060
1066
  if (M(s))
1061
1067
  return s;
1062
- const { selector: o, entries: a, parent: l } = this.applyVariants([0, r || t.rawSelector, s, void 0, t.variantHandlers]), c = `${o}{${Y(a)}}`;
1068
+ const { selector: o, entries: a, parent: l } = this.applyVariants([0, r || t.rawSelector, s, void 0, t.variantHandlers]), c = `${o}{${X(a)}}`;
1063
1069
  return l ? `${l}{${c}}` : c;
1064
1070
  }
1065
1071
  async parseUtil(t, n, r = !1, s) {
@@ -1069,38 +1075,60 @@ class hn {
1069
1075
  const c = this.config.rulesStaticMap[a];
1070
1076
  if (c && c[1] && (r || !((i = c[2]) != null && i.internal))) {
1071
1077
  this.config.details && n.rules.push(c[3]);
1072
- const u = c[0], d = V(c[1]), h = c[2];
1073
- return M(d) ? [[u, d, h]] : [[u, o, d, h, l]];
1078
+ const u = c[0], d = H(c[1]), m = c[2];
1079
+ return M(d) ? [[u, d, m]] : [[u, o, d, m, l]];
1074
1080
  }
1075
1081
  n.variantHandlers = l;
1076
1082
  const { rulesDynamic: f } = this.config;
1077
- for (const [u, d, h, m] of f) {
1078
- if (m != null && m.internal && !r)
1083
+ for (const [u, d, m, _] of f) {
1084
+ if (_ != null && _.internal && !r)
1079
1085
  continue;
1080
- let g = a;
1081
- if (m != null && m.prefix) {
1082
- const _ = L(m.prefix);
1086
+ let y = a;
1087
+ if (_ != null && _.prefix) {
1088
+ const h = U(_.prefix);
1083
1089
  if (s) {
1084
- const S = L(s);
1085
- if (!_.some((w) => S.includes(w)))
1090
+ const g = U(s);
1091
+ if (!h.some((b) => g.includes(b)))
1086
1092
  continue;
1087
1093
  } else {
1088
- const S = _.find((w) => a.startsWith(w));
1089
- if (S == null)
1094
+ const g = h.find((b) => a.startsWith(b));
1095
+ if (g == null)
1090
1096
  continue;
1091
- g = a.slice(S.length);
1097
+ y = a.slice(g.length);
1092
1098
  }
1093
1099
  }
1094
- const b = g.match(d);
1095
- if (!b)
1100
+ const w = y.match(d);
1101
+ if (!w)
1096
1102
  continue;
1097
- const $ = await h(b, n);
1098
- if (!$)
1103
+ let E = await m(w, n);
1104
+ if (!E)
1099
1105
  continue;
1100
- this.config.details && n.rules.push([d, h, m]);
1101
- const k = Pt($).filter((_) => _.length);
1102
- if (k.length)
1103
- return k.map((_) => M(_) ? [u, _, m] : [u, o, _, m, l]);
1106
+ if (this.config.details && n.rules.push([d, m, _]), typeof E != "string")
1107
+ if (Symbol.asyncIterator in E) {
1108
+ const h = [];
1109
+ for await (const g of E)
1110
+ g && h.push(g);
1111
+ E = h;
1112
+ } else Symbol.iterator in E && !Array.isArray(E) && (E = Array.from(E).filter(fe));
1113
+ const $ = Nt(E).filter((h) => h.length);
1114
+ if ($.length)
1115
+ return $.map((h) => {
1116
+ if (M(h))
1117
+ return [u, h, _];
1118
+ let g = l;
1119
+ for (const b of h)
1120
+ b[0] === I.variants ? g = [
1121
+ ...U(b[1]),
1122
+ ...g
1123
+ ] : b[0] === I.parent ? g = [
1124
+ { parent: b[1] },
1125
+ ...g
1126
+ ] : b[0] === I.selector && (g = [
1127
+ { selector: b[1] },
1128
+ ...g
1129
+ ]);
1130
+ return [u, o, h, _, g];
1131
+ });
1104
1132
  }
1105
1133
  }
1106
1134
  stringifyUtil(t, n) {
@@ -1108,15 +1136,22 @@ class hn {
1108
1136
  return;
1109
1137
  if (ue(t))
1110
1138
  return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
1111
- const { selector: r, entries: s, parent: o, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Y(s);
1139
+ const {
1140
+ selector: r,
1141
+ entries: s,
1142
+ parent: o,
1143
+ layer: a,
1144
+ sort: l,
1145
+ noMerge: c
1146
+ } = this.applyVariants(t), f = X(s);
1112
1147
  if (!f)
1113
1148
  return;
1114
- const { layer: i, sort: u, ...d } = t[3] ?? {}, h = {
1149
+ const { layer: i, sort: u, ...d } = t[3] ?? {}, m = {
1115
1150
  ...d,
1116
1151
  layer: a ?? i,
1117
1152
  sort: l ?? u
1118
1153
  };
1119
- return [t[0], r, f, o, h, this.config.details ? n : void 0, c];
1154
+ return [t[0], r, f, o, m, this.config.details ? n : void 0, c];
1120
1155
  }
1121
1156
  async expandShortcut(t, n, r = 5) {
1122
1157
  var l;
@@ -1129,12 +1164,12 @@ class hn {
1129
1164
  for (const c of this.config.shortcuts) {
1130
1165
  let f = t;
1131
1166
  if ((l = c[2]) != null && l.prefix) {
1132
- const u = L(c[2].prefix).find((d) => t.startsWith(d));
1167
+ const u = U(c[2].prefix).find((d) => t.startsWith(d));
1133
1168
  if (u == null)
1134
1169
  continue;
1135
1170
  f = t.slice(u.length);
1136
1171
  }
1137
- if (It(c)) {
1172
+ if (Ft(c)) {
1138
1173
  if (c[0] === f) {
1139
1174
  o = o || c[2], a = c[1], s(c);
1140
1175
  break;
@@ -1165,8 +1200,8 @@ class hn {
1165
1200
  }
1166
1201
  async stringifyShortcuts(t, n, r, s = { layer: this.config.shortcutsLayer }) {
1167
1202
  var i;
1168
- const o = new Wt(), a = (await Promise.all(W(r).map(async (u) => {
1169
- const d = M(u) ? await this.parseUtil(u, n, !0, s.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", V(u), void 0, []]];
1203
+ const o = new Wt(), a = (await Promise.all(J(r).map(async (u) => {
1204
+ const d = M(u) ? await this.parseUtil(u, n, !0, s.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", H(u), void 0, []]];
1170
1205
  return !d && this.config.warn && Te(`unmatched utility "${u}" in shortcut "${t[1]}"`), d || [];
1171
1206
  }))).flat(1).filter(Boolean).sort((u, d) => u[0] - d[0]), [l, , c] = t, f = [];
1172
1207
  for (const u of a) {
@@ -1174,25 +1209,25 @@ class hn {
1174
1209
  f.push([u[0], void 0, u[1], void 0, u[2], n, void 0]);
1175
1210
  continue;
1176
1211
  }
1177
- const { selector: d, entries: h, parent: m, sort: g, noMerge: b, layer: $ } = this.applyVariants(u, [...u[4], ...c], l);
1178
- o.getFallback($ ?? s.layer, new Gt()).getFallback(d, m, [[], u[0]])[0].push([h, !!(b ?? ((i = u[3]) == null ? void 0 : i.noMerge)), g ?? 0]);
1212
+ const { selector: d, entries: m, parent: _, sort: y, noMerge: w, layer: E } = this.applyVariants(u, [...u[4], ...c], l);
1213
+ o.getFallback(E ?? s.layer, new Gt()).getFallback(d, _, [[], u[0]])[0].push([m, !!(w ?? ((i = u[3]) == null ? void 0 : i.noMerge)), y ?? 0]);
1179
1214
  }
1180
1215
  return f.concat(o.flatMap(
1181
- (u, d) => u.map(([h, m], g, b) => {
1182
- const $ = (_, S, w) => {
1183
- const p = Math.max(...w.map((C) => C[1])), v = w.map((C) => C[0]);
1184
- return (_ ? [v.flat(1)] : v).map((C) => {
1185
- const A = Y(C);
1216
+ (u, d) => u.map(([m, _], y, w) => {
1217
+ const E = (h, g, b) => {
1218
+ const p = Math.max(...b.map((C) => C[1])), S = b.map((C) => C[0]);
1219
+ return (h ? [S.flat(1)] : S).map((C) => {
1220
+ const A = X(C);
1186
1221
  if (A)
1187
- return [m, g, A, b, { ...s, noMerge: S, sort: p, layer: d }, n, void 0];
1222
+ return [_, y, A, w, { ...s, noMerge: g, sort: p, layer: d }, n, void 0];
1188
1223
  });
1189
1224
  };
1190
1225
  return [
1191
- [h.filter(([, _]) => _).map(([_, , S]) => [_, S]), !0],
1192
- [h.filter(([, _]) => !_).map(([_, , S]) => [_, S]), !1]
1193
- ].map(([_, S]) => [
1194
- ...$(!1, S, _.filter(([w]) => w.some((p) => p[0] === le))),
1195
- ...$(!0, S, _.filter(([w]) => w.every((p) => p[0] !== le)))
1226
+ [m.filter(([, h]) => h).map(([h, , g]) => [h, g]), !0],
1227
+ [m.filter(([, h]) => !h).map(([h, , g]) => [h, g]), !1]
1228
+ ].map(([h, g]) => [
1229
+ ...E(!1, g, h.filter(([b]) => b.some((p) => p[0] === I.shortcutsNoMerge))),
1230
+ ...E(!0, g, h.filter(([b]) => b.every((p) => p[0] !== I.shortcutsNoMerge)))
1196
1231
  ]);
1197
1232
  }).flat(2).filter(Boolean)
1198
1233
  ));
@@ -1211,21 +1246,21 @@ class hn {
1211
1246
  function mn(e, t) {
1212
1247
  return new hn(e, t);
1213
1248
  }
1214
- const Me = /\s\$\$\s+/g;
1249
+ const Le = /\s\$\$\s+/g;
1215
1250
  function gn(e) {
1216
- return Me.test(e);
1251
+ return Le.test(e);
1217
1252
  }
1218
1253
  function _n(e, t) {
1219
- return gn(e) ? e.replace(Me, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
1254
+ return gn(e) ? e.replace(Le, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
1220
1255
  }
1221
- const he = /^\[(.+?)(~?=)"(.*)"\]$/;
1256
+ const me = /^\[(.+?)(~?=)"(.*)"\]$/;
1222
1257
  function yn(e) {
1223
- return he.test(e) ? e.replace(he, (t, n, r, s) => `[${K(n)}${r}"${K(s)}"]`) : `.${K(e)}`;
1258
+ return me.test(e) ? e.replace(me, (t, n, r, s) => `[${Y(n)}${r}"${Y(s)}"]`) : `.${Y(e)}`;
1224
1259
  }
1225
1260
  function bn(e, t) {
1226
1261
  return t(e);
1227
1262
  }
1228
- var me = { npm_package_dependencies__vueuse_core: "^10.10.0", npm_package_devDependencies__types_splitpanes: "^2.2.6", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.2.13", SHELL: "/bin/zsh", 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:^", npm_package_dependencies__unocss_runtime: "^0.60.4", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", npm_package_devDependencies_unplugin_vue_components: "^0.27.0", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_license: "MIT", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", npm_package_devDependencies_dayjs: "^1.11.11", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/bin/pnpm.cjs", npm_package_devDependencies_unplugin_auto_import: "^0.17.6", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.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@9.3.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@9.3.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/.cache/node/corepack/v1/pnpm/9.3.0/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/55060_1718685392401/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/49339_1718681164898/bin:/opt/homebrew/bin:/Users/arlo/.cargo/bin:/Applications/WebStorm.app/Contents/MacOS:/Applications/WebStorm.app/Contents/MacOS", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", 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.27", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", npm_package_devDependencies_simple_git_hooks: "^2.11.1", npm_package_devDependencies_sass: "^1.77.4", npm_package_devDependencies__unocss_reset: "^0.60.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.2.13_@types+node@20.14.2_sass@1.77.4_terser@5.26.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_sass@1.77.4_terser@5.26.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_sass@1.77.4_terser@5.26.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.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@9.3.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", TURBO_HASH: "0ef2ad804953d63d", npm_package_devDependencies__unocss_core: "^0.60.4", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/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.218", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.3.1", npm_package_dependencies__vue_devtools_applet: "workspace:^", npm_package_devDependencies_unocss: "^0.60.4", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", HOME: "/Users/arlo", SHLVL: "0", npm_package_dependencies_vite_hot_client: "^0.2.3", npm_package_dependencies_vis_network: "^9.1.9", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.10.0", npm_config_user_agent: "pnpm/9.3.0 npm/? node/v20.12.2 darwin arm64", npm_package_devDependencies__types_node: "^20.14.2", npm_package_scripts_stub: "nr stub:lib & vite build --watch", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.10.1", npm_package_dependencies_vue_router: "^4.3.3", npm_package_dependencies_shiki: "1.6.3", npm_package_dependencies__unocss_preset_icons: "^0.60.4", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", npm_config_shell_emulator: "true", NODE_ENV: "production" };
1263
+ var ge = { npm_package_dependencies__vueuse_core: "^10.11.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.3.1", 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:^", npm_package_dependencies__unocss_runtime: "^0.61.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", npm_package_devDependencies_unplugin_vue_components: "^0.27.0", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_license: "MIT", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", npm_package_devDependencies_dayjs: "^1.11.11", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/bin/pnpm.cjs", npm_package_devDependencies_unplugin_auto_import: "^0.17.6", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.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@9.4.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@9.4.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/.cache/node/corepack/v1/pnpm/9.4.0/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/48959_1718990693549/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/44228_1718979175400/bin:/opt/homebrew/bin:/Users/arlo/.cargo/bin:/Applications/WebStorm.app/Contents/MacOS:/Applications/WebStorm.app/Contents/MacOS", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", 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.29", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", npm_package_devDependencies_simple_git_hooks: "^2.11.1", npm_package_devDependencies_sass: "^1.77.6", npm_package_devDependencies__unocss_reset: "^0.61.0", 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.3.1_@types+node@20.14.5_sass@1.77.6_terser@5.26.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.5_sass@1.77.6_terser@5.26.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.5_sass@1.77.6_terser@5.26.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.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@9.4.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", TURBO_HASH: "58636861aba21f9e", npm_package_devDependencies__unocss_core: "^0.61.0", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.4.0/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.220", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.3.3", npm_package_dependencies__vue_devtools_applet: "workspace:^", npm_package_devDependencies_unocss: "^0.61.0", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", HOME: "/Users/arlo", SHLVL: "0", npm_package_dependencies_vite_hot_client: "^0.2.3", npm_package_dependencies_vis_network: "^9.1.9", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.11.0", npm_config_user_agent: "pnpm/9.4.0 npm/? node/v20.12.2 darwin arm64", npm_package_devDependencies__types_node: "^20.14.5", npm_package_scripts_stub: "nr stub:lib & vite build --watch", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.10.1", npm_package_dependencies_vue_router: "^4.3.3", npm_package_dependencies_shiki: "^1.9.0", npm_package_dependencies__unocss_preset_icons: "^0.61.0", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
1229
1264
  const vn = Object.freeze(
1230
1265
  {
1231
1266
  left: 0,
@@ -1233,13 +1268,13 @@ const vn = Object.freeze(
1233
1268
  width: 16,
1234
1269
  height: 16
1235
1270
  }
1236
- ), J = Object.freeze({
1271
+ ), Q = Object.freeze({
1237
1272
  rotate: 0,
1238
1273
  vFlip: !1,
1239
1274
  hFlip: !1
1240
1275
  }), Ue = Object.freeze({
1241
1276
  ...vn,
1242
- ...J
1277
+ ...Q
1243
1278
  }), wn = Object.freeze({
1244
1279
  ...Ue,
1245
1280
  body: "",
@@ -1247,11 +1282,11 @@ const vn = Object.freeze(
1247
1282
  }), Sn = Object.freeze({
1248
1283
  width: null,
1249
1284
  height: null
1250
- }), Le = Object.freeze({
1285
+ }), Pe = Object.freeze({
1251
1286
  // Dimensions
1252
1287
  ...Sn,
1253
1288
  // Transformations
1254
- ...J
1289
+ ...Q
1255
1290
  });
1256
1291
  function xn(e, t) {
1257
1292
  const n = {};
@@ -1259,10 +1294,10 @@ function xn(e, t) {
1259
1294
  const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
1260
1295
  return r && (n.rotate = r), n;
1261
1296
  }
1262
- function ge(e, t) {
1297
+ function _e(e, t) {
1263
1298
  const n = xn(e, t);
1264
1299
  for (const r in wn)
1265
- r in J ? r in e && !(r in n) && (n[r] = J[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
1300
+ r in Q ? r in e && !(r in n) && (n[r] = Q[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
1266
1301
  return n;
1267
1302
  }
1268
1303
  function En(e, t) {
@@ -1279,25 +1314,25 @@ function En(e, t) {
1279
1314
  }
1280
1315
  return (t || Object.keys(n).concat(Object.keys(r))).forEach(o), s;
1281
1316
  }
1282
- function _e(e, t, n) {
1317
+ function ye(e, t, n) {
1283
1318
  const r = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null);
1284
1319
  let o = {};
1285
1320
  function a(l) {
1286
- o = ge(
1321
+ o = _e(
1287
1322
  r[l] || s[l],
1288
1323
  o
1289
1324
  );
1290
1325
  }
1291
- return a(t), n.forEach(a), ge(e, o);
1326
+ return a(t), n.forEach(a), _e(e, o);
1292
1327
  }
1293
1328
  function kn(e, t) {
1294
1329
  if (e.icons[t])
1295
- return _e(e, t, []);
1330
+ return ye(e, t, []);
1296
1331
  const n = En(e, [t])[t];
1297
- return n ? _e(e, t, n) : null;
1332
+ return n ? ye(e, t, n) : null;
1298
1333
  }
1299
1334
  const $n = /(-?[0-9.]*[0-9]+[0-9.]*)/g, An = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1300
- function ye(e, t, n) {
1335
+ function be(e, t, n) {
1301
1336
  if (t === 1)
1302
1337
  return e;
1303
1338
  if (n = n || 100, typeof e == "number")
@@ -1340,17 +1375,17 @@ function Cn(e, t = "defs") {
1340
1375
  function On(e, t) {
1341
1376
  return e ? "<defs>" + e + "</defs>" + t : t;
1342
1377
  }
1343
- function Tn(e, t, n) {
1378
+ function Rn(e, t, n) {
1344
1379
  const r = Cn(e);
1345
1380
  return On(r.defs, t + r.content + n);
1346
1381
  }
1347
- const oe = (e) => e === "unset" || e === "undefined" || e === "none";
1348
- function jn(e, t) {
1382
+ const ie = (e) => e === "unset" || e === "undefined" || e === "none";
1383
+ function Tn(e, t) {
1349
1384
  const n = {
1350
1385
  ...Ue,
1351
1386
  ...e
1352
1387
  }, r = {
1353
- ...Le,
1388
+ ...Pe,
1354
1389
  ...t
1355
1390
  }, s = {
1356
1391
  left: n.left,
@@ -1359,53 +1394,53 @@ function jn(e, t) {
1359
1394
  height: n.height
1360
1395
  };
1361
1396
  let o = n.body;
1362
- [n, r].forEach((g) => {
1363
- const b = [], $ = g.hFlip, k = g.vFlip;
1364
- let _ = g.rotate;
1365
- $ ? k ? _ += 2 : (b.push(
1397
+ [n, r].forEach((y) => {
1398
+ const w = [], E = y.hFlip, $ = y.vFlip;
1399
+ let h = y.rotate;
1400
+ E ? $ ? h += 2 : (w.push(
1366
1401
  "translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
1367
- ), b.push("scale(-1 1)"), s.top = s.left = 0) : k && (b.push(
1402
+ ), w.push("scale(-1 1)"), s.top = s.left = 0) : $ && (w.push(
1368
1403
  "translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
1369
- ), b.push("scale(1 -1)"), s.top = s.left = 0);
1370
- let S;
1371
- switch (_ < 0 && (_ -= Math.floor(_ / 4) * 4), _ = _ % 4, _) {
1404
+ ), w.push("scale(1 -1)"), s.top = s.left = 0);
1405
+ let g;
1406
+ switch (h < 0 && (h -= Math.floor(h / 4) * 4), h = h % 4, h) {
1372
1407
  case 1:
1373
- S = s.height / 2 + s.top, b.unshift(
1374
- "rotate(90 " + S.toString() + " " + S.toString() + ")"
1408
+ g = s.height / 2 + s.top, w.unshift(
1409
+ "rotate(90 " + g.toString() + " " + g.toString() + ")"
1375
1410
  );
1376
1411
  break;
1377
1412
  case 2:
1378
- b.unshift(
1413
+ w.unshift(
1379
1414
  "rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"
1380
1415
  );
1381
1416
  break;
1382
1417
  case 3:
1383
- S = s.width / 2 + s.left, b.unshift(
1384
- "rotate(-90 " + S.toString() + " " + S.toString() + ")"
1418
+ g = s.width / 2 + s.left, w.unshift(
1419
+ "rotate(-90 " + g.toString() + " " + g.toString() + ")"
1385
1420
  );
1386
1421
  break;
1387
1422
  }
1388
- _ % 2 === 1 && (s.left !== s.top && (S = s.left, s.left = s.top, s.top = S), s.width !== s.height && (S = s.width, s.width = s.height, s.height = S)), b.length && (o = Tn(
1423
+ h % 2 === 1 && (s.left !== s.top && (g = s.left, s.left = s.top, s.top = g), s.width !== s.height && (g = s.width, s.width = s.height, s.height = g)), w.length && (o = Rn(
1389
1424
  o,
1390
- '<g transform="' + b.join(" ") + '">',
1425
+ '<g transform="' + w.join(" ") + '">',
1391
1426
  "</g>"
1392
1427
  ));
1393
1428
  });
1394
1429
  const a = r.width, l = r.height, c = s.width, f = s.height;
1395
1430
  let i, u;
1396
- 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);
1397
- const d = {}, h = (g, b) => {
1398
- oe(b) || (d[g] = b.toString());
1431
+ a === null ? (u = l === null ? "1em" : l === "auto" ? f : l, i = be(u, c / f)) : (i = a === "auto" ? c : a, u = l === null ? be(i, f / c) : l === "auto" ? f : l);
1432
+ const d = {}, m = (y, w) => {
1433
+ ie(w) || (d[y] = w.toString());
1399
1434
  };
1400
- h("width", i), h("height", u);
1401
- const m = [s.left, s.top, c, f];
1402
- return d.viewBox = m.join(" "), {
1435
+ m("width", i), m("height", u);
1436
+ const _ = [s.left, s.top, c, f];
1437
+ return d.viewBox = _.join(" "), {
1403
1438
  attributes: d,
1404
- viewBox: m,
1439
+ viewBox: _,
1405
1440
  body: o
1406
1441
  };
1407
1442
  }
1408
- function Rn(e) {
1443
+ function jn(e) {
1409
1444
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1410
1445
  }
1411
1446
  function Mn(e) {
@@ -1416,41 +1451,41 @@ function Mn(e) {
1416
1451
  )), t.includes(" xmlns=") || (t = t.replace(
1417
1452
  "<svg ",
1418
1453
  '<svg xmlns="http://www.w3.org/2000/svg" '
1419
- )), Rn(t);
1454
+ )), jn(t);
1420
1455
  }
1421
- function Un(e) {
1456
+ function Ln(e) {
1422
1457
  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();
1423
1458
  }
1424
- const Ln = /\swidth\s*=\s*["']([\w.]+)["']/, Pn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
1459
+ const Un = /\swidth\s*=\s*["']([\w.]+)["']/, Pn = /\sheight\s*=\s*["']([\w.]+)["']/, ee = /<svg\s+/;
1425
1460
  function Nn(e, t, n) {
1426
1461
  const r = e.slice(0, e.indexOf(">")), s = (o, a) => {
1427
1462
  const l = a.exec(r), c = l != null, f = t[o];
1428
- return !f && !oe(f) && (typeof n == "number" ? n > 0 && (t[o] = `${n}em`) : l && (t[o] = l[1])), c;
1463
+ return !f && !ie(f) && (typeof n == "number" ? n > 0 && (t[o] = `${n}em`) : l && (t[o] = l[1])), c;
1429
1464
  };
1430
- return [s("width", Ln), s("height", Pn)];
1465
+ return [s("width", Un), s("height", Pn)];
1431
1466
  }
1432
- async function Pe(e, t, n, r, s, o) {
1467
+ async function Ne(e, t, n, r, s, o) {
1433
1468
  const { scale: a, addXmlNs: l = !1 } = r ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (r == null ? void 0 : r.customizations) ?? {}, i = await (s == null ? void 0 : s()) ?? {};
1434
- await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((g) => {
1435
- const b = c[g];
1436
- b != null && (i[g] = b);
1469
+ await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((y) => {
1470
+ const w = c[y];
1471
+ w != null && (i[y] = w);
1437
1472
  }), o == null || o(i);
1438
1473
  const [u, d] = Nn(e, i, a);
1439
1474
  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"));
1440
- const h = Object.keys(i).map(
1441
- (g) => g === "width" && u || g === "height" && d ? null : `${g}="${i[g]}"`
1442
- ).filter((g) => g != null);
1443
- if (h.length && (e = e.replace(Z, `<svg ${h.join(" ")} `)), r) {
1444
- const { defaultStyle: g, defaultClass: b } = r;
1445
- b && !e.includes("class=") && (e = e.replace(Z, `<svg class="${b}" `)), g && !e.includes("style=") && (e = e.replace(Z, `<svg style="${g}" `));
1446
- }
1447
- const m = r == null ? void 0 : r.usedProps;
1448
- return m && (Object.keys(c).forEach((g) => {
1449
- const b = i[g];
1450
- b != null && (m[g] = b);
1451
- }), typeof i.width < "u" && i.width !== null && (m.width = i.width), typeof i.height < "u" && i.height !== null && (m.height = i.height)), e;
1452
- }
1453
- async function be(e, t, n, r) {
1475
+ const m = Object.keys(i).map(
1476
+ (y) => y === "width" && u || y === "height" && d ? null : `${y}="${i[y]}"`
1477
+ ).filter((y) => y != null);
1478
+ if (m.length && (e = e.replace(ee, `<svg ${m.join(" ")} `)), r) {
1479
+ const { defaultStyle: y, defaultClass: w } = r;
1480
+ w && !e.includes("class=") && (e = e.replace(ee, `<svg class="${w}" `)), y && !e.includes("style=") && (e = e.replace(ee, `<svg style="${y}" `));
1481
+ }
1482
+ const _ = r == null ? void 0 : r.usedProps;
1483
+ return _ && (Object.keys(c).forEach((y) => {
1484
+ const w = i[y];
1485
+ w != null && (_[y] = w);
1486
+ }), typeof i.width < "u" && i.width !== null && (_.width = i.width), typeof i.height < "u" && i.height !== null && (_.height = i.height)), e;
1487
+ }
1488
+ async function ve(e, t, n, r) {
1454
1489
  var o;
1455
1490
  let s;
1456
1491
  try {
@@ -1471,8 +1506,8 @@ async function be(e, t, n, r) {
1471
1506
  const a = s.indexOf("<svg");
1472
1507
  a > 0 && (s = s.slice(a));
1473
1508
  const { transform: l } = (r == null ? void 0 : r.customizations) ?? {};
1474
- return s = typeof l == "function" ? await l(s, t, n) : s, s.startsWith("<svg") ? await Pe(
1475
- ((o = r == null ? void 0 : r.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ? Un(s) : s,
1509
+ return s = typeof l == "function" ? await l(s, t, n) : s, s.startsWith("<svg") ? await Ne(
1510
+ ((o = r == null ? void 0 : r.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ? Ln(s) : s,
1476
1511
  t,
1477
1512
  n,
1478
1513
  r,
@@ -1482,41 +1517,41 @@ async function be(e, t, n, r) {
1482
1517
  ), s);
1483
1518
  }
1484
1519
  }
1485
- async function Ne(e, t, n, r) {
1520
+ async function De(e, t, n, r) {
1486
1521
  let s;
1487
1522
  const { customize: o } = (r == null ? void 0 : r.customizations) ?? {};
1488
1523
  for (const a of n)
1489
1524
  if (s = kn(e, a), s) {
1490
- let l = { ...Le };
1525
+ let l = { ...Pe };
1491
1526
  typeof o == "function" && (l = o(l));
1492
1527
  const {
1493
1528
  attributes: { width: c, height: f, ...i },
1494
1529
  body: u
1495
- } = jn(s, l), d = r == null ? void 0 : r.scale;
1496
- return await Pe(
1530
+ } = Tn(s, l), d = r == null ? void 0 : r.scale;
1531
+ return await Ne(
1497
1532
  // DON'T remove space on <svg >
1498
1533
  `<svg >${u}</svg>`,
1499
1534
  t,
1500
1535
  a,
1501
1536
  r,
1502
1537
  () => ({ ...i }),
1503
- (h) => {
1504
- const m = (g, b) => {
1505
- const $ = h[g];
1506
- let k;
1507
- if (!oe($)) {
1508
- if ($)
1538
+ (m) => {
1539
+ const _ = (y, w) => {
1540
+ const E = m[y];
1541
+ let $;
1542
+ if (!ie(E)) {
1543
+ if (E)
1509
1544
  return;
1510
- typeof d == "number" ? d && (k = `${d}em`) : k = b;
1545
+ typeof d == "number" ? d && ($ = `${d}em`) : $ = w;
1511
1546
  }
1512
- k ? h[g] = k : delete h[g];
1547
+ $ ? m[y] = $ : delete m[y];
1513
1548
  };
1514
- m("width", c), m("height", f);
1549
+ _("width", c), _("height", f);
1515
1550
  }
1516
1551
  );
1517
1552
  }
1518
1553
  }
1519
- const De = async (e, t, n) => {
1554
+ const Ie = async (e, t, n) => {
1520
1555
  var s;
1521
1556
  const r = (s = n == null ? void 0 : n.customCollections) == null ? void 0 : s[e];
1522
1557
  if (r)
@@ -1533,7 +1568,7 @@ const De = async (e, t, n) => {
1533
1568
  }
1534
1569
  if (o) {
1535
1570
  if (typeof o == "string")
1536
- return await be(
1571
+ return await ve(
1537
1572
  () => o,
1538
1573
  e,
1539
1574
  t,
@@ -1545,7 +1580,7 @@ const De = async (e, t, n) => {
1545
1580
  t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1546
1581
  t.replace(/([a-z])(\d+)/g, "$1-$2")
1547
1582
  ];
1548
- return await Ne(
1583
+ return await De(
1549
1584
  o,
1550
1585
  e,
1551
1586
  a,
@@ -1554,7 +1589,7 @@ const De = async (e, t, n) => {
1554
1589
  }
1555
1590
  }
1556
1591
  } else
1557
- return await be(r, e, t, n);
1592
+ return await ve(r, e, t, n);
1558
1593
  };
1559
1594
  function Dn(e) {
1560
1595
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1752,8 +1787,8 @@ function Vn(e) {
1752
1787
  collectionsNodeResolvePath: i,
1753
1788
  layer: u = "icons",
1754
1789
  unit: d,
1755
- processor: h
1756
- } = t, m = Hn(), g = {
1790
+ processor: m
1791
+ } = t, _ = Hn(), y = {
1757
1792
  addXmlNs: !0,
1758
1793
  scale: n,
1759
1794
  customCollections: a,
@@ -1765,13 +1800,13 @@ function Vn(e) {
1765
1800
  ...c,
1766
1801
  additionalProps: { ...l },
1767
1802
  trimCustomSvg: !0,
1768
- async iconCustomizer($, k, _) {
1769
- var S;
1770
- await ((S = c.iconCustomizer) == null ? void 0 : S.call(c, $, k, _)), d && (_.width || (_.width = `${n}${d}`), _.height || (_.height = `${n}${d}`));
1803
+ async iconCustomizer(E, $, h) {
1804
+ var g;
1805
+ await ((g = c.iconCustomizer) == null ? void 0 : g.call(c, E, $, h)), d && (h.width || (h.width = `${n}${d}`), h.height || (h.height = `${n}${d}`));
1771
1806
  }
1772
1807
  }
1773
1808
  };
1774
- let b;
1809
+ let w;
1775
1810
  return {
1776
1811
  name: "@unocss/preset-icons",
1777
1812
  enforce: "pre",
@@ -1779,25 +1814,25 @@ function Vn(e) {
1779
1814
  layers: { icons: -30 },
1780
1815
  rules: [[
1781
1816
  /^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
1782
- async ($) => {
1783
- let [k, _, S = r] = $, w = "", p = "", v;
1784
- b = b || await e(t);
1817
+ async (E) => {
1818
+ let [$, h, g = r] = E, b = "", p = "", S;
1819
+ w = w || await e(t);
1785
1820
  const C = {};
1786
- if (_.includes(":"))
1787
- [w, p] = _.split(":"), v = await b(w, p, { ...g, usedProps: C });
1821
+ if (h.includes(":"))
1822
+ [b, p] = h.split(":"), S = await w(b, p, { ...y, usedProps: C });
1788
1823
  else {
1789
- const P = _.split(/-/g);
1790
- for (let N = zn; N >= 1 && (w = P.slice(0, N).join("-"), p = P.slice(N).join("-"), v = await b(w, p, { ...g, usedProps: C }), !v); N--)
1824
+ const P = h.split(/-/g);
1825
+ for (let N = zn; N >= 1 && (b = P.slice(0, N).join("-"), p = P.slice(N).join("-"), S = await w(b, p, { ...y, usedProps: C }), !S); N--)
1791
1826
  ;
1792
1827
  }
1793
- if (!v) {
1794
- o && !m.isESLint && Te(`failed to load icon "${k}"`);
1828
+ if (!S) {
1829
+ o && !_.isESLint && Te(`failed to load icon "${$}"`);
1795
1830
  return;
1796
1831
  }
1797
1832
  let A;
1798
- const T = `url("data:image/svg+xml;utf8,${Mn(v)}")`;
1799
- return S === "auto" && (S = v.includes("currentColor") ? "mask" : "bg"), S === "mask" ? A = {
1800
- "--un-icon": T,
1833
+ const R = `url("data:image/svg+xml;utf8,${Mn(S)}")`;
1834
+ return g === "auto" && (g = S.includes("currentColor") ? "mask" : "bg"), g === "mask" ? A = {
1835
+ "--un-icon": R,
1801
1836
  "-webkit-mask": "var(--un-icon) no-repeat",
1802
1837
  mask: "var(--un-icon) no-repeat",
1803
1838
  "-webkit-mask-size": "100% 100%",
@@ -1807,25 +1842,25 @@ function Vn(e) {
1807
1842
  color: "inherit",
1808
1843
  ...C
1809
1844
  } : A = {
1810
- background: `${T} no-repeat`,
1845
+ background: `${R} no-repeat`,
1811
1846
  "background-size": "100% 100%",
1812
1847
  "background-color": "transparent",
1813
1848
  ...C
1814
- }, h == null || h(A, { collection: w, icon: p, svg: v, mode: S }), A;
1849
+ }, m == null || m(A, { collection: b, icon: p, svg: S, mode: g }), A;
1815
1850
  },
1816
1851
  { layer: u, prefix: s }
1817
1852
  ]]
1818
1853
  };
1819
1854
  };
1820
1855
  }
1821
- function Ie(e, t) {
1856
+ function Fe(e, t) {
1822
1857
  const n = /* @__PURE__ */ new Map();
1823
1858
  function r(s) {
1824
1859
  if (Fn.includes(s))
1825
1860
  return n.has(s) || n.set(s, e(`${t}@iconify-json/${s}/icons.json`)), n.get(s);
1826
1861
  }
1827
1862
  return async (s, o, a) => {
1828
- let l = await De(s, o, a);
1863
+ let l = await Ie(s, o, a);
1829
1864
  if (l)
1830
1865
  return l;
1831
1866
  const c = await r(s);
@@ -1835,13 +1870,13 @@ function Ie(e, t) {
1835
1870
  o.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1836
1871
  o.replace(/([a-z])(\d+)/g, "$1-$2")
1837
1872
  ];
1838
- l = await Ne(c, s, f, a);
1873
+ l = await De(c, s, f, a);
1839
1874
  }
1840
1875
  return l;
1841
1876
  };
1842
1877
  }
1843
1878
  function Hn() {
1844
- const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!me.VSCODE_CWD, n = e && !!me.ESLINT;
1879
+ const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!ge.VSCODE_CWD, n = e && !!ge.ESLINT;
1845
1880
  return {
1846
1881
  isNode: e,
1847
1882
  isVSCode: t,
@@ -1849,22 +1884,22 @@ function Hn() {
1849
1884
  };
1850
1885
  }
1851
1886
  function Bn(e) {
1852
- return Ie(Mt, e);
1887
+ return Fe(Lt, e);
1853
1888
  }
1854
1889
  const qn = Vn(async (e) => {
1855
1890
  const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
1856
- return t && n ? Ie(t, n) : n ? Bn(n) : De;
1891
+ return t && n ? Fe(t, n) : n ? Bn(n) : Ie;
1857
1892
  });
1858
1893
  function Gn(e) {
1859
1894
  return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
1860
1895
  }
1861
- function ve(e) {
1896
+ function we(e) {
1862
1897
  return e.charAt(0).toUpperCase() + e.slice(1);
1863
1898
  }
1864
- function we(e) {
1899
+ function Se(e) {
1865
1900
  return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
1866
1901
  }
1867
- var Se = ["Webkit", "Moz", "ms"];
1902
+ var xe = ["Webkit", "Moz", "ms"];
1868
1903
  function Wn(e) {
1869
1904
  const t = {};
1870
1905
  function n(r) {
@@ -1873,12 +1908,12 @@ function Wn(e) {
1873
1908
  return s;
1874
1909
  let o = Gn(r);
1875
1910
  if (o !== "filter" && o in e)
1876
- return t[r] = we(o);
1877
- o = ve(o);
1878
- for (let a = 0; a < Se.length; a++) {
1879
- const l = `${Se[a]}${o}`;
1911
+ return t[r] = Se(o);
1912
+ o = we(o);
1913
+ for (let a = 0; a < xe.length; a++) {
1914
+ const l = `${xe[a]}${o}`;
1880
1915
  if (l in e)
1881
- return t[r] = we(ve(l));
1916
+ return t[r] = Se(we(l));
1882
1917
  }
1883
1918
  return r;
1884
1919
  }
@@ -1890,116 +1925,116 @@ function Jn(e) {
1890
1925
  return e.replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<");
1891
1926
  }
1892
1927
  function Qn(e = {}) {
1893
- var I, F, O;
1928
+ var F, z, O;
1894
1929
  if (typeof window > "u") {
1895
1930
  console.warn("@unocss/runtime been used in non-browser environment, skipped.");
1896
1931
  return;
1897
1932
  }
1898
1933
  const t = window, n = window.document, r = () => n.documentElement, s = t.__unocss || {}, o = Object.assign({}, e, s.runtime), a = o.defaults || {}, l = o.cloakAttribute ?? "un-cloak";
1899
- o.autoPrefix && (a.postprocess = L(a.postprocess)).unshift(Wn(n.createElement("div").style)), (I = o.configResolved) == null || I.call(o, s, a);
1900
- const c = mn(s, a), f = (y) => o.inject ? o.inject(y) : r().prepend(y), i = () => o.rootElement ? o.rootElement() : n.body, u = /* @__PURE__ */ new Map();
1901
- let d = !0, h = /* @__PURE__ */ new Set(), m, g, b = [];
1902
- const $ = () => new Promise((y) => {
1903
- b.push(y), g != null && clearTimeout(g), g = setTimeout(() => S().then(() => {
1904
- const x = b;
1905
- b = [], x.forEach((E) => E());
1934
+ o.autoPrefix && (a.postprocess = U(a.postprocess)).unshift(Wn(n.createElement("div").style)), (F = o.configResolved) == null || F.call(o, s, a);
1935
+ const c = mn(s, a), f = (v) => o.inject ? o.inject(v) : r().prepend(v), i = () => o.rootElement ? o.rootElement() : n.body, u = /* @__PURE__ */ new Map();
1936
+ let d = !0, m = /* @__PURE__ */ new Set(), _, y, w = [];
1937
+ const E = () => new Promise((v) => {
1938
+ w.push(v), y != null && clearTimeout(y), y = setTimeout(() => g().then(() => {
1939
+ const x = w;
1940
+ w = [], x.forEach((k) => k());
1906
1941
  }), 0);
1907
1942
  });
1908
- function k(y) {
1909
- if (y.nodeType !== 1)
1943
+ function $(v) {
1944
+ if (v.nodeType !== 1)
1910
1945
  return;
1911
- const x = y;
1912
- x.hasAttribute(l) && x.removeAttribute(l), x.querySelectorAll(`[${l}]`).forEach((E) => {
1913
- E.removeAttribute(l);
1946
+ const x = v;
1947
+ x.hasAttribute(l) && x.removeAttribute(l), x.querySelectorAll(`[${l}]`).forEach((k) => {
1948
+ k.removeAttribute(l);
1914
1949
  });
1915
1950
  }
1916
- function _(y, x) {
1917
- let E = u.get(y);
1918
- if (!E)
1919
- if (E = n.createElement("style"), E.setAttribute("data-unocss-runtime-layer", y), u.set(y, E), x == null)
1920
- f(E);
1951
+ function h(v, x) {
1952
+ let k = u.get(v);
1953
+ if (!k)
1954
+ if (k = n.createElement("style"), k.setAttribute("data-unocss-runtime-layer", v), u.set(v, k), x == null)
1955
+ f(k);
1921
1956
  else {
1922
- const U = _(x), j = U.parentNode;
1923
- j ? j.insertBefore(E, U.nextSibling) : f(E);
1957
+ const L = h(x), T = L.parentNode;
1958
+ T ? T.insertBefore(k, L.nextSibling) : f(k);
1924
1959
  }
1925
- return E;
1960
+ return k;
1926
1961
  }
1927
- async function S() {
1928
- const y = await c.generate(h);
1929
- return y.layers.reduce((x, E) => (_(E, x).innerHTML = y.getLayer(E) ?? "", E), void 0), h = y.matched, {
1930
- ...y,
1962
+ async function g() {
1963
+ const v = await c.generate(m);
1964
+ return v.layers.reduce((x, k) => (h(k, x).innerHTML = v.getLayer(k) ?? "", k), void 0), m = v.matched, {
1965
+ ...v,
1931
1966
  getStyleElement: (x) => u.get(x),
1932
1967
  getStyleElements: () => u
1933
1968
  };
1934
1969
  }
1935
- async function w(y) {
1936
- const x = h.size;
1937
- await c.applyExtractors(y, void 0, h), x !== h.size && await $();
1970
+ async function b(v) {
1971
+ const x = m.size;
1972
+ await c.applyExtractors(v, void 0, m), x !== m.size && await E();
1938
1973
  }
1939
- async function p(y = i()) {
1940
- const x = y && y.outerHTML;
1941
- x && (await w(`${x} ${Jn(x)}`), k(r()), k(y));
1974
+ async function p(v = i()) {
1975
+ const x = v && v.outerHTML;
1976
+ x && (await b(`${x} ${Jn(x)}`), $(r()), $(v));
1942
1977
  }
1943
- const v = new MutationObserver((y) => {
1944
- d || y.forEach(async (x) => {
1978
+ const S = new MutationObserver((v) => {
1979
+ d || v.forEach(async (x) => {
1945
1980
  if (x.target.nodeType !== 1)
1946
1981
  return;
1947
- const E = x.target;
1948
- for (const U of u)
1949
- if (E === U[1])
1982
+ const k = x.target;
1983
+ for (const L of u)
1984
+ if (k === L[1])
1950
1985
  return;
1951
1986
  if (x.type === "childList")
1952
- x.addedNodes.forEach(async (U) => {
1953
- if (U.nodeType !== 1)
1987
+ x.addedNodes.forEach(async (L) => {
1988
+ if (L.nodeType !== 1)
1954
1989
  return;
1955
- const j = U;
1956
- m && !m(j) || (await w(j.outerHTML), k(j));
1990
+ const T = L;
1991
+ _ && !_(T) || (await b(T.outerHTML), $(T));
1957
1992
  });
1958
1993
  else {
1959
- if (m && !m(E))
1994
+ if (_ && !_(k))
1960
1995
  return;
1961
1996
  if (x.attributeName !== l) {
1962
- const U = Array.from(E.attributes).map((R) => R.value ? `${R.name}="${R.value}"` : R.name).join(" "), j = `<${E.tagName.toLowerCase()} ${U}>`;
1963
- await w(j);
1997
+ const L = Array.from(k.attributes).map((j) => j.value ? `${j.name}="${j.value}"` : j.name).join(" "), T = `<${k.tagName.toLowerCase()} ${L}>`;
1998
+ await b(T);
1964
1999
  }
1965
- E.hasAttribute(l) && E.removeAttribute(l);
2000
+ k.hasAttribute(l) && k.removeAttribute(l);
1966
2001
  }
1967
2002
  });
1968
2003
  });
1969
2004
  let C = !1;
1970
2005
  function A() {
1971
- var x, E;
2006
+ var x, k;
1972
2007
  if (C)
1973
2008
  return;
1974
- const y = (x = o.observer) != null && x.target ? o.observer.target() : i();
1975
- y && (v.observe(y, {
2009
+ const v = (x = o.observer) != null && x.target ? o.observer.target() : i();
2010
+ v && (S.observe(v, {
1976
2011
  childList: !0,
1977
2012
  subtree: !0,
1978
2013
  attributes: !0,
1979
- attributeFilter: (E = o.observer) == null ? void 0 : E.attributeFilter
2014
+ attributeFilter: (k = o.observer) == null ? void 0 : k.attributeFilter
1980
2015
  }), C = !0);
1981
2016
  }
1982
- function T() {
2017
+ function R() {
1983
2018
  o.bypassDefined && Kn(c.blocked), p(), A();
1984
2019
  }
1985
2020
  function P() {
1986
- n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", T) : T();
2021
+ n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", R) : R();
1987
2022
  }
1988
2023
  const N = t.__unocss_runtime = t.__unocss_runtime = {
1989
2024
  version: c.version,
1990
2025
  uno: c,
1991
- async extract(y) {
1992
- M(y) || (y.forEach((x) => h.add(x)), y = ""), await w(y);
2026
+ async extract(v) {
2027
+ M(v) || (v.forEach((x) => m.add(x)), v = ""), await b(v);
1993
2028
  },
1994
2029
  extractAll: p,
1995
- inspect(y) {
1996
- m = y;
2030
+ inspect(v) {
2031
+ _ = v;
1997
2032
  },
1998
- toggleObserver(y) {
1999
- y === void 0 ? d = !d : d = !!y, !C && !d && P();
2033
+ toggleObserver(v) {
2034
+ v === void 0 ? d = !d : d = !!v, !C && !d && P();
2000
2035
  },
2001
- update: S,
2002
- presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
2036
+ update: g,
2037
+ presets: ((z = t.__unocss_runtime) == null ? void 0 : z.presets) ?? {}
2003
2038
  };
2004
2039
  ((O = o.ready) == null ? void 0 : O.call(o, N)) !== !1 && (d = !1, P());
2005
2040
  }