x-essential-lib 0.9.18 → 0.9.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/system.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/vendor.o5t9c4vm.js +226 -0
- package/package.json +8 -8
- package/dist/vendor.evicfx58.js +0 -231
|
@@ -3,6 +3,6 @@ export declare function useSystem(): {
|
|
|
3
3
|
compactWidth: import("vue").ComputedRef<string>;
|
|
4
4
|
isCurvedScreen: import("vue").ComputedRef<boolean>;
|
|
5
5
|
isMobile: () => boolean;
|
|
6
|
-
|
|
6
|
+
nameList: (entries: string[], instances?: string[]) => string;
|
|
7
7
|
sentenceOfAsk: (verb: string, object: string, name: string) => string;
|
|
8
8
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useI18n as z } from "vue-i18n";
|
|
|
4
4
|
import { useTheme as _e, useDisplay as qe } from "vuetify";
|
|
5
5
|
import { useRouter as de, useRoute as Oe } from "vue-router";
|
|
6
6
|
import Se from "axios";
|
|
7
|
-
import { a as T, m as Re, u as Le, t as re } from "./vendor.
|
|
7
|
+
import { a as T, m as Re, u as Le, t as re } from "./vendor.o5t9c4vm.js";
|
|
8
8
|
function Te() {
|
|
9
9
|
const e = _e(), t = V(() => e.global.current.value.colors.primary), a = V(() => e.global.current.value.colors.secondary), o = V(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = V(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = V(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), s = V(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = V(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
10
|
return {
|
|
@@ -483,7 +483,7 @@ function Gt() {
|
|
|
483
483
|
isMobile: () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
484
484
|
navigator.userAgent
|
|
485
485
|
),
|
|
486
|
-
|
|
486
|
+
nameList: (c, _) => {
|
|
487
487
|
let w = "";
|
|
488
488
|
const b = c.map((y) => t(y));
|
|
489
489
|
return _ ? w = `${b.join("/")} <${_.join("/")}>` : e.value === "en" ? w = b.join(" ") : w = b.join(""), w;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { getCurrentInstance as x, getCurrentScope as P, hasInjectionContext as k, inject as $, watch as E, shallowRef as b, watchEffect as R, toValue as p, computed as w, onMounted as L, unref as U } from "vue";
|
|
2
|
+
const y = /* @__PURE__ */ new WeakMap(), B = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
3
|
+
var o;
|
|
4
|
+
const r = e[0], n = (o = x()) === null || o === void 0 ? void 0 : o.proxy, t = n ?? P();
|
|
5
|
+
if (t == null && !k()) throw new Error("injectLocal must be called in setup");
|
|
6
|
+
return t && y.has(t) && r in y.get(t) ? y.get(t)[r] : $(...e);
|
|
7
|
+
}, F = typeof window < "u" && typeof document < "u";
|
|
8
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
9
|
+
const D = Object.prototype.toString, z = (e) => D.call(e) === "[object Object]";
|
|
10
|
+
function T(e) {
|
|
11
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
12
|
+
}
|
|
13
|
+
function j(e) {
|
|
14
|
+
return Array.isArray(e) ? e : [e];
|
|
15
|
+
}
|
|
16
|
+
function G(e, o, r) {
|
|
17
|
+
return E(e, o, {
|
|
18
|
+
...r,
|
|
19
|
+
immediate: !0
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const I = F ? window : void 0;
|
|
23
|
+
function Q(e) {
|
|
24
|
+
var o;
|
|
25
|
+
const r = p(e);
|
|
26
|
+
return (o = r?.$el) !== null && o !== void 0 ? o : r;
|
|
27
|
+
}
|
|
28
|
+
function V(...e) {
|
|
29
|
+
const o = (n, t, c, i) => (n.addEventListener(t, c, i), () => n.removeEventListener(t, c, i)), r = w(() => {
|
|
30
|
+
const n = j(p(e[0])).filter((t) => t != null);
|
|
31
|
+
return n.every((t) => typeof t != "string") ? n : void 0;
|
|
32
|
+
});
|
|
33
|
+
return G(() => {
|
|
34
|
+
var n, t;
|
|
35
|
+
return [
|
|
36
|
+
(n = (t = r.value) === null || t === void 0 ? void 0 : t.map((c) => Q(c))) !== null && n !== void 0 ? n : [I].filter((c) => c != null),
|
|
37
|
+
j(p(r.value ? e[1] : e[0])),
|
|
38
|
+
j(U(r.value ? e[2] : e[1])),
|
|
39
|
+
p(r.value ? e[3] : e[2])
|
|
40
|
+
];
|
|
41
|
+
}, ([n, t, c, i], u, l) => {
|
|
42
|
+
if (!n?.length || !t?.length || !c?.length) return;
|
|
43
|
+
const s = z(i) ? { ...i } : i, d = n.flatMap((a) => t.flatMap((m) => c.map((f) => o(a, m, f, s))));
|
|
44
|
+
l(() => {
|
|
45
|
+
d.forEach((a) => a());
|
|
46
|
+
});
|
|
47
|
+
}, { flush: "post" });
|
|
48
|
+
}
|
|
49
|
+
// @__NO_SIDE_EFFECTS__
|
|
50
|
+
function H() {
|
|
51
|
+
const e = b(!1), o = x();
|
|
52
|
+
return o && L(() => {
|
|
53
|
+
e.value = !0;
|
|
54
|
+
}, o), e;
|
|
55
|
+
}
|
|
56
|
+
// @__NO_SIDE_EFFECTS__
|
|
57
|
+
function J(e) {
|
|
58
|
+
const o = /* @__PURE__ */ H();
|
|
59
|
+
return w(() => (o.value, !!e()));
|
|
60
|
+
}
|
|
61
|
+
const K = Symbol("vueuse-ssr-width");
|
|
62
|
+
// @__NO_SIDE_EFFECTS__
|
|
63
|
+
function N() {
|
|
64
|
+
const e = k() ? /* @__PURE__ */ B(K, null) : null;
|
|
65
|
+
return typeof e == "number" ? e : void 0;
|
|
66
|
+
}
|
|
67
|
+
function X(e, o = {}) {
|
|
68
|
+
const { window: r = I, ssrWidth: n = /* @__PURE__ */ N() } = o, t = /* @__PURE__ */ J(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), c = b(typeof n == "number"), i = b(), u = b(!1), l = (s) => {
|
|
69
|
+
u.value = s.matches;
|
|
70
|
+
};
|
|
71
|
+
return R(() => {
|
|
72
|
+
if (c.value) {
|
|
73
|
+
c.value = !t.value, u.value = p(e).split(",").some((s) => {
|
|
74
|
+
const d = s.includes("not all"), a = s.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = s.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
75
|
+
let f = !!(a || m);
|
|
76
|
+
return a && f && (f = n >= T(a[1])), m && f && (f = n <= T(m[1])), d ? !f : f;
|
|
77
|
+
});
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
t.value && (i.value = r.matchMedia(p(e)), u.value = i.value.matches);
|
|
81
|
+
}), V(i, "change", l, { passive: !0 }), w(() => u.value);
|
|
82
|
+
}
|
|
83
|
+
// @__NO_SIDE_EFFECTS__
|
|
84
|
+
function ge(e) {
|
|
85
|
+
return X("(prefers-color-scheme: dark)", e);
|
|
86
|
+
}
|
|
87
|
+
function h(e) {
|
|
88
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
89
|
+
var r = arguments[o];
|
|
90
|
+
for (var n in r)
|
|
91
|
+
e[n] = r[n];
|
|
92
|
+
}
|
|
93
|
+
return e;
|
|
94
|
+
}
|
|
95
|
+
var Y = {
|
|
96
|
+
read: function(e) {
|
|
97
|
+
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
98
|
+
},
|
|
99
|
+
write: function(e) {
|
|
100
|
+
return encodeURIComponent(e).replace(
|
|
101
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
102
|
+
decodeURIComponent
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
function S(e, o) {
|
|
107
|
+
function r(t, c, i) {
|
|
108
|
+
if (!(typeof document > "u")) {
|
|
109
|
+
i = h({}, o, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
110
|
+
var u = "";
|
|
111
|
+
for (var l in i)
|
|
112
|
+
i[l] && (u += "; " + l, i[l] !== !0 && (u += "=" + i[l].split(";")[0]));
|
|
113
|
+
return document.cookie = t + "=" + e.write(c, t) + u;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function n(t) {
|
|
117
|
+
if (!(typeof document > "u" || arguments.length && !t)) {
|
|
118
|
+
for (var c = document.cookie ? document.cookie.split("; ") : [], i = {}, u = 0; u < c.length; u++) {
|
|
119
|
+
var l = c[u].split("="), s = l.slice(1).join("=");
|
|
120
|
+
try {
|
|
121
|
+
var d = decodeURIComponent(l[0]);
|
|
122
|
+
if (i[d] = e.read(s, d), t === d)
|
|
123
|
+
break;
|
|
124
|
+
} catch {
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return t ? i[t] : i;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return Object.create(
|
|
131
|
+
{
|
|
132
|
+
set: r,
|
|
133
|
+
get: n,
|
|
134
|
+
remove: function(t, c) {
|
|
135
|
+
r(
|
|
136
|
+
t,
|
|
137
|
+
"",
|
|
138
|
+
h({}, c, {
|
|
139
|
+
expires: -1
|
|
140
|
+
})
|
|
141
|
+
);
|
|
142
|
+
},
|
|
143
|
+
withAttributes: function(t) {
|
|
144
|
+
return S(this.converter, h({}, this.attributes, t));
|
|
145
|
+
},
|
|
146
|
+
withConverter: function(t) {
|
|
147
|
+
return S(h({}, this.converter, t), this.attributes);
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
attributes: { value: Object.freeze(o) },
|
|
152
|
+
converter: { value: Object.freeze(e) }
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
var he = S(Y, { path: "/" });
|
|
157
|
+
function be(e) {
|
|
158
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(o, r) {
|
|
159
|
+
var n = e.get(o);
|
|
160
|
+
n ? n.push(r) : e.set(o, [r]);
|
|
161
|
+
}, off: function(o, r) {
|
|
162
|
+
var n = e.get(o);
|
|
163
|
+
n && (r ? n.splice(n.indexOf(r) >>> 0, 1) : e.set(o, []));
|
|
164
|
+
}, emit: function(o, r) {
|
|
165
|
+
var n = e.get(o);
|
|
166
|
+
n && n.slice().map(function(t) {
|
|
167
|
+
t(r);
|
|
168
|
+
}), (n = e.get("*")) && n.slice().map(function(t) {
|
|
169
|
+
t(o, r);
|
|
170
|
+
});
|
|
171
|
+
} };
|
|
172
|
+
}
|
|
173
|
+
var Z = typeof global == "object" && global && global.Object === Object && global, q = typeof self == "object" && self && self.Object === Object && self, _ = Z || q || Function("return this")(), v = _.Symbol, W = Object.prototype, ee = W.hasOwnProperty, te = W.toString, g = v ? v.toStringTag : void 0;
|
|
174
|
+
function ne(e) {
|
|
175
|
+
var o = ee.call(e, g), r = e[g];
|
|
176
|
+
try {
|
|
177
|
+
e[g] = void 0;
|
|
178
|
+
var n = !0;
|
|
179
|
+
} catch {
|
|
180
|
+
}
|
|
181
|
+
var t = te.call(e);
|
|
182
|
+
return n && (o ? e[g] = r : delete e[g]), t;
|
|
183
|
+
}
|
|
184
|
+
var oe = Object.prototype, re = oe.toString;
|
|
185
|
+
function ie(e) {
|
|
186
|
+
return re.call(e);
|
|
187
|
+
}
|
|
188
|
+
var ce = "[object Null]", ue = "[object Undefined]", O = v ? v.toStringTag : void 0;
|
|
189
|
+
function le(e) {
|
|
190
|
+
return e == null ? e === void 0 ? ue : ce : O && O in Object(e) ? ne(e) : ie(e);
|
|
191
|
+
}
|
|
192
|
+
function se(e) {
|
|
193
|
+
return e != null && typeof e == "object";
|
|
194
|
+
}
|
|
195
|
+
var ae = "[object Symbol]";
|
|
196
|
+
function fe(e) {
|
|
197
|
+
return typeof e == "symbol" || se(e) && le(e) == ae;
|
|
198
|
+
}
|
|
199
|
+
function de(e, o) {
|
|
200
|
+
for (var r = -1, n = e == null ? 0 : e.length, t = Array(n); ++r < n; )
|
|
201
|
+
t[r] = o(e[r], r, e);
|
|
202
|
+
return t;
|
|
203
|
+
}
|
|
204
|
+
var pe = Array.isArray, C = v ? v.prototype : void 0, M = C ? C.toString : void 0;
|
|
205
|
+
function A(e) {
|
|
206
|
+
if (typeof e == "string")
|
|
207
|
+
return e;
|
|
208
|
+
if (pe(e))
|
|
209
|
+
return de(e, A) + "";
|
|
210
|
+
if (fe(e))
|
|
211
|
+
return M ? M.call(e) : "";
|
|
212
|
+
var o = e + "";
|
|
213
|
+
return o == "0" && 1 / e == -1 / 0 ? "-0" : o;
|
|
214
|
+
}
|
|
215
|
+
function ve(e) {
|
|
216
|
+
return e == null ? "" : A(e);
|
|
217
|
+
}
|
|
218
|
+
function ye(e) {
|
|
219
|
+
return ve(e).toLowerCase();
|
|
220
|
+
}
|
|
221
|
+
export {
|
|
222
|
+
he as a,
|
|
223
|
+
be as m,
|
|
224
|
+
ye as t,
|
|
225
|
+
ge as u
|
|
226
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"*": "prettier --write ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@vueuse/core": "^14.
|
|
25
|
+
"@vueuse/core": "^14.1.0",
|
|
26
26
|
"axios": "^1.13.2",
|
|
27
27
|
"js-cookie": "^3.0.5",
|
|
28
28
|
"lodash-es": "^4.17.21",
|
|
29
29
|
"mitt": "^3.0.1",
|
|
30
30
|
"vue": "^3.5.25",
|
|
31
|
-
"vue-i18n": "^11.2.
|
|
31
|
+
"vue-i18n": "^11.2.2",
|
|
32
32
|
"vue-router": "^4.6.3",
|
|
33
|
-
"vuetify": "^3.11.
|
|
33
|
+
"vuetify": "^3.11.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@eslint/js": "^9.39.1",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"eslint": "^9.39.1",
|
|
42
42
|
"eslint-config-prettier": "^10.1.8",
|
|
43
43
|
"eslint-plugin-prettier": "^5.5.4",
|
|
44
|
-
"eslint-plugin-vue": "^10.6.
|
|
44
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
45
45
|
"globals": "^16.5.0",
|
|
46
46
|
"husky": "^9.1.7",
|
|
47
47
|
"lint-staged": "^16.2.7",
|
|
48
|
-
"prettier": "3.
|
|
48
|
+
"prettier": "3.7.4",
|
|
49
49
|
"sass": "^1.94.2",
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
|
-
"typescript-eslint": "^8.48.
|
|
52
|
-
"vite": "^7.2.
|
|
51
|
+
"typescript-eslint": "^8.48.1",
|
|
52
|
+
"vite": "^7.2.6",
|
|
53
53
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
54
54
|
"vite-plugin-vuetify": "^2.1.2",
|
|
55
55
|
"vue-eslint-parser": "^10.2.0",
|
package/dist/vendor.evicfx58.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as x, getCurrentScope as W, hasInjectionContext as k, inject as E, watch as R, onScopeDispose as L, shallowRef as b, watchEffect as U, toValue as p, computed as w, onMounted as D, unref as B } from "vue";
|
|
2
|
-
function F(e, t) {
|
|
3
|
-
return W() ? (L(e, t), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
const y = /* @__PURE__ */ new WeakMap(), z = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
6
|
-
var t;
|
|
7
|
-
const n = e[0], r = (t = x()) === null || t === void 0 ? void 0 : t.proxy, o = r ?? W();
|
|
8
|
-
if (o == null && !k()) throw new Error("injectLocal must be called in setup");
|
|
9
|
-
return o && y.has(o) && n in y.get(o) ? y.get(o)[n] : E(...e);
|
|
10
|
-
}, G = typeof window < "u" && typeof document < "u";
|
|
11
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
|
-
const Q = Object.prototype.toString, V = (e) => Q.call(e) === "[object Object]";
|
|
13
|
-
function O(e) {
|
|
14
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
15
|
-
}
|
|
16
|
-
function j(e) {
|
|
17
|
-
return Array.isArray(e) ? e : [e];
|
|
18
|
-
}
|
|
19
|
-
function H(e, t, n) {
|
|
20
|
-
return R(e, t, {
|
|
21
|
-
...n,
|
|
22
|
-
immediate: !0
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
const I = G ? window : void 0;
|
|
26
|
-
function J(e) {
|
|
27
|
-
var t;
|
|
28
|
-
const n = p(e);
|
|
29
|
-
return (t = n?.$el) !== null && t !== void 0 ? t : n;
|
|
30
|
-
}
|
|
31
|
-
function K(...e) {
|
|
32
|
-
const t = [], n = () => {
|
|
33
|
-
t.forEach((i) => i()), t.length = 0;
|
|
34
|
-
}, r = (i, c, s, a) => (i.addEventListener(c, s, a), () => i.removeEventListener(c, s, a)), o = w(() => {
|
|
35
|
-
const i = j(p(e[0])).filter((c) => c != null);
|
|
36
|
-
return i.every((c) => typeof c != "string") ? i : void 0;
|
|
37
|
-
}), l = H(() => {
|
|
38
|
-
var i, c;
|
|
39
|
-
return [
|
|
40
|
-
(i = (c = o.value) === null || c === void 0 ? void 0 : c.map((s) => J(s))) !== null && i !== void 0 ? i : [I].filter((s) => s != null),
|
|
41
|
-
j(p(o.value ? e[1] : e[0])),
|
|
42
|
-
j(B(o.value ? e[2] : e[1])),
|
|
43
|
-
p(o.value ? e[3] : e[2])
|
|
44
|
-
];
|
|
45
|
-
}, ([i, c, s, a]) => {
|
|
46
|
-
if (n(), !i?.length || !c?.length || !s?.length) return;
|
|
47
|
-
const d = V(a) ? { ...a } : a;
|
|
48
|
-
t.push(...i.flatMap((m) => c.flatMap((f) => s.map(($) => r(m, f, $, d)))));
|
|
49
|
-
}, { flush: "post" }), u = () => {
|
|
50
|
-
l(), n();
|
|
51
|
-
};
|
|
52
|
-
return F(n), u;
|
|
53
|
-
}
|
|
54
|
-
// @__NO_SIDE_EFFECTS__
|
|
55
|
-
function N() {
|
|
56
|
-
const e = b(!1), t = x();
|
|
57
|
-
return t && D(() => {
|
|
58
|
-
e.value = !0;
|
|
59
|
-
}, t), e;
|
|
60
|
-
}
|
|
61
|
-
// @__NO_SIDE_EFFECTS__
|
|
62
|
-
function X(e) {
|
|
63
|
-
const t = /* @__PURE__ */ N();
|
|
64
|
-
return w(() => (t.value, !!e()));
|
|
65
|
-
}
|
|
66
|
-
const Y = Symbol("vueuse-ssr-width");
|
|
67
|
-
// @__NO_SIDE_EFFECTS__
|
|
68
|
-
function Z() {
|
|
69
|
-
const e = k() ? /* @__PURE__ */ z(Y, null) : null;
|
|
70
|
-
return typeof e == "number" ? e : void 0;
|
|
71
|
-
}
|
|
72
|
-
function q(e, t = {}) {
|
|
73
|
-
const { window: n = I, ssrWidth: r = /* @__PURE__ */ Z() } = t, o = /* @__PURE__ */ X(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), l = b(typeof r == "number"), u = b(), i = b(!1), c = (s) => {
|
|
74
|
-
i.value = s.matches;
|
|
75
|
-
};
|
|
76
|
-
return U(() => {
|
|
77
|
-
if (l.value) {
|
|
78
|
-
l.value = !o.value, i.value = p(e).split(",").some((s) => {
|
|
79
|
-
const a = s.includes("not all"), d = s.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = s.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
80
|
-
let f = !!(d || m);
|
|
81
|
-
return d && f && (f = r >= O(d[1])), m && f && (f = r <= O(m[1])), a ? !f : f;
|
|
82
|
-
});
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
o.value && (u.value = n.matchMedia(p(e)), i.value = u.value.matches);
|
|
86
|
-
}), K(u, "change", c, { passive: !0 }), w(() => i.value);
|
|
87
|
-
}
|
|
88
|
-
// @__NO_SIDE_EFFECTS__
|
|
89
|
-
function ye(e) {
|
|
90
|
-
return q("(prefers-color-scheme: dark)", e);
|
|
91
|
-
}
|
|
92
|
-
function g(e) {
|
|
93
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
94
|
-
var n = arguments[t];
|
|
95
|
-
for (var r in n)
|
|
96
|
-
e[r] = n[r];
|
|
97
|
-
}
|
|
98
|
-
return e;
|
|
99
|
-
}
|
|
100
|
-
var _ = {
|
|
101
|
-
read: function(e) {
|
|
102
|
-
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
103
|
-
},
|
|
104
|
-
write: function(e) {
|
|
105
|
-
return encodeURIComponent(e).replace(
|
|
106
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
107
|
-
decodeURIComponent
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
function S(e, t) {
|
|
112
|
-
function n(o, l, u) {
|
|
113
|
-
if (!(typeof document > "u")) {
|
|
114
|
-
u = g({}, t, u), typeof u.expires == "number" && (u.expires = new Date(Date.now() + u.expires * 864e5)), u.expires && (u.expires = u.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
115
|
-
var i = "";
|
|
116
|
-
for (var c in u)
|
|
117
|
-
u[c] && (i += "; " + c, u[c] !== !0 && (i += "=" + u[c].split(";")[0]));
|
|
118
|
-
return document.cookie = o + "=" + e.write(l, o) + i;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function r(o) {
|
|
122
|
-
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
123
|
-
for (var l = document.cookie ? document.cookie.split("; ") : [], u = {}, i = 0; i < l.length; i++) {
|
|
124
|
-
var c = l[i].split("="), s = c.slice(1).join("=");
|
|
125
|
-
try {
|
|
126
|
-
var a = decodeURIComponent(c[0]);
|
|
127
|
-
if (u[a] = e.read(s, a), o === a)
|
|
128
|
-
break;
|
|
129
|
-
} catch {
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return o ? u[o] : u;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return Object.create(
|
|
136
|
-
{
|
|
137
|
-
set: n,
|
|
138
|
-
get: r,
|
|
139
|
-
remove: function(o, l) {
|
|
140
|
-
n(
|
|
141
|
-
o,
|
|
142
|
-
"",
|
|
143
|
-
g({}, l, {
|
|
144
|
-
expires: -1
|
|
145
|
-
})
|
|
146
|
-
);
|
|
147
|
-
},
|
|
148
|
-
withAttributes: function(o) {
|
|
149
|
-
return S(this.converter, g({}, this.attributes, o));
|
|
150
|
-
},
|
|
151
|
-
withConverter: function(o) {
|
|
152
|
-
return S(g({}, this.converter, o), this.attributes);
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
attributes: { value: Object.freeze(t) },
|
|
157
|
-
converter: { value: Object.freeze(e) }
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
var je = S(_, { path: "/" });
|
|
162
|
-
function Se(e) {
|
|
163
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
|
164
|
-
var r = e.get(t);
|
|
165
|
-
r ? r.push(n) : e.set(t, [n]);
|
|
166
|
-
}, off: function(t, n) {
|
|
167
|
-
var r = e.get(t);
|
|
168
|
-
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
169
|
-
}, emit: function(t, n) {
|
|
170
|
-
var r = e.get(t);
|
|
171
|
-
r && r.slice().map(function(o) {
|
|
172
|
-
o(n);
|
|
173
|
-
}), (r = e.get("*")) && r.slice().map(function(o) {
|
|
174
|
-
o(t, n);
|
|
175
|
-
});
|
|
176
|
-
} };
|
|
177
|
-
}
|
|
178
|
-
var ee = typeof global == "object" && global && global.Object === Object && global, te = typeof self == "object" && self && self.Object === Object && self, ne = ee || te || Function("return this")(), v = ne.Symbol, A = Object.prototype, oe = A.hasOwnProperty, re = A.toString, h = v ? v.toStringTag : void 0;
|
|
179
|
-
function ie(e) {
|
|
180
|
-
var t = oe.call(e, h), n = e[h];
|
|
181
|
-
try {
|
|
182
|
-
e[h] = void 0;
|
|
183
|
-
var r = !0;
|
|
184
|
-
} catch {
|
|
185
|
-
}
|
|
186
|
-
var o = re.call(e);
|
|
187
|
-
return r && (t ? e[h] = n : delete e[h]), o;
|
|
188
|
-
}
|
|
189
|
-
var ce = Object.prototype, ue = ce.toString;
|
|
190
|
-
function se(e) {
|
|
191
|
-
return ue.call(e);
|
|
192
|
-
}
|
|
193
|
-
var le = "[object Null]", ae = "[object Undefined]", T = v ? v.toStringTag : void 0;
|
|
194
|
-
function fe(e) {
|
|
195
|
-
return e == null ? e === void 0 ? ae : le : T && T in Object(e) ? ie(e) : se(e);
|
|
196
|
-
}
|
|
197
|
-
function de(e) {
|
|
198
|
-
return e != null && typeof e == "object";
|
|
199
|
-
}
|
|
200
|
-
var pe = "[object Symbol]";
|
|
201
|
-
function ve(e) {
|
|
202
|
-
return typeof e == "symbol" || de(e) && fe(e) == pe;
|
|
203
|
-
}
|
|
204
|
-
function me(e, t) {
|
|
205
|
-
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
206
|
-
o[n] = t(e[n], n, e);
|
|
207
|
-
return o;
|
|
208
|
-
}
|
|
209
|
-
var he = Array.isArray, C = v ? v.prototype : void 0, M = C ? C.toString : void 0;
|
|
210
|
-
function P(e) {
|
|
211
|
-
if (typeof e == "string")
|
|
212
|
-
return e;
|
|
213
|
-
if (he(e))
|
|
214
|
-
return me(e, P) + "";
|
|
215
|
-
if (ve(e))
|
|
216
|
-
return M ? M.call(e) : "";
|
|
217
|
-
var t = e + "";
|
|
218
|
-
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
219
|
-
}
|
|
220
|
-
function ge(e) {
|
|
221
|
-
return e == null ? "" : P(e);
|
|
222
|
-
}
|
|
223
|
-
function we(e) {
|
|
224
|
-
return ge(e).toLowerCase();
|
|
225
|
-
}
|
|
226
|
-
export {
|
|
227
|
-
je as a,
|
|
228
|
-
Se as m,
|
|
229
|
-
we as t,
|
|
230
|
-
ye as u
|
|
231
|
-
};
|