@deot/docs-client 1.1.3 → 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 +41713 -103389
- 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,153 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { i as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
import { a as t } from "./cdn-DEvdGJu2-bmlgKy4E.js";
|
|
4
|
+
//#region packages/playground/dist/modules-DlLJF_vd.js
|
|
5
|
+
var n = {
|
|
6
|
+
vue: () => import("./vue.runtime.esm-bundler-XxHGOLq2.js").then((e) => e.t),
|
|
7
|
+
"vue-router": () => import("./vue-router-C0mj8Ot5.js").then((e) => e.o),
|
|
8
|
+
pinia: () => import("./pinia-pDJilYOg.js"),
|
|
9
|
+
"@deot/helper": () => import("./dist-CuJyl-ef.js"),
|
|
10
|
+
"@deot/helper-cache": () => import("./dist-CQir6D4y.js").then((e) => e.a),
|
|
11
|
+
"@deot/helper-device": () => import("./dist-kiZUqqzR.js"),
|
|
12
|
+
"@deot/helper-dom": () => import("./dist-va7FmnW4.js").then((e) => e.i),
|
|
13
|
+
"@deot/helper-emitter": () => import("./dist-Cxf7_ocf.js").then((e) => e.n),
|
|
14
|
+
"@deot/helper-fp": () => import("./dist-COjpr4FU.js").then((e) => e.i),
|
|
15
|
+
"@deot/helper-is": () => import("./dist-DLj8yJdm.js").then((e) => e.o),
|
|
16
|
+
"@deot/helper-load": () => import("./dist-D_Uqh6m9.js").then((e) => e.t),
|
|
17
|
+
"@deot/helper-resize": () => import("./dist-DN0sqx7H.js").then((e) => e.n),
|
|
18
|
+
"@deot/helper-route": () => import("./dist-DF4kisl2.js"),
|
|
19
|
+
"@deot/helper-scheduler": () => import("./dist-C8z9l0mA.js").then((e) => e.n),
|
|
20
|
+
"@deot/helper-shared": () => import("./dist-oZ12SGqg.js"),
|
|
21
|
+
"@deot/helper-unicode": () => import("./dist-DlmO7OlF.js"),
|
|
22
|
+
"@deot/helper-utils": () => import("./dist-C3V7reR4.js").then((e) => e.r),
|
|
23
|
+
"@deot/helper-validator": () => import("./dist-DcIU51zW.js").then((e) => e.n),
|
|
24
|
+
"@deot/helper-wheel": () => import("./dist-CI9Lp9Cj.js").then((e) => e.n),
|
|
25
|
+
"@deot/http-client": () => import("./dist-DWqBe2Ah.js").then((e) => e.r),
|
|
26
|
+
"@deot/http-core": () => import("./dist-BeOE8qTX.js").then((e) => e.a),
|
|
27
|
+
"@deot/http-hooks": () => import("./dist-BUw25nXJ.js").then((e) => e.t),
|
|
28
|
+
"@deot/http": () => import("../index.js").then((e) => e.t),
|
|
29
|
+
"@deot/vc": () => import("../index.js").then((e) => e.n),
|
|
30
|
+
"@deot/vc-components": () => import("./dist-Bm7SK-km.js").then((e) => e.ai),
|
|
31
|
+
"@deot/vc-hooks": () => import("./dist-uXnwGrO3.js").then((e) => e.t),
|
|
32
|
+
"@deot/vc-locale": () => import("./dist-0ySyXNpo.js").then((e) => e.t),
|
|
33
|
+
"lodash-es": () => import("./lodash-Cxf6dD_I.js").then((e) => e.t),
|
|
34
|
+
echarts: () => import("./echarts-Dk-pu7GM.js"),
|
|
35
|
+
photoswipe: () => import("./photoswipe.esm-B0V-xGTB.js"),
|
|
36
|
+
jszip: () => import("./jszip.min-BbVwZKYP.js").then((t) => /* @__PURE__ */ e(t.default)),
|
|
37
|
+
jspdf: () => import("./jspdf.es.min-CJc40v7q.js").then((e) => e.t),
|
|
38
|
+
dayjs: async () => (await import("./dayjs.min-B3g34Qcz.js").then((t) => /* @__PURE__ */ e(t.default))).default
|
|
39
|
+
}, r = /* @__PURE__ */ new Map(), i = new Set(Object.keys(n)), a = (e) => {
|
|
40
|
+
let t = n[e];
|
|
41
|
+
if (!t) return Promise.reject(/* @__PURE__ */ Error(`[Playground] 没有本地模块 "${e}"`));
|
|
42
|
+
let i = r.get(e);
|
|
43
|
+
return i || (i = t(), r.set(e, i)), i;
|
|
44
|
+
}, o = /* @__PURE__ */ new Set([
|
|
45
|
+
"prototype",
|
|
46
|
+
"caller",
|
|
47
|
+
"arguments"
|
|
48
|
+
]), s = (e) => {
|
|
49
|
+
if (e == null || typeof e != "object" && typeof e != "function") return {
|
|
50
|
+
__esModule: !0,
|
|
51
|
+
default: e
|
|
52
|
+
};
|
|
53
|
+
let t = e, n = { __esModule: !0 }, r = (e) => {
|
|
54
|
+
if (!(o.has(e) || e === "__esModule")) try {
|
|
55
|
+
n[e] = t[e];
|
|
56
|
+
} catch {}
|
|
57
|
+
};
|
|
58
|
+
try {
|
|
59
|
+
Object.keys(t).forEach(r);
|
|
60
|
+
} catch {}
|
|
61
|
+
try {
|
|
62
|
+
Object.getOwnPropertyNames(t).forEach(r);
|
|
63
|
+
} catch {}
|
|
64
|
+
return (!("default" in n) || n.default === void 0) && (n.default = t.default === void 0 ? t : t.default), n;
|
|
65
|
+
}, c = (e, t) => Object.prototype.hasOwnProperty.call(t, e) ? s(t[e]) : null, l = (e, t) => {
|
|
66
|
+
if (!t) return;
|
|
67
|
+
let n = t.split("/").filter(Boolean), r = e;
|
|
68
|
+
for (let e of n) {
|
|
69
|
+
if (r == null || typeof r != "object" && typeof r != "function") return;
|
|
70
|
+
let t = r;
|
|
71
|
+
if (!(e in t)) return;
|
|
72
|
+
r = t[e];
|
|
73
|
+
}
|
|
74
|
+
return r;
|
|
75
|
+
}, u = (e, t) => {
|
|
76
|
+
let n = c(e, t);
|
|
77
|
+
if (n) return n;
|
|
78
|
+
let r = e;
|
|
79
|
+
for (;;) {
|
|
80
|
+
let n = r.lastIndexOf("/");
|
|
81
|
+
if (n <= 0) break;
|
|
82
|
+
let i = r.slice(0, n), a = e.slice(i.length + 1), o = c(i, t);
|
|
83
|
+
if (o) {
|
|
84
|
+
let e = l(o, a);
|
|
85
|
+
if (e !== void 0) return s(e);
|
|
86
|
+
}
|
|
87
|
+
r = i;
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
}, d = /* @__PURE__ */ new Set(["vue", "vue/server-renderer"]), f = (e) => e instanceof Error ? e.message : String(e), p = (e, t) => {
|
|
91
|
+
if (t[e]) return e;
|
|
92
|
+
let n = e;
|
|
93
|
+
for (;;) {
|
|
94
|
+
let e = n.lastIndexOf("/");
|
|
95
|
+
if (e <= 0) return null;
|
|
96
|
+
let r = n.slice(0, e);
|
|
97
|
+
if (t[r]) return r;
|
|
98
|
+
n = r;
|
|
99
|
+
}
|
|
100
|
+
}, m = (e, n, r) => {
|
|
101
|
+
if (!i.has(e) && !d.has(e)) return !1;
|
|
102
|
+
let a = n[e];
|
|
103
|
+
return !a || a === t(r)[e];
|
|
104
|
+
}, h = async (e, t, n, r, i) => {
|
|
105
|
+
let o = {
|
|
106
|
+
vue: n.vue,
|
|
107
|
+
"vue-router": n.vueRouter
|
|
108
|
+
}, s = [], c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
|
|
109
|
+
e.forEach((e) => {
|
|
110
|
+
if (m(e, t, i)) l.add(e);
|
|
111
|
+
else {
|
|
112
|
+
let n = e;
|
|
113
|
+
for (;;) {
|
|
114
|
+
let e = n.lastIndexOf("/");
|
|
115
|
+
if (e <= 0) break;
|
|
116
|
+
let r = n.slice(0, e);
|
|
117
|
+
if (m(r, t, i)) {
|
|
118
|
+
l.add(r);
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
n = r;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (e === "vue-router") {
|
|
125
|
+
t["vue-router"] && c.add("vue-router");
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
let n = p(e, t);
|
|
129
|
+
n && m(n, t, i) ? l.add(n) : n && c.add(n);
|
|
130
|
+
}), await Promise.all([...l].map(async (e) => {
|
|
131
|
+
if (e !== "vue" && e !== "vue-router") {
|
|
132
|
+
if (e === "vue/server-renderer") {
|
|
133
|
+
o[e] = n.vue;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
o[e] = await a(e);
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
for (let e of c) {
|
|
140
|
+
let n = t[e];
|
|
141
|
+
if (n && !m(e, t, i)) try {
|
|
142
|
+
o[e] = await r(n);
|
|
143
|
+
} catch (t) {
|
|
144
|
+
s.push(`[Playground] 无法加载模块 "${e}" (${n}): ${f(t)}`);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
modules: o,
|
|
149
|
+
errors: s
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
export { h as loadLocalModules, i as n, m as prefersLocalBuiltin, u as resolveHostModule, p as resolveImportTarget, a as t, s as toHostModule };
|
|
@@ -209,7 +209,7 @@ var x = class {
|
|
|
209
209
|
}
|
|
210
210
|
appendHeavy() {
|
|
211
211
|
let { pswp: e } = this;
|
|
212
|
-
this.heavyAppended || !e.opener.isOpen || e.mainScroll.isShifted() || !this.isActive &&
|
|
212
|
+
this.heavyAppended || !e.opener.isOpen || e.mainScroll.isShifted() || !this.isActive && 0 || this.pswp.dispatch("appendHeavy", { slide: this }).defaultPrevented || (this.heavyAppended = !0, this.content.append(), this.pswp.dispatch("appendHeavyContent", { slide: this }));
|
|
213
213
|
}
|
|
214
214
|
activate() {
|
|
215
215
|
this.isActive = !0, this.appendHeavy(), this.content.activate(), this.pswp.dispatch("slideActivate", { slide: this });
|
|
@@ -227,7 +227,7 @@ var x = class {
|
|
|
227
227
|
let t = this.currentResolution || this.zoomLevels.initial;
|
|
228
228
|
if (!t) return;
|
|
229
229
|
let n = Math.round(this.width * t) || this.pswp.viewportSize.x, r = Math.round(this.height * t) || this.pswp.viewportSize.y;
|
|
230
|
-
|
|
230
|
+
(this.sizeChanged(n, r) || e) && this.content.setDisplayedSize(n, r);
|
|
231
231
|
}
|
|
232
232
|
sizeChanged(e, t) {
|
|
233
233
|
return e !== this.prevDisplayedWidth || t !== this.prevDisplayedHeight ? (this.prevDisplayedWidth = e, this.prevDisplayedHeight = t, !0) : !1;
|
|
@@ -422,11 +422,12 @@ var A = class {
|
|
|
422
422
|
if (!o.isZoomable() || a.mainScroll.isShifted()) return;
|
|
423
423
|
k(this._startZoomPoint, t, i), k(this._zoomPoint, e, n);
|
|
424
424
|
let l = 1 / r(t, i) * r(e, n) * this._startZoomLevel;
|
|
425
|
-
if (l > o.zoomLevels.initial + o.zoomLevels.initial / 15 && (this._wasOverFitZoomLevel = !0), l < s)
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
425
|
+
if (l > o.zoomLevels.initial + o.zoomLevels.initial / 15 && (this._wasOverFitZoomLevel = !0), l < s) {
|
|
426
|
+
if (a.options.pinchToClose && !this._wasOverFitZoomLevel && this._startZoomLevel <= o.zoomLevels.initial) {
|
|
427
|
+
let e = 1 - (s - l) / (s / 1.2);
|
|
428
|
+
a.dispatch("pinchClose", { bgOpacity: e }).defaultPrevented || a.applyBgOpacity(e);
|
|
429
|
+
} else l = s - (s - l) * O;
|
|
430
|
+
} else l > c && (l = c + (l - c) * D);
|
|
430
431
|
o.pan.x = this._calculatePanForZoomLevel("x", l), o.pan.y = this._calculatePanForZoomLevel("y", l), o.setZoomLevel(l), o.applyCurrentZoomPan();
|
|
431
432
|
}
|
|
432
433
|
end() {
|
|
@@ -892,17 +893,19 @@ var M = class {
|
|
|
892
893
|
_onWheel(e) {
|
|
893
894
|
e.preventDefault();
|
|
894
895
|
let { currSlide: t } = this.pswp, { deltaX: n, deltaY: r } = e;
|
|
895
|
-
if (t && !this.pswp.dispatch("wheel", { originalEvent: e }).defaultPrevented)
|
|
896
|
-
if (
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
896
|
+
if (t && !this.pswp.dispatch("wheel", { originalEvent: e }).defaultPrevented) {
|
|
897
|
+
if (e.ctrlKey || this.pswp.options.wheelToZoom) {
|
|
898
|
+
if (t.isZoomable()) {
|
|
899
|
+
let n = -r;
|
|
900
|
+
e.deltaMode === 1 ? n *= .05 : n *= e.deltaMode ? 1 : .002, n = 2 ** n;
|
|
901
|
+
let i = t.currZoomLevel * n;
|
|
902
|
+
t.zoomTo(i, {
|
|
903
|
+
x: e.clientX,
|
|
904
|
+
y: e.clientY
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
} else t.isPannable() && (e.deltaMode === 1 && (n *= 18, r *= 18), t.panTo(t.pan.x - n, t.pan.y - r));
|
|
908
|
+
}
|
|
906
909
|
}
|
|
907
910
|
};
|
|
908
911
|
function oe(e) {
|
|
@@ -1175,17 +1178,19 @@ var ve = class {
|
|
|
1175
1178
|
}, 1e3);
|
|
1176
1179
|
}
|
|
1177
1180
|
load(t, n) {
|
|
1178
|
-
if (this.slide && this.usePlaceholder())
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1181
|
+
if (this.slide && this.usePlaceholder()) {
|
|
1182
|
+
if (this.placeholder) {
|
|
1183
|
+
let e = this.placeholder.element;
|
|
1184
|
+
e && !e.parentElement && this.slide.container.prepend(e);
|
|
1185
|
+
} else {
|
|
1186
|
+
let e = this.instance.applyFilters("placeholderSrc", this.data.msrc && this.slide.isFirstSlide ? this.data.msrc : !1, this);
|
|
1187
|
+
this.placeholder = new be(e, this.slide.container);
|
|
1188
|
+
}
|
|
1184
1189
|
}
|
|
1185
|
-
this.element
|
|
1190
|
+
(!this.element || n) && (this.instance.dispatch("contentLoad", {
|
|
1186
1191
|
content: this,
|
|
1187
1192
|
isLazy: t
|
|
1188
|
-
}).defaultPrevented || (this.isImageContent() ? (this.element = e("pswp__img", "img"), this.displayedImageWidth && this.loadImage(t)) : (this.element = e("pswp__content", "div"), this.element.innerHTML = this.data.html || ""), n && this.slide && this.slide.updateContentSize(!0));
|
|
1193
|
+
}).defaultPrevented || (this.isImageContent() ? (this.element = e("pswp__img", "img"), this.displayedImageWidth && this.loadImage(t)) : (this.element = e("pswp__content", "div"), this.element.innerHTML = this.data.html || ""), n && this.slide && this.slide.updateContentSize(!0)));
|
|
1189
1194
|
}
|
|
1190
1195
|
loadImage(e) {
|
|
1191
1196
|
if (!this.isImageContent() || !this.element || this.instance.dispatch("contentLoadImage", {
|
|
@@ -1281,7 +1286,7 @@ var ve = class {
|
|
|
1281
1286
|
})) : this.appendImage() : this.slide && !this.element.parentNode && this.slide.container.appendChild(this.element);
|
|
1282
1287
|
}
|
|
1283
1288
|
activate() {
|
|
1284
|
-
this.instance.dispatch("contentActivate", { content: this }).defaultPrevented
|
|
1289
|
+
!this.instance.dispatch("contentActivate", { content: this }).defaultPrevented && this.slide && (this.isImageContent() && this.isDecoding && !h() ? this.appendImage() : this.isError() && this.load(!1, !0), this.slide.holderElement && this.slide.holderElement.setAttribute("aria-hidden", "false"));
|
|
1285
1290
|
}
|
|
1286
1291
|
deactivate() {
|
|
1287
1292
|
this.instance.dispatch("contentDeactivate", { content: this }), this.slide && this.slide.holderElement && this.slide.holderElement.setAttribute("aria-hidden", "true");
|
|
@@ -1318,8 +1323,8 @@ var we = class {
|
|
|
1318
1323
|
updateLazy(e) {
|
|
1319
1324
|
let { pswp: t } = this;
|
|
1320
1325
|
if (t.dispatch("lazyLoad").defaultPrevented) return;
|
|
1321
|
-
let { preload: n } = t.options, r = e === void 0 || e >= 0, i;
|
|
1322
|
-
for (
|
|
1326
|
+
let { preload: n } = t.options, r = e === void 0 || e >= 0, i = 0;
|
|
1327
|
+
for (; i <= n[1]; i++) this.loadSlideByIndex(t.currIndex + (r ? i : -i));
|
|
1323
1328
|
for (i = 1; i <= n[0]; i++) this.loadSlideByIndex(t.currIndex + (r ? -i : i));
|
|
1324
1329
|
}
|
|
1325
1330
|
loadSlideByIndex(e) {
|
|
@@ -1548,7 +1553,7 @@ var we = class {
|
|
|
1548
1553
|
(e = this.currSlide) == null || e.toggleZoom();
|
|
1549
1554
|
}
|
|
1550
1555
|
close() {
|
|
1551
|
-
|
|
1556
|
+
this.opener.isOpen && !this.isDestroying && (this.isDestroying = !0, this.dispatch("close"), this.events.removeAll(), this.opener.close());
|
|
1552
1557
|
}
|
|
1553
1558
|
destroy() {
|
|
1554
1559
|
var e;
|
|
@@ -1586,7 +1591,7 @@ var we = class {
|
|
|
1586
1591
|
updateSize(e) {
|
|
1587
1592
|
if (this.isDestroying) return;
|
|
1588
1593
|
let n = v(this.options, this);
|
|
1589
|
-
|
|
1594
|
+
(e || !i(n, this._prevViewportSize)) && (t(this._prevViewportSize, n), this.dispatch("beforeResize"), t(this.viewportSize, this._prevViewportSize), this._updatePageScrollOffset(), this.dispatch("viewportSize"), this.mainScroll.resize(this.opener.isOpen), !this.hasMouse && window.matchMedia("(any-hover: hover)").matches && this.mouseDetected(), this.dispatch("resize"));
|
|
1590
1595
|
}
|
|
1591
1596
|
applyBgOpacity(e) {
|
|
1592
1597
|
this.bgOpacity = Math.max(e, 0), this.bg && (this.bg.style.opacity = String(this.bgOpacity * this.options.bgOpacity));
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { $ as e, E as t, Q as n, T as r, Z as i, at as a, ct as o, et as s, f as c, k as l, lt as u, nt as d, q as f, rt as p, tt as m, ut as h } from "./vue.runtime.esm-bundler-XxHGOLq2.js";
|
|
3
|
+
//#region node_modules/.pnpm/pinia@4.0.3_@vue+devtools-api@8.2.1_typescript@6.0.3_vue@3.5.43_typescript@6.0.3_/node_modules/pinia/dist/pinia.js
|
|
4
|
+
var g = typeof window < "u", _, v = (e) => _ = e, y = () => r() && t(b) || _, b = Symbol();
|
|
5
|
+
function x(e) {
|
|
6
|
+
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
7
|
+
}
|
|
8
|
+
var S = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function", e;
|
|
10
|
+
}({}), C = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
11
|
+
function w(e, { autoBom: t = !1 } = {}) {
|
|
12
|
+
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["", e], { type: e.type }) : e;
|
|
13
|
+
}
|
|
14
|
+
function T(e, t, n) {
|
|
15
|
+
let r = new XMLHttpRequest();
|
|
16
|
+
r.open("GET", e), r.responseType = "blob", r.onload = function() {
|
|
17
|
+
A(r.response, t, n);
|
|
18
|
+
}, r.onerror = function() {
|
|
19
|
+
console.error("could not download file");
|
|
20
|
+
}, r.send();
|
|
21
|
+
}
|
|
22
|
+
function E(e) {
|
|
23
|
+
let t = new XMLHttpRequest();
|
|
24
|
+
t.open("HEAD", e, !1);
|
|
25
|
+
try {
|
|
26
|
+
t.send();
|
|
27
|
+
} catch {}
|
|
28
|
+
return t.status >= 200 && t.status <= 299;
|
|
29
|
+
}
|
|
30
|
+
function D(e) {
|
|
31
|
+
try {
|
|
32
|
+
e.dispatchEvent(new MouseEvent("click"));
|
|
33
|
+
} catch {
|
|
34
|
+
let t = new MouseEvent("click", {
|
|
35
|
+
bubbles: !0,
|
|
36
|
+
cancelable: !0,
|
|
37
|
+
view: window,
|
|
38
|
+
detail: 0,
|
|
39
|
+
screenX: 80,
|
|
40
|
+
screenY: 20,
|
|
41
|
+
clientX: 80,
|
|
42
|
+
clientY: 20,
|
|
43
|
+
ctrlKey: !1,
|
|
44
|
+
altKey: !1,
|
|
45
|
+
shiftKey: !1,
|
|
46
|
+
metaKey: !1,
|
|
47
|
+
button: 0,
|
|
48
|
+
relatedTarget: null
|
|
49
|
+
});
|
|
50
|
+
e.dispatchEvent(t);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
var O = typeof navigator == "object" ? navigator : { userAgent: "" }, k = /Macintosh/.test(O.userAgent) && /AppleWebKit/.test(O.userAgent) && !/Safari/.test(O.userAgent), A = g ? typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !k ? j : "msSaveOrOpenBlob" in O ? M : N : () => {};
|
|
54
|
+
function j(e, t = "download", n) {
|
|
55
|
+
let r = document.createElement("a");
|
|
56
|
+
r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin === location.origin ? D(r) : E(r.href) ? T(e, t, n) : (r.target = "_blank", D(r))) : (r.href = URL.createObjectURL(e), setTimeout(function() {
|
|
57
|
+
URL.revokeObjectURL(r.href);
|
|
58
|
+
}, 4e4), setTimeout(function() {
|
|
59
|
+
D(r);
|
|
60
|
+
}, 0));
|
|
61
|
+
}
|
|
62
|
+
function M(e, t = "download", n) {
|
|
63
|
+
if (typeof e == "string") {
|
|
64
|
+
if (E(e)) T(e, t, n);
|
|
65
|
+
else {
|
|
66
|
+
let t = document.createElement("a");
|
|
67
|
+
t.href = e, t.target = "_blank", setTimeout(function() {
|
|
68
|
+
D(t);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
} else navigator.msSaveOrOpenBlob(w(e, n), t);
|
|
72
|
+
}
|
|
73
|
+
function N(e, t, n, r) {
|
|
74
|
+
if (r ||= open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof e == "string") return T(e, t, n);
|
|
75
|
+
let i = e.type === "application/octet-stream", a = /constructor/i.test(String(C.HTMLElement)) || "safari" in C, o = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
76
|
+
if ((o || i && a || k) && typeof FileReader < "u") {
|
|
77
|
+
let t = new FileReader();
|
|
78
|
+
t.onloadend = function() {
|
|
79
|
+
let e = t.result;
|
|
80
|
+
if (typeof e != "string") throw r = null, Error("Wrong reader.result type");
|
|
81
|
+
e = o ? e : e.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = e : location.assign(e), r = null;
|
|
82
|
+
}, t.readAsDataURL(e);
|
|
83
|
+
} else {
|
|
84
|
+
let t = URL.createObjectURL(e);
|
|
85
|
+
r ? r.location.assign(t) : location.href = t, r = null, setTimeout(function() {
|
|
86
|
+
URL.revokeObjectURL(t);
|
|
87
|
+
}, 4e4);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
var { assign: ee } = Object;
|
|
91
|
+
function P() {
|
|
92
|
+
let e = i(!0), t = e.run(() => a({})), n = [], r = [], o = m({
|
|
93
|
+
install(e) {
|
|
94
|
+
v(o), o._a = e, e.provide(b, o), e.config.globalProperties.$pinia = o, r.forEach((e) => n.push(e)), r = [];
|
|
95
|
+
},
|
|
96
|
+
use(e) {
|
|
97
|
+
return this._a ? n.push(e) : r.push(e), this;
|
|
98
|
+
},
|
|
99
|
+
_p: n,
|
|
100
|
+
_a: null,
|
|
101
|
+
_e: e,
|
|
102
|
+
_s: /* @__PURE__ */ new Map(),
|
|
103
|
+
state: t
|
|
104
|
+
});
|
|
105
|
+
return o;
|
|
106
|
+
}
|
|
107
|
+
function F(e) {
|
|
108
|
+
e._e.stop(), e._s.clear(), e._p.splice(0), e.state.value = {}, e._a = null;
|
|
109
|
+
}
|
|
110
|
+
function I(e, t) {
|
|
111
|
+
return () => {};
|
|
112
|
+
}
|
|
113
|
+
var L = () => {};
|
|
114
|
+
function R(e, t, r, i = L) {
|
|
115
|
+
e.add(t);
|
|
116
|
+
let a = () => {
|
|
117
|
+
e.delete(t) && i();
|
|
118
|
+
};
|
|
119
|
+
return !r && n() && d(a), a;
|
|
120
|
+
}
|
|
121
|
+
function z(e, ...t) {
|
|
122
|
+
e.forEach((e) => {
|
|
123
|
+
e(...t);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
var B = (e) => e(), V = Symbol(), H = Symbol();
|
|
127
|
+
function U(t, n) {
|
|
128
|
+
t instanceof Map && n instanceof Map ? n.forEach((e, n) => t.set(n, e)) : t instanceof Set && n instanceof Set && n.forEach(t.add, t);
|
|
129
|
+
for (let r in n) {
|
|
130
|
+
if (!Object.hasOwn(n, r)) continue;
|
|
131
|
+
let i = n[r], a = t[r];
|
|
132
|
+
t[r] = x(a) && x(i) && Object.hasOwn(t, r) && !s(i) && !e(i) ? U(a, i) : i;
|
|
133
|
+
}
|
|
134
|
+
return t;
|
|
135
|
+
}
|
|
136
|
+
var W = Symbol();
|
|
137
|
+
function G(e) {
|
|
138
|
+
return Object.defineProperty(e, W, {});
|
|
139
|
+
}
|
|
140
|
+
function K(e) {
|
|
141
|
+
return !e || typeof e != "object" || !Object.hasOwn(e, W);
|
|
142
|
+
}
|
|
143
|
+
var { assign: q } = Object;
|
|
144
|
+
function J(e) {
|
|
145
|
+
return !!(s(e) && e.effect);
|
|
146
|
+
}
|
|
147
|
+
function Y(e, t, n, r) {
|
|
148
|
+
let { state: i, actions: a, getters: o } = t, s = n.state.value[e], l;
|
|
149
|
+
function u() {
|
|
150
|
+
return s ||
|
|
151
|
+
/* istanbul ignore if */
|
|
152
|
+
(n.state.value[e] = i ? i() : {}), q(h(n.state.value[e]), a, Object.keys(o || {}).reduce((t, r) => (t[r] = m(c(() => {
|
|
153
|
+
v(n);
|
|
154
|
+
let t = n._s.get(e);
|
|
155
|
+
return o[r].call(t, t);
|
|
156
|
+
})), t), {}));
|
|
157
|
+
}
|
|
158
|
+
return l = X(e, u, t, n, r, !0), l;
|
|
159
|
+
}
|
|
160
|
+
function X(t, n, r = {}, a, c, u) {
|
|
161
|
+
let d, m = q({ actions: {} }, r), h = { deep: !0 }, g, _, y = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), x, S = a.state.value[t];
|
|
162
|
+
!u && !S &&
|
|
163
|
+
/* istanbul ignore if */
|
|
164
|
+
(a.state.value[t] = {});
|
|
165
|
+
let C;
|
|
166
|
+
function w(e) {
|
|
167
|
+
let n;
|
|
168
|
+
g = _ = !1, typeof e == "function" ? (e(a.state.value[t]), n = {
|
|
169
|
+
type: "patch function",
|
|
170
|
+
storeId: t,
|
|
171
|
+
events: x
|
|
172
|
+
}) : (U(a.state.value[t], e), n = {
|
|
173
|
+
type: "patch object",
|
|
174
|
+
payload: e,
|
|
175
|
+
storeId: t,
|
|
176
|
+
events: x
|
|
177
|
+
});
|
|
178
|
+
let r = C = Symbol();
|
|
179
|
+
l().then(() => {
|
|
180
|
+
C === r && (g = !0);
|
|
181
|
+
}), _ = !0, z(y, n, a.state.value[t]);
|
|
182
|
+
}
|
|
183
|
+
let T = u ? function() {
|
|
184
|
+
let { state: e } = r, t = e ? e() : {};
|
|
185
|
+
this.$patch((e) => {
|
|
186
|
+
q(e, t);
|
|
187
|
+
});
|
|
188
|
+
} : L;
|
|
189
|
+
function E() {
|
|
190
|
+
d.stop(), y.clear(), b.clear(), a._s.delete(t);
|
|
191
|
+
}
|
|
192
|
+
let D = (e, n = "") => {
|
|
193
|
+
if (V in e) return e[H] = n, e;
|
|
194
|
+
let r = function() {
|
|
195
|
+
v(a);
|
|
196
|
+
let n = Array.from(arguments), i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
|
|
197
|
+
function s(e) {
|
|
198
|
+
i.add(e);
|
|
199
|
+
}
|
|
200
|
+
function c(e) {
|
|
201
|
+
o.add(e);
|
|
202
|
+
}
|
|
203
|
+
z(b, {
|
|
204
|
+
args: n,
|
|
205
|
+
name: r[H],
|
|
206
|
+
store: k,
|
|
207
|
+
after: s,
|
|
208
|
+
onError: c
|
|
209
|
+
});
|
|
210
|
+
let l;
|
|
211
|
+
try {
|
|
212
|
+
l = e.apply(this && this.$id === t ? this : k, n);
|
|
213
|
+
} catch (e) {
|
|
214
|
+
throw z(o, e), e;
|
|
215
|
+
}
|
|
216
|
+
return l instanceof Promise ? l.then((e) => (z(i, e), e)).catch((e) => (z(o, e), Promise.reject(e))) : (z(i, l), l);
|
|
217
|
+
};
|
|
218
|
+
return r[V] = !0, r[H] = n, r;
|
|
219
|
+
}, O = {
|
|
220
|
+
_p: a,
|
|
221
|
+
$id: t,
|
|
222
|
+
$onAction: R.bind(null, b),
|
|
223
|
+
$patch: w,
|
|
224
|
+
$reset: T,
|
|
225
|
+
$subscribe(e, n = {}) {
|
|
226
|
+
if (y.has(e)) return L;
|
|
227
|
+
let r = R(y, e, n.detached, () => i()), i = d.run(() => f(() => a.state.value[t], (r) => {
|
|
228
|
+
(n.flush === "sync" ? _ : g) && e({
|
|
229
|
+
storeId: t,
|
|
230
|
+
type: "direct",
|
|
231
|
+
events: x
|
|
232
|
+
}, r);
|
|
233
|
+
}, q({}, h, n)));
|
|
234
|
+
return r;
|
|
235
|
+
},
|
|
236
|
+
$dispose: E
|
|
237
|
+
}, k = p(O);
|
|
238
|
+
a._s.set(t, k);
|
|
239
|
+
let A = (a._a && a._a.runWithContext || B)(() => a._e.run(() => (d = i()).run(() => n({ action: D }))));
|
|
240
|
+
for (let n in A) {
|
|
241
|
+
let r = A[n];
|
|
242
|
+
s(r) && !J(r) || e(r) ? u || (S && K(r) && (s(r) ? r.value = S[n] : ((r instanceof Set || r instanceof Map) && r.clear(), U(r, S[n]))), a.state.value[t][n] = r) : typeof r == "function" && (A[n] = D(r, n), m.actions[n] = r);
|
|
243
|
+
}
|
|
244
|
+
return q(k, A), q(o(k), A), Object.defineProperty(k, "$state", {
|
|
245
|
+
get: () => a.state.value[t],
|
|
246
|
+
set: (e) => {
|
|
247
|
+
w((t) => {
|
|
248
|
+
q(t, e);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}), a._p.forEach((e) => {
|
|
252
|
+
let t = d.run(() => e({
|
|
253
|
+
store: k,
|
|
254
|
+
app: a._a,
|
|
255
|
+
pinia: a,
|
|
256
|
+
options: m
|
|
257
|
+
}));
|
|
258
|
+
q(k, t);
|
|
259
|
+
}), S && u && r.hydrate && r.hydrate(k.$state, S), g = !0, _ = !0, k;
|
|
260
|
+
}
|
|
261
|
+
function Z(e, n, i) {
|
|
262
|
+
let a, o = typeof n == "function";
|
|
263
|
+
a = o ? i : n;
|
|
264
|
+
function s(i, s) {
|
|
265
|
+
let c = r();
|
|
266
|
+
return i ||= c ? t(b, null) : null, i && v(i), i = _, i._s.has(e) || (o ? X(e, n, a, i) : Y(e, a, i)), i._s.get(e);
|
|
267
|
+
}
|
|
268
|
+
return s.$id = e, s;
|
|
269
|
+
}
|
|
270
|
+
var Q = "Store";
|
|
271
|
+
function te(e) {
|
|
272
|
+
Q = e;
|
|
273
|
+
}
|
|
274
|
+
function ne(...e) {
|
|
275
|
+
return e.reduce((e, t) => (e[t.$id + Q] = function() {
|
|
276
|
+
return t(this.$pinia);
|
|
277
|
+
}, e), {});
|
|
278
|
+
}
|
|
279
|
+
function $(e, t) {
|
|
280
|
+
return Array.isArray(t) ? t.reduce((t, n) => (t[n] = function() {
|
|
281
|
+
return e(this.$pinia)[n];
|
|
282
|
+
}, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = function() {
|
|
283
|
+
let n = e(this.$pinia), i = t[r];
|
|
284
|
+
return typeof i == "function" ? i.call(this, n) : n[i];
|
|
285
|
+
}, n), {});
|
|
286
|
+
}
|
|
287
|
+
var re = $;
|
|
288
|
+
function ie(e, t) {
|
|
289
|
+
return Array.isArray(t) ? t.reduce((t, n) => (t[n] = function(...t) {
|
|
290
|
+
return e(this.$pinia)[n](...t);
|
|
291
|
+
}, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = function(...n) {
|
|
292
|
+
return e(this.$pinia)[t[r]](...n);
|
|
293
|
+
}, n), {});
|
|
294
|
+
}
|
|
295
|
+
function ae(e, t) {
|
|
296
|
+
return Array.isArray(t) ? t.reduce((t, n) => (t[n] = {
|
|
297
|
+
get() {
|
|
298
|
+
return e(this.$pinia)[n];
|
|
299
|
+
},
|
|
300
|
+
set(t) {
|
|
301
|
+
return e(this.$pinia)[n] = t;
|
|
302
|
+
}
|
|
303
|
+
}, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = {
|
|
304
|
+
get() {
|
|
305
|
+
return e(this.$pinia)[t[r]];
|
|
306
|
+
},
|
|
307
|
+
set(n) {
|
|
308
|
+
return e(this.$pinia)[t[r]] = n;
|
|
309
|
+
}
|
|
310
|
+
}, n), {});
|
|
311
|
+
}
|
|
312
|
+
function oe(t) {
|
|
313
|
+
let n = o(t), r = {};
|
|
314
|
+
for (let i in n) {
|
|
315
|
+
let a = n[i];
|
|
316
|
+
a?.effect ? r[i] = c({
|
|
317
|
+
get: () => t[i],
|
|
318
|
+
set(e) {
|
|
319
|
+
t[i] = e;
|
|
320
|
+
}
|
|
321
|
+
}) : (s(a) || e(a)) && (r[i] = u(t, i));
|
|
322
|
+
}
|
|
323
|
+
return r;
|
|
324
|
+
}
|
|
325
|
+
//#endregion
|
|
326
|
+
export { S as MutationType, I as acceptHMRUpdate, P as createPinia, Z as defineStore, F as disposePinia, y as getActivePinia, ie as mapActions, re as mapGetters, $ as mapState, ne as mapStores, ae as mapWritableState, b as piniaSymbol, v as setActivePinia, te as setMapStoreSuffix, K as shouldHydrate, G as skipHydrate, oe as storeToRefs };
|