@vue/devtools-electron 7.0.15 → 7.0.17

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,21 +1,21 @@
1
- const je = /"(?:_|\\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*:/, De = /"(?: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*:/, Pe = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
2
- function Fe(e, t) {
1
+ const je = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Pe = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, Fe = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
2
+ function Ve(e, t) {
3
3
  if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
4
- Ve(e);
4
+ Ge(e);
5
5
  return;
6
6
  }
7
7
  return t;
8
8
  }
9
- function Ve(e) {
9
+ function Ge(e) {
10
10
  console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
11
11
  }
12
- function Ge(e, t = {}) {
12
+ function He(e, t = {}) {
13
13
  if (typeof e != "string")
14
14
  return e;
15
15
  const n = e.trim();
16
16
  if (
17
17
  // eslint-disable-next-line unicorn/prefer-at
18
- e[0] === '"' && e.at(-1) === '"' && !e.includes("\\")
18
+ e[0] === '"' && e.endsWith('"') && !e.includes("\\")
19
19
  )
20
20
  return n.slice(1, -1);
21
21
  if (n.length <= 9) {
@@ -35,16 +35,16 @@ function Ge(e, t = {}) {
35
35
  if (s === "-infinity")
36
36
  return Number.NEGATIVE_INFINITY;
37
37
  }
38
- if (!Pe.test(e)) {
38
+ if (!Fe.test(e)) {
39
39
  if (t.strict)
40
40
  throw new SyntaxError("[destr] Invalid JSON");
41
41
  return e;
42
42
  }
43
43
  try {
44
- if (je.test(e) || De.test(e)) {
44
+ if (je.test(e) || Pe.test(e)) {
45
45
  if (t.strict)
46
46
  throw new Error("[destr] Possible prototype pollution");
47
- return JSON.parse(e, Fe);
47
+ return JSON.parse(e, Ve);
48
48
  }
49
49
  return JSON.parse(e);
50
50
  } catch (s) {
@@ -53,15 +53,15 @@ function Ge(e, t = {}) {
53
53
  return e;
54
54
  }
55
55
  }
56
- const He = /#/g, Be = /&/g, ze = /=/g, ne = /\+/g, qe = /%5e/gi, We = /%60/gi, Ke = /%7c/gi, Je = /%20/gi;
57
- function Xe(e) {
58
- return encodeURI("" + e).replace(Ke, "|");
56
+ const Be = /#/g, ze = /&/g, qe = /\//g, We = /=/g, ne = /\+/g, Ke = /%5e/gi, Je = /%60/gi, Xe = /%7c/gi, Ye = /%20/gi;
57
+ function Qe(e) {
58
+ return encodeURI("" + e).replace(Xe, "|");
59
59
  }
60
60
  function Z(e) {
61
- return Xe(typeof e == "string" ? e : JSON.stringify(e)).replace(ne, "%2B").replace(Je, "+").replace(He, "%23").replace(Be, "%26").replace(We, "`").replace(qe, "^");
61
+ return Qe(typeof e == "string" ? e : JSON.stringify(e)).replace(ne, "%2B").replace(Ye, "+").replace(Be, "%23").replace(ze, "%26").replace(Je, "`").replace(Ke, "^").replace(qe, "%2F");
62
62
  }
63
63
  function K(e) {
64
- return Z(e).replace(ze, "%3D");
64
+ return Z(e).replace(We, "%3D");
65
65
  }
66
66
  function we(e = "") {
67
67
  try {
@@ -70,92 +70,91 @@ function we(e = "") {
70
70
  return "" + e;
71
71
  }
72
72
  }
73
- function Qe(e) {
73
+ function Ze(e) {
74
74
  return we(e.replace(ne, " "));
75
75
  }
76
- function Ye(e) {
76
+ function et(e) {
77
77
  return we(e.replace(ne, " "));
78
78
  }
79
- function Ze(e = "") {
79
+ function tt(e = "") {
80
80
  const t = {};
81
81
  e[0] === "?" && (e = e.slice(1));
82
82
  for (const n of e.split("&")) {
83
83
  const s = n.match(/([^=]+)=?(.*)/) || [];
84
84
  if (s.length < 2)
85
85
  continue;
86
- const r = Qe(s[1]);
87
- if (r === "__proto__" || r === "constructor")
86
+ const o = Ze(s[1]);
87
+ if (o === "__proto__" || o === "constructor")
88
88
  continue;
89
- const o = Ye(s[2] || "");
90
- t[r] === void 0 ? t[r] = o : Array.isArray(t[r]) ? t[r].push(o) : t[r] = [t[r], o];
89
+ const r = et(s[2] || "");
90
+ t[o] === void 0 ? t[o] = r : Array.isArray(t[o]) ? t[o].push(r) : t[o] = [t[o], r];
91
91
  }
92
92
  return t;
93
93
  }
94
- function et(e, t) {
94
+ function nt(e, t) {
95
95
  return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${K(e)}=${Z(n)}`).join("&") : `${K(e)}=${Z(t)}` : K(e);
96
96
  }
97
- function tt(e) {
98
- return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => et(t, e[t])).filter(Boolean).join("&");
97
+ function st(e) {
98
+ return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => nt(t, e[t])).filter(Boolean).join("&");
99
99
  }
100
- const nt = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, st = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, rt = /^([/\\]\s*){2,}[^/\\]/;
100
+ const ot = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, rt = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, it = /^([/\\]\s*){2,}[^/\\]/, at = /\/$|\/\?|\/#/, ct = /^\.?\//;
101
101
  function Se(e, t = {}) {
102
- return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ? nt.test(e) : st.test(e) || (t.acceptRelative ? rt.test(e) : !1);
102
+ return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ? ot.test(e) : rt.test(e) || (t.acceptRelative ? it.test(e) : !1);
103
103
  }
104
- const ot = /\/$|\/\?|\/#/;
105
104
  function ee(e = "", t) {
106
- return t ? ot.test(e) : e.endsWith("/");
105
+ return t ? at.test(e) : e.endsWith("/");
107
106
  }
108
- function it(e = "", t) {
107
+ function lt(e = "", t) {
109
108
  if (!t)
110
109
  return (ee(e) ? e.slice(0, -1) : e) || "/";
111
110
  if (!ee(e, !0))
112
111
  return e || "/";
113
112
  let n = e, s = "";
114
- const r = e.indexOf("#");
115
- r >= 0 && (n = e.slice(0, r), s = e.slice(r));
116
- const [o, ...a] = n.split("?");
117
- return (o.slice(0, -1) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
113
+ const o = e.indexOf("#");
114
+ o >= 0 && (n = e.slice(0, o), s = e.slice(o));
115
+ const [r, ...a] = n.split("?");
116
+ return (r.slice(0, -1) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
118
117
  }
119
- function at(e = "", t) {
118
+ function ut(e = "", t) {
120
119
  if (!t)
121
120
  return e.endsWith("/") ? e : e + "/";
122
121
  if (ee(e, !0))
123
122
  return e || "/";
124
123
  let n = e, s = "";
125
- const r = e.indexOf("#");
126
- if (r >= 0 && (n = e.slice(0, r), s = e.slice(r), !n))
124
+ const o = e.indexOf("#");
125
+ if (o >= 0 && (n = e.slice(0, o), s = e.slice(o), !n))
127
126
  return s;
128
- const [o, ...a] = n.split("?");
129
- return o + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
127
+ const [r, ...a] = n.split("?");
128
+ return r + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
130
129
  }
131
- function ct(e, t) {
132
- if (ut(t) || Se(e))
130
+ function ft(e, t) {
131
+ if (dt(t) || Se(e))
133
132
  return e;
134
- const n = it(t);
135
- return e.startsWith(n) ? e : dt(n, e);
133
+ const n = lt(t);
134
+ return e.startsWith(n) ? e : ht(n, e);
136
135
  }
137
- function lt(e, t) {
138
- const n = Ee(e), s = { ...Ze(n.search), ...t };
139
- return n.search = tt(s), mt(n);
136
+ function pt(e, t) {
137
+ const n = xe(e), s = { ...tt(n.search), ...t };
138
+ return n.search = st(s), _t(n);
140
139
  }
141
- function ut(e) {
140
+ function dt(e) {
142
141
  return !e || e === "/";
143
142
  }
144
- function ft(e) {
143
+ function mt(e) {
145
144
  return e && e !== "/";
146
145
  }
147
- const pt = /^\.?\//;
148
- function dt(e, ...t) {
146
+ function ht(e, ...t) {
149
147
  let n = e || "";
150
- for (const s of t.filter((r) => ft(r)))
148
+ for (const s of t.filter((o) => mt(o)))
151
149
  if (n) {
152
- const r = s.replace(pt, "");
153
- n = at(n) + r;
150
+ const o = s.replace(ct, "");
151
+ n = ut(n) + o;
154
152
  } else
155
153
  n = s;
156
154
  return n;
157
155
  }
158
- function Ee(e = "", t) {
156
+ const Ee = Symbol.for("ufo:protocolRelative");
157
+ function xe(e = "", t) {
159
158
  const n = e.match(
160
159
  /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
161
160
  );
@@ -172,20 +171,21 @@ function Ee(e = "", t) {
172
171
  };
173
172
  }
174
173
  if (!Se(e, { acceptRelative: !0 }))
175
- return t ? Ee(t + e) : oe(e);
176
- const [, s = "", r, o = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = o.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: u, hash: i } = oe(
174
+ return t ? xe(t + e) : re(e);
175
+ const [, s = "", o, r = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = r.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: u, hash: i } = re(
177
176
  l.replace(/\/(?=[A-Za-z]:)/, "")
178
177
  );
179
178
  return {
180
179
  protocol: s.toLowerCase(),
181
- auth: r ? r.slice(0, Math.max(0, r.length - 1)) : "",
180
+ auth: o ? o.slice(0, Math.max(0, o.length - 1)) : "",
182
181
  host: a,
183
182
  pathname: c,
184
183
  search: u,
185
- hash: i
184
+ hash: i,
185
+ [Ee]: !s
186
186
  };
187
187
  }
188
- function oe(e = "") {
188
+ function re(e = "") {
189
189
  const [t = "", n = "", s = ""] = (e.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
190
190
  return {
191
191
  pathname: t,
@@ -193,18 +193,18 @@ function oe(e = "") {
193
193
  hash: s
194
194
  };
195
195
  }
196
- function mt(e) {
197
- const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "", r = e.auth ? e.auth + "@" : "", o = e.host || "";
198
- return (e.protocol ? e.protocol + "//" : "") + r + o + t + n + s;
196
+ function _t(e) {
197
+ const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "", o = e.auth ? e.auth + "@" : "", r = e.host || "";
198
+ return (e.protocol || e[Ee] ? (e.protocol || "") + "//" : "") + o + r + t + n + s;
199
199
  }
200
- class ht extends Error {
200
+ class gt extends Error {
201
201
  constructor(t, n) {
202
202
  super(t, n), this.name = "FetchError", n != null && n.cause && !this.cause && (this.cause = n.cause);
203
203
  }
204
204
  }
205
- function _t(e) {
205
+ function yt(e) {
206
206
  var c, u, i, f, d;
207
- const t = ((c = e.error) == null ? void 0 : c.message) || ((u = e.error) == null ? void 0 : u.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((f = e.options) == null ? void 0 : f.method) || "GET", s = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", r = `[${n}] ${JSON.stringify(s)}`, o = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${r}: ${o}${t ? ` ${t}` : ""}`, l = new ht(
207
+ const t = ((c = e.error) == null ? void 0 : c.message) || ((u = e.error) == null ? void 0 : u.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((f = e.options) == null ? void 0 : f.method) || "GET", s = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", o = `[${n}] ${JSON.stringify(s)}`, r = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${o}: ${r}${t ? ` ${t}` : ""}`, l = new gt(
208
208
  a,
209
209
  e.error ? { cause: e.error } : void 0
210
210
  );
@@ -228,31 +228,31 @@ function _t(e) {
228
228
  });
229
229
  return l;
230
230
  }
231
- const gt = new Set(
231
+ const bt = new Set(
232
232
  Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
233
233
  );
234
234
  function ie(e = "GET") {
235
- return gt.has(e.toUpperCase());
235
+ return bt.has(e.toUpperCase());
236
236
  }
237
- function yt(e) {
237
+ function vt(e) {
238
238
  if (e === void 0)
239
239
  return !1;
240
240
  const t = typeof e;
241
241
  return t === "string" || t === "number" || t === "boolean" || t === null ? !0 : t !== "object" ? !1 : Array.isArray(e) ? !0 : e.buffer ? !1 : e.constructor && e.constructor.name === "Object" || typeof e.toJSON == "function";
242
242
  }
243
- const bt = /* @__PURE__ */ new Set([
243
+ const wt = /* @__PURE__ */ new Set([
244
244
  "image/svg",
245
245
  "application/xml",
246
246
  "application/xhtml",
247
247
  "application/html"
248
- ]), vt = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
249
- function wt(e = "") {
248
+ ]), St = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
249
+ function Et(e = "") {
250
250
  if (!e)
251
251
  return "json";
252
252
  const t = e.split(";").shift() || "";
253
- return vt.test(t) ? "json" : bt.has(t) || t.startsWith("text/") ? "text" : "blob";
253
+ return St.test(t) ? "json" : wt.has(t) || t.startsWith("text/") ? "text" : "blob";
254
254
  }
255
- function St(e, t, n = globalThis.Headers) {
255
+ function xt(e, t, n = globalThis.Headers) {
256
256
  const s = {
257
257
  ...t,
258
258
  ...e
@@ -265,12 +265,12 @@ function St(e, t, n = globalThis.Headers) {
265
265
  ...e == null ? void 0 : e.query
266
266
  }), t != null && t.headers && (e != null && e.headers)) {
267
267
  s.headers = new n((t == null ? void 0 : t.headers) || {});
268
- for (const [r, o] of new n((e == null ? void 0 : e.headers) || {}))
269
- s.headers.set(r, o);
268
+ for (const [o, r] of new n((e == null ? void 0 : e.headers) || {}))
269
+ s.headers.set(o, r);
270
270
  }
271
271
  return s;
272
272
  }
273
- const Et = /* @__PURE__ */ new Set([
273
+ const Ct = /* @__PURE__ */ new Set([
274
274
  408,
275
275
  // Request Timeout
276
276
  409,
@@ -287,43 +287,43 @@ const Et = /* @__PURE__ */ new Set([
287
287
  // Service Unavailable
288
288
  504
289
289
  // Gateway Timeout
290
- ]), xt = /* @__PURE__ */ new Set([101, 204, 205, 304]);
291
- function xe(e = {}) {
290
+ ]), At = /* @__PURE__ */ new Set([101, 204, 205, 304]);
291
+ function Ce(e = {}) {
292
292
  const {
293
293
  fetch: t = globalThis.fetch,
294
294
  Headers: n = globalThis.Headers,
295
295
  AbortController: s = globalThis.AbortController
296
296
  } = e;
297
- async function r(l) {
297
+ async function o(l) {
298
298
  const c = l.error && l.error.name === "AbortError" && !l.options.timeout || !1;
299
299
  if (l.options.retry !== !1 && !c) {
300
300
  let i;
301
301
  typeof l.options.retry == "number" ? i = l.options.retry : i = ie(l.options.method) ? 0 : 1;
302
302
  const f = l.response && l.response.status || 500;
303
- if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(f) : Et.has(f))) {
303
+ if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(f) : Ct.has(f))) {
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((h) => setTimeout(h, d)), r(l.request, {
306
306
  ...l.options,
307
307
  retry: i - 1,
308
308
  timeout: l.options.timeout
309
309
  });
310
310
  }
311
311
  }
312
- const u = _t(l);
313
- throw Error.captureStackTrace && Error.captureStackTrace(u, o), u;
312
+ const u = yt(l);
313
+ throw Error.captureStackTrace && Error.captureStackTrace(u, r), u;
314
314
  }
315
- const o = async function(c, u = {}) {
315
+ const r = async function(c, u = {}) {
316
316
  var d;
317
317
  const i = {
318
318
  request: c,
319
- options: St(u, e.defaults, n),
319
+ options: xt(u, e.defaults, n),
320
320
  response: void 0,
321
321
  error: void 0
322
322
  };
323
- if (i.options.method = (d = i.options.method) == null ? void 0 : d.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = ct(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = lt(i.request, {
323
+ if (i.options.method = (d = i.options.method) == null ? void 0 : d.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = ft(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = pt(i.request, {
324
324
  ...i.options.params,
325
325
  ...i.options.query
326
- }))), i.options.body && ie(i.options.method) && (yt(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
+ }))), i.options.body && ie(i.options.method) && (vt(i.options.body) ? (i.options.body = typeof i.options.body == "string" ? i.options.body : JSON.stringify(i.options.body), i.options.headers = new n(i.options.headers || {}), i.options.headers.has("content-type") || i.options.headers.set("content-type", "application/json"), i.options.headers.has("accept") || i.options.headers.set("accept", "application/json")) : (
327
327
  // ReadableStream Body
328
328
  ("pipeTo" in i.options.body && typeof i.options.body.pipeTo == "function" || // Node.js Stream Body
329
329
  typeof i.options.body.pipe == "function") && ("duplex" in i.options || (i.options.duplex = "half"))
@@ -337,13 +337,13 @@ function xe(e = {}) {
337
337
  i.options
338
338
  );
339
339
  } catch (h) {
340
- return i.error = h, i.options.onRequestError && await i.options.onRequestError(i), await r(i);
340
+ return i.error = h, i.options.onRequestError && await i.options.onRequestError(i), await o(i);
341
341
  }
342
- if (i.response.body && !xt.has(i.response.status) && i.options.method !== "HEAD") {
343
- const h = (i.options.parseResponse ? "json" : i.options.responseType) || wt(i.response.headers.get("content-type") || "");
342
+ if (i.response.body && !At.has(i.response.status) && i.options.method !== "HEAD") {
343
+ const h = (i.options.parseResponse ? "json" : i.options.responseType) || Et(i.response.headers.get("content-type") || "");
344
344
  switch (h) {
345
345
  case "json": {
346
- const g = await i.response.text(), _ = i.options.parseResponse || Ge;
346
+ const g = await i.response.text(), _ = i.options.parseResponse || He;
347
347
  i.response._data = _(g);
348
348
  break;
349
349
  }
@@ -355,11 +355,11 @@ function xe(e = {}) {
355
355
  i.response._data = await i.response[h]();
356
356
  }
357
357
  }
358
- return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await r(i)) : i.response;
358
+ return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await o(i)) : i.response;
359
359
  }, a = async function(c, u) {
360
- return (await o(c, u))._data;
360
+ return (await r(c, u))._data;
361
361
  };
362
- return a.raw = o, a.native = (...l) => t(...l), a.create = (l = {}) => xe({
362
+ return a.raw = r, a.native = (...l) => t(...l), a.create = (l = {}) => Ce({
363
363
  ...e,
364
364
  defaults: {
365
365
  ...e.defaults,
@@ -377,30 +377,30 @@ const se = function() {
377
377
  if (typeof global < "u")
378
378
  return global;
379
379
  throw new Error("unable to locate global object");
380
- }(), Ct = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), At = se.Headers, Ot = se.AbortController, Rt = xe({ fetch: Ct, Headers: At, AbortController: Ot }), kt = Rt;
381
- function $t(e) {
380
+ }(), Ot = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), Rt = se.Headers, kt = se.AbortController, $t = Ce({ fetch: Ot, Headers: Rt, AbortController: kt }), Tt = $t;
381
+ function Lt(e) {
382
382
  const t = e.length;
383
- let n = -1, s, r = "";
384
- const o = e.charCodeAt(0);
383
+ let n = -1, s, o = "";
384
+ const r = e.charCodeAt(0);
385
385
  for (; ++n < t; ) {
386
386
  if (s = e.charCodeAt(n), s === 0) {
387
- r += "�";
387
+ o += "�";
388
388
  continue;
389
389
  }
390
390
  if (s === 37) {
391
- r += "\\%";
391
+ o += "\\%";
392
392
  continue;
393
393
  }
394
394
  if (s === 44) {
395
- r += "\\,";
395
+ o += "\\,";
396
396
  continue;
397
397
  }
398
398
  if (
399
399
  // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
400
400
  // U+007F, […]
401
- s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 && o === 45
401
+ s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 && r === 45
402
402
  ) {
403
- r += `\\${s.toString(16)} `;
403
+ o += `\\${s.toString(16)} `;
404
404
  continue;
405
405
  }
406
406
  if (
@@ -408,26 +408,26 @@ function $t(e) {
408
408
  // there is no second character, […]
409
409
  n === 0 && t === 1 && s === 45
410
410
  ) {
411
- r += `\\${e.charAt(n)}`;
411
+ o += `\\${e.charAt(n)}`;
412
412
  continue;
413
413
  }
414
414
  if (s >= 128 || s === 45 || s === 95 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122) {
415
- r += e.charAt(n);
415
+ o += e.charAt(n);
416
416
  continue;
417
417
  }
418
- r += `\\${e.charAt(n)}`;
418
+ o += `\\${e.charAt(n)}`;
419
419
  }
420
- return r;
420
+ return o;
421
421
  }
422
- const J = $t;
423
- function U(e = []) {
422
+ const J = Lt;
423
+ function M(e = []) {
424
424
  return Array.isArray(e) ? e : [e];
425
425
  }
426
426
  function q(e) {
427
427
  return Array.from(new Set(e));
428
428
  }
429
- function Tt(e, t) {
430
- return e.reduce((n, s) => (n.findIndex((o) => t(s, o)) === -1 && n.push(s), n), []);
429
+ function Ut(e, t) {
430
+ return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
431
431
  }
432
432
  function L(e) {
433
433
  return typeof e == "string";
@@ -435,15 +435,15 @@ function L(e) {
435
435
  function F(e) {
436
436
  return L(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
437
437
  }
438
- function Lt(e) {
438
+ function It(e) {
439
439
  return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => F(t)) : [e] : [F(e)];
440
440
  }
441
441
  function Mt(e) {
442
442
  return e.filter(([t, n], s) => {
443
443
  if (t.startsWith("$$"))
444
444
  return !1;
445
- for (let r = s - 1; r >= 0; r--)
446
- if (e[r][0] === t && e[r][1] === n)
445
+ for (let o = s - 1; o >= 0; o--)
446
+ if (e[o][0] === t && e[o][1] === n)
447
447
  return !1;
448
448
  return !0;
449
449
  });
@@ -454,14 +454,14 @@ function X(e) {
454
454
  function G(e) {
455
455
  return e && typeof e == "object" && !Array.isArray(e);
456
456
  }
457
- function Ce(e, t, n = !1) {
458
- const s = e, r = t;
459
- if (Array.isArray(r))
460
- return n && Array.isArray(r) ? [...s, ...r] : [...r];
461
- const o = { ...s };
462
- return G(s) && G(r) && Object.keys(r).forEach((a) => {
463
- G(s[a]) && G(r[a]) || Array.isArray(s[a]) && Array.isArray(r[a]) ? o[a] = Ce(s[a], r[a], n) : Object.assign(o, { [a]: r[a] });
464
- }), o;
457
+ function Ae(e, t, n = !1) {
458
+ const s = e, o = t;
459
+ if (Array.isArray(o))
460
+ return n && Array.isArray(o) ? [...s, ...o] : [...o];
461
+ const r = { ...s };
462
+ return G(s) && G(o) && Object.keys(o).forEach((a) => {
463
+ G(s[a]) && G(o[a]) || Array.isArray(s[a]) && Array.isArray(o[a]) ? r[a] = Ae(s[a], o[a], n) : Object.assign(r, { [a]: o[a] });
464
+ }), r;
465
465
  }
466
466
  function B(e) {
467
467
  let t, n, s;
@@ -486,25 +486,25 @@ function B(e) {
486
486
  function Nt(e) {
487
487
  return L(e[0]);
488
488
  }
489
- function Ut(e) {
489
+ function Dt(e) {
490
490
  return L(e[0]);
491
491
  }
492
492
  const ae = "$$shortcut-no-merge";
493
- function It(e) {
493
+ function jt(e) {
494
494
  return typeof e == "function" ? { match: e } : e;
495
495
  }
496
496
  function ce(e) {
497
497
  return e.length === 3;
498
498
  }
499
- function jt(e) {
499
+ function Pt(e) {
500
500
  return e != null;
501
501
  }
502
- function Dt() {
502
+ function Ft() {
503
503
  }
504
- var Pt = Object.defineProperty, Ft = (e, t, n) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vt = (e, t, n) => (Ft(e, typeof t != "symbol" ? t + "" : t, n), n);
505
- class Gt {
504
+ var Vt = Object.defineProperty, Gt = (e, t, n) => t in e ? Vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ht = (e, t, n) => (Gt(e, typeof t != "symbol" ? t + "" : t, n), n);
505
+ class Bt {
506
506
  constructor() {
507
- Vt(this, "_map", /* @__PURE__ */ new Map());
507
+ Ht(this, "_map", /* @__PURE__ */ new Map());
508
508
  }
509
509
  get(t, n) {
510
510
  const s = this._map.get(t);
@@ -512,12 +512,12 @@ class Gt {
512
512
  return s.get(n);
513
513
  }
514
514
  getFallback(t, n, s) {
515
- let r = this._map.get(t);
516
- return r || (r = /* @__PURE__ */ new Map(), this._map.set(t, r)), r.has(n) || r.set(n, s), r.get(n);
515
+ let o = this._map.get(t);
516
+ return o || (o = /* @__PURE__ */ new Map(), this._map.set(t, o)), o.has(n) || o.set(n, s), o.get(n);
517
517
  }
518
518
  set(t, n, s) {
519
- let r = this._map.get(t);
520
- return r || (r = /* @__PURE__ */ new Map(), this._map.set(t, r)), r.set(n, s), this;
519
+ let o = this._map.get(t);
520
+ return o || (o = /* @__PURE__ */ new Map(), this._map.set(t, o)), o.set(n, s), this;
521
521
  }
522
522
  has(t, n) {
523
523
  var s;
@@ -531,13 +531,13 @@ class Gt {
531
531
  return this._map.delete(t);
532
532
  }
533
533
  map(t) {
534
- return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([r, o]) => t(o, n, r)));
534
+ return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([o, r]) => t(r, n, o)));
535
535
  }
536
536
  }
537
- var Ht = Object.defineProperty, Bt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Bt(e, typeof t != "symbol" ? t + "" : t, n), n);
538
- class Ae extends Set {
537
+ var zt = Object.defineProperty, qt = (e, t, n) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wt = (e, t, n) => (qt(e, typeof t != "symbol" ? t + "" : t, n), n);
538
+ class Oe extends Set {
539
539
  constructor(t) {
540
- super(t), zt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
540
+ super(t), Wt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
541
541
  }
542
542
  add(t) {
543
543
  return this._map ?? (this._map = /* @__PURE__ */ new Map()), this._map.set(t, (this._map.get(t) ?? 0) + 1), super.add(t);
@@ -555,26 +555,26 @@ class Ae extends Set {
555
555
  return this._map.set(t, n), super.add(t);
556
556
  }
557
557
  }
558
- function Q(e) {
559
- return e instanceof Ae;
558
+ function Y(e) {
559
+ return e instanceof Oe;
560
560
  }
561
561
  const H = {};
562
- function qt(e = ["-", ":"]) {
562
+ function Kt(e = ["-", ":"]) {
563
563
  const t = e.join("|");
564
564
  return H[t] || (H[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), H[t].lastIndex = 0, H[t];
565
565
  }
566
- function Wt(e, t = ["-", ":"], n = 5) {
567
- const s = qt(t);
568
- let r, o = e.toString();
566
+ function Jt(e, t = ["-", ":"], n = 5) {
567
+ const s = Kt(t);
568
+ let o, r = e.toString();
569
569
  const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
570
570
  do
571
- r = !1, o = o.replace(
571
+ o = !1, r = r.replace(
572
572
  s,
573
573
  (u, i, f, d, h) => {
574
574
  var y;
575
575
  if (!t.includes(f))
576
576
  return u;
577
- r = !0, a.add(i + f);
577
+ o = !0, a.add(i + f);
578
578
  const g = h + i.length + f.length + 1, _ = { length: u.length, items: [] };
579
579
  l.set(h, _);
580
580
  for (const x of [...d.matchAll(/\S+/g)]) {
@@ -591,7 +591,7 @@ function Wt(e, t = ["-", ":"], n = 5) {
591
591
  return "$".repeat(u.length);
592
592
  }
593
593
  ), n -= 1;
594
- while (r && n);
594
+ while (o && n);
595
595
  let c;
596
596
  if (typeof e == "string") {
597
597
  c = "";
@@ -610,7 +610,7 @@ function Wt(e, t = ["-", ":"], n = 5) {
610
610
  }
611
611
  return {
612
612
  prefixes: Array.from(a),
613
- hasChanged: r,
613
+ hasChanged: o,
614
614
  groupsByOffset: l,
615
615
  // Computed lazily because MagicString's toString does a lot of work
616
616
  get expanded() {
@@ -618,26 +618,26 @@ function Wt(e, t = ["-", ":"], n = 5) {
618
618
  }
619
619
  };
620
620
  }
621
- function Kt(e, t = ["-", ":"], n = 5) {
622
- const s = Wt(e, t, n);
621
+ function Xt(e, t = ["-", ":"], n = 5) {
622
+ const s = Jt(e, t, n);
623
623
  return typeof e == "string" ? s.expanded : e;
624
624
  }
625
625
  const le = /* @__PURE__ */ new Set();
626
- function Oe(e) {
626
+ function Re(e) {
627
627
  le.has(e) || (console.warn("[unocss]", e), le.add(e));
628
628
  }
629
- const Jt = /[\\:]?[\s'"`;{}]+/g;
630
- function Xt(e) {
631
- return e.split(Jt);
629
+ const Yt = /[\\:]?[\s'"`;{}]+/g;
630
+ function Qt(e) {
631
+ return e.split(Yt);
632
632
  }
633
- const Qt = {
633
+ const Zt = {
634
634
  name: "@unocss/core/extractor-split",
635
635
  order: 0,
636
636
  extract({ code: e }) {
637
- return Xt(e);
637
+ return Qt(e);
638
638
  }
639
639
  };
640
- function Yt() {
640
+ function en() {
641
641
  return {
642
642
  events: {},
643
643
  emit(e, ...t) {
@@ -648,17 +648,17 @@ function Yt() {
648
648
  }
649
649
  };
650
650
  }
651
- const z = "default", te = "preflights", Zt = "shortcuts", en = "imports", tn = {
652
- [en]: -200,
651
+ const z = "default", te = "preflights", tn = "shortcuts", nn = "imports", sn = {
652
+ [nn]: -200,
653
653
  [te]: -100,
654
- [Zt]: -10,
654
+ [tn]: -10,
655
655
  [z]: 0
656
656
  };
657
- function Re(e) {
658
- return U(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
657
+ function ke(e) {
658
+ return M(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
659
659
  }
660
660
  const ue = "_uno_resolved";
661
- function nn(e) {
661
+ function on(e) {
662
662
  var s;
663
663
  let t = typeof e == "function" ? e() : e;
664
664
  if (ue in t)
@@ -667,64 +667,64 @@ function nn(e) {
667
667
  value: !0,
668
668
  enumerable: !1
669
669
  });
670
- const n = t.shortcuts ? Re(t.shortcuts) : void 0;
670
+ const n = t.shortcuts ? ke(t.shortcuts) : void 0;
671
671
  if (t.shortcuts = n, t.prefix || t.layer) {
672
- const r = (o) => {
673
- o[2] || (o[2] = {});
674
- const a = o[2];
675
- a.prefix == null && t.prefix && (a.prefix = U(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
672
+ const o = (r) => {
673
+ r[2] || (r[2] = {});
674
+ const a = r[2];
675
+ a.prefix == null && t.prefix && (a.prefix = M(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
676
676
  };
677
- n == null || n.forEach(r), (s = t.rules) == null || s.forEach(r);
677
+ n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
678
678
  }
679
679
  return t;
680
680
  }
681
- function ke(e) {
682
- const t = nn(e);
681
+ function $e(e) {
682
+ const t = on(e);
683
683
  if (!t.presets)
684
684
  return [t];
685
- const n = (t.presets || []).flatMap(U).flatMap(ke);
685
+ const n = (t.presets || []).flatMap(M).flatMap($e);
686
686
  return [t, ...n];
687
687
  }
688
688
  function fe(e = {}, t = {}) {
689
689
  var m, S;
690
- const n = Object.assign({}, t, e), s = Tt((n.presets || []).flatMap(U).flatMap(ke), (p, E) => p.name === E.name), r = [
690
+ const n = Object.assign({}, t, e), s = Ut((n.presets || []).flatMap(M).flatMap($e), (p, E) => p.name === E.name), o = [
691
691
  ...s.filter((p) => p.enforce === "pre"),
692
692
  ...s.filter((p) => !p.enforce),
693
693
  ...s.filter((p) => p.enforce === "post")
694
- ], o = [
695
- ...r,
694
+ ], r = [
695
+ ...o,
696
696
  n
697
- ], a = [...o].reverse(), l = Object.assign({}, tn, ...o.map((p) => p.layers));
697
+ ], a = [...r].reverse(), l = Object.assign({}, sn, ...r.map((p) => p.layers));
698
698
  function c(p) {
699
- return q(o.flatMap((E) => U(E[p] || [])));
699
+ return q(r.flatMap((E) => M(E[p] || [])));
700
700
  }
701
701
  const u = c("extractors");
702
702
  let i = (m = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : m.extractorDefault;
703
- i === void 0 && (i = Qt), i && !u.includes(i) && u.unshift(i), u.sort((p, E) => (p.order || 0) - (E.order || 0));
703
+ i === void 0 && (i = Zt), i && !u.includes(i) && u.unshift(i), u.sort((p, E) => (p.order || 0) - (E.order || 0));
704
704
  const f = c("rules"), d = {}, h = f.length, g = f.map((p, E) => {
705
705
  var R;
706
706
  if (Nt(p)) {
707
- U(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((I) => {
708
- d[I + p[0]] = [E, p[1], p[2], p];
707
+ M(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((N) => {
708
+ d[N + p[0]] = [E, p[1], p[2], p];
709
709
  });
710
710
  return;
711
711
  }
712
712
  return [E, ...p];
713
713
  }).filter(Boolean).reverse();
714
- let _ = sn(o.map((p) => p.theme));
714
+ let _ = rn(r.map((p) => p.theme));
715
715
  const y = c("extendTheme");
716
716
  for (const p of y)
717
717
  _ = p(_) || _;
718
718
  const x = {
719
- templates: q(o.flatMap((p) => {
719
+ templates: q(r.flatMap((p) => {
720
720
  var E;
721
- return U((E = p.autocomplete) == null ? void 0 : E.templates);
721
+ return M((E = p.autocomplete) == null ? void 0 : E.templates);
722
722
  })),
723
- extractors: o.flatMap((p) => {
723
+ extractors: r.flatMap((p) => {
724
724
  var E;
725
- return U((E = p.autocomplete) == null ? void 0 : E.extractors);
725
+ return M((E = p.autocomplete) == null ? void 0 : E.extractors);
726
726
  }).sort((p, E) => (p.order || 0) - (E.order || 0)),
727
- shorthands: rn(o.map((p) => {
727
+ shorthands: an(r.map((p) => {
728
728
  var E;
729
729
  return ((E = p.autocomplete) == null ? void 0 : E.shorthands) || {};
730
730
  }))
@@ -737,7 +737,7 @@ function fe(e = {}, t = {}) {
737
737
  sortLayers: (p) => p,
738
738
  ...n,
739
739
  blocklist: c("blocklist"),
740
- presets: r,
740
+ presets: o,
741
741
  envMode: n.envMode || "build",
742
742
  shortcutsLayer: n.shortcutsLayer || "shortcuts",
743
743
  layers: l,
@@ -749,26 +749,26 @@ function fe(e = {}, t = {}) {
749
749
  postprocess: c("postprocess"),
750
750
  preflights: c("preflights"),
751
751
  autocomplete: x,
752
- variants: c("variants").map(It).sort((p, E) => (p.order || 0) - (E.order || 0)),
753
- shortcuts: Re(c("shortcuts")).reverse(),
752
+ variants: c("variants").map(jt).sort((p, E) => (p.order || 0) - (E.order || 0)),
753
+ shortcuts: ke(c("shortcuts")).reverse(),
754
754
  extractors: u,
755
755
  safelist: c("safelist"),
756
756
  separators: w,
757
757
  details: n.details ?? n.envMode === "dev"
758
758
  };
759
- for (const p of o)
759
+ for (const p of r)
760
760
  (S = p == null ? void 0 : p.configResolved) == null || S.call(p, b);
761
761
  return b;
762
762
  }
763
- function sn(e) {
764
- return e.map((t) => t ? B(t) : {}).reduce((t, n) => Ce(t, n), {});
765
- }
766
763
  function rn(e) {
764
+ return e.map((t) => t ? B(t) : {}).reduce((t, n) => Ae(t, n), {});
765
+ }
766
+ function an(e) {
767
767
  return e.reduce((t, n) => {
768
768
  const s = {};
769
- for (const r in n) {
770
- const o = n[r];
771
- Array.isArray(o) ? s[r] = `(${o.join("|")})` : s[r] = o;
769
+ for (const o in n) {
770
+ const r = n[o];
771
+ Array.isArray(r) ? s[o] = `(${r.join("|")})` : s[o] = r;
772
772
  }
773
773
  return {
774
774
  ...t,
@@ -776,18 +776,18 @@ function rn(e) {
776
776
  };
777
777
  }, {});
778
778
  }
779
- const on = "0.58.5";
780
- var an = Object.defineProperty, cn = (e, t, n) => t in e ? an(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t, n) => (cn(e, typeof t != "symbol" ? t + "" : t, n), n);
781
- class ln {
779
+ const cn = "0.58.5";
780
+ var ln = Object.defineProperty, un = (e, t, n) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, j = (e, t, n) => (un(e, typeof t != "symbol" ? t + "" : t, n), n);
781
+ class fn {
782
782
  constructor(t = {}, n = {}) {
783
- this.userConfig = t, this.defaults = n, D(this, "version", on), D(this, "_cache", /* @__PURE__ */ new Map()), D(this, "config"), D(this, "blocked", /* @__PURE__ */ new Set()), D(this, "parentOrders", /* @__PURE__ */ new Map()), D(this, "events", Yt()), this.config = fe(t, n), this.events.emit("config", this.config);
783
+ this.userConfig = t, this.defaults = n, j(this, "version", cn), j(this, "_cache", /* @__PURE__ */ new Map()), j(this, "config"), j(this, "blocked", /* @__PURE__ */ new Set()), j(this, "parentOrders", /* @__PURE__ */ new Map()), j(this, "events", en()), this.config = fe(t, n), this.events.emit("config", this.config);
784
784
  }
785
785
  setConfig(t, n) {
786
786
  t && (n && (this.defaults = n), this.userConfig = t, this.blocked.clear(), this.parentOrders.clear(), this._cache.clear(), this.config = fe(t, this.defaults), this.events.emit("config", this.config));
787
787
  }
788
788
  async applyExtractors(t, n, s = /* @__PURE__ */ new Set()) {
789
- var o;
790
- const r = {
789
+ var r;
790
+ const o = {
791
791
  original: t,
792
792
  code: t,
793
793
  id: n,
@@ -795,9 +795,9 @@ class ln {
795
795
  envMode: this.config.envMode
796
796
  };
797
797
  for (const a of this.config.extractors) {
798
- const l = await ((o = a.extract) == null ? void 0 : o.call(a, r));
798
+ const l = await ((r = a.extract) == null ? void 0 : r.call(a, o));
799
799
  if (l)
800
- if (Q(l) && Q(s))
800
+ if (Y(l) && Y(s))
801
801
  for (const c of l)
802
802
  s.setCount(c, s.getCount(c) + l.getCount(c));
803
803
  else
@@ -813,7 +813,7 @@ class ln {
813
813
  theme: this.config.theme,
814
814
  generator: this,
815
815
  variantHandlers: n[2],
816
- constructCSS: (...r) => this.constructCustomCSS(s, ...r),
816
+ constructCSS: (...o) => this.constructCustomCSS(s, ...o),
817
817
  variantMatch: n
818
818
  };
819
819
  return s;
@@ -825,21 +825,21 @@ class ln {
825
825
  const s = `${t}${n ? ` ${n}` : ""}`;
826
826
  if (this._cache.has(s))
827
827
  return this._cache.get(s);
828
- let r = t;
828
+ let o = t;
829
829
  for (const i of this.config.preprocess)
830
- r = i(t);
831
- if (this.isBlocked(r)) {
830
+ o = i(t);
831
+ if (this.isBlocked(o)) {
832
832
  this.blocked.add(t), this._cache.set(s, null);
833
833
  return;
834
834
  }
835
- const o = await this.matchVariants(t, r);
836
- if (!o || this.isBlocked(o[1])) {
835
+ const r = await this.matchVariants(t, o);
836
+ if (!r || this.isBlocked(r[1])) {
837
837
  this.blocked.add(t), this._cache.set(s, null);
838
838
  return;
839
839
  }
840
- const a = this.makeContext(t, [n || o[0], o[1], o[2], o[3]]);
841
- this.config.details && (a.variants = [...o[3]]);
842
- const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (u = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : u.map((i) => this.stringifyUtil(i, a)).filter(jt);
840
+ const a = this.makeContext(t, [n || r[0], r[1], r[2], r[3]]);
841
+ this.config.details && (a.variants = [...r[3]]);
842
+ const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (u = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : u.map((i) => this.stringifyUtil(i, a)).filter(Pt);
843
843
  if (c != null && c.length)
844
844
  return this._cache.set(s, c), c;
845
845
  this._cache.set(s, null);
@@ -847,15 +847,15 @@ class ln {
847
847
  async generate(t, n = {}) {
848
848
  const {
849
849
  id: s,
850
- scope: r,
851
- preflights: o = !0,
850
+ scope: o,
851
+ preflights: r = !0,
852
852
  safelist: a = !0,
853
853
  minify: l = !1,
854
854
  extendedInfo: c = !1
855
855
  } = n, u = L(t) ? await this.applyExtractors(
856
856
  t,
857
857
  s,
858
- c ? new Ae() : /* @__PURE__ */ new Set()
858
+ c ? new Oe() : /* @__PURE__ */ new Set()
859
859
  ) : Array.isArray(t) ? new Set(t) : t;
860
860
  a && this.config.safelist.forEach((m) => {
861
861
  u.has(m) || u.add(m);
@@ -871,7 +871,7 @@ class ln {
871
871
  if (S != null) {
872
872
  d instanceof Map ? d.set(m, {
873
873
  data: S,
874
- count: Q(u) ? u.getCount(m) : -1
874
+ count: Y(u) ? u.getCount(m) : -1
875
875
  }) : d.add(m);
876
876
  for (const E of S) {
877
877
  const R = E[3] || "", $ = (p = E[4]) == null ? void 0 : p.layer;
@@ -880,7 +880,7 @@ class ln {
880
880
  }
881
881
  });
882
882
  await Promise.all(_), await (async () => {
883
- if (!o)
883
+ if (!r)
884
884
  return;
885
885
  const m = {
886
886
  generator: this,
@@ -906,29 +906,29 @@ class ln {
906
906
  var $;
907
907
  return (this.parentOrders.get(E[0]) ?? 0) - (this.parentOrders.get(R[0]) ?? 0) || (($ = E[0]) == null ? void 0 : $.localeCompare(R[0] || "")) || 0;
908
908
  }).map(([E, R]) => {
909
- const $ = R.length, I = R.filter((k) => {
909
+ const $ = R.length, N = R.filter((k) => {
910
910
  var T;
911
911
  return (((T = k[4]) == null ? void 0 : T.layer) || z) === m;
912
912
  }).sort((k, T) => {
913
- var M, v, A, C, O, N, j;
914
- return k[0] - T[0] || (((M = k[4]) == null ? void 0 : M.sort) || 0) - (((v = T[4]) == null ? void 0 : v.sort) || 0) || ((O = (A = k[5]) == null ? void 0 : A.currentSelector) == null ? void 0 : O.localeCompare(((C = T[5]) == null ? void 0 : C.currentSelector) ?? "")) || ((N = k[1]) == null ? void 0 : N.localeCompare(T[1] || "")) || ((j = k[2]) == null ? void 0 : j.localeCompare(T[2] || "")) || 0;
915
- }).map(([, k, T, , M, , v]) => [
916
- [[(k && pn(k, r)) ?? "", (M == null ? void 0 : M.sort) ?? 0]],
913
+ var U, v, A, C, O, I, D;
914
+ return k[0] - T[0] || (((U = k[4]) == null ? void 0 : U.sort) || 0) - (((v = T[4]) == null ? void 0 : v.sort) || 0) || ((O = (A = k[5]) == null ? void 0 : A.currentSelector) == null ? void 0 : O.localeCompare(((C = T[5]) == null ? void 0 : C.currentSelector) ?? "")) || ((I = k[1]) == null ? void 0 : I.localeCompare(T[1] || "")) || ((D = k[2]) == null ? void 0 : D.localeCompare(T[2] || "")) || 0;
915
+ }).map(([, k, T, , U, , v]) => [
916
+ [[(k && mn(k, o)) ?? "", (U == null ? void 0 : U.sort) ?? 0]],
917
917
  T,
918
- !!(v ?? (M == null ? void 0 : M.noMerge))
918
+ !!(v ?? (U == null ? void 0 : U.noMerge))
919
919
  ]);
920
- if (!I.length)
920
+ if (!N.length)
921
921
  return;
922
- const P = I.reverse().map(([k, T, M], v) => {
923
- if (!M && this.config.mergeSelectors)
922
+ const P = N.reverse().map(([k, T, U], v) => {
923
+ if (!U && this.config.mergeSelectors)
924
924
  for (let C = v + 1; C < $; C++) {
925
- const O = I[C];
925
+ const O = N[C];
926
926
  if (O && !O[2] && (k && O[0] || k == null && O[0] == null) && O[1] === T)
927
927
  return k && O[0] && O[0].push(...k), null;
928
928
  }
929
929
  const A = k ? q(k.sort((C, O) => {
930
- var N;
931
- return C[1] - O[1] || ((N = C[0]) == null ? void 0 : N.localeCompare(O[0] || "")) || 0;
930
+ var I;
931
+ return C[1] - O[1] || ((I = C[0]) == null ? void 0 : I.localeCompare(O[0] || "")) || 0;
932
932
  }).map((C) => C[0]).filter(Boolean)) : [];
933
933
  return A.length ? `${A.join(`,${i}`)}{${T}}` : T;
934
934
  }).filter(Boolean).reverse().join(i);
@@ -937,7 +937,7 @@ class ln {
937
937
  const V = E.split(" $$ ");
938
938
  return `${V.join("{")}{${i}${P}${i}${"}".repeat(V.length)}`;
939
939
  }).filter(Boolean).join(i);
940
- o && (S = [g[m], S].filter(Boolean).join(i));
940
+ r && (S = [g[m], S].filter(Boolean).join(i));
941
941
  const p = l ? "" : `/* layer: ${m} */${i}`;
942
942
  return x[m] = S ? p + S : "";
943
943
  }, b = (m = y, S) => m.filter((p) => !(S != null && S.includes(p))).map((p) => w(p) || "").filter(Boolean).join(i);
@@ -952,8 +952,8 @@ class ln {
952
952
  };
953
953
  }
954
954
  async matchVariants(t, n) {
955
- const s = /* @__PURE__ */ new Set(), r = [];
956
- let o = n || t, a = !0;
955
+ const s = /* @__PURE__ */ new Set(), o = [];
956
+ let r = n || t, a = !0;
957
957
  const l = {
958
958
  rawSelector: t,
959
959
  theme: this.config.theme,
@@ -964,30 +964,30 @@ class ln {
964
964
  for (const c of this.config.variants) {
965
965
  if (!c.multiPass && s.has(c))
966
966
  continue;
967
- let u = await c.match(o, l);
967
+ let u = await c.match(r, l);
968
968
  if (u) {
969
969
  if (L(u)) {
970
- if (u === o)
970
+ if (u === r)
971
971
  continue;
972
972
  u = { matcher: u };
973
973
  }
974
- o = u.matcher, r.unshift(u), s.add(c), a = !0;
974
+ r = u.matcher, o.unshift(u), s.add(c), a = !0;
975
975
  break;
976
976
  }
977
977
  }
978
978
  if (!a)
979
979
  break;
980
- if (r.length > 500)
980
+ if (o.length > 500)
981
981
  throw new Error(`Too many variants applied to "${t}"`);
982
982
  }
983
- return [t, o, r, s];
983
+ return [t, r, o, s];
984
984
  }
985
985
  applyVariants(t, n = t[4], s = t[1]) {
986
- const o = n.slice().sort((u, i) => (u.order || 0) - (i.order || 0)).reduceRight(
986
+ const r = n.slice().sort((u, i) => (u.order || 0) - (i.order || 0)).reduceRight(
987
987
  (u, i) => (f) => {
988
988
  var g, _;
989
989
  const d = ((g = i.body) == null ? void 0 : g.call(i, f.entries)) || f.entries, h = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
990
- return (i.handle ?? mn)({
990
+ return (i.handle ?? _n)({
991
991
  ...f,
992
992
  entries: d,
993
993
  selector: ((_ = i.selector) == null ? void 0 : _.call(i, f.selector, d)) || f.selector,
@@ -1000,43 +1000,43 @@ class ln {
1000
1000
  (u) => u
1001
1001
  )({
1002
1002
  prefix: "",
1003
- selector: dn(s),
1003
+ selector: hn(s),
1004
1004
  pseudo: "",
1005
1005
  entries: t[2]
1006
- }), { parent: a, parentOrder: l } = o;
1006
+ }), { parent: a, parentOrder: l } = r;
1007
1007
  a != null && l != null && this.parentOrders.set(a, l);
1008
1008
  const c = {
1009
1009
  selector: [
1010
- o.prefix,
1011
- o.selector,
1012
- o.pseudo
1010
+ r.prefix,
1011
+ r.selector,
1012
+ r.pseudo
1013
1013
  ].join(""),
1014
- entries: o.entries,
1014
+ entries: r.entries,
1015
1015
  parent: a,
1016
- layer: o.layer,
1017
- sort: o.sort,
1018
- noMerge: o.noMerge
1016
+ layer: r.layer,
1017
+ sort: r.sort,
1018
+ noMerge: r.noMerge
1019
1019
  };
1020
1020
  for (const u of this.config.postprocess)
1021
1021
  u(c);
1022
1022
  return c;
1023
1023
  }
1024
1024
  constructCustomCSS(t, n, s) {
1025
- const r = F(n);
1026
- if (L(r))
1027
- return r;
1028
- const { selector: o, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, r, void 0, t.variantHandlers]), c = `${o}{${X(a)}}`;
1025
+ const o = F(n);
1026
+ if (L(o))
1027
+ return o;
1028
+ const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${X(a)}}`;
1029
1029
  return l ? `${l}{${c}}` : c;
1030
1030
  }
1031
- async parseUtil(t, n, s = !1, r) {
1031
+ async parseUtil(t, n, s = !1, o) {
1032
1032
  var i;
1033
- const [o, a, l] = L(t) ? await this.matchVariants(t) : t;
1033
+ const [r, a, l] = L(t) ? await this.matchVariants(t) : t;
1034
1034
  this.config.details && (n.rules = n.rules ?? []);
1035
1035
  const c = this.config.rulesStaticMap[a];
1036
1036
  if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
1037
1037
  this.config.details && n.rules.push(c[3]);
1038
1038
  const f = c[0], d = F(c[1]), h = c[2];
1039
- return L(d) ? [[f, d, h]] : [[f, o, d, h, l]];
1039
+ return L(d) ? [[f, d, h]] : [[f, r, d, h, l]];
1040
1040
  }
1041
1041
  n.variantHandlers = l;
1042
1042
  const { rulesDynamic: u } = this.config;
@@ -1045,9 +1045,9 @@ class ln {
1045
1045
  continue;
1046
1046
  let _ = a;
1047
1047
  if (g != null && g.prefix) {
1048
- const b = U(g.prefix);
1049
- if (r) {
1050
- const m = U(r);
1048
+ const b = M(g.prefix);
1049
+ if (o) {
1050
+ const m = M(o);
1051
1051
  if (!b.some((S) => m.includes(S)))
1052
1052
  continue;
1053
1053
  } else {
@@ -1064,9 +1064,9 @@ class ln {
1064
1064
  if (!x)
1065
1065
  continue;
1066
1066
  this.config.details && n.rules.push([d, h, g]);
1067
- const w = Lt(x).filter((b) => b.length);
1067
+ const w = It(x).filter((b) => b.length);
1068
1068
  if (w.length)
1069
- return w.map((b) => L(b) ? [f, b, g] : [f, o, b, g, l]);
1069
+ return w.map((b) => L(b) ? [f, b, g] : [f, r, b, g, l]);
1070
1070
  }
1071
1071
  }
1072
1072
  stringifyUtil(t, n) {
@@ -1074,7 +1074,7 @@ class ln {
1074
1074
  return;
1075
1075
  if (ce(t))
1076
1076
  return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
1077
- const { selector: s, entries: r, parent: o, layer: a, sort: l, noMerge: c } = this.applyVariants(t), u = X(r);
1077
+ const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), u = X(o);
1078
1078
  if (!u)
1079
1079
  return;
1080
1080
  const { layer: i, sort: f, ...d } = t[3] ?? {}, h = {
@@ -1082,38 +1082,38 @@ class ln {
1082
1082
  layer: a ?? i,
1083
1083
  sort: l ?? f
1084
1084
  };
1085
- return [t[0], s, u, o, h, this.config.details ? n : void 0, c];
1085
+ return [t[0], s, u, r, h, this.config.details ? n : void 0, c];
1086
1086
  }
1087
1087
  async expandShortcut(t, n, s = 5) {
1088
1088
  var l;
1089
1089
  if (s === 0)
1090
1090
  return;
1091
- const r = this.config.details ? (c) => {
1091
+ const o = this.config.details ? (c) => {
1092
1092
  n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
1093
- } : Dt;
1094
- let o, a;
1093
+ } : Ft;
1094
+ let r, a;
1095
1095
  for (const c of this.config.shortcuts) {
1096
1096
  let u = t;
1097
1097
  if ((l = c[2]) != null && l.prefix) {
1098
- const f = U(c[2].prefix).find((d) => t.startsWith(d));
1098
+ const f = M(c[2].prefix).find((d) => t.startsWith(d));
1099
1099
  if (f == null)
1100
1100
  continue;
1101
1101
  u = t.slice(f.length);
1102
1102
  }
1103
- if (Ut(c)) {
1103
+ if (Dt(c)) {
1104
1104
  if (c[0] === u) {
1105
- o = o || c[2], a = c[1], r(c);
1105
+ r = r || c[2], a = c[1], o(c);
1106
1106
  break;
1107
1107
  }
1108
1108
  } else {
1109
1109
  const i = u.match(c[0]);
1110
1110
  if (i && (a = c[1](i, n)), a) {
1111
- o = o || c[2], r(c);
1111
+ r = r || c[2], o(c);
1112
1112
  break;
1113
1113
  }
1114
1114
  }
1115
1115
  }
1116
- if (L(a) && (a = Kt(a.trim()).split(/\s+/g)), !a) {
1116
+ if (L(a) && (a = Xt(a.trim()).split(/\s+/g)), !a) {
1117
1117
  const [c, u] = L(t) ? await this.matchVariants(t) : t;
1118
1118
  if (c !== u) {
1119
1119
  const i = await this.expandShortcut(u, n, s - 1);
@@ -1126,14 +1126,14 @@ class ln {
1126
1126
  var u;
1127
1127
  return (L(c) ? (u = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : u[0] : void 0) || [c];
1128
1128
  }))).flat(1).filter(Boolean),
1129
- o
1129
+ r
1130
1130
  ];
1131
1131
  }
1132
- async stringifyShortcuts(t, n, s, r = { layer: this.config.shortcutsLayer }) {
1132
+ async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
1133
1133
  var i;
1134
- const o = new Gt(), a = (await Promise.all(q(s).map(async (f) => {
1135
- const d = L(f) ? await this.parseUtil(f, n, !0, r.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", F(f), void 0, []]];
1136
- return !d && this.config.warn && Oe(`unmatched utility "${f}" in shortcut "${t[1]}"`), d || [];
1134
+ const r = new Bt(), a = (await Promise.all(q(s).map(async (f) => {
1135
+ const d = L(f) ? await this.parseUtil(f, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", F(f), void 0, []]];
1136
+ return !d && this.config.warn && Re(`unmatched utility "${f}" in shortcut "${t[1]}"`), d || [];
1137
1137
  }))).flat(1).filter(Boolean).sort((f, d) => f[0] - d[0]), [l, , c] = t, u = [];
1138
1138
  for (const f of a) {
1139
1139
  if (ce(f)) {
@@ -1141,15 +1141,15 @@ class ln {
1141
1141
  continue;
1142
1142
  }
1143
1143
  const { selector: d, entries: h, parent: g, sort: _, noMerge: y } = this.applyVariants(f, [...f[4], ...c], l);
1144
- o.getFallback(d, g, [[], f[0]])[0].push([h, !!(y ?? ((i = f[3]) == null ? void 0 : i.noMerge)), _ ?? 0]);
1144
+ r.getFallback(d, g, [[], f[0]])[0].push([h, !!(y ?? ((i = f[3]) == null ? void 0 : i.noMerge)), _ ?? 0]);
1145
1145
  }
1146
- return u.concat(o.map(([f, d], h, g) => {
1146
+ return u.concat(r.map(([f, d], h, g) => {
1147
1147
  const _ = (x, w, b) => {
1148
1148
  const m = Math.max(...b.map((p) => p[1])), S = b.map((p) => p[0]);
1149
1149
  return (x ? [S.flat(1)] : S).map((p) => {
1150
1150
  const E = X(p);
1151
1151
  if (E)
1152
- return [d, h, E, g, { ...r, noMerge: w, sort: m }, n, void 0];
1152
+ return [d, h, E, g, { ...o, noMerge: w, sort: m }, n, void 0];
1153
1153
  });
1154
1154
  };
1155
1155
  return [
@@ -1165,25 +1165,25 @@ class ln {
1165
1165
  return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) : L(n) ? n === t : n.test(t));
1166
1166
  }
1167
1167
  }
1168
- function un(e, t) {
1169
- return new ln(e, t);
1170
- }
1171
- const $e = /\s\$\$\s+/g;
1172
- function fn(e) {
1173
- return $e.test(e);
1174
- }
1175
1168
  function pn(e, t) {
1176
- return fn(e) ? e.replace($e, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
1169
+ return new fn(e, t);
1177
1170
  }
1178
- const pe = /^\[(.+?)(~?=)"(.*)"\]$/;
1171
+ const Te = /\s\$\$\s+/g;
1179
1172
  function dn(e) {
1180
- return pe.test(e) ? e.replace(pe, (t, n, s, r) => `[${J(n)}${s}"${J(r)}"]`) : `.${J(e)}`;
1173
+ return Te.test(e);
1181
1174
  }
1182
1175
  function mn(e, t) {
1176
+ return dn(e) ? e.replace(Te, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
1177
+ }
1178
+ const pe = /^\[(.+?)(~?=)"(.*)"\]$/;
1179
+ function hn(e) {
1180
+ return pe.test(e) ? e.replace(pe, (t, n, s, o) => `[${J(n)}${s}"${J(o)}"]`) : `.${J(e)}`;
1181
+ }
1182
+ function _n(e, t) {
1183
1183
  return t(e);
1184
1184
  }
1185
- var de = { npm_package_dependencies__vueuse_core: "^10.7.2", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.1.3", SHELL: "/bin/zsh", TERM: "xterm-256color", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "5.2.2", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.58.5", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", ZDOTDIR: "/Users/arlo", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", TERM_SESSION_ID: "w0t0p0:2FBE6FCD-9D49-46C5-9BB4-80E02C27ECCA", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", PNPM_HOME: "/Users/arlo/Library/pnpm", ZSH: "/Users/arlo/.oh-my-zsh", FNM_COREPACK_ENABLED: "false", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^3.1.0", USER: "arlo", npm_package_license: "MIT", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", COMMAND_MODE: "unix2003", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.lkyNfRhvwV/Listeners", npm_package_devDependencies_dayjs: "^1.11.10", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_devDependencies_unplugin_auto_import: "^0.17.5", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", LSCOLORS: "Gxfxcxdxbxegedabagacad", FNM_VERSION_FILE_STRATEGY: "local", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", FNM_ARCH: "arm64", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/usr/local/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/11451_1708094689081/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/807_1708076882337/bin:/opt/homebrew/bin", 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", USER_ZDOTDIR: "/Users/arlo", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_exports____: "./dist/*", npm_lifecycle_event: "build:lib", npm_package_devDependencies_vue: "^3.4.19", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.9.0", npm_package_devDependencies_sass: "^1.71.0", npm_package_devDependencies__unocss_reset: "^0.58.5", npm_package_scripts_build: "tsx ./scripts/pre-build.ts && (nr build:lib & vite build)", NODE_PATH: "/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.3_@types+node@20.11.19_sass@1.71.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.3_@types+node@20.11.19_sass@1.71.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.3_@types+node@20.11.19_sass@1.71.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.3/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", FNM_MULTISHELL_PATH: "/Users/arlo/Library/Caches/fnm_multishells/11451_1708094689081", npm_package_devDependencies__unocss_core: "^0.58.5", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", npm_config_side_effects_cache: "", npm_package_dependencies_colord: "^2.9.3", npm_package_devDependencies__iconify_json: "^2.2.183", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.15", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.58.5", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", COLORFGBG: "7;0", HOME: "/Users/arlo", SHLVL: "3", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_dependencies_vite_hot_client: "^0.2.3", LC_TERMINAL_VERSION: "3.4.23", FNM_DIR: "/Users/arlo/Library/Application Support/fnm", npm_package_dependencies_vis_network: "^9.1.9", ITERM_SESSION_ID: "w0t0p0:2FBE6FCD-9D49-46C5-9BB4-80E02C27ECCA", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", LESS: "-R", LOGNAME: "arlo", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.7.2", VSCODE_GIT_IPC_HANDLE: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/vscode-git-4d965c4849.sock", npm_config_user_agent: "pnpm/8.15.3 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.11.19", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.7.1", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies_shiki: "1.1.3", npm_package_dependencies__unocss_preset_icons: "^0.58.5", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
1186
- const hn = Object.freeze(
1185
+ var de = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.1.5", SHELL: "/bin/zsh", TERM: "xterm-256color", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "5.2.2", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.58.5", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", ZDOTDIR: "/Users/arlo", TERM_SESSION_ID: "w0t0p0:31DF3460-0650-44EA-906D-6BCB6072E17A", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", PNPM_HOME: "/Users/arlo/Library/pnpm", ZSH: "/Users/arlo/.oh-my-zsh", FNM_COREPACK_ENABLED: "false", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^3.1.0", USER: "arlo", npm_package_license: "MIT", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", COMMAND_MODE: "unix2003", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.6SNYWUo0i8/Listeners", npm_package_devDependencies_dayjs: "^1.11.10", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_devDependencies_unplugin_auto_import: "^0.17.5", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", FNM_VERSION_FILE_STRATEGY: "local", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", FNM_ARCH: "arm64", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/usr/local/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/91545_1710247561326/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/63657_1710152682395/bin:/opt/homebrew/bin", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "8C52347B-2A2B-41CD-812D-4952400B468B", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", USER_ZDOTDIR: "/Users/arlo", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_exports____: "./dist/*", npm_lifecycle_event: "build:lib", npm_package_devDependencies_vue: "^3.4.21", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.10.0", npm_package_devDependencies_sass: "^1.71.1", npm_package_devDependencies__unocss_reset: "^0.58.5", npm_package_scripts_build: "tsx ./scripts/pre-build.ts && (nr build:lib & vite build)", NODE_PATH: "/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.5_@types+node@20.11.25_sass@1.71.1/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.5_@types+node@20.11.25_sass@1.71.1/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.5_@types+node@20.11.25_sass@1.71.1/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.12.5/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.12.5/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.12.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.4/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", FNM_MULTISHELL_PATH: "/Users/arlo/Library/Caches/fnm_multishells/91545_1710247561326", TURBO_HASH: "59b76f3bea1d8d57", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.58.5", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", npm_config_side_effects_cache: "", npm_package_dependencies_colord: "^2.9.3", npm_package_devDependencies__iconify_json: "^2.2.191", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.17", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.58.5", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", COLORFGBG: "7;0", HOME: "/Users/arlo", SHLVL: "3", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_dependencies_vite_hot_client: "^0.2.3", LC_TERMINAL_VERSION: "3.4.23", FNM_DIR: "/Users/arlo/Library/Application Support/fnm", npm_package_dependencies_vis_network: "^9.1.9", ITERM_SESSION_ID: "w0t0p0:31DF3460-0650-44EA-906D-6BCB6072E17A", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", LESS: "-R", LOGNAME: "arlo", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.9.0", VSCODE_GIT_IPC_HANDLE: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/vscode-git-4d965c4849.sock", npm_config_user_agent: "pnpm/8.15.4 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.11.25", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.9.0", npm_package_dependencies_vue_router: "^4.3.0", npm_package_dependencies_shiki: "1.1.7", SECURITYSESSIONID: "186a4", npm_package_dependencies__unocss_preset_icons: "^0.58.5", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
1186
+ const gn = Object.freeze(
1187
1187
  {
1188
1188
  left: 0,
1189
1189
  top: 0,
@@ -1194,66 +1194,66 @@ const hn = Object.freeze(
1194
1194
  rotate: 0,
1195
1195
  vFlip: !1,
1196
1196
  hFlip: !1
1197
- }), Te = Object.freeze({
1198
- ...hn,
1197
+ }), Le = Object.freeze({
1198
+ ...gn,
1199
1199
  ...W
1200
- }), _n = Object.freeze({
1201
- ...Te,
1200
+ }), yn = Object.freeze({
1201
+ ...Le,
1202
1202
  body: "",
1203
1203
  hidden: !1
1204
- }), gn = Object.freeze({
1204
+ }), bn = Object.freeze({
1205
1205
  width: null,
1206
1206
  height: null
1207
- }), Le = Object.freeze({
1207
+ }), Ue = Object.freeze({
1208
1208
  // Dimensions
1209
- ...gn,
1209
+ ...bn,
1210
1210
  // Transformations
1211
1211
  ...W
1212
1212
  });
1213
- function yn(e, t) {
1213
+ function vn(e, t) {
1214
1214
  const n = {};
1215
1215
  !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
1216
1216
  const s = ((e.rotate || 0) + (t.rotate || 0)) % 4;
1217
1217
  return s && (n.rotate = s), n;
1218
1218
  }
1219
1219
  function me(e, t) {
1220
- const n = yn(e, t);
1221
- for (const s in _n)
1220
+ const n = vn(e, t);
1221
+ for (const s in yn)
1222
1222
  s in W ? s in e && !(s in n) && (n[s] = W[s]) : s in t ? n[s] = t[s] : s in e && (n[s] = e[s]);
1223
1223
  return n;
1224
1224
  }
1225
- function bn(e, t) {
1226
- const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
1227
- function o(a) {
1225
+ function wn(e, t) {
1226
+ const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
1227
+ function r(a) {
1228
1228
  if (n[a])
1229
- return r[a] = [];
1230
- if (!(a in r)) {
1231
- r[a] = null;
1232
- const l = s[a] && s[a].parent, c = l && o(l);
1233
- c && (r[a] = [l].concat(c));
1229
+ return o[a] = [];
1230
+ if (!(a in o)) {
1231
+ o[a] = null;
1232
+ const l = s[a] && s[a].parent, c = l && r(l);
1233
+ c && (o[a] = [l].concat(c));
1234
1234
  }
1235
- return r[a];
1235
+ return o[a];
1236
1236
  }
1237
- return (t || Object.keys(n).concat(Object.keys(s))).forEach(o), r;
1237
+ return (t || Object.keys(n).concat(Object.keys(s))).forEach(r), o;
1238
1238
  }
1239
1239
  function he(e, t, n) {
1240
- const s = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null);
1241
- let o = {};
1240
+ const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
1241
+ let r = {};
1242
1242
  function a(l) {
1243
- o = me(
1244
- s[l] || r[l],
1245
- o
1243
+ r = me(
1244
+ s[l] || o[l],
1245
+ r
1246
1246
  );
1247
1247
  }
1248
- return a(t), n.forEach(a), me(e, o);
1248
+ return a(t), n.forEach(a), me(e, r);
1249
1249
  }
1250
- function vn(e, t) {
1250
+ function Sn(e, t) {
1251
1251
  if (e.icons[t])
1252
1252
  return he(e, t, []);
1253
- const n = bn(e, [t])[t];
1253
+ const n = wn(e, [t])[t];
1254
1254
  return n ? he(e, t, n) : null;
1255
1255
  }
1256
- const wn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Sn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1256
+ const En = /(-?[0-9.]*[0-9]+[0-9.]*)/g, xn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1257
1257
  function _e(e, t, n) {
1258
1258
  if (t === 1)
1259
1259
  return e;
@@ -1261,111 +1261,111 @@ function _e(e, t, n) {
1261
1261
  return Math.ceil(e * t * n) / n;
1262
1262
  if (typeof e != "string")
1263
1263
  return e;
1264
- const s = e.split(wn);
1264
+ const s = e.split(En);
1265
1265
  if (s === null || !s.length)
1266
1266
  return e;
1267
- const r = [];
1268
- let o = s.shift(), a = Sn.test(o);
1267
+ const o = [];
1268
+ let r = s.shift(), a = xn.test(r);
1269
1269
  for (; ; ) {
1270
1270
  if (a) {
1271
- const l = parseFloat(o);
1272
- isNaN(l) ? r.push(o) : r.push(Math.ceil(l * t * n) / n);
1271
+ const l = parseFloat(r);
1272
+ isNaN(l) ? o.push(r) : o.push(Math.ceil(l * t * n) / n);
1273
1273
  } else
1274
- r.push(o);
1275
- if (o = s.shift(), o === void 0)
1276
- return r.join("");
1274
+ o.push(r);
1275
+ if (r = s.shift(), r === void 0)
1276
+ return o.join("");
1277
1277
  a = !a;
1278
1278
  }
1279
1279
  }
1280
- function En(e, t = "defs") {
1280
+ function Cn(e, t = "defs") {
1281
1281
  let n = "";
1282
1282
  const s = e.indexOf("<" + t);
1283
1283
  for (; s >= 0; ) {
1284
- const r = e.indexOf(">", s), o = e.indexOf("</" + t);
1285
- if (r === -1 || o === -1)
1284
+ const o = e.indexOf(">", s), r = e.indexOf("</" + t);
1285
+ if (o === -1 || r === -1)
1286
1286
  break;
1287
- const a = e.indexOf(">", o);
1287
+ const a = e.indexOf(">", r);
1288
1288
  if (a === -1)
1289
1289
  break;
1290
- n += e.slice(r + 1, o).trim(), e = e.slice(0, s).trim() + e.slice(a + 1);
1290
+ n += e.slice(o + 1, r).trim(), e = e.slice(0, s).trim() + e.slice(a + 1);
1291
1291
  }
1292
1292
  return {
1293
1293
  defs: n,
1294
1294
  content: e
1295
1295
  };
1296
1296
  }
1297
- function xn(e, t) {
1297
+ function An(e, t) {
1298
1298
  return e ? "<defs>" + e + "</defs>" + t : t;
1299
1299
  }
1300
- function Cn(e, t, n) {
1301
- const s = En(e);
1302
- return xn(s.defs, t + s.content + n);
1300
+ function On(e, t, n) {
1301
+ const s = Cn(e);
1302
+ return An(s.defs, t + s.content + n);
1303
1303
  }
1304
- const re = (e) => e === "unset" || e === "undefined" || e === "none";
1305
- function An(e, t) {
1304
+ const oe = (e) => e === "unset" || e === "undefined" || e === "none";
1305
+ function Rn(e, t) {
1306
1306
  const n = {
1307
- ...Te,
1307
+ ...Le,
1308
1308
  ...e
1309
1309
  }, s = {
1310
- ...Le,
1310
+ ...Ue,
1311
1311
  ...t
1312
- }, r = {
1312
+ }, o = {
1313
1313
  left: n.left,
1314
1314
  top: n.top,
1315
1315
  width: n.width,
1316
1316
  height: n.height
1317
1317
  };
1318
- let o = n.body;
1318
+ let r = n.body;
1319
1319
  [n, s].forEach((_) => {
1320
1320
  const y = [], x = _.hFlip, w = _.vFlip;
1321
1321
  let b = _.rotate;
1322
1322
  x ? w ? b += 2 : (y.push(
1323
- "translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
1324
- ), y.push("scale(-1 1)"), r.top = r.left = 0) : w && (y.push(
1325
- "translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
1326
- ), y.push("scale(1 -1)"), r.top = r.left = 0);
1323
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
1324
+ ), y.push("scale(-1 1)"), o.top = o.left = 0) : w && (y.push(
1325
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
1326
+ ), y.push("scale(1 -1)"), o.top = o.left = 0);
1327
1327
  let m;
1328
1328
  switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
1329
1329
  case 1:
1330
- m = r.height / 2 + r.top, y.unshift(
1330
+ m = o.height / 2 + o.top, y.unshift(
1331
1331
  "rotate(90 " + m.toString() + " " + m.toString() + ")"
1332
1332
  );
1333
1333
  break;
1334
1334
  case 2:
1335
1335
  y.unshift(
1336
- "rotate(180 " + (r.width / 2 + r.left).toString() + " " + (r.height / 2 + r.top).toString() + ")"
1336
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
1337
1337
  );
1338
1338
  break;
1339
1339
  case 3:
1340
- m = r.width / 2 + r.left, y.unshift(
1340
+ m = o.width / 2 + o.left, y.unshift(
1341
1341
  "rotate(-90 " + m.toString() + " " + m.toString() + ")"
1342
1342
  );
1343
1343
  break;
1344
1344
  }
1345
- b % 2 === 1 && (r.left !== r.top && (m = r.left, r.left = r.top, r.top = m), r.width !== r.height && (m = r.width, r.width = r.height, r.height = m)), y.length && (o = Cn(
1346
- o,
1345
+ b % 2 === 1 && (o.left !== o.top && (m = o.left, o.left = o.top, o.top = m), o.width !== o.height && (m = o.width, o.width = o.height, o.height = m)), y.length && (r = On(
1346
+ r,
1347
1347
  '<g transform="' + y.join(" ") + '">',
1348
1348
  "</g>"
1349
1349
  ));
1350
1350
  });
1351
- const a = s.width, l = s.height, c = r.width, u = r.height;
1351
+ const a = s.width, l = s.height, c = o.width, u = o.height;
1352
1352
  let i, f;
1353
1353
  a === null ? (f = l === null ? "1em" : l === "auto" ? u : l, i = _e(f, c / u)) : (i = a === "auto" ? c : a, f = l === null ? _e(i, u / c) : l === "auto" ? u : l);
1354
1354
  const d = {}, h = (_, y) => {
1355
- re(y) || (d[_] = y.toString());
1355
+ oe(y) || (d[_] = y.toString());
1356
1356
  };
1357
1357
  h("width", i), h("height", f);
1358
- const g = [r.left, r.top, c, u];
1358
+ const g = [o.left, o.top, c, u];
1359
1359
  return d.viewBox = g.join(" "), {
1360
1360
  attributes: d,
1361
1361
  viewBox: g,
1362
- body: o
1362
+ body: r
1363
1363
  };
1364
1364
  }
1365
- function On(e) {
1365
+ function kn(e) {
1366
1366
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1367
1367
  }
1368
- function Rn(e) {
1368
+ function $n(e) {
1369
1369
  let t = e.startsWith("<svg>") ? e.replace("<svg>", "<svg >") : e;
1370
1370
  return !t.includes(" xmlns:xlink=") && t.includes(" xlink:") && (t = t.replace(
1371
1371
  "<svg ",
@@ -1373,33 +1373,33 @@ function Rn(e) {
1373
1373
  )), t.includes(" xmlns=") || (t = t.replace(
1374
1374
  "<svg ",
1375
1375
  '<svg xmlns="http://www.w3.org/2000/svg" '
1376
- )), On(t);
1376
+ )), kn(t);
1377
1377
  }
1378
- function kn(e) {
1378
+ function Tn(e) {
1379
1379
  return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').replace(/(\s)+\/>/g, "/>").trim();
1380
1380
  }
1381
- const $n = /\swidth\s*=\s*["']([\w.]+)["']/, Tn = /\sheight\s*=\s*["']([\w.]+)["']/, Y = /<svg\s+/;
1382
- function Ln(e, t, n) {
1383
- const s = e.slice(0, e.indexOf(">")), r = (o, a) => {
1384
- const l = a.exec(s), c = l != null, u = t[o];
1385
- return !u && !re(u) && (typeof n == "number" ? n > 0 && (t[o] = `${n}em`) : l && (t[o] = l[1])), c;
1381
+ const Ln = /\swidth\s*=\s*["']([\w.]+)["']/, Un = /\sheight\s*=\s*["']([\w.]+)["']/, Q = /<svg\s+/;
1382
+ function In(e, t, n) {
1383
+ const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
1384
+ const l = a.exec(s), c = l != null, u = t[r];
1385
+ return !u && !oe(u) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
1386
1386
  };
1387
- return [r("width", $n), r("height", Tn)];
1387
+ return [o("width", Ln), o("height", Un)];
1388
1388
  }
1389
- async function Me(e, t, n, s, r, o) {
1390
- const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: u } = (s == null ? void 0 : s.customizations) ?? {}, i = await (r == null ? void 0 : r()) ?? {};
1389
+ async function Ie(e, t, n, s, o, r) {
1390
+ const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: u } = (s == null ? void 0 : s.customizations) ?? {}, i = await (o == null ? void 0 : o()) ?? {};
1391
1391
  await (u == null ? void 0 : u(t, n, i)), Object.keys(c).forEach((_) => {
1392
1392
  const y = c[_];
1393
1393
  y != null && (i[_] = y);
1394
- }), o == null || o(i);
1395
- const [f, d] = Ln(e, i, a);
1394
+ }), r == null || r(i);
1395
+ const [f, d] = In(e, i, a);
1396
1396
  l && (!e.includes("xmlns=") && !i.xmlns && (i.xmlns = "http://www.w3.org/2000/svg"), !e.includes("xmlns:xlink=") && e.includes("xlink:") && !i["xmlns:xlink"] && (i["xmlns:xlink"] = "http://www.w3.org/1999/xlink"));
1397
1397
  const h = Object.keys(i).map(
1398
1398
  (_) => _ === "width" && f || _ === "height" && d ? null : `${_}="${i[_]}"`
1399
1399
  ).filter((_) => _ != null);
1400
- if (h.length && (e = e.replace(Y, `<svg ${h.join(" ")} `)), s) {
1400
+ if (h.length && (e = e.replace(Q, `<svg ${h.join(" ")} `)), s) {
1401
1401
  const { defaultStyle: _, defaultClass: y } = s;
1402
- y && !e.includes("class=") && (e = e.replace(Y, `<svg class="${y}" `)), _ && !e.includes("style=") && (e = e.replace(Y, `<svg style="${_}" `));
1402
+ y && !e.includes("class=") && (e = e.replace(Q, `<svg class="${y}" `)), _ && !e.includes("style=") && (e = e.replace(Q, `<svg style="${_}" `));
1403
1403
  }
1404
1404
  const g = s == null ? void 0 : s.usedProps;
1405
1405
  return g && (Object.keys(c).forEach((_) => {
@@ -1408,14 +1408,14 @@ async function Me(e, t, n, s, r, o) {
1408
1408
  }), typeof i.width < "u" && i.width !== null && (g.width = i.width), typeof i.height < "u" && i.height !== null && (g.height = i.height)), e;
1409
1409
  }
1410
1410
  async function ge(e, t, n, s) {
1411
- var o;
1412
- let r;
1411
+ var r;
1412
+ let o;
1413
1413
  try {
1414
1414
  if (typeof e == "function")
1415
- r = await e(n);
1415
+ o = await e(n);
1416
1416
  else {
1417
1417
  const a = e[n];
1418
- r = typeof a == "function" ? await a() : a;
1418
+ o = typeof a == "function" ? await a() : a;
1419
1419
  }
1420
1420
  } catch (a) {
1421
1421
  console.warn(
@@ -1424,33 +1424,33 @@ async function ge(e, t, n, s) {
1424
1424
  );
1425
1425
  return;
1426
1426
  }
1427
- if (r) {
1428
- const a = r.indexOf("<svg");
1429
- a > 0 && (r = r.slice(a));
1427
+ if (o) {
1428
+ const a = o.indexOf("<svg");
1429
+ a > 0 && (o = o.slice(a));
1430
1430
  const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
1431
- return r = typeof l == "function" ? await l(r, t, n) : r, r.startsWith("<svg") ? await Me(
1432
- ((o = s == null ? void 0 : s.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ? kn(r) : r,
1431
+ return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Ie(
1432
+ ((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? Tn(o) : o,
1433
1433
  t,
1434
1434
  n,
1435
1435
  s,
1436
1436
  void 0
1437
1437
  ) : (console.warn(
1438
1438
  `Custom icon "${n}" in "${t}" is not a valid SVG`
1439
- ), r);
1439
+ ), o);
1440
1440
  }
1441
1441
  }
1442
- async function Ne(e, t, n, s) {
1443
- let r;
1444
- const { customize: o } = (s == null ? void 0 : s.customizations) ?? {};
1442
+ async function Me(e, t, n, s) {
1443
+ let o;
1444
+ const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
1445
1445
  for (const a of n)
1446
- if (r = vn(e, a), r) {
1447
- let l = { ...Le };
1448
- typeof o == "function" && (l = o(l));
1446
+ if (o = Sn(e, a), o) {
1447
+ let l = { ...Ue };
1448
+ typeof r == "function" && (l = r(l));
1449
1449
  const {
1450
1450
  attributes: { width: c, height: u, ...i },
1451
1451
  body: f
1452
- } = An(r, l), d = s == null ? void 0 : s.scale;
1453
- return await Me(
1452
+ } = Rn(o, l), d = s == null ? void 0 : s.scale;
1453
+ return await Ie(
1454
1454
  // DON'T remove space on <svg >
1455
1455
  `<svg >${f}</svg>`,
1456
1456
  t,
@@ -1461,7 +1461,7 @@ async function Ne(e, t, n, s) {
1461
1461
  const g = (_, y) => {
1462
1462
  const x = h[_];
1463
1463
  let w;
1464
- if (!re(x)) {
1464
+ if (!oe(x)) {
1465
1465
  if (x)
1466
1466
  return;
1467
1467
  typeof d == "number" ? d && (w = `${d}em`) : w = y;
@@ -1473,14 +1473,14 @@ async function Ne(e, t, n, s) {
1473
1473
  );
1474
1474
  }
1475
1475
  }
1476
- const Ue = async (e, t, n) => {
1477
- var r;
1478
- const s = (r = n == null ? void 0 : n.customCollections) == null ? void 0 : r[e];
1476
+ const Ne = async (e, t, n) => {
1477
+ var o;
1478
+ const s = (o = n == null ? void 0 : n.customCollections) == null ? void 0 : o[e];
1479
1479
  if (s)
1480
1480
  if (typeof s == "function") {
1481
- let o;
1481
+ let r;
1482
1482
  try {
1483
- o = await s(t);
1483
+ r = await s(t);
1484
1484
  } catch (a) {
1485
1485
  console.warn(
1486
1486
  `Failed to load custom icon "${t}" in "${e}":`,
@@ -1488,22 +1488,22 @@ const Ue = async (e, t, n) => {
1488
1488
  );
1489
1489
  return;
1490
1490
  }
1491
- if (o) {
1492
- if (typeof o == "string")
1491
+ if (r) {
1492
+ if (typeof r == "string")
1493
1493
  return await ge(
1494
- () => o,
1494
+ () => r,
1495
1495
  e,
1496
1496
  t,
1497
1497
  n
1498
1498
  );
1499
- if ("icons" in o) {
1499
+ if ("icons" in r) {
1500
1500
  const a = [
1501
1501
  t,
1502
1502
  t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1503
1503
  t.replace(/([a-z])(\d+)/g, "$1-$2")
1504
1504
  ];
1505
- return await Ne(
1506
- o,
1505
+ return await Me(
1506
+ r,
1507
1507
  e,
1508
1508
  a,
1509
1509
  n
@@ -1688,14 +1688,14 @@ var Nn = [
1688
1688
  "zmdi",
1689
1689
  "zondicons"
1690
1690
  ];
1691
- const Un = /* @__PURE__ */ Mn(Nn), In = 3;
1692
- function jn(e) {
1691
+ const Dn = /* @__PURE__ */ Mn(Nn), jn = 3;
1692
+ function Pn(e) {
1693
1693
  return (t = {}) => {
1694
1694
  const {
1695
1695
  scale: n = 1,
1696
1696
  mode: s = "auto",
1697
- prefix: r = "i-",
1698
- warn: o = !1,
1697
+ prefix: o = "i-",
1698
+ warn: r = !1,
1699
1699
  collections: a,
1700
1700
  extraProperties: l = {},
1701
1701
  customizations: c = {},
@@ -1703,7 +1703,7 @@ function jn(e) {
1703
1703
  collectionsNodeResolvePath: i,
1704
1704
  layer: f = "icons",
1705
1705
  unit: d
1706
- } = t, h = Dn(), g = {
1706
+ } = t, h = Fn(), g = {
1707
1707
  addXmlNs: !0,
1708
1708
  scale: n,
1709
1709
  customCollections: a,
@@ -1737,14 +1737,14 @@ function jn(e) {
1737
1737
  [b, m] = x.split(":"), S = await _(b, m, { ...g, usedProps: p });
1738
1738
  else {
1739
1739
  const R = x.split(/-/g);
1740
- for (let $ = In; $ >= 1 && (b = R.slice(0, $).join("-"), m = R.slice($).join("-"), S = await _(b, m, { ...g, usedProps: p }), !S); $--)
1740
+ for (let $ = jn; $ >= 1 && (b = R.slice(0, $).join("-"), m = R.slice($).join("-"), S = await _(b, m, { ...g, usedProps: p }), !S); $--)
1741
1741
  ;
1742
1742
  }
1743
1743
  if (!S) {
1744
- o && !h.isESLint && Oe(`failed to load icon "${y}"`);
1744
+ r && !h.isESLint && Re(`failed to load icon "${y}"`);
1745
1745
  return;
1746
1746
  }
1747
- const E = `url("data:image/svg+xml;utf8,${Rn(S)}")`;
1747
+ const E = `url("data:image/svg+xml;utf8,${$n(S)}")`;
1748
1748
  return w === "auto" && (w = S.includes("currentColor") ? "mask" : "bg"), w === "mask" ? {
1749
1749
  "--un-icon": E,
1750
1750
  "-webkit-mask": "var(--un-icon) no-repeat",
@@ -1762,34 +1762,34 @@ function jn(e) {
1762
1762
  ...p
1763
1763
  };
1764
1764
  },
1765
- { layer: f, prefix: r }
1765
+ { layer: f, prefix: o }
1766
1766
  ]]
1767
1767
  };
1768
1768
  };
1769
1769
  }
1770
- function Ie(e, t) {
1770
+ function De(e, t) {
1771
1771
  const n = /* @__PURE__ */ new Map();
1772
- function s(r) {
1773
- if (Un.includes(r))
1774
- return n.has(r) || n.set(r, e(`${t}@iconify-json/${r}/icons.json`)), n.get(r);
1772
+ function s(o) {
1773
+ if (Dn.includes(o))
1774
+ return n.has(o) || n.set(o, e(`${t}@iconify-json/${o}/icons.json`)), n.get(o);
1775
1775
  }
1776
- return async (r, o, a) => {
1777
- let l = await Ue(r, o, a);
1776
+ return async (o, r, a) => {
1777
+ let l = await Ne(o, r, a);
1778
1778
  if (l)
1779
1779
  return l;
1780
- const c = await s(r);
1780
+ const c = await s(o);
1781
1781
  if (c) {
1782
1782
  const u = [
1783
- o,
1784
- o.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1785
- o.replace(/([a-z])(\d+)/g, "$1-$2")
1783
+ r,
1784
+ r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1785
+ r.replace(/([a-z])(\d+)/g, "$1-$2")
1786
1786
  ];
1787
- l = await Ne(c, r, u, a);
1787
+ l = await Me(c, o, u, a);
1788
1788
  }
1789
1789
  return l;
1790
1790
  };
1791
1791
  }
1792
- function Dn() {
1792
+ function Fn() {
1793
1793
  const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!de.VSCODE_CWD, n = e && !!de.ESLINT;
1794
1794
  return {
1795
1795
  isNode: e,
@@ -1797,14 +1797,14 @@ function Dn() {
1797
1797
  isESLint: n
1798
1798
  };
1799
1799
  }
1800
- function Pn(e) {
1801
- return Ie(kt, e);
1800
+ function Vn(e) {
1801
+ return De(Tt, e);
1802
1802
  }
1803
- const Fn = jn(async (e) => {
1803
+ const Gn = Pn(async (e) => {
1804
1804
  const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
1805
- return t && n ? Ie(t, n) : n ? Pn(n) : Ue;
1805
+ return t && n ? De(t, n) : n ? Vn(n) : Ne;
1806
1806
  });
1807
- function Vn(e) {
1807
+ function Hn(e) {
1808
1808
  return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
1809
1809
  }
1810
1810
  function ye(e) {
@@ -1814,39 +1814,39 @@ function be(e) {
1814
1814
  return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
1815
1815
  }
1816
1816
  var ve = ["Webkit", "Moz", "ms"];
1817
- function Gn(e) {
1817
+ function Bn(e) {
1818
1818
  const t = {};
1819
1819
  function n(s) {
1820
- const r = t[s];
1821
- if (r)
1822
- return r;
1823
- let o = Vn(s);
1824
- if (o !== "filter" && o in e)
1825
- return t[s] = be(o);
1826
- o = ye(o);
1820
+ const o = t[s];
1821
+ if (o)
1822
+ return o;
1823
+ let r = Hn(s);
1824
+ if (r !== "filter" && r in e)
1825
+ return t[s] = be(r);
1826
+ r = ye(r);
1827
1827
  for (let a = 0; a < ve.length; a++) {
1828
- const l = `${ve[a]}${o}`;
1828
+ const l = `${ve[a]}${r}`;
1829
1829
  if (l in e)
1830
1830
  return t[s] = be(ye(l));
1831
1831
  }
1832
1832
  return s;
1833
1833
  }
1834
- return ({ entries: s }) => s.forEach((r) => {
1835
- r[0].startsWith("--") || (r[0] = n(r[0]));
1834
+ return ({ entries: s }) => s.forEach((o) => {
1835
+ o[0].startsWith("--") || (o[0] = n(o[0]));
1836
1836
  });
1837
1837
  }
1838
- function Hn(e) {
1838
+ function zn(e) {
1839
1839
  return e.replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<");
1840
1840
  }
1841
- function Bn(e = {}) {
1842
- var k, T, M;
1841
+ function qn(e = {}) {
1842
+ var k, T, U;
1843
1843
  if (typeof window > "u") {
1844
1844
  console.warn("@unocss/runtime been used in non-browser environment, skipped.");
1845
1845
  return;
1846
1846
  }
1847
- const t = window, n = window.document, s = () => n.documentElement, r = t.__unocss || {}, o = Object.assign({}, e, r.runtime), a = o.defaults || {}, l = o.cloakAttribute ?? "un-cloak";
1848
- o.autoPrefix && (a.postprocess = U(a.postprocess)).unshift(Gn(n.createElement("div").style)), (k = o.configResolved) == null || k.call(o, r, a);
1849
- const c = un(r, a), u = (v) => o.inject ? o.inject(v) : s().prepend(v), i = () => o.rootElement ? o.rootElement() : n.body, f = /* @__PURE__ */ new Map();
1847
+ const t = window, n = window.document, s = () => n.documentElement, o = t.__unocss || {}, r = Object.assign({}, e, o.runtime), a = r.defaults || {}, l = r.cloakAttribute ?? "un-cloak";
1848
+ r.autoPrefix && (a.postprocess = M(a.postprocess)).unshift(Bn(n.createElement("div").style)), (k = r.configResolved) == null || k.call(r, o, a);
1849
+ const c = pn(o, a), u = (v) => r.inject ? r.inject(v) : s().prepend(v), i = () => r.rootElement ? r.rootElement() : n.body, f = /* @__PURE__ */ new Map();
1850
1850
  let d = !0, h = /* @__PURE__ */ new Set(), g, _, y = [];
1851
1851
  const x = () => new Promise((v) => {
1852
1852
  y.push(v), _ != null && clearTimeout(_), _ = setTimeout(() => m().then(() => {
@@ -1868,8 +1868,8 @@ function Bn(e = {}) {
1868
1868
  if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", v), f.set(v, C), A == null)
1869
1869
  u(C);
1870
1870
  else {
1871
- const O = b(A), N = O.parentNode;
1872
- N ? N.insertBefore(C, O.nextSibling) : u(C);
1871
+ const O = b(A), I = O.parentNode;
1872
+ I ? I.insertBefore(C, O.nextSibling) : u(C);
1873
1873
  }
1874
1874
  return C;
1875
1875
  }
@@ -1887,7 +1887,7 @@ function Bn(e = {}) {
1887
1887
  }
1888
1888
  async function p(v = i()) {
1889
1889
  const A = v && v.outerHTML;
1890
- A && (await S(`${A} ${Hn(A)}`), w(s()), w(v));
1890
+ A && (await S(`${A} ${zn(A)}`), w(s()), w(v));
1891
1891
  }
1892
1892
  const E = new MutationObserver((v) => {
1893
1893
  d || v.forEach(async (A) => {
@@ -1901,15 +1901,15 @@ function Bn(e = {}) {
1901
1901
  A.addedNodes.forEach(async (O) => {
1902
1902
  if (O.nodeType !== 1)
1903
1903
  return;
1904
- const N = O;
1905
- g && !g(N) || (await S(N.outerHTML), w(N));
1904
+ const I = O;
1905
+ g && !g(I) || (await S(I.outerHTML), w(I));
1906
1906
  });
1907
1907
  else {
1908
1908
  if (g && !g(C))
1909
1909
  return;
1910
1910
  if (A.attributeName !== l) {
1911
- const O = Array.from(C.attributes).map((j) => j.value ? `${j.name}="${j.value}"` : j.name).join(" "), N = `<${C.tagName.toLowerCase()} ${O}>`;
1912
- await S(N);
1911
+ const O = Array.from(C.attributes).map((D) => D.value ? `${D.name}="${D.value}"` : D.name).join(" "), I = `<${C.tagName.toLowerCase()} ${O}>`;
1912
+ await S(I);
1913
1913
  }
1914
1914
  C.hasAttribute(l) && C.removeAttribute(l);
1915
1915
  }
@@ -1920,19 +1920,19 @@ function Bn(e = {}) {
1920
1920
  var A, C;
1921
1921
  if (R)
1922
1922
  return;
1923
- const v = (A = o.observer) != null && A.target ? o.observer.target() : i();
1923
+ const v = (A = r.observer) != null && A.target ? r.observer.target() : i();
1924
1924
  v && (E.observe(v, {
1925
1925
  childList: !0,
1926
1926
  subtree: !0,
1927
1927
  attributes: !0,
1928
- attributeFilter: (C = o.observer) == null ? void 0 : C.attributeFilter
1928
+ attributeFilter: (C = r.observer) == null ? void 0 : C.attributeFilter
1929
1929
  }), R = !0);
1930
1930
  }
1931
- function I() {
1932
- o.bypassDefined && zn(c.blocked), p(), $();
1931
+ function N() {
1932
+ r.bypassDefined && Wn(c.blocked), p(), $();
1933
1933
  }
1934
1934
  function P() {
1935
- n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", I) : I();
1935
+ n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", N) : N();
1936
1936
  }
1937
1937
  const V = t.__unocss_runtime = t.__unocss_runtime = {
1938
1938
  version: c.version,
@@ -1950,20 +1950,20 @@ function Bn(e = {}) {
1950
1950
  update: m,
1951
1951
  presets: ((T = t.__unocss_runtime) == null ? void 0 : T.presets) ?? {}
1952
1952
  };
1953
- ((M = o.ready) == null ? void 0 : M.call(o, V)) !== !1 && (d = !1, P());
1953
+ ((U = r.ready) == null ? void 0 : U.call(r, V)) !== !1 && (d = !1, P());
1954
1954
  }
1955
- function zn(e = /* @__PURE__ */ new Set()) {
1955
+ function Wn(e = /* @__PURE__ */ new Set()) {
1956
1956
  for (let t = 0; t < document.styleSheets.length; t++) {
1957
1957
  const n = document.styleSheets[t];
1958
1958
  let s;
1959
1959
  try {
1960
1960
  if (s = n.cssRules || n.rules, !s)
1961
1961
  continue;
1962
- Array.from(s).flatMap((r) => {
1963
- var o;
1964
- return ((o = r.selectorText) == null ? void 0 : o.split(/,/g)) || [];
1965
- }).forEach((r) => {
1966
- r && (r = r.trim(), r.startsWith(".") && (r = r.slice(1)), e.add(r));
1962
+ Array.from(s).flatMap((o) => {
1963
+ var r;
1964
+ return ((r = o.selectorText) == null ? void 0 : r.split(/,/g)) || [];
1965
+ }).forEach((o) => {
1966
+ o && (o = o.trim(), o.startsWith(".") && (o = o.slice(1)), e.add(o));
1967
1967
  });
1968
1968
  } catch {
1969
1969
  continue;
@@ -1971,10 +1971,10 @@ function zn(e = /* @__PURE__ */ new Set()) {
1971
1971
  }
1972
1972
  return e;
1973
1973
  }
1974
- Bn({
1974
+ qn({
1975
1975
  defaults: {
1976
1976
  presets: [
1977
- Fn({
1977
+ Gn({
1978
1978
  prefix: ["i-", ""],
1979
1979
  collections: {},
1980
1980
  cdn: "https://esm.sh/",