@deot/docs-client 1.1.9 → 1.2.0
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 +6 -4
- package/dist/{chunks/chunk-rhk8Qtmk-CUgXtmq_.js → bundle/chunk-rhk8Qtmk-CbLEbM7n.js} +0 -1
- package/dist/{chunks/compile-BHlM2G35-gLGYT56A.js → bundle/compile-D33div4Y-CVbeyITp.js} +21848 -21852
- package/dist/{chunks/compiler-sfc.esm-browser-5dA1IWMJ.js → bundle/compiler-sfc.esm-browser-DmhYZRPB.js} +1374 -1378
- package/dist/bundle/css-sV_dM9Hl-BpgypWsW.js +18927 -0
- package/dist/{chunks/echarts-BBzcOaek.js → bundle/echarts-BWkcVFuU.js} +1 -2
- package/dist/bundle/index.js +103578 -0
- package/dist/{eval → bundle}/index.style.css +1 -1
- package/dist/{chunks/jsx-CwMPlI4_-CBhlIHLh.js → bundle/jsx-CwMPlI4_-D02C9U5w.js} +9057 -9061
- package/dist/{chunks/photoswipe.esm-D52MAtDT.js → bundle/photoswipe.esm-CvVKUjTj.js} +114 -116
- package/dist/{chunks/rolldown-runtime-Ce3zPWPd.js → bundle/rolldown-runtime-DArdT4gl.js} +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +6839 -103273
- package/dist/index.style.css +1 -1
- package/package.json +10 -9
- package/dist/chunks/browser-Cmwcvs-d.js +0 -505
- package/dist/chunks/css-C25yWQa_-B6uwKgDA.js +0 -15160
- package/dist/chunks/dayjs.min-B3g34Qcz.js +0 -300
- package/dist/chunks/dist-0ySyXNpo.js +0 -415
- package/dist/chunks/dist-B44jICwZ.js +0 -22
- package/dist/chunks/dist-BUw25nXJ.js +0 -65
- package/dist/chunks/dist-BeOE8qTX.js +0 -345
- package/dist/chunks/dist-C3V7reR4.js +0 -197
- package/dist/chunks/dist-CI9Lp9Cj.js +0 -247
- package/dist/chunks/dist-CQir6D4y.js +0 -244
- package/dist/chunks/dist-Cxf7_ocf.js +0 -44
- package/dist/chunks/dist-DF4kisl2.js +0 -43
- package/dist/chunks/dist-DHJhaOSs.js +0 -426
- package/dist/chunks/dist-DLj8yJdm.js +0 -38
- package/dist/chunks/dist-DSypl37f.js +0 -58
- package/dist/chunks/dist-DWn6r6un.js +0 -76
- package/dist/chunks/dist-DWqBe2Ah.js +0 -132
- package/dist/chunks/dist-D_Uqh6m9.js +0 -80
- package/dist/chunks/dist-DcIU51zW.js +0 -166
- package/dist/chunks/dist-Wm6vE6kM.js +0 -17
- package/dist/chunks/dist-kiZUqqzR.js +0 -27
- package/dist/chunks/dist-oZ12SGqg.js +0 -6
- package/dist/chunks/dist-va7FmnW4.js +0 -156
- package/dist/chunks/html2canvas-DoKTvaOT.js +0 -4012
- package/dist/chunks/index.es-wVPQxEPP.js +0 -5752
- package/dist/chunks/jspdf.es.min-Zm27YeAg.js +0 -17900
- package/dist/chunks/jszip.min-Da8UgalE.js +0 -3044
- package/dist/chunks/lodash-CYyW02I7.js +0 -5157
- package/dist/chunks/purify.es-DhHsvqCe.js +0 -845
- package/dist/chunks/vue-router-LT2FR3OX.js +0 -1208
- package/dist/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4851
- package/dist/eval/chunks/browser-Cmwcvs-d.js +0 -4
- package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +0 -4
- package/dist/eval/chunks/compile-BHlM2G35-gLGYT56A.js +0 -7
- package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +0 -4
- package/dist/eval/chunks/css-C25yWQa_-B6uwKgDA.js +0 -8
- package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +0 -4
- package/dist/eval/chunks/dist-0ySyXNpo.js +0 -4
- package/dist/eval/chunks/dist-B44jICwZ.js +0 -5
- package/dist/eval/chunks/dist-BUw25nXJ.js +0 -6
- package/dist/eval/chunks/dist-BeOE8qTX.js +0 -4
- package/dist/eval/chunks/dist-C3V7reR4.js +0 -4
- package/dist/eval/chunks/dist-CI9Lp9Cj.js +0 -4
- package/dist/eval/chunks/dist-CQir6D4y.js +0 -5
- package/dist/eval/chunks/dist-Cxf7_ocf.js +0 -4
- package/dist/eval/chunks/dist-DF4kisl2.js +0 -5
- package/dist/eval/chunks/dist-DHJhaOSs.js +0 -5
- package/dist/eval/chunks/dist-DLj8yJdm.js +0 -4
- package/dist/eval/chunks/dist-DSypl37f.js +0 -5
- package/dist/eval/chunks/dist-DWn6r6un.js +0 -4
- package/dist/eval/chunks/dist-DWqBe2Ah.js +0 -6
- package/dist/eval/chunks/dist-D_Uqh6m9.js +0 -4
- package/dist/eval/chunks/dist-DcIU51zW.js +0 -4
- package/dist/eval/chunks/dist-Wm6vE6kM.js +0 -1
- package/dist/eval/chunks/dist-kiZUqqzR.js +0 -4
- package/dist/eval/chunks/dist-oZ12SGqg.js +0 -4
- package/dist/eval/chunks/dist-va7FmnW4.js +0 -4
- package/dist/eval/chunks/echarts-BBzcOaek.js +0 -4
- package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +0 -1
- package/dist/eval/chunks/html2canvas-DoKTvaOT.js +0 -4
- package/dist/eval/chunks/index.es-wVPQxEPP.js +0 -5
- package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +0 -78
- package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +0 -4
- package/dist/eval/chunks/jszip.min-Da8UgalE.js +0 -4
- package/dist/eval/chunks/lodash-CYyW02I7.js +0 -4
- package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +0 -4
- package/dist/eval/chunks/purify.es-DhHsvqCe.js +0 -4
- package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +0 -4
- package/dist/eval/chunks/vue-router-LT2FR3OX.js +0 -5
- package/dist/eval/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4
- package/dist/eval/index.js +0 -24
- package/dist/index.cjs +0 -23
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
globalThis.process;
|
|
2
|
-
import { i as e, n as t, t as n } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
-
//#region node_modules/.pnpm/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js
|
|
4
|
-
var r = /* @__PURE__ */ n(((e, t) => {
|
|
5
|
-
var n = !1, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _;
|
|
6
|
-
function v() {
|
|
7
|
-
if (!n) {
|
|
8
|
-
n = !0;
|
|
9
|
-
var e = navigator.userAgent, t = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e), v = /(Mac OS X)|(Windows)|(Linux)/.exec(e);
|
|
10
|
-
if (m = /\b(iPhone|iP[ao]d)/.exec(e), h = /\b(iP[ao]d)/.exec(e), f = /Android/i.exec(e), g = /FBAN\/\w+;/i.exec(e), _ = /Mobile/i.exec(e), p = !!/Win64/.exec(e), t) {
|
|
11
|
-
r = t[1] ? parseFloat(t[1]) : t[5] ? parseFloat(t[5]) : NaN, r && document && document.documentMode && (r = document.documentMode);
|
|
12
|
-
var y = /(?:Trident\/(\d+.\d+))/.exec(e);
|
|
13
|
-
c = y ? parseFloat(y[1]) + 4 : r, i = t[2] ? parseFloat(t[2]) : NaN, a = t[3] ? parseFloat(t[3]) : NaN, o = t[4] ? parseFloat(t[4]) : NaN, o ? (t = /(?:Chrome\/(\d+\.\d+))/.exec(e), s = t && t[1] ? parseFloat(t[1]) : NaN) : s = NaN;
|
|
14
|
-
} else r = i = a = s = o = NaN;
|
|
15
|
-
if (v) {
|
|
16
|
-
if (v[1]) {
|
|
17
|
-
var b = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);
|
|
18
|
-
l = !b || parseFloat(b[1].replace("_", "."));
|
|
19
|
-
} else l = !1;
|
|
20
|
-
u = !!v[2], d = !!v[3];
|
|
21
|
-
} else l = u = d = !1;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
var y = {
|
|
25
|
-
ie: function() {
|
|
26
|
-
return v() || r;
|
|
27
|
-
},
|
|
28
|
-
ieCompatibilityMode: function() {
|
|
29
|
-
return v() || c > r;
|
|
30
|
-
},
|
|
31
|
-
ie64: function() {
|
|
32
|
-
return y.ie() && p;
|
|
33
|
-
},
|
|
34
|
-
firefox: function() {
|
|
35
|
-
return v() || i;
|
|
36
|
-
},
|
|
37
|
-
opera: function() {
|
|
38
|
-
return v() || a;
|
|
39
|
-
},
|
|
40
|
-
webkit: function() {
|
|
41
|
-
return v() || o;
|
|
42
|
-
},
|
|
43
|
-
safari: function() {
|
|
44
|
-
return y.webkit();
|
|
45
|
-
},
|
|
46
|
-
chrome: function() {
|
|
47
|
-
return v() || s;
|
|
48
|
-
},
|
|
49
|
-
windows: function() {
|
|
50
|
-
return v() || u;
|
|
51
|
-
},
|
|
52
|
-
osx: function() {
|
|
53
|
-
return v() || l;
|
|
54
|
-
},
|
|
55
|
-
linux: function() {
|
|
56
|
-
return v() || d;
|
|
57
|
-
},
|
|
58
|
-
iphone: function() {
|
|
59
|
-
return v() || m;
|
|
60
|
-
},
|
|
61
|
-
mobile: function() {
|
|
62
|
-
return v() || m || h || f || _;
|
|
63
|
-
},
|
|
64
|
-
nativeApp: function() {
|
|
65
|
-
return v() || g;
|
|
66
|
-
},
|
|
67
|
-
android: function() {
|
|
68
|
-
return v() || f;
|
|
69
|
-
},
|
|
70
|
-
ipad: function() {
|
|
71
|
-
return v() || h;
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
t.exports = y;
|
|
75
|
-
})), i = /* @__PURE__ */ n(((e, t) => {
|
|
76
|
-
var n = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
77
|
-
t.exports = {
|
|
78
|
-
canUseDOM: n,
|
|
79
|
-
canUseWorkers: typeof Worker < "u",
|
|
80
|
-
canUseEventListeners: n && !!(window.addEventListener || window.attachEvent),
|
|
81
|
-
canUseViewport: n && !!window.screen,
|
|
82
|
-
isInWorker: !n
|
|
83
|
-
};
|
|
84
|
-
})), a = /* @__PURE__ */ n(((e, t) => {
|
|
85
|
-
var n = i(), r;
|
|
86
|
-
n.canUseDOM && (r = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0);
|
|
87
|
-
function a(e, t) {
|
|
88
|
-
if (!n.canUseDOM || t && !("addEventListener" in document)) return !1;
|
|
89
|
-
var i = "on" + e, a = i in document;
|
|
90
|
-
if (!a) {
|
|
91
|
-
var o = document.createElement("div");
|
|
92
|
-
o.setAttribute(i, "return;"), a = typeof o[i] == "function";
|
|
93
|
-
}
|
|
94
|
-
return !a && r && e === "wheel" && (a = document.implementation.hasFeature("Events.wheel", "3.0")), a;
|
|
95
|
-
}
|
|
96
|
-
t.exports = a;
|
|
97
|
-
})), o = /* @__PURE__ */ n(((e, t) => {
|
|
98
|
-
var n = r(), i = a(), o = 10, s = 40, c = 800;
|
|
99
|
-
function l(e) {
|
|
100
|
-
var t = 0, n = 0, r = 0, i = 0;
|
|
101
|
-
return "detail" in e && (n = e.detail), "wheelDelta" in e && (n = -e.wheelDelta / 120), "wheelDeltaY" in e && (n = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = n, n = 0), r = t * o, i = n * o, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (r = e.deltaX), (r || i) && e.deltaMode && (e.deltaMode == 1 ? (r *= s, i *= s) : (r *= c, i *= c)), r && !t && (t = r < 1 ? -1 : 1), i && !n && (n = i < 1 ? -1 : 1), {
|
|
102
|
-
spinX: t,
|
|
103
|
-
spinY: n,
|
|
104
|
-
pixelX: r,
|
|
105
|
-
pixelY: i
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
l.getEventType = function() {
|
|
109
|
-
return n.firefox() ? "DOMMouseScroll" : i("wheel") ? "wheel" : "mousewheel";
|
|
110
|
-
}, t.exports = l;
|
|
111
|
-
})), s = /* @__PURE__ */ n(((e, t) => {
|
|
112
|
-
t.exports = o();
|
|
113
|
-
})), c = /* @__PURE__ */ t({ Wheel: () => p }), l = /* @__PURE__ */ e(s(), 1), u = 30, d = /* @__PURE__ */ new Set();
|
|
114
|
-
if (typeof document < "u") {
|
|
115
|
-
let e = () => {
|
|
116
|
-
d.forEach((e) => {
|
|
117
|
-
e.timer && clearTimeout(e.timer), e.timer = setTimeout(() => {
|
|
118
|
-
e.clear(), d.delete(e);
|
|
119
|
-
}, u);
|
|
120
|
-
});
|
|
121
|
-
}, t = () => {
|
|
122
|
-
document.body.addEventListener("wheel", e, !0), document.body.addEventListener("mousedown", e, !0);
|
|
123
|
-
};
|
|
124
|
-
/* istanbul ignore else -- @preserve */
|
|
125
|
-
document.body ? t() : window.addEventListener("DOMContentLoaded", t);
|
|
126
|
-
}
|
|
127
|
-
var f = (e, t) => {
|
|
128
|
-
let n = t[0] - e[0], r = t[1] - e[1];
|
|
129
|
-
return Math.abs(360 * Math.atan(r / n) / (2 * Math.PI));
|
|
130
|
-
}, p = class e {
|
|
131
|
-
static of(t, n) {
|
|
132
|
-
return new e(t, n);
|
|
133
|
-
}
|
|
134
|
-
static shouldWheelX = (e, t) => e.offsetWidth === e.scrollWidth || (t = Math.round(t), t === 0) ? !1 : t < 0 && e.scrollLeft > 0 || t >= 0 && Math.ceil(e.scrollLeft) < e.scrollWidth - e.offsetWidth;
|
|
135
|
-
static shouldWheelY = (e, t) => e.offsetHeight === e.scrollHeight || (t = Math.round(t), t === 0) ? !1 : t < 0 && e.scrollTop > 0 || t >= 0 && Math.ceil(e.scrollTop) < e.scrollHeight - e.offsetHeight;
|
|
136
|
-
el;
|
|
137
|
-
needThresholdWait = !1;
|
|
138
|
-
animationFrameID = null;
|
|
139
|
-
deltaX = 0;
|
|
140
|
-
deltaY = 0;
|
|
141
|
-
isTouching = !1;
|
|
142
|
-
startTime = 0;
|
|
143
|
-
startX = 0;
|
|
144
|
-
startY = 0;
|
|
145
|
-
moveX = 0;
|
|
146
|
-
moveY = 0;
|
|
147
|
-
listeners = [];
|
|
148
|
-
timer = null;
|
|
149
|
-
options;
|
|
150
|
-
defaultOnWheel = null;
|
|
151
|
-
constructor(t, n) {
|
|
152
|
-
this.el = t, this.options = {
|
|
153
|
-
native: !0,
|
|
154
|
-
freedom: !1,
|
|
155
|
-
stopPropagation: () => !0,
|
|
156
|
-
shouldWheelX: (n) => e.shouldWheelX(t, n),
|
|
157
|
-
shouldWheelY: (n) => e.shouldWheelY(t, n),
|
|
158
|
-
...n
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
handleTouchStart = (e) => {
|
|
162
|
-
this.isTouching = !0;
|
|
163
|
-
let t = e.touches[0].screenX, n = e.touches[0].screenY;
|
|
164
|
-
this.startX = t, this.startY = n, this.moveX = t, this.moveY = n, this.startTime = Date.now();
|
|
165
|
-
};
|
|
166
|
-
handleTouchMove = (e) => {
|
|
167
|
-
if (!this.isTouching) return;
|
|
168
|
-
let t = e.touches[0].screenX, n = e.touches[0].screenY, r = this.moveX - t, i = this.moveY - n;
|
|
169
|
-
this.moveX = t, this.moveY = n, this.emitScroll(e, {
|
|
170
|
-
x: r,
|
|
171
|
-
y: i,
|
|
172
|
-
angle: f([this.startX, this.startY], [this.moveX, this.moveY])
|
|
173
|
-
});
|
|
174
|
-
};
|
|
175
|
-
handleTouchEnd = (e) => {
|
|
176
|
-
this.isTouching = !1;
|
|
177
|
-
let t = e.changedTouches[0].screenX, n = e.changedTouches[0].screenY, r = f([this.startX, this.startY], [t, n]), i = Date.now() - this.startTime;
|
|
178
|
-
if (i <= 500 && i > 50) {
|
|
179
|
-
let a = this.startX - t, o = this.startY - n, s = a / i, c = o / i;
|
|
180
|
-
for (let t = 0; t <= 300; t++) setTimeout(() => {
|
|
181
|
-
this.emitScroll(e, {
|
|
182
|
-
x: s,
|
|
183
|
-
y: c,
|
|
184
|
-
angle: r
|
|
185
|
-
});
|
|
186
|
-
}, t);
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
handleMouseMove = (e) => {
|
|
190
|
-
e.which === 2 && this.emitScroll(e, {
|
|
191
|
-
x: e.movementX,
|
|
192
|
-
y: e.movementY,
|
|
193
|
-
angle: f([0, 0], [e.movementX, e.movementY])
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
|
-
handleWheel = (e) => {
|
|
197
|
-
let { pixelX: t, pixelY: n } = (0, l.default)(e);
|
|
198
|
-
this.emitScroll(e, {
|
|
199
|
-
x: t,
|
|
200
|
-
y: n,
|
|
201
|
-
angle: f([this.deltaX, this.deltaY], [this.deltaX + t, this.deltaY + n])
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
clear = () => {
|
|
205
|
-
this.needThresholdWait = !1;
|
|
206
|
-
};
|
|
207
|
-
didWheel = () => {
|
|
208
|
-
this.listeners?.forEach((e) => e(this.deltaX, this.deltaY)), this.animationFrameID = null, this.deltaX = 0, this.deltaY = 0;
|
|
209
|
-
};
|
|
210
|
-
preventParentScroll(e, t, n) {
|
|
211
|
-
return !t && !n ? (this.options.native && this.needThresholdWait && (e.cancelable && e.preventDefault(), this.timer && clearTimeout(this.timer), this.timer = setTimeout(this.clear, u), d.add(this)), !0) : (e.cancelable && e.preventDefault(), this.options.native &&
|
|
212
|
-
/* istanbul ignore next -- @preserve */
|
|
213
|
-
(this.timer && clearTimeout(this.timer), this.needThresholdWait = !0), !1);
|
|
214
|
-
}
|
|
215
|
-
emitScroll(e, t) {
|
|
216
|
-
let { x: n, y: r, angle: i } = t, a = n, o = r;
|
|
217
|
-
this.options.freedom || (i < 30 && (o = 0), i > 60 && (a = 0));
|
|
218
|
-
let s = this.deltaX + a, c = this.deltaY + o, l = this.options.shouldWheelX(s, c), u = this.options.shouldWheelY(c, s);
|
|
219
|
-
this.preventParentScroll(e, l, u) || (this.deltaX += l ? a : 0, this.deltaY += u ? o : 0, (this.deltaX !== 0 || this.deltaY !== 0) &&
|
|
220
|
-
/* istanbul ignore next -- @preserve */
|
|
221
|
-
(this.options.stopPropagation(this.deltaX, this.deltaY) && e.stopPropagation(), this.animationFrameID === null && (this.animationFrameID = window.requestAnimationFrame(this.didWheel))));
|
|
222
|
-
}
|
|
223
|
-
operateDOMEvents(e) {
|
|
224
|
-
if (typeof window > "u") return;
|
|
225
|
-
let t = (e === "add" ? this.el.addEventListener : this.el.removeEventListener).bind(this.el);
|
|
226
|
-
t("wheel", this.handleWheel, !1), document.ontouchend || document.ontouchend === null ? (t("touchstart", this.handleTouchStart, !1), t("touchmove", this.handleTouchMove, { passive: !1 }), t("touchend", this.handleTouchEnd, !1)) : t("mousemove", this.handleMouseMove, !1);
|
|
227
|
-
}
|
|
228
|
-
on(e) {
|
|
229
|
-
return this.listeners.length || this.operateDOMEvents("add"), this.listeners.push(e), () => this.off(e);
|
|
230
|
-
}
|
|
231
|
-
off(e) {
|
|
232
|
-
if (e) {
|
|
233
|
-
let t = this.listeners.indexOf(e);
|
|
234
|
-
if (t === -1) return;
|
|
235
|
-
this.listeners.splice(t, 1);
|
|
236
|
-
} else this.listeners = [];
|
|
237
|
-
this.listeners.length || this.operateDOMEvents("remove");
|
|
238
|
-
}
|
|
239
|
-
enable() {
|
|
240
|
-
return this.defaultOnWheel && this.off(this.defaultOnWheel), this.defaultOnWheel = (e, t) => {
|
|
241
|
-
/* istanbul ignore next -- @preserve */
|
|
242
|
-
t && this.el.scrollHeight > this.el.offsetHeight && (this.el.scrollTop = Math.min(Math.max(0, this.el.scrollTop + t), this.el.scrollHeight - this.el.offsetHeight)), e && this.el.scrollWidth > this.el.offsetWidth && (this.el.scrollLeft = Math.min(Math.max(0, this.el.scrollLeft + e), this.el.scrollWidth - this.el.offsetWidth));
|
|
243
|
-
}, this.on(this.defaultOnWheel);
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
//#endregion
|
|
247
|
-
export { c as n, p as t };
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
globalThis.process;
|
|
2
|
-
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
-
import { a as t } from "./dist-C3V7reR4.js";
|
|
4
|
-
//#region node_modules/.pnpm/@deot+helper-cache@1.1.11/node_modules/@deot/helper-cache/dist/index.js
|
|
5
|
-
var n = /* @__PURE__ */ e({
|
|
6
|
-
Cookie: () => a,
|
|
7
|
-
IndexedDB: () => p,
|
|
8
|
-
IndexedDBStore: () => f,
|
|
9
|
-
Storage: () => u
|
|
10
|
-
}), r = class {
|
|
11
|
-
options;
|
|
12
|
-
constructor() {
|
|
13
|
-
this.options = {
|
|
14
|
-
version: "",
|
|
15
|
-
versions: [],
|
|
16
|
-
get: (e) => t(e),
|
|
17
|
-
set: (e) => e
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
configure(e) {
|
|
21
|
-
typeof window < "u" && (this.options = {
|
|
22
|
-
...this.options,
|
|
23
|
-
...e
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}, i = (() => {
|
|
27
|
-
try {
|
|
28
|
-
return document.cookie = "test", !0;
|
|
29
|
-
} catch {
|
|
30
|
-
return !1;
|
|
31
|
-
}
|
|
32
|
-
})(), a = new class extends r {
|
|
33
|
-
get(e) {
|
|
34
|
-
if (!i) return null;
|
|
35
|
-
let t = RegExp("(?:^|;+|\\s+)" + e + "=([^;]*)"), n = window.document.cookie.match(t), r = n ? decodeURIComponent(n[1]) : null;
|
|
36
|
-
return this.options.get(r);
|
|
37
|
-
}
|
|
38
|
-
set(e, t, n) {
|
|
39
|
-
if (!i) return;
|
|
40
|
-
let { days: r, path: a, domain: o } = n || {}, s = /* @__PURE__ */ new Date();
|
|
41
|
-
s.setTime(s.getTime() + (r ? 864e5 * r : 432e5)), t = this.options.set(typeof t == "string" ? t : JSON.stringify(t)), document.cookie = `${e}=${encodeURIComponent(t)};expires=${s.toString()};path=${a || "/"};${o ? `domain=${o};` : ""}`;
|
|
42
|
-
}
|
|
43
|
-
remove(e, t) {
|
|
44
|
-
if (!i) return;
|
|
45
|
-
let { path: n, domain: r } = t || {};
|
|
46
|
-
document.cookie = `${e}=;expires=${(/* @__PURE__ */ new Date(0)).toUTCString()};path=${n || "/"};${r ? `domain=${r};` : ""}`;
|
|
47
|
-
}
|
|
48
|
-
}(), o = class {
|
|
49
|
-
store = {};
|
|
50
|
-
getItem(e) {
|
|
51
|
-
return this.store[e] || null;
|
|
52
|
-
}
|
|
53
|
-
setItem(e, t) {
|
|
54
|
-
this.store[e] = t;
|
|
55
|
-
}
|
|
56
|
-
removeItem(e) {
|
|
57
|
-
delete this.store[e];
|
|
58
|
-
}
|
|
59
|
-
}, s = "@deot/helper/", c = (e, t) => {
|
|
60
|
-
let n = t.filter((e) => e !== void 0)[0];
|
|
61
|
-
return `${n ? `${s}${n}:` : ""}${e}`;
|
|
62
|
-
}, l = (() => {
|
|
63
|
-
let e = "test";
|
|
64
|
-
try {
|
|
65
|
-
return window.localStorage.setItem(e, e), window.localStorage.removeItem(e), !0;
|
|
66
|
-
} catch {
|
|
67
|
-
return !1;
|
|
68
|
-
}
|
|
69
|
-
})(), u = new class extends r {
|
|
70
|
-
sessionStorage = new o();
|
|
71
|
-
localStorage = new o();
|
|
72
|
-
getInvoke(e) {
|
|
73
|
-
return e?.session ? "sessionStorage" : "localStorage";
|
|
74
|
-
}
|
|
75
|
-
configure(e) {
|
|
76
|
-
if (super.configure(e), !l) return;
|
|
77
|
-
let { version: t, versions: n } = this.options, r = [t, ...n];
|
|
78
|
-
Object.keys(window.localStorage).forEach((e) => {
|
|
79
|
-
/* istanbul ignore else -- @preserve */
|
|
80
|
-
e.includes(s) && !r.some((t) => e.includes(`${s}${t}`)) && window.localStorage.removeItem(e);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
set(e, t, n) {
|
|
84
|
-
if (!l) return;
|
|
85
|
-
let r = this.getInvoke(n);
|
|
86
|
-
e = c(e, [n?.version, this.options.version]), t = this.options.set(typeof t == "string" ? t : JSON.stringify(t));
|
|
87
|
-
try {
|
|
88
|
-
window[r].setItem(e, t);
|
|
89
|
-
} catch {
|
|
90
|
-
this[r].setItem(e, t);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
get(e, t) {
|
|
94
|
-
if (!l) return null;
|
|
95
|
-
let n = this.getInvoke(t);
|
|
96
|
-
e = c(e, [t?.version, this.options.version]);
|
|
97
|
-
let r = this[n].getItem(e) || window[n].getItem(e);
|
|
98
|
-
return this.options.get(r);
|
|
99
|
-
}
|
|
100
|
-
remove(e, t) {
|
|
101
|
-
if (!l) return;
|
|
102
|
-
let n = this.getInvoke(t);
|
|
103
|
-
e = c(e, [t?.version, this.options.version]), this[n].removeItem(e), window[n].removeItem(e);
|
|
104
|
-
}
|
|
105
|
-
}(), d = (() => {
|
|
106
|
-
try {
|
|
107
|
-
return window.indexedDB.open, !0;
|
|
108
|
-
} catch {
|
|
109
|
-
return !1;
|
|
110
|
-
}
|
|
111
|
-
})(), f = class extends r {
|
|
112
|
-
timestramp = (/* @__PURE__ */ new Date()).getTime();
|
|
113
|
-
count = 0;
|
|
114
|
-
db = null;
|
|
115
|
-
pending = [];
|
|
116
|
-
constructor(e) {
|
|
117
|
-
super(), this.options = {
|
|
118
|
-
...this.options,
|
|
119
|
-
keyPath: "__id",
|
|
120
|
-
name: "default-db",
|
|
121
|
-
storeName: "default-store",
|
|
122
|
-
version: 1
|
|
123
|
-
}, e && this.configure(e);
|
|
124
|
-
}
|
|
125
|
-
getUid() {
|
|
126
|
-
return `${this.timestramp}${this.count++}`;
|
|
127
|
-
}
|
|
128
|
-
configure(e) {
|
|
129
|
-
super.configure(e), typeof this.options.version == "string" && (this.options.version = parseInt(this.options.version, 10));
|
|
130
|
-
}
|
|
131
|
-
concurrent(e) {
|
|
132
|
-
let t = new Promise((t, n) => {
|
|
133
|
-
e().then(t).catch(n);
|
|
134
|
-
});
|
|
135
|
-
return this.pending.push(t), t.finally(() => this.close(t)), t;
|
|
136
|
-
}
|
|
137
|
-
async task(e) {
|
|
138
|
-
return new Promise((t, n) => {
|
|
139
|
-
e.onsuccess = t, e.onerror = n;
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
async close(e) {
|
|
143
|
-
if (e) this.pending = this.pending.filter((t) => t !== e);
|
|
144
|
-
else {
|
|
145
|
-
let e = async (t) => {
|
|
146
|
-
t.length && (await Promise.allSettled(t), await e(this.pending));
|
|
147
|
-
};
|
|
148
|
-
await e(this.pending);
|
|
149
|
-
}
|
|
150
|
-
if (!this.pending.length && this.db) {
|
|
151
|
-
let e = this.db;
|
|
152
|
-
this.db = null, (await e).close();
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
openDatabase() {
|
|
156
|
-
return this.db = this.db || (async () => {
|
|
157
|
-
let { name: e, version: t, keyPath: n, storeName: r } = this.options, i = () => new Promise((i, a) => {
|
|
158
|
-
let o = window.indexedDB.open(e, t);
|
|
159
|
-
o.onsuccess = () => {
|
|
160
|
-
i(o.result);
|
|
161
|
-
}, o.onerror = () => {
|
|
162
|
-
a(/* @__PURE__ */ Error("IndexedDB Open Failed. DeleteDatabase first!"));
|
|
163
|
-
}, o.onupgradeneeded = () => {
|
|
164
|
-
let e = o.result;
|
|
165
|
-
e.objectStoreNames.contains(r) && e.deleteObjectStore(r), e.createObjectStore(r, { keyPath: n });
|
|
166
|
-
};
|
|
167
|
-
}), a;
|
|
168
|
-
for (let e = 0; e < 3; e++) {
|
|
169
|
-
try {
|
|
170
|
-
a = await i();
|
|
171
|
-
} catch {}
|
|
172
|
-
/* istanbul ignore next -- @preserve */
|
|
173
|
-
if (a || e === 2) break;
|
|
174
|
-
}
|
|
175
|
-
return a ||= (await this.deleteDatabase(), await i()), a;
|
|
176
|
-
})(), this.db;
|
|
177
|
-
}
|
|
178
|
-
async openObjectStore(e) {
|
|
179
|
-
let { storeName: t } = this.options;
|
|
180
|
-
return (await this.openDatabase()).transaction([t], e || "readwrite").objectStore(t);
|
|
181
|
-
}
|
|
182
|
-
async deleteDatabase() {
|
|
183
|
-
let { name: e } = this.options, t = window.indexedDB.deleteDatabase(e);
|
|
184
|
-
await new Promise((e, n) => {
|
|
185
|
-
t.onsuccess = e, t.onerror = n;
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
write(e) {
|
|
189
|
-
return this.concurrent(async () => {
|
|
190
|
-
let { keyPath: t } = this.options, n = await this.openObjectStore(), r = {
|
|
191
|
-
[t]: this.getUid(),
|
|
192
|
-
...e
|
|
193
|
-
}, i = n.add(r);
|
|
194
|
-
return await new Promise((e, t) => {
|
|
195
|
-
i.onsuccess = e, i.onerror = t;
|
|
196
|
-
}), r;
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
read(e) {
|
|
200
|
-
return this.concurrent(async () => {
|
|
201
|
-
let t = (await this.openObjectStore()).get(e);
|
|
202
|
-
return await this.task(t), t.result;
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
update(e, t) {
|
|
206
|
-
return this.concurrent(async () => {
|
|
207
|
-
let { keyPath: n } = this.options, r = await this.openObjectStore(), i = {
|
|
208
|
-
[n]: e,
|
|
209
|
-
...t
|
|
210
|
-
}, a = r.put(i);
|
|
211
|
-
return await this.task(a), i;
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
async delete(e) {
|
|
215
|
-
return this.concurrent(async () => {
|
|
216
|
-
let t = (await this.openObjectStore()).delete(e);
|
|
217
|
-
await this.task(t);
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
search() {
|
|
221
|
-
return this.concurrent(async () => {
|
|
222
|
-
let e = (await this.openObjectStore()).openCursor(), t = [];
|
|
223
|
-
return await new Promise((n, r) => {
|
|
224
|
-
e.onsuccess = () => {
|
|
225
|
-
let r = e.result;
|
|
226
|
-
r ? (t.push(r.value), r.continue()) : n(t);
|
|
227
|
-
}, e.onerror = r;
|
|
228
|
-
}), t;
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
async get(e) {
|
|
232
|
-
if (!d) return null;
|
|
233
|
-
let t = await this.read(e);
|
|
234
|
-
return this.options.get(t ? t.data : null);
|
|
235
|
-
}
|
|
236
|
-
async set(e, t) {
|
|
237
|
-
d && await this.update(e, { data: this.options.set(typeof t == "string" ? t : JSON.stringify(t)) });
|
|
238
|
-
}
|
|
239
|
-
async remove(e) {
|
|
240
|
-
d && await this.delete(e);
|
|
241
|
-
}
|
|
242
|
-
}, p = new f();
|
|
243
|
-
//#endregion
|
|
244
|
-
export { n as a, u as i, p as n, f as r, a as t };
|
|
@@ -1,44 +0,0 @@
|
|
|
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 };
|
|
@@ -1,43 +0,0 @@
|
|
|
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 };
|