@gx-design-vue/pro-utils 0.2.0-beta.80 → 0.2.0-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloneDeep/cloneDeepWith.d.ts +43 -0
- package/dist/cloneDeep/index.d.ts +1 -2
- package/dist/index.d.ts +3 -0
- package/dist/merge/index.d.ts +41 -14
- package/dist/merge/mergeWith.d.ts +49 -0
- package/dist/merge/useDeepMege.d.ts +43 -0
- package/dist/pro-utils.js +716 -640
- package/dist/pro-utils.umd.cjs +4 -4
- package/dist/utils/getTag.d.ts +8 -0
- package/dist/utils/isUnsafeProperty.d.ts +11 -0
- package/dist/utils/tags.d.ts +26 -0
- package/package.json +1 -1
package/dist/pro-utils.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.2.0-beta.
|
|
3
|
+
* Version: 0.2.0-beta.80
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
7
7
|
* Description: Gx Design Pro Utils
|
|
8
|
-
* Date Created: 2025-
|
|
8
|
+
* Date Created: 2025-11-27
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
import { Comment as
|
|
13
|
-
class
|
|
12
|
+
import { Comment as q, Fragment as v, isVNode as B } from "vue";
|
|
13
|
+
class Ht {
|
|
14
14
|
constructor() {
|
|
15
15
|
this._keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
16
16
|
}
|
|
17
|
-
_utf8_encode(
|
|
18
|
-
|
|
17
|
+
_utf8_encode(e) {
|
|
18
|
+
e = e.replace(/\r\n/g, `
|
|
19
19
|
`);
|
|
20
20
|
let n = "";
|
|
21
|
-
for (let r = 0; r <
|
|
22
|
-
const i =
|
|
21
|
+
for (let r = 0; r < e.length; r++) {
|
|
22
|
+
const i = e.charCodeAt(r);
|
|
23
23
|
i < 128 ? n += String.fromCharCode(i) : i > 127 && i < 2048 ? (n += String.fromCharCode(i >> 6 | 192), n += String.fromCharCode(i & 63 | 128)) : (n += String.fromCharCode(i >> 12 | 224), n += String.fromCharCode(i >> 6 & 63 | 128), n += String.fromCharCode(i & 63 | 128));
|
|
24
24
|
}
|
|
25
25
|
return n;
|
|
26
26
|
}
|
|
27
|
-
_utf8_decode(
|
|
28
|
-
let n = "", r = 0, i = 0,
|
|
29
|
-
for (; r <
|
|
30
|
-
i =
|
|
27
|
+
_utf8_decode(e) {
|
|
28
|
+
let n = "", r = 0, i = 0, s = 0, o = 0;
|
|
29
|
+
for (; r < e.length; )
|
|
30
|
+
i = e.charCodeAt(r), i < 128 ? (n += String.fromCharCode(i), r++) : i > 191 && i < 224 ? (s = e.charCodeAt(r + 1), n += String.fromCharCode((i & 31) << 6 | s & 63), r += 2) : (s = e.charCodeAt(r + 1), o = e.charCodeAt(r + 2), n += String.fromCharCode((i & 15) << 12 | (s & 63) << 6 | o & 63), r += 3);
|
|
31
31
|
return n;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -36,10 +36,10 @@ class me {
|
|
|
36
36
|
* @lastTime 2024/12/21
|
|
37
37
|
* @description 加密方法
|
|
38
38
|
*/
|
|
39
|
-
encode(
|
|
40
|
-
let n = "", r, i,
|
|
41
|
-
for (
|
|
42
|
-
r =
|
|
39
|
+
encode(e) {
|
|
40
|
+
let n = "", r, i, s, o, c, f, u, a = 0;
|
|
41
|
+
for (e = this._utf8_encode(e); a < e.length; )
|
|
42
|
+
r = e.charCodeAt(a++), i = e.charCodeAt(a++), s = e.charCodeAt(a++), o = r >> 2, c = (r & 3) << 4 | i >> 4, f = (i & 15) << 2 | s >> 6, u = s & 63, Number.isNaN(i) ? f = u = 64 : Number.isNaN(s) && (u = 64), n = n + this._keyStr.charAt(o) + this._keyStr.charAt(c) + this._keyStr.charAt(f) + this._keyStr.charAt(u);
|
|
43
43
|
return n;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
@@ -48,76 +48,76 @@ class me {
|
|
|
48
48
|
* @lastTime 2024/12/21
|
|
49
49
|
* @description 解密
|
|
50
50
|
*/
|
|
51
|
-
decode(
|
|
52
|
-
let n = "", r, i,
|
|
53
|
-
for (
|
|
54
|
-
|
|
51
|
+
decode(e) {
|
|
52
|
+
let n = "", r, i, s, o, c, f, u, a = 0;
|
|
53
|
+
for (e = e.replace(/[^A-Z0-9+/=]/gi, ""); a < e.length; )
|
|
54
|
+
o = this._keyStr.indexOf(e.charAt(a++)), c = this._keyStr.indexOf(e.charAt(a++)), f = this._keyStr.indexOf(e.charAt(a++)), u = this._keyStr.indexOf(e.charAt(a++)), r = o << 2 | c >> 4, i = (c & 15) << 4 | f >> 2, s = (f & 3) << 6 | u, n = n + String.fromCharCode(r), f !== 64 && (n = n + String.fromCharCode(i)), u !== 64 && (n = n + String.fromCharCode(s));
|
|
55
55
|
return n = this._utf8_decode(n), n;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return Object.prototype.toString.call(
|
|
58
|
+
function J(t, e) {
|
|
59
|
+
return Object.prototype.toString.call(t) === `[object ${e}]`;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return typeof
|
|
61
|
+
function D(t) {
|
|
62
|
+
return typeof t == "boolean";
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
return typeof
|
|
64
|
+
function h(t) {
|
|
65
|
+
return typeof t == "number";
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return typeof Array.isArray > "u" ? Object.prototype.toString.call(
|
|
67
|
+
function p(t) {
|
|
68
|
+
return typeof Array.isArray > "u" ? Object.prototype.toString.call(t) === "[object Array]" : Array.isArray(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
function m(t) {
|
|
71
|
+
return t !== null && J(t, "Object");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return typeof
|
|
73
|
+
function Z(t) {
|
|
74
|
+
return typeof t == "string" || t instanceof String;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return typeof
|
|
76
|
+
function qt(t) {
|
|
77
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Function]";
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (typeof
|
|
79
|
+
function Jt(t) {
|
|
80
|
+
if (typeof t != "string")
|
|
81
81
|
return !1;
|
|
82
82
|
try {
|
|
83
|
-
const
|
|
84
|
-
return typeof
|
|
83
|
+
const e = JSON.parse(t);
|
|
84
|
+
return typeof e == "object" && e !== null;
|
|
85
85
|
} catch {
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
return !!(/iPhone/.test(
|
|
89
|
+
function Zt() {
|
|
90
|
+
const t = navigator.userAgent || navigator.vendor;
|
|
91
|
+
return !!(/iPhone/.test(t) || /Android/.test(t) && /Mobile/.test(t) || /Windows Phone/.test(t) || /Mobile/.test(t) && !X());
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
const
|
|
95
|
-
return !!(/iPad/.test(
|
|
93
|
+
function X() {
|
|
94
|
+
const t = navigator.userAgent || navigator.vendor;
|
|
95
|
+
return !!(/iPad/.test(t) || /Macintosh/.test(t) && "ontouchend" in document || /Android/.test(t) && !/Mobile/.test(t));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const
|
|
99
|
-
for (let n = 0; n <
|
|
100
|
-
const r =
|
|
97
|
+
function Y(...t) {
|
|
98
|
+
const e = [];
|
|
99
|
+
for (let n = 0; n < t.length; n++) {
|
|
100
|
+
const r = t[n];
|
|
101
101
|
if (r) {
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
else if (
|
|
102
|
+
if (Z(r))
|
|
103
|
+
e.push(r);
|
|
104
|
+
else if (p(r))
|
|
105
105
|
for (let i = 0; i < r.length; i++) {
|
|
106
|
-
const
|
|
107
|
-
|
|
106
|
+
const s = Y(r[i]);
|
|
107
|
+
s && e.push(s);
|
|
108
108
|
}
|
|
109
|
-
else if (
|
|
109
|
+
else if (m(r))
|
|
110
110
|
for (const i in r)
|
|
111
|
-
r[i] &&
|
|
111
|
+
r[i] && e.push(i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
return
|
|
114
|
+
return e.filter((n) => n).join(" ");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
if (typeof
|
|
116
|
+
function Xt(t, e) {
|
|
117
|
+
if (typeof e != "string" && !Array.isArray(e))
|
|
118
118
|
return;
|
|
119
|
-
const n = Array.isArray(
|
|
120
|
-
let r =
|
|
119
|
+
const n = Array.isArray(e) ? e : e.split(":");
|
|
120
|
+
let r = t;
|
|
121
121
|
for (let i = 0; i < n.length; i++)
|
|
122
122
|
if (r && Object.prototype.hasOwnProperty.call(r, n[i]))
|
|
123
123
|
r = r[n[i]];
|
|
@@ -125,142 +125,195 @@ function Se(e, t) {
|
|
|
125
125
|
return;
|
|
126
126
|
return r;
|
|
127
127
|
}
|
|
128
|
-
const
|
|
129
|
-
function
|
|
130
|
-
return
|
|
128
|
+
const x = typeof window > "u";
|
|
129
|
+
function G(t) {
|
|
130
|
+
return t.replace(/[-_](.)/g, (e, n) => n.toUpperCase());
|
|
131
131
|
}
|
|
132
|
-
const O = function(
|
|
133
|
-
if (
|
|
132
|
+
const O = function(t, e) {
|
|
133
|
+
if (x || !t || !e)
|
|
134
134
|
return "";
|
|
135
|
-
|
|
135
|
+
e = G(e), e === "float" && (e = "cssFloat");
|
|
136
136
|
try {
|
|
137
|
-
const n =
|
|
137
|
+
const n = t.style[e];
|
|
138
138
|
if (n)
|
|
139
139
|
return n;
|
|
140
|
-
const r = document?.defaultView?.getComputedStyle(
|
|
141
|
-
return r ? r[
|
|
140
|
+
const r = document?.defaultView?.getComputedStyle(t, "");
|
|
141
|
+
return r ? r[e] : "";
|
|
142
142
|
} catch {
|
|
143
|
-
return
|
|
143
|
+
return t.style[e];
|
|
144
144
|
}
|
|
145
|
-
},
|
|
146
|
-
if (
|
|
145
|
+
}, Q = (t, e) => x ? void 0 : (e == null ? O(t, "overflow") : e ? O(t, "overflow-y") : O(t, "overflow-x")).match(/(scroll|auto|overlay)/), Yt = (t, e) => {
|
|
146
|
+
if (x)
|
|
147
147
|
return;
|
|
148
|
-
let n =
|
|
148
|
+
let n = t;
|
|
149
149
|
for (; n; ) {
|
|
150
150
|
if ([window, document, document.documentElement].includes(n))
|
|
151
151
|
return window;
|
|
152
|
-
if (
|
|
152
|
+
if (Q(n, e))
|
|
153
153
|
return n;
|
|
154
154
|
n = n.parentNode;
|
|
155
155
|
}
|
|
156
156
|
return n;
|
|
157
|
-
},
|
|
158
|
-
if (
|
|
157
|
+
}, Gt = (t, e) => {
|
|
158
|
+
if (x || !t || !e)
|
|
159
159
|
return !1;
|
|
160
|
-
const n =
|
|
160
|
+
const n = t.getBoundingClientRect();
|
|
161
161
|
let r;
|
|
162
|
-
return [window, document, document.documentElement, null, void 0].includes(
|
|
162
|
+
return [window, document, document.documentElement, null, void 0].includes(e) ? r = {
|
|
163
163
|
top: 0,
|
|
164
164
|
right: window.innerWidth,
|
|
165
165
|
bottom: window.innerHeight,
|
|
166
166
|
left: 0
|
|
167
|
-
} : r =
|
|
167
|
+
} : r = e.getBoundingClientRect(), n.top < r.bottom && n.bottom > r.top && n.right > r.left && n.left < r.right;
|
|
168
168
|
};
|
|
169
|
-
function I(
|
|
170
|
-
return
|
|
169
|
+
function I(t) {
|
|
170
|
+
return t != null && t === t.window;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function K(t, e) {
|
|
173
173
|
if (typeof window > "u")
|
|
174
174
|
return 0;
|
|
175
|
-
const n =
|
|
175
|
+
const n = e ? "scrollTop" : "scrollLeft";
|
|
176
176
|
let r = 0;
|
|
177
|
-
return I(
|
|
177
|
+
return I(t) ? r = t[e ? "pageYOffset" : "pageXOffset"] : t instanceof Document ? r = t.documentElement[n] : t && (r = t[n]), t && !I(t) && typeof r != "number" && (r = (t.ownerDocument || t).documentElement?.[n]), r;
|
|
178
178
|
}
|
|
179
|
-
function k(
|
|
180
|
-
return Object.getOwnPropertySymbols(
|
|
179
|
+
function k(t) {
|
|
180
|
+
return Object.getOwnPropertySymbols(t).filter((e) => Object.prototype.propertyIsEnumerable.call(t, e));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
182
|
+
function C(t) {
|
|
183
|
+
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
return
|
|
185
|
+
function T(t) {
|
|
186
|
+
return t == null || typeof t != "object" && typeof t != "function";
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
188
|
+
function tt(t) {
|
|
189
|
+
return ArrayBuffer.isView(t) && !(t instanceof DataView);
|
|
190
190
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
191
|
+
const et = "[object RegExp]", rt = "[object String]", nt = "[object Number]", it = "[object Boolean]", ot = "[object Arguments]", st = "[object Symbol]", ct = "[object Date]", ft = "[object Map]", ut = "[object Set]", at = "[object Array]", lt = "[object ArrayBuffer]", dt = "[object Object]", pt = "[object DataView]", gt = "[object Uint8Array]", yt = "[object Uint8ClampedArray]", ht = "[object Uint16Array]", mt = "[object Uint32Array]", wt = "[object Int8Array]", At = "[object Int16Array]", bt = "[object Int32Array]", St = "[object Float32Array]", xt = "[object Float64Array]";
|
|
192
|
+
function Qt(t, e) {
|
|
193
|
+
return y(t, void 0, t, /* @__PURE__ */ new Map(), e);
|
|
194
|
+
}
|
|
195
|
+
function y(t, e, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
196
|
+
const s = i?.(t, e, n, r);
|
|
197
|
+
if (s !== void 0)
|
|
198
|
+
return s;
|
|
199
|
+
if (T(t))
|
|
200
|
+
return t;
|
|
201
|
+
if (r.has(t))
|
|
202
|
+
return r.get(t);
|
|
203
|
+
if (Array.isArray(t)) {
|
|
204
|
+
const o = Array.from({ length: t.length });
|
|
205
|
+
r.set(t, o);
|
|
206
|
+
for (let c = 0; c < t.length; c++)
|
|
207
|
+
o[c] = y(t[c], c, n, r, i);
|
|
208
|
+
return Object.hasOwn(t, "index") && (o.index = t.index), Object.hasOwn(t, "input") && (o.input = t.input), o;
|
|
202
209
|
}
|
|
203
|
-
if (
|
|
204
|
-
return new Date(
|
|
205
|
-
if (
|
|
206
|
-
const
|
|
207
|
-
return
|
|
210
|
+
if (t instanceof Date)
|
|
211
|
+
return new Date(t.getTime());
|
|
212
|
+
if (t instanceof RegExp) {
|
|
213
|
+
const o = new RegExp(t.source, t.flags);
|
|
214
|
+
return o.lastIndex = t.lastIndex, o;
|
|
208
215
|
}
|
|
209
|
-
if (
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
for (const [
|
|
213
|
-
|
|
214
|
-
return
|
|
216
|
+
if (t instanceof Map) {
|
|
217
|
+
const o = /* @__PURE__ */ new Map();
|
|
218
|
+
r.set(t, o);
|
|
219
|
+
for (const [c, f] of t)
|
|
220
|
+
o.set(c, y(f, c, n, r, i));
|
|
221
|
+
return o;
|
|
215
222
|
}
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
for (const
|
|
220
|
-
|
|
221
|
-
return
|
|
223
|
+
if (t instanceof Set) {
|
|
224
|
+
const o = /* @__PURE__ */ new Set();
|
|
225
|
+
r.set(t, o);
|
|
226
|
+
for (const c of t)
|
|
227
|
+
o.add(y(c, void 0, n, r, i));
|
|
228
|
+
return o;
|
|
222
229
|
}
|
|
223
|
-
if (typeof Buffer < "u" && Buffer.isBuffer(
|
|
224
|
-
return
|
|
225
|
-
if (
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
for (let
|
|
229
|
-
|
|
230
|
-
return
|
|
230
|
+
if (typeof Buffer < "u" && Buffer.isBuffer(t))
|
|
231
|
+
return t.subarray();
|
|
232
|
+
if (tt(t)) {
|
|
233
|
+
const o = new (Object.getPrototypeOf(t)).constructor(t.length);
|
|
234
|
+
r.set(t, o);
|
|
235
|
+
for (let c = 0; c < t.length; c++)
|
|
236
|
+
o[c] = y(t[c], c, n, r, i);
|
|
237
|
+
return o;
|
|
231
238
|
}
|
|
232
|
-
if (
|
|
233
|
-
return
|
|
234
|
-
if (
|
|
235
|
-
const
|
|
236
|
-
return
|
|
239
|
+
if (t instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && t instanceof SharedArrayBuffer)
|
|
240
|
+
return t.slice(0);
|
|
241
|
+
if (t instanceof DataView) {
|
|
242
|
+
const o = new DataView(t.buffer.slice(0), t.byteOffset, t.byteLength);
|
|
243
|
+
return r.set(t, o), d(o, t, n, r, i), o;
|
|
237
244
|
}
|
|
238
|
-
if (typeof File < "u" &&
|
|
239
|
-
const
|
|
240
|
-
|
|
245
|
+
if (typeof File < "u" && t instanceof File) {
|
|
246
|
+
const o = new File([t], t.name, {
|
|
247
|
+
type: t.type
|
|
248
|
+
});
|
|
249
|
+
return r.set(t, o), d(o, t, n, r, i), o;
|
|
241
250
|
}
|
|
242
|
-
if (
|
|
243
|
-
const
|
|
244
|
-
return
|
|
251
|
+
if (typeof Blob < "u" && t instanceof Blob) {
|
|
252
|
+
const o = new Blob([t], { type: t.type });
|
|
253
|
+
return r.set(t, o), d(o, t, n, r, i), o;
|
|
245
254
|
}
|
|
246
|
-
if (
|
|
247
|
-
const
|
|
248
|
-
return
|
|
255
|
+
if (t instanceof Error) {
|
|
256
|
+
const o = new t.constructor();
|
|
257
|
+
return r.set(t, o), o.message = t.message, o.name = t.name, o.stack = t.stack, o.cause = t.cause, d(o, t, n, r, i), o;
|
|
249
258
|
}
|
|
250
|
-
if (typeof
|
|
251
|
-
const
|
|
252
|
-
return
|
|
259
|
+
if (typeof t == "boolean") {
|
|
260
|
+
const o = !!t.valueOf();
|
|
261
|
+
return r.set(t, o), d(o, t, n, r, i), o;
|
|
253
262
|
}
|
|
254
|
-
|
|
263
|
+
if (typeof t == "number") {
|
|
264
|
+
const o = Number(t.valueOf());
|
|
265
|
+
return r.set(t, o), d(o, t, n, r, i), o;
|
|
266
|
+
}
|
|
267
|
+
if (typeof t == "string") {
|
|
268
|
+
const o = String(t.valueOf());
|
|
269
|
+
return r.set(t, o), d(o, t, n, r, i), o;
|
|
270
|
+
}
|
|
271
|
+
if (typeof t == "object" && Ot(t)) {
|
|
272
|
+
const o = Object.create(Object.getPrototypeOf(t));
|
|
273
|
+
return r.set(t, o), d(o, t, n, r, i), o;
|
|
274
|
+
}
|
|
275
|
+
return t;
|
|
255
276
|
}
|
|
256
|
-
function
|
|
257
|
-
const
|
|
258
|
-
for (let
|
|
259
|
-
const
|
|
260
|
-
(f == null || f.writable) && (
|
|
277
|
+
function d(t, e, n = t, r, i) {
|
|
278
|
+
const s = [...Object.keys(e), ...k(e)];
|
|
279
|
+
for (let o = 0; o < s.length; o++) {
|
|
280
|
+
const c = s[o], f = Object.getOwnPropertyDescriptor(t, c);
|
|
281
|
+
(f == null || f.writable) && (t[c] = y(e[c], c, n, r, i));
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
function Ot(t) {
|
|
285
|
+
switch (C(t)) {
|
|
286
|
+
case ot:
|
|
287
|
+
case at:
|
|
288
|
+
case lt:
|
|
289
|
+
case pt:
|
|
290
|
+
case it:
|
|
291
|
+
case ct:
|
|
292
|
+
case St:
|
|
293
|
+
case xt:
|
|
294
|
+
case wt:
|
|
295
|
+
case At:
|
|
296
|
+
case bt:
|
|
297
|
+
case ft:
|
|
298
|
+
case nt:
|
|
299
|
+
case dt:
|
|
300
|
+
case et:
|
|
301
|
+
case ut:
|
|
302
|
+
case rt:
|
|
303
|
+
case st:
|
|
304
|
+
case gt:
|
|
305
|
+
case yt:
|
|
306
|
+
case ht:
|
|
307
|
+
case mt:
|
|
308
|
+
return !0;
|
|
309
|
+
default:
|
|
310
|
+
return !1;
|
|
261
311
|
}
|
|
262
312
|
}
|
|
263
|
-
|
|
313
|
+
function w(t) {
|
|
314
|
+
return y(t, void 0, t, /* @__PURE__ */ new Map(), void 0);
|
|
315
|
+
}
|
|
316
|
+
const S = {
|
|
264
317
|
videoAllowType: [
|
|
265
318
|
"mp4",
|
|
266
319
|
"webm",
|
|
@@ -347,56 +400,56 @@ const x = {
|
|
|
347
400
|
"pcm",
|
|
348
401
|
"ape"
|
|
349
402
|
]
|
|
350
|
-
},
|
|
351
|
-
let
|
|
352
|
-
typeof window < "u" && "requestAnimationFrame" in window && (
|
|
353
|
-
let
|
|
403
|
+
}, jt = (t) => t != null && t !== "";
|
|
404
|
+
let W = (t) => setTimeout(t, 16), z = (t) => clearTimeout(t);
|
|
405
|
+
typeof window < "u" && "requestAnimationFrame" in window && (W = (t) => window.requestAnimationFrame(t), z = (t) => window.cancelAnimationFrame(t));
|
|
406
|
+
let P = 0;
|
|
354
407
|
const N = /* @__PURE__ */ new Map();
|
|
355
|
-
function
|
|
356
|
-
N.delete(
|
|
408
|
+
function V(t) {
|
|
409
|
+
N.delete(t);
|
|
357
410
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
360
|
-
const n =
|
|
411
|
+
function U(t, e = 1) {
|
|
412
|
+
P += 1;
|
|
413
|
+
const n = P;
|
|
361
414
|
function r(i) {
|
|
362
415
|
if (i === 0)
|
|
363
|
-
|
|
416
|
+
V(n), t();
|
|
364
417
|
else {
|
|
365
|
-
const
|
|
418
|
+
const s = W(() => {
|
|
366
419
|
r(i - 1);
|
|
367
420
|
});
|
|
368
|
-
N.set(n,
|
|
421
|
+
N.set(n, s);
|
|
369
422
|
}
|
|
370
423
|
}
|
|
371
|
-
return r(
|
|
424
|
+
return r(e), n;
|
|
372
425
|
}
|
|
373
|
-
|
|
374
|
-
const
|
|
375
|
-
return
|
|
426
|
+
U.cancel = (t) => {
|
|
427
|
+
const e = N.get(t);
|
|
428
|
+
return V(e), z(e);
|
|
376
429
|
};
|
|
377
|
-
function
|
|
378
|
-
return
|
|
430
|
+
function Kt(t) {
|
|
431
|
+
return t != null;
|
|
379
432
|
}
|
|
380
|
-
function
|
|
381
|
-
if (!
|
|
433
|
+
function A(t) {
|
|
434
|
+
if (!t || typeof t != "object")
|
|
382
435
|
return !1;
|
|
383
|
-
const
|
|
384
|
-
return
|
|
436
|
+
const e = Object.getPrototypeOf(t);
|
|
437
|
+
return e === null || e === Object.prototype || Object.getPrototypeOf(e) === null ? Object.prototype.toString.call(t) === "[object Object]" : !1;
|
|
385
438
|
}
|
|
386
|
-
const
|
|
439
|
+
const kt = ({ suffixCls: t, customizePrefixCls: e, isPor: n, className: r }) => {
|
|
387
440
|
const i = r || (n ? "gx-pro" : "gx");
|
|
388
|
-
return
|
|
389
|
-
},
|
|
390
|
-
function
|
|
391
|
-
const r =
|
|
392
|
-
if (n &&
|
|
393
|
-
const i =
|
|
441
|
+
return e || (t ? `${i}-${t}` : i);
|
|
442
|
+
}, Ct = (t, e) => t ? p(t) ? t.join("-") : t.toString() : `${e || 0}`;
|
|
443
|
+
function Tt(t, { align: e, showIndex: n }) {
|
|
444
|
+
const r = w(t);
|
|
445
|
+
if (n && t.length && t.every((i) => i.dataIndex !== "sortIndex")) {
|
|
446
|
+
const i = t[0];
|
|
394
447
|
r.unshift({
|
|
395
448
|
title: "序号",
|
|
396
|
-
align:
|
|
449
|
+
align: e,
|
|
397
450
|
fixed: i.fixed,
|
|
398
451
|
width: 60,
|
|
399
|
-
uuid:
|
|
452
|
+
uuid: Rt().uuid(15),
|
|
400
453
|
dataIndex: "sortIndex",
|
|
401
454
|
key: "sortIndex"
|
|
402
455
|
});
|
|
@@ -404,350 +457,350 @@ function Re(e, { align: t, showIndex: n }) {
|
|
|
404
457
|
r.filter((i) => i.dataIndex !== "sortIndex");
|
|
405
458
|
return r;
|
|
406
459
|
}
|
|
407
|
-
function
|
|
408
|
-
return typeof
|
|
460
|
+
function te(t, ...e) {
|
|
461
|
+
return typeof t == "function" ? t(...e) : t;
|
|
409
462
|
}
|
|
410
|
-
function
|
|
411
|
-
return JSON.parse(JSON.stringify(
|
|
463
|
+
function ee(t) {
|
|
464
|
+
return JSON.parse(JSON.stringify(t));
|
|
412
465
|
}
|
|
413
|
-
function
|
|
414
|
-
if (
|
|
415
|
-
const { pageSize: n = 10, total: r = 0 } =
|
|
416
|
-
let { current: i = 1 } =
|
|
417
|
-
return r -
|
|
466
|
+
function re(t, e) {
|
|
467
|
+
if (m(t)) {
|
|
468
|
+
const { pageSize: n = 10, total: r = 0 } = t;
|
|
469
|
+
let { current: i = 1 } = t;
|
|
470
|
+
return r - e <= n * (i - 1) && (i = i - 1), i === 0 ? 1 : i;
|
|
418
471
|
}
|
|
419
472
|
return 1;
|
|
420
473
|
}
|
|
421
|
-
function
|
|
422
|
-
function r(i,
|
|
423
|
-
return
|
|
424
|
-
const
|
|
425
|
-
return
|
|
474
|
+
function ne(t = [], e, n = "children") {
|
|
475
|
+
function r(i, s) {
|
|
476
|
+
return s.map((o, c) => {
|
|
477
|
+
const f = `${i}-${c + 1}`;
|
|
478
|
+
return o[n] && (o[n] = r(f, o[n])), o.sortIndex = f, o;
|
|
426
479
|
});
|
|
427
480
|
}
|
|
428
|
-
return
|
|
429
|
-
const
|
|
430
|
-
return i[n] && (i[n] = r(`${
|
|
481
|
+
return w(t).map((i, s) => {
|
|
482
|
+
const o = m(e) && e.current || 1, c = m(e) && e.pageSize || 10, f = `${(o - 1) * c + (s + 1)}`;
|
|
483
|
+
return i[n] && (i[n] = r(`${f}`, i[n])), i.sortIndex = f, i;
|
|
431
484
|
});
|
|
432
485
|
}
|
|
433
|
-
function
|
|
434
|
-
return
|
|
435
|
-
if (
|
|
436
|
-
return r <=
|
|
437
|
-
if (
|
|
438
|
-
const i =
|
|
439
|
-
return r <=
|
|
440
|
-
} else if (
|
|
441
|
-
const i =
|
|
442
|
-
return r <=
|
|
486
|
+
function ie(t, e) {
|
|
487
|
+
return p(t) ? t?.filter((n, r) => {
|
|
488
|
+
if (h(e))
|
|
489
|
+
return r <= e - 1;
|
|
490
|
+
if (p(e) && e.length === 2) {
|
|
491
|
+
const i = e[0] - 1, s = e[1] ? e[1] - 1 : t.length - 1;
|
|
492
|
+
return r <= s && r >= i;
|
|
493
|
+
} else if (p(e) && e.length === 1) {
|
|
494
|
+
const i = e[0] - 1, s = t.length - 1;
|
|
495
|
+
return r <= s && r >= i;
|
|
443
496
|
}
|
|
444
497
|
return !0;
|
|
445
498
|
}) : [];
|
|
446
499
|
}
|
|
447
|
-
function
|
|
448
|
-
const i =
|
|
449
|
-
let
|
|
450
|
-
return
|
|
500
|
+
function It(t, e, n, r = 0) {
|
|
501
|
+
const i = h(r) && (r === 0 || r === 1) ? r : 0, s = t[n], o = e[n];
|
|
502
|
+
let c = 0;
|
|
503
|
+
return s < o ? c = i === 0 ? -1 : 0 : s > o && (c = i === 0 ? 0 : -1), c;
|
|
451
504
|
}
|
|
452
|
-
function
|
|
453
|
-
const i =
|
|
454
|
-
let
|
|
455
|
-
return
|
|
505
|
+
function Ut(t, e, n, r = 0) {
|
|
506
|
+
const i = h(r) && (r === 0 || r === 1) ? r : 0, s = new Date(t[n]), o = new Date(e[n]);
|
|
507
|
+
let c = 0;
|
|
508
|
+
return s < o ? c = i === 0 ? -1 : 0 : s > o && (c = i === 0 ? 0 : -1), c;
|
|
456
509
|
}
|
|
457
|
-
function
|
|
458
|
-
return
|
|
510
|
+
function oe(t, e, n = 0) {
|
|
511
|
+
return t.sort((r, i) => It(r, i, e, n));
|
|
459
512
|
}
|
|
460
|
-
function
|
|
461
|
-
return
|
|
513
|
+
function se(t, e, n = 0) {
|
|
514
|
+
return t.sort((r, i) => Ut(r, i, e, n));
|
|
462
515
|
}
|
|
463
|
-
function
|
|
464
|
-
let
|
|
465
|
-
const n = new Set(
|
|
466
|
-
return
|
|
516
|
+
function ce(t) {
|
|
517
|
+
let e = w(t);
|
|
518
|
+
const n = new Set(e);
|
|
519
|
+
return e = Array.from(n), e;
|
|
467
520
|
}
|
|
468
|
-
function
|
|
521
|
+
function fe(t, e) {
|
|
469
522
|
const n = ["null", "undefined"];
|
|
470
523
|
let r = !0;
|
|
471
|
-
return
|
|
472
|
-
value:
|
|
524
|
+
return t === 0 ? r = !0 : n.includes(t) ? r = !1 : t || (r = !1), r ? {
|
|
525
|
+
value: t,
|
|
473
526
|
success: r
|
|
474
527
|
} : {
|
|
475
|
-
value:
|
|
528
|
+
value: e === "" ? e : e || "-",
|
|
476
529
|
success: r
|
|
477
530
|
};
|
|
478
531
|
}
|
|
479
|
-
function
|
|
480
|
-
let
|
|
481
|
-
if (
|
|
482
|
-
const n = Math.floor(
|
|
483
|
-
n < 10 ?
|
|
532
|
+
function ue(t) {
|
|
533
|
+
let e = "";
|
|
534
|
+
if (t > -1) {
|
|
535
|
+
const n = Math.floor(t / 3600), r = Math.floor(t / 60) % 60, i = Number.parseInt(String(t % 60));
|
|
536
|
+
n < 10 ? e = "0" + n + ":" : e = n + ":", r < 10 && (e += "0"), e += r + ":", i < 10 && (e += "0"), e += i;
|
|
484
537
|
}
|
|
485
|
-
return
|
|
538
|
+
return e.split(":")[0] === "00" ? `${e.split(":")[1]}:${e.split(":")[2]}` : e;
|
|
486
539
|
}
|
|
487
|
-
function
|
|
488
|
-
const
|
|
540
|
+
function Rt() {
|
|
541
|
+
const t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
489
542
|
return {
|
|
490
|
-
uuid(
|
|
491
|
-
const r =
|
|
492
|
-
let
|
|
493
|
-
if (
|
|
494
|
-
for (
|
|
495
|
-
i[
|
|
543
|
+
uuid(e, n) {
|
|
544
|
+
const r = t, i = [], s = n || r.length;
|
|
545
|
+
let o, c;
|
|
546
|
+
if (e)
|
|
547
|
+
for (o = 0; o < e; o += 1)
|
|
548
|
+
i[o] = r[Number.parseInt(String(Math.random() * s))];
|
|
496
549
|
else
|
|
497
|
-
for (i[8] = "-", i[13] = "-", i[18] = "-", i[23] = "-", i[14] = "4",
|
|
498
|
-
i[
|
|
550
|
+
for (i[8] = "-", i[13] = "-", i[18] = "-", i[23] = "-", i[14] = "4", o = 0; o < 36; o += 1)
|
|
551
|
+
i[o] || (c = Math.random() * 16, i[o] = r[o === 19 ? c && 3 || 8 : c]);
|
|
499
552
|
return i.join("");
|
|
500
553
|
},
|
|
501
554
|
uuidFast() {
|
|
502
|
-
const
|
|
503
|
-
let r = 0, i,
|
|
504
|
-
for (
|
|
505
|
-
|
|
555
|
+
const e = t, n = Array.from({ length: 36 });
|
|
556
|
+
let r = 0, i, s;
|
|
557
|
+
for (s = 0; s < 36; s += 1)
|
|
558
|
+
s === 8 || s === 13 || s === 18 || s === 23 ? n[s] = "-" : s === 14 ? n[s] = "4" : (r <= 2 && (r = 33554432 + Math.random() * 16777216 || 0), i = r && 15, r = r > 4, n[s] = e[s === 19 ? i && 3 || 8 : i]);
|
|
506
559
|
return n.join("");
|
|
507
560
|
},
|
|
508
561
|
uuidString() {
|
|
509
562
|
return this.uuidFast().replace(new RegExp("-", "g"), "");
|
|
510
563
|
},
|
|
511
564
|
uuidCompact() {
|
|
512
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (
|
|
565
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
513
566
|
const n = Math.random() * 16 || 0;
|
|
514
|
-
return (
|
|
567
|
+
return (e === "x" ? n : n && 3 || 8).toString(16);
|
|
515
568
|
});
|
|
516
569
|
}
|
|
517
570
|
};
|
|
518
571
|
}
|
|
519
|
-
function
|
|
520
|
-
if (!Array.isArray(
|
|
572
|
+
function Et(t, e) {
|
|
573
|
+
if (!Array.isArray(t) || t.length === 0)
|
|
521
574
|
return 0;
|
|
522
|
-
const n =
|
|
523
|
-
return Math.max(...
|
|
575
|
+
const n = e || "children";
|
|
576
|
+
return Math.max(...t.map((r) => {
|
|
524
577
|
const i = r[n];
|
|
525
|
-
return 1 + (i ?
|
|
578
|
+
return 1 + (i ? Et(i, n) : 0);
|
|
526
579
|
}));
|
|
527
580
|
}
|
|
528
|
-
function
|
|
581
|
+
function Bt(t, e = "children") {
|
|
529
582
|
let n = [];
|
|
530
|
-
return
|
|
531
|
-
n.push(r),
|
|
583
|
+
return t.forEach((r) => {
|
|
584
|
+
n.push(r), p(r[e]) && r[e].length > 0 && (n = n.concat(Bt(r[e], e)));
|
|
532
585
|
}), n;
|
|
533
586
|
}
|
|
534
|
-
function
|
|
535
|
-
if (!
|
|
587
|
+
function ae(t, e) {
|
|
588
|
+
if (!t || !p(t) || t?.length === 0)
|
|
536
589
|
return [];
|
|
537
|
-
const { id: n = "id", parentId: r = "parentId", children: i = "children", emptyChildren:
|
|
538
|
-
return
|
|
539
|
-
const u =
|
|
540
|
-
return u.length > 0 ?
|
|
590
|
+
const { id: n = "id", parentId: r = "parentId", children: i = "children", emptyChildren: s = !0 } = e || {}, o = e?.rootId ?? 0, c = w(t);
|
|
591
|
+
return c.map((f) => (!s && f[i] && f[i]?.length === 0 && delete f[i], f)).filter((f) => {
|
|
592
|
+
const u = c.filter((a) => f[n] === a[r]);
|
|
593
|
+
return u.length > 0 ? f[i] = u : s && (f[i] = []), o === !1 ? !0 : f[r] === o;
|
|
541
594
|
});
|
|
542
595
|
}
|
|
543
|
-
function
|
|
544
|
-
return
|
|
596
|
+
function Dt(t, e) {
|
|
597
|
+
return t.map((n) => {
|
|
545
598
|
const r = { ...n };
|
|
546
|
-
return r.children && (r.children =
|
|
599
|
+
return r.children && (r.children = Dt(r.children, e)), e(r) || r.children && r.children.length > 0 ? r : null;
|
|
547
600
|
}).filter(Boolean);
|
|
548
601
|
}
|
|
549
|
-
function
|
|
602
|
+
function le(t, e, n) {
|
|
550
603
|
const { value: r, children: i } = n || {
|
|
551
604
|
value: "value",
|
|
552
605
|
children: "children"
|
|
553
606
|
};
|
|
554
|
-
let
|
|
555
|
-
function
|
|
556
|
-
if (
|
|
557
|
-
return
|
|
558
|
-
if (
|
|
559
|
-
for (const u of
|
|
560
|
-
if (
|
|
607
|
+
let s = [];
|
|
608
|
+
function o(c, f) {
|
|
609
|
+
if (c[r] === e)
|
|
610
|
+
return s = [...f, c[r]], !0;
|
|
611
|
+
if (c[i]) {
|
|
612
|
+
for (const u of c[i])
|
|
613
|
+
if (o(u, [...f, c[r]]))
|
|
561
614
|
return !0;
|
|
562
615
|
}
|
|
563
616
|
return !1;
|
|
564
617
|
}
|
|
565
|
-
for (const
|
|
566
|
-
if (
|
|
618
|
+
for (const c of t)
|
|
619
|
+
if (o(c, []))
|
|
567
620
|
break;
|
|
568
|
-
return
|
|
621
|
+
return s;
|
|
569
622
|
}
|
|
570
|
-
function
|
|
571
|
-
return
|
|
623
|
+
function de(t) {
|
|
624
|
+
return t && p(t) ? t[t.length - 1] : null;
|
|
572
625
|
}
|
|
573
|
-
function
|
|
626
|
+
function Nt(t, e, n) {
|
|
574
627
|
const r = n?.value || "id", i = n?.children || "children";
|
|
575
|
-
for (const
|
|
576
|
-
if (
|
|
577
|
-
return
|
|
578
|
-
const
|
|
579
|
-
if (
|
|
580
|
-
const
|
|
581
|
-
if (
|
|
582
|
-
return
|
|
628
|
+
for (const s of t) {
|
|
629
|
+
if (s[r] === e)
|
|
630
|
+
return s;
|
|
631
|
+
const o = s[i];
|
|
632
|
+
if (o) {
|
|
633
|
+
const c = Nt(o, e, n);
|
|
634
|
+
if (c)
|
|
635
|
+
return c;
|
|
583
636
|
}
|
|
584
637
|
}
|
|
585
638
|
}
|
|
586
|
-
function
|
|
587
|
-
return URL.createObjectURL(
|
|
639
|
+
function pe(t) {
|
|
640
|
+
return URL.createObjectURL(t);
|
|
588
641
|
}
|
|
589
|
-
function
|
|
590
|
-
return new Promise((
|
|
642
|
+
function ge(t) {
|
|
643
|
+
return new Promise((e, n) => {
|
|
591
644
|
const r = new FileReader();
|
|
592
|
-
r.readAsDataURL(
|
|
645
|
+
r.readAsDataURL(t), r.onload = () => e(r.result), r.onerror = (i) => n(i);
|
|
593
646
|
});
|
|
594
647
|
}
|
|
595
|
-
function
|
|
596
|
-
const
|
|
648
|
+
function ye(t) {
|
|
649
|
+
const e = t.split(","), n = e[0].match(/:(.*?);/)[1], r = atob(e[1]);
|
|
597
650
|
let i = r.length;
|
|
598
|
-
const
|
|
651
|
+
const s = new Uint8Array(i);
|
|
599
652
|
for (; i--; )
|
|
600
|
-
|
|
601
|
-
return new Blob([
|
|
602
|
-
}
|
|
603
|
-
function
|
|
604
|
-
const n =
|
|
605
|
-
let
|
|
606
|
-
const
|
|
607
|
-
for (;
|
|
608
|
-
|
|
609
|
-
return new File([
|
|
610
|
-
}
|
|
611
|
-
function
|
|
612
|
-
return new window.File([
|
|
613
|
-
}
|
|
614
|
-
function
|
|
615
|
-
if (!
|
|
653
|
+
s[i] = r.charCodeAt(i);
|
|
654
|
+
return new Blob([s], { type: n });
|
|
655
|
+
}
|
|
656
|
+
function he(t, e) {
|
|
657
|
+
const n = t.split(","), r = n[0].match(/:(.*?);/)[1], i = atob(n[1]);
|
|
658
|
+
let s = i.length;
|
|
659
|
+
const o = new Uint8Array(s);
|
|
660
|
+
for (; s--; )
|
|
661
|
+
o[s] = i.charCodeAt(s);
|
|
662
|
+
return new File([o], e, { type: r });
|
|
663
|
+
}
|
|
664
|
+
function me(t, e, n) {
|
|
665
|
+
return new window.File([t], e, { type: n });
|
|
666
|
+
}
|
|
667
|
+
function Ft(t) {
|
|
668
|
+
if (!t || typeof t != "string")
|
|
616
669
|
return "";
|
|
617
|
-
const
|
|
618
|
-
return
|
|
670
|
+
const e = t.indexOf("?");
|
|
671
|
+
return e > 0 ? `${t.substring(0, e)}` : t;
|
|
619
672
|
}
|
|
620
|
-
function R(
|
|
621
|
-
if (!
|
|
673
|
+
function R(t) {
|
|
674
|
+
if (!t || typeof t != "string")
|
|
622
675
|
return "";
|
|
623
|
-
const
|
|
624
|
-
return n > 0 && `${
|
|
676
|
+
const e = Ft(t), n = e.lastIndexOf(".");
|
|
677
|
+
return n > 0 && `${e?.substring?.(n)?.split("?")?.[0]}`?.split(".")?.[1] || "";
|
|
625
678
|
}
|
|
626
|
-
function
|
|
627
|
-
if (
|
|
628
|
-
return
|
|
629
|
-
if (!
|
|
679
|
+
function b(t, e) {
|
|
680
|
+
if (e)
|
|
681
|
+
return e;
|
|
682
|
+
if (!t || t === "data:")
|
|
630
683
|
return "4";
|
|
631
684
|
let n = "4";
|
|
632
|
-
return
|
|
685
|
+
return F(t) ? t.includes("data:image/") ? n = "png" : t.includes("data:video/") ? n = "mp4" : t.includes("data:audio/") && (n = "mp3") : t instanceof Blob ? (t = String(t), t.includes("image") ? n = "png" : t.includes("video") ? n = "mp4" : t.includes("audio") && (n = "mp3")) : n = R(t).toLowerCase(), S.imageType.includes(n) ? "1" : S.videoType.includes(n) ? "3" : S.audioType.includes(n) ? "2" : "4";
|
|
633
686
|
}
|
|
634
|
-
function
|
|
635
|
-
const { url:
|
|
687
|
+
function Pt(t) {
|
|
688
|
+
const { url: e = "", fileType: n = "1" } = t || {};
|
|
636
689
|
let r = "", i = { play: !1, height: 0, size: 0, width: 0, duration: 0 };
|
|
637
|
-
function
|
|
690
|
+
function s() {
|
|
638
691
|
i = { play: !1, height: 0, size: 0, width: 0, duration: 0 };
|
|
639
692
|
}
|
|
640
|
-
return
|
|
641
|
-
let
|
|
693
|
+
return e instanceof File ? r = URL.createObjectURL(e) : F(e) ? r = e : e instanceof Blob ? r = URL.createObjectURL(e) : (e.includes("https") || e.includes("http")) && (r = e), new Promise((o) => {
|
|
694
|
+
let c;
|
|
642
695
|
if (n === "4") {
|
|
643
|
-
|
|
696
|
+
o(i);
|
|
644
697
|
return;
|
|
645
698
|
}
|
|
646
|
-
n === "1" ? (
|
|
647
|
-
|
|
648
|
-
} :
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
|
|
699
|
+
n === "1" ? (c = document.createElement("img"), c.src = r) : n === "2" ? (c = document.createElement("audio"), c.src = r) : n === "3" && (c = document.createElement("video"), c.src = r), n === "1" ? c.onload = function() {
|
|
700
|
+
s(), i.play = !0, i.width = c.width || 0, i.height = c.height || 0, o(i), c = null;
|
|
701
|
+
} : c.oncanplay = function() {
|
|
702
|
+
s(), i.play = !0, i.width = c?.videoWidth || 0, i.height = c?.videoHeight || 0, i.duration = c?.duration || 0, o(i), c = null;
|
|
703
|
+
}, c.onerror = function() {
|
|
704
|
+
s(), o(i), c = null;
|
|
652
705
|
};
|
|
653
706
|
});
|
|
654
707
|
}
|
|
655
|
-
async function
|
|
656
|
-
const { url:
|
|
657
|
-
let
|
|
658
|
-
return
|
|
659
|
-
url:
|
|
660
|
-
fileType:
|
|
661
|
-
}),
|
|
662
|
-
|
|
663
|
-
})) : new Promise((
|
|
664
|
-
|
|
708
|
+
async function we(t) {
|
|
709
|
+
const { url: e = "", currentTime: n, videoSuffix: r = "", videoAllowPlay: i = !1 } = t;
|
|
710
|
+
let s = "", o = r, c = "1", f;
|
|
711
|
+
return e instanceof File ? (s = URL.createObjectURL(e), o = R(e.name), c = b(e.name)) : e instanceof Blob ? (s = URL.createObjectURL(e), c = b(e)) : F(e) ? (s = e, c = b(e)) : (e.includes("https") || e.includes("http")) && (s = e, o = R(e), c = b(e)), (o ? S.videoAllowType.includes(o.toLowerCase()) : !1) ? i ? L(s, n) : (f = await Pt({
|
|
712
|
+
url: s,
|
|
713
|
+
fileType: c
|
|
714
|
+
}), f.play ? L(s, n) : new Promise((a) => {
|
|
715
|
+
a("");
|
|
716
|
+
})) : new Promise((a) => {
|
|
717
|
+
a("");
|
|
665
718
|
});
|
|
666
719
|
}
|
|
667
|
-
async function
|
|
720
|
+
async function L(t, e = 0) {
|
|
668
721
|
return new Promise((n) => {
|
|
669
722
|
let r = document.createElement("video");
|
|
670
|
-
r && (r.controls = !0, r.muted = !0, r.setAttribute("src",
|
|
723
|
+
r && (r.controls = !0, r.muted = !0, r.setAttribute("src", t), r.setAttribute("muted", String(!0)), r.setAttribute("crossorigin", "anonymous"), r.setAttribute("autoplay", String(!0)), r.addEventListener("loadeddata", async () => {
|
|
671
724
|
let i;
|
|
672
725
|
for (r?.addEventListener("seeked", async () => {
|
|
673
726
|
i && i();
|
|
674
|
-
});
|
|
675
|
-
r && (r.currentTime =
|
|
676
|
-
const
|
|
677
|
-
|
|
727
|
+
}); e < (r?.duration || 0); ) {
|
|
728
|
+
r && (r.currentTime = e), await new Promise((l) => i = l);
|
|
729
|
+
const s = document.createElement("canvas"), o = 0.8, c = s.getContext("2d"), f = r?.videoWidth || 0 * o, u = r?.videoHeight || 0 * o, a = 0;
|
|
730
|
+
s.width = r?.videoWidth || 0 * o, s.height = r?.videoHeight || 0 * o, r && c.drawImage(r, 0, 0, f + a, u + a), r = null, n(f === 0 || u === 0 ? "" : s.toDataURL("image/png", 1));
|
|
678
731
|
}
|
|
679
732
|
}));
|
|
680
733
|
});
|
|
681
734
|
}
|
|
682
|
-
function
|
|
683
|
-
return !!(
|
|
735
|
+
function F(t = "") {
|
|
736
|
+
return !!(t && [
|
|
684
737
|
"data:image/",
|
|
685
738
|
"data:video/",
|
|
686
739
|
"data:audio/"
|
|
687
|
-
].find((n) =>
|
|
740
|
+
].find((n) => t.includes(n)));
|
|
688
741
|
}
|
|
689
|
-
function
|
|
690
|
-
return typeof
|
|
742
|
+
function Ae(t) {
|
|
743
|
+
return typeof t == "string" && /^data:(?:image|video|audio)\/[A-Za-z]+;base64,[A-Za-z0-9+/=]+$/.test(t);
|
|
691
744
|
}
|
|
692
|
-
function
|
|
693
|
-
|
|
745
|
+
function be(t, e, n, r = !1) {
|
|
746
|
+
t && e && n && t.addEventListener(e, n, r);
|
|
694
747
|
}
|
|
695
|
-
function
|
|
696
|
-
|
|
748
|
+
function Se(t, e, n, r = !1) {
|
|
749
|
+
t && e && n && t.removeEventListener(e, n, r);
|
|
697
750
|
}
|
|
698
|
-
function
|
|
751
|
+
function xe() {
|
|
699
752
|
return /windows|win32/i.test(navigator.userAgent);
|
|
700
753
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
754
|
+
function Oe(t) {
|
|
755
|
+
return D(t) ? t : !!t;
|
|
703
756
|
}
|
|
704
|
-
function
|
|
705
|
-
const n = `^\\d+(?:\\.\\d{0,${
|
|
757
|
+
function M(t, e) {
|
|
758
|
+
const n = `^\\d+(?:\\.\\d{0,${t}})?`, r = new RegExp(n), i = e.toString().match(r);
|
|
706
759
|
if (i) {
|
|
707
|
-
const
|
|
708
|
-
if (
|
|
709
|
-
const [
|
|
710
|
-
if (/^0*$/.test(
|
|
711
|
-
return
|
|
760
|
+
const s = i[0];
|
|
761
|
+
if (s.includes(".")) {
|
|
762
|
+
const [o, c] = s.split(".");
|
|
763
|
+
if (/^0*$/.test(c))
|
|
764
|
+
return o;
|
|
712
765
|
}
|
|
713
|
-
return
|
|
766
|
+
return s;
|
|
714
767
|
}
|
|
715
|
-
return
|
|
768
|
+
return e.toString();
|
|
716
769
|
}
|
|
717
|
-
function
|
|
718
|
-
const { toChinese: n = !1, fixed: r = 2, min: i = 1e4 } =
|
|
719
|
-
if (!
|
|
770
|
+
function je(t, e) {
|
|
771
|
+
const { toChinese: n = !1, fixed: r = 2, min: i = 1e4 } = e || {}, s = h(i) ? i : 1e4, o = h(r) ? r : 2, c = n ? t < s ? "" : t < 1e8 ? "万" : "亿" : t < s ? "" : t < 1e8 ? "w" : "亿";
|
|
772
|
+
if (!h(t))
|
|
720
773
|
return {
|
|
721
|
-
str: `${
|
|
722
|
-
number: `${
|
|
774
|
+
str: `${t}`,
|
|
775
|
+
number: `${t}`
|
|
723
776
|
};
|
|
724
|
-
if (
|
|
777
|
+
if (t < s)
|
|
725
778
|
return {
|
|
726
|
-
str: `${
|
|
727
|
-
number: `${
|
|
779
|
+
str: `${t}`,
|
|
780
|
+
number: `${t}`
|
|
728
781
|
};
|
|
729
|
-
if (
|
|
730
|
-
const u = (
|
|
782
|
+
if (o === 0) {
|
|
783
|
+
const u = (t / (t < 1e8 ? 1e4 : 1e8)).toFixed(1).split(".")[0];
|
|
731
784
|
return {
|
|
732
|
-
str: `${u}${
|
|
785
|
+
str: `${u}${c}`,
|
|
733
786
|
number: u,
|
|
734
|
-
unit:
|
|
787
|
+
unit: c
|
|
735
788
|
};
|
|
736
789
|
}
|
|
737
|
-
let
|
|
738
|
-
return
|
|
739
|
-
str:
|
|
740
|
-
number:
|
|
741
|
-
unit:
|
|
742
|
-
}) : (
|
|
743
|
-
str:
|
|
744
|
-
number:
|
|
745
|
-
unit:
|
|
790
|
+
let f;
|
|
791
|
+
return t < 1e8 ? (f = M(o, t / 1e4), {
|
|
792
|
+
str: f + c,
|
|
793
|
+
number: f,
|
|
794
|
+
unit: c
|
|
795
|
+
}) : (f = M(o, t / 1e8), {
|
|
796
|
+
str: f + c,
|
|
797
|
+
number: f,
|
|
798
|
+
unit: c
|
|
746
799
|
});
|
|
747
800
|
}
|
|
748
|
-
function
|
|
801
|
+
function Ie(t, e) {
|
|
749
802
|
let n = 0;
|
|
750
|
-
const r =
|
|
803
|
+
const r = D(e.removeAfter) ? e.removeAfter : !0, i = e.id || "hiddenElement", s = {
|
|
751
804
|
opacity: 0,
|
|
752
805
|
visibility: "hidden",
|
|
753
806
|
position: "fixed",
|
|
@@ -755,304 +808,327 @@ function je(e, t) {
|
|
|
755
808
|
top: 0,
|
|
756
809
|
left: 0
|
|
757
810
|
};
|
|
758
|
-
let
|
|
759
|
-
if (!
|
|
760
|
-
const
|
|
761
|
-
|
|
811
|
+
let o = document.querySelector(`#${i}`);
|
|
812
|
+
if (!o) {
|
|
813
|
+
const f = document.createElement("div");
|
|
814
|
+
f.id = i, document.body.appendChild(f), o = document.querySelector(`#${i}`);
|
|
762
815
|
}
|
|
763
|
-
Object.assign(
|
|
764
|
-
const
|
|
765
|
-
return
|
|
766
|
-
}
|
|
767
|
-
function
|
|
768
|
-
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
const r = (
|
|
772
|
-
const
|
|
773
|
-
let
|
|
774
|
-
for (let u = 0; u <
|
|
775
|
-
|
|
776
|
-
return
|
|
777
|
-
}, i = Math.floor(
|
|
778
|
-
let
|
|
779
|
-
return
|
|
780
|
-
}
|
|
781
|
-
function
|
|
782
|
-
Object.keys(
|
|
783
|
-
|
|
816
|
+
Object.assign(o.style, s);
|
|
817
|
+
const c = document.createElement(e.createName || "span");
|
|
818
|
+
return c.innerHTML = t, (e.cssObject || m(e.cssObject)) && Object.assign(c.style, e.cssObject), o.append(c), n = c.getBoundingClientRect()[e.type || "width"], r && o.removeChild(c), n;
|
|
819
|
+
}
|
|
820
|
+
function Ue(t) {
|
|
821
|
+
t = h(t) && !Number.isNaN(t) ? t : 0;
|
|
822
|
+
const e = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"], n = ["", "十", "百", "千", "万"];
|
|
823
|
+
t = Number.parseInt(`${t}`);
|
|
824
|
+
const r = (o) => {
|
|
825
|
+
const c = o.toString().split("").reverse();
|
|
826
|
+
let f = "";
|
|
827
|
+
for (let u = 0; u < c.length; u++)
|
|
828
|
+
f = (u === 0 && c[u] === "0" || u > 0 && c[u] === "0" && c[u - 1] === "0" ? "" : (t < 20 && u > 0 ? "" : e[c[u]]) + (c[u] === "0" ? n[0] : n[u])) + f;
|
|
829
|
+
return f;
|
|
830
|
+
}, i = Math.floor(t / 1e4);
|
|
831
|
+
let s = t % 1e4;
|
|
832
|
+
return s.toString().length < 4 && (s = "0" + s), i ? r(i) + "万" + r(s) : r(t);
|
|
833
|
+
}
|
|
834
|
+
function Re(t, e) {
|
|
835
|
+
Object.keys(t).forEach((n) => {
|
|
836
|
+
e(n, t[n]);
|
|
784
837
|
});
|
|
785
838
|
}
|
|
786
|
-
function
|
|
787
|
-
const i = n -
|
|
788
|
-
return
|
|
839
|
+
function Lt(t, e, n, r) {
|
|
840
|
+
const i = n - e;
|
|
841
|
+
return t /= r / 2, t < 1 ? i / 2 * t * t * t + e : i / 2 * ((t -= 2) * t * t + 2) + e;
|
|
789
842
|
}
|
|
790
|
-
function
|
|
791
|
-
const { getContainer: n = () => window, callback: r, duration: i = 450 } =
|
|
792
|
-
const
|
|
793
|
-
I(
|
|
843
|
+
function Ee(t, e = {}) {
|
|
844
|
+
const { getContainer: n = () => window, callback: r, duration: i = 450 } = e, s = n(), o = K(s, !0), c = Date.now(), f = () => {
|
|
845
|
+
const a = Date.now() - c, l = Lt(a > i ? i : a, o, t, i);
|
|
846
|
+
I(s) ? s.scrollTo(window.pageXOffset, l) : s instanceof HTMLDocument || s.constructor.name === "HTMLDocument" ? s.documentElement.scrollTop = l : s.scrollTop = l, a < i ? U(f) : typeof r == "function" && r();
|
|
794
847
|
};
|
|
795
|
-
|
|
848
|
+
s && U(f);
|
|
796
849
|
}
|
|
797
|
-
function
|
|
798
|
-
let
|
|
850
|
+
function Be(t) {
|
|
851
|
+
let e;
|
|
799
852
|
const n = (i) => () => {
|
|
800
|
-
|
|
853
|
+
e = null, t(...i);
|
|
801
854
|
}, r = (...i) => {
|
|
802
|
-
|
|
855
|
+
e == null && (e = requestAnimationFrame(n(i)));
|
|
803
856
|
};
|
|
804
|
-
return r.cancel = () => cancelAnimationFrame(
|
|
857
|
+
return r.cancel = () => cancelAnimationFrame(e), r;
|
|
805
858
|
}
|
|
806
|
-
const
|
|
807
|
-
function
|
|
808
|
-
if (
|
|
859
|
+
const Mt = typeof process < "u" && process.versions != null && process.versions.node != null, De = () => process.env.NODE_ENV === "TEST" ? !0 : typeof window < "u" && typeof window.document < "u" && typeof window.matchMedia < "u" && !Mt;
|
|
860
|
+
function j(t, e, n, r) {
|
|
861
|
+
if (t === e)
|
|
809
862
|
return !0;
|
|
810
|
-
if (
|
|
811
|
-
if (
|
|
863
|
+
if (t && e && typeof t == "object" && typeof e == "object") {
|
|
864
|
+
if (t.constructor !== e.constructor)
|
|
812
865
|
return !1;
|
|
813
|
-
let i,
|
|
814
|
-
if (Array.isArray(
|
|
815
|
-
if (i =
|
|
866
|
+
let i, s, o;
|
|
867
|
+
if (Array.isArray(t)) {
|
|
868
|
+
if (i = t.length, i != e.length)
|
|
816
869
|
return !1;
|
|
817
|
-
for (
|
|
818
|
-
if (!
|
|
870
|
+
for (s = i; s-- !== 0; )
|
|
871
|
+
if (!j(t[s], e[s], n, r))
|
|
819
872
|
return !1;
|
|
820
873
|
return !0;
|
|
821
874
|
}
|
|
822
|
-
if (
|
|
823
|
-
if (
|
|
875
|
+
if (t instanceof Map && e instanceof Map) {
|
|
876
|
+
if (t.size !== e.size)
|
|
824
877
|
return !1;
|
|
825
|
-
for (
|
|
826
|
-
if (!
|
|
878
|
+
for (s of t.entries())
|
|
879
|
+
if (!e.has(s[0]))
|
|
827
880
|
return !1;
|
|
828
|
-
for (
|
|
829
|
-
if (!
|
|
881
|
+
for (s of t.entries())
|
|
882
|
+
if (!j(s[1], e.get(s[0]), n, r))
|
|
830
883
|
return !1;
|
|
831
884
|
return !0;
|
|
832
885
|
}
|
|
833
|
-
if (
|
|
834
|
-
if (
|
|
886
|
+
if (t instanceof Set && e instanceof Set) {
|
|
887
|
+
if (t.size !== e.size)
|
|
835
888
|
return !1;
|
|
836
|
-
for (
|
|
837
|
-
if (!
|
|
889
|
+
for (s of t.entries())
|
|
890
|
+
if (!e.has(s[0]))
|
|
838
891
|
return !1;
|
|
839
892
|
return !0;
|
|
840
893
|
}
|
|
841
|
-
if (ArrayBuffer.isView(
|
|
842
|
-
if (i =
|
|
894
|
+
if (ArrayBuffer.isView(t) && ArrayBuffer.isView(e)) {
|
|
895
|
+
if (i = t.length, i != e.length)
|
|
843
896
|
return !1;
|
|
844
|
-
for (
|
|
845
|
-
if (
|
|
897
|
+
for (s = i; s-- !== 0; )
|
|
898
|
+
if (t[s] !== e[s])
|
|
846
899
|
return !1;
|
|
847
900
|
return !0;
|
|
848
901
|
}
|
|
849
|
-
if (
|
|
850
|
-
return
|
|
851
|
-
if (
|
|
852
|
-
return
|
|
853
|
-
if (
|
|
854
|
-
return
|
|
855
|
-
if (
|
|
902
|
+
if (t.constructor === RegExp)
|
|
903
|
+
return t.source === e.source && t.flags === e.flags;
|
|
904
|
+
if (t.valueOf !== Object.prototype.valueOf && t.valueOf)
|
|
905
|
+
return t.valueOf() === e.valueOf();
|
|
906
|
+
if (t.toString !== Object.prototype.toString && t.toString)
|
|
907
|
+
return t.toString() === e.toString();
|
|
908
|
+
if (o = Object.keys(t), i = o.length, i !== Object.keys(e).length)
|
|
856
909
|
return !1;
|
|
857
|
-
for (
|
|
858
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
910
|
+
for (s = i; s-- !== 0; )
|
|
911
|
+
if (!Object.prototype.hasOwnProperty.call(e, o[s]))
|
|
859
912
|
return !1;
|
|
860
|
-
for (
|
|
861
|
-
const
|
|
862
|
-
if (!n?.includes(
|
|
863
|
-
return r && console.log(
|
|
913
|
+
for (s = i; s-- !== 0; ) {
|
|
914
|
+
const c = o[s];
|
|
915
|
+
if (!n?.includes(c) && !(c === "_owner" && t.$$typeof) && !j(t[c], e[c], n, r))
|
|
916
|
+
return r && console.log(c), !1;
|
|
864
917
|
}
|
|
865
918
|
return !0;
|
|
866
919
|
}
|
|
867
|
-
return
|
|
920
|
+
return t !== t && e !== e;
|
|
868
921
|
}
|
|
869
|
-
function
|
|
870
|
-
return /\w.(?:png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(
|
|
922
|
+
function Ne(t) {
|
|
923
|
+
return /\w.(?:png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(t);
|
|
871
924
|
}
|
|
872
|
-
const
|
|
873
|
-
if (!
|
|
925
|
+
const _t = (t) => t == null, Fe = (t) => {
|
|
926
|
+
if (!t || !t.startsWith("http"))
|
|
874
927
|
return !1;
|
|
875
928
|
try {
|
|
876
|
-
return !!new URL(
|
|
877
|
-
} catch (
|
|
878
|
-
return console.error("isUrl error",
|
|
929
|
+
return !!new URL(t);
|
|
930
|
+
} catch (e) {
|
|
931
|
+
return console.error("isUrl error", e), !1;
|
|
879
932
|
}
|
|
880
|
-
}, ft = (...e) => {
|
|
881
|
-
const t = {}, n = e.length;
|
|
882
|
-
let r, i = 0;
|
|
883
|
-
for (; i < n; i += 1)
|
|
884
|
-
for (r in e[i])
|
|
885
|
-
Object.prototype.hasOwnProperty.call(e[i], r) && (typeof t[r] == "object" && typeof e[i][r] == "object" && t[r] !== void 0 && t[r] !== null && !Array.isArray(t[r]) && !Array.isArray(e[i][r]) ? t[r] = {
|
|
886
|
-
...t[r],
|
|
887
|
-
...e[i][r]
|
|
888
|
-
} : t[r] = e[i][r]);
|
|
889
|
-
return t;
|
|
890
933
|
};
|
|
891
|
-
function
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
934
|
+
function $t(t) {
|
|
935
|
+
return t === "__proto__";
|
|
936
|
+
}
|
|
937
|
+
function g(t, e, n) {
|
|
938
|
+
const r = Object.keys(e);
|
|
939
|
+
for (let i = 0; i < r.length; i++) {
|
|
940
|
+
const s = r[i];
|
|
941
|
+
if ($t(s))
|
|
942
|
+
continue;
|
|
943
|
+
const o = e[s], c = t[s], f = n(c, o, s, t, e);
|
|
944
|
+
f !== void 0 ? t[s] = f : A(o) ? A(c) ? t[s] = g(c, o, n) : t[s] = g({}, o, n) : _t(o) && (t[s] = o);
|
|
896
945
|
}
|
|
946
|
+
return t;
|
|
947
|
+
}
|
|
948
|
+
const Pe = (...t) => {
|
|
949
|
+
const e = {}, n = t.length;
|
|
950
|
+
let r, i = 0;
|
|
951
|
+
for (; i < n; i += 1)
|
|
952
|
+
for (r in t[i])
|
|
953
|
+
Object.prototype.hasOwnProperty.call(t[i], r) && (typeof e[r] == "object" && typeof t[i][r] == "object" && e[r] !== void 0 && e[r] !== null && !Array.isArray(e[r]) && !Array.isArray(t[i][r]) ? e[r] = {
|
|
954
|
+
...e[r],
|
|
955
|
+
...t[i][r]
|
|
956
|
+
} : e[r] = t[i][r]);
|
|
897
957
|
return e;
|
|
958
|
+
};
|
|
959
|
+
function Le(t, e) {
|
|
960
|
+
return g(w(t), e, function n(r, i) {
|
|
961
|
+
if (A(i))
|
|
962
|
+
return A(r) ? g(w(r), i, n) : g({}, i, n);
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
function Me(t, e) {
|
|
966
|
+
return g(t, e, function n(r, i) {
|
|
967
|
+
if (A(i))
|
|
968
|
+
return A(r) ? g(r, i, n) : g({}, i, n);
|
|
969
|
+
});
|
|
898
970
|
}
|
|
899
|
-
let
|
|
900
|
-
const
|
|
971
|
+
let _ = 0;
|
|
972
|
+
const $ = (t = 21) => {
|
|
901
973
|
if (typeof window > "u" || !window.crypto)
|
|
902
|
-
return (
|
|
903
|
-
let
|
|
904
|
-
const n = crypto.getRandomValues(new Uint8Array(
|
|
905
|
-
for (;
|
|
906
|
-
const r = 63 & n[
|
|
907
|
-
|
|
974
|
+
return (_ += 1).toFixed(0);
|
|
975
|
+
let e = "";
|
|
976
|
+
const n = crypto.getRandomValues(new Uint8Array(t));
|
|
977
|
+
for (; t--; ) {
|
|
978
|
+
const r = 63 & n[t];
|
|
979
|
+
e += r < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r < 63 ? "_" : "-";
|
|
908
980
|
}
|
|
909
|
-
return
|
|
910
|
-
},
|
|
911
|
-
if (
|
|
912
|
-
return e;
|
|
913
|
-
}, lt = (e) => {
|
|
914
|
-
const t = {};
|
|
915
|
-
if (Object.keys(e || {}).forEach((n) => {
|
|
916
|
-
e[n] !== void 0 && (t[n] = e[n]);
|
|
917
|
-
}), !(Object.keys(t).length < 1))
|
|
981
|
+
return e;
|
|
982
|
+
}, _e = () => typeof window > "u" ? $() : window.crypto && window.crypto.randomUUID && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : $(), $e = (t) => {
|
|
983
|
+
if (t && t !== !0)
|
|
918
984
|
return t;
|
|
919
|
-
},
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}),
|
|
985
|
+
}, ve = (t) => {
|
|
986
|
+
const e = {};
|
|
987
|
+
if (Object.keys(t || {}).forEach((n) => {
|
|
988
|
+
t[n] !== void 0 && (e[n] = t[n]);
|
|
989
|
+
}), !(Object.keys(e).length < 1))
|
|
990
|
+
return e;
|
|
991
|
+
}, We = (t) => {
|
|
992
|
+
const e = {};
|
|
993
|
+
return Object.keys(t || {}).forEach((n) => {
|
|
994
|
+
Array.isArray(t[n]) && t[n]?.length === 0 || t[n] !== void 0 && (e[n] = t[n]);
|
|
995
|
+
}), e;
|
|
924
996
|
};
|
|
925
|
-
function
|
|
926
|
-
if (!(typeof
|
|
927
|
-
return Array.isArray(
|
|
997
|
+
function ze(t) {
|
|
998
|
+
if (!(typeof t != "string" && !Array.isArray(t)))
|
|
999
|
+
return Array.isArray(t) ? t[t.length - 1] : t.split(":")?.slice(-1)[0];
|
|
928
1000
|
}
|
|
929
|
-
function
|
|
930
|
-
return
|
|
1001
|
+
function vt(t) {
|
|
1002
|
+
return t && (t.type === q || t.type === v && t.children.length === 0 || t.type === Text && t.children.trim() === "");
|
|
931
1003
|
}
|
|
932
|
-
function
|
|
933
|
-
return
|
|
1004
|
+
function Ve(t, e) {
|
|
1005
|
+
return E(typeof t[e] == "function" ? t[e]?.() : []);
|
|
934
1006
|
}
|
|
935
|
-
function
|
|
936
|
-
const n = Array.isArray(
|
|
1007
|
+
function E(t = [], e = !0) {
|
|
1008
|
+
const n = Array.isArray(t) ? t : [t], r = [];
|
|
937
1009
|
return n.forEach((i) => {
|
|
938
|
-
Array.isArray(i) ? r.push(...
|
|
1010
|
+
Array.isArray(i) ? r.push(...E(i, e)) : i?.type === v || i?.type === "template" ? r.push(...E(i.children, e)) : i && B(i) ? e && !vt(i) ? r.push(i) : e || r.push(i) : jt(i) && r.push(i);
|
|
939
1011
|
}), r;
|
|
940
1012
|
}
|
|
941
|
-
function
|
|
942
|
-
return
|
|
943
|
-
}
|
|
944
|
-
function he(e, ...t) {
|
|
945
|
-
const { slots: n, key: r = "default", render: i, props: o, defaultChildren: f } = e;
|
|
946
|
-
let s;
|
|
947
|
-
const c = o[r], u = n?.[r], l = typeof f == "function" ? f?.() : f;
|
|
948
|
-
return c === !1 ? s = !1 : c === !0 ? s = u ?? l : h(c) && i ? U(c) ? s = c : s = u : s = c || u, s === !1 ? !1 : i ? b({ vnode: s, defaultVNode: l }, ...t) : s;
|
|
1013
|
+
function H({ vnode: t, defaultVNode: e }, ...n) {
|
|
1014
|
+
return t === !1 ? null : typeof t == "function" ? t?.(...n) : t || e;
|
|
949
1015
|
}
|
|
950
|
-
function
|
|
951
|
-
const { slots: n, key: r = "default",
|
|
952
|
-
let
|
|
953
|
-
const
|
|
954
|
-
return
|
|
955
|
-
}
|
|
956
|
-
function
|
|
957
|
-
const { slots: n,
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1016
|
+
function Wt(t, ...e) {
|
|
1017
|
+
const { slots: n, key: r = "default", render: i, props: s, defaultChildren: o } = t;
|
|
1018
|
+
let c;
|
|
1019
|
+
const f = s[r], u = n?.[r], a = typeof o == "function" ? o?.() : o;
|
|
1020
|
+
return f === !1 ? c = !1 : f === !0 ? c = u ?? a : m(f) && i ? B(f) ? c = f : c = u : c = f || u, c === !1 ? !1 : i ? H({ vnode: c, defaultVNode: a }, ...e) : c;
|
|
1021
|
+
}
|
|
1022
|
+
function zt(t, ...e) {
|
|
1023
|
+
const { slots: n, key: r = "default", props: i, defaultChildren: s } = t;
|
|
1024
|
+
let o;
|
|
1025
|
+
const c = i[r], f = n?.[r]?.(...e), u = typeof s == "function" ? s?.() : s;
|
|
1026
|
+
return c === !1 ? o = !1 : c === !0 ? o = f ?? u : m(c) ? B(c) ? o = c : o = f : o = c || f, o === !1 ? !1 : H({ vnode: o, defaultVNode: u }, ...e);
|
|
1027
|
+
}
|
|
1028
|
+
function He(t, ...e) {
|
|
1029
|
+
const { slots: n, props: r, keys: i, render: s, defaultVNodes: o } = t, c = {};
|
|
1030
|
+
return i.forEach((f, u) => {
|
|
1031
|
+
const a = o ? o[u] : null, l = s ? zt({ slots: n, props: r, key: f, defaultChildren: a }, ...e) : Wt({ slots: n, props: r, key: f, render: !1, defaultChildren: a }, ...e);
|
|
1032
|
+
(D(l) || l) && (c[f] = l);
|
|
1033
|
+
}), c;
|
|
962
1034
|
}
|
|
963
1035
|
export {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1036
|
+
Ht as Base64,
|
|
1037
|
+
ce as arrayRepeat,
|
|
1038
|
+
ie as arraySlice,
|
|
1039
|
+
me as blobToDataURL,
|
|
1040
|
+
b as checkFileType,
|
|
1041
|
+
Y as classNames,
|
|
1042
|
+
w as cloneDeep,
|
|
1043
|
+
Qt as cloneDeepWith,
|
|
1044
|
+
y as cloneDeepWithImpl,
|
|
1045
|
+
It as compareArray,
|
|
1046
|
+
oe as compareArraySort,
|
|
1047
|
+
se as compareArrayTimeSort,
|
|
1048
|
+
Ut as compareTime,
|
|
1049
|
+
Oe as convertValueBoolean,
|
|
1050
|
+
d as copyProperties,
|
|
1051
|
+
ye as dataURLtoBlob,
|
|
1052
|
+
he as dataURLtoFile,
|
|
1053
|
+
ee as deepCopy,
|
|
1054
|
+
Le as deepMerge,
|
|
1055
|
+
S as fileTypes,
|
|
1056
|
+
E as filterEmpty,
|
|
1057
|
+
Dt as filterTree,
|
|
1058
|
+
Nt as findSourceByTree,
|
|
1059
|
+
le as findValueAndAncestors,
|
|
1060
|
+
Re as forInObject,
|
|
1061
|
+
ue as formatDuration,
|
|
1062
|
+
M as formatNumber,
|
|
1063
|
+
Ct as genColumnKey,
|
|
1064
|
+
L as generateVideoPicture,
|
|
1065
|
+
de as getArrayLast,
|
|
1066
|
+
ge as getBase64,
|
|
1067
|
+
pe as getBlobUrl,
|
|
994
1068
|
R as getFileSuffix,
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1069
|
+
ze as getKeys,
|
|
1070
|
+
Bt as getLevelData,
|
|
1071
|
+
Et as getMaxFloor,
|
|
1072
|
+
Pt as getMediaInfos,
|
|
1073
|
+
kt as getPrefixCls,
|
|
1074
|
+
Rt as getRandomNumber,
|
|
1075
|
+
K as getScroll,
|
|
1076
|
+
Yt as getScrollContainer,
|
|
1077
|
+
Wt as getSlot,
|
|
1078
|
+
zt as getSlotVNode,
|
|
1079
|
+
Ve as getSlotsChildren,
|
|
1080
|
+
He as getSlotsProps,
|
|
1081
|
+
ne as getSortIndex,
|
|
1008
1082
|
k as getSymbols,
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1083
|
+
Ie as getTextWidth,
|
|
1084
|
+
Xt as getValueFromObjectByKey,
|
|
1085
|
+
we as getVideoCoverPicture,
|
|
1086
|
+
Ft as getVideoFileUrl,
|
|
1087
|
+
re as handleCurrentPage,
|
|
1088
|
+
fe as handleEmptyField,
|
|
1089
|
+
Tt as handleShowIndex,
|
|
1090
|
+
J as is,
|
|
1091
|
+
p as isArray,
|
|
1092
|
+
F as isBase64,
|
|
1093
|
+
D as isBoolean,
|
|
1094
|
+
De as isBrowser,
|
|
1095
|
+
Ae as isDataURLBase64,
|
|
1096
|
+
j as isDeepEqualReact,
|
|
1097
|
+
vt as isEmptyElement,
|
|
1098
|
+
qt as isFunction,
|
|
1099
|
+
Ne as isImg,
|
|
1100
|
+
Gt as isInContainer,
|
|
1101
|
+
Jt as isJSONStr,
|
|
1102
|
+
Zt as isMobile,
|
|
1103
|
+
_t as isNil,
|
|
1104
|
+
Kt as isNotNil,
|
|
1105
|
+
h as isNumber,
|
|
1106
|
+
m as isObject,
|
|
1107
|
+
A as isPlainObject,
|
|
1108
|
+
T as isPrimitive,
|
|
1109
|
+
Q as isScroll,
|
|
1110
|
+
x as isServer,
|
|
1111
|
+
Z as isString,
|
|
1112
|
+
X as isTablet,
|
|
1113
|
+
tt as isTypedArray,
|
|
1114
|
+
Fe as isUrl,
|
|
1115
|
+
jt as isValid,
|
|
1116
|
+
xe as isWindowsOs,
|
|
1117
|
+
Pe as merge,
|
|
1118
|
+
g as mergeWith,
|
|
1119
|
+
_e as nanoid,
|
|
1120
|
+
Se as off,
|
|
1121
|
+
$e as omitBoolean,
|
|
1122
|
+
ve as omitUndefined,
|
|
1123
|
+
We as omitUndefinedAndEmptyArr,
|
|
1124
|
+
be as on,
|
|
1125
|
+
U as raf,
|
|
1126
|
+
te as runFunction,
|
|
1127
|
+
Ee as scrollTo,
|
|
1128
|
+
H as slotRender,
|
|
1129
|
+
Be as throttleByAnimationFrame,
|
|
1130
|
+
Ue as toChinesNum,
|
|
1131
|
+
je as toConvertNumberShow,
|
|
1132
|
+
ae as treeData,
|
|
1133
|
+
Me as useDeepMerge
|
|
1058
1134
|
};
|