@fsystem/fswt-ui-tools 0.3.7 → 0.3.9
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/fswt-ui-tools.es.js +144 -105
- package/dist/fswt-ui-tools.umd.js +4 -4
- package/dist/types/tools/Util.d.ts +12 -0
- package/package.json +39 -39
package/dist/fswt-ui-tools.es.js
CHANGED
|
@@ -410,9 +410,9 @@ function zt() {
|
|
|
410
410
|
return 1;
|
|
411
411
|
if (a >>>= 0, g >>>= 0, E >>>= 0, k >>>= 0, this === n)
|
|
412
412
|
return 0;
|
|
413
|
-
for (var C = k - E, T = g - a, U = Math.min(C, T), I = this.slice(E, k),
|
|
414
|
-
if (I[D] !==
|
|
415
|
-
C = I[D], T =
|
|
413
|
+
for (var C = k - E, T = g - a, U = Math.min(C, T), I = this.slice(E, k), H = n.slice(a, g), D = 0; D < U; ++D)
|
|
414
|
+
if (I[D] !== H[D]) {
|
|
415
|
+
C = I[D], T = H[D];
|
|
416
416
|
break;
|
|
417
417
|
}
|
|
418
418
|
return C < T ? -1 : T < C ? 1 : 0;
|
|
@@ -447,13 +447,13 @@ function zt() {
|
|
|
447
447
|
}
|
|
448
448
|
var I;
|
|
449
449
|
if (E) {
|
|
450
|
-
var
|
|
450
|
+
var H = -1;
|
|
451
451
|
for (I = a; I < C; I++)
|
|
452
|
-
if (U(l, I) === U(n,
|
|
453
|
-
if (
|
|
454
|
-
return
|
|
452
|
+
if (U(l, I) === U(n, H === -1 ? 0 : I - H)) {
|
|
453
|
+
if (H === -1 && (H = I), I - H + 1 === T)
|
|
454
|
+
return H * k;
|
|
455
455
|
} else
|
|
456
|
-
|
|
456
|
+
H !== -1 && (I -= I - H), H = -1;
|
|
457
457
|
} else
|
|
458
458
|
for (a + T > C && (a = C - T), I = a; I >= 0; I--) {
|
|
459
459
|
for (var D = !0, Ce = 0; Ce < T; Ce++)
|
|
@@ -551,7 +551,7 @@ function zt() {
|
|
|
551
551
|
for (var g = [], E = n; E < a; ) {
|
|
552
552
|
var k = l[E], C = null, T = k > 239 ? 4 : k > 223 ? 3 : k > 191 ? 2 : 1;
|
|
553
553
|
if (E + T <= a) {
|
|
554
|
-
var U, I,
|
|
554
|
+
var U, I, H, D;
|
|
555
555
|
switch (T) {
|
|
556
556
|
case 1:
|
|
557
557
|
k < 128 && (C = k);
|
|
@@ -563,7 +563,7 @@ function zt() {
|
|
|
563
563
|
U = l[E + 1], I = l[E + 2], (U & 192) === 128 && (I & 192) === 128 && (D = (k & 15) << 12 | (U & 63) << 6 | I & 63, D > 2047 && (D < 55296 || D > 57343) && (C = D));
|
|
564
564
|
break;
|
|
565
565
|
case 4:
|
|
566
|
-
U = l[E + 1], I = l[E + 2],
|
|
566
|
+
U = l[E + 1], I = l[E + 2], H = l[E + 3], (U & 192) === 128 && (I & 192) === 128 && (H & 192) === 128 && (D = (k & 15) << 18 | (U & 63) << 12 | (I & 63) << 6 | H & 63, D > 65535 && D < 1114112 && (C = D));
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
C === null ? (C = 65533, T = 1) : C > 65535 && (C -= 65536, g.push(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), g.push(C), E += T;
|
|
@@ -960,7 +960,7 @@ function pr() {
|
|
|
960
960
|
return this.decoder.end();
|
|
961
961
|
}, Ae;
|
|
962
962
|
}
|
|
963
|
-
var qe = {},
|
|
963
|
+
var qe = {}, He = {}, Te = { exports: {} };
|
|
964
964
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
965
965
|
var gt;
|
|
966
966
|
function dr() {
|
|
@@ -997,7 +997,7 @@ function dr() {
|
|
|
997
997
|
var bt;
|
|
998
998
|
function mr() {
|
|
999
999
|
if (bt)
|
|
1000
|
-
return
|
|
1000
|
+
return He;
|
|
1001
1001
|
bt = 1;
|
|
1002
1002
|
var t = dr().Buffer, e = t.isEncoding || function(p) {
|
|
1003
1003
|
switch (p = "" + p, p && p.toLowerCase()) {
|
|
@@ -1049,7 +1049,7 @@ function mr() {
|
|
|
1049
1049
|
throw new Error("Unknown encoding: " + p);
|
|
1050
1050
|
return w || p;
|
|
1051
1051
|
}
|
|
1052
|
-
|
|
1052
|
+
He.StringDecoder = s;
|
|
1053
1053
|
function s(p) {
|
|
1054
1054
|
this.encoding = i(p);
|
|
1055
1055
|
var w;
|
|
@@ -1159,15 +1159,15 @@ function mr() {
|
|
|
1159
1159
|
function S(p) {
|
|
1160
1160
|
return p && p.length ? this.write(p) : "";
|
|
1161
1161
|
}
|
|
1162
|
-
return
|
|
1162
|
+
return He;
|
|
1163
1163
|
}
|
|
1164
|
-
var
|
|
1164
|
+
var Ve, wt;
|
|
1165
1165
|
function xr() {
|
|
1166
1166
|
if (wt)
|
|
1167
|
-
return
|
|
1167
|
+
return Ve;
|
|
1168
1168
|
wt = 1;
|
|
1169
1169
|
var t = oe().Buffer;
|
|
1170
|
-
|
|
1170
|
+
Ve = {
|
|
1171
1171
|
// Encodings
|
|
1172
1172
|
utf8: { type: "_internal", bomAware: !0 },
|
|
1173
1173
|
cesu8: { type: "_internal", bomAware: !0 },
|
|
@@ -1234,7 +1234,7 @@ function xr() {
|
|
|
1234
1234
|
}, f.prototype.end = function() {
|
|
1235
1235
|
var m = 0;
|
|
1236
1236
|
return this.contBytes > 0 && (m += this.defaultCharUnicode), m;
|
|
1237
|
-
},
|
|
1237
|
+
}, Ve;
|
|
1238
1238
|
}
|
|
1239
1239
|
var te = {}, yt;
|
|
1240
1240
|
function gr() {
|
|
@@ -11757,8 +11757,16 @@ function nt(t, e, r) {
|
|
|
11757
11757
|
return -1;
|
|
11758
11758
|
}
|
|
11759
11759
|
function zr(t, e, r) {
|
|
11760
|
-
|
|
11761
|
-
|
|
11760
|
+
if (!Array.isArray(r) || r.length === 0)
|
|
11761
|
+
return [];
|
|
11762
|
+
const i = Math.max(1, parseInt(t) || 1), s = Math.max(1, parseInt(e) || 10);
|
|
11763
|
+
if (i < 1 || s < 1 || r.length === 0)
|
|
11764
|
+
return [];
|
|
11765
|
+
const u = (i - 1) * s;
|
|
11766
|
+
if (u >= r.length)
|
|
11767
|
+
return [];
|
|
11768
|
+
const h = Math.min(u + s, r.length);
|
|
11769
|
+
return r.slice(u, h);
|
|
11762
11770
|
}
|
|
11763
11771
|
function jr(t, e) {
|
|
11764
11772
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -11774,7 +11782,7 @@ function qr(t, e, r) {
|
|
|
11774
11782
|
return r === 0 ? u < h ? -1 : u > h ? 1 : 0 : u < h ? 1 : u > h ? -1 : 0;
|
|
11775
11783
|
});
|
|
11776
11784
|
}
|
|
11777
|
-
function
|
|
11785
|
+
function Hr(t) {
|
|
11778
11786
|
for (var e = [], r = {}, i = 0; i < t.length; i++) {
|
|
11779
11787
|
var s = Object.keys(t[i]);
|
|
11780
11788
|
s.sort(function(f, m) {
|
|
@@ -11786,7 +11794,7 @@ function Vr(t) {
|
|
|
11786
11794
|
}
|
|
11787
11795
|
return e;
|
|
11788
11796
|
}
|
|
11789
|
-
function
|
|
11797
|
+
function Vr(t, e) {
|
|
11790
11798
|
for (var r = t.length, i = 0; i < r; i++)
|
|
11791
11799
|
if (t[i] === e)
|
|
11792
11800
|
return i === 0 ? (t.shift(), t) : i === r - 1 ? (t.pop(), t) : (t.splice(i, 1), t);
|
|
@@ -11881,11 +11889,11 @@ async function ni(t, e, r, i, s, u) {
|
|
|
11881
11889
|
const h = t.slice(0), f = h.filter((m, x) => x >= r * s && x < i * s).map(async (m, x) => (m[e] = await u(m), 1));
|
|
11882
11890
|
return await Promise.all(f), h;
|
|
11883
11891
|
}
|
|
11884
|
-
const
|
|
11892
|
+
const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11885
11893
|
__proto__: null,
|
|
11886
11894
|
average: ei,
|
|
11887
11895
|
buildTree: ri,
|
|
11888
|
-
deteleObject:
|
|
11896
|
+
deteleObject: Vr,
|
|
11889
11897
|
findNode: $r,
|
|
11890
11898
|
find_csa: nt,
|
|
11891
11899
|
getArrRepeat: Yr,
|
|
@@ -11902,7 +11910,7 @@ const Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11902
11910
|
sum: Qr,
|
|
11903
11911
|
union: Gr,
|
|
11904
11912
|
unique: Wr,
|
|
11905
|
-
uniqueObject:
|
|
11913
|
+
uniqueObject: Hr,
|
|
11906
11914
|
uniqueObjectByKey: jr
|
|
11907
11915
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11908
11916
|
function ai(t) {
|
|
@@ -11944,7 +11952,7 @@ function ai(t) {
|
|
|
11944
11952
|
r.body.slice(i + 26, i + s + 26)
|
|
11945
11953
|
);
|
|
11946
11954
|
}
|
|
11947
|
-
const
|
|
11955
|
+
const Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11948
11956
|
__proto__: null,
|
|
11949
11957
|
getFileVersion: ai
|
|
11950
11958
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -11961,7 +11969,7 @@ function si(t, e) {
|
|
|
11961
11969
|
function oi(t, e, r) {
|
|
11962
11970
|
const i = at(t), s = i[0], u = i[1], h = i[2], f = at(e), m = f[0], x = f[1], o = f[2], c = (m - s) / r, d = (x - u) / r, b = (o - h) / r, _ = [];
|
|
11963
11971
|
for (let y = 0; y < r; y++) {
|
|
11964
|
-
const S =
|
|
11972
|
+
const S = Ht(
|
|
11965
11973
|
"rgb(" + parseInt(c * y + s) + "," + parseInt(d * y + u) + "," + parseInt(b * y + h) + ")"
|
|
11966
11974
|
);
|
|
11967
11975
|
_.push(S);
|
|
@@ -11984,7 +11992,7 @@ function at(t) {
|
|
|
11984
11992
|
} else
|
|
11985
11993
|
return t;
|
|
11986
11994
|
}
|
|
11987
|
-
function
|
|
11995
|
+
function Ht(t) {
|
|
11988
11996
|
const e = t, r = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
11989
11997
|
if (/^(rgb|RGB)/.test(e)) {
|
|
11990
11998
|
const i = e.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
|
|
@@ -12007,10 +12015,10 @@ function Vt(t) {
|
|
|
12007
12015
|
} else
|
|
12008
12016
|
return e;
|
|
12009
12017
|
}
|
|
12010
|
-
const
|
|
12018
|
+
const $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12011
12019
|
__proto__: null,
|
|
12012
12020
|
GetGradientColor: oi,
|
|
12013
|
-
colorHex:
|
|
12021
|
+
colorHex: Ht,
|
|
12014
12022
|
colorRgb: at,
|
|
12015
12023
|
colorToRGBA: si
|
|
12016
12024
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12026,7 +12034,7 @@ function fi(t, e) {
|
|
|
12026
12034
|
var r = new Date(t), i = new Date(e);
|
|
12027
12035
|
return r >= i;
|
|
12028
12036
|
}
|
|
12029
|
-
function
|
|
12037
|
+
function Vt(t, e) {
|
|
12030
12038
|
if (arguments.length === 0)
|
|
12031
12039
|
return null;
|
|
12032
12040
|
const r = e || "{y}-{m}-{d} {h}:{i}:{s}";
|
|
@@ -12049,7 +12057,7 @@ function Ht(t, e) {
|
|
|
12049
12057
|
function ui(t, e) {
|
|
12050
12058
|
("" + t).length === 10 ? t = parseInt(t) * 1e3 : t = +t;
|
|
12051
12059
|
const r = new Date(t), s = (Date.now() - r) / 1e3;
|
|
12052
|
-
return s < 30 ? "刚刚" : s < 3600 ? Math.ceil(s / 60) + "分钟前" : s < 3600 * 24 ? Math.ceil(s / 3600) + "小时前" : s < 3600 * 24 * 2 ? "1天前" : e ?
|
|
12060
|
+
return s < 30 ? "刚刚" : s < 3600 ? Math.ceil(s / 60) + "分钟前" : s < 3600 * 24 ? Math.ceil(s / 3600) + "小时前" : s < 3600 * 24 * 2 ? "1天前" : e ? Vt(t, e) : r.getMonth() + 1 + "月" + r.getDate() + "日" + r.getHours() + "时" + r.getMinutes() + "分";
|
|
12053
12061
|
}
|
|
12054
12062
|
function hi(t) {
|
|
12055
12063
|
return t.getYear() % 4 === 0 && (t.getYear() % 100 !== 0 || t.getYear() % 400 === 0);
|
|
@@ -12200,7 +12208,7 @@ function bi(t, e) {
|
|
|
12200
12208
|
}
|
|
12201
12209
|
return r;
|
|
12202
12210
|
}
|
|
12203
|
-
const
|
|
12211
|
+
const Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12204
12212
|
__proto__: null,
|
|
12205
12213
|
compareDate: fi,
|
|
12206
12214
|
dateAdd: Wt,
|
|
@@ -12213,7 +12221,7 @@ const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12213
12221
|
getTodayDate: mi,
|
|
12214
12222
|
isLeapYear: hi,
|
|
12215
12223
|
maxDayOfDate: xi,
|
|
12216
|
-
parseTime:
|
|
12224
|
+
parseTime: Vt,
|
|
12217
12225
|
strFormatToDate: pi,
|
|
12218
12226
|
timeTohhmmss: di
|
|
12219
12227
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12242,7 +12250,7 @@ function _i(t, e = !1) {
|
|
|
12242
12250
|
const { top: r, left: i, bottom: s, right: u } = t.getBoundingClientRect(), { innerHeight: h, innerWidth: f } = window;
|
|
12243
12251
|
return e ? (r > 0 && r < h || s > 0 && s < h) && (i > 0 && i < f || u > 0 && u < f) : r >= 0 && i >= 0 && s <= h && u <= f;
|
|
12244
12252
|
}
|
|
12245
|
-
const
|
|
12253
|
+
const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12246
12254
|
__proto__: null,
|
|
12247
12255
|
addClass: wi,
|
|
12248
12256
|
elementIsVisibleInViewport: _i,
|
|
@@ -12260,7 +12268,7 @@ function Si(t, ...e) {
|
|
|
12260
12268
|
else
|
|
12261
12269
|
console.warn("func 不是可执行的方法!", t);
|
|
12262
12270
|
}
|
|
12263
|
-
const
|
|
12271
|
+
const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12264
12272
|
__proto__: null,
|
|
12265
12273
|
safeExecuteFunc: Si
|
|
12266
12274
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12306,7 +12314,7 @@ function Bi(t, e, r, i, s) {
|
|
|
12306
12314
|
function Ci(t) {
|
|
12307
12315
|
confirm(t) && (window.opener = null, window.open("", "_self"), window.close());
|
|
12308
12316
|
}
|
|
12309
|
-
const
|
|
12317
|
+
const Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12310
12318
|
__proto__: null,
|
|
12311
12319
|
confirmClosewindow: Ci,
|
|
12312
12320
|
copyTextToClipboard: Ei,
|
|
@@ -12448,10 +12456,10 @@ function Ni(t) {
|
|
|
12448
12456
|
function qi(t) {
|
|
12449
12457
|
return Object.prototype.toString.call(t).slice(8, -1) === "Error";
|
|
12450
12458
|
}
|
|
12451
|
-
function
|
|
12459
|
+
function Hi(t) {
|
|
12452
12460
|
return Object.prototype.toString.call(t).slice(8, -1) === "Symbol";
|
|
12453
12461
|
}
|
|
12454
|
-
function
|
|
12462
|
+
function Vi(t) {
|
|
12455
12463
|
return Object.prototype.toString.call(t).slice(8, -1) === "Promise";
|
|
12456
12464
|
}
|
|
12457
12465
|
function $i(t) {
|
|
@@ -12522,7 +12530,7 @@ function cn(t) {
|
|
|
12522
12530
|
function fn(t) {
|
|
12523
12531
|
return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(t);
|
|
12524
12532
|
}
|
|
12525
|
-
const
|
|
12533
|
+
const Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12526
12534
|
__proto__: null,
|
|
12527
12535
|
checkStr: Ti,
|
|
12528
12536
|
isAbsoluteURL: an,
|
|
@@ -12547,7 +12555,7 @@ const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12547
12555
|
isObject: Zt,
|
|
12548
12556
|
isPC: Ji,
|
|
12549
12557
|
isPhone: fn,
|
|
12550
|
-
isPromise:
|
|
12558
|
+
isPromise: Vi,
|
|
12551
12559
|
isQQBrowser: Zi,
|
|
12552
12560
|
isRegExp: Ni,
|
|
12553
12561
|
isSet: $i,
|
|
@@ -12555,7 +12563,7 @@ const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12555
12563
|
isStandardBrowserEnv: nn,
|
|
12556
12564
|
isStream: tn,
|
|
12557
12565
|
isString: Mi,
|
|
12558
|
-
isSymbol:
|
|
12566
|
+
isSymbol: Hi,
|
|
12559
12567
|
isURL: sn,
|
|
12560
12568
|
isURLSearchParams: rn,
|
|
12561
12569
|
isUndefined: ji,
|
|
@@ -12565,7 +12573,7 @@ function un(t, e) {
|
|
|
12565
12573
|
const i = t.entries().find((s) => s.value === e);
|
|
12566
12574
|
return i === void 0 ? i : i.key;
|
|
12567
12575
|
}
|
|
12568
|
-
const
|
|
12576
|
+
const Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12569
12577
|
__proto__: null,
|
|
12570
12578
|
getKeyByValue: un
|
|
12571
12579
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12606,7 +12614,7 @@ function pn(t) {
|
|
|
12606
12614
|
}
|
|
12607
12615
|
return u === "一十" && (u = "十"), u.match(/^一/) && u.length === 3 && (u = u.replace("一", "")), u;
|
|
12608
12616
|
}
|
|
12609
|
-
const
|
|
12617
|
+
const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12610
12618
|
__proto__: null,
|
|
12611
12619
|
Arab2Roman: ln,
|
|
12612
12620
|
numberToChinese: pn,
|
|
@@ -12629,7 +12637,7 @@ function dn(t, e) {
|
|
|
12629
12637
|
}
|
|
12630
12638
|
return !0;
|
|
12631
12639
|
}
|
|
12632
|
-
const
|
|
12640
|
+
const Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12633
12641
|
__proto__: null,
|
|
12634
12642
|
isObjectEqual: dn,
|
|
12635
12643
|
recursionTreeProp: Yt
|
|
@@ -12638,11 +12646,11 @@ function mn(t) {
|
|
|
12638
12646
|
var e = /\.[^.]+$/.exec(t), r = String(e), i = r.toLowerCase();
|
|
12639
12647
|
return i;
|
|
12640
12648
|
}
|
|
12641
|
-
const
|
|
12649
|
+
const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12642
12650
|
__proto__: null,
|
|
12643
12651
|
getFileExt: mn
|
|
12644
12652
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12645
|
-
class
|
|
12653
|
+
class ts {
|
|
12646
12654
|
constructor(e) {
|
|
12647
12655
|
this.source = e || window.localStorage, this.initRun();
|
|
12648
12656
|
}
|
|
@@ -12794,7 +12802,7 @@ function Cn(t) {
|
|
|
12794
12802
|
e = "," + t.substring(t.length - 3) + e, t = t.substring(0, t.length - 3);
|
|
12795
12803
|
return e = t + e, e;
|
|
12796
12804
|
}
|
|
12797
|
-
const
|
|
12805
|
+
const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12798
12806
|
__proto__: null,
|
|
12799
12807
|
addStrPerLength: Bn,
|
|
12800
12808
|
changeCase: kn,
|
|
@@ -12810,64 +12818,64 @@ const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12810
12818
|
toThousands: Cn,
|
|
12811
12819
|
trim: Sn
|
|
12812
12820
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12813
|
-
function
|
|
12821
|
+
function V(t) {
|
|
12814
12822
|
return new DataView(t.buffer, t.byteOffset);
|
|
12815
12823
|
}
|
|
12816
12824
|
const An = {
|
|
12817
12825
|
len: 1,
|
|
12818
12826
|
get(t, e) {
|
|
12819
|
-
return
|
|
12827
|
+
return V(t).getUint8(e);
|
|
12820
12828
|
},
|
|
12821
12829
|
put(t, e, r) {
|
|
12822
|
-
return
|
|
12830
|
+
return V(t).setUint8(e, r), e + 1;
|
|
12823
12831
|
}
|
|
12824
12832
|
}, L = {
|
|
12825
12833
|
len: 2,
|
|
12826
12834
|
get(t, e) {
|
|
12827
|
-
return
|
|
12835
|
+
return V(t).getUint16(e, !0);
|
|
12828
12836
|
},
|
|
12829
12837
|
put(t, e, r) {
|
|
12830
|
-
return
|
|
12838
|
+
return V(t).setUint16(e, r, !0), e + 2;
|
|
12831
12839
|
}
|
|
12832
12840
|
}, ve = {
|
|
12833
12841
|
len: 2,
|
|
12834
12842
|
get(t, e) {
|
|
12835
|
-
return
|
|
12843
|
+
return V(t).getUint16(e);
|
|
12836
12844
|
},
|
|
12837
12845
|
put(t, e, r) {
|
|
12838
|
-
return
|
|
12846
|
+
return V(t).setUint16(e, r), e + 2;
|
|
12839
12847
|
}
|
|
12840
12848
|
}, j = {
|
|
12841
12849
|
len: 4,
|
|
12842
12850
|
get(t, e) {
|
|
12843
|
-
return
|
|
12851
|
+
return V(t).getUint32(e, !0);
|
|
12844
12852
|
},
|
|
12845
12853
|
put(t, e, r) {
|
|
12846
|
-
return
|
|
12854
|
+
return V(t).setUint32(e, r, !0), e + 4;
|
|
12847
12855
|
}
|
|
12848
12856
|
}, Tn = {
|
|
12849
12857
|
len: 4,
|
|
12850
12858
|
get(t, e) {
|
|
12851
|
-
return
|
|
12859
|
+
return V(t).getUint32(e);
|
|
12852
12860
|
},
|
|
12853
12861
|
put(t, e, r) {
|
|
12854
|
-
return
|
|
12862
|
+
return V(t).setUint32(e, r), e + 4;
|
|
12855
12863
|
}
|
|
12856
12864
|
}, Un = {
|
|
12857
12865
|
len: 4,
|
|
12858
12866
|
get(t, e) {
|
|
12859
|
-
return
|
|
12867
|
+
return V(t).getInt32(e);
|
|
12860
12868
|
},
|
|
12861
12869
|
put(t, e, r) {
|
|
12862
|
-
return
|
|
12870
|
+
return V(t).setInt32(e, r), e + 4;
|
|
12863
12871
|
}
|
|
12864
12872
|
}, On = {
|
|
12865
12873
|
len: 8,
|
|
12866
12874
|
get(t, e) {
|
|
12867
|
-
return
|
|
12875
|
+
return V(t).getBigUint64(e, !0);
|
|
12868
12876
|
},
|
|
12869
12877
|
put(t, e, r) {
|
|
12870
|
-
return
|
|
12878
|
+
return V(t).setBigUint64(e, r, !0), e + 8;
|
|
12871
12879
|
}
|
|
12872
12880
|
};
|
|
12873
12881
|
class re {
|
|
@@ -13231,7 +13239,7 @@ function Nn(t, e) {
|
|
|
13231
13239
|
function qn(t, e) {
|
|
13232
13240
|
return new jn(t, e);
|
|
13233
13241
|
}
|
|
13234
|
-
var Z = Uint8Array, le = Uint16Array,
|
|
13242
|
+
var Z = Uint8Array, le = Uint16Array, Hn = Int32Array, er = new Z([
|
|
13235
13243
|
0,
|
|
13236
13244
|
0,
|
|
13237
13245
|
0,
|
|
@@ -13300,10 +13308,10 @@ var Z = Uint8Array, le = Uint16Array, Vn = Int32Array, er = new Z([
|
|
|
13300
13308
|
/* unused */
|
|
13301
13309
|
0,
|
|
13302
13310
|
0
|
|
13303
|
-
]),
|
|
13311
|
+
]), Vn = new Z([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), rr = function(t, e) {
|
|
13304
13312
|
for (var r = new le(31), i = 0; i < 31; ++i)
|
|
13305
13313
|
r[i] = e += 1 << t[i - 1];
|
|
13306
|
-
for (var s = new
|
|
13314
|
+
for (var s = new Hn(r[30]), i = 1; i < 30; ++i)
|
|
13307
13315
|
for (var u = r[i]; u < r[i + 1]; ++u)
|
|
13308
13316
|
s[u] = u - r[i] << 5 | i;
|
|
13309
13317
|
return { b: r, r: s };
|
|
@@ -13403,7 +13411,7 @@ var Zn = /* @__PURE__ */ _e(Se, 9, 1), Xn = /* @__PURE__ */ _e(ar, 5, 1), Ke = f
|
|
|
13403
13411
|
var A = Y(t, c, 31) + 257, R = Y(t, c + 10, 15) + 4, N = A + Y(t, c + 5, 31) + 1;
|
|
13404
13412
|
c += 14;
|
|
13405
13413
|
for (var q = new Z(N), $ = new Z(19), P = 0; P < R; ++P)
|
|
13406
|
-
$[
|
|
13414
|
+
$[Vn[P]] = Y(t, c + P * 3, 7);
|
|
13407
13415
|
c += R * 3;
|
|
13408
13416
|
for (var Ee = Ke($), De = (1 << Ee) - 1, Fe = _e($, Ee, 1), P = 0; P < N; ) {
|
|
13409
13417
|
var de = Fe[Y(t, c, De)];
|
|
@@ -15599,7 +15607,36 @@ class Ca {
|
|
|
15599
15607
|
}
|
|
15600
15608
|
new Set(Fa);
|
|
15601
15609
|
new Set(ka);
|
|
15602
|
-
function Aa(t
|
|
15610
|
+
function Aa(t) {
|
|
15611
|
+
return new Promise((e, r) => {
|
|
15612
|
+
const i = new FileReader();
|
|
15613
|
+
i.onload = (s) => {
|
|
15614
|
+
e(s.target.result);
|
|
15615
|
+
}, i.onerror = () => {
|
|
15616
|
+
r(new Error("图标转换失败"));
|
|
15617
|
+
}, i.readAsDataURL(t);
|
|
15618
|
+
});
|
|
15619
|
+
}
|
|
15620
|
+
function Ta(t) {
|
|
15621
|
+
return new Promise((e, r) => {
|
|
15622
|
+
const i = new XMLHttpRequest();
|
|
15623
|
+
i.open("GET", t, !0), i.responseType = "blob", i.onload = async () => {
|
|
15624
|
+
if (![0, 200].includes(i.status)) {
|
|
15625
|
+
r(new Error("图标读取失败"));
|
|
15626
|
+
return;
|
|
15627
|
+
}
|
|
15628
|
+
try {
|
|
15629
|
+
const s = await this.blobToDataUrl(i.response);
|
|
15630
|
+
e(s);
|
|
15631
|
+
} catch (s) {
|
|
15632
|
+
r(s);
|
|
15633
|
+
}
|
|
15634
|
+
}, i.onerror = () => {
|
|
15635
|
+
r(new Error("图标读取失败"));
|
|
15636
|
+
}, i.send();
|
|
15637
|
+
});
|
|
15638
|
+
}
|
|
15639
|
+
function Ua(t, e) {
|
|
15603
15640
|
for (let i = 0; i < e.length; i++) {
|
|
15604
15641
|
const s = e[i], u = t.indexOf(s + "=");
|
|
15605
15642
|
if (u !== -1) {
|
|
@@ -15617,14 +15654,14 @@ function Aa(t, e) {
|
|
|
15617
15654
|
}
|
|
15618
15655
|
return t.indexOf("=") === -1 && (t = t.replace(/\?/, "")), t;
|
|
15619
15656
|
}
|
|
15620
|
-
function
|
|
15657
|
+
function Oa(t) {
|
|
15621
15658
|
const e = /[?&][^?&]+=[^?&]+/g, r = t.match(e);
|
|
15622
15659
|
return r === null ? t : t.replace(r.join(""), "");
|
|
15623
15660
|
}
|
|
15624
|
-
function
|
|
15661
|
+
function Ia(t) {
|
|
15625
15662
|
return new URLSearchParams(location.search).get(t);
|
|
15626
15663
|
}
|
|
15627
|
-
function
|
|
15664
|
+
function Da(t) {
|
|
15628
15665
|
const e = t.split("?")[1];
|
|
15629
15666
|
return e ? JSON.parse(
|
|
15630
15667
|
'{"' + decodeURIComponent(e).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"').replace(/\+/g, " ") + '"}'
|
|
@@ -15636,16 +15673,16 @@ function or(t) {
|
|
|
15636
15673
|
u[h] = i.charCodeAt(h);
|
|
15637
15674
|
return new Blob([u], { type: r });
|
|
15638
15675
|
}
|
|
15639
|
-
function
|
|
15676
|
+
function La(t, e) {
|
|
15640
15677
|
const r = document.createElement("a"), i = or(e);
|
|
15641
15678
|
r.download = t, r.href = URL.createObjectURL(i), r.dispatchEvent(new MouseEvent("click", { bubbles: !0, cancelable: !0, view: window })), URL.revokeObjectURL(r.href);
|
|
15642
15679
|
}
|
|
15643
|
-
async function
|
|
15680
|
+
async function Ma(t, e, r) {
|
|
15644
15681
|
await Promise.resolve(1), r || (r = (await Ba(e)).mime);
|
|
15645
15682
|
const i = new Blob([e], { type: r }), s = URL.createObjectURL(i), u = document.createElement("a");
|
|
15646
15683
|
u.href = s, u.download = t, u.click(), window.URL.revokeObjectURL(s);
|
|
15647
15684
|
}
|
|
15648
|
-
function
|
|
15685
|
+
function Ra(t) {
|
|
15649
15686
|
const e = navigator.userAgent.toLowerCase().indexOf("chrome") > -1, r = navigator.userAgent.toLowerCase().indexOf("safari") > -1;
|
|
15650
15687
|
if (e || r) {
|
|
15651
15688
|
const i = document.createElement("a");
|
|
@@ -15660,11 +15697,11 @@ function La(t) {
|
|
|
15660
15697
|
}
|
|
15661
15698
|
return t.indexOf("?") === -1 && (t += "?download"), window.open(t, "_self"), !0;
|
|
15662
15699
|
}
|
|
15663
|
-
function
|
|
15700
|
+
function Pa(t, e) {
|
|
15664
15701
|
const r = document.createElement("a");
|
|
15665
15702
|
r.style.display = "none", r.href = e, r.download = t, r.click();
|
|
15666
15703
|
}
|
|
15667
|
-
function
|
|
15704
|
+
function za(t, e) {
|
|
15668
15705
|
fetch(e).then((r) => {
|
|
15669
15706
|
r.blob().then((i) => {
|
|
15670
15707
|
const s = window.URL.createObjectURL(i), u = document.createElement("a");
|
|
@@ -15672,45 +15709,47 @@ function Ra(t, e) {
|
|
|
15672
15709
|
});
|
|
15673
15710
|
});
|
|
15674
15711
|
}
|
|
15675
|
-
function
|
|
15712
|
+
function ja(t) {
|
|
15676
15713
|
const e = document.createElement("script");
|
|
15677
15714
|
e.type = "text/javascript", e.async = !0, e.src = t;
|
|
15678
15715
|
const r = document.getElementsByTagName("script")[0];
|
|
15679
15716
|
r.parentNode.insertBefore(e, r);
|
|
15680
15717
|
}
|
|
15681
|
-
function
|
|
15718
|
+
function Na(t) {
|
|
15682
15719
|
let e = 0;
|
|
15683
15720
|
return t.length < 6 || (/[0-9]/.test(t) && e++, /[a-z]/.test(t) && e++, /[A-Z]/.test(t) && e++, /[.|-|_]/.test(t) && e++), e;
|
|
15684
15721
|
}
|
|
15685
|
-
const
|
|
15722
|
+
const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15686
15723
|
__proto__: null,
|
|
15687
15724
|
base64ToBlob: or,
|
|
15688
|
-
|
|
15689
|
-
|
|
15690
|
-
|
|
15691
|
-
|
|
15692
|
-
|
|
15693
|
-
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
|
|
15725
|
+
blobToDataUrl: Aa,
|
|
15726
|
+
checkPwd: Na,
|
|
15727
|
+
convertFileUrlToBase64: Ta,
|
|
15728
|
+
downloadBase64Image: La,
|
|
15729
|
+
downloadFile: Ma,
|
|
15730
|
+
downloadFileByUrl: Ra,
|
|
15731
|
+
downloadFileByUrlCustomName: Pa,
|
|
15732
|
+
fetchFileByUrlCustomName: za,
|
|
15733
|
+
getParams: Ia,
|
|
15734
|
+
injectScript: ja,
|
|
15735
|
+
removeQueryString: Oa,
|
|
15736
|
+
ridUrlParam: Ua,
|
|
15737
|
+
urlparam2Obj: Da
|
|
15699
15738
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15700
15739
|
export {
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15707
|
-
|
|
15708
|
-
|
|
15709
|
-
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15740
|
+
Ha as ArrayTools,
|
|
15741
|
+
$a as ColorTools,
|
|
15742
|
+
Wa as DataTools,
|
|
15743
|
+
Ga as ElementTools,
|
|
15744
|
+
Za as ExecTools,
|
|
15745
|
+
Xa as InteractTools,
|
|
15746
|
+
Ya as JudgeTools,
|
|
15747
|
+
Ja as MapTools,
|
|
15748
|
+
Ka as NumberTools,
|
|
15749
|
+
Qa as ObjectTools,
|
|
15750
|
+
es as PathTools,
|
|
15751
|
+
Va as PeTools,
|
|
15752
|
+
ts as StorageTools,
|
|
15753
|
+
rs as StringTools,
|
|
15754
|
+
is as UtilTools
|
|
15716
15755
|
};
|