@fsystem/fswt-ui-tools 0.3.8 → 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 +134 -103
- package/dist/fswt-ui-tools.umd.js +4 -4
- package/dist/types/index.d.ts +15 -15
- package/dist/types/tools/Array.d.ts +133 -133
- package/dist/types/tools/Color.d.ts +17 -17
- package/dist/types/tools/Date.d.ts +85 -85
- package/dist/types/tools/Element.d.ts +32 -32
- package/dist/types/tools/Exec.d.ts +7 -7
- package/dist/types/tools/Interact.d.ts +37 -37
- package/dist/types/tools/Judge.d.ts +61 -61
- package/dist/types/tools/Map.d.ts +7 -7
- package/dist/types/tools/Number.d.ts +14 -14
- package/dist/types/tools/Object.d.ts +13 -13
- package/dist/types/tools/Path.d.ts +5 -5
- package/dist/types/tools/Storage.d.ts +9 -9
- package/dist/types/tools/String.d.ts +74 -74
- package/dist/types/tools/Util.d.ts +81 -69
- package/dist/types/tools/pe/MicrosoftPeFileVersion.d.ts +5 -5
- package/dist/types/utils/index.d.ts +5 -5
- package/package.json +37 -37
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() {
|
|
@@ -11782,7 +11782,7 @@ function qr(t, e, r) {
|
|
|
11782
11782
|
return r === 0 ? u < h ? -1 : u > h ? 1 : 0 : u < h ? 1 : u > h ? -1 : 0;
|
|
11783
11783
|
});
|
|
11784
11784
|
}
|
|
11785
|
-
function
|
|
11785
|
+
function Hr(t) {
|
|
11786
11786
|
for (var e = [], r = {}, i = 0; i < t.length; i++) {
|
|
11787
11787
|
var s = Object.keys(t[i]);
|
|
11788
11788
|
s.sort(function(f, m) {
|
|
@@ -11794,7 +11794,7 @@ function Vr(t) {
|
|
|
11794
11794
|
}
|
|
11795
11795
|
return e;
|
|
11796
11796
|
}
|
|
11797
|
-
function
|
|
11797
|
+
function Vr(t, e) {
|
|
11798
11798
|
for (var r = t.length, i = 0; i < r; i++)
|
|
11799
11799
|
if (t[i] === e)
|
|
11800
11800
|
return i === 0 ? (t.shift(), t) : i === r - 1 ? (t.pop(), t) : (t.splice(i, 1), t);
|
|
@@ -11889,11 +11889,11 @@ async function ni(t, e, r, i, s, u) {
|
|
|
11889
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));
|
|
11890
11890
|
return await Promise.all(f), h;
|
|
11891
11891
|
}
|
|
11892
|
-
const
|
|
11892
|
+
const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11893
11893
|
__proto__: null,
|
|
11894
11894
|
average: ei,
|
|
11895
11895
|
buildTree: ri,
|
|
11896
|
-
deteleObject:
|
|
11896
|
+
deteleObject: Vr,
|
|
11897
11897
|
findNode: $r,
|
|
11898
11898
|
find_csa: nt,
|
|
11899
11899
|
getArrRepeat: Yr,
|
|
@@ -11910,7 +11910,7 @@ const Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11910
11910
|
sum: Qr,
|
|
11911
11911
|
union: Gr,
|
|
11912
11912
|
unique: Wr,
|
|
11913
|
-
uniqueObject:
|
|
11913
|
+
uniqueObject: Hr,
|
|
11914
11914
|
uniqueObjectByKey: jr
|
|
11915
11915
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11916
11916
|
function ai(t) {
|
|
@@ -11952,7 +11952,7 @@ function ai(t) {
|
|
|
11952
11952
|
r.body.slice(i + 26, i + s + 26)
|
|
11953
11953
|
);
|
|
11954
11954
|
}
|
|
11955
|
-
const
|
|
11955
|
+
const Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11956
11956
|
__proto__: null,
|
|
11957
11957
|
getFileVersion: ai
|
|
11958
11958
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -11969,7 +11969,7 @@ function si(t, e) {
|
|
|
11969
11969
|
function oi(t, e, r) {
|
|
11970
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, _ = [];
|
|
11971
11971
|
for (let y = 0; y < r; y++) {
|
|
11972
|
-
const S =
|
|
11972
|
+
const S = Ht(
|
|
11973
11973
|
"rgb(" + parseInt(c * y + s) + "," + parseInt(d * y + u) + "," + parseInt(b * y + h) + ")"
|
|
11974
11974
|
);
|
|
11975
11975
|
_.push(S);
|
|
@@ -11992,7 +11992,7 @@ function at(t) {
|
|
|
11992
11992
|
} else
|
|
11993
11993
|
return t;
|
|
11994
11994
|
}
|
|
11995
|
-
function
|
|
11995
|
+
function Ht(t) {
|
|
11996
11996
|
const e = t, r = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
11997
11997
|
if (/^(rgb|RGB)/.test(e)) {
|
|
11998
11998
|
const i = e.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
|
|
@@ -12015,10 +12015,10 @@ function Vt(t) {
|
|
|
12015
12015
|
} else
|
|
12016
12016
|
return e;
|
|
12017
12017
|
}
|
|
12018
|
-
const
|
|
12018
|
+
const $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12019
12019
|
__proto__: null,
|
|
12020
12020
|
GetGradientColor: oi,
|
|
12021
|
-
colorHex:
|
|
12021
|
+
colorHex: Ht,
|
|
12022
12022
|
colorRgb: at,
|
|
12023
12023
|
colorToRGBA: si
|
|
12024
12024
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12034,7 +12034,7 @@ function fi(t, e) {
|
|
|
12034
12034
|
var r = new Date(t), i = new Date(e);
|
|
12035
12035
|
return r >= i;
|
|
12036
12036
|
}
|
|
12037
|
-
function
|
|
12037
|
+
function Vt(t, e) {
|
|
12038
12038
|
if (arguments.length === 0)
|
|
12039
12039
|
return null;
|
|
12040
12040
|
const r = e || "{y}-{m}-{d} {h}:{i}:{s}";
|
|
@@ -12057,7 +12057,7 @@ function Ht(t, e) {
|
|
|
12057
12057
|
function ui(t, e) {
|
|
12058
12058
|
("" + t).length === 10 ? t = parseInt(t) * 1e3 : t = +t;
|
|
12059
12059
|
const r = new Date(t), s = (Date.now() - r) / 1e3;
|
|
12060
|
-
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() + "分";
|
|
12061
12061
|
}
|
|
12062
12062
|
function hi(t) {
|
|
12063
12063
|
return t.getYear() % 4 === 0 && (t.getYear() % 100 !== 0 || t.getYear() % 400 === 0);
|
|
@@ -12208,7 +12208,7 @@ function bi(t, e) {
|
|
|
12208
12208
|
}
|
|
12209
12209
|
return r;
|
|
12210
12210
|
}
|
|
12211
|
-
const
|
|
12211
|
+
const Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12212
12212
|
__proto__: null,
|
|
12213
12213
|
compareDate: fi,
|
|
12214
12214
|
dateAdd: Wt,
|
|
@@ -12221,7 +12221,7 @@ const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12221
12221
|
getTodayDate: mi,
|
|
12222
12222
|
isLeapYear: hi,
|
|
12223
12223
|
maxDayOfDate: xi,
|
|
12224
|
-
parseTime:
|
|
12224
|
+
parseTime: Vt,
|
|
12225
12225
|
strFormatToDate: pi,
|
|
12226
12226
|
timeTohhmmss: di
|
|
12227
12227
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12250,7 +12250,7 @@ function _i(t, e = !1) {
|
|
|
12250
12250
|
const { top: r, left: i, bottom: s, right: u } = t.getBoundingClientRect(), { innerHeight: h, innerWidth: f } = window;
|
|
12251
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;
|
|
12252
12252
|
}
|
|
12253
|
-
const
|
|
12253
|
+
const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12254
12254
|
__proto__: null,
|
|
12255
12255
|
addClass: wi,
|
|
12256
12256
|
elementIsVisibleInViewport: _i,
|
|
@@ -12268,7 +12268,7 @@ function Si(t, ...e) {
|
|
|
12268
12268
|
else
|
|
12269
12269
|
console.warn("func 不是可执行的方法!", t);
|
|
12270
12270
|
}
|
|
12271
|
-
const
|
|
12271
|
+
const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12272
12272
|
__proto__: null,
|
|
12273
12273
|
safeExecuteFunc: Si
|
|
12274
12274
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12314,7 +12314,7 @@ function Bi(t, e, r, i, s) {
|
|
|
12314
12314
|
function Ci(t) {
|
|
12315
12315
|
confirm(t) && (window.opener = null, window.open("", "_self"), window.close());
|
|
12316
12316
|
}
|
|
12317
|
-
const
|
|
12317
|
+
const Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12318
12318
|
__proto__: null,
|
|
12319
12319
|
confirmClosewindow: Ci,
|
|
12320
12320
|
copyTextToClipboard: Ei,
|
|
@@ -12456,10 +12456,10 @@ function Ni(t) {
|
|
|
12456
12456
|
function qi(t) {
|
|
12457
12457
|
return Object.prototype.toString.call(t).slice(8, -1) === "Error";
|
|
12458
12458
|
}
|
|
12459
|
-
function
|
|
12459
|
+
function Hi(t) {
|
|
12460
12460
|
return Object.prototype.toString.call(t).slice(8, -1) === "Symbol";
|
|
12461
12461
|
}
|
|
12462
|
-
function
|
|
12462
|
+
function Vi(t) {
|
|
12463
12463
|
return Object.prototype.toString.call(t).slice(8, -1) === "Promise";
|
|
12464
12464
|
}
|
|
12465
12465
|
function $i(t) {
|
|
@@ -12530,7 +12530,7 @@ function cn(t) {
|
|
|
12530
12530
|
function fn(t) {
|
|
12531
12531
|
return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(t);
|
|
12532
12532
|
}
|
|
12533
|
-
const
|
|
12533
|
+
const Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12534
12534
|
__proto__: null,
|
|
12535
12535
|
checkStr: Ti,
|
|
12536
12536
|
isAbsoluteURL: an,
|
|
@@ -12555,7 +12555,7 @@ const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12555
12555
|
isObject: Zt,
|
|
12556
12556
|
isPC: Ji,
|
|
12557
12557
|
isPhone: fn,
|
|
12558
|
-
isPromise:
|
|
12558
|
+
isPromise: Vi,
|
|
12559
12559
|
isQQBrowser: Zi,
|
|
12560
12560
|
isRegExp: Ni,
|
|
12561
12561
|
isSet: $i,
|
|
@@ -12563,7 +12563,7 @@ const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12563
12563
|
isStandardBrowserEnv: nn,
|
|
12564
12564
|
isStream: tn,
|
|
12565
12565
|
isString: Mi,
|
|
12566
|
-
isSymbol:
|
|
12566
|
+
isSymbol: Hi,
|
|
12567
12567
|
isURL: sn,
|
|
12568
12568
|
isURLSearchParams: rn,
|
|
12569
12569
|
isUndefined: ji,
|
|
@@ -12573,7 +12573,7 @@ function un(t, e) {
|
|
|
12573
12573
|
const i = t.entries().find((s) => s.value === e);
|
|
12574
12574
|
return i === void 0 ? i : i.key;
|
|
12575
12575
|
}
|
|
12576
|
-
const
|
|
12576
|
+
const Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12577
12577
|
__proto__: null,
|
|
12578
12578
|
getKeyByValue: un
|
|
12579
12579
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -12614,7 +12614,7 @@ function pn(t) {
|
|
|
12614
12614
|
}
|
|
12615
12615
|
return u === "一十" && (u = "十"), u.match(/^一/) && u.length === 3 && (u = u.replace("一", "")), u;
|
|
12616
12616
|
}
|
|
12617
|
-
const
|
|
12617
|
+
const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12618
12618
|
__proto__: null,
|
|
12619
12619
|
Arab2Roman: ln,
|
|
12620
12620
|
numberToChinese: pn,
|
|
@@ -12637,7 +12637,7 @@ function dn(t, e) {
|
|
|
12637
12637
|
}
|
|
12638
12638
|
return !0;
|
|
12639
12639
|
}
|
|
12640
|
-
const
|
|
12640
|
+
const Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12641
12641
|
__proto__: null,
|
|
12642
12642
|
isObjectEqual: dn,
|
|
12643
12643
|
recursionTreeProp: Yt
|
|
@@ -12646,11 +12646,11 @@ function mn(t) {
|
|
|
12646
12646
|
var e = /\.[^.]+$/.exec(t), r = String(e), i = r.toLowerCase();
|
|
12647
12647
|
return i;
|
|
12648
12648
|
}
|
|
12649
|
-
const
|
|
12649
|
+
const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12650
12650
|
__proto__: null,
|
|
12651
12651
|
getFileExt: mn
|
|
12652
12652
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12653
|
-
class
|
|
12653
|
+
class ts {
|
|
12654
12654
|
constructor(e) {
|
|
12655
12655
|
this.source = e || window.localStorage, this.initRun();
|
|
12656
12656
|
}
|
|
@@ -12802,7 +12802,7 @@ function Cn(t) {
|
|
|
12802
12802
|
e = "," + t.substring(t.length - 3) + e, t = t.substring(0, t.length - 3);
|
|
12803
12803
|
return e = t + e, e;
|
|
12804
12804
|
}
|
|
12805
|
-
const
|
|
12805
|
+
const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12806
12806
|
__proto__: null,
|
|
12807
12807
|
addStrPerLength: Bn,
|
|
12808
12808
|
changeCase: kn,
|
|
@@ -12818,64 +12818,64 @@ const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12818
12818
|
toThousands: Cn,
|
|
12819
12819
|
trim: Sn
|
|
12820
12820
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12821
|
-
function
|
|
12821
|
+
function V(t) {
|
|
12822
12822
|
return new DataView(t.buffer, t.byteOffset);
|
|
12823
12823
|
}
|
|
12824
12824
|
const An = {
|
|
12825
12825
|
len: 1,
|
|
12826
12826
|
get(t, e) {
|
|
12827
|
-
return
|
|
12827
|
+
return V(t).getUint8(e);
|
|
12828
12828
|
},
|
|
12829
12829
|
put(t, e, r) {
|
|
12830
|
-
return
|
|
12830
|
+
return V(t).setUint8(e, r), e + 1;
|
|
12831
12831
|
}
|
|
12832
12832
|
}, L = {
|
|
12833
12833
|
len: 2,
|
|
12834
12834
|
get(t, e) {
|
|
12835
|
-
return
|
|
12835
|
+
return V(t).getUint16(e, !0);
|
|
12836
12836
|
},
|
|
12837
12837
|
put(t, e, r) {
|
|
12838
|
-
return
|
|
12838
|
+
return V(t).setUint16(e, r, !0), e + 2;
|
|
12839
12839
|
}
|
|
12840
12840
|
}, ve = {
|
|
12841
12841
|
len: 2,
|
|
12842
12842
|
get(t, e) {
|
|
12843
|
-
return
|
|
12843
|
+
return V(t).getUint16(e);
|
|
12844
12844
|
},
|
|
12845
12845
|
put(t, e, r) {
|
|
12846
|
-
return
|
|
12846
|
+
return V(t).setUint16(e, r), e + 2;
|
|
12847
12847
|
}
|
|
12848
12848
|
}, j = {
|
|
12849
12849
|
len: 4,
|
|
12850
12850
|
get(t, e) {
|
|
12851
|
-
return
|
|
12851
|
+
return V(t).getUint32(e, !0);
|
|
12852
12852
|
},
|
|
12853
12853
|
put(t, e, r) {
|
|
12854
|
-
return
|
|
12854
|
+
return V(t).setUint32(e, r, !0), e + 4;
|
|
12855
12855
|
}
|
|
12856
12856
|
}, Tn = {
|
|
12857
12857
|
len: 4,
|
|
12858
12858
|
get(t, e) {
|
|
12859
|
-
return
|
|
12859
|
+
return V(t).getUint32(e);
|
|
12860
12860
|
},
|
|
12861
12861
|
put(t, e, r) {
|
|
12862
|
-
return
|
|
12862
|
+
return V(t).setUint32(e, r), e + 4;
|
|
12863
12863
|
}
|
|
12864
12864
|
}, Un = {
|
|
12865
12865
|
len: 4,
|
|
12866
12866
|
get(t, e) {
|
|
12867
|
-
return
|
|
12867
|
+
return V(t).getInt32(e);
|
|
12868
12868
|
},
|
|
12869
12869
|
put(t, e, r) {
|
|
12870
|
-
return
|
|
12870
|
+
return V(t).setInt32(e, r), e + 4;
|
|
12871
12871
|
}
|
|
12872
12872
|
}, On = {
|
|
12873
12873
|
len: 8,
|
|
12874
12874
|
get(t, e) {
|
|
12875
|
-
return
|
|
12875
|
+
return V(t).getBigUint64(e, !0);
|
|
12876
12876
|
},
|
|
12877
12877
|
put(t, e, r) {
|
|
12878
|
-
return
|
|
12878
|
+
return V(t).setBigUint64(e, r, !0), e + 8;
|
|
12879
12879
|
}
|
|
12880
12880
|
};
|
|
12881
12881
|
class re {
|
|
@@ -13239,7 +13239,7 @@ function Nn(t, e) {
|
|
|
13239
13239
|
function qn(t, e) {
|
|
13240
13240
|
return new jn(t, e);
|
|
13241
13241
|
}
|
|
13242
|
-
var Z = Uint8Array, le = Uint16Array,
|
|
13242
|
+
var Z = Uint8Array, le = Uint16Array, Hn = Int32Array, er = new Z([
|
|
13243
13243
|
0,
|
|
13244
13244
|
0,
|
|
13245
13245
|
0,
|
|
@@ -13308,10 +13308,10 @@ var Z = Uint8Array, le = Uint16Array, Vn = Int32Array, er = new Z([
|
|
|
13308
13308
|
/* unused */
|
|
13309
13309
|
0,
|
|
13310
13310
|
0
|
|
13311
|
-
]),
|
|
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) {
|
|
13312
13312
|
for (var r = new le(31), i = 0; i < 31; ++i)
|
|
13313
13313
|
r[i] = e += 1 << t[i - 1];
|
|
13314
|
-
for (var s = new
|
|
13314
|
+
for (var s = new Hn(r[30]), i = 1; i < 30; ++i)
|
|
13315
13315
|
for (var u = r[i]; u < r[i + 1]; ++u)
|
|
13316
13316
|
s[u] = u - r[i] << 5 | i;
|
|
13317
13317
|
return { b: r, r: s };
|
|
@@ -13411,7 +13411,7 @@ var Zn = /* @__PURE__ */ _e(Se, 9, 1), Xn = /* @__PURE__ */ _e(ar, 5, 1), Ke = f
|
|
|
13411
13411
|
var A = Y(t, c, 31) + 257, R = Y(t, c + 10, 15) + 4, N = A + Y(t, c + 5, 31) + 1;
|
|
13412
13412
|
c += 14;
|
|
13413
13413
|
for (var q = new Z(N), $ = new Z(19), P = 0; P < R; ++P)
|
|
13414
|
-
$[
|
|
13414
|
+
$[Vn[P]] = Y(t, c + P * 3, 7);
|
|
13415
13415
|
c += R * 3;
|
|
13416
13416
|
for (var Ee = Ke($), De = (1 << Ee) - 1, Fe = _e($, Ee, 1), P = 0; P < N; ) {
|
|
13417
13417
|
var de = Fe[Y(t, c, De)];
|
|
@@ -15607,7 +15607,36 @@ class Ca {
|
|
|
15607
15607
|
}
|
|
15608
15608
|
new Set(Fa);
|
|
15609
15609
|
new Set(ka);
|
|
15610
|
-
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) {
|
|
15611
15640
|
for (let i = 0; i < e.length; i++) {
|
|
15612
15641
|
const s = e[i], u = t.indexOf(s + "=");
|
|
15613
15642
|
if (u !== -1) {
|
|
@@ -15625,14 +15654,14 @@ function Aa(t, e) {
|
|
|
15625
15654
|
}
|
|
15626
15655
|
return t.indexOf("=") === -1 && (t = t.replace(/\?/, "")), t;
|
|
15627
15656
|
}
|
|
15628
|
-
function
|
|
15657
|
+
function Oa(t) {
|
|
15629
15658
|
const e = /[?&][^?&]+=[^?&]+/g, r = t.match(e);
|
|
15630
15659
|
return r === null ? t : t.replace(r.join(""), "");
|
|
15631
15660
|
}
|
|
15632
|
-
function
|
|
15661
|
+
function Ia(t) {
|
|
15633
15662
|
return new URLSearchParams(location.search).get(t);
|
|
15634
15663
|
}
|
|
15635
|
-
function
|
|
15664
|
+
function Da(t) {
|
|
15636
15665
|
const e = t.split("?")[1];
|
|
15637
15666
|
return e ? JSON.parse(
|
|
15638
15667
|
'{"' + decodeURIComponent(e).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"').replace(/\+/g, " ") + '"}'
|
|
@@ -15644,16 +15673,16 @@ function or(t) {
|
|
|
15644
15673
|
u[h] = i.charCodeAt(h);
|
|
15645
15674
|
return new Blob([u], { type: r });
|
|
15646
15675
|
}
|
|
15647
|
-
function
|
|
15676
|
+
function La(t, e) {
|
|
15648
15677
|
const r = document.createElement("a"), i = or(e);
|
|
15649
15678
|
r.download = t, r.href = URL.createObjectURL(i), r.dispatchEvent(new MouseEvent("click", { bubbles: !0, cancelable: !0, view: window })), URL.revokeObjectURL(r.href);
|
|
15650
15679
|
}
|
|
15651
|
-
async function
|
|
15680
|
+
async function Ma(t, e, r) {
|
|
15652
15681
|
await Promise.resolve(1), r || (r = (await Ba(e)).mime);
|
|
15653
15682
|
const i = new Blob([e], { type: r }), s = URL.createObjectURL(i), u = document.createElement("a");
|
|
15654
15683
|
u.href = s, u.download = t, u.click(), window.URL.revokeObjectURL(s);
|
|
15655
15684
|
}
|
|
15656
|
-
function
|
|
15685
|
+
function Ra(t) {
|
|
15657
15686
|
const e = navigator.userAgent.toLowerCase().indexOf("chrome") > -1, r = navigator.userAgent.toLowerCase().indexOf("safari") > -1;
|
|
15658
15687
|
if (e || r) {
|
|
15659
15688
|
const i = document.createElement("a");
|
|
@@ -15668,11 +15697,11 @@ function La(t) {
|
|
|
15668
15697
|
}
|
|
15669
15698
|
return t.indexOf("?") === -1 && (t += "?download"), window.open(t, "_self"), !0;
|
|
15670
15699
|
}
|
|
15671
|
-
function
|
|
15700
|
+
function Pa(t, e) {
|
|
15672
15701
|
const r = document.createElement("a");
|
|
15673
15702
|
r.style.display = "none", r.href = e, r.download = t, r.click();
|
|
15674
15703
|
}
|
|
15675
|
-
function
|
|
15704
|
+
function za(t, e) {
|
|
15676
15705
|
fetch(e).then((r) => {
|
|
15677
15706
|
r.blob().then((i) => {
|
|
15678
15707
|
const s = window.URL.createObjectURL(i), u = document.createElement("a");
|
|
@@ -15680,45 +15709,47 @@ function Ra(t, e) {
|
|
|
15680
15709
|
});
|
|
15681
15710
|
});
|
|
15682
15711
|
}
|
|
15683
|
-
function
|
|
15712
|
+
function ja(t) {
|
|
15684
15713
|
const e = document.createElement("script");
|
|
15685
15714
|
e.type = "text/javascript", e.async = !0, e.src = t;
|
|
15686
15715
|
const r = document.getElementsByTagName("script")[0];
|
|
15687
15716
|
r.parentNode.insertBefore(e, r);
|
|
15688
15717
|
}
|
|
15689
|
-
function
|
|
15718
|
+
function Na(t) {
|
|
15690
15719
|
let e = 0;
|
|
15691
15720
|
return t.length < 6 || (/[0-9]/.test(t) && e++, /[a-z]/.test(t) && e++, /[A-Z]/.test(t) && e++, /[.|-|_]/.test(t) && e++), e;
|
|
15692
15721
|
}
|
|
15693
|
-
const
|
|
15722
|
+
const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15694
15723
|
__proto__: null,
|
|
15695
15724
|
base64ToBlob: or,
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
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
|
|
15707
15738
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15708
15739
|
export {
|
|
15709
|
-
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
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
|
|
15724
15755
|
};
|