@pubinfo/core 2.1.11 → 2.1.12
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/AppSetting-BBCop_0D.js +107 -0
- package/dist/{HButton-Dt6qGhhR.js → HButton-pEqyd918.js} +13 -11
- package/dist/HCheckList-cef4jGrw.js +35 -0
- package/dist/HDivider-BSj2DiEY.js +13 -0
- package/dist/HInput-DfpH43DV.js +36 -0
- package/dist/HSlideover-B6gEDfA5.js +3223 -0
- package/dist/HToggle-BTft_PNT.js +32 -0
- package/dist/HTooltip-B8aoK5uN.js +19 -0
- package/dist/PreferencesContent-CuNffqV_.js +703 -0
- package/dist/SettingBreadcrumb-CMn0gojs.js +47 -0
- package/dist/SettingCopyright-DKwdXYr3.js +47 -0
- package/dist/SettingEnableTransition-Bn37z29E.js +70 -0
- package/dist/SettingHome-HttuaN-N.js +33 -0
- package/dist/SettingMenu-CEvBV2Wj.js +113 -0
- package/dist/SettingMode-DpAUEZUv.js +62 -0
- package/dist/SettingNavSearch-Cem0LL54.js +33 -0
- package/dist/SettingOther-DcrlPnMd.js +50 -0
- package/dist/SettingPage-UhL5e6_m.js +24 -0
- package/dist/SettingTabbar-Ct3S8jS2.js +144 -0
- package/dist/SettingThemes-DaRKZ2Q3.js +123 -0
- package/dist/SettingToolbar-Cx_Mz_EP.js +52 -0
- package/dist/SettingTopbar-Ckg-OGSj.js +51 -0
- package/dist/SettingWidthMode-CZ2i-kzC.js +58 -0
- package/dist/_plugin-vue_export-helper-CsLplWgU.js +8 -0
- package/dist/auth-BVTDpkDr.js +4635 -0
- package/dist/{change-organization-hsqeSzDu.js → change-organization-EdR25ifs.js} +51 -48
- package/dist/{change-password-EtccCDRX.js → change-password-D-ZqBAmY.js} +85 -81
- package/dist/chunk-BdsCSvBP.js +20 -0
- package/dist/{components-DFNyaAb9.js → components-CKVAXENc.js} +681 -674
- package/dist/{core-DJIGzMMM.js → core-Dg8YES9i.js} +1003 -938
- package/dist/dist-HLiWAOC7.js +472 -0
- package/dist/{engine-oniguruma-CaNXwGSv.js → engine-oniguruma-DCGL4yXX.js} +58 -56
- package/dist/form-CGzMvzKZ.js +2968 -0
- package/dist/index.js +4989 -4877
- package/dist/json-BFBcpML_.js +3 -0
- package/dist/{modal-Bl5xHbxa.js → modal-ybprgEqf.js} +12543 -9070
- package/dist/not-found-CuHR6H_g.js +44 -0
- package/dist/not-permission-BcQAkzxI.js +41 -0
- package/dist/profile-Bsc6FIbI.js +19533 -0
- package/dist/{question-line-BG__Ycfv.js → question-line-BzrfPWnG.js} +9 -7
- package/dist/reload-BClJy4MY.js +15 -0
- package/dist/{right-BxBlFUwj.js → right-CCqcGubr.js} +15 -13
- package/dist/{tree-select-B8cTcGLa.js → tree-select-gPCwtMia.js} +2906 -2659
- package/dist/useContext-Dlqfap_7.js +11 -0
- package/dist/vitesse-dark-DrB9-RFK.js +4 -0
- package/dist/vitesse-light-CmcnEl2T.js +4 -0
- package/dist/wasm-C92aTsEJ.js +4 -0
- package/dist/watchDiff-DJP3s9bb.js +883 -0
- package/package.json +8 -8
- package/dist/AppSetting-7jlhUzze.js +0 -105
- package/dist/HCheckList-cPBgATmv.js +0 -33
- package/dist/HDivider-BwvBr5OE.js +0 -11
- package/dist/HInput-KJ5nFBpF.js +0 -34
- package/dist/HSlideover-DVQDc9q6.js +0 -3151
- package/dist/HToggle-Ce_2-yhZ.js +0 -30
- package/dist/HTooltip-DjAU-Evn.js +0 -16
- package/dist/PreferencesContent-BAIH81yS.js +0 -701
- package/dist/SettingBreadcrumb-O9-PhAFT.js +0 -45
- package/dist/SettingCopyright-DIKsWTuf.js +0 -45
- package/dist/SettingEnableTransition-61O7W00b.js +0 -68
- package/dist/SettingHome-Sv65TPH8.js +0 -31
- package/dist/SettingMenu-BvwJOUZV.js +0 -111
- package/dist/SettingMode-B8H_eQc8.js +0 -60
- package/dist/SettingNavSearch-BHsmYBA7.js +0 -31
- package/dist/SettingOther-CyyNnaDX.js +0 -48
- package/dist/SettingPage-B82lW41P.js +0 -22
- package/dist/SettingTabbar-Bky2xvH-.js +0 -142
- package/dist/SettingThemes-CkdzS1xt.js +0 -121
- package/dist/SettingToolbar-CD4qns1J.js +0 -50
- package/dist/SettingTopbar-1shjoe3s.js +0 -49
- package/dist/SettingWidthMode-DlG6lXjA.js +0 -56
- package/dist/_plugin-vue_export-helper-sUTDUeGO.js +0 -6
- package/dist/auth-BLGKOyc5.js +0 -4432
- package/dist/chunk-CD4vhpVs.js +0 -18
- package/dist/dist-7OjQvlya.js +0 -468
- package/dist/form-C3VHofnN.js +0 -2768
- package/dist/json-Bu_Zprin.js +0 -2
- package/dist/not-found-BCjngLzt.js +0 -42
- package/dist/not-permission-C26vTMvf.js +0 -39
- package/dist/profile-BVXIFuBG.js +0 -19269
- package/dist/reload-DHx5Vwus.js +0 -12
- package/dist/useContext-DLtu9F7E.js +0 -9
- package/dist/vitesse-dark-CTe40QT_.js +0 -2
- package/dist/vitesse-light-BWXC_WeB.js +0 -2
- package/dist/wasm-2zDVqo-C.js +0 -2
- package/dist/watchDiff-CPZFtaOC.js +0 -655
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
import { computed as e, customRef as t, getCurrentInstance as n, getCurrentScope as r, hasInjectionContext as i, inject as a, isRef as o, nextTick as s, onMounted as c, onScopeDispose as l, reactive as u, readonly as d, ref as f, shallowReadonly as p, shallowRef as m, toRaw as h, toRef as g, toValue as _, unref as v, watch as y, watchEffect as b } from "vue";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
+
function x(e, t) {
|
|
4
|
+
return r() ? (l(e, t), !0) : !1;
|
|
5
|
+
}
|
|
6
|
+
var S = /* @__PURE__ */ new WeakMap(), C = (...e) => {
|
|
7
|
+
let t = e[0], o = n()?.proxy ?? r();
|
|
8
|
+
if (o == null && !i()) throw Error("injectLocal must be called in setup");
|
|
9
|
+
return o && S.has(o) && t in S.get(o) ? S.get(o)[t] : a(...e);
|
|
10
|
+
}, w = typeof window < "u" && typeof document < "u";
|
|
11
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
|
+
var T = (e) => e != null, E = Object.prototype.toString, D = (e) => E.call(e) === "[object Object]", O = () => {};
|
|
13
|
+
function k(...e) {
|
|
14
|
+
if (e.length !== 1) return g(...e);
|
|
15
|
+
let n = e[0];
|
|
16
|
+
return typeof n == "function" ? d(t(() => ({
|
|
17
|
+
get: n,
|
|
18
|
+
set: O
|
|
19
|
+
}))) : f(n);
|
|
20
|
+
}
|
|
21
|
+
function A(e) {
|
|
22
|
+
let t;
|
|
23
|
+
function n() {
|
|
24
|
+
return t ||= e(), t;
|
|
25
|
+
}
|
|
26
|
+
return n.reset = async () => {
|
|
27
|
+
let e = t;
|
|
28
|
+
t = void 0, e && await e;
|
|
29
|
+
}, n;
|
|
30
|
+
}
|
|
31
|
+
function j(e) {
|
|
32
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
33
|
+
}
|
|
34
|
+
function M(e) {
|
|
35
|
+
return Array.isArray(e) ? e : [e];
|
|
36
|
+
}
|
|
37
|
+
function N(e) {
|
|
38
|
+
return e || n();
|
|
39
|
+
}
|
|
40
|
+
function P(e, t = !0, n) {
|
|
41
|
+
N(n) ? c(e, n) : t ? e() : s(e);
|
|
42
|
+
}
|
|
43
|
+
function F(e, t, n = {}) {
|
|
44
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = m(!1), o;
|
|
45
|
+
function s() {
|
|
46
|
+
o &&= (clearTimeout(o), void 0);
|
|
47
|
+
}
|
|
48
|
+
function c() {
|
|
49
|
+
a.value = !1, s();
|
|
50
|
+
}
|
|
51
|
+
function l(...n) {
|
|
52
|
+
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
53
|
+
a.value = !1, o = void 0, e(...n);
|
|
54
|
+
}, _(t));
|
|
55
|
+
}
|
|
56
|
+
return r && (a.value = !0, w && l()), x(c), {
|
|
57
|
+
isPending: p(a),
|
|
58
|
+
start: l,
|
|
59
|
+
stop: c
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function I(e = !1, t = {}) {
|
|
63
|
+
let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = o(e), a = m(e);
|
|
64
|
+
function s(e) {
|
|
65
|
+
if (arguments.length) return a.value = e, a.value;
|
|
66
|
+
{
|
|
67
|
+
let e = _(n);
|
|
68
|
+
return a.value = a.value === e ? _(r) : e, a.value;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return i ? s : [a, s];
|
|
72
|
+
}
|
|
73
|
+
function L(e, t, n) {
|
|
74
|
+
return y(e, t, {
|
|
75
|
+
...n,
|
|
76
|
+
immediate: !0
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.28_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
81
|
+
function R(t, n, r) {
|
|
82
|
+
let i;
|
|
83
|
+
i = o(r) ? { evaluating: r } : r || {};
|
|
84
|
+
let { lazy: a = !1, flush: s = "sync", evaluating: c = void 0, shallow: l = !0, onError: u = globalThis.reportError ?? O } = i, d = m(!a), p = l ? m(n) : f(n), h = 0;
|
|
85
|
+
return b(async (e) => {
|
|
86
|
+
if (!d.value) return;
|
|
87
|
+
h++;
|
|
88
|
+
let n = h, r = !1;
|
|
89
|
+
c && Promise.resolve().then(() => {
|
|
90
|
+
c.value = !0;
|
|
91
|
+
});
|
|
92
|
+
try {
|
|
93
|
+
let i = await t((t) => {
|
|
94
|
+
e(() => {
|
|
95
|
+
c && (c.value = !1), r || t();
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
n === h && (p.value = i);
|
|
99
|
+
} catch (e) {
|
|
100
|
+
u(e);
|
|
101
|
+
} finally {
|
|
102
|
+
c && n === h && (c.value = !1), r = !0;
|
|
103
|
+
}
|
|
104
|
+
}, { flush: s }), a ? e(() => (d.value = !0, p.value)) : p;
|
|
105
|
+
}
|
|
106
|
+
var z = w ? window : void 0, B = w ? window.document : void 0, V = w ? window.navigator : void 0;
|
|
107
|
+
w && window.location;
|
|
108
|
+
function H(e) {
|
|
109
|
+
let t = _(e);
|
|
110
|
+
return t?.$el ?? t;
|
|
111
|
+
}
|
|
112
|
+
function U(...t) {
|
|
113
|
+
let n = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), r = e(() => {
|
|
114
|
+
let e = M(_(t[0])).filter((e) => e != null);
|
|
115
|
+
return e.every((e) => typeof e != "string") ? e : void 0;
|
|
116
|
+
});
|
|
117
|
+
return L(() => [
|
|
118
|
+
r.value?.map((e) => H(e)) ?? [z].filter((e) => e != null),
|
|
119
|
+
M(_(r.value ? t[1] : t[0])),
|
|
120
|
+
M(v(r.value ? t[2] : t[1])),
|
|
121
|
+
_(r.value ? t[3] : t[2])
|
|
122
|
+
], ([e, t, r, i], a, o) => {
|
|
123
|
+
if (!e?.length || !t?.length || !r?.length) return;
|
|
124
|
+
let s = D(i) ? { ...i } : i, c = e.flatMap((e) => t.flatMap((t) => r.map((r) => n(e, t, r, s))));
|
|
125
|
+
o(() => {
|
|
126
|
+
c.forEach((e) => e());
|
|
127
|
+
});
|
|
128
|
+
}, { flush: "post" });
|
|
129
|
+
}
|
|
130
|
+
function W() {
|
|
131
|
+
let e = m(!1), t = n();
|
|
132
|
+
return t && c(() => {
|
|
133
|
+
e.value = !0;
|
|
134
|
+
}, t), e;
|
|
135
|
+
}
|
|
136
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
137
|
+
function G(t) {
|
|
138
|
+
let n = W();
|
|
139
|
+
return e(() => (n.value, !!t()));
|
|
140
|
+
}
|
|
141
|
+
function K(t, n, r = {}) {
|
|
142
|
+
let { window: i = z, ...a } = r, o, s = /* @__PURE__ */ G(() => i && "MutationObserver" in i), c = () => {
|
|
143
|
+
o &&= (o.disconnect(), void 0);
|
|
144
|
+
}, l = y(e(() => {
|
|
145
|
+
let e = M(_(t)).map(H).filter(T);
|
|
146
|
+
return new Set(e);
|
|
147
|
+
}), (e) => {
|
|
148
|
+
c(), s.value && e.size && (o = new MutationObserver(n), e.forEach((e) => o.observe(e, a)));
|
|
149
|
+
}, {
|
|
150
|
+
immediate: !0,
|
|
151
|
+
flush: "post"
|
|
152
|
+
}), u = () => o?.takeRecords(), d = () => {
|
|
153
|
+
l(), c();
|
|
154
|
+
};
|
|
155
|
+
return x(d), {
|
|
156
|
+
isSupported: s,
|
|
157
|
+
stop: d,
|
|
158
|
+
takeRecords: u
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
var q = Symbol("vueuse-ssr-width");
|
|
162
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
163
|
+
function J() {
|
|
164
|
+
let e = i() ? C(q, null) : null;
|
|
165
|
+
return typeof e == "number" ? e : void 0;
|
|
166
|
+
}
|
|
167
|
+
function Y(t, n = {}) {
|
|
168
|
+
let { window: r = z, ssrWidth: i = /* @__PURE__ */ J() } = n, a = /* @__PURE__ */ G(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), o = m(typeof i == "number"), s = m(), c = m(!1);
|
|
169
|
+
return b(() => {
|
|
170
|
+
if (o.value) {
|
|
171
|
+
o.value = !a.value, c.value = _(t).split(",").some((e) => {
|
|
172
|
+
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
|
|
173
|
+
return n && a && (a = i >= j(n[1])), r && a && (a = i <= j(r[1])), t ? !a : a;
|
|
174
|
+
});
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
a.value && (s.value = r.matchMedia(_(t)), c.value = s.value.matches);
|
|
178
|
+
}), U(s, "change", (e) => {
|
|
179
|
+
c.value = e.matches;
|
|
180
|
+
}, { passive: !0 }), e(() => c.value);
|
|
181
|
+
}
|
|
182
|
+
function X(e, t = {}) {
|
|
183
|
+
let { controls: n = !1, navigator: r = V } = t, i = /* @__PURE__ */ G(() => r && "permissions" in r), a = m(), o = typeof e == "string" ? { name: e } : e, s = m(), c = () => {
|
|
184
|
+
s.value = a.value?.state ?? "prompt";
|
|
185
|
+
};
|
|
186
|
+
U(a, "change", c, { passive: !0 });
|
|
187
|
+
let l = A(async () => {
|
|
188
|
+
if (i.value) {
|
|
189
|
+
if (!a.value) try {
|
|
190
|
+
a.value = await r.permissions.query(o);
|
|
191
|
+
} catch {
|
|
192
|
+
a.value = void 0;
|
|
193
|
+
} finally {
|
|
194
|
+
c();
|
|
195
|
+
}
|
|
196
|
+
if (n) return h(a.value);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
return l(), n ? {
|
|
200
|
+
state: s,
|
|
201
|
+
isSupported: i,
|
|
202
|
+
query: l
|
|
203
|
+
} : s;
|
|
204
|
+
}
|
|
205
|
+
function Z(t = {}) {
|
|
206
|
+
let { navigator: n = V, read: r = !1, source: i, copiedDuring: a = 1500, legacy: o = !1 } = t, s = /* @__PURE__ */ G(() => n && "clipboard" in n), c = X("clipboard-read"), l = X("clipboard-write"), u = e(() => s.value || o), f = m(""), p = m(!1), h = F(() => p.value = !1, a, { immediate: !1 });
|
|
207
|
+
async function g() {
|
|
208
|
+
let e = !(s.value && x(c.value));
|
|
209
|
+
if (!e) try {
|
|
210
|
+
f.value = await n.clipboard.readText();
|
|
211
|
+
} catch {
|
|
212
|
+
e = !0;
|
|
213
|
+
}
|
|
214
|
+
e && (f.value = b());
|
|
215
|
+
}
|
|
216
|
+
u.value && r && U(["copy", "cut"], g, { passive: !0 });
|
|
217
|
+
async function v(e = _(i)) {
|
|
218
|
+
if (u.value && e != null) {
|
|
219
|
+
let t = !(s.value && x(l.value));
|
|
220
|
+
if (!t) try {
|
|
221
|
+
await n.clipboard.writeText(e);
|
|
222
|
+
} catch {
|
|
223
|
+
t = !0;
|
|
224
|
+
}
|
|
225
|
+
t && y(e), f.value = e, p.value = !0, h.start();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function y(e) {
|
|
229
|
+
let t = document.createElement("textarea");
|
|
230
|
+
t.value = e, t.style.position = "absolute", t.style.opacity = "0", t.setAttribute("readonly", ""), document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
|
|
231
|
+
}
|
|
232
|
+
function b() {
|
|
233
|
+
var e, t;
|
|
234
|
+
return ((e = document) == null || (t = e.getSelection) == null || (t = t.call(e)) == null ? void 0 : t.toString()) ?? "";
|
|
235
|
+
}
|
|
236
|
+
function x(e) {
|
|
237
|
+
return e === "granted" || e === "prompt";
|
|
238
|
+
}
|
|
239
|
+
return {
|
|
240
|
+
isSupported: u,
|
|
241
|
+
text: d(f),
|
|
242
|
+
copied: d(p),
|
|
243
|
+
copy: v
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
function Q(e) {
|
|
247
|
+
return Y("(prefers-color-scheme: dark)", e);
|
|
248
|
+
}
|
|
249
|
+
function ee(t, n, r = {}) {
|
|
250
|
+
let { window: i = z, initialValue: a, observe: o = !1 } = r, s = m(a), c = e(() => {
|
|
251
|
+
var e;
|
|
252
|
+
return H(n) || (i == null || (e = i.document) == null ? void 0 : e.documentElement);
|
|
253
|
+
});
|
|
254
|
+
function l() {
|
|
255
|
+
let e = _(t), n = _(c);
|
|
256
|
+
n && i && e && (s.value = i.getComputedStyle(n).getPropertyValue(e)?.trim() || s.value || a);
|
|
257
|
+
}
|
|
258
|
+
return o && K(c, l, {
|
|
259
|
+
attributeFilter: ["style", "class"],
|
|
260
|
+
window: i
|
|
261
|
+
}), y([c, () => _(t)], (e, t) => {
|
|
262
|
+
t[0] && t[1] && t[0].style.removeProperty(t[1]), l();
|
|
263
|
+
}, { immediate: !0 }), y([s, c], ([e, n]) => {
|
|
264
|
+
let r = _(t);
|
|
265
|
+
n?.style && r && (e == null ? n.style.removeProperty(r) : n.style.setProperty(r, e));
|
|
266
|
+
}, { immediate: !0 }), s;
|
|
267
|
+
}
|
|
268
|
+
function te(t, n, r = {}) {
|
|
269
|
+
let { window: i = z, ...a } = r, o, s = /* @__PURE__ */ G(() => i && "ResizeObserver" in i), c = () => {
|
|
270
|
+
o &&= (o.disconnect(), void 0);
|
|
271
|
+
}, l = y(e(() => {
|
|
272
|
+
let e = _(t);
|
|
273
|
+
return Array.isArray(e) ? e.map((e) => H(e)) : [H(e)];
|
|
274
|
+
}), (e) => {
|
|
275
|
+
if (c(), s.value && i) {
|
|
276
|
+
o = new ResizeObserver(n);
|
|
277
|
+
for (let t of e) t && o.observe(t, a);
|
|
278
|
+
}
|
|
279
|
+
}, {
|
|
280
|
+
immediate: !0,
|
|
281
|
+
flush: "post"
|
|
282
|
+
}), u = () => {
|
|
283
|
+
c(), l();
|
|
284
|
+
};
|
|
285
|
+
return x(u), {
|
|
286
|
+
isSupported: s,
|
|
287
|
+
stop: u
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function ne(t, n = {
|
|
291
|
+
width: 0,
|
|
292
|
+
height: 0
|
|
293
|
+
}, r = {}) {
|
|
294
|
+
let { window: i = z, box: a = "content-box" } = r, o = e(() => {
|
|
295
|
+
var e;
|
|
296
|
+
return (e = H(t)) == null || (e = e.namespaceURI) == null ? void 0 : e.includes("svg");
|
|
297
|
+
}), s = m(n.width), c = m(n.height), { stop: l } = te(t, ([e]) => {
|
|
298
|
+
let n = a === "border-box" ? e.borderBoxSize : a === "content-box" ? e.contentBoxSize : e.devicePixelContentBoxSize;
|
|
299
|
+
if (i && o.value) {
|
|
300
|
+
let e = H(t);
|
|
301
|
+
if (e) {
|
|
302
|
+
let t = e.getBoundingClientRect();
|
|
303
|
+
s.value = t.width, c.value = t.height;
|
|
304
|
+
}
|
|
305
|
+
} else if (n) {
|
|
306
|
+
let e = M(n);
|
|
307
|
+
s.value = e.reduce((e, { inlineSize: t }) => e + t, 0), c.value = e.reduce((e, { blockSize: t }) => e + t, 0);
|
|
308
|
+
} else s.value = e.contentRect.width, c.value = e.contentRect.height;
|
|
309
|
+
}, r);
|
|
310
|
+
P(() => {
|
|
311
|
+
let e = H(t);
|
|
312
|
+
e && (s.value = "offsetWidth" in e ? e.offsetWidth : n.width, c.value = "offsetHeight" in e ? e.offsetHeight : n.height);
|
|
313
|
+
});
|
|
314
|
+
let u = y(() => H(t), (e) => {
|
|
315
|
+
s.value = e ? n.width : 0, c.value = e ? n.height : 0;
|
|
316
|
+
});
|
|
317
|
+
function d() {
|
|
318
|
+
l(), u();
|
|
319
|
+
}
|
|
320
|
+
return {
|
|
321
|
+
width: s,
|
|
322
|
+
height: c,
|
|
323
|
+
stop: d
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
var $ = [
|
|
327
|
+
"fullscreenchange",
|
|
328
|
+
"webkitfullscreenchange",
|
|
329
|
+
"webkitendfullscreen",
|
|
330
|
+
"mozfullscreenchange",
|
|
331
|
+
"MSFullscreenChange"
|
|
332
|
+
];
|
|
333
|
+
function re(t, n = {}) {
|
|
334
|
+
let { document: r = B, autoExit: i = !1 } = n, a = e(() => H(t) ?? r?.documentElement), o = m(!1), s = e(() => [
|
|
335
|
+
"requestFullscreen",
|
|
336
|
+
"webkitRequestFullscreen",
|
|
337
|
+
"webkitEnterFullscreen",
|
|
338
|
+
"webkitEnterFullScreen",
|
|
339
|
+
"webkitRequestFullScreen",
|
|
340
|
+
"mozRequestFullScreen",
|
|
341
|
+
"msRequestFullscreen"
|
|
342
|
+
].find((e) => r && e in r || a.value && e in a.value)), c = e(() => [
|
|
343
|
+
"exitFullscreen",
|
|
344
|
+
"webkitExitFullscreen",
|
|
345
|
+
"webkitExitFullScreen",
|
|
346
|
+
"webkitCancelFullScreen",
|
|
347
|
+
"mozCancelFullScreen",
|
|
348
|
+
"msExitFullscreen"
|
|
349
|
+
].find((e) => r && e in r || a.value && e in a.value)), l = e(() => [
|
|
350
|
+
"fullScreen",
|
|
351
|
+
"webkitIsFullScreen",
|
|
352
|
+
"webkitDisplayingFullscreen",
|
|
353
|
+
"mozFullScreen",
|
|
354
|
+
"msFullscreenElement"
|
|
355
|
+
].find((e) => r && e in r || a.value && e in a.value)), u = [
|
|
356
|
+
"fullscreenElement",
|
|
357
|
+
"webkitFullscreenElement",
|
|
358
|
+
"mozFullScreenElement",
|
|
359
|
+
"msFullscreenElement"
|
|
360
|
+
].find((e) => r && e in r), d = /* @__PURE__ */ G(() => a.value && r && s.value !== void 0 && c.value !== void 0 && l.value !== void 0), f = () => u ? r?.[u] === a.value : !1, p = () => {
|
|
361
|
+
if (l.value) {
|
|
362
|
+
if (r && r[l.value] != null) return r[l.value];
|
|
363
|
+
{
|
|
364
|
+
let e = a.value;
|
|
365
|
+
if (e?.[l.value] != null) return !!e[l.value];
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return !1;
|
|
369
|
+
};
|
|
370
|
+
async function h() {
|
|
371
|
+
if (!(!d.value || !o.value)) {
|
|
372
|
+
if (c.value) if (r?.[c.value] != null) await r[c.value]();
|
|
373
|
+
else {
|
|
374
|
+
let e = a.value;
|
|
375
|
+
e?.[c.value] != null && await e[c.value]();
|
|
376
|
+
}
|
|
377
|
+
o.value = !1;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
async function g() {
|
|
381
|
+
if (!d.value || o.value) return;
|
|
382
|
+
p() && await h();
|
|
383
|
+
let e = a.value;
|
|
384
|
+
s.value && e?.[s.value] != null && (await e[s.value](), o.value = !0);
|
|
385
|
+
}
|
|
386
|
+
async function _() {
|
|
387
|
+
await (o.value ? h() : g());
|
|
388
|
+
}
|
|
389
|
+
let v = () => {
|
|
390
|
+
let e = p();
|
|
391
|
+
(!e || e && f()) && (o.value = e);
|
|
392
|
+
}, y = {
|
|
393
|
+
capture: !1,
|
|
394
|
+
passive: !0
|
|
395
|
+
};
|
|
396
|
+
return U(r, $, v, y), U(() => H(a), $, v, y), P(v, !1), i && x(h), {
|
|
397
|
+
isSupported: d,
|
|
398
|
+
isFullscreen: o,
|
|
399
|
+
enter: g,
|
|
400
|
+
exit: h,
|
|
401
|
+
toggle: _
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
var ie = {
|
|
405
|
+
ctrl: "control",
|
|
406
|
+
command: "meta",
|
|
407
|
+
cmd: "meta",
|
|
408
|
+
option: "alt",
|
|
409
|
+
up: "arrowup",
|
|
410
|
+
down: "arrowdown",
|
|
411
|
+
left: "arrowleft",
|
|
412
|
+
right: "arrowright"
|
|
413
|
+
};
|
|
414
|
+
function ae(t = {}) {
|
|
415
|
+
let { reactive: n = !1, target: r = z, aliasMap: i = ie, passive: a = !0, onEventFired: o = O } = t, s = u(/* @__PURE__ */ new Set()), c = {
|
|
416
|
+
toJSON() {
|
|
417
|
+
return {};
|
|
418
|
+
},
|
|
419
|
+
current: s
|
|
420
|
+
}, l = n ? u(c) : c, d = /* @__PURE__ */ new Set(), f = new Map([
|
|
421
|
+
["Meta", d],
|
|
422
|
+
["Shift", /* @__PURE__ */ new Set()],
|
|
423
|
+
["Alt", /* @__PURE__ */ new Set()]
|
|
424
|
+
]), p = /* @__PURE__ */ new Set();
|
|
425
|
+
function h(e, t) {
|
|
426
|
+
e in l && (n ? l[e] = t : l[e].value = t);
|
|
427
|
+
}
|
|
428
|
+
function g() {
|
|
429
|
+
s.clear();
|
|
430
|
+
for (let e of p) h(e, !1);
|
|
431
|
+
}
|
|
432
|
+
function v(e, t, n) {
|
|
433
|
+
if (!(!e || typeof t.getModifierState != "function")) {
|
|
434
|
+
for (let [e, r] of f) if (t.getModifierState(e)) {
|
|
435
|
+
n.forEach((e) => r.add(e));
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
function y(e, t) {
|
|
441
|
+
if (e) return;
|
|
442
|
+
let n = `${t[0].toUpperCase()}${t.slice(1)}`, r = f.get(n);
|
|
443
|
+
if (!["shift", "alt"].includes(t) || !r) return;
|
|
444
|
+
let i = Array.from(r), a = i.indexOf(t);
|
|
445
|
+
i.forEach((e, t) => {
|
|
446
|
+
t >= a && (s.delete(e), h(e, !1));
|
|
447
|
+
}), r.clear();
|
|
448
|
+
}
|
|
449
|
+
function b(e, t) {
|
|
450
|
+
let n = e.key?.toLowerCase(), r = [e.code?.toLowerCase(), n].filter(Boolean);
|
|
451
|
+
if (n) {
|
|
452
|
+
n && (t ? s.add(n) : s.delete(n));
|
|
453
|
+
for (let e of r) p.add(e), h(e, t);
|
|
454
|
+
v(t, e, [...s, ...r]), y(t, n), n === "meta" && !t && (d.forEach((e) => {
|
|
455
|
+
s.delete(e), h(e, !1);
|
|
456
|
+
}), d.clear());
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
U(r, "keydown", (e) => (b(e, !0), o(e)), { passive: a }), U(r, "keyup", (e) => (b(e, !1), o(e)), { passive: a }), U("blur", g, { passive: a }), U("focus", g, { passive: a });
|
|
460
|
+
let x = new Proxy(l, { get(t, r, a) {
|
|
461
|
+
if (typeof r != "string") return Reflect.get(t, r, a);
|
|
462
|
+
if (r = r.toLowerCase(), r in i && (r = i[r]), !(r in l)) if (/[+_-]/.test(r)) {
|
|
463
|
+
let t = r.split(/[+_-]/g).map((e) => e.trim());
|
|
464
|
+
l[r] = e(() => t.map((e) => _(x[e])).every(Boolean));
|
|
465
|
+
} else l[r] = m(!1);
|
|
466
|
+
let o = Reflect.get(t, r, a);
|
|
467
|
+
return n ? _(o) : o;
|
|
468
|
+
} });
|
|
469
|
+
return x;
|
|
470
|
+
}
|
|
471
|
+
//#endregion
|
|
472
|
+
export { re as a, w as c, F as d, I as f, ne as i, k as l, Z as n, ae as o, ee as r, Q as s, R as t, x as u };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/@shikijs+engine-oniguruma@3.22.0/node_modules/@shikijs/engine-oniguruma/dist/index.mjs
|
|
2
|
+
var e = class extends Error {
|
|
2
3
|
constructor(e) {
|
|
3
4
|
super(e), this.name = "ShikiError";
|
|
4
5
|
}
|
|
5
6
|
};
|
|
6
|
-
function
|
|
7
|
+
function t() {
|
|
7
8
|
return 2147483648;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
+
function n() {
|
|
10
11
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
11
12
|
}
|
|
12
|
-
var
|
|
13
|
-
async function
|
|
13
|
+
var r = (e, t) => e + (t - e % t) % t;
|
|
14
|
+
async function i(e) {
|
|
14
15
|
let i, a, o = {};
|
|
15
16
|
function s(e) {
|
|
16
17
|
a = e, o.HEAPU8 = new Uint8Array(e), o.HEAPU32 = new Uint32Array(e);
|
|
@@ -26,11 +27,11 @@ async function main(e) {
|
|
|
26
27
|
function u(e) {
|
|
27
28
|
let n = o.HEAPU8.length;
|
|
28
29
|
e >>>= 0;
|
|
29
|
-
let i =
|
|
30
|
+
let i = t();
|
|
30
31
|
if (e > i) return !1;
|
|
31
32
|
for (let t = 1; t <= 4; t *= 2) {
|
|
32
33
|
let a = n * (1 + .2 / t);
|
|
33
|
-
if (a = Math.min(a, e + 100663296), l(Math.min(i,
|
|
34
|
+
if (a = Math.min(a, e + 100663296), l(Math.min(i, r(Math.max(e, a), 65536)))) return !0;
|
|
34
35
|
}
|
|
35
36
|
return !1;
|
|
36
37
|
}
|
|
@@ -64,7 +65,7 @@ async function main(e) {
|
|
|
64
65
|
return e ? f(o.HEAPU8, e, t) : "";
|
|
65
66
|
}
|
|
66
67
|
let m = {
|
|
67
|
-
emscripten_get_now:
|
|
68
|
+
emscripten_get_now: n,
|
|
68
69
|
emscripten_memcpy_big: c,
|
|
69
70
|
emscripten_resize_heap: u,
|
|
70
71
|
fd_write: () => 0
|
|
@@ -78,18 +79,18 @@ async function main(e) {
|
|
|
78
79
|
}
|
|
79
80
|
return await h(), o;
|
|
80
81
|
}
|
|
81
|
-
var
|
|
82
|
+
var a = Object.defineProperty, o = (e, t, n) => t in e ? a(e, t, {
|
|
82
83
|
enumerable: !0,
|
|
83
84
|
configurable: !0,
|
|
84
85
|
writable: !0,
|
|
85
86
|
value: n
|
|
86
|
-
}) : e[t] = n,
|
|
87
|
-
function
|
|
88
|
-
throw new
|
|
87
|
+
}) : e[t] = n, s = (e, t, n) => o(e, typeof t == "symbol" ? t : t + "", n), c = null;
|
|
88
|
+
function l(t) {
|
|
89
|
+
throw new e(t.UTF8ToString(t.getLastOnigError()));
|
|
89
90
|
}
|
|
90
|
-
var
|
|
91
|
+
var u = class e {
|
|
91
92
|
constructor(t) {
|
|
92
|
-
|
|
93
|
+
s(this, "utf16Length"), s(this, "utf8Length"), s(this, "utf16Value"), s(this, "utf8Value"), s(this, "utf16OffsetToUtf8"), s(this, "utf8OffsetToUtf16");
|
|
93
94
|
let n = t.length, r = e._utf8ByteLength(t), i = r !== n, a = i ? new Uint32Array(n + 1) : null;
|
|
94
95
|
i && (a[n] = r);
|
|
95
96
|
let o = i ? new Uint32Array(r + 1) : null;
|
|
@@ -121,12 +122,12 @@ var UtfString = class e {
|
|
|
121
122
|
let t = e.omalloc(this.utf8Length);
|
|
122
123
|
return e.HEAPU8.set(this.utf8Value, t), t;
|
|
123
124
|
}
|
|
124
|
-
},
|
|
125
|
+
}, d = class t {
|
|
125
126
|
constructor(n) {
|
|
126
|
-
if (
|
|
127
|
-
this._onigBinding =
|
|
128
|
-
let r = new
|
|
129
|
-
this.utf16Length = r.utf16Length, this.utf8Length = r.utf8Length, this.utf16OffsetToUtf8 = r.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = r.utf8OffsetToUtf16, this.utf8Length < 1e4 && !t._sharedPtrInUse ? (t._sharedPtr ||=
|
|
127
|
+
if (s(this, "id", ++t.LAST_ID), s(this, "_onigBinding"), s(this, "content"), s(this, "utf16Length"), s(this, "utf8Length"), s(this, "utf16OffsetToUtf8"), s(this, "utf8OffsetToUtf16"), s(this, "ptr"), !c) throw new e("Must invoke loadWasm first.");
|
|
128
|
+
this._onigBinding = c, this.content = n;
|
|
129
|
+
let r = new u(n);
|
|
130
|
+
this.utf16Length = r.utf16Length, this.utf8Length = r.utf8Length, this.utf16OffsetToUtf8 = r.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = r.utf8OffsetToUtf16, this.utf8Length < 1e4 && !t._sharedPtrInUse ? (t._sharedPtr ||= c.omalloc(1e4), t._sharedPtrInUse = !0, c.HEAPU8.set(r.utf8Value, t._sharedPtr), this.ptr = t._sharedPtr) : this.ptr = r.createString(c);
|
|
130
131
|
}
|
|
131
132
|
convertUtf8OffsetToUtf16(e) {
|
|
132
133
|
return this.utf8OffsetToUtf16 ? e < 0 ? 0 : e > this.utf8Length ? this.utf16Length : this.utf8OffsetToUtf16[e] : e;
|
|
@@ -138,22 +139,22 @@ var UtfString = class e {
|
|
|
138
139
|
this.ptr === t._sharedPtr ? t._sharedPtrInUse = !1 : this._onigBinding.ofree(this.ptr);
|
|
139
140
|
}
|
|
140
141
|
};
|
|
141
|
-
|
|
142
|
-
var
|
|
142
|
+
s(d, "LAST_ID", 0), s(d, "_sharedPtr", 0), s(d, "_sharedPtrInUse", !1);
|
|
143
|
+
var f = d, p = class {
|
|
143
144
|
constructor(t) {
|
|
144
|
-
if (
|
|
145
|
+
if (s(this, "_onigBinding"), s(this, "_ptr"), !c) throw new e("Must invoke loadWasm first.");
|
|
145
146
|
let n = [], r = [];
|
|
146
147
|
for (let e = 0, i = t.length; e < i; e++) {
|
|
147
|
-
let i = new
|
|
148
|
-
n[e] = i.createString(
|
|
148
|
+
let i = new u(t[e]);
|
|
149
|
+
n[e] = i.createString(c), r[e] = i.utf8Length;
|
|
149
150
|
}
|
|
150
|
-
let i =
|
|
151
|
-
|
|
152
|
-
let a =
|
|
153
|
-
|
|
154
|
-
let o =
|
|
155
|
-
for (let e = 0, r = t.length; e < r; e++)
|
|
156
|
-
|
|
151
|
+
let i = c.omalloc(4 * t.length);
|
|
152
|
+
c.HEAPU32.set(n, i / 4);
|
|
153
|
+
let a = c.omalloc(4 * t.length);
|
|
154
|
+
c.HEAPU32.set(r, a / 4);
|
|
155
|
+
let o = c.createOnigScanner(i, a, t.length);
|
|
156
|
+
for (let e = 0, r = t.length; e < r; e++) c.ofree(n[e]);
|
|
157
|
+
c.ofree(a), c.ofree(i), o === 0 && l(c), this._onigBinding = c, this._ptr = o;
|
|
157
158
|
}
|
|
158
159
|
dispose() {
|
|
159
160
|
this._onigBinding.freeOnigScanner(this._ptr);
|
|
@@ -161,7 +162,7 @@ var OnigString = _OnigString, OnigScanner = class {
|
|
|
161
162
|
findNextMatchSync(e, t, n) {
|
|
162
163
|
let r = 0;
|
|
163
164
|
if (typeof n == "number" && (r = n), typeof e == "string") {
|
|
164
|
-
e = new
|
|
165
|
+
e = new f(e);
|
|
165
166
|
let n = this._findNextMatchSync(e, t, !1, r);
|
|
166
167
|
return e.dispose(), n;
|
|
167
168
|
}
|
|
@@ -185,59 +186,60 @@ var OnigString = _OnigString, OnigScanner = class {
|
|
|
185
186
|
};
|
|
186
187
|
}
|
|
187
188
|
};
|
|
188
|
-
function
|
|
189
|
+
function m(e) {
|
|
189
190
|
return typeof e.instantiator == "function";
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
+
function h(e) {
|
|
192
193
|
return typeof e.default == "function";
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
+
function g(e) {
|
|
195
196
|
return e.data !== void 0;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
+
function _(e) {
|
|
198
199
|
return typeof Response < "u" && e instanceof Response;
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
+
function v(e) {
|
|
201
202
|
return typeof ArrayBuffer < "u" && (e instanceof ArrayBuffer || ArrayBuffer.isView(e)) || typeof Buffer < "u" && Buffer.isBuffer?.(e) || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer || typeof Uint32Array < "u" && e instanceof Uint32Array;
|
|
202
203
|
}
|
|
203
|
-
var
|
|
204
|
-
function
|
|
205
|
-
if (
|
|
204
|
+
var y;
|
|
205
|
+
function b(e) {
|
|
206
|
+
if (y) return y;
|
|
206
207
|
async function t() {
|
|
207
|
-
|
|
208
|
+
c = await i(async (t) => {
|
|
208
209
|
let n = e;
|
|
209
|
-
return n = await n, typeof n == "function" && (n = await n(t)), typeof n == "function" && (n = await n(t)),
|
|
210
|
+
return n = await n, typeof n == "function" && (n = await n(t)), typeof n == "function" && (n = await n(t)), m(n) ? n = await n.instantiator(t) : h(n) ? n = await n.default(t) : (g(n) && (n = n.data), _(n) ? n = typeof WebAssembly.instantiateStreaming == "function" ? await S(n)(t) : await C(n)(t) : v(n) || n instanceof WebAssembly.Module ? n = await x(n)(t) : "default" in n && n.default instanceof WebAssembly.Module && (n = await x(n.default)(t))), "instance" in n && (n = n.instance), "exports" in n && (n = n.exports), n;
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
|
-
return
|
|
213
|
+
return y = t(), y;
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
+
function x(e) {
|
|
215
216
|
return (t) => WebAssembly.instantiate(e, t);
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
+
function S(e) {
|
|
218
219
|
return (t) => WebAssembly.instantiateStreaming(e, t);
|
|
219
220
|
}
|
|
220
|
-
function
|
|
221
|
+
function C(e) {
|
|
221
222
|
return async (t) => {
|
|
222
223
|
let n = await e.arrayBuffer();
|
|
223
224
|
return WebAssembly.instantiate(n, t);
|
|
224
225
|
};
|
|
225
226
|
}
|
|
226
|
-
var
|
|
227
|
-
function
|
|
228
|
-
|
|
227
|
+
var w;
|
|
228
|
+
function T(e) {
|
|
229
|
+
w = e;
|
|
229
230
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
231
|
+
function E() {
|
|
232
|
+
return w;
|
|
232
233
|
}
|
|
233
|
-
async function
|
|
234
|
-
return e && await
|
|
234
|
+
async function D(e) {
|
|
235
|
+
return e && await b(e), {
|
|
235
236
|
createScanner(e) {
|
|
236
|
-
return new
|
|
237
|
+
return new p(e.map((e) => typeof e == "string" ? e : e.source));
|
|
237
238
|
},
|
|
238
239
|
createString(e) {
|
|
239
|
-
return new
|
|
240
|
+
return new f(e);
|
|
240
241
|
}
|
|
241
242
|
};
|
|
242
243
|
}
|
|
243
|
-
|
|
244
|
+
//#endregion
|
|
245
|
+
export { D as createOnigurumaEngine, E as getDefaultWasmLoader, b as loadWasm, T as setDefaultWasmLoader };
|