@deot/docs-client 1.1.2 → 1.1.4
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/README.md +2 -3
- package/dist/chunks/browser-Cmwcvs-d.js +505 -0
- package/dist/chunks/cdn-DEvdGJu2-bmlgKy4E.js +38 -0
- package/dist/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +14 -0
- package/dist/chunks/compile-Bw7v7QE--Dd1-R95H.js +79920 -0
- package/dist/chunks/compiler-sfc.esm-browser-B4_kBkG5.js +24975 -0
- package/dist/chunks/dayjs.min-B3g34Qcz.js +300 -0
- package/dist/chunks/dist-0ySyXNpo.js +415 -0
- package/dist/chunks/dist-BUw25nXJ.js +65 -0
- package/dist/chunks/dist-BeOE8qTX.js +345 -0
- package/dist/chunks/dist-Bm7SK-km.js +24517 -0
- package/dist/chunks/dist-C3V7reR4.js +197 -0
- package/dist/chunks/dist-C8z9l0mA.js +58 -0
- package/dist/chunks/dist-CI9Lp9Cj.js +247 -0
- package/dist/chunks/dist-COjpr4FU.js +426 -0
- package/dist/chunks/dist-CQir6D4y.js +244 -0
- package/dist/chunks/dist-CuJyl-ef.js +17 -0
- package/dist/chunks/dist-Cxf7_ocf.js +44 -0
- package/dist/chunks/dist-DF4kisl2.js +43 -0
- package/dist/chunks/dist-DLj8yJdm.js +38 -0
- package/dist/chunks/dist-DN0sqx7H.js +39 -0
- package/dist/chunks/dist-DWqBe2Ah.js +132 -0
- package/dist/chunks/dist-D_Uqh6m9.js +80 -0
- package/dist/chunks/dist-DcIU51zW.js +166 -0
- package/dist/chunks/dist-DlmO7OlF.js +22 -0
- package/dist/chunks/dist-kiZUqqzR.js +27 -0
- package/dist/chunks/dist-oZ12SGqg.js +6 -0
- package/dist/chunks/dist-uXnwGrO3.js +76 -0
- package/dist/chunks/dist-va7FmnW4.js +156 -0
- package/dist/chunks/{echarts-I1Rk_oCV.js → echarts-Dk-pu7GM.js} +450 -398
- package/dist/chunks/files-C5UMzYxA-q9oJ4PrI.js +110 -0
- package/dist/chunks/html2canvas-Deo0mM5K.js +4022 -0
- package/dist/chunks/index.es-UlJ0gfdF.js +5757 -0
- package/dist/chunks/jspdf.es.min-CJc40v7q.js +17873 -0
- package/dist/chunks/jsx-CwMPlI4_-CAiik-V7.js +128454 -0
- package/dist/chunks/jszip.min-BbVwZKYP.js +3044 -0
- package/dist/chunks/linker-JHdz37DK-CWgUtxZ5.js +118 -0
- package/dist/chunks/local-sandbox-B8IJ5jWb-BgfU3iQ4.js +300 -0
- package/dist/chunks/lodash-Cxf6dD_I.js +5161 -0
- package/dist/chunks/modules-DlLJF_vd-DcNdL6sc.js +153 -0
- package/dist/chunks/{photoswipe.esm-CT37djgx.js → photoswipe.esm-B0V-xGTB.js} +36 -31
- package/dist/chunks/pinia-pDJilYOg.js +326 -0
- package/dist/chunks/purify.es-BiqY1C6m.js +867 -0
- package/dist/chunks/remote-DfXAsO9n-C_MtPVYr.js +75 -0
- package/dist/chunks/script-xKUjE8pf-oF69rg-w.js +14941 -0
- package/dist/chunks/store-D8vwi-HV-RFStijWr.js +16936 -0
- package/dist/chunks/vue-router-C0mj8Ot5.js +1196 -0
- package/dist/chunks/vue.runtime.esm-bundler-XxHGOLq2.js +4879 -0
- package/dist/index.cjs +17 -17
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41759 -103263
- package/dist/index.style.css +3 -4
- package/package.json +9 -9
- package/dist/chunks/_commonjsHelpers-BFTU3MAI-D_7z5o6A.js +0 -8
- package/dist/chunks/jsx-H2PmTOgp-C0GVSSMR.js +0 -128281
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
//#region node_modules/.pnpm/@deot+helper-emitter@1.1.3/node_modules/@deot/helper-emitter/dist/index.js
|
|
4
|
+
var t = /* @__PURE__ */ e({ Emitter: () => n }), n = class e {
|
|
5
|
+
static of(t) {
|
|
6
|
+
return new e(t);
|
|
7
|
+
}
|
|
8
|
+
events = {};
|
|
9
|
+
listeners = [];
|
|
10
|
+
context;
|
|
11
|
+
constructor(e) {
|
|
12
|
+
this.context = e || null;
|
|
13
|
+
}
|
|
14
|
+
on(e, t) {
|
|
15
|
+
/* istanbul ignore else -- @preserve */
|
|
16
|
+
if (typeof e == "object") for (let t in e)
|
|
17
|
+
/* istanbul ignore else -- @preserve */
|
|
18
|
+
e[t] && typeof e[t] == "function" && this.on(t, e[t]);
|
|
19
|
+
else typeof e == "string" && typeof t == "function" ? (this.events[e] || (this.events[e] = []), this.events[e].push(t)) : typeof e == "function" && this.listeners.push(e);
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
off(e, t) {
|
|
23
|
+
return typeof e == "string" && !t ? delete this.events[e] : typeof e == "string" && this.events[e] && t ? (this.events[e] = this.events[e].filter((e) => e !== t), this.events[e].length === 0 && delete this.events[e]) : e === void 0 && (this.listeners = []), this;
|
|
24
|
+
}
|
|
25
|
+
once(e, t) {
|
|
26
|
+
let n = this.context;
|
|
27
|
+
/* istanbul ignore else -- @preserve */
|
|
28
|
+
if (typeof e == "string" && typeof t == "function") {
|
|
29
|
+
let r = (...i) => {
|
|
30
|
+
this.off(e, r), t.apply(n, i);
|
|
31
|
+
};
|
|
32
|
+
this.on(e, r);
|
|
33
|
+
}
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
emit(e, ...t) {
|
|
37
|
+
let n = this.context;
|
|
38
|
+
if (this.events[e]?.length) for (let r = 0; this.events[e] && r < this.events[e].length && this.events[e][r].apply(n, t) !== !1; r++);
|
|
39
|
+
for (let r = 0; r < this.listeners.length && this.listeners[r].apply(n, [e].concat(t)) !== !1; r++);
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { t as n, n as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
import { a as t, i as n } from "./dist-C3V7reR4.js";
|
|
4
|
+
//#region node_modules/.pnpm/@deot+helper-route@1.1.10/node_modules/@deot/helper-route/dist/index.js
|
|
5
|
+
var r = /* @__PURE__ */ e({
|
|
6
|
+
get: () => i,
|
|
7
|
+
merge: () => a,
|
|
8
|
+
parse: () => o
|
|
9
|
+
}), i = (e, r, i) => {
|
|
10
|
+
let a = {
|
|
11
|
+
parse: t,
|
|
12
|
+
...typeof r == "object" ? r : { url: r },
|
|
13
|
+
...i
|
|
14
|
+
}, o = a.url || (typeof window > "u" ? "" : window.location.search), s = o.substring(o.indexOf("?") + 1).match(RegExp("(^|&)" + e + "=([^&]*)")), c = s == null ? null : s[2];
|
|
15
|
+
return c === null ? null : (c = n(c), typeof a.parse == "function" ? a.parse(c) : c);
|
|
16
|
+
}, a = (e) => {
|
|
17
|
+
let { origin: t = "", path: r = "", query: i } = e, a = t;
|
|
18
|
+
a += r instanceof Array ? r.length ? `/${r.join("/")}` : "" : r;
|
|
19
|
+
let o = [];
|
|
20
|
+
for (let e in i) if (i[e] || i[e] === !1 || i[e] === 0) {
|
|
21
|
+
let t = n(i[e]);
|
|
22
|
+
o = [...o, `${e}=${encodeURIComponent(t)}`];
|
|
23
|
+
}
|
|
24
|
+
return o.length > 0 && (a += (a.indexOf("?") > -1 ? "&" : "?") + o.join("&")), a;
|
|
25
|
+
}, o = (e, r) => {
|
|
26
|
+
let i = {
|
|
27
|
+
parse: t,
|
|
28
|
+
...typeof e == "object" ? e : { url: e },
|
|
29
|
+
...r
|
|
30
|
+
}, [a, o] = (i.url || (typeof window > "u" ? "" : `${window.location.pathname}${window.location.search}`)).split("?"), s = {};
|
|
31
|
+
o && Array.from(o.match(/[^?=&]+=[^&]*/g) || []).forEach((e) => {
|
|
32
|
+
let [t, r] = e.split("="), a = n(r);
|
|
33
|
+
s[t] = typeof i.parse == "function" ? i.parse(a) : a;
|
|
34
|
+
});
|
|
35
|
+
let c = a.indexOf("://"), l = a.indexOf("/", c === -1 ? 0 : c + 3);
|
|
36
|
+
return {
|
|
37
|
+
origin: (l === -1 ? a : a.slice(0, l)) || "",
|
|
38
|
+
path: l === -1 ? "" : a.slice(l),
|
|
39
|
+
query: s
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { i as get, a as merge, o as parse, r as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
//#region node_modules/.pnpm/@deot+helper-is@1.1.3/node_modules/@deot/helper-is/dist/index.js
|
|
4
|
+
var t = /* @__PURE__ */ e({
|
|
5
|
+
array: () => u,
|
|
6
|
+
arrayBuffer: () => d,
|
|
7
|
+
arrayBufferView: () => f,
|
|
8
|
+
blob: () => g,
|
|
9
|
+
bool: () => l,
|
|
10
|
+
buffer: () => w,
|
|
11
|
+
date: () => h,
|
|
12
|
+
file: () => _,
|
|
13
|
+
files: () => v,
|
|
14
|
+
fn: () => s,
|
|
15
|
+
formData: () => S,
|
|
16
|
+
formEl: () => x,
|
|
17
|
+
instance: () => r,
|
|
18
|
+
nil: () => i,
|
|
19
|
+
number: () => c,
|
|
20
|
+
object: () => C,
|
|
21
|
+
params: () => y,
|
|
22
|
+
plainObject: () => E,
|
|
23
|
+
regexp: () => b,
|
|
24
|
+
stream: () => T,
|
|
25
|
+
string: () => o,
|
|
26
|
+
type: () => n,
|
|
27
|
+
typedArray: () => m,
|
|
28
|
+
undef: () => a
|
|
29
|
+
}), n = (e, t) => !!t && typeof e === t, r = (e, t) => typeof t == "function" ? e instanceof t : Object.prototype.toString.call(e) === `[object ${t}]`, i = (e) => e === null, a = (e) => n(e, "undefined"), o = (e) => n(e, "string"), s = (e) => n(e, "function"), c = (e) => n(e, "number"), l = (e) => e === !0 || e === !1, u = (e) => Array.isArray(e), d = (e) => r(e, "ArrayBuffer"), f = (e) => {
|
|
30
|
+
let t;
|
|
31
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && d(e.buffer), t;
|
|
32
|
+
}, p = typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array), m = (e) => !!(p && r(e, p)), h = (e) => r(e, "Date"), g = (e) => r(e, "Blob"), _ = (e) => r(e, "File"), v = (e) => r(e, "FileList"), y = (e) => r(e, "URLSearchParams"), b = (e) => r(e, "RegExp"), x = (e) => r(e, "HTMLFormElement"), S = (e) => r(e, "FormData"), C = (e) => !i(e) && n(e, "object"), w = (e) => !!e?.constructor?.isBuffer?.(e), T = (e) => C(e) && s(e.pipe), E = (e) => {
|
|
33
|
+
if (!r(e, "Object")) return !1;
|
|
34
|
+
let t = Object.getPrototypeOf(e);
|
|
35
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { w as a, v as c, C as d, y as f, o as h, g as i, S as l, T as m, d as n, t as o, E as p, f as r, _ as s, u as t, x as u };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
//#region node_modules/.pnpm/@deot+helper-resize@1.1.4/node_modules/@deot/helper-resize/dist/index.js
|
|
4
|
+
var t = /* @__PURE__ */ e({ Resize: () => n }), n = class e {
|
|
5
|
+
el;
|
|
6
|
+
static of(t) {
|
|
7
|
+
return new e(t);
|
|
8
|
+
}
|
|
9
|
+
static on(t, n) {
|
|
10
|
+
return new e(t).on(n);
|
|
11
|
+
}
|
|
12
|
+
static off(t, n) {
|
|
13
|
+
return new e(t).off(n);
|
|
14
|
+
}
|
|
15
|
+
listeners = [];
|
|
16
|
+
ro = null;
|
|
17
|
+
constructor(t) {
|
|
18
|
+
this.el = t;
|
|
19
|
+
let n = t.__rz__;
|
|
20
|
+
n && n instanceof e && (this.listeners = n.listeners, this.ro = n.ro);
|
|
21
|
+
}
|
|
22
|
+
handleResize = (e) => {
|
|
23
|
+
/* istanbul ignore else -- @preserve */
|
|
24
|
+
e.some((e) => e.target === this.el) && this.listeners?.forEach((e) => e());
|
|
25
|
+
};
|
|
26
|
+
on(e) {
|
|
27
|
+
return typeof ResizeObserver > "u" ? () => {} : (this.listeners.length || (this.ro = this.ro || new ResizeObserver(this.handleResize), this.ro.observe(this.el), this.el.__rz__ = this), this.listeners.push(e), () => this.off(e));
|
|
28
|
+
}
|
|
29
|
+
off(e) {
|
|
30
|
+
if (e) {
|
|
31
|
+
let t = this.listeners.indexOf(e);
|
|
32
|
+
if (t === -1) return;
|
|
33
|
+
this.listeners.splice(t, 1);
|
|
34
|
+
} else this.listeners = [];
|
|
35
|
+
!this.listeners.length && this.ro && this.ro.disconnect();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { t as n, n as t };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
import { i as t, n, r, t as i } from "./dist-BeOE8qTX.js";
|
|
4
|
+
import { n as a, r as o } from "./dist-BUw25nXJ.js";
|
|
5
|
+
//#region node_modules/.pnpm/@deot+http-client@1.1.10/node_modules/@deot/http-client/dist/index.js
|
|
6
|
+
var s = /* @__PURE__ */ e({
|
|
7
|
+
Network: () => h,
|
|
8
|
+
createInstance: () => m
|
|
9
|
+
}), c = {
|
|
10
|
+
age: !0,
|
|
11
|
+
authorization: !0,
|
|
12
|
+
"content-length": !0,
|
|
13
|
+
"content-type": !0,
|
|
14
|
+
etag: !0,
|
|
15
|
+
expires: !0,
|
|
16
|
+
from: !0,
|
|
17
|
+
host: !0,
|
|
18
|
+
"if-modified-since": !0,
|
|
19
|
+
"if-unmodified-since": !0,
|
|
20
|
+
"last-modified": !0,
|
|
21
|
+
location: !0,
|
|
22
|
+
"max-forwards": !0,
|
|
23
|
+
"proxy-authorization": !0,
|
|
24
|
+
referer: !0,
|
|
25
|
+
"retry-after": !0,
|
|
26
|
+
"user-agent": !0
|
|
27
|
+
}, l = (e) => {
|
|
28
|
+
let t = {}, n, r, i;
|
|
29
|
+
return e && e.split("\n").forEach((e) => {
|
|
30
|
+
/* istanbul ignore next -- @preserve */
|
|
31
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && c[n]) &&
|
|
32
|
+
/* istanbul ignore next -- @preserve */
|
|
33
|
+
(n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
34
|
+
}), t;
|
|
35
|
+
}, u = (e, n) => new Promise((a, o) => {
|
|
36
|
+
let { onDownloadProgress: s, onUploadProgress: c, responseType: u, timeout: d, credentials: f, body: p, headers: m, method: h, url: g, async: _ = !0 } = e, v = new XMLHttpRequest(), y = () => ({
|
|
37
|
+
status: v.status,
|
|
38
|
+
headers: new r(l(v.getAllResponseHeaders()))
|
|
39
|
+
}), b = (e, n) => {
|
|
40
|
+
o(t.error(e, {
|
|
41
|
+
...y(),
|
|
42
|
+
body: n
|
|
43
|
+
}));
|
|
44
|
+
}, x = (e) => {
|
|
45
|
+
a(new t({
|
|
46
|
+
...y(),
|
|
47
|
+
body: e
|
|
48
|
+
}));
|
|
49
|
+
}, S = (e, t, n) => {
|
|
50
|
+
n ||= v, t && n.addEventListener(e, t);
|
|
51
|
+
};
|
|
52
|
+
S("readystatechange", () => {
|
|
53
|
+
if (v.readyState === 4 && v.status !== 0) {
|
|
54
|
+
if (v.status >= 200 && v.status < 300) {
|
|
55
|
+
let e = v.responseType ? v.response : v.responseText;
|
|
56
|
+
v.responseType && e === null ? b(i.HTTP_RESPONSE_PARSING_FAILED) : x(e);
|
|
57
|
+
} else b(i.HTTP_STATUS_ERROR);
|
|
58
|
+
}
|
|
59
|
+
}), S("abort", (e) => b(i.HTTP_CANCEL, e)), S(
|
|
60
|
+
"error",
|
|
61
|
+
/* istanbul ignore next */
|
|
62
|
+
(e) => b(i.HTTP_STATUS_ERROR, e)
|
|
63
|
+
), S("timeout", (e) => b(i.HTTP_REQUEST_TIMEOUT, e)), S("progress", s), S("progress", c, v.upload), v.open(h, g, _), v.withCredentials = f !== "omit" && !!f, d && (v.timeout = d), u && (v.responseType = u);
|
|
64
|
+
for (let e in m.toJSON()) v.setRequestHeader(e, m[e]);
|
|
65
|
+
v.send(p);
|
|
66
|
+
let C = n.cancel;
|
|
67
|
+
n.cancel = async () => {
|
|
68
|
+
v.abort(), await C();
|
|
69
|
+
}, n.server = v;
|
|
70
|
+
}), d = (e, n) => new Promise((a, o) => {
|
|
71
|
+
let { url: s, headers: c, body: l, credentials: u, method: d, timeout: f, responseType: p, ...m } = e, h = new AbortController(), g = f ? setTimeout(() => {
|
|
72
|
+
h.abort(i.HTTP_REQUEST_TIMEOUT), y(i.HTTP_REQUEST_TIMEOUT);
|
|
73
|
+
}, f) : null, _, v = () => {
|
|
74
|
+
let e = new r();
|
|
75
|
+
return _ && _.headers.forEach((t, n) => e.set(n, t, !0)), {
|
|
76
|
+
status: _?.status,
|
|
77
|
+
headers: e
|
|
78
|
+
};
|
|
79
|
+
}, y = (e, n) => {
|
|
80
|
+
[i.HTTP_CANCEL, i.HTTP_REQUEST_TIMEOUT].includes(h.signal.reason) && (e = h.signal.reason), o(t.error(e, {
|
|
81
|
+
...v(),
|
|
82
|
+
body: n
|
|
83
|
+
})), g && clearTimeout(g), g = null;
|
|
84
|
+
}, b = (e) => {
|
|
85
|
+
a(new t({
|
|
86
|
+
...v(),
|
|
87
|
+
body: e
|
|
88
|
+
})), g && clearTimeout(g), g = null;
|
|
89
|
+
}, x = fetch(s, {
|
|
90
|
+
headers: c.toJSON(),
|
|
91
|
+
body: l,
|
|
92
|
+
credentials: u,
|
|
93
|
+
method: d,
|
|
94
|
+
signal: h.signal,
|
|
95
|
+
...m
|
|
96
|
+
}).then((e) => {
|
|
97
|
+
if (_ = e, e.status >= 200 && e.status < 300) {
|
|
98
|
+
let t = e[p || "text"];
|
|
99
|
+
if (!t) return b(e);
|
|
100
|
+
t.call(e).then((e) => {
|
|
101
|
+
b(e);
|
|
102
|
+
}).catch((e) => {
|
|
103
|
+
y(i.HTTP_RESPONSE_PARSING_FAILED, e);
|
|
104
|
+
});
|
|
105
|
+
} else y(i.HTTP_STATUS_ERROR, e);
|
|
106
|
+
return e;
|
|
107
|
+
}).catch((e) => {
|
|
108
|
+
y(i.HTTP_STATUS_ERROR, e);
|
|
109
|
+
}), S = n.cancel;
|
|
110
|
+
n.cancel = async () => {
|
|
111
|
+
h.abort(i.HTTP_CANCEL), await S();
|
|
112
|
+
}, n.server = x;
|
|
113
|
+
}), f = (e) => new Promise((n, r) => {
|
|
114
|
+
let { jsonp: a, url: o } = e;
|
|
115
|
+
if (typeof a != "string" || window[a]) {
|
|
116
|
+
r(t.error(i.HTTP_CODE_ILLEGAL));
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
Object.defineProperty(window, a, { value: (e) => n(new t({ body: e })) });
|
|
120
|
+
let s = document.createElement("script"), c = document.getElementsByTagName("head")[0];
|
|
121
|
+
s.src = o, c.appendChild(s);
|
|
122
|
+
}), p = (e, t) => e.jsonp ? f(e) : e.useXHR || !window?.fetch ? u(e, t) : d(e, t), m = (e = {}) => {
|
|
123
|
+
let t = Array.isArray(e.onRequest) ? e.onRequest : e.onRequest ? [e.onRequest] : [], r = Array.isArray(e.onResponse) ? e.onResponse : e.onResponse ? [e.onResponse] : [];
|
|
124
|
+
return new n({
|
|
125
|
+
...e,
|
|
126
|
+
onRequest: t.concat([a]),
|
|
127
|
+
onResponse: [o].concat(r),
|
|
128
|
+
provider: p
|
|
129
|
+
});
|
|
130
|
+
}, h = m({});
|
|
131
|
+
//#endregion
|
|
132
|
+
export { m as n, s as r, h as t };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
//#region node_modules/.pnpm/@deot+helper-load@1.1.3/node_modules/@deot/helper-load/dist/index.js
|
|
4
|
+
var t = /* @__PURE__ */ e({
|
|
5
|
+
image: () => s,
|
|
6
|
+
link: () => o,
|
|
7
|
+
removeStyle: () => a,
|
|
8
|
+
script: () => r,
|
|
9
|
+
style: () => i
|
|
10
|
+
}), n = typeof window > "u", r = (e, t) => {
|
|
11
|
+
if (n) return;
|
|
12
|
+
if (r.cache.has(e)) return r.cache.get(e);
|
|
13
|
+
let i = new Promise((n, i) => {
|
|
14
|
+
let a = document.createElement("script"), o = t?.async === !1;
|
|
15
|
+
if (!o) a.src = e, a.onload = () => n(1), a.onerror = (t) => {
|
|
16
|
+
r.cache.delete(e), i(t);
|
|
17
|
+
};
|
|
18
|
+
else {
|
|
19
|
+
let t = new XMLHttpRequest();
|
|
20
|
+
t.open("GET", e, !1), t.send(), a.innerHTML = t.responseText;
|
|
21
|
+
}
|
|
22
|
+
document.getElementsByTagName("head")[0].appendChild(a), o && n(1);
|
|
23
|
+
});
|
|
24
|
+
return r.cache.set(e, i), i;
|
|
25
|
+
};
|
|
26
|
+
r.cache = /* @__PURE__ */ new Map();
|
|
27
|
+
var i = (e, t) => {
|
|
28
|
+
if (n) return;
|
|
29
|
+
if (t?.id) {
|
|
30
|
+
let n = typeof t.id == "string" ? document.getElementById(t.id) : t.id;
|
|
31
|
+
if (n) {
|
|
32
|
+
n.innerHTML = e;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (i.cache.has(e)) return;
|
|
37
|
+
i.cache.add(e);
|
|
38
|
+
let r = document.createElement("style");
|
|
39
|
+
t?.id && typeof t.id == "string" && r.setAttribute("id", t.id), r.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(r);
|
|
40
|
+
}, a = (e) => {
|
|
41
|
+
if (!n && e) {
|
|
42
|
+
let t = typeof e == "string" ? document.getElementById(e) : e;
|
|
43
|
+
if (!t) return;
|
|
44
|
+
let n = t.innerHTML;
|
|
45
|
+
document.getElementsByTagName("head")[0].removeChild(t), i.cache.has(n) && i.cache.delete(n);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
i.cache = /* @__PURE__ */ new Set();
|
|
49
|
+
var o = (e) => {
|
|
50
|
+
if (n) return;
|
|
51
|
+
if (o.cache.has(e)) return o.cache.get(e);
|
|
52
|
+
let t = new Promise((t, n) => {
|
|
53
|
+
let r = document.createElement("link");
|
|
54
|
+
r.type = "text/css", r.rel = "linksheet", r.href = e, r.onload = () => t(1), r.onerror = (t) => {
|
|
55
|
+
o.cache.delete(e), n(t);
|
|
56
|
+
}, document.getElementsByTagName("head")[0].appendChild(r);
|
|
57
|
+
});
|
|
58
|
+
return o.cache.set(e, t), t;
|
|
59
|
+
};
|
|
60
|
+
o.cache = /* @__PURE__ */ new Map();
|
|
61
|
+
var s = (e) => {
|
|
62
|
+
if (n) return;
|
|
63
|
+
if (s.cache.has(e)) return s.cache.get(e);
|
|
64
|
+
let t = new Promise((t, n) => {
|
|
65
|
+
let r = new Image();
|
|
66
|
+
r.src = e, r.onload = () => {
|
|
67
|
+
t({
|
|
68
|
+
source: e,
|
|
69
|
+
width: r.naturalWidth,
|
|
70
|
+
height: r.naturalHeight
|
|
71
|
+
});
|
|
72
|
+
}, r.onerror = (t) => {
|
|
73
|
+
s.cache.delete(e), n(t);
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
return s.cache.set(e, t), t;
|
|
77
|
+
};
|
|
78
|
+
s.placeholder = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQYV2P48OP/fwAJqgPnYfITggAAAABJRU5ErkJggg==", s.cache = /* @__PURE__ */ new Map();
|
|
79
|
+
//#endregion
|
|
80
|
+
export { a as n, i as r, t };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
//#region node_modules/.pnpm/@deot+helper-validator@1.1.4/node_modules/@deot/helper-validator/dist/index.js
|
|
4
|
+
var t = /* @__PURE__ */ e({
|
|
5
|
+
RegExps: () => r,
|
|
6
|
+
RuleHelper: () => a,
|
|
7
|
+
Validator: () => i
|
|
8
|
+
}), n = /^-?\d+(\.\d+)?$/, r = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty({
|
|
9
|
+
__proto__: null,
|
|
10
|
+
dataURL: /^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i,
|
|
11
|
+
date: /^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/,
|
|
12
|
+
email: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
|
|
13
|
+
identity: /(^[0-9a-zA-Z]{6,}$)/,
|
|
14
|
+
integer: /^[1-9]\d*$/,
|
|
15
|
+
mobile: /^(1[3-9])\d{9}$/,
|
|
16
|
+
name: /^[A-Za-z0-9\u4e00-\u9fa5_-]{1,}$/,
|
|
17
|
+
number: n,
|
|
18
|
+
number4: /^\d{4}$/,
|
|
19
|
+
number6: /^\d{6}$/,
|
|
20
|
+
price: /^([1-9][\d]{0,10}|0)([.]?[\d]{1,2})?$/,
|
|
21
|
+
tel: /^0[1-9][0-9]{1,2}-[2-8][0-9]{6,7}$/,
|
|
22
|
+
time: /\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}/,
|
|
23
|
+
url: /[a-zA-z]+:\/\/[^\s]*/,
|
|
24
|
+
wechat: /^[a-zA-Z\d_-]{5,}$/
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), i = class e {
|
|
26
|
+
static falsy = [
|
|
27
|
+
void 0,
|
|
28
|
+
null,
|
|
29
|
+
""
|
|
30
|
+
];
|
|
31
|
+
rules = {};
|
|
32
|
+
paths;
|
|
33
|
+
original;
|
|
34
|
+
constructor(e, t, n) {
|
|
35
|
+
this.updateRules(e), this.paths = t || [], this.original = n;
|
|
36
|
+
}
|
|
37
|
+
updateRules(t) {
|
|
38
|
+
t && Object.keys(t).forEach((n) => {
|
|
39
|
+
let r = t[n];
|
|
40
|
+
this.rules[n] = (Array.isArray(r) ? r : [r]).map((t) => {
|
|
41
|
+
if (typeof t == "function") return { validate: t };
|
|
42
|
+
(typeof t == "string" || t instanceof RegExp) && (t = { pattern: t }), typeof t == "boolean" && (t = { required: t });
|
|
43
|
+
let { validate: n, pattern: r, required: i, enum: a = [] } = t;
|
|
44
|
+
if (n && t.fields && (t.fields = void 0), !n && r) {
|
|
45
|
+
let e = typeof r == "string" ? new RegExp(r) : r;
|
|
46
|
+
return {
|
|
47
|
+
...t,
|
|
48
|
+
validate: (t) => e.test(t)
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
return !n && i ? {
|
|
52
|
+
...t,
|
|
53
|
+
validate: (t) => Array.isArray(t) ? !!t.length && t.every((t) => e.falsy.every((e) => t !== e)) : e.falsy.every((e) => t !== e)
|
|
54
|
+
} : !n && a.length ? {
|
|
55
|
+
...t,
|
|
56
|
+
validate: (e) => a.some((t) => e === t)
|
|
57
|
+
} : t;
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async validate(t, n) {
|
|
62
|
+
if (n ||= {}, !Object.keys(this.rules).length) return;
|
|
63
|
+
let r = n.fields || Object.keys(this.rules), i = [];
|
|
64
|
+
for (let a = 0; a < r.length; a++) {
|
|
65
|
+
let o = r[a], s = this.rules[o], c = t[o], l = this.original;
|
|
66
|
+
for (let r = 0; r < s.length; r++) {
|
|
67
|
+
let a = s[r], { validate: u = () => {}, transform: d = (e) => e, fields: f } = a, p = [...this.paths, o];
|
|
68
|
+
n._index !== void 0 && p.splice(p.length - 1, 0, n._index);
|
|
69
|
+
let m = d(c, {
|
|
70
|
+
field: o,
|
|
71
|
+
source: t,
|
|
72
|
+
paths: p,
|
|
73
|
+
original: l
|
|
74
|
+
});
|
|
75
|
+
if (f) {
|
|
76
|
+
let t = Array.isArray(m), r = t ? m : [m];
|
|
77
|
+
if (r.every((e) => e && typeof e == "object")) {
|
|
78
|
+
let a = new e(f, p);
|
|
79
|
+
for (let e = 0; e < r.length; e++) try {
|
|
80
|
+
await a.validate(r[e], {
|
|
81
|
+
_index: t ? e : void 0,
|
|
82
|
+
first: n.first,
|
|
83
|
+
original: l
|
|
84
|
+
});
|
|
85
|
+
} catch (e) {
|
|
86
|
+
if (i.push(...e), e.length && n.first) break;
|
|
87
|
+
}
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
let h = u(m, {
|
|
92
|
+
field: o,
|
|
93
|
+
source: t,
|
|
94
|
+
paths: p,
|
|
95
|
+
original: l
|
|
96
|
+
}), g = "";
|
|
97
|
+
if (h instanceof Promise) try {
|
|
98
|
+
await h;
|
|
99
|
+
} catch (e) {
|
|
100
|
+
h = !1, g = e.message || e;
|
|
101
|
+
}
|
|
102
|
+
else typeof h == "string" && (g = h, h = !1);
|
|
103
|
+
if (h === !1 && (i.push({
|
|
104
|
+
paths: p,
|
|
105
|
+
message: g || a.message || "",
|
|
106
|
+
field: o,
|
|
107
|
+
value: m
|
|
108
|
+
}), n.first)) break;
|
|
109
|
+
}
|
|
110
|
+
if (i.length && n.first) break;
|
|
111
|
+
}
|
|
112
|
+
if (i.length) {
|
|
113
|
+
let e = i.map((e) => {
|
|
114
|
+
let { message: t, ...n } = e;
|
|
115
|
+
return e.message = typeof t == "function" ? t(n) : t, e;
|
|
116
|
+
});
|
|
117
|
+
return Promise.reject(e);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}, a = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty({
|
|
121
|
+
__proto__: null,
|
|
122
|
+
create: (e) => {
|
|
123
|
+
e = {
|
|
124
|
+
name: "值",
|
|
125
|
+
...e
|
|
126
|
+
};
|
|
127
|
+
let { name: t, range: r = [], maxlength: a } = e;
|
|
128
|
+
e.messages = {
|
|
129
|
+
required: `${t} 必填`,
|
|
130
|
+
pattern: `请输入正确的 ${t}`,
|
|
131
|
+
type: `${t} 类型错误`,
|
|
132
|
+
range: `${t} 取值范围: ${r[0] || "*"}~${r[1] || "*"}`,
|
|
133
|
+
maxlength: `${t} 长度不超过 ${a}`,
|
|
134
|
+
...e.messages
|
|
135
|
+
};
|
|
136
|
+
let { messages: o, type: s, pattern: c, required: l } = e, u = (e) => !l && i.falsy.includes(e), d = [];
|
|
137
|
+
return l && d.push({
|
|
138
|
+
message: o.required,
|
|
139
|
+
required: l
|
|
140
|
+
}), (c || s === "number") && d.push({
|
|
141
|
+
message: o.pattern,
|
|
142
|
+
validate: (e) => u(e) ? !0 : (c || n).test(e)
|
|
143
|
+
}), s && d.push({
|
|
144
|
+
message: o.type,
|
|
145
|
+
validate: (e) => u(e) ? !0 : s === "string" ? typeof e == "string" : s === "number" ? typeof e == "number" :
|
|
146
|
+
/* istanbul ignore else -- @preserve */
|
|
147
|
+
s !== "array" || Array.isArray(e)
|
|
148
|
+
}), (r[0] !== void 0 || r[1] !== void 0) && d.push({
|
|
149
|
+
message: o.range,
|
|
150
|
+
validate: (e) => {
|
|
151
|
+
if (u(e)) return !0;
|
|
152
|
+
let t = !0, n = !0;
|
|
153
|
+
return r[0] !== void 0 && (t = Array.isArray(e) ? e.length >= r[0] : e >= r[0]), r[1] !== void 0 && (n = Array.isArray(e) ? e.length <= r[1] : e <= r[1]), t && n;
|
|
154
|
+
}
|
|
155
|
+
}), a !== void 0 && d.push({
|
|
156
|
+
message: o.maxlength,
|
|
157
|
+
validate: (e) => u(e) || typeof e != "string" ? !0 : e.length <= a
|
|
158
|
+
}), d;
|
|
159
|
+
},
|
|
160
|
+
required: (e) => [{
|
|
161
|
+
message: e,
|
|
162
|
+
required: !0
|
|
163
|
+
}]
|
|
164
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
165
|
+
//#endregion
|
|
166
|
+
export { r as i, t as n, a as r, i as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
import { i as t, n, r, t as i } from "./browser-Cmwcvs-d.js";
|
|
4
|
+
//#region node_modules/.pnpm/@deot+helper-unicode@1.1.4/node_modules/@deot/helper-unicode/dist/index.js
|
|
5
|
+
var a = /* @__PURE__ */ e({
|
|
6
|
+
atou: () => s,
|
|
7
|
+
decode: () => l,
|
|
8
|
+
encode: () => c,
|
|
9
|
+
utoa: () => o
|
|
10
|
+
}), o = (e) => {
|
|
11
|
+
let r = n(e), a = t(r, { level: 9 }), o = i(a, !0);
|
|
12
|
+
return btoa(o);
|
|
13
|
+
}, s = (e) => {
|
|
14
|
+
let t = atob(e);
|
|
15
|
+
if (t.startsWith("xÚ")) {
|
|
16
|
+
let e = n(t, !0), a = r(e);
|
|
17
|
+
return i(a);
|
|
18
|
+
}
|
|
19
|
+
return decodeURIComponent(escape(t));
|
|
20
|
+
}, c = o, l = s;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { s as atou, l as decode, c as encode, a as t, o as utoa };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
//#region node_modules/.pnpm/@deot+helper-device@1.1.3/node_modules/@deot/helper-device/dist/index.js
|
|
3
|
+
var e = (e) => {
|
|
4
|
+
e ||= typeof window > "u" ? "" : navigator.userAgent;
|
|
5
|
+
let t = e.match(/(Android);?[\s\/]+([\d.]+)?/), n = e.match(/(iPad).*OS\s([\d_]+)/), r = e.match(/(iPod)(.*OS\s([\d_]+))/), i = !r && !n && e.match(/(iPhone\sOS)\s([\d_]+)/), a = e.toLowerCase().indexOf("chrome") >= 0, o = !!(i || n || r), s = t ? "android" : o ? "ios" : "", c = t ? t[2] : i && !r ? i[2].replace(/_/g, ".") : n ? n[2].replace(/_/g, ".") : r ? r[3] && r[3].replace(/_/g, ".") : "", l = o && e.match(/.*AppleWebKit(?!.*Safari)/i), u = /MicroMessenger/i.test(e), d = (e.match(/MicroMessenger\/([\d\.]+)/i) || [])[1] || "", f = /wechatdevtools/.test(e), p = !!(t || o || e && "ontouchend" in document), m = e.toLowerCase().indexOf("firefox") > -1;
|
|
6
|
+
return {
|
|
7
|
+
android: !!t,
|
|
8
|
+
ipad: !!n,
|
|
9
|
+
ipod: !!r,
|
|
10
|
+
iphone: !!i,
|
|
11
|
+
androidChrome: a,
|
|
12
|
+
ios: o,
|
|
13
|
+
os: s,
|
|
14
|
+
osVersion: c,
|
|
15
|
+
webView: l,
|
|
16
|
+
wechat: u,
|
|
17
|
+
wechatVersion: d,
|
|
18
|
+
wechatDevTools: f,
|
|
19
|
+
touch: p,
|
|
20
|
+
firefox: m
|
|
21
|
+
};
|
|
22
|
+
}, t = {
|
|
23
|
+
parse: e,
|
|
24
|
+
...e()
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { t as Device };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
//#region node_modules/.pnpm/@deot+helper-shared@1.1.3/node_modules/@deot/helper-shared/dist/index.js
|
|
4
|
+
var t = /* @__PURE__ */ e({ IS_SERVER: () => n }), n = typeof window > "u";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as IS_SERVER, t };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
import { C as t, F as n, M as r, W as i, f as a, q as o } from "./vue.runtime.esm-bundler-XxHGOLq2.js";
|
|
4
|
+
//#region node_modules/.pnpm/@deot+vc-hooks@1.2.0_vue@3.5.43_typescript@6.0.3_/node_modules/@deot/vc-hooks/dist/index.js
|
|
5
|
+
var s = /* @__PURE__ */ e({
|
|
6
|
+
getInstance: () => m,
|
|
7
|
+
useAttrs: () => c,
|
|
8
|
+
useDrag: () => l,
|
|
9
|
+
useScrollbar: () => p
|
|
10
|
+
}), c = (e) => {
|
|
11
|
+
let t = i(), { merge: n = !0, exclude: r = [] } = e || {};
|
|
12
|
+
return a(() => {
|
|
13
|
+
if (n && !r.length) return t;
|
|
14
|
+
let e = Object.entries(t).reduce((e, [t, i]) => (r.includes(t) || (!n && /^on([A-Z])/.test(t) ? e.listeners[t] = i : !n && /(class|style)/.test(t) ? e[t] = i : e.attrs[t] = i), e), {
|
|
15
|
+
style: void 0,
|
|
16
|
+
class: void 0,
|
|
17
|
+
attrs: {},
|
|
18
|
+
listeners: {}
|
|
19
|
+
});
|
|
20
|
+
return n ? e.attrs : e;
|
|
21
|
+
});
|
|
22
|
+
}, l = (e) => {
|
|
23
|
+
let t = (t, n) => (e.cancel || e.end)?.(t, n), n = (e) => e.preventDefault(), i = (t) => {
|
|
24
|
+
let r = (t ? document.addEventListener : document.removeEventListener).bind(document);
|
|
25
|
+
r("mousemove", a), r("mouseup", o), e.selectable === !1 && (r("selectstart", n), r("dragstart", n));
|
|
26
|
+
}, a = (n) => {
|
|
27
|
+
if (!(n.buttons & 1)) {
|
|
28
|
+
i(!1), t(n, n);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
e.move?.(n, n);
|
|
32
|
+
}, o = (t) => {
|
|
33
|
+
t.button === 0 && (i(!1), e.end?.(t, t));
|
|
34
|
+
}, s = (t) => {
|
|
35
|
+
t.button === 0 && e.start?.(t, t) !== !1 && i(!0);
|
|
36
|
+
}, c = null, l = (e) => {
|
|
37
|
+
for (let t = 0; c !== null && t < (e?.length || 0); t++) if (e[t].identifier === c) return e[t];
|
|
38
|
+
}, u = (t) => {
|
|
39
|
+
if (l(t.touches) && !l(t.changedTouches)) return;
|
|
40
|
+
let n = t.changedTouches?.[0] || t.touches?.[0];
|
|
41
|
+
c = n && e.start?.(t, n) !== !1 ? n.identifier : null;
|
|
42
|
+
}, d = (t) => {
|
|
43
|
+
let n = l(t.touches);
|
|
44
|
+
n && e.move?.(t, n);
|
|
45
|
+
}, f = (e) => (t) => {
|
|
46
|
+
let n = l(t.changedTouches);
|
|
47
|
+
n && (c = null, e(t, n));
|
|
48
|
+
};
|
|
49
|
+
return r(() => i(!1)), { listeners: {
|
|
50
|
+
onMousedown: s,
|
|
51
|
+
onTouchstart: u,
|
|
52
|
+
onTouchmove: d,
|
|
53
|
+
onTouchend: f((t, n) => e.end?.(t, n)),
|
|
54
|
+
onTouchcancel: f(t)
|
|
55
|
+
} };
|
|
56
|
+
}, u = 0, d = "", f = "", p = (e) => {
|
|
57
|
+
let t = !1, i = !1, a = (e) => {
|
|
58
|
+
if (!t || e === i) return;
|
|
59
|
+
let { style: n } = document.body;
|
|
60
|
+
i = e, e ? u++ === 0 && (d = n.getPropertyValue("overflow"), f = n.getPropertyPriority("overflow"), n.setProperty("overflow", "hidden")) : --u === 0 && (d ? n.setProperty("overflow", d, f) : n.removeProperty("overflow"));
|
|
61
|
+
};
|
|
62
|
+
o(() => e.value, (e) => {
|
|
63
|
+
a(e);
|
|
64
|
+
}, { immediate: !1 }), n(() => {
|
|
65
|
+
t = !0, e.value && a(!0);
|
|
66
|
+
}), r(() => {
|
|
67
|
+
a(!1);
|
|
68
|
+
});
|
|
69
|
+
}, m = (e, n) => {
|
|
70
|
+
let r = t(), i = RegExp(`${e}$`), a = r.parent;
|
|
71
|
+
/* istanbul ignore next -- @preserve */
|
|
72
|
+
for (; a && !(a?.type?.name && i.test(a.type.name)) && (!n || !a?.[n] || !a?.proxy?.[n]);) a = a.parent || a?.type?.parent;
|
|
73
|
+
return a;
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { p as a, l as i, m as n, c as r, s as t };
|