minutool 1.0.14 → 1.0.16

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/minutool.js CHANGED
@@ -1,49 +1,49 @@
1
- const Wt = (t, e) => {
1
+ const Zt = (t, e) => {
2
2
  let n = [];
3
- for (let r in t)
4
- n.push(t[r][e]);
3
+ for (let o in t)
4
+ n.push(t[o][e]);
5
5
  return n;
6
- }, Jt = (t, e) => {
6
+ }, Xt = (t, e) => {
7
7
  for (let n in t)
8
8
  if (t[n] === e)
9
9
  return n;
10
10
  return null;
11
- }, Kt = (t, e) => {
11
+ }, te = (t, e) => {
12
12
  let n = /* @__PURE__ */ new Map();
13
- return t.filter((r, i) => {
14
- let a = e ? e(r, i) : r;
13
+ return t.filter((o, i) => {
14
+ let a = e ? e(o, i) : o;
15
15
  if (!n.has(a))
16
16
  return n.set(a, !0), !0;
17
17
  });
18
- }, Vt = (t, e, n) => {
18
+ }, ee = (t, e, n) => {
19
19
  if (!t || !t.length)
20
20
  return t;
21
- let r = {};
21
+ let o = {};
22
22
  if (t.forEach((a) => {
23
23
  let p = a[e];
24
- r[p] || (r[p] = []), r[p].push(a);
24
+ o[p] || (o[p] = []), o[p].push(a);
25
25
  }), !n)
26
- return r;
26
+ return o;
27
27
  let i = {};
28
- for (let a in r)
29
- i[a] = r[a][0];
28
+ for (let a in o)
29
+ i[a] = o[a][0];
30
30
  return i;
31
- }, Qt = (t) => Object.keys(t).sort().reduce(
31
+ }, ne = (t) => Object.keys(t).sort().reduce(
32
32
  function(e, n) {
33
33
  return e[n] = t[n], e;
34
34
  },
35
35
  {}
36
- ), Zt = (t, e) => {
36
+ ), oe = (t, e) => {
37
37
  let n = t.length;
38
38
  if (e < 1 || !n)
39
39
  return [];
40
40
  if (e > n)
41
41
  return [t];
42
- let r = [], i = Math.floor(n / e), a = n % e;
42
+ let o = [], i = Math.floor(n / e), a = n % e;
43
43
  for (let p = 1; p <= i; p++)
44
- r.push(t.splice(0, e));
45
- return a && r.push(t.splice(0, a)), r;
46
- }, Xt = (t) => {
44
+ o.push(t.splice(0, e));
45
+ return a && o.push(t.splice(0, a)), o;
46
+ }, ie = (t) => {
47
47
  let e = -1;
48
48
  for (let n = t.length - 1; n >= 0; n--)
49
49
  if (t[n]) {
@@ -52,15 +52,15 @@ const Wt = (t, e) => {
52
52
  }
53
53
  return t.slice(0, e + 1);
54
54
  };
55
- function it(t) {
55
+ function lt(t) {
56
56
  return t && t.charAt(0).toUpperCase() + t.slice(1);
57
57
  }
58
- const te = (t, e = 0) => {
58
+ const re = (t, e = 0) => {
59
59
  if (!t || typeof t != "string")
60
60
  return e;
61
61
  const n = parseFloat(t);
62
62
  return isNaN(n) ? e : n;
63
- }, ee = (t) => (t + "").replace(/\\(.?)/g, function(e, n) {
63
+ }, ae = (t) => (t + "").replace(/\\(.?)/g, function(e, n) {
64
64
  switch (n) {
65
65
  case "\\":
66
66
  return "\\";
@@ -71,244 +71,246 @@ const te = (t, e = 0) => {
71
71
  default:
72
72
  return n;
73
73
  }
74
- }), ne = (t, e, n = "...") => {
75
- let r = /[^\x00-\xff]/g;
76
- if (t.replace(r, "mm").length <= e)
74
+ }), le = (t, e, n = "...") => {
75
+ let o = /[^\x00-\xff]/g;
76
+ if (t.replace(o, "mm").length <= e)
77
77
  return t;
78
78
  let i = Math.floor(e / 2);
79
79
  for (let a = i; a < t.length; a++)
80
- if (t.substr(0, a).replace(r, "mm").length >= e)
80
+ if (t.substr(0, a).replace(o, "mm").length >= e)
81
81
  return t.substr(0, a) + n;
82
82
  return t;
83
- }, re = (t, e) => {
84
- const n = Object.keys(e), r = Object.values(e);
85
- return new Function(...n, `return \`${t}\`;`)(...r);
83
+ }, se = (t, e) => {
84
+ const n = Object.keys(e), o = Object.values(e);
85
+ return new Function(...n, `return \`${t}\`;`)(...o);
86
86
  };
87
- function ie(t) {
87
+ function ce(t) {
88
88
  return t.replace(/[-_](.)/g, (e, n) => n.toUpperCase());
89
89
  }
90
- function oe(t) {
90
+ function pe(t) {
91
91
  return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
92
92
  }
93
- function ae(t, e, n = "...") {
93
+ function ue(t, e, n = "...") {
94
94
  return t.length <= e ? t : t.slice(0, e) + n;
95
95
  }
96
- const N = (t) => (t + "").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, "\\$1"), ot = (t) => {
97
- let e = "", n = 0, r = 0, i = 0, a = 0;
96
+ const I = (t) => (t + "").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, "\\$1"), st = (t) => {
97
+ let e = "", n = 0, o = 0, i = 0, a = 0;
98
98
  for (; n < t.length; )
99
- r = t.charCodeAt(n), r < 128 ? (e += String.fromCharCode(r), n++) : r > 191 && r < 224 ? (i = t.charCodeAt(n + 1), e += String.fromCharCode((r & 31) << 6 | i & 63), n += 2) : (i = t.charCodeAt(n + 1), a = t.charCodeAt(n + 2), e += String.fromCharCode((r & 15) << 12 | (i & 63) << 6 | a & 63), n += 3);
99
+ o = t.charCodeAt(n), o < 128 ? (e += String.fromCharCode(o), n++) : o > 191 && o < 224 ? (i = t.charCodeAt(n + 1), e += String.fromCharCode((o & 31) << 6 | i & 63), n += 2) : (i = t.charCodeAt(n + 1), a = t.charCodeAt(n + 2), e += String.fromCharCode((o & 15) << 12 | (i & 63) << 6 | a & 63), n += 3);
100
100
  return e;
101
- }, Y = (t) => {
101
+ }, W = (t) => {
102
102
  t = t.replace(/\r\n/g, "n");
103
103
  let e = "";
104
104
  for (let n = 0; n < t.length; n++) {
105
- let r = t.charCodeAt(n);
106
- r < 128 ? e += String.fromCharCode(r) : r > 127 && r < 2048 ? (e += String.fromCharCode(r >> 6 | 192), e += String.fromCharCode(r & 63 | 128)) : (e += String.fromCharCode(r >> 12 | 224), e += String.fromCharCode(r >> 6 & 63 | 128), e += String.fromCharCode(r & 63 | 128));
105
+ let o = t.charCodeAt(n);
106
+ o < 128 ? e += String.fromCharCode(o) : o > 127 && o < 2048 ? (e += String.fromCharCode(o >> 6 | 192), e += String.fromCharCode(o & 63 | 128)) : (e += String.fromCharCode(o >> 12 | 224), e += String.fromCharCode(o >> 6 & 63 | 128), e += String.fromCharCode(o & 63 | 128));
107
107
  }
108
108
  return e;
109
- }, le = (t) => {
110
- let e = 0, n = t.length, r = -1;
109
+ }, me = (t) => {
110
+ let e = 0, n = t.length, o = -1;
111
111
  for (let i = 0; i < n; i++)
112
- r = t.charCodeAt(i), r >= 0 && r <= 128 ? e += 1 : e += 3;
112
+ o = t.charCodeAt(i), o >= 0 && o <= 128 ? e += 1 : e += 3;
113
113
  return e;
114
- }, at = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890", lt = (t = 6, e = at) => {
114
+ }, ct = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890", pt = (t = 6, e = ct) => {
115
115
  let n = "";
116
- for (let r = 0; r < t; r++) {
116
+ for (let o = 0; o < t; o++) {
117
117
  let i = Math.round(Math.random() * (e.length - 1));
118
118
  n += e.substring(i, i + 1);
119
119
  }
120
120
  return n;
121
- }, se = (t = 1, e = 8) => {
121
+ }, fe = (t = 1, e = 8) => {
122
122
  let n = [];
123
- const r = "bcdfghjklmnpqrstvwxyz", i = "aeiou";
123
+ const o = "bcdfghjklmnpqrstvwxyz", i = "aeiou";
124
124
  for (; t-- > 0; ) {
125
125
  let a = "";
126
126
  for (let p = 0; p < e; p = p + 3)
127
- a += r[Math.floor(Math.random() * r.length)], a += i[Math.floor(Math.random() * i.length)], a += r[Math.floor(Math.random() * r.length)];
127
+ a += o[Math.floor(Math.random() * o.length)], a += i[Math.floor(Math.random() * i.length)], a += o[Math.floor(Math.random() * o.length)];
128
128
  n.push(a);
129
129
  }
130
130
  return n;
131
- }, ce = (t, e = !1) => {
131
+ }, de = (t, e = !1) => {
132
132
  let n = [];
133
- return t.replace(/[-_\s+]/g, " ").split(" ").forEach((r, i) => {
134
- n.push(i === 0 && !e ? r : it(r));
133
+ return t.replace(/[-_\s+]/g, " ").split(" ").forEach((o, i) => {
134
+ n.push(i === 0 && !e ? o : lt(o));
135
135
  }), n.join("");
136
- }, L = 0, H = 1, st = 2, pe = (t, e = "", n = L) => {
136
+ }, U = 0, $ = 1, ut = 2, he = (t, e = "", n = U) => {
137
137
  if (e.length) {
138
- let r = new RegExp("^[" + N(e) + "]+"), i = new RegExp("[" + N(e) + "]+$");
139
- return n === H ? t.replace(r, "") : n === st ? t.replace(i, "") : t.replace(r, "").replace(i, "");
138
+ let o = new RegExp("^[" + I(e) + "]+"), i = new RegExp("[" + I(e) + "]+$");
139
+ return n === $ ? t.replace(o, "") : n === ut ? t.replace(i, "") : t.replace(o, "").replace(i, "");
140
140
  } else
141
- return n === L ? t.trim() : n === H ? t.trimStart() : t.trimEnd();
142
- }, ue = (t, e) => {
141
+ return n === U ? t.trim() : n === $ ? t.trimStart() : t.trimEnd();
142
+ }, ge = (t, e) => {
143
143
  let n = [];
144
- for (let r = 0; r < t.length; r += e)
145
- n.push(t.slice(r, r + e));
144
+ for (let o = 0; o < t.length; o += e)
145
+ n.push(t.slice(o, o + e));
146
146
  return n;
147
- }, fe = (t) => /[\u4e00-\u9fa5]/.test(t), h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", de = (t) => {
148
- let e = "", n, r, i, a, p, o, s, l = 0;
147
+ }, xe = (t) => /[\u4e00-\u9fa5]/.test(t), x = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", we = (t) => {
148
+ let e = "", n, o, i, a, p, r, s, l = 0;
149
149
  for (t = t.replace(/\+\+[++^A-Za-z0-9+/=]/g, ""); l < t.length; )
150
- a = h.indexOf(t.charAt(l++)), p = h.indexOf(t.charAt(l++)), o = h.indexOf(t.charAt(l++)), s = h.indexOf(t.charAt(l++)), n = a << 2 | p >> 4, r = (p & 15) << 4 | o >> 2, i = (o & 3) << 6 | s, e = e + String.fromCharCode(n), o !== 64 && (e = e + String.fromCharCode(r)), s !== 64 && (e = e + String.fromCharCode(i));
151
- return e = ot(e), e;
152
- }, me = (t) => Y(t).replace("+", "-").replace("/", "_"), he = (t) => {
153
- let e = "", n, r, i, a, p, o, s, l = 0;
154
- for (t = Y(t); l < t.length; )
155
- n = t.charCodeAt(l++), r = t.charCodeAt(l++), i = t.charCodeAt(l++), a = n >> 2, p = (n & 3) << 4 | r >> 4, o = (r & 15) << 2 | i >> 6, s = i & 63, isNaN(r) ? o = s = 64 : isNaN(i) && (s = 64), e = e + h.charAt(a) + h.charAt(p) + h.charAt(o) + h.charAt(s);
150
+ a = x.indexOf(t.charAt(l++)), p = x.indexOf(t.charAt(l++)), r = x.indexOf(t.charAt(l++)), s = x.indexOf(t.charAt(l++)), n = a << 2 | p >> 4, o = (p & 15) << 4 | r >> 2, i = (r & 3) << 6 | s, e = e + String.fromCharCode(n), r !== 64 && (e = e + String.fromCharCode(o)), s !== 64 && (e = e + String.fromCharCode(i));
151
+ return e = st(e), e;
152
+ }, ye = (t) => W(t).replace("+", "-").replace("/", "_"), ve = (t) => {
153
+ let e = "", n, o, i, a, p, r, s, l = 0;
154
+ for (t = W(t); l < t.length; )
155
+ n = t.charCodeAt(l++), o = t.charCodeAt(l++), i = t.charCodeAt(l++), a = n >> 2, p = (n & 3) << 4 | o >> 4, r = (o & 15) << 2 | i >> 6, s = i & 63, isNaN(o) ? r = s = 64 : isNaN(i) && (s = 64), e = e + x.charAt(a) + x.charAt(p) + x.charAt(r) + x.charAt(s);
156
156
  return e;
157
- }, ct = async (t) => await pt(t), pt = (t) => new Promise((e, n) => {
158
- const r = new FileReader();
159
- r.readAsDataURL(t), r.onload = () => e(r.result), r.onerror = (i) => n(i);
160
- }), ut = (t) => {
157
+ }, mt = async (t) => await ft(t), ft = (t) => new Promise((e, n) => {
158
+ const o = new FileReader();
159
+ o.readAsDataURL(t), o.onload = () => e(o.result), o.onerror = (i) => n(i);
160
+ }), dt = (t) => {
161
161
  if (t.requestFullscreen)
162
162
  return t.requestFullscreen();
163
163
  if (t.webkitRequestFullScreen)
164
164
  return t.webkitRequestFullScreen();
165
165
  throw t.mozRequestFullScreen && t.mozRequestFullScreen(), t.msRequestFullScreen && t.msRequestFullScreen(), "Browser no allow full screen";
166
- }, ft = () => document.exitFullscreen(), ge = (t) => new Promise((e, n) => {
167
- dt() ? ft().then(e).catch(n) : ut(t).then(e).catch(n);
168
- }), dt = () => !!document.fullscreenElement, xe = (t) => {
166
+ }, ht = () => document.exitFullscreen(), Te = (t) => new Promise((e, n) => {
167
+ gt() ? ht().then(e).catch(n) : dt(t).then(e).catch(n);
168
+ }), gt = () => !!document.fullscreenElement, be = (t) => {
169
169
  const e = navigator.language || navigator.userLanguage;
170
170
  if (t.includes(e))
171
171
  return e;
172
- const n = e.split("-")[0], r = t.find((i) => i.startsWith(n));
173
- return r || t[0];
174
- }, we = () => navigator.userAgent.toLowerCase().indexOf("firefox") > -1, ve = (t, e, n, r = "/", i) => {
172
+ const n = e.split("-")[0], o = t.find((i) => i.startsWith(n));
173
+ return o || t[0];
174
+ }, Ee = () => navigator.userAgent.toLowerCase().indexOf("firefox") > -1, Me = (t, e, n, o = "/", i) => {
175
175
  let a = "";
176
176
  if (n) {
177
- let o = /* @__PURE__ */ new Date();
178
- o.setTime(Date.now() + n * 24 * 60 * 60 * 1e3), a = "; expires=" + o.toUTCString();
177
+ let r = /* @__PURE__ */ new Date();
178
+ r.setTime(Date.now() + n * 24 * 60 * 60 * 1e3), a = "; expires=" + r.toUTCString();
179
179
  }
180
- let p = t + "=" + (e || "") + a + "; path=" + r;
180
+ let p = t + "=" + (e || "") + a + "; path=" + o;
181
181
  i && (p += "; domain=" + i), document.cookie = p;
182
- }, ye = (t) => {
182
+ }, Ae = (t) => {
183
183
  let e = t + "=", n = document.cookie.split(";");
184
- for (let r = 0; r < n.length; r++) {
185
- let i = n[r];
184
+ for (let o = 0; o < n.length; o++) {
185
+ let i = n[o];
186
186
  for (; i.charAt(0) === " "; ) i = i.substring(1, i.length);
187
187
  if (i.indexOf(e) === 0) return i.substring(e.length, i.length);
188
188
  }
189
189
  return null;
190
- }, S = (t, e = "/", n) => {
191
- let r = t + "=; Path=" + e + "; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
192
- n && (r += " Domain=" + n + ";"), document.cookie = r;
193
- }, Ee = (t, e) => {
190
+ }, O = (t, e = "/", n) => {
191
+ let o = t + "=; Path=" + e + "; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
192
+ n && (o += " Domain=" + n + ";"), document.cookie = o;
193
+ }, Se = (t, e) => {
194
194
  const n = (e || (location == null ? void 0 : location.hostname)).split(".");
195
195
  for (; n.length > 1; )
196
- S(t, "/", n.join(".")), S(t, "/", "." + n.join(".")), n.shift();
197
- S(t);
196
+ O(t, "/", n.join(".")), O(t, "/", "." + n.join(".")), n.shift();
197
+ O(t);
198
198
  };
199
- let mt = 0;
200
- const ht = (t = "") => "guid_" + (t || lt(6)) + ++mt, be = (t, e) => {
201
- let n, r, i = 0;
199
+ let xt = 0;
200
+ const wt = (t = "") => "guid_" + (t || pt(6)) + ++xt, _e = (t, e) => {
201
+ let n, o, i = 0;
202
202
  return function() {
203
203
  let a = +/* @__PURE__ */ new Date();
204
- n = this, r = arguments, a - i > e && (t.apply(n, r), i = a);
204
+ n = this, o = arguments, a - i > e && (t.apply(n, o), i = a);
205
205
  };
206
- }, Te = (t, e) => {
207
- let n, r, i = 0, a = !1;
206
+ }, Ce = (t, e) => {
207
+ let n, o, i = 0, a = !1;
208
208
  return function() {
209
209
  if (a)
210
210
  return;
211
211
  let p = +/* @__PURE__ */ new Date();
212
- n = this, r = arguments;
213
- let o = e - (p - i);
214
- o <= 0 ? (t.apply(n, r), i = p) : (a = !0, setTimeout(() => {
215
- t.apply(n, r), a = !1, i = p;
216
- }, o));
212
+ n = this, o = arguments;
213
+ let r = e - (p - i);
214
+ r <= 0 ? (t.apply(n, o), i = p) : (a = !0, setTimeout(() => {
215
+ t.apply(n, o), a = !1, i = p;
216
+ }, r));
217
217
  };
218
- }, Ae = (t, e) => {
218
+ }, Ne = (t, e) => {
219
219
  let n;
220
220
  return function() {
221
- let r = this, i = arguments;
221
+ let o = this, i = arguments;
222
222
  clearTimeout(n), n = setTimeout(function() {
223
- t.apply(r, i);
223
+ t.apply(o, i);
224
224
  }, e);
225
225
  };
226
- }, Me = (t) => t && typeof t == "object" && t.then && typeof t.then == "function", Se = (t) => {
226
+ }, Oe = (t) => t && typeof t == "object" && t.then && typeof t.then == "function", De = (t) => {
227
227
  let e = !1;
228
228
  try {
229
229
  JSON.parse(t), e = !0;
230
230
  } catch {
231
231
  }
232
232
  return e;
233
- }, _e = (t) => t && typeof t == "object" && !Array.isArray(t), Ce = (t) => t ? Object.prototype.toString.call(t) === "[object Function]" || typeof t == "function" || t instanceof Function : !1, gt = (t) => typeof t != "string" || t.trim() === "" ? !1 : /^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(t), Ne = (t) => {
233
+ }, Re = (t) => t && typeof t == "object" && !Array.isArray(t), Ie = (t) => t ? Object.prototype.toString.call(t) === "[object Function]" || typeof t == "function" || t instanceof Function : !1, yt = (t) => typeof t != "string" || t.trim() === "" ? !1 : /^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(t), ke = (t) => {
234
234
  let e = !1;
235
235
  try {
236
236
  JSON.parse(t), e = !0;
237
237
  } catch {
238
238
  }
239
239
  return e;
240
- }, Oe = () => {
240
+ }, Le = () => {
241
241
  let t = new Error().stack;
242
242
  console.log(t);
243
- }, De = (1 + Math.sqrt(5)) / 2 - 1, j = 96, Re = (t, e = j) => t / 25.4 * e, ke = (t) => Math.round(t * 56.6929), Ie = (t) => t * 2.83464566929, Le = (t) => t / 2.83464566929, He = (t, e = j) => 25.4 * t / e, Pe = (t, e, n) => Math.min(Math.max(t, e), n), g = (t, e, n, r = !0) => r ? t >= e && t <= n : t > e && t < n, Fe = (t, e) => Math.floor(Math.random() * (e + 1 - t)) + t, Ue = (t, e = 2) => {
243
+ }, He = (1 + Math.sqrt(5)) / 2 - 1, J = 96, Pe = (t, e = J) => t / 25.4 * e, Fe = (t) => Math.round(t * 56.6929), Ue = (t) => t * 2.83464566929, $e = (t) => t / 2.83464566929, Be = (t, e = J) => 25.4 * t / e, qe = (t, e, n) => Math.min(Math.max(t, e), n), w = (t, e, n, o = !0) => o ? t >= e && t <= n : t > e && t < n, Ye = (t, e) => Math.floor(Math.random() * (e + 1 - t)) + t, ze = (t, e = 2) => {
244
244
  let n = Math.pow(10, e);
245
245
  return Math.round(t * n) / n;
246
- }, $e = (...t) => {
246
+ }, je = (...t) => {
247
247
  let e = 0;
248
248
  return t.forEach((n) => {
249
249
  if (typeof n == "number" && !isNaN(n)) {
250
- const r = n.toString().split(".")[1];
251
- r && (e = Math.max(e, r.length));
250
+ const o = n.toString().split(".")[1];
251
+ o && (e = Math.max(e, o.length));
252
252
  }
253
253
  }), e;
254
- }, Be = (t) => (t = Math.abs(Number(t)), t === 0 ? 1 : Math.floor(Math.log10(t)) + 1), qe = (t) => {
255
- b(t).style.display = "none";
256
- }, Ye = (t) => {
257
- b(t).style.display = "";
258
- }, je = (t) => {
259
- let e = b(t);
254
+ }, Ge = (t) => (t = Math.abs(Number(t)), t === 0 ? 1 : Math.floor(Math.log10(t)) + 1), We = (t) => {
255
+ const e = E(t);
256
+ e && (e.style.display = "none");
257
+ }, Je = (t) => {
258
+ const e = E(t);
259
+ e && (e.style.display = "");
260
+ }, Ke = (t) => {
261
+ let e = E(t);
260
262
  return e && e.parentNode && e.parentNode.removeChild(e);
261
- }, _ = "disabled", xt = (t, e = "") => G(t, e, !1), wt = (t, e = "") => G(t, e, !0), G = (t, e = "", n = null) => {
262
- let r = b(t), i = n === null ? !r.classList.contains(_) : !n;
263
- i && yt(`.${_} {pointer-event:none !important;}`, "__element_lock_style__"), r.classList.toggle(_, i), r[i ? "setAttribute" : "removeAttribute"]("disabled", "disabled"), r[i ? "setAttribute" : "removeAttribute"]("data-disabled", "disabled"), e && r.classList.toggle(e, i);
264
- }, Ge = (t, e, n) => {
265
- t = b(t);
266
- let r = !1;
263
+ }, D = "disabled", vt = (t, e = "") => K(t, e, !1), Tt = (t, e = "") => K(t, e, !0), K = (t, e = "", n = null) => {
264
+ let o = E(t), i = n === null ? !o.classList.contains(D) : !n;
265
+ i && Et(`.${D} {pointer-event:none !important;}`, "__element_lock_style__"), o.classList.toggle(D, i), o[i ? "setAttribute" : "removeAttribute"]("disabled", "disabled"), o[i ? "setAttribute" : "removeAttribute"]("data-disabled", "disabled"), e && o.classList.toggle(e, i);
266
+ }, Ve = (t, e, n) => {
267
+ t = E(t);
268
+ let o = !1;
267
269
  t.addEventListener("mouseenter", () => {
268
- r || (r = !0, e && e());
270
+ o || (o = !0, e && e());
269
271
  }), t.addEventListener("mouseleave", () => {
270
- r && (r = !1, n && n());
272
+ o && (o = !1, n && n());
271
273
  });
272
- }, ze = (t, e) => {
273
- xt(t), e(() => {
274
- wt(t);
274
+ }, Qe = (t, e) => {
275
+ vt(t), e(() => {
276
+ Tt(t);
275
277
  });
276
- }, We = (t) => t.parentNode ? Array.prototype.indexOf.call(t.parentNode.children, t) : -1, z = (t, e = document) => {
278
+ }, Ze = (t) => t.parentNode ? Array.prototype.indexOf.call(t.parentNode.children, t) : -1, V = (t, e = document) => {
277
279
  if (typeof t == "string")
278
280
  return t = t.trim(), t.indexOf(":scope") !== 0 && (t = ":scope " + t), Array.from(e.querySelectorAll(t));
279
281
  if (Array.isArray(t)) {
280
282
  let n = [];
281
- return t.forEach((r) => {
282
- n.push(...z(r));
283
+ return t.forEach((o) => {
284
+ n.push(...V(o));
283
285
  }), n;
284
286
  } else return NodeList.prototype.isPrototypeOf(t) || HTMLCollection.prototype.isPrototypeOf(t) ? Array.from(t) : t instanceof HTMLElement ? [t] : t;
285
- }, b = (t, e = document) => typeof t == "string" ? e.querySelector(t) : t, Je = (t) => {
287
+ }, E = (t, e = document) => typeof t == "string" ? e.querySelector(t) : t, Xe = (t) => {
286
288
  let e = document.getElementsByTagName("*"), n = [];
287
289
  for (n = []; t && t.nodeType === 1; t = t.parentNode)
288
290
  if (t.hasAttribute("id")) {
289
- let r = 0;
290
- for (let i = 0; i < e.length && (e[i].hasAttribute("id") && e[i].id === t.id && r++, !(r > 1)); i++)
291
+ let o = 0;
292
+ for (let i = 0; i < e.length && (e[i].hasAttribute("id") && e[i].id === t.id && o++, !(o > 1)); i++)
291
293
  ;
292
- if (r === 1)
294
+ if (o === 1)
293
295
  return n.unshift('id("' + t.getAttribute("id") + '")'), n.join("/");
294
296
  n.unshift(t.localName.toLowerCase() + '[@id="' + t.getAttribute("id") + '"]');
295
297
  } else if (t.hasAttribute("class"))
296
298
  n.unshift(t.localName.toLowerCase() + '[@class="' + t.getAttribute("class") + '"]');
297
299
  else {
298
- let r, i;
299
- for (r = 1, i = t.previousSibling; i; i = i.previousSibling)
300
- i.localName === t.localName && r++;
301
- n.unshift(t.localName.toLowerCase() + "[" + r + "]");
300
+ let o, i;
301
+ for (o = 1, i = t.previousSibling; i; i = i.previousSibling)
302
+ i.localName === t.localName && o++;
303
+ n.unshift(t.localName.toLowerCase() + "[" + o + "]");
302
304
  }
303
305
  return n.length ? "/" + n.join("/") : null;
304
- }, Ke = (t, e, n = !0) => {
305
- const r = "ON_DOM_TREE_CHANGE_BIND_" + ht();
306
+ }, tn = (t, e, n = !0) => {
307
+ const o = "ON_DOM_TREE_CHANGE_BIND_" + wt();
306
308
  let i = () => {
307
- z(`input:not([${r}]), textarea:not([${r}]), select:not([${r}])`, t).forEach((a) => {
308
- a.setAttribute(r, "1"), a.addEventListener("change", e);
309
+ V(`input:not([${o}]), textarea:not([${o}]), select:not([${o}])`, t).forEach((a) => {
310
+ a.setAttribute(o, "1"), a.addEventListener("change", e);
309
311
  });
310
312
  };
311
- vt(
313
+ bt(
312
314
  t,
313
315
  { attributes: !0, subtree: !0, childList: !0 },
314
316
  () => {
@@ -316,17 +318,17 @@ const ht = (t = "") => "guid_" + (t || lt(6)) + ++mt, be = (t, e) => {
316
318
  },
317
319
  10
318
320
  ), n && i();
319
- }, vt = (t, e, n, r = 10) => {
321
+ }, bt = (t, e, n, o = 10) => {
320
322
  let i = 0, a = !1, p = new MutationObserver(() => {
321
323
  if (a)
322
324
  return;
323
- let o = r - (Date.now() - i);
324
- o > 0 ? (a = !0, setTimeout(() => {
325
+ let r = o - (Date.now() - i);
326
+ r > 0 ? (a = !0, setTimeout(() => {
325
327
  a = !1, i = Date.now(), n(p);
326
- }, o)) : (i = Date.now(), n(p));
328
+ }, r)) : (i = Date.now(), n(p));
327
329
  });
328
330
  p.observe(t, e);
329
- }, Ve = (t, e = {
331
+ }, en = (t, e = {
330
332
  left: 0,
331
333
  top: 0,
332
334
  width: window.innerWidth,
@@ -334,53 +336,53 @@ const ht = (t = "") => "guid_" + (t || lt(6)) + ++mt, be = (t, e) => {
334
336
  }) => {
335
337
  let n = { left: t.left, top: t.top };
336
338
  return t.width > e.width || t.height > e.height || (t.width + t.left > e.width + e.left && (n.left = t.left - (t.width + t.left - (e.width + e.left))), t.height + t.top > e.height + e.top && (n.top = t.top - (t.height + t.top - (e.height + e.top))), t.left < e.left && (n.left = e.left), t.top < e.top && (n.top = e.top)), n;
337
- }, Qe = (t, e) => t.left <= e.left ? t.left + t.width >= e.left && (g(e.top, t.top, t.top + t.height) || g(e.top + e.height, t.top, t.top + t.height) || e.top >= t.top && e.height >= t.height) : e.left + e.width >= t.left && (g(t.top, e.top, e.top + e.height) || g(t.top + t.height, e.top, e.top + e.height) || t.top >= e.top && t.height >= e.height), Ze = (t) => t ? !!(t.tabIndex >= 0 || t instanceof HTMLAnchorElement && t.href || t instanceof HTMLButtonElement && !t.disabled || t instanceof HTMLInputElement && !t.disabled || t instanceof HTMLTextAreaElement && !t.disabled) : !1;
338
- let x = {};
339
- const Xe = (t, e = !1) => (!e && t in x || (x[t] = new Promise((n, r) => {
339
+ }, nn = (t, e) => t.left <= e.left ? t.left + t.width >= e.left && (w(e.top, t.top, t.top + t.height) || w(e.top + e.height, t.top, t.top + t.height) || e.top >= t.top && e.height >= t.height) : e.left + e.width >= t.left && (w(t.top, e.top, e.top + e.height) || w(t.top + t.height, e.top, e.top + e.height) || t.top >= e.top && t.height >= e.height), on = (t) => t ? !!(t.tabIndex >= 0 || t instanceof HTMLAnchorElement && t.href || t instanceof HTMLButtonElement && !t.disabled || t instanceof HTMLInputElement && !t.disabled || t instanceof HTMLTextAreaElement && !t.disabled) : !1;
340
+ let y = {};
341
+ const rn = (t, e = !1) => (!e && t in y || (y[t] = new Promise((n, o) => {
340
342
  let i = document.createElement("link");
341
343
  i.rel = "stylesheet", i.href = t, i.onload = () => {
342
344
  n();
343
345
  }, i.onerror = () => {
344
- r();
346
+ o();
345
347
  }, document.head.append(i);
346
- })), x[t]), tn = (t, e = !1) => (!e && t in x || (x[t] = new Promise((n, r) => {
348
+ })), y[t]), an = (t, e = !1) => (!e && t in y || (y[t] = new Promise((n, o) => {
347
349
  let i = document.createElement("script");
348
350
  i.src = t, i.onload = () => {
349
351
  n();
350
352
  }, i.onerror = () => {
351
- r();
353
+ o();
352
354
  }, document.head.append(i);
353
- })), x[t]), en = (t) => {
354
- let e = t.style.visibility, n = t.style.display, r, i;
355
- return t.style.visibility = "hidden", t.style.display = "block", r = t.clientWidth, i = t.clientHeight, t.style.visibility = e, t.style.display = n, { width: r, height: i };
356
- }, yt = (t, e = "", n = document) => {
355
+ })), y[t]), ln = (t) => {
356
+ let e = t.style.visibility, n = t.style.display, o, i;
357
+ return t.style.visibility = "hidden", t.style.display = "block", o = t.clientWidth, i = t.clientHeight, t.style.visibility = e, t.style.display = n, { width: o, height: i };
358
+ }, Et = (t, e = "", n = document) => {
357
359
  if (e && n.querySelector(`#${e}`))
358
360
  return n.querySelector(`#${e}`);
359
- let r = n.createElement("style");
360
- return n.head.appendChild(r), r.innerHTML = t, e && (r.id = e), r;
361
- }, nn = (t, e) => g(t.top, e.top, e.top + e.height) && g(t.left, e.left, e.left + e.width) && //左上角
362
- g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.left + e.width), rn = (t) => Math.pow(10, -t), on = (t, e) => {
361
+ let o = n.createElement("style");
362
+ return n.head.appendChild(o), o.innerHTML = t, e && (o.id = e), o;
363
+ }, sn = (t, e) => w(t.top, e.top, e.top + e.height) && w(t.left, e.left, e.left + e.width) && //左上角
364
+ w(t.top + t.height, e.top, e.top + e.height) && w(t.left + t.width, e.left, e.left + e.width), cn = (t) => Math.pow(10, -t), pn = (t, e) => {
363
365
  try {
364
366
  return new URL(t, e).href;
365
367
  } catch {
366
368
  return t;
367
369
  }
368
- }, an = (t, e = null) => {
370
+ }, un = (t, e = null) => {
369
371
  let n = document.createElement("template");
370
372
  t = t.trim(), n.innerHTML = t;
371
- let r = [];
373
+ let o = [];
372
374
  return e ? n.content.childNodes.forEach((i) => {
373
- r.push(e.appendChild(i));
374
- }) : r = Array.from(n.content.childNodes), r.length === 1 ? r[0] : r;
375
- }, Et = (t, e = !1) => {
375
+ o.push(e.appendChild(i));
376
+ }) : o = Array.from(n.content.childNodes), o.length === 1 ? o[0] : o;
377
+ }, Mt = (t, e = !1) => {
376
378
  if (!t)
377
379
  throw new Error("el is null");
378
380
  const n = t.getBoundingClientRect();
379
381
  if (e && !n.height) {
380
- const r = t.style.visibility, i = t.style.display;
382
+ const o = t.style.visibility, i = t.style.display;
381
383
  t.style.visibility = "hidden", t.style.display = "block";
382
- const a = Et(t);
383
- return t.style.visibility = r, t.style.display = i, a;
384
+ const a = Mt(t);
385
+ return t.style.visibility = o, t.style.display = i, a;
384
386
  }
385
387
  return {
386
388
  top: n.top,
@@ -390,53 +392,53 @@ g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.le
390
392
  width: n.width,
391
393
  height: n.height
392
394
  };
393
- }, ln = (t) => {
395
+ }, mn = (t) => {
394
396
  let e = {};
395
397
  for (let n in t) {
396
- const r = t[n];
397
- r != null && (e[`--${n}`] = `${r}`);
398
+ const o = t[n];
399
+ o != null && (e[`--${n}`] = `${o}`);
398
400
  }
399
401
  return e;
400
- }, R = new EventTarget(), bt = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map();
401
- let Tt = 0;
402
- const At = "__MINUTOOL_SYM_EVENT__";
403
- function k(t) {
404
- if (!C.has(t)) {
405
- const e = `${At}${++Tt}`;
406
- C.set(t, e), bt.set(e, t);
402
+ }, H = new EventTarget(), At = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
403
+ let St = 0;
404
+ const _t = "__MINUTOOL_SYM_EVENT__";
405
+ function P(t) {
406
+ if (!R.has(t)) {
407
+ const e = `${_t}${++St}`;
408
+ R.set(t, e), At.set(e, t);
407
409
  }
408
- return C.get(t);
410
+ return R.get(t);
409
411
  }
410
- const sn = (t, e) => {
411
- R.addEventListener(typeof t == "symbol" ? k(t) : t, e);
412
- }, cn = (t, e) => {
413
- R.removeEventListener(typeof t == "symbol" ? k(t) : t, e);
414
- }, pn = (t, e = null) => {
415
- R.dispatchEvent(new CustomEvent(typeof t == "symbol" ? k(t) : t, { detail: e }));
416
- }, un = (t) => t.replace(/[\\/:*?"<>|]/g, "_").replace(/[\0-\x1F]/g, "_").replace(/\s+/g, " ").replace(/^\.+/, "").replace(/\.+$/, "").trim(), P = (t) => new Promise((e, n) => {
417
- const r = new FileReader();
418
- r.onload = () => e(r.result), r.onerror = (i) => n(i), r.readAsDataURL(t);
419
- }), F = {}, U = (t, e = null) => e !== null ? (F[t] = e, null) : F[t] || null, fn = async (t) => {
412
+ const fn = (t, e) => {
413
+ H.addEventListener(typeof t == "symbol" ? P(t) : t, e);
414
+ }, dn = (t, e) => {
415
+ H.removeEventListener(typeof t == "symbol" ? P(t) : t, e);
416
+ }, hn = (t, e = null) => {
417
+ H.dispatchEvent(new CustomEvent(typeof t == "symbol" ? P(t) : t, { detail: e }));
418
+ }, gn = (t) => t.replace(/[\\/:*?"<>|]/g, "_").replace(/[\0-\x1F]/g, "_").replace(/\s+/g, " ").replace(/^\.+/, "").replace(/\.+$/, "").trim(), B = (t) => new Promise((e, n) => {
419
+ const o = new FileReader();
420
+ o.onload = () => e(o.result), o.onerror = (i) => n(i), o.readAsDataURL(t);
421
+ }), q = {}, Y = (t, e = null) => e !== null ? (q[t] = e, null) : q[t] || null, xn = async (t) => {
420
422
  if (!t)
421
423
  return null;
422
424
  if (typeof t == "string" && t.startsWith("data:"))
423
425
  return t;
424
426
  try {
425
- if (typeof t == "string" && gt(t)) {
427
+ if (typeof t == "string" && yt(t)) {
426
428
  const e = await fetch(t);
427
429
  if (!e.ok)
428
430
  throw new Error(`Fetch failed: ${e.status}`);
429
431
  const n = await e.blob();
430
- return await P(n);
432
+ return await B(n);
431
433
  }
432
- return t instanceof Blob ? await P(t) : null;
434
+ return t instanceof Blob ? await B(t) : null;
433
435
  } catch (e) {
434
436
  return console.warn("file2Base64DataURL failed:", e), null;
435
437
  }
436
- }, dn = (t, e) => {
438
+ }, wn = (t, e) => {
437
439
  const n = document.createElement("a");
438
440
  n.rel = "noopener noreferrer", n.href = t, n.download = e, document.body.appendChild(n), n.click(), document.body.removeChild(n);
439
- }, W = [
441
+ }, Q = [
440
442
  "ADDRESS",
441
443
  "ARTICLE",
442
444
  "ASIDE",
@@ -471,7 +473,7 @@ const sn = (t, e) => {
471
473
  "TFOOT",
472
474
  "UL",
473
475
  "VIDEO"
474
- ], mn = [
476
+ ], yn = [
475
477
  "A",
476
478
  "ABBR",
477
479
  "ACRONYM",
@@ -504,12 +506,12 @@ const sn = (t, e) => {
504
506
  "TT",
505
507
  "U",
506
508
  "VAR"
507
- ].concat(...W), hn = ["AREA", "BASE", "BR", "COL", "EMBED", "HR", "IMG", "INPUT", "LINK", "META", "PARAM", "SOURCE", "TRACK", "WBR"], Mt = ["STYLE", "COMMENT", "SELECT", "OPTION", "SCRIPT", "TITLE", "HEAD", "BUTTON", "META", "LINK", "PARAM", "SOURCE"], gn = (t) => (Mt.forEach((n) => {
509
+ ].concat(...Q), vn = ["AREA", "BASE", "BR", "COL", "EMBED", "HR", "IMG", "INPUT", "LINK", "META", "PARAM", "SOURCE", "TRACK", "WBR"], Ct = ["STYLE", "COMMENT", "SELECT", "OPTION", "SCRIPT", "TITLE", "HEAD", "BUTTON", "META", "LINK", "PARAM", "SOURCE"], Tn = (t) => (Ct.forEach((n) => {
508
510
  t = t.replace(new RegExp(n, "ig"), "");
509
- }), t = t.replace(/[\r|\n]/g, ""), t = t.replace(/<(\w+)([^>]*)>/g, function(n, r, i) {
510
- return W.includes(r.toUpperCase()) ? `
511
+ }), t = t.replace(/[\r|\n]/g, ""), t = t.replace(/<(\w+)([^>]*)>/g, function(n, o, i) {
512
+ return Q.includes(o.toUpperCase()) ? `
511
513
  ` : "";
512
- }), t = t.replace(/<\/(\w+)([^>]*)>/g, function(n, r, i) {
514
+ }), t = t.replace(/<\/(\w+)([^>]*)>/g, function(n, o, i) {
513
515
  return "";
514
516
  }), t = t.replace(/<[^>]+>/g, ""), [
515
517
  [/&nbsp;/gi, " "],
@@ -517,49 +519,49 @@ const sn = (t, e) => {
517
519
  [/&gt;/gi, ">"],
518
520
  [/&quot;/gi, '"'],
519
521
  [/&apos;/gi, "'"]
520
- ].forEach(([n, r]) => {
521
- t = t.replace(n, r);
522
- }), t = t.replace(/&#(\d+);/, function(n, r) {
523
- return String.fromCharCode(parseInt(r));
524
- }), t = t.replace(/&amp;/gi, "&"), t = t.trim(), t), xn = (t) => St(t, 0, !1).replace(/\n/g, "<br/>"), wn = (t) => window.CSS && CSS.escape ? CSS.escape(t) : t.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&"), vn = (t) => {
522
+ ].forEach(([n, o]) => {
523
+ t = t.replace(n, o);
524
+ }), t = t.replace(/&#(\d+);/, function(n, o) {
525
+ return String.fromCharCode(parseInt(o));
526
+ }), t = t.replace(/&amp;/gi, "&"), t = t.trim(), t), bn = (t) => Nt(t, 0, !1).replace(/\n/g, "<br/>"), En = (t) => window.CSS && CSS.escape ? CSS.escape(t) : t.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&"), Mn = (t) => {
525
527
  let e = t.split(";");
526
528
  return e.pop(), e.map((n) => String.fromCharCode(n[2] === "x" ? parseInt(n.slice(3), 16) : parseInt(n.slice(2)))).join("");
527
529
  };
528
- let y;
529
- const yn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim, ""), t = t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim, ""), y.innerHTML = t, t = y.textContent || "", y.textContent = "", t), En = (t) => {
530
+ let T;
531
+ const An = (t) => (T || (T = document.createElement("div")), t = t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim, ""), t = t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim, ""), T.innerHTML = t, t = T.textContent || "", T.textContent = "", t), Sn = (t) => {
530
532
  let e = "";
531
533
  for (let n in t) {
532
- let r = t[n] === null ? "" : t[n];
533
- e += `<input type="hidden" name="${$(n)}" value="${$(r)}"/>`;
534
+ let o = t[n] === null ? "" : t[n];
535
+ e += `<input type="hidden" name="${z(n)}" value="${z(o)}"/>`;
534
536
  }
535
537
  return e;
536
- }, St = (t, e = 2, n = !0) => {
537
- let r = String(t).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
538
- return n && (r = r.replace(/[\r\n]/g, "<br/>")), e && (r = r.replace(/\t/g, "&nbsp;".repeat(e))), r = r.replace(/\s/g, "&nbsp;"), r;
539
- }, bn = (t) => String(t).replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/<br.*>/, `
540
- `), Tn = (t) => {
538
+ }, Nt = (t, e = 2, n = !0) => {
539
+ let o = String(t).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
540
+ return n && (o = o.replace(/[\r\n]/g, "<br/>")), e && (o = o.replace(/\t/g, "&nbsp;".repeat(e))), o = o.replace(/\s/g, "&nbsp;"), o;
541
+ }, _n = (t) => String(t).replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/<br.*>/, `
542
+ `), Cn = (t) => {
541
543
  if (!t)
542
544
  return "";
543
545
  let e = t;
544
546
  return e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/^###### (.*$)/gim, "<h6>$1</h6>"), e = e.replace(/^##### (.*$)/gim, "<h5>$1</h5>"), e = e.replace(/^#### (.*$)/gim, "<h4>$1</h4>"), e = e.replace(/^### (.*$)/gim, "<h3>$1</h3>"), e = e.replace(/^## (.*$)/gim, "<h2>$1</h2>"), e = e.replace(/^# (.*$)/gim, "<h1>$1</h1>"), e = e.replace(/\*\*(.*?)\*\*/gim, "<strong>$1</strong>"), e = e.replace(/\*(.*?)\*/gim, "<em>$1</em>"), e = e.replace(/`(.*?)`/gim, "<code>$1</code>"), e = e.replace(/!\[(.*?)\]\((.*?)\)/gim, '<img src="$2" alt="$1" />'), e = e.replace(/\[(.*?)\]\((.*?)\)/gim, '<a href="$2" target="_blank">$1</a>'), e = e.replace(/((\|.*\|\n)+)/g, (n) => {
545
- const r = n.trim().split(`
547
+ const o = n.trim().split(`
546
548
  `);
547
- if (r.length < 2) return n;
549
+ if (o.length < 2) return n;
548
550
  let i = "<table>";
549
- return r.forEach((a, p) => {
550
- const o = a.split("|").slice(1, -1);
551
- if (/^\s*-+\s*$/.test(o[0])) return;
551
+ return o.forEach((a, p) => {
552
+ const r = a.split("|").slice(1, -1);
553
+ if (/^\s*-+\s*$/.test(r[0])) return;
552
554
  const s = p === 0 ? "th" : "td";
553
- i += "<tr>", o.forEach((l) => {
555
+ i += "<tr>", r.forEach((l) => {
554
556
  i += `<${s}>${l.trim()}</${s}>`;
555
557
  }), i += "</tr>";
556
558
  }), i += "</table>", i;
557
559
  }), e = e.replace(/^\s*-\s+(.*)/gim, "<li>$1</li>"), e = e.replace(/(<li>.*<\/li>)/gims, "<ul>$1</ul>"), e = e.replace(/\n/g, "<br />"), e.trim();
558
- }, $ = (t, e = "") => (e = e ? "&#13;" : `
559
- `, ("" + t).replace(/&/g, "&amp;").replace(/'/g, "&apos;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r\n/g, e).replace(/[\r\n]/g, e)), An = (t, e) => {
560
+ }, z = (t, e = "") => (e = e ? "&#13;" : `
561
+ `, ("" + t).replace(/&/g, "&amp;").replace(/'/g, "&apos;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r\n/g, e).replace(/[\r\n]/g, e)), Nn = (t, e) => {
560
562
  let n = t.split("");
561
- return e = e || 0, n.map((r) => `&#${e ? "x" + r.charCodeAt(0).toString(16) : r.charCodeAt(0)};`).join("");
562
- }, Mn = (t, e, n = '<span class="matched">%s</span>') => e ? t.replace(new RegExp(N(e), "ig"), (r) => n.replace("%s", r)) : t, Sn = (t) => {
563
+ return e = e || 0, n.map((o) => `&#${e ? "x" + o.charCodeAt(0).toString(16) : o.charCodeAt(0)};`).join("");
564
+ }, On = (t, e, n = '<span class="matched">%s</span>') => e ? t.replace(new RegExp(I(e), "ig"), (o) => n.replace("%s", o)) : t, Dn = (t) => {
563
565
  if (!t.src)
564
566
  return null;
565
567
  if (t.src.indexOf("data:") === 0)
@@ -568,9 +570,9 @@ const yn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
568
570
  e.width = t.width, e.height = t.height;
569
571
  let n = e.getContext("2d");
570
572
  return n ? (n.drawImage(t, 0, 0, t.width, t.height), e.toDataURL("image/png")) : null;
571
- }, _n = (t, e = !1) => new Promise((n, r) => {
573
+ }, Rn = (t, e = !1) => new Promise((n, o) => {
572
574
  if (e) {
573
- const a = U(t);
575
+ const a = Y(t);
574
576
  if (a)
575
577
  return n(a);
576
578
  }
@@ -578,50 +580,50 @@ const yn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
578
580
  i.open("GET", t, !0), i.responseType = "blob", i.onload = function() {
579
581
  if (this.status === 200) {
580
582
  let a = this.response;
581
- ct(a).then((p) => {
582
- e && U(t, p), n(p);
583
+ mt(a).then((p) => {
584
+ e && Y(t, p), n(p);
583
585
  }).catch((p) => {
584
- r(p);
586
+ o(p);
585
587
  });
586
588
  }
587
589
  }, i.onerror = function() {
588
- r("Error:" + this.statusText);
590
+ o("Error:" + this.statusText);
589
591
  }, i.onabort = function() {
590
- r("Request abort");
592
+ o("Request abort");
591
593
  }, i.send();
592
- }), w = (t, e) => {
594
+ }), v = (t, e) => {
593
595
  let n = (t & 65535) + (e & 65535);
594
596
  return (t >> 16) + (e >> 16) + (n >> 16) << 16 | n & 65535;
595
- }, _t = (t, e) => t << e | t >>> 32 - e, M = (t, e, n, r, i, a) => w(_t(w(w(e, t), w(r, a)), i), n), u = (t, e, n, r, i, a, p) => M(e & n | ~e & r, t, e, i, a, p), f = (t, e, n, r, i, a, p) => M(e & r | n & ~r, t, e, i, a, p), d = (t, e, n, r, i, a, p) => M(e ^ n ^ r, t, e, i, a, p), m = (t, e, n, r, i, a, p) => M(n ^ (e | ~r), t, e, i, a, p), A = (t, e) => {
597
+ }, Ot = (t, e) => t << e | t >>> 32 - e, S = (t, e, n, o, i, a) => v(Ot(v(v(e, t), v(o, a)), i), n), u = (t, e, n, o, i, a, p) => S(e & n | ~e & o, t, e, i, a, p), m = (t, e, n, o, i, a, p) => S(e & o | n & ~o, t, e, i, a, p), f = (t, e, n, o, i, a, p) => S(e ^ n ^ o, t, e, i, a, p), d = (t, e, n, o, i, a, p) => S(n ^ (e | ~o), t, e, i, a, p), A = (t, e) => {
596
598
  t[e >> 5] |= 128 << e % 32, t[(e + 64 >>> 9 << 4) + 14] = e;
597
- let n, r, i, a, p, o = 1732584193, s = -271733879, l = -1732584194, c = 271733878;
599
+ let n, o, i, a, p, r = 1732584193, s = -271733879, l = -1732584194, c = 271733878;
598
600
  for (n = 0; n < t.length; n += 16)
599
- r = o, i = s, a = l, p = c, o = u(o, s, l, c, t[n], 7, -680876936), c = u(c, o, s, l, t[n + 1], 12, -389564586), l = u(l, c, o, s, t[n + 2], 17, 606105819), s = u(s, l, c, o, t[n + 3], 22, -1044525330), o = u(o, s, l, c, t[n + 4], 7, -176418897), c = u(c, o, s, l, t[n + 5], 12, 1200080426), l = u(l, c, o, s, t[n + 6], 17, -1473231341), s = u(s, l, c, o, t[n + 7], 22, -45705983), o = u(o, s, l, c, t[n + 8], 7, 1770035416), c = u(c, o, s, l, t[n + 9], 12, -1958414417), l = u(l, c, o, s, t[n + 10], 17, -42063), s = u(s, l, c, o, t[n + 11], 22, -1990404162), o = u(o, s, l, c, t[n + 12], 7, 1804603682), c = u(c, o, s, l, t[n + 13], 12, -40341101), l = u(l, c, o, s, t[n + 14], 17, -1502002290), s = u(s, l, c, o, t[n + 15], 22, 1236535329), o = f(o, s, l, c, t[n + 1], 5, -165796510), c = f(c, o, s, l, t[n + 6], 9, -1069501632), l = f(l, c, o, s, t[n + 11], 14, 643717713), s = f(s, l, c, o, t[n], 20, -373897302), o = f(o, s, l, c, t[n + 5], 5, -701558691), c = f(c, o, s, l, t[n + 10], 9, 38016083), l = f(l, c, o, s, t[n + 15], 14, -660478335), s = f(s, l, c, o, t[n + 4], 20, -405537848), o = f(o, s, l, c, t[n + 9], 5, 568446438), c = f(c, o, s, l, t[n + 14], 9, -1019803690), l = f(l, c, o, s, t[n + 3], 14, -187363961), s = f(s, l, c, o, t[n + 8], 20, 1163531501), o = f(o, s, l, c, t[n + 13], 5, -1444681467), c = f(c, o, s, l, t[n + 2], 9, -51403784), l = f(l, c, o, s, t[n + 7], 14, 1735328473), s = f(s, l, c, o, t[n + 12], 20, -1926607734), o = d(o, s, l, c, t[n + 5], 4, -378558), c = d(c, o, s, l, t[n + 8], 11, -2022574463), l = d(l, c, o, s, t[n + 11], 16, 1839030562), s = d(s, l, c, o, t[n + 14], 23, -35309556), o = d(o, s, l, c, t[n + 1], 4, -1530992060), c = d(c, o, s, l, t[n + 4], 11, 1272893353), l = d(l, c, o, s, t[n + 7], 16, -155497632), s = d(s, l, c, o, t[n + 10], 23, -1094730640), o = d(o, s, l, c, t[n + 13], 4, 681279174), c = d(c, o, s, l, t[n], 11, -358537222), l = d(l, c, o, s, t[n + 3], 16, -722521979), s = d(s, l, c, o, t[n + 6], 23, 76029189), o = d(o, s, l, c, t[n + 9], 4, -640364487), c = d(c, o, s, l, t[n + 12], 11, -421815835), l = d(l, c, o, s, t[n + 15], 16, 530742520), s = d(s, l, c, o, t[n + 2], 23, -995338651), o = m(o, s, l, c, t[n], 6, -198630844), c = m(c, o, s, l, t[n + 7], 10, 1126891415), l = m(l, c, o, s, t[n + 14], 15, -1416354905), s = m(s, l, c, o, t[n + 5], 21, -57434055), o = m(o, s, l, c, t[n + 12], 6, 1700485571), c = m(c, o, s, l, t[n + 3], 10, -1894986606), l = m(l, c, o, s, t[n + 10], 15, -1051523), s = m(s, l, c, o, t[n + 1], 21, -2054922799), o = m(o, s, l, c, t[n + 8], 6, 1873313359), c = m(c, o, s, l, t[n + 15], 10, -30611744), l = m(l, c, o, s, t[n + 6], 15, -1560198380), s = m(s, l, c, o, t[n + 13], 21, 1309151649), o = m(o, s, l, c, t[n + 4], 6, -145523070), c = m(c, o, s, l, t[n + 11], 10, -1120210379), l = m(l, c, o, s, t[n + 2], 15, 718787259), s = m(s, l, c, o, t[n + 9], 21, -343485551), o = w(o, r), s = w(s, i), l = w(l, a), c = w(c, p);
600
- return [o, s, l, c];
601
- }, J = (t) => {
602
- let e, n = "", r = t.length * 32;
603
- for (e = 0; e < r; e += 8)
601
+ o = r, i = s, a = l, p = c, r = u(r, s, l, c, t[n], 7, -680876936), c = u(c, r, s, l, t[n + 1], 12, -389564586), l = u(l, c, r, s, t[n + 2], 17, 606105819), s = u(s, l, c, r, t[n + 3], 22, -1044525330), r = u(r, s, l, c, t[n + 4], 7, -176418897), c = u(c, r, s, l, t[n + 5], 12, 1200080426), l = u(l, c, r, s, t[n + 6], 17, -1473231341), s = u(s, l, c, r, t[n + 7], 22, -45705983), r = u(r, s, l, c, t[n + 8], 7, 1770035416), c = u(c, r, s, l, t[n + 9], 12, -1958414417), l = u(l, c, r, s, t[n + 10], 17, -42063), s = u(s, l, c, r, t[n + 11], 22, -1990404162), r = u(r, s, l, c, t[n + 12], 7, 1804603682), c = u(c, r, s, l, t[n + 13], 12, -40341101), l = u(l, c, r, s, t[n + 14], 17, -1502002290), s = u(s, l, c, r, t[n + 15], 22, 1236535329), r = m(r, s, l, c, t[n + 1], 5, -165796510), c = m(c, r, s, l, t[n + 6], 9, -1069501632), l = m(l, c, r, s, t[n + 11], 14, 643717713), s = m(s, l, c, r, t[n], 20, -373897302), r = m(r, s, l, c, t[n + 5], 5, -701558691), c = m(c, r, s, l, t[n + 10], 9, 38016083), l = m(l, c, r, s, t[n + 15], 14, -660478335), s = m(s, l, c, r, t[n + 4], 20, -405537848), r = m(r, s, l, c, t[n + 9], 5, 568446438), c = m(c, r, s, l, t[n + 14], 9, -1019803690), l = m(l, c, r, s, t[n + 3], 14, -187363961), s = m(s, l, c, r, t[n + 8], 20, 1163531501), r = m(r, s, l, c, t[n + 13], 5, -1444681467), c = m(c, r, s, l, t[n + 2], 9, -51403784), l = m(l, c, r, s, t[n + 7], 14, 1735328473), s = m(s, l, c, r, t[n + 12], 20, -1926607734), r = f(r, s, l, c, t[n + 5], 4, -378558), c = f(c, r, s, l, t[n + 8], 11, -2022574463), l = f(l, c, r, s, t[n + 11], 16, 1839030562), s = f(s, l, c, r, t[n + 14], 23, -35309556), r = f(r, s, l, c, t[n + 1], 4, -1530992060), c = f(c, r, s, l, t[n + 4], 11, 1272893353), l = f(l, c, r, s, t[n + 7], 16, -155497632), s = f(s, l, c, r, t[n + 10], 23, -1094730640), r = f(r, s, l, c, t[n + 13], 4, 681279174), c = f(c, r, s, l, t[n], 11, -358537222), l = f(l, c, r, s, t[n + 3], 16, -722521979), s = f(s, l, c, r, t[n + 6], 23, 76029189), r = f(r, s, l, c, t[n + 9], 4, -640364487), c = f(c, r, s, l, t[n + 12], 11, -421815835), l = f(l, c, r, s, t[n + 15], 16, 530742520), s = f(s, l, c, r, t[n + 2], 23, -995338651), r = d(r, s, l, c, t[n], 6, -198630844), c = d(c, r, s, l, t[n + 7], 10, 1126891415), l = d(l, c, r, s, t[n + 14], 15, -1416354905), s = d(s, l, c, r, t[n + 5], 21, -57434055), r = d(r, s, l, c, t[n + 12], 6, 1700485571), c = d(c, r, s, l, t[n + 3], 10, -1894986606), l = d(l, c, r, s, t[n + 10], 15, -1051523), s = d(s, l, c, r, t[n + 1], 21, -2054922799), r = d(r, s, l, c, t[n + 8], 6, 1873313359), c = d(c, r, s, l, t[n + 15], 10, -30611744), l = d(l, c, r, s, t[n + 6], 15, -1560198380), s = d(s, l, c, r, t[n + 13], 21, 1309151649), r = d(r, s, l, c, t[n + 4], 6, -145523070), c = d(c, r, s, l, t[n + 11], 10, -1120210379), l = d(l, c, r, s, t[n + 2], 15, 718787259), s = d(s, l, c, r, t[n + 9], 21, -343485551), r = v(r, o), s = v(s, i), l = v(l, a), c = v(c, p);
602
+ return [r, s, l, c];
603
+ }, Z = (t) => {
604
+ let e, n = "", o = t.length * 32;
605
+ for (e = 0; e < o; e += 8)
604
606
  n += String.fromCharCode(t[e >> 5] >>> e % 32 & 255);
605
607
  return n;
606
- }, O = (t) => {
608
+ }, k = (t) => {
607
609
  let e, n = [];
608
610
  for (n[(t.length >> 2) - 1] = void 0, e = 0; e < n.length; e += 1)
609
611
  n[e] = 0;
610
- let r = t.length * 8;
611
- for (e = 0; e < r; e += 8)
612
+ let o = t.length * 8;
613
+ for (e = 0; e < o; e += 8)
612
614
  n[e >> 5] |= (t.charCodeAt(e / 8) & 255) << e % 32;
613
615
  return n;
614
- }, Ct = (t) => J(A(O(t), t.length * 8)), Nt = (t, e) => {
615
- let n, r = O(t), i = [], a = [], p;
616
- for (i[15] = a[15] = void 0, r.length > 16 && (r = A(r, t.length * 8)), n = 0; n < 16; n += 1)
617
- i[n] = r[n] ^ 909522486, a[n] = r[n] ^ 1549556828;
618
- return p = A(i.concat(O(e)), 512 + e.length * 8), J(A(a.concat(p), 640));
619
- }, K = (t) => {
620
- let e = "0123456789abcdef", n = "", r, i;
616
+ }, Dt = (t) => Z(A(k(t), t.length * 8)), Rt = (t, e) => {
617
+ let n, o = k(t), i = [], a = [], p;
618
+ for (i[15] = a[15] = void 0, o.length > 16 && (o = A(o, t.length * 8)), n = 0; n < 16; n += 1)
619
+ i[n] = o[n] ^ 909522486, a[n] = o[n] ^ 1549556828;
620
+ return p = A(i.concat(k(e)), 512 + e.length * 8), Z(A(a.concat(p), 640));
621
+ }, X = (t) => {
622
+ let e = "0123456789abcdef", n = "", o, i;
621
623
  for (i = 0; i < t.length; i += 1)
622
- r = t.charCodeAt(i), n += e.charAt(r >>> 4 & 15) + e.charAt(r & 15);
624
+ o = t.charCodeAt(i), n += e.charAt(o >>> 4 & 15) + e.charAt(o & 15);
623
625
  return n;
624
- }, D = (t) => unescape(encodeURIComponent(t)), V = (t) => Ct(D(t)), Ot = (t) => K(V(t)), Q = (t, e) => Nt(D(t), D(e)), Dt = (t, e) => K(Q(t, e)), Cn = (t, e, n) => e ? n ? Q(e, t) : Dt(e, t) : n ? V(t) : Ot(t), Nn = "application/octet-stream", E = "application/json", Rt = "application/x-www-form-urlencoded", kt = "multipart/form-data", On = "text/plain", Dn = "text/html", Rn = {
626
+ }, L = (t) => unescape(encodeURIComponent(t)), tt = (t) => Dt(L(t)), It = (t) => X(tt(t)), et = (t, e) => Rt(L(t), L(e)), kt = (t, e) => X(et(t, e)), In = (t, e, n) => e ? n ? et(e, t) : kt(e, t) : n ? tt(t) : It(t), kn = "application/octet-stream", b = "application/json", Lt = "application/x-www-form-urlencoded", Ht = "multipart/form-data", Ln = "text/plain", Hn = "text/html", Pn = {
625
627
  323: "text/h323",
626
628
  accdb: "application/msaccess",
627
629
  accde: "application/msaccess",
@@ -918,16 +920,16 @@ const yn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
918
920
  xwd: "image/x-xwindowdump",
919
921
  z: "application/x-compress",
920
922
  zip: "application/x-zip-compressed"
921
- }, Z = (t) => {
923
+ }, nt = (t) => {
922
924
  const e = {};
923
925
  return t.replace(/^\?/, "").split("&").forEach((n) => {
924
- const [r, i] = n.split("=");
925
- r && (e[decodeURIComponent(r)] = decodeURIComponent(i || ""));
926
+ const [o, i] = n.split("=");
927
+ o && (e[decodeURIComponent(o)] = decodeURIComponent(i || ""));
926
928
  }), e;
927
- }, It = (t, e) => {
928
- const [n, r] = t.split("?"), a = { ...r ? Z(r) : {}, ...e }, p = X(a);
929
+ }, Pt = (t, e) => {
930
+ const [n, o] = t.split("?"), a = { ...o ? nt(o) : {}, ...e }, p = ot(a);
929
931
  return `${n}?${p}`;
930
- }, X = (t) => {
932
+ }, ot = (t) => {
931
933
  if (typeof t > "u" || typeof t != "object")
932
934
  return t;
933
935
  let e = [];
@@ -935,46 +937,46 @@ const yn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
935
937
  if (t.hasOwnProperty(n)) {
936
938
  if (t[n] === null)
937
939
  continue;
938
- typeof t[n] == "object" && t[n].length ? t[n].forEach((r) => {
939
- e.push(encodeURI(n + "=" + r));
940
+ typeof t[n] == "object" && t[n].length ? t[n].forEach((o) => {
941
+ e.push(encodeURI(n + "=" + o));
940
942
  }) : typeof t[n] == "object" || e.push(encodeURI(n + "=" + t[n]));
941
943
  }
942
944
  return e.join("&");
943
945
  };
944
- class Lt extends Error {
946
+ class Ft extends Error {
945
947
  constructor(e) {
946
948
  super(e), Object.setPrototypeOf(this, new.target.prototype);
947
949
  }
948
950
  }
949
- const Ht = (t, e = {}, n = 0) => {
950
- const r = new AbortController();
951
+ const Ut = (t, e = {}, n = 0) => {
952
+ const o = new AbortController();
951
953
  let i = null;
952
- n && (i = setTimeout(() => r.abort(), n));
954
+ n && (i = setTimeout(() => o.abort(), n));
953
955
  const a = () => {
954
956
  i !== null && (clearTimeout(i), i = null);
955
957
  }, p = (s) => {
956
- const l = s, c = l.then.bind(l), et = l.catch.bind(l), nt = l.finally.bind(l);
957
- return l.then = function(v, rt) {
958
- return p(c(v, rt));
959
- }, l.catch = function(v) {
960
- return p(et(v));
961
- }, l.finally = function(v) {
962
- return p(nt(v));
963
- }, l.abort = (v) => {
964
- a(), r.abort(new Lt(v || "request aborted."));
958
+ const l = s, c = l.then.bind(l), _ = l.catch.bind(l), C = l.finally.bind(l);
959
+ return l.then = function(g, N) {
960
+ return p(c(g, N));
961
+ }, l.catch = function(g) {
962
+ return p(_(g));
963
+ }, l.finally = function(g) {
964
+ return p(C(g));
965
+ }, l.abort = (g) => {
966
+ a(), o.abort(new Ft(g || "request aborted."));
965
967
  }, l;
966
- }, o = fetch(t, {
968
+ }, r = fetch(t, {
967
969
  ...e,
968
- signal: r.signal
970
+ signal: o.signal
969
971
  }).then((s) => (a(), s)).catch((s) => {
970
972
  throw a(), s;
971
973
  });
972
- return p(o);
973
- }, Pt = (t, e, n) => {
974
+ return p(r);
975
+ }, $t = (t, e, n) => {
974
976
  if (e == null) return;
975
- const r = t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase();
976
- n.set(r, String(e));
977
- }, Ft = (t) => [
977
+ const o = t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase();
978
+ n.set(o, String(e));
979
+ }, Bt = (t) => [
978
980
  "method",
979
981
  "headers",
980
982
  "body",
@@ -988,120 +990,123 @@ const Ht = (t, e = {}, n = 0) => {
988
990
  "keepalive",
989
991
  "signal",
990
992
  "window"
991
- ].includes(t), I = (t, e = null, n) => {
992
- let { timeout: r, ...i } = n;
993
+ ].includes(t), F = (t, e = null, n) => {
994
+ let { timeout: o, ...i } = n;
993
995
  i = i || {}, i.method = i.method || "GET";
994
996
  const a = i.method.toUpperCase() === "GET", p = new Headers(i.headers || {});
995
- for (let o in i)
996
- Ft(o) || Pt(o, i[o], p);
997
- return a && e && (t = It(t, typeof e == "string" ? Z(e) : e), e = null), Ht(
997
+ for (let r in i)
998
+ Bt(r) || $t(r, i[r], p);
999
+ return a && e && (t = Pt(t, typeof e == "string" ? nt(e) : e), e = null), Ut(
998
1000
  t,
999
1001
  {
1000
1002
  headers: p,
1001
- body: a ? void 0 : $t(e, p.get("content-type") || void 0),
1003
+ body: a ? void 0 : Yt(e, p.get("content-type") || void 0),
1002
1004
  ...i
1003
1005
  },
1004
- r
1005
- ).then((o) => {
1006
- if (!o.ok)
1007
- throw new Error(`HTTP error! status: ${o.status}`);
1008
- return o;
1006
+ o
1007
+ ).then((r) => {
1008
+ if (!r.ok)
1009
+ throw new Error(`HTTP error! status: ${r.status}`);
1010
+ return r;
1009
1011
  });
1010
- }, Ut = (t) => typeof t == "string" || t instanceof FormData || t instanceof URLSearchParams || t instanceof Blob || t instanceof ArrayBuffer || ArrayBuffer.isView(t), $t = (t, e) => {
1011
- if (Ut(t) || typeof t != "object")
1012
+ }, qt = (t) => typeof t == "string" || t instanceof FormData || t instanceof URLSearchParams || t instanceof Blob || t instanceof ArrayBuffer || ArrayBuffer.isView(t), Yt = (t, e) => {
1013
+ if (qt(t) || typeof t != "object")
1012
1014
  return t;
1013
1015
  switch (e == null ? void 0 : e.toLowerCase()) {
1014
- case E:
1016
+ case b:
1015
1017
  return JSON.stringify(t);
1016
- case Rt:
1017
- case kt:
1018
+ case Lt:
1019
+ case Ht:
1018
1020
  default:
1019
- return X(t);
1021
+ return ot(t);
1020
1022
  }
1021
- }, kn = (t, e = null, n = {}) => I(t, e, { ...n, ContentType: E, Accept: E }).then((r) => r.json()), In = (t, e = null, n = {}) => I(t, e, { ...n, method: "POST", ContentType: E, Accept: E }).then((r) => r.json()), Ln = (t, e, n = null, r = {}) => {
1023
+ }, Fn = (t, e = null, n = {}) => F(t, e, { ...n, ContentType: b, Accept: b }).then((o) => o.json()), Un = (t, e = null, n = {}) => F(t, e, { ...n, method: "POST", ContentType: b, Accept: b }).then((o) => o.json()), $n = (t, e, n = null, o = {}) => {
1022
1024
  const i = new FormData();
1023
1025
  if (Object.keys(e).forEach((a) => {
1024
1026
  i.append(a, e[a], e[a].name);
1025
1027
  }), n)
1026
1028
  for (let a in n)
1027
1029
  n.hasOwnProperty(a) && i.append(a, n[a]);
1028
- return I(t, i, { ...r, method: "POST" }).then((a) => a.json());
1030
+ return F(t, i, { ...o, method: "POST" }).then((a) => a.json());
1029
1031
  };
1030
- function B(t) {
1032
+ function j(t) {
1031
1033
  if (t === null || typeof t != "object") return t;
1032
1034
  if (t instanceof Date) return new Date(t.getTime());
1033
- if (t instanceof Array) return t.map((e) => B(e));
1035
+ if (t instanceof Array) return t.map((e) => j(e));
1034
1036
  if (t instanceof Object) {
1035
1037
  const e = {};
1036
1038
  for (const n in t)
1037
- t.hasOwnProperty(n) && (e[n] = B(t[n]));
1039
+ t.hasOwnProperty(n) && (e[n] = j(t[n]));
1038
1040
  return e;
1039
1041
  }
1040
1042
  return t;
1041
1043
  }
1042
- function Hn(t) {
1044
+ function Bn(t) {
1043
1045
  return Object.keys(t).length === 0;
1044
1046
  }
1045
- const Pn = (t, e) => {
1047
+ const qn = (t, e) => {
1046
1048
  let n = {};
1047
- for (let r in t)
1048
- e[r] !== void 0 ? n[e[r]] = t[r] : n[r] = t[r];
1049
+ for (let o in t)
1050
+ e[o] !== void 0 ? n[e[o]] = t[o] : n[o] = t[o];
1049
1051
  return n;
1050
1052
  };
1051
- function Fn(t, e, n) {
1052
- const r = e.split(".");
1053
+ function Yn(t, e, n) {
1054
+ const o = e.split(".");
1053
1055
  let i = t;
1054
- for (const a of r) {
1056
+ for (const a of o) {
1055
1057
  if (i == null)
1056
1058
  return n;
1057
1059
  i = i[a];
1058
1060
  }
1059
1061
  return i !== void 0 ? i : n;
1060
1062
  }
1061
- function Un(t, e, n) {
1062
- const r = e.split("."), i = r.pop();
1063
+ function zn(t, e, n) {
1064
+ const o = e.split("."), i = o.pop();
1063
1065
  let a = t;
1064
- for (const p of r)
1066
+ for (const p of o)
1065
1067
  (!(p in a) || typeof a[p] != "object") && (a[p] = {}), a = a[p];
1066
1068
  a[i] = n;
1067
1069
  }
1068
- function Bt(t, ...e) {
1070
+ function zt(t, ...e) {
1069
1071
  for (const n of e)
1070
- for (const r in n)
1071
- if (n.hasOwnProperty(r)) {
1072
- const i = n[r], a = t[r];
1073
- i && typeof i == "object" && !Array.isArray(i) && a && typeof a == "object" && !Array.isArray(a) ? t[r] = Bt(a, i) : t[r] = i;
1072
+ for (const o in n)
1073
+ if (n.hasOwnProperty(o)) {
1074
+ const i = n[o], a = t[o];
1075
+ i && typeof i == "object" && !Array.isArray(i) && a && typeof a == "object" && !Array.isArray(a) ? t[o] = zt(a, i) : t[o] = i;
1074
1076
  }
1075
1077
  return t;
1076
1078
  }
1077
- const qt = (t, e = !1) => {
1079
+ const jt = (t, e = !1) => {
1078
1080
  for (const n in t)
1079
- t[n] === null ? delete t[n] : e && typeof t[n] == "object" && qt(t[n], !0);
1081
+ t[n] === null ? delete t[n] : e && typeof t[n] == "object" && jt(t[n], !0);
1080
1082
  return t;
1081
- }, $n = (/* @__PURE__ */ new Date()).getFullYear(), Bn = (/* @__PURE__ */ new Date()).getMonth() + 1, qn = (/* @__PURE__ */ new Date()).getDate(), Yn = 60 * 1e3, jn = 60 * 60 * 1e3, T = 24 * 60 * 60 * 1e3, Gn = 7 * T, zn = 30 * T, Wn = 31 * T, Jn = 365 * T, Kn = 366 * T, Vn = 0, Qn = 1, Zn = 2, Xn = 3, tr = 4, er = 5, nr = 6, Yt = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], jt = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], Gt = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], zt = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], rr = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], ir = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], or = ["日", "一", "二", "三", "四", "五", "六"], ar = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], lr = (t, e, n) => {
1082
- let r = () => {
1083
+ }, jn = (/* @__PURE__ */ new Date()).getFullYear(), Gn = (/* @__PURE__ */ new Date()).getMonth() + 1, Wn = (/* @__PURE__ */ new Date()).getDate(), Jn = 60 * 1e3, Kn = 60 * 60 * 1e3, M = 24 * 60 * 60 * 1e3, Vn = 7 * M, Qn = 30 * M, Zn = 31 * M, Xn = 365 * M, to = 366 * M, eo = 0, no = 1, oo = 2, io = 3, ro = 4, ao = 5, lo = 6, Gt = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], Wt = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], Jt = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Kt = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], so = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], co = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], po = ["日", "一", "二", "三", "四", "五", "六"], uo = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], mo = (t, e, n) => {
1084
+ let o = () => {
1083
1085
  if (e && e(t), t-- > 0) {
1084
- setTimeout(r, 1e3);
1086
+ setTimeout(o, 1e3);
1085
1087
  return;
1086
1088
  }
1087
1089
  n && n();
1088
1090
  };
1089
- r();
1090
- }, sr = (t) => {
1091
+ o();
1092
+ }, fo = (t) => {
1091
1093
  if (!t || t < 10)
1092
1094
  return "刚刚";
1093
1095
  t = Math.floor(t / 1e3);
1094
- const e = Math.floor(t / 3600), n = Math.floor(t % 3600 / 60), r = t % 60;
1096
+ const e = Math.floor(t / 3600), n = Math.floor(t % 3600 / 60), o = t % 60;
1095
1097
  let i = "";
1096
- return e > 0 && (i += e + "小时"), (n > 0 || e > 0) && (i += n + "分钟"), i += r + "秒前", i;
1097
- }, q = {
1098
+ return e > 0 && (i += e + "小时"), (n > 0 || e > 0) && (i += n + "分钟"), i += o + "秒前", i;
1099
+ }, ho = (t, e = !1) => {
1100
+ const n = new Date(t);
1101
+ return new Date(n.getTime() - n.getTimezoneOffset() * 6e4).toISOString().slice(0, e ? 19 : 16);
1102
+ }, go = (t, e, n) => t <= 0 ? 1 / 0 : (Date.now() - n) / t * (e - t), G = {
1098
1103
  d: (t) => {
1099
1104
  let e = t.getDate();
1100
1105
  return (e < 10 ? "0" : "") + e;
1101
1106
  },
1102
- D: (t) => jt[t.getDay()],
1107
+ D: (t) => Wt[t.getDay()],
1103
1108
  j: (t) => t.getDate(),
1104
- l: (t) => Yt[t.getDay()],
1109
+ l: (t) => Gt[t.getDay()],
1105
1110
  N: (t) => {
1106
1111
  let e = t.getDay();
1107
1112
  return e === 0 ? 7 : e;
@@ -1119,18 +1124,18 @@ const qt = (t, e = !1) => {
1119
1124
  W: (t) => {
1120
1125
  let e = new Date(t.valueOf()), n = (t.getDay() + 6) % 7;
1121
1126
  e.setDate(e.getDate() - n + 3);
1122
- let r = e.valueOf();
1127
+ let o = e.valueOf();
1123
1128
  e.setMonth(0, 1), e.getDay() !== 4 && e.setMonth(0, 1 + (4 - e.getDay() + 7) % 7);
1124
- let i = 1 + Math.ceil((r - e.getTime()) / 6048e5);
1129
+ let i = 1 + Math.ceil((o - e.getTime()) / 6048e5);
1125
1130
  return i < 10 ? "0" + i : i;
1126
1131
  },
1127
1132
  // Month
1128
- F: (t) => Gt[t.getMonth()],
1133
+ F: (t) => Jt[t.getMonth()],
1129
1134
  m: (t) => {
1130
1135
  let e = t.getMonth();
1131
1136
  return (e < 9 ? "0" : "") + (e + 1);
1132
1137
  },
1133
- M: (t) => zt[t.getMonth()],
1138
+ M: (t) => Kt[t.getMonth()],
1134
1139
  n: (t) => t.getMonth() + 1,
1135
1140
  t: (t) => {
1136
1141
  let e = t.getFullYear(), n = t.getMonth() + 1;
@@ -1201,189 +1206,222 @@ const qt = (t, e = !1) => {
1201
1206
  },
1202
1207
  Z: (t) => -t.getTimezoneOffset() * 60,
1203
1208
  // Full Date/Time
1204
- c: (t) => tt("Y-m-d\\TH:i:sP", t),
1209
+ c: (t) => it("Y-m-d\\TH:i:sP", t),
1205
1210
  r: (t) => t.toString(),
1206
1211
  U: (t) => Math.floor(t.getTime() / 1e3)
1207
- }, tt = function(t, e = null) {
1212
+ }, it = function(t, e = null) {
1208
1213
  let n = null;
1209
- return typeof e == "object" && e !== null ? n = e : n = new Date(e || Date.now()), t.replace(/(\\?)(.)/g, function(r, i, a) {
1210
- return i === "" && q[a] ? String(q[a](n)) : a;
1214
+ return typeof e == "object" && e !== null ? n = e : n = new Date(e || Date.now()), t.replace(/(\\?)(.)/g, function(o, i, a) {
1215
+ return i === "" && G[a] ? String(G[a](n)) : a;
1211
1216
  });
1212
- }, cr = (t) => tt("W", t);
1217
+ }, Vt = (t) => {
1218
+ const e = /* @__PURE__ */ new Date(), n = new Intl.DateTimeFormat("en-US", {
1219
+ timeZone: "UTC",
1220
+ year: "numeric",
1221
+ month: "numeric",
1222
+ day: "numeric",
1223
+ hour: "numeric",
1224
+ minute: "numeric",
1225
+ second: "numeric"
1226
+ }), o = new Intl.DateTimeFormat("en-US", {
1227
+ timeZone: t,
1228
+ year: "numeric",
1229
+ month: "numeric",
1230
+ day: "numeric",
1231
+ hour: "numeric",
1232
+ minute: "numeric",
1233
+ second: "numeric"
1234
+ }), i = n.formatToParts(e), a = o.formatToParts(e), p = (c) => {
1235
+ const _ = c.find((h) => h.type === "year").value, C = c.find((h) => h.type === "month").value, g = c.find((h) => h.type === "day").value, N = c.find((h) => h.type === "hour").value, rt = c.find((h) => h.type === "minute").value, at = c.find((h) => h.type === "second").value;
1236
+ return Date.UTC(Number(_), Number(C) - 1, Number(g), Number(N), Number(rt), Number(at));
1237
+ }, r = p(i), s = p(a);
1238
+ return (r - s) / 1e3 / 60;
1239
+ }, Qt = (t) => {
1240
+ const e = Math.floor(t / 60), n = Math.abs(t % 60);
1241
+ return `${e >= 0 ? "+" : "-"}${String(Math.abs(e)).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
1242
+ }, xo = (t) => {
1243
+ const e = Vt(t);
1244
+ return Qt(e);
1245
+ }, wo = (t) => it("W", t);
1213
1246
  export {
1214
- Lt as AbortError,
1215
- W as BLOCK_TAGS,
1216
- he as Base64Encode,
1217
- qn as DATE_NOW,
1218
- er as DAY_FRIDAY,
1219
- Qn as DAY_MONDAY,
1220
- nr as DAY_SATURDAY,
1221
- Vn as DAY_SUNDAY,
1222
- tr as DAY_THURSDAY,
1223
- Zn as DAY_TUESDAY,
1224
- Xn as DAY_WEDNESDAY,
1225
- De as GOLDEN_RATIO,
1226
- Nn as MIME_BINARY_DEFAULT,
1227
- Rn as MIME_EXTENSION_MAP,
1228
- Rt as MIME_FORM,
1229
- Dn as MIME_HTML,
1230
- E as MIME_JSON,
1231
- kt as MIME_MULTIPART,
1232
- On as MIME_TEXT,
1233
- rr as MONTH_NAMES_CN,
1234
- Gt as MONTH_NAMES_EN,
1235
- ir as MONTH_NAMES_SHORT_CN,
1236
- zt as MONTH_NAMES_SHORT_EN,
1237
- Bn as MONTH_NOW,
1238
- T as ONE_DAY,
1239
- jn as ONE_HOUR,
1240
- Yn as ONE_MINUTE,
1241
- zn as ONE_MONTH30,
1242
- Wn as ONE_MONTH31,
1243
- Gn as ONE_WEEK,
1244
- Jn as ONE_YEAR365,
1245
- Kn as ONE_YEAR366,
1246
- mn as PAIR_TAGS,
1247
- Mt as REMOVABLE_TAGS,
1248
- hn as SELF_CLOSING_TAGS,
1249
- j as STAND_DPI,
1250
- L as TRIM_BOTH,
1251
- H as TRIM_LEFT,
1252
- st as TRIM_RIGHT,
1253
- ar as WEEK_DAY_NAMES_CN,
1254
- Yt as WEEK_DAY_NAMES_EN,
1255
- or as WEEK_DAY_NAMES_SHORT_CN,
1256
- jt as WEEK_DAY_NAMES_SHORT_EN,
1257
- $n as YEAR_NOW,
1258
- Ht as abortableFetch,
1259
- Zt as arrayChunk,
1260
- Wt as arrayColumn,
1261
- Kt as arrayDistinct,
1262
- Vt as arrayGroup,
1263
- Jt as arrayIndex,
1264
- Qt as arraySortByKey,
1265
- Xt as arrayTrimTail,
1266
- de as base64Decode,
1267
- me as base64UrlSafeEncode,
1268
- g as between,
1269
- ct as blobToBase64,
1270
- P as blobToDataUri,
1271
- En as buildHtmlHidden,
1272
- ln as buildStyleVars,
1273
- ie as camelCase,
1274
- it as capitalize,
1275
- qt as cleanNull,
1276
- lr as countDown,
1277
- an as createDomByHtml,
1278
- wn as cssSelectorEscape,
1279
- ne as cutString,
1280
- Ae as debounce,
1281
- yn as decodeHTMLEntities,
1282
- B as deepClone,
1283
- S as deleteCookie,
1284
- Ee as deleteCookieAllPaths,
1285
- xe as detectLanguage,
1286
- $e as detectedPrecision,
1287
- Be as digitCount,
1288
- xt as disabled,
1289
- pn as dispatchEvent,
1290
- dn as downloadFile,
1291
- wt as enabled,
1292
- ut as enterFullScreen,
1293
- vn as entityToString,
1294
- $ as escapeAttr,
1295
- St as escapeHtml,
1296
- ft as exitFullScreen,
1297
- re as extract,
1298
- fn as fileToBase64DataUri,
1299
- z as findAll,
1300
- b as findOne,
1301
- on as fixBaseUrl,
1302
- te as floatVal,
1303
- tt as formatDate,
1304
- Et as getBoundingClientRect,
1305
- ye as getCookie,
1306
- en as getDomDimension,
1307
- kn as getJson,
1308
- Je as getNodeXPath,
1309
- le as getUTF8StrLen,
1310
- cr as getWeekNumber,
1311
- ht as guid,
1312
- qe as hide,
1313
- Mn as highlightText,
1314
- gn as html2Text,
1315
- Sn as imgToBase64,
1316
- yt as insertStyleSheet,
1317
- Ut as isBodyInit,
1318
- fe as isChinese,
1319
- Hn as isEmptyObject,
1320
- we as isFirefox,
1321
- Ze as isFocusable,
1322
- Ce as isFunction,
1323
- dt as isInFullScreen,
1324
- Ne as isJSON,
1325
- Se as isJson,
1326
- _e as isObject,
1327
- Me as isPromise,
1328
- gt as isUrl,
1329
- oe as kebabCase,
1330
- Ve as keepRectInContainer,
1331
- Pe as limit,
1332
- Xe as loadCss,
1333
- tn as loadScript,
1334
- ze as lockElementInteraction,
1335
- Tn as markdown2Html,
1336
- Cn as md5,
1337
- Ie as mmToPt,
1338
- Re as mmToPx,
1339
- ke as mmToTwip,
1340
- sr as msToHMS,
1341
- vt as mutationEffective,
1342
- We as nodeIndex,
1343
- X as objToQuery,
1344
- Fn as objectGet,
1345
- Pn as objectKeyMapping,
1346
- Bt as objectMerge,
1347
- Un as objectSet,
1348
- cn as offEvent,
1349
- Ke as onDomTreeChange,
1350
- sn as onEvent,
1351
- Ge as onHover,
1352
- Ln as postFiles,
1353
- In as postJson,
1354
- rn as precisionToStep,
1355
- Oe as printStack,
1356
- Le as ptToMm,
1357
- He as pxToMm,
1358
- It as queryReplace,
1359
- Z as queryToObj,
1360
- Fe as randomInt,
1361
- lt as randomString,
1362
- se as randomWords,
1363
- Qe as rectAssoc,
1364
- nn as rectInLayout,
1365
- N as regQuote,
1366
- je as remove,
1367
- I as request,
1368
- Ue as round,
1369
- un as sanitizeFileName,
1370
- ve as setCookie,
1371
- Ye as show,
1372
- _n as srcToBase64,
1373
- ue as strChunk,
1374
- ce as strToPascalCase,
1375
- An as stringToEntity,
1376
- ee as stripSlashes,
1377
- xn as text2Html,
1378
- be as throttle,
1379
- Te as throttleEffect,
1380
- G as toggleDisabled,
1381
- ge as toggleFullScreen,
1382
- pe as trim,
1383
- ae as truncate,
1384
- bn as unescapeHtml,
1385
- U as urlB64DataCache,
1386
- ot as utf8Decode,
1387
- Y as utf8Encode
1247
+ Ft as AbortError,
1248
+ Q as BLOCK_TAGS,
1249
+ ve as Base64Encode,
1250
+ Wn as DATE_NOW,
1251
+ ao as DAY_FRIDAY,
1252
+ no as DAY_MONDAY,
1253
+ lo as DAY_SATURDAY,
1254
+ eo as DAY_SUNDAY,
1255
+ ro as DAY_THURSDAY,
1256
+ oo as DAY_TUESDAY,
1257
+ io as DAY_WEDNESDAY,
1258
+ He as GOLDEN_RATIO,
1259
+ kn as MIME_BINARY_DEFAULT,
1260
+ Pn as MIME_EXTENSION_MAP,
1261
+ Lt as MIME_FORM,
1262
+ Hn as MIME_HTML,
1263
+ b as MIME_JSON,
1264
+ Ht as MIME_MULTIPART,
1265
+ Ln as MIME_TEXT,
1266
+ so as MONTH_NAMES_CN,
1267
+ Jt as MONTH_NAMES_EN,
1268
+ co as MONTH_NAMES_SHORT_CN,
1269
+ Kt as MONTH_NAMES_SHORT_EN,
1270
+ Gn as MONTH_NOW,
1271
+ M as ONE_DAY,
1272
+ Kn as ONE_HOUR,
1273
+ Jn as ONE_MINUTE,
1274
+ Qn as ONE_MONTH30,
1275
+ Zn as ONE_MONTH31,
1276
+ Vn as ONE_WEEK,
1277
+ Xn as ONE_YEAR365,
1278
+ to as ONE_YEAR366,
1279
+ yn as PAIR_TAGS,
1280
+ Ct as REMOVABLE_TAGS,
1281
+ vn as SELF_CLOSING_TAGS,
1282
+ J as STAND_DPI,
1283
+ U as TRIM_BOTH,
1284
+ $ as TRIM_LEFT,
1285
+ ut as TRIM_RIGHT,
1286
+ uo as WEEK_DAY_NAMES_CN,
1287
+ Gt as WEEK_DAY_NAMES_EN,
1288
+ po as WEEK_DAY_NAMES_SHORT_CN,
1289
+ Wt as WEEK_DAY_NAMES_SHORT_EN,
1290
+ jn as YEAR_NOW,
1291
+ Ut as abortableFetch,
1292
+ oe as arrayChunk,
1293
+ Zt as arrayColumn,
1294
+ te as arrayDistinct,
1295
+ ee as arrayGroup,
1296
+ Xt as arrayIndex,
1297
+ ne as arraySortByKey,
1298
+ ie as arrayTrimTail,
1299
+ we as base64Decode,
1300
+ ye as base64UrlSafeEncode,
1301
+ w as between,
1302
+ mt as blobToBase64,
1303
+ B as blobToDataUri,
1304
+ Sn as buildHtmlHidden,
1305
+ mn as buildStyleVars,
1306
+ go as calcRemainingMSecs,
1307
+ ce as camelCase,
1308
+ lt as capitalize,
1309
+ jt as cleanNull,
1310
+ Qt as convertMinutesToTimezoneOffsetStr,
1311
+ mo as countDown,
1312
+ un as createDomByHtml,
1313
+ En as cssSelectorEscape,
1314
+ le as cutString,
1315
+ Ne as debounce,
1316
+ An as decodeHTMLEntities,
1317
+ j as deepClone,
1318
+ O as deleteCookie,
1319
+ Se as deleteCookieAllPaths,
1320
+ be as detectLanguage,
1321
+ je as detectedPrecision,
1322
+ Ge as digitCount,
1323
+ vt as disabled,
1324
+ hn as dispatchEvent,
1325
+ wn as downloadFile,
1326
+ Tt as enabled,
1327
+ dt as enterFullScreen,
1328
+ Mn as entityToString,
1329
+ z as escapeAttr,
1330
+ Nt as escapeHtml,
1331
+ ht as exitFullScreen,
1332
+ se as extract,
1333
+ xn as fileToBase64DataUri,
1334
+ V as findAll,
1335
+ E as findOne,
1336
+ pn as fixBaseUrl,
1337
+ re as floatVal,
1338
+ it as formatDate,
1339
+ Mt as getBoundingClientRect,
1340
+ Ae as getCookie,
1341
+ ln as getDomDimension,
1342
+ Fn as getJson,
1343
+ Xe as getNodeXPath,
1344
+ Vt as getTimezoneOffsetMinutes,
1345
+ xo as getTimezoneOffsetStr,
1346
+ me as getUTF8StrLen,
1347
+ wo as getWeekNumber,
1348
+ wt as guid,
1349
+ We as hide,
1350
+ On as highlightText,
1351
+ Tn as html2Text,
1352
+ Dn as imgToBase64,
1353
+ Et as insertStyleSheet,
1354
+ qt as isBodyInit,
1355
+ xe as isChinese,
1356
+ Bn as isEmptyObject,
1357
+ Ee as isFirefox,
1358
+ on as isFocusable,
1359
+ Ie as isFunction,
1360
+ gt as isInFullScreen,
1361
+ ke as isJSON,
1362
+ De as isJson,
1363
+ Re as isObject,
1364
+ Oe as isPromise,
1365
+ yt as isUrl,
1366
+ pe as kebabCase,
1367
+ en as keepRectInContainer,
1368
+ qe as limit,
1369
+ rn as loadCss,
1370
+ an as loadScript,
1371
+ Qe as lockElementInteraction,
1372
+ Cn as markdown2Html,
1373
+ In as md5,
1374
+ Ue as mmToPt,
1375
+ Pe as mmToPx,
1376
+ Fe as mmToTwip,
1377
+ fo as msToHMS,
1378
+ bt as mutationEffective,
1379
+ Ze as nodeIndex,
1380
+ ot as objToQuery,
1381
+ Yn as objectGet,
1382
+ qn as objectKeyMapping,
1383
+ zt as objectMerge,
1384
+ zn as objectSet,
1385
+ dn as offEvent,
1386
+ tn as onDomTreeChange,
1387
+ fn as onEvent,
1388
+ Ve as onHover,
1389
+ $n as postFiles,
1390
+ Un as postJson,
1391
+ cn as precisionToStep,
1392
+ Le as printStack,
1393
+ $e as ptToMm,
1394
+ Be as pxToMm,
1395
+ Pt as queryReplace,
1396
+ nt as queryToObj,
1397
+ Ye as randomInt,
1398
+ pt as randomString,
1399
+ fe as randomWords,
1400
+ nn as rectAssoc,
1401
+ sn as rectInLayout,
1402
+ I as regQuote,
1403
+ Ke as remove,
1404
+ F as request,
1405
+ ze as round,
1406
+ gn as sanitizeFileName,
1407
+ Me as setCookie,
1408
+ Je as show,
1409
+ Rn as srcToBase64,
1410
+ ge as strChunk,
1411
+ de as strToPascalCase,
1412
+ Nn as stringToEntity,
1413
+ ae as stripSlashes,
1414
+ bn as text2Html,
1415
+ _e as throttle,
1416
+ Ce as throttleEffect,
1417
+ ho as timestampToDateTimeLocal,
1418
+ K as toggleDisabled,
1419
+ Te as toggleFullScreen,
1420
+ he as trim,
1421
+ ue as truncate,
1422
+ _n as unescapeHtml,
1423
+ Y as urlB64DataCache,
1424
+ st as utf8Decode,
1425
+ W as utf8Encode
1388
1426
  };
1389
1427
  //# sourceMappingURL=minutool.js.map