@zyzgroup/core-web 0.1.50 → 0.1.51

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.
@@ -1,4 +1,4 @@
1
- import { getUint8ArrayFromString as Fa, getStringFromArrayBuffer as Xa, getSortedObjectString as Ua, Cache as Va, Retry as Ga, toBlob as Qi, MIMEEnum as Le, EncodeEnum as qa, ReadInBrowserEnum as Ft, getFileTypeFromArrayBuffer as ja, increaseTime as Ha, formatTimeOverflow as Wa, SYMBOL_TIMESTAMP as $e, isPrimitive as $a, hasYZSymbol as Za, ref as Qs, watchEffect as Tt, parse as Dr, stringify as Rr, root as Wt, now as Z, CacheMap as hs, ShellSort as Ja, deleteArrayItem as Ce, generateUUID as Lr, extractAllNumbers as zr, maxDotNumber as Jt, EventBus as Ve, reactive as Or, newConstructor as Br, toKebab as pt, parseNumber as Yt, clamp as O, regMatchAll as Nr, toCamel as Yr, createYZSymbol as Qa, noop as Oi, radixStringToNumber as De, utf16to8 as Fr, cloneTypedArray as Ka, fromHalfFloat as _s, toHalfFloat as wt, extractNumber as Bi, euclideanModulo as th, lerp as bi, stringLength as eh, charAt as Bn, regTest as ee, filterObject as Nn, withinErrorMarginNumber as Ns, stepNumber as sh, deferred as ih, objectSignature as nh, warnLog as rh, retry as Xr, cache as Ur, isInArray as oh, appendUniqueArray as ah } from "@zyzgroup/core-common";
1
+ import { getUint8ArrayFromString as Fa, getStringFromArrayBuffer as Xa, getSortedObjectString as Ua, Cache as Va, Retry as Ga, toBlob as Qi, MIMEEnum as Le, EncodeEnum as qa, ReadInBrowserEnum as Ft, getFileTypeFromArrayBuffer as ja, increaseTime as Ha, formatTimeOverflow as Wa, SYMBOL_TIMESTAMP as Cs, isPrimitive as $a, hasYZSymbol as Za, ref as Ks, watchEffect as Tt, parse as Dr, stringify as Rr, root as Wt, now as Z, CacheMap as as, ShellSort as Ja, deleteArrayItem as Ce, generateUUID as Lr, extractAllNumbers as zr, maxDotNumber as Jt, EventBus as Ve, reactive as Or, newConstructor as Br, toKebab as pt, parseNumber as Yt, clamp as O, regMatchAll as Nr, toCamel as Yr, createYZSymbol as Qa, noop as Oi, radixStringToNumber as De, utf16to8 as Fr, cloneTypedArray as Ka, fromHalfFloat as _s, toHalfFloat as wt, extractNumber as Bi, euclideanModulo as th, lerp as Si, stringLength as eh, charAt as Bn, regTest as ee, filterObject as Nn, withinErrorMarginNumber as Ys, stepNumber as sh, deferred as ih, objectSignature as nh, warnLog as rh, retry as Xr, cache as Ur, isInArray as oh, appendUniqueArray as ah } from "@zyzgroup/core-common";
2
2
  function Vr(i) {
3
3
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
4
4
  }
@@ -160,29 +160,29 @@ function qr(i, t) {
160
160
  return i.apply(t, arguments);
161
161
  };
162
162
  }
163
- const { toString: lh } = Object.prototype, { getPrototypeOf: Ki } = Object, Ks = ((i) => (t) => {
163
+ const { toString: lh } = Object.prototype, { getPrototypeOf: Ki } = Object, ti = ((i) => (t) => {
164
164
  const e = lh.call(t);
165
165
  return i[e] || (i[e] = e.slice(8, -1).toLowerCase());
166
- })(/* @__PURE__ */ Object.create(null)), Vt = (i) => (i = i.toLowerCase(), (t) => Ks(t) === i), ti = (i) => (t) => typeof t === i, { isArray: Ge } = Array, os = ti("undefined");
166
+ })(/* @__PURE__ */ Object.create(null)), Vt = (i) => (i = i.toLowerCase(), (t) => ti(t) === i), ei = (i) => (t) => typeof t === i, { isArray: Ge } = Array, rs = ei("undefined");
167
167
  function uh(i) {
168
- return i !== null && !os(i) && i.constructor !== null && !os(i.constructor) && Et(i.constructor.isBuffer) && i.constructor.isBuffer(i);
168
+ return i !== null && !rs(i) && i.constructor !== null && !rs(i.constructor) && Et(i.constructor.isBuffer) && i.constructor.isBuffer(i);
169
169
  }
170
170
  const jr = Vt("ArrayBuffer");
171
171
  function fh(i) {
172
172
  let t;
173
173
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(i) : t = i && i.buffer && jr(i.buffer), t;
174
174
  }
175
- const dh = ti("string"), Et = ti("function"), Hr = ti("number"), ei = (i) => i !== null && typeof i == "object", mh = (i) => i === !0 || i === !1, Ls = (i) => {
176
- if (Ks(i) !== "object")
175
+ const dh = ei("string"), Et = ei("function"), Hr = ei("number"), si = (i) => i !== null && typeof i == "object", mh = (i) => i === !0 || i === !1, zs = (i) => {
176
+ if (ti(i) !== "object")
177
177
  return !1;
178
178
  const t = Ki(i);
179
179
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in i) && !(Symbol.iterator in i);
180
- }, ph = Vt("Date"), gh = Vt("File"), yh = Vt("Blob"), xh = Vt("FileList"), wh = (i) => ei(i) && Et(i.pipe), bh = (i) => {
180
+ }, ph = Vt("Date"), gh = Vt("File"), yh = Vt("Blob"), xh = Vt("FileList"), wh = (i) => si(i) && Et(i.pipe), bh = (i) => {
181
181
  let t;
182
- return i && (typeof FormData == "function" && i instanceof FormData || Et(i.append) && ((t = Ks(i)) === "formdata" || // detect form-data instance
182
+ return i && (typeof FormData == "function" && i instanceof FormData || Et(i.append) && ((t = ti(i)) === "formdata" || // detect form-data instance
183
183
  t === "object" && Et(i.toString) && i.toString() === "[object FormData]"));
184
184
  }, Sh = Vt("URLSearchParams"), [vh, Ch, _h, Th] = ["ReadableStream", "Request", "Response", "Headers"].map(Vt), Mh = (i) => i.trim ? i.trim() : i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
185
- function cs(i, t, { allOwnKeys: e = !1 } = {}) {
185
+ function hs(i, t, { allOwnKeys: e = !1 } = {}) {
186
186
  if (i === null || typeof i > "u")
187
187
  return;
188
188
  let s, n;
@@ -205,17 +205,17 @@ function Wr(i, t) {
205
205
  return n;
206
206
  return null;
207
207
  }
208
- const _e = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), $r = (i) => !os(i) && i !== _e;
208
+ const _e = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), $r = (i) => !rs(i) && i !== _e;
209
209
  function Ni() {
210
210
  const { caseless: i } = $r(this) && this || {}, t = {}, e = (s, n) => {
211
211
  const r = i && Wr(t, n) || n;
212
- Ls(t[r]) && Ls(s) ? t[r] = Ni(t[r], s) : Ls(s) ? t[r] = Ni({}, s) : Ge(s) ? t[r] = s.slice() : t[r] = s;
212
+ zs(t[r]) && zs(s) ? t[r] = Ni(t[r], s) : zs(s) ? t[r] = Ni({}, s) : Ge(s) ? t[r] = s.slice() : t[r] = s;
213
213
  };
214
214
  for (let s = 0, n = arguments.length; s < n; s++)
215
- arguments[s] && cs(arguments[s], e);
215
+ arguments[s] && hs(arguments[s], e);
216
216
  return t;
217
217
  }
218
- const Eh = (i, t, e, { allOwnKeys: s } = {}) => (cs(t, (n, r) => {
218
+ const Eh = (i, t, e, { allOwnKeys: s } = {}) => (hs(t, (n, r) => {
219
219
  e && Et(n) ? i[r] = qr(n, e) : i[r] = n;
220
220
  }, { allOwnKeys: s }), i), Ph = (i) => (i.charCodeAt(0) === 65279 && (i = i.slice(1)), i), Ih = (i, t, e, s) => {
221
221
  i.prototype = Object.create(t.prototype, s), i.prototype.constructor = i, Object.defineProperty(i, "super", {
@@ -268,7 +268,7 @@ const Eh = (i, t, e, { allOwnKeys: s } = {}) => (cs(t, (n, r) => {
268
268
  }
269
269
  ), Yn = (({ hasOwnProperty: i }) => (t, e) => i.call(t, e))(Object.prototype), Nh = Vt("RegExp"), Zr = (i, t) => {
270
270
  const e = Object.getOwnPropertyDescriptors(i), s = {};
271
- cs(e, (n, r) => {
271
+ hs(e, (n, r) => {
272
272
  let o;
273
273
  (o = t(n, r, i)) !== !1 && (s[r] = o || n);
274
274
  }), Object.defineProperties(i, s);
@@ -301,22 +301,22 @@ function Vh(i) {
301
301
  }
302
302
  const Gh = (i) => {
303
303
  const t = new Array(10), e = (s, n) => {
304
- if (ei(s)) {
304
+ if (si(s)) {
305
305
  if (t.indexOf(s) >= 0)
306
306
  return;
307
307
  if (!("toJSON" in s)) {
308
308
  t[n] = s;
309
309
  const r = Ge(s) ? [] : {};
310
- return cs(s, (o, a) => {
310
+ return hs(s, (o, a) => {
311
311
  const h = e(o, n + 1);
312
- !os(h) && (r[a] = h);
312
+ !rs(h) && (r[a] = h);
313
313
  }), t[n] = void 0, r;
314
314
  }
315
315
  }
316
316
  return s;
317
317
  };
318
318
  return e(i, 0);
319
- }, qh = Vt("AsyncFunction"), jh = (i) => i && (ei(i) || Et(i)) && Et(i.then) && Et(i.catch), Jr = ((i, t) => i ? setImmediate : t ? ((e, s) => (_e.addEventListener("message", ({ source: n, data: r }) => {
319
+ }, qh = Vt("AsyncFunction"), jh = (i) => i && (si(i) || Et(i)) && Et(i.then) && Et(i.catch), Jr = ((i, t) => i ? setImmediate : t ? ((e, s) => (_e.addEventListener("message", ({ source: n, data: r }) => {
320
320
  n === _e && r === e && s.length && s.shift()();
321
321
  }, !1), (n) => {
322
322
  s.push(n), _e.postMessage(e, "*");
@@ -332,13 +332,13 @@ const Gh = (i) => {
332
332
  isString: dh,
333
333
  isNumber: Hr,
334
334
  isBoolean: mh,
335
- isObject: ei,
336
- isPlainObject: Ls,
335
+ isObject: si,
336
+ isPlainObject: zs,
337
337
  isReadableStream: vh,
338
338
  isRequest: Ch,
339
339
  isResponse: _h,
340
340
  isHeaders: Th,
341
- isUndefined: os,
341
+ isUndefined: rs,
342
342
  isDate: ph,
343
343
  isFile: gh,
344
344
  isBlob: yh,
@@ -348,14 +348,14 @@ const Gh = (i) => {
348
348
  isURLSearchParams: Sh,
349
349
  isTypedArray: Rh,
350
350
  isFileList: xh,
351
- forEach: cs,
351
+ forEach: hs,
352
352
  merge: Ni,
353
353
  extend: Eh,
354
354
  trim: Mh,
355
355
  stripBOM: Ph,
356
356
  inherits: Ih,
357
357
  toFlatObject: Ah,
358
- kindOf: Ks,
358
+ kindOf: ti,
359
359
  kindOfTest: Vt,
360
360
  endsWith: kh,
361
361
  toArray: Dh,
@@ -449,7 +449,7 @@ function $h(i) {
449
449
  const Zh = P.toFlatObject(P, {}, null, function(t) {
450
450
  return /^is[A-Z]/.test(t);
451
451
  });
452
- function si(i, t, e) {
452
+ function ii(i, t, e) {
453
453
  if (!P.isObject(i))
454
454
  throw new TypeError("target must be an object");
455
455
  t = t || new FormData(), e = P.toFlatObject(e, {
@@ -526,7 +526,7 @@ function Xn(i) {
526
526
  });
527
527
  }
528
528
  function tn(i, t) {
529
- this._pairs = [], i && si(i, this, t);
529
+ this._pairs = [], i && ii(i, this, t);
530
530
  }
531
531
  const eo = tn.prototype;
532
532
  eo.append = function(t, e) {
@@ -637,7 +637,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
637
637
  ...sc
638
638
  };
639
639
  function ac(i, t) {
640
- return si(i, new ct.classes.URLSearchParams(), Object.assign({
640
+ return ii(i, new ct.classes.URLSearchParams(), Object.assign({
641
641
  visitor: function(e, s, n, r) {
642
642
  return ct.isNode && P.isBuffer(e) ? (this.append(s, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
643
643
  }
@@ -700,7 +700,7 @@ const sn = {
700
700
  return ac(t, this.formSerializer).toString();
701
701
  if ((a = P.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
702
702
  const h = this.env && this.env.FormData;
703
- return si(
703
+ return ii(
704
704
  a ? { "files[]": t } : t,
705
705
  h && new h(),
706
706
  this.formSerializer
@@ -776,11 +776,11 @@ const nn = sn, uc = P.toObjectSet([
776
776
  n = o.indexOf(":"), e = o.substring(0, n).trim().toLowerCase(), s = o.substring(n + 1).trim(), !(!e || t[e] && uc[e]) && (e === "set-cookie" ? t[e] ? t[e].push(s) : t[e] = [s] : t[e] = t[e] ? t[e] + ", " + s : s);
777
777
  }), t;
778
778
  }, Vn = Symbol("internals");
779
- function Ze(i) {
779
+ function $e(i) {
780
780
  return i && String(i).trim().toLowerCase();
781
781
  }
782
- function zs(i) {
783
- return i === !1 || i == null ? i : P.isArray(i) ? i.map(zs) : String(i);
782
+ function Os(i) {
783
+ return i === !1 || i == null ? i : P.isArray(i) ? i.map(Os) : String(i);
784
784
  }
785
785
  function dc(i) {
786
786
  const t = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -790,7 +790,7 @@ function dc(i) {
790
790
  return t;
791
791
  }
792
792
  const mc = (i) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());
793
- function Si(i, t, e, s, n) {
793
+ function vi(i, t, e, s, n) {
794
794
  if (P.isFunction(s))
795
795
  return s.call(this, t, e);
796
796
  if (n && (t = e), !!P.isString(t)) {
@@ -814,18 +814,18 @@ function gc(i, t) {
814
814
  });
815
815
  });
816
816
  }
817
- class ii {
817
+ class ni {
818
818
  constructor(t) {
819
819
  t && this.set(t);
820
820
  }
821
821
  set(t, e, s) {
822
822
  const n = this;
823
823
  function r(a, h, c) {
824
- const l = Ze(h);
824
+ const l = $e(h);
825
825
  if (!l)
826
826
  throw new Error("header name must be a non-empty string");
827
827
  const u = P.findKey(n, l);
828
- (!u || n[u] === void 0 || c === !0 || c === void 0 && n[u] !== !1) && (n[u || h] = zs(a));
828
+ (!u || n[u] === void 0 || c === !0 || c === void 0 && n[u] !== !1) && (n[u || h] = Os(a));
829
829
  }
830
830
  const o = (a, h) => P.forEach(a, (c, l) => r(c, l, h));
831
831
  if (P.isPlainObject(t) || t instanceof this.constructor)
@@ -840,7 +840,7 @@ class ii {
840
840
  return this;
841
841
  }
842
842
  get(t, e) {
843
- if (t = Ze(t), t) {
843
+ if (t = $e(t), t) {
844
844
  const s = P.findKey(this, t);
845
845
  if (s) {
846
846
  const n = this[s];
@@ -857,9 +857,9 @@ class ii {
857
857
  }
858
858
  }
859
859
  has(t, e) {
860
- if (t = Ze(t), t) {
860
+ if (t = $e(t), t) {
861
861
  const s = P.findKey(this, t);
862
- return !!(s && this[s] !== void 0 && (!e || Si(this, this[s], s, e)));
862
+ return !!(s && this[s] !== void 0 && (!e || vi(this, this[s], s, e)));
863
863
  }
864
864
  return !1;
865
865
  }
@@ -867,9 +867,9 @@ class ii {
867
867
  const s = this;
868
868
  let n = !1;
869
869
  function r(o) {
870
- if (o = Ze(o), o) {
870
+ if (o = $e(o), o) {
871
871
  const a = P.findKey(s, o);
872
- a && (!e || Si(s, s[a], a, e)) && (delete s[a], n = !0);
872
+ a && (!e || vi(s, s[a], a, e)) && (delete s[a], n = !0);
873
873
  }
874
874
  }
875
875
  return P.isArray(t) ? t.forEach(r) : r(t), n;
@@ -879,7 +879,7 @@ class ii {
879
879
  let s = e.length, n = !1;
880
880
  for (; s--; ) {
881
881
  const r = e[s];
882
- (!t || Si(this, this[r], r, t, !0)) && (delete this[r], n = !0);
882
+ (!t || vi(this, this[r], r, t, !0)) && (delete this[r], n = !0);
883
883
  }
884
884
  return n;
885
885
  }
@@ -888,11 +888,11 @@ class ii {
888
888
  return P.forEach(this, (n, r) => {
889
889
  const o = P.findKey(s, r);
890
890
  if (o) {
891
- e[o] = zs(n), delete e[r];
891
+ e[o] = Os(n), delete e[r];
892
892
  return;
893
893
  }
894
894
  const a = t ? pc(r) : String(r).trim();
895
- a !== r && delete e[r], e[a] = zs(n), s[a] = !0;
895
+ a !== r && delete e[r], e[a] = Os(n), s[a] = !0;
896
896
  }), this;
897
897
  }
898
898
  concat(...t) {
@@ -926,14 +926,14 @@ class ii {
926
926
  accessors: {}
927
927
  }).accessors, n = this.prototype;
928
928
  function r(o) {
929
- const a = Ze(o);
929
+ const a = $e(o);
930
930
  s[a] || (gc(n, o), s[a] = !0);
931
931
  }
932
932
  return P.isArray(t) ? t.forEach(r) : r(t), this;
933
933
  }
934
934
  }
935
- ii.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
936
- P.reduceDescriptors(ii.prototype, ({ value: i }, t) => {
935
+ ni.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
936
+ P.reduceDescriptors(ni.prototype, ({ value: i }, t) => {
937
937
  let e = t[0].toUpperCase() + t.slice(1);
938
938
  return {
939
939
  get: () => i,
@@ -942,9 +942,9 @@ P.reduceDescriptors(ii.prototype, ({ value: i }, t) => {
942
942
  }
943
943
  };
944
944
  });
945
- P.freezeMethods(ii);
946
- const Xt = ii;
947
- function vi(i, t) {
945
+ P.freezeMethods(ni);
946
+ const Xt = ni;
947
+ function Ci(i, t) {
948
948
  const e = this || nn, s = t || e, n = Xt.from(s.headers);
949
949
  let r = s.data;
950
950
  return P.forEach(i, function(a) {
@@ -1002,7 +1002,7 @@ function wc(i, t) {
1002
1002
  }, s - u)));
1003
1003
  }, () => n && o(n)];
1004
1004
  }
1005
- const Ys = (i, t, e = 3) => {
1005
+ const Fs = (i, t, e = 3) => {
1006
1006
  let s = 0;
1007
1007
  const n = xc(50, 250);
1008
1008
  return wc((r) => {
@@ -1203,7 +1203,7 @@ const ho = (i) => {
1203
1203
  )), v = null;
1204
1204
  }, r === void 0 && o.setContentType(null), "setRequestHeader" in v && P.forEach(o.toJSON(), function(y, _) {
1205
1205
  v.setRequestHeader(_, y);
1206
- }), P.isUndefined(n.withCredentials) || (v.withCredentials = !!n.withCredentials), a && a !== "json" && (v.responseType = n.responseType), c && ([f, m] = Ys(c, !0), v.addEventListener("progress", f)), h && v.upload && ([u, d] = Ys(h), v.upload.addEventListener("progress", u), v.upload.addEventListener("loadend", d)), (n.cancelToken || n.signal) && (l = (g) => {
1206
+ }), P.isUndefined(n.withCredentials) || (v.withCredentials = !!n.withCredentials), a && a !== "json" && (v.responseType = n.responseType), c && ([f, m] = Fs(c, !0), v.addEventListener("progress", f)), h && v.upload && ([u, d] = Fs(h), v.upload.addEventListener("progress", u), v.upload.addEventListener("loadend", d)), (n.cancelToken || n.signal) && (l = (g) => {
1207
1207
  v && (s(!g || g.type ? new qe(null, i, v) : g), v.abort(), v = null);
1208
1208
  }, n.cancelToken && n.cancelToken.subscribe(l), n.signal && (n.signal.aborted ? l() : n.signal.addEventListener("abort", l)));
1209
1209
  const b = yc(n.url);
@@ -1293,7 +1293,7 @@ const ho = (i) => {
1293
1293
  }, {
1294
1294
  highWaterMark: 2
1295
1295
  });
1296
- }, ni = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", co = ni && typeof ReadableStream == "function", kc = ni && (typeof TextEncoder == "function" ? ((i) => (t) => i.encode(t))(new TextEncoder()) : async (i) => new Uint8Array(await new Response(i).arrayBuffer())), lo = (i, ...t) => {
1296
+ }, ri = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", co = ri && typeof ReadableStream == "function", kc = ri && (typeof TextEncoder == "function" ? ((i) => (t) => i.encode(t))(new TextEncoder()) : async (i) => new Uint8Array(await new Response(i).arrayBuffer())), lo = (i, ...t) => {
1297
1297
  try {
1298
1298
  return !!i(...t);
1299
1299
  } catch {
@@ -1309,12 +1309,12 @@ const ho = (i) => {
1309
1309
  }
1310
1310
  }).headers.has("Content-Type");
1311
1311
  return i && !t;
1312
- }), Wn = 64 * 1024, Xi = co && lo(() => P.isReadableStream(new Response("").body)), Fs = {
1312
+ }), Wn = 64 * 1024, Xi = co && lo(() => P.isReadableStream(new Response("").body)), Xs = {
1313
1313
  stream: Xi && ((i) => i.body)
1314
1314
  };
1315
- ni && ((i) => {
1315
+ ri && ((i) => {
1316
1316
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1317
- !Fs[t] && (Fs[t] = P.isFunction(i[t]) ? (e) => e[t]() : (e, s) => {
1317
+ !Xs[t] && (Xs[t] = P.isFunction(i[t]) ? (e) => e[t]() : (e, s) => {
1318
1318
  throw new Y(`Response type '${t}' is not supported`, Y.ERR_NOT_SUPPORT, s);
1319
1319
  });
1320
1320
  });
@@ -1336,7 +1336,7 @@ const Rc = async (i) => {
1336
1336
  }, Lc = async (i, t) => {
1337
1337
  const e = P.toFiniteNumber(i.getContentLength());
1338
1338
  return e ?? Rc(t);
1339
- }, zc = ni && (async (i) => {
1339
+ }, zc = ri && (async (i) => {
1340
1340
  let {
1341
1341
  url: t,
1342
1342
  method: e,
@@ -1367,7 +1367,7 @@ const Rc = async (i) => {
1367
1367
  if (P.isFormData(s) && (C = _.headers.get("content-type")) && l.setContentType(C), _.body) {
1368
1368
  const [D, X] = Gn(
1369
1369
  v,
1370
- Ys(qn(h))
1370
+ Fs(qn(h))
1371
1371
  );
1372
1372
  s = Hn(_.body, Wn, D, X);
1373
1373
  }
@@ -1392,7 +1392,7 @@ const Rc = async (i) => {
1392
1392
  });
1393
1393
  const C = P.toFiniteNumber(b.headers.get("content-length")), [D, X] = a && Gn(
1394
1394
  C,
1395
- Ys(qn(a), !0)
1395
+ Fs(qn(a), !0)
1396
1396
  ) || [];
1397
1397
  b = new Response(
1398
1398
  Hn(b.body, Wn, D, () => {
@@ -1402,7 +1402,7 @@ const Rc = async (i) => {
1402
1402
  );
1403
1403
  }
1404
1404
  c = c || "text";
1405
- let y = await Fs[P.findKey(Fs, c) || "text"](b, i);
1405
+ let y = await Xs[P.findKey(Xs, c) || "text"](b, i);
1406
1406
  return !g && S && S(), await new Promise((_, C) => {
1407
1407
  oo(_, C, {
1408
1408
  data: y,
@@ -1466,36 +1466,36 @@ const $n = (i) => `- ${i}`, Oc = (i) => P.isFunction(i) || i === null || i === !
1466
1466
  },
1467
1467
  adapters: Ui
1468
1468
  };
1469
- function Ci(i) {
1469
+ function _i(i) {
1470
1470
  if (i.cancelToken && i.cancelToken.throwIfRequested(), i.signal && i.signal.aborted)
1471
1471
  throw new qe(null, i);
1472
1472
  }
1473
1473
  function Zn(i) {
1474
- return Ci(i), i.headers = Xt.from(i.headers), i.data = vi.call(
1474
+ return _i(i), i.headers = Xt.from(i.headers), i.data = Ci.call(
1475
1475
  i,
1476
1476
  i.transformRequest
1477
1477
  ), ["post", "put", "patch"].indexOf(i.method) !== -1 && i.headers.setContentType("application/x-www-form-urlencoded", !1), uo.getAdapter(i.adapter || nn.adapter)(i).then(function(s) {
1478
- return Ci(i), s.data = vi.call(
1478
+ return _i(i), s.data = Ci.call(
1479
1479
  i,
1480
1480
  i.transformResponse,
1481
1481
  s
1482
1482
  ), s.headers = Xt.from(s.headers), s;
1483
1483
  }, function(s) {
1484
- return ro(s) || (Ci(i), s && s.response && (s.response.data = vi.call(
1484
+ return ro(s) || (_i(i), s && s.response && (s.response.data = Ci.call(
1485
1485
  i,
1486
1486
  i.transformResponse,
1487
1487
  s.response
1488
1488
  ), s.response.headers = Xt.from(s.response.headers))), Promise.reject(s);
1489
1489
  });
1490
1490
  }
1491
- const fo = "1.8.4", ri = {};
1491
+ const fo = "1.8.4", oi = {};
1492
1492
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((i, t) => {
1493
- ri[i] = function(s) {
1493
+ oi[i] = function(s) {
1494
1494
  return typeof s === i || "a" + (t < 1 ? "n " : " ") + i;
1495
1495
  };
1496
1496
  });
1497
1497
  const Jn = {};
1498
- ri.transitional = function(t, e, s) {
1498
+ oi.transitional = function(t, e, s) {
1499
1499
  function n(r, o) {
1500
1500
  return "[Axios v" + fo + "] Transitional option '" + r + "'" + o + (s ? ". " + s : "");
1501
1501
  }
@@ -1513,7 +1513,7 @@ ri.transitional = function(t, e, s) {
1513
1513
  )), t ? t(r, o, a) : !0;
1514
1514
  };
1515
1515
  };
1516
- ri.spelling = function(t) {
1516
+ oi.spelling = function(t) {
1517
1517
  return (e, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
1518
1518
  };
1519
1519
  function Bc(i, t, e) {
@@ -1533,11 +1533,11 @@ function Bc(i, t, e) {
1533
1533
  throw new Y("Unknown option " + r, Y.ERR_BAD_OPTION);
1534
1534
  }
1535
1535
  }
1536
- const Os = {
1536
+ const Bs = {
1537
1537
  assertOptions: Bc,
1538
- validators: ri
1539
- }, Ht = Os.validators;
1540
- class Xs {
1538
+ validators: oi
1539
+ }, Ht = Bs.validators;
1540
+ class Us {
1541
1541
  constructor(t) {
1542
1542
  this.defaults = t, this.interceptors = {
1543
1543
  request: new Un(),
@@ -1572,16 +1572,16 @@ class Xs {
1572
1572
  _request(t, e) {
1573
1573
  typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = Pe(this.defaults, e);
1574
1574
  const { transitional: s, paramsSerializer: n, headers: r } = e;
1575
- s !== void 0 && Os.assertOptions(s, {
1575
+ s !== void 0 && Bs.assertOptions(s, {
1576
1576
  silentJSONParsing: Ht.transitional(Ht.boolean),
1577
1577
  forcedJSONParsing: Ht.transitional(Ht.boolean),
1578
1578
  clarifyTimeoutError: Ht.transitional(Ht.boolean)
1579
1579
  }, !1), n != null && (P.isFunction(n) ? e.paramsSerializer = {
1580
1580
  serialize: n
1581
- } : Os.assertOptions(n, {
1581
+ } : Bs.assertOptions(n, {
1582
1582
  encode: Ht.function,
1583
1583
  serialize: Ht.function
1584
- }, !0)), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), Os.assertOptions(e, {
1584
+ }, !0)), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), Bs.assertOptions(e, {
1585
1585
  baseUrl: Ht.spelling("baseURL"),
1586
1586
  withXsrfToken: Ht.spelling("withXSRFToken")
1587
1587
  }, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
@@ -1638,7 +1638,7 @@ class Xs {
1638
1638
  }
1639
1639
  }
1640
1640
  P.forEach(["delete", "get", "head", "options"], function(t) {
1641
- Xs.prototype[t] = function(e, s) {
1641
+ Us.prototype[t] = function(e, s) {
1642
1642
  return this.request(Pe(s || {}, {
1643
1643
  method: t,
1644
1644
  url: e,
@@ -1659,9 +1659,9 @@ P.forEach(["post", "put", "patch"], function(t) {
1659
1659
  }));
1660
1660
  };
1661
1661
  }
1662
- Xs.prototype[t] = e(), Xs.prototype[t + "Form"] = e(!0);
1662
+ Us.prototype[t] = e(), Us.prototype[t + "Form"] = e(!0);
1663
1663
  });
1664
- const Bs = Xs;
1664
+ const Ns = Us;
1665
1665
  class rn {
1666
1666
  constructor(t) {
1667
1667
  if (typeof t != "function")
@@ -1815,18 +1815,18 @@ Object.entries(Vi).forEach(([i, t]) => {
1815
1815
  });
1816
1816
  const Xc = Vi;
1817
1817
  function mo(i) {
1818
- const t = new Bs(i), e = qr(Bs.prototype.request, t);
1819
- return P.extend(e, Bs.prototype, t, { allOwnKeys: !0 }), P.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(n) {
1818
+ const t = new Ns(i), e = qr(Ns.prototype.request, t);
1819
+ return P.extend(e, Ns.prototype, t, { allOwnKeys: !0 }), P.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(n) {
1820
1820
  return mo(Pe(i, n));
1821
1821
  }, e;
1822
1822
  }
1823
1823
  const et = mo(nn);
1824
- et.Axios = Bs;
1824
+ et.Axios = Ns;
1825
1825
  et.CanceledError = qe;
1826
1826
  et.CancelToken = Nc;
1827
1827
  et.isCancel = ro;
1828
1828
  et.VERSION = fo;
1829
- et.toFormData = si;
1829
+ et.toFormData = ii;
1830
1830
  et.AxiosError = Y;
1831
1831
  et.Cancel = et.CanceledError;
1832
1832
  et.all = function(t) {
@@ -1990,7 +1990,7 @@ async function xo(i = ["*"], t) {
1990
1990
  throw s.remove(), n;
1991
1991
  });
1992
1992
  }
1993
- function oi(i, t = Ft.text, e) {
1993
+ function ai(i, t = Ft.text, e) {
1994
1994
  return new Promise((s, n) => {
1995
1995
  const r = new FileReader();
1996
1996
  switch (r.addEventListener("progress", (o) => {
@@ -2016,7 +2016,7 @@ function oi(i, t = Ft.text, e) {
2016
2016
  });
2017
2017
  }
2018
2018
  async function Bu(i) {
2019
- const t = await oi(
2019
+ const t = await ai(
2020
2020
  i,
2021
2021
  Ft.arraybuffer
2022
2022
  );
@@ -2133,19 +2133,19 @@ class Fu {
2133
2133
  this.timer && (clearInterval(this.timer), this.timer = void 0);
2134
2134
  }
2135
2135
  }
2136
- function _i() {
2136
+ function Ts() {
2137
2137
  return (/* @__PURE__ */ new Date()).getTime();
2138
2138
  }
2139
2139
  function bo(i, t) {
2140
2140
  const e = Math.max(t?.aliveInSeconds || 0, 0), s = Math.max(t?.aliveUntilTimestamp || 0, 0);
2141
2141
  function n(o, a = !1) {
2142
- return $a(o) || !Za(o, $e) ? { v: o, [$e]: _i() } : a ? o : { ...o, [$e]: _i() };
2142
+ return $a(o) || !Za(o, Cs) ? { v: o, [Cs]: Ts() } : a ? o : { ...o, [Cs]: Ts() };
2143
2143
  }
2144
2144
  let r = n(i, !0);
2145
2145
  return {
2146
2146
  get: () => {
2147
2147
  let o = r.v;
2148
- return (e && r[$e] + e * 1e3 < _i() || s && r[$e] < s) && (o = void 0), {
2148
+ return (e && Ts() > r[Cs] + e * 1e3 || s && Ts() > s) && (o = void 0), {
2149
2149
  value: typeof o < "u" ? r : void 0,
2150
2150
  rawValue: o
2151
2151
  };
@@ -2154,7 +2154,7 @@ function bo(i, t) {
2154
2154
  };
2155
2155
  }
2156
2156
  function Xu(i, t) {
2157
- const e = Qs(t?.value || "");
2157
+ const e = Ks(t?.value || "");
2158
2158
  if (!e.value) {
2159
2159
  const s = `; ${document.cookie}`.split(`; ${i}=`).pop()?.split(";").shift();
2160
2160
  s && (e.value = decodeURIComponent(s));
@@ -2190,7 +2190,7 @@ function Jc(i, t) {
2190
2190
  const { get: n, set: r } = bo(s, {
2191
2191
  aliveInSeconds: t?.aliveInSeconds,
2192
2192
  aliveUntilTimestamp: t?.aliveUntilTimestamp
2193
- }), o = Qs(n().value);
2193
+ }), o = Ks(n().value);
2194
2194
  return Tt(() => {
2195
2195
  if (typeof o.value < "u")
2196
2196
  try {
@@ -2222,7 +2222,7 @@ function Gu(i, t) {
2222
2222
  const { get: n, set: r } = bo(s, {
2223
2223
  aliveInSeconds: t?.aliveInSeconds,
2224
2224
  aliveUntilTimestamp: t?.aliveUntilTimestamp
2225
- }), o = Qs(n().value);
2225
+ }), o = Ks(n().value);
2226
2226
  return Tt(() => {
2227
2227
  if (typeof o.value < "u")
2228
2228
  try {
@@ -2583,7 +2583,7 @@ function dl(i, t) {
2583
2583
  { timeout: t }
2584
2584
  );
2585
2585
  }
2586
- const Mi = new hs();
2586
+ const Mi = new as();
2587
2587
  let Ei = !1;
2588
2588
  function To(i, t, e) {
2589
2589
  i && t && Mi.set(i, { cb: t, startTime: Z(), timeout: e }), !Ei && (Ei = !0, pl((s) => {
@@ -2598,18 +2598,18 @@ function To(i, t, e) {
2598
2598
  }), Mi.length > 0 && To();
2599
2599
  }));
2600
2600
  }
2601
- let Us = 0, be = 33, ce = 33, Gi;
2601
+ let Vs = 0, be = 33, ce = 33, Gi;
2602
2602
  const Mo = new MessageChannel(), ml = Mo.port2;
2603
2603
  Mo.port1.onmessage = (i) => {
2604
2604
  Gi !== null && Gi({
2605
- didTimeout: Us <= Z(),
2606
- timeRemaining: () => Math.max(0, Us - Z())
2605
+ didTimeout: Vs <= Z(),
2606
+ timeRemaining: () => Math.max(0, Vs - Z())
2607
2607
  });
2608
2608
  };
2609
2609
  function pl(i) {
2610
2610
  return Gi = i, requestAnimationFrame((t) => {
2611
- let e = t - Us + ce;
2612
- e < ce && be < ce ? (e < 8 && (e = 8), ce = e < be ? be : e) : e > ce && be > ce ? ce = e < be ? be : e : be = e, Us = t + ce, ml.postMessage(null);
2611
+ let e = t - Vs + ce;
2612
+ e < ce && be < ce ? (e < 8 && (e = 8), ce = e < be ? be : e) : e > ce && be > ce ? ce = e < be ? be : e : be = e, Vs = t + ce, ml.postMessage(null);
2613
2613
  });
2614
2614
  }
2615
2615
  function Sf(i) {
@@ -2628,10 +2628,10 @@ function vf(i) {
2628
2628
  })
2629
2629
  );
2630
2630
  }
2631
- class ls {
2631
+ class cs {
2632
2632
  static _nextId = 0;
2633
2633
  static nextId() {
2634
- return ls._nextId++;
2634
+ return cs._nextId++;
2635
2635
  }
2636
2636
  }
2637
2637
  const z = {
@@ -2871,7 +2871,7 @@ function gl(i) {
2871
2871
  return i;
2872
2872
  }
2873
2873
  }
2874
- const yl = 4, xl = 1e-3, wl = 1e-7, bl = 10, ts = 11, Ts = 1 / (ts - 1), Sl = typeof Float32Array == "function";
2874
+ const yl = 4, xl = 1e-3, wl = 1e-7, bl = 10, Ke = 11, Ms = 1 / (Ke - 1), Sl = typeof Float32Array == "function";
2875
2875
  function Eo(i, t) {
2876
2876
  return 1 - 3 * t + 3 * i;
2877
2877
  }
@@ -2881,7 +2881,7 @@ function Po(i, t) {
2881
2881
  function Io(i) {
2882
2882
  return 3 * i;
2883
2883
  }
2884
- function Vs(i, t, e) {
2884
+ function Gs(i, t, e) {
2885
2885
  return ((Eo(t, e) * i + Po(t, e)) * i + Io(t)) * i;
2886
2886
  }
2887
2887
  function Ao(i, t, e) {
@@ -2890,7 +2890,7 @@ function Ao(i, t, e) {
2890
2890
  function vl(i, t, e, s, n) {
2891
2891
  let r, o, a = 0;
2892
2892
  do
2893
- o = t + (e - t) / 2, r = Vs(o, s, n) - i, r > 0 ? e = o : t = o;
2893
+ o = t + (e - t) / 2, r = Gs(o, s, n) - i, r > 0 ? e = o : t = o;
2894
2894
  while (Math.abs(r) > wl && ++a < bl);
2895
2895
  return o;
2896
2896
  }
@@ -2899,7 +2899,7 @@ function Cl(i, t, e, s) {
2899
2899
  const r = Ao(t, e, s);
2900
2900
  if (r === 0)
2901
2901
  return t;
2902
- const o = Vs(t, e, s) - i;
2902
+ const o = Gs(t, e, s) - i;
2903
2903
  t -= o / r;
2904
2904
  }
2905
2905
  return t;
@@ -2912,25 +2912,25 @@ function ko(i, t, e, s) {
2912
2912
  throw new Error("bezier x values must be in [0, 1] range");
2913
2913
  if (i === t && e === s)
2914
2914
  return _l;
2915
- const n = Sl ? new Float32Array(ts) : new Array(ts);
2916
- for (let o = 0; o < ts; ++o)
2917
- n[o] = Vs(o * Ts, i, e);
2915
+ const n = Sl ? new Float32Array(Ke) : new Array(Ke);
2916
+ for (let o = 0; o < Ke; ++o)
2917
+ n[o] = Gs(o * Ms, i, e);
2918
2918
  function r(o) {
2919
2919
  let a = 0, h = 1;
2920
- const c = ts - 1;
2920
+ const c = Ke - 1;
2921
2921
  for (; h !== c && n[h] <= o; ++h)
2922
- a += Ts;
2922
+ a += Ms;
2923
2923
  --h;
2924
- const l = (o - n[h]) / (n[h + 1] - n[h]), u = a + l * Ts, f = Ao(u, i, e);
2924
+ const l = (o - n[h]) / (n[h + 1] - n[h]), u = a + l * Ms, f = Ao(u, i, e);
2925
2925
  return f >= xl ? Cl(o, u, i, e) : f === 0 ? u : vl(
2926
2926
  o,
2927
2927
  a,
2928
- a + Ts,
2928
+ a + Ms,
2929
2929
  i,
2930
2930
  e
2931
2931
  );
2932
2932
  }
2933
- return (o) => o === 0 || o === 1 ? o : Vs(r(o), t, s);
2933
+ return (o) => o === 0 || o === 1 ? o : Gs(r(o), t, s);
2934
2934
  }
2935
2935
  function Do(i) {
2936
2936
  switch (i) {
@@ -3052,7 +3052,7 @@ class Lo {
3052
3052
  constructor(t, e = Dt) {
3053
3053
  this._object = t, this._group = e;
3054
3054
  }
3055
- _id = ls.nextId();
3055
+ _id = cs.nextId();
3056
3056
  // 是否正在执行
3057
3057
  _isPlaying = !1;
3058
3058
  // 动画开始时间
@@ -3284,9 +3284,9 @@ class Lo {
3284
3284
  typeof s == "string" ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(s) : this._valuesStartRepeat[t] = s, this._valuesEnd[t] = e;
3285
3285
  }
3286
3286
  }
3287
- const Ml = ls.nextId, El = Dt.getAll.bind(Dt), Pl = Dt.removeAll.bind(Dt), Il = Dt.add.bind(Dt), Al = Dt.remove.bind(Dt), kl = Dt.update.bind(Dt), Tf = {
3287
+ const Ml = cs.nextId, El = Dt.getAll.bind(Dt), Pl = Dt.removeAll.bind(Dt), Il = Dt.add.bind(Dt), Al = Dt.remove.bind(Dt), kl = Dt.update.bind(Dt), Tf = {
3288
3288
  now: Z,
3289
- Sequence: ls,
3289
+ Sequence: cs,
3290
3290
  Easing: z,
3291
3291
  Interpolation: de,
3292
3292
  Group: Ro,
@@ -3426,12 +3426,12 @@ class an {
3426
3426
  this.pausedDuration += this.pausedClock.getElapsedTime(), this.pausedClock.stop(), this.isPaused = !1;
3427
3427
  }
3428
3428
  }
3429
- const Gs = new hs(), zo = (i = !0) => {
3430
- Gs.filter((t, e) => (e.alternate && (pn(e, e.alternate), i && Gs.set(t, e.alternate), e.alternate = void 0), i));
3429
+ const qs = new as(), zo = (i = !0) => {
3430
+ qs.filter((t, e) => (e.alternate && (pn(e, e.alternate), i && qs.set(t, e.alternate), e.alternate = void 0), i));
3431
3431
  };
3432
3432
  function Oo(i) {
3433
- let t = Gs.get(i);
3434
- return t || (t = mn(i), Gs.set(i, t)), t;
3433
+ let t = qs.get(i);
3434
+ return t || (t = mn(i), qs.set(i, t)), t;
3435
3435
  }
3436
3436
  function Bo(i) {
3437
3437
  const t = Oo(i);
@@ -3512,7 +3512,7 @@ function dt(i, t) {
3512
3512
  );
3513
3513
  return i;
3514
3514
  }
3515
- function Ms(i) {
3515
+ function Es(i) {
3516
3516
  let t, e;
3517
3517
  if (!i)
3518
3518
  throw new Error(
@@ -3546,7 +3546,7 @@ function Ll(i) {
3546
3546
  };
3547
3547
  return t[i] || t.alphabetic;
3548
3548
  }
3549
- const Je = {
3549
+ const Ze = {
3550
3550
  strokeStyle: {
3551
3551
  svgAttr: "stroke",
3552
3552
  canvas: "#000000",
@@ -3658,7 +3658,7 @@ class er {
3658
3658
  this.__root = t, this.__ctx = e;
3659
3659
  }
3660
3660
  }
3661
- class qs {
3661
+ class js {
3662
3662
  __document = document;
3663
3663
  __canvas;
3664
3664
  __ctx;
@@ -3695,17 +3695,17 @@ class qs {
3695
3695
  * Applies default canvas styles to the context
3696
3696
  */
3697
3697
  __setDefaultStyles() {
3698
- const t = Object.keys(Je);
3698
+ const t = Object.keys(Ze);
3699
3699
  for (let e = 0, s = t.length; e < s; e++) {
3700
3700
  const n = t[e];
3701
- this[n] = Je[n].canvas;
3701
+ this[n] = Ze[n].canvas;
3702
3702
  }
3703
3703
  }
3704
3704
  /**
3705
3705
  * Gets the current style state
3706
3706
  */
3707
3707
  __getStyleState() {
3708
- const t = {}, e = Object.keys(Je);
3708
+ const t = {}, e = Object.keys(Ze);
3709
3709
  for (let s = 0, n = e.length; s < n; s++) {
3710
3710
  const r = e[s];
3711
3711
  t[r] = this[r];
@@ -3746,9 +3746,9 @@ class qs {
3746
3746
  s && (e.setAttribute(t, ""), e = s.element, s.children.forEach((r) => {
3747
3747
  r.setAttribute(t, "");
3748
3748
  }));
3749
- const n = Object.keys(Je);
3749
+ const n = Object.keys(Ze);
3750
3750
  for (let r = 0; r < n.length; r++) {
3751
- const o = Je[n[r]], a = this[n[r]];
3751
+ const o = Ze[n[r]], a = this[n[r]];
3752
3752
  if (o.apply) {
3753
3753
  if (a instanceof er) {
3754
3754
  if (a.__ctx)
@@ -4096,7 +4096,7 @@ class qs {
4096
4096
  const r = this.__createElement(
4097
4097
  "linearGradient",
4098
4098
  {
4099
- id: Ms(this.__ids),
4099
+ id: Es(this.__ids),
4100
4100
  x1: t + "px",
4101
4101
  x2: s + "px",
4102
4102
  y1: e + "px",
@@ -4115,7 +4115,7 @@ class qs {
4115
4115
  const a = this.__createElement(
4116
4116
  "radialGradient",
4117
4117
  {
4118
- id: Ms(this.__ids),
4118
+ id: Es(this.__ids),
4119
4119
  cx: n + "px",
4120
4120
  cy: r + "px",
4121
4121
  r: o + "px",
@@ -4232,7 +4232,7 @@ class qs {
4232
4232
  * Generates a ClipPath from the clip command.
4233
4233
  */
4234
4234
  clip() {
4235
- const t = this.__closestGroupOrSvg(), e = this.__createElement("clipPath"), s = Ms(this.__ids), n = this.__createElement("g");
4235
+ const t = this.__closestGroupOrSvg(), e = this.__createElement("clipPath"), s = Es(this.__ids), n = this.__createElement("g");
4236
4236
  this.__applyCurrentDefaultPath(), t.removeChild(this.__currentElement), e.setAttribute("id", s), e.appendChild(this.__currentElement), this.__SVGdefs.appendChild(e), t.setAttribute("clip-path", dt("url(#{id})", { id: s })), t.appendChild(n), this.__currentElement = n;
4237
4237
  }
4238
4238
  /**
@@ -4255,7 +4255,7 @@ class qs {
4255
4255
  const w = this.__closestGroupOrSvg();
4256
4256
  this.__currentElement;
4257
4257
  const b = "translate(" + s + ", " + n + ")";
4258
- if (e instanceof qs) {
4258
+ if (e instanceof js) {
4259
4259
  if (u = e.getSvg().cloneNode(!0), u.childNodes && u.childNodes.length > 1) {
4260
4260
  for (f = u.childNodes[0]; f.childNodes.length; )
4261
4261
  v = f.childNodes[0].getAttribute("id"), this.__ids[v] = v, this.__SVGdefs.appendChild(f.childNodes[0]);
@@ -4279,7 +4279,7 @@ class qs {
4279
4279
  const s = this.__document.createElementNS(
4280
4280
  "http://www.w3.org/2000/svg",
4281
4281
  "pattern"
4282
- ), n = Ms(this.__ids);
4282
+ ), n = Es(this.__ids);
4283
4283
  let r;
4284
4284
  return s.setAttribute("id", n), t.nodeName === "CANVAS" || t.nodeName === "IMG" ? (r = this.__document.createElementNS(
4285
4285
  "http://www.w3.org/2000/svg",
@@ -4294,7 +4294,7 @@ class qs {
4294
4294
  "http://www.w3.org/1999/xlink",
4295
4295
  "xlink:href",
4296
4296
  t.nodeName === "CANVAS" ? t.toDataURL() : t.getAttribute("src")
4297
- ), s.appendChild(r), this.__SVGdefs.appendChild(s)) : t instanceof qs && (s.setAttribute("width", "" + t.width), s.setAttribute(
4297
+ ), s.appendChild(r), this.__SVGdefs.appendChild(s)) : t instanceof js && (s.setAttribute("width", "" + t.width), s.setAttribute(
4298
4298
  "height",
4299
4299
  "" + t.height
4300
4300
  ), s.appendChild(t.__rootSVG.childNodes[1]), this.__SVGdefs.appendChild(s)), new er(s, this);
@@ -4337,7 +4337,7 @@ class qi {
4337
4337
  constructor(t, e, s, n = !1) {
4338
4338
  this.canvas = t, this.context = t.getContext("2d", {
4339
4339
  willReadFrequently: !0
4340
- }), n && (this.customContext = new qs({
4340
+ }), n && (this.customContext = new js({
4341
4341
  canvas: this.canvas,
4342
4342
  width: e || this.canvas.width,
4343
4343
  height: s || this.canvas.height
@@ -4597,7 +4597,7 @@ class qi {
4597
4597
  return { raw: "", element: null };
4598
4598
  }
4599
4599
  }
4600
- let ai = class {
4600
+ let hi = class {
4601
4601
  x;
4602
4602
  y;
4603
4603
  toX;
@@ -4652,8 +4652,8 @@ let ai = class {
4652
4652
  return isNaN(l) || isNaN(u) ? null : { x: l, y: u };
4653
4653
  }
4654
4654
  };
4655
- const sr = ai;
4656
- class ji extends ai {
4655
+ const sr = hi;
4656
+ class ji extends hi {
4657
4657
  // x方向的半径
4658
4658
  rx;
4659
4659
  // y方向的半径
@@ -4721,7 +4721,7 @@ class ji extends ai {
4721
4721
  return [C, D, r, o, l, V, V + q];
4722
4722
  }
4723
4723
  }
4724
- class zl extends ai {
4724
+ class zl extends hi {
4725
4725
  cx;
4726
4726
  cy;
4727
4727
  isLineThrough;
@@ -4766,7 +4766,7 @@ class zl extends ai {
4766
4766
  }
4767
4767
  }
4768
4768
  const Ol = zl;
4769
- class gt extends ai {
4769
+ class gt extends hi {
4770
4770
  c1x;
4771
4771
  c1y;
4772
4772
  c2x;
@@ -4924,7 +4924,7 @@ class gt extends ai {
4924
4924
  };
4925
4925
  }
4926
4926
  }
4927
- const is = Math.PI * 2;
4927
+ const ss = Math.PI * 2;
4928
4928
  function ir(i, t, e, s) {
4929
4929
  const n = i * s - t * e < 0 ? -1 : 1;
4930
4930
  let r = i * e + t * s;
@@ -4936,7 +4936,7 @@ function Bl(i, t, e, s, n, r, o, a, h, c) {
4936
4936
  v < 0 && (v = 0), v /= f * S + d * m, v = Math.sqrt(v) * (n === r ? -1 : 1);
4937
4937
  const w = v * o / a * u, b = v * -a / o * l, g = c * w - h * b + (i + e) / 2, y = h * w + c * b + (t + s) / 2, _ = (l - w) / o, C = (u - b) / a, D = (-l - w) / o, X = (-u - b) / a, V = ir(1, 0, _, C);
4938
4938
  let q = ir(_, C, D, X);
4939
- return r === 0 && q > 0 && (q -= is), r === 1 && q < 0 && (q += is), [g, y, V, q];
4939
+ return r === 0 && q > 0 && (q -= ss), r === 1 && q < 0 && (q += ss), [g, y, V, q];
4940
4940
  }
4941
4941
  function Nl(i, t) {
4942
4942
  const e = 1.3333333333333333 * Math.tan(t / 4), s = Math.cos(i), n = Math.sin(i), r = Math.cos(i + t), o = Math.sin(i + t);
@@ -4952,7 +4952,7 @@ function Nl(i, t) {
4952
4952
  ];
4953
4953
  }
4954
4954
  function Yo(i, t, e, s, n, r, o, a, h) {
4955
- const c = Math.sin(h * is / 360), l = Math.cos(h * is / 360), u = l * (i - e) / 2 + c * (t - s) / 2, f = -c * (i - e) / 2 + l * (t - s) / 2;
4955
+ const c = Math.sin(h * ss / 360), l = Math.cos(h * ss / 360), u = l * (i - e) / 2 + c * (t - s) / 2, f = -c * (i - e) / 2 + l * (t - s) / 2;
4956
4956
  if (u === 0 && f === 0)
4957
4957
  return [];
4958
4958
  if (o === 0 || a === 0)
@@ -4962,7 +4962,7 @@ function Yo(i, t, e, s, n, r, o, a, h) {
4962
4962
  d > 1 && (o *= Math.sqrt(d), a *= Math.sqrt(d));
4963
4963
  const m = Bl(i, t, e, s, n, r, o, a, c, l), S = [];
4964
4964
  let v = m[2], w = m[3];
4965
- const b = Math.max(Math.ceil(Math.abs(w) / (is / 4)), 1);
4965
+ const b = Math.max(Math.ceil(Math.abs(w) / (ss / 4)), 1);
4966
4966
  w /= b;
4967
4967
  for (let g = 0; g < b; g++)
4968
4968
  S.push(Nl(v, w)), v += w;
@@ -4986,10 +4986,10 @@ function Hi(i, t, e, s, n, r) {
4986
4986
  r
4987
4987
  ];
4988
4988
  }
4989
- function es(i, t, e, s) {
4989
+ function ts(i, t, e, s) {
4990
4990
  return [i, t, e, s, e, s];
4991
4991
  }
4992
- const Es = {
4992
+ const Ps = {
4993
4993
  a: 7,
4994
4994
  // A rx,ry xAxisRotate LargeArcFlag,SweepFlag x,y
4995
4995
  c: 6,
@@ -5068,17 +5068,17 @@ class Be {
5068
5068
  (s, n, r) => {
5069
5069
  let o = n.toLowerCase();
5070
5070
  const a = zr(r);
5071
- for (o == "m" && a.length > Es[o] && (e.push([
5071
+ for (o == "m" && a.length > Ps[o] && (e.push([
5072
5072
  n,
5073
- ...a.splice(0, Es[o])
5073
+ ...a.splice(0, Ps[o])
5074
5074
  ]), o = "l", n = n == "m" ? "l" : "L"); a.length; ) {
5075
- if (a.length < Es[o])
5075
+ if (a.length < Ps[o])
5076
5076
  throw new Error(
5077
5077
  `parseSVGPath substring:{ ${s} } command:{ ${n} } args:{ ${a} }`
5078
5078
  );
5079
5079
  e.push([
5080
5080
  n,
5081
- ...a.splice(0, Es[o])
5081
+ ...a.splice(0, Ps[o])
5082
5082
  ]);
5083
5083
  }
5084
5084
  return o == "z" && e.push([n]), "";
@@ -5204,16 +5204,16 @@ class Be {
5204
5204
  a = m[1], h = m[2], m = ["C", ...Hi(r, o, m[1], m[2], m[3], m[4])];
5205
5205
  break;
5206
5206
  case "L":
5207
- m = ["C", ...es(r, o, m[1], m[2])];
5207
+ m = ["C", ...ts(r, o, m[1], m[2])];
5208
5208
  break;
5209
5209
  case "H":
5210
- m = ["C", ...es(r, o, m[1], o)];
5210
+ m = ["C", ...ts(r, o, m[1], o)];
5211
5211
  break;
5212
5212
  case "V":
5213
- m = ["C", ...es(r, o, r, m[1])];
5213
+ m = ["C", ...ts(r, o, r, m[1])];
5214
5214
  break;
5215
5215
  case "Z":
5216
- m = ["C", ...es(r, o, s, n)];
5216
+ m = ["C", ...ts(r, o, s, n)];
5217
5217
  break;
5218
5218
  }
5219
5219
  u = S, r = m[m.length - 2], o = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], l = m[m.length - 3]) : (c = r, l = o), e.push(m);
@@ -5436,7 +5436,7 @@ class _t {
5436
5436
  t.cy,
5437
5437
  t.toX,
5438
5438
  t.toY
5439
- ) : [e, s, n, r, o, a] = es(
5439
+ ) : [e, s, n, r, o, a] = ts(
5440
5440
  this.prevPathX,
5441
5441
  this.prevPathY,
5442
5442
  t.toX,
@@ -5943,7 +5943,7 @@ class H extends Ve {
5943
5943
  ), o.play();
5944
5944
  }
5945
5945
  }
5946
- class Ps extends H {
5946
+ class Is extends H {
5947
5947
  x;
5948
5948
  y;
5949
5949
  z;
@@ -6289,7 +6289,7 @@ class ln {
6289
6289
  yield this._x, yield this._y, yield this._z, yield this._w;
6290
6290
  }
6291
6291
  }
6292
- class hi {
6292
+ class ci {
6293
6293
  x = 0;
6294
6294
  y = 0;
6295
6295
  constructor(t = 0, e = 0) {
@@ -6346,7 +6346,7 @@ class hi {
6346
6346
  return this.x = t.x, this.y = t.y, this;
6347
6347
  }
6348
6348
  clone() {
6349
- return new hi(this.x, this.y);
6349
+ return new ci(this.x, this.y);
6350
6350
  }
6351
6351
  /// 交换律: P + Q = Q + P
6352
6352
  /// 结合律: (P + Q) + R = P + (Q + R)
@@ -7063,7 +7063,7 @@ class Fo {
7063
7063
  yield this.x, yield this.y, yield this.z, yield this.w;
7064
7064
  }
7065
7065
  }
7066
- const nr = new hi(), Ai = new Rt(), rr = new ln(), Is = 2e3, or = 2001, ar = [1, 0, 0, 1], hr = [1, 0, 0, 1, 0, 0], cr = [1, 0, 0, 0, 1, 0, 0, 0, 1], lr = [
7066
+ const nr = new ci(), Ai = new Rt(), rr = new ln(), As = 2e3, or = 2001, ar = [1, 0, 0, 1], hr = [1, 0, 0, 1, 0, 0], cr = [1, 0, 0, 0, 1, 0, 0, 0, 1], lr = [
7067
7067
  1,
7068
7068
  0,
7069
7069
  0,
@@ -7153,7 +7153,7 @@ class Xo {
7153
7153
  return this.m11 * this.m22 - this.m21 * this.m12;
7154
7154
  }
7155
7155
  }
7156
- class us {
7156
+ class ls {
7157
7157
  /// 按列顺序
7158
7158
  value;
7159
7159
  constructor(t = cr) {
@@ -7228,7 +7228,7 @@ class us {
7228
7228
  return this.m11 = t.m11, this.m12 = t.m12, this.m13 = t.m13, this.m21 = t.m21, this.m22 = t.m22, this.m23 = t.m23, this.m31 = t.m31, this.m32 = t.m32, this.m33 = t.m33, this;
7229
7229
  }
7230
7230
  clone() {
7231
- return new us(this.value);
7231
+ return new ls(this.value);
7232
7232
  }
7233
7233
  fromArray(t, e = 0) {
7234
7234
  for (let s = 0; s < 9; s++)
@@ -7595,7 +7595,7 @@ class Ct {
7595
7595
  }
7596
7596
  lookAt(t, e, s) {
7597
7597
  const n = this.value;
7598
- return bt.subVectors(t, e), bt.lengthSq() === 0 && (bt.z = 1), bt.normalize(), le.crossVectors(s, bt), le.lengthSq() === 0 && (Math.abs(s.z) === 1 ? bt.x += 1e-4 : bt.z += 1e-4, bt.normalize(), le.crossVectors(s, bt)), le.normalize(), As.crossVectors(bt, le), n[0] = le.x, n[4] = As.x, n[8] = bt.x, n[1] = le.y, n[5] = As.y, n[9] = bt.y, n[2] = le.z, n[6] = As.z, n[10] = bt.z, this;
7598
+ return bt.subVectors(t, e), bt.lengthSq() === 0 && (bt.z = 1), bt.normalize(), le.crossVectors(s, bt), le.lengthSq() === 0 && (Math.abs(s.z) === 1 ? bt.x += 1e-4 : bt.z += 1e-4, bt.normalize(), le.crossVectors(s, bt)), le.normalize(), ks.crossVectors(bt, le), n[0] = le.x, n[4] = ks.x, n[8] = bt.x, n[1] = le.y, n[5] = ks.y, n[9] = bt.y, n[2] = le.z, n[6] = ks.z, n[10] = bt.z, this;
7599
7599
  }
7600
7600
  multiplyMatrices(t, e) {
7601
7601
  const s = t.value, n = e.value, r = this.value, o = s[0], a = s[4], h = s[8], c = s[12], l = s[1], u = s[5], f = s[9], d = s[13], m = s[2], S = s[6], v = s[10], w = s[14], b = s[3], g = s[7], y = s[11], _ = s[15], C = n[0], D = n[4], X = n[8], V = n[12], q = n[1], W = n[5], Q = n[9], ot = n[13], st = n[2], Lt = n[6], xt = n[10], Pt = n[14], zt = n[3], R = n[7], k = n[11], B = n[15];
@@ -7682,10 +7682,10 @@ class Ct {
7682
7682
  makeShear(t, e, s, n, r, o) {
7683
7683
  return this.set(1, s, r, 0, t, 1, o, 0, e, n, 1, 0, 0, 0, 0, 1), this;
7684
7684
  }
7685
- makePerspective(t, e, s, n, r, o, a = Is) {
7685
+ makePerspective(t, e, s, n, r, o, a = As) {
7686
7686
  const h = this.value, c = 2 * r / (e - t), l = 2 * r / (s - n), u = (e + t) / (e - t), f = (s + n) / (s - n);
7687
7687
  let d, m;
7688
- if (a === Is)
7688
+ if (a === As)
7689
7689
  d = -(o + r) / (o - r), m = -2 * o * r / (o - r);
7690
7690
  else if (a === or)
7691
7691
  d = -o / (o - r), m = -o * r / (o - r);
@@ -7695,10 +7695,10 @@ class Ct {
7695
7695
  );
7696
7696
  return h[0] = c, h[4] = 0, h[8] = u, h[12] = 0, h[1] = 0, h[5] = l, h[9] = f, h[13] = 0, h[2] = 0, h[6] = 0, h[10] = d, h[14] = m, h[3] = 0, h[7] = 0, h[11] = -1, h[15] = 0, this;
7697
7697
  }
7698
- makeOrthographic(t, e, s, n, r, o, a = Is) {
7698
+ makeOrthographic(t, e, s, n, r, o, a = As) {
7699
7699
  const h = this.value, c = 1 / (e - t), l = 1 / (s - n), u = 1 / (o - r), f = (e + t) * c, d = (s + n) * l;
7700
7700
  let m, S;
7701
- if (a === Is)
7701
+ if (a === As)
7702
7702
  m = (o + r) * u, S = -2 * u;
7703
7703
  else if (a === or)
7704
7704
  m = r * u, S = -1 * u;
@@ -7852,7 +7852,7 @@ class Ct {
7852
7852
  return r == 0 && (r = 1e-4), s /= r, n /= r, r < 0 && (s -= this.m41, n -= this.m42, s *= 1 / r, n *= 1 / r, s += this.m41, n += this.m42), { x: s, y: n, z: e, mass: r };
7853
7853
  }
7854
7854
  bounds(t, e, s, n) {
7855
- const r = new Ps({ x: t, y: e }), o = new Ps({ x: t + s, y: e }), a = new Ps({ x: t + s, y: e + n }), h = new Ps({ x: t, y: e + n });
7855
+ const r = new Is({ x: t, y: e }), o = new Is({ x: t + s, y: e }), a = new Is({ x: t + s, y: e + n }), h = new Is({ x: t, y: e + n });
7856
7856
  ({ x: r.x, y: r.y, z: r.z, mass: r.mass } = this.project(r)), { x: o.x, y: o.y, z: o.z, mass: o.mass } = this.project(o), { x: a.x, y: a.y, z: a.z, mass: a.mass } = this.project(a), { x: h.x, y: h.y, z: h.z, mass: h.mass } = this.project(h);
7857
7857
  const c = Math.min(r.x, o.x, a.x, h.x), l = Math.min(r.y, o.y, a.y, h.y), u = Math.max(r.x, o.x, a.x, h.x) - c, f = Math.max(r.y, o.y, a.y, h.y) - l;
7858
7858
  return { x: c, y: l, width: u, height: f };
@@ -8184,7 +8184,7 @@ class Mt {
8184
8184
  return this.matrix4.perspective(t), this.matrix4.toMatrix(this), this;
8185
8185
  }
8186
8186
  }
8187
- const Fl = new Rt(0, 0, 0), Xl = new Rt(1, 1, 1), le = new Rt(), As = new Rt(), bt = new Rt(), Re = new Rt(), ki = new us(), Nt = new Ct();
8187
+ const Fl = new Rt(0, 0, 0), Xl = new Rt(1, 1, 1), le = new Rt(), ks = new Rt(), bt = new Rt(), Re = new Rt(), ki = new ls(), Nt = new Ct();
8188
8188
  function Uo(i) {
8189
8189
  const t = new Mt();
8190
8190
  return i.replace(
@@ -8576,7 +8576,7 @@ function Ho(i) {
8576
8576
  function Vl(i, t) {
8577
8577
  return t === "style" ? qo(i) : i.getAttribute(pt(t));
8578
8578
  }
8579
- function as(i, t, e) {
8579
+ function os(i, t, e) {
8580
8580
  return i.setAttribute(pt(t), "" + e);
8581
8581
  }
8582
8582
  function Lf(i, t) {
@@ -8586,7 +8586,7 @@ function Lf(i, t) {
8586
8586
  });
8587
8587
  }
8588
8588
  function zf(i, t) {
8589
- as(i, "draggable", "true");
8589
+ os(i, "draggable", "true");
8590
8590
  const e = [];
8591
8591
  return e.push(
8592
8592
  N(
@@ -8650,7 +8650,7 @@ function Bf() {
8650
8650
  // window.screenY + (window.outerHeight - window.innerHeight)
8651
8651
  };
8652
8652
  }
8653
- function ci() {
8653
+ function li() {
8654
8654
  const i = document.documentElement;
8655
8655
  return {
8656
8656
  // 不包括边框大小,只包含内容和内边距
@@ -8704,7 +8704,7 @@ function Gl() {
8704
8704
  };
8705
8705
  }
8706
8706
  function Yf() {
8707
- const { scrollWidth: i, scrollHeight: t } = ci();
8707
+ const { scrollWidth: i, scrollHeight: t } = li();
8708
8708
  return {
8709
8709
  // width: Math.min(scrollWidth, contentWidth),
8710
8710
  width: i,
@@ -8712,7 +8712,7 @@ function Yf() {
8712
8712
  };
8713
8713
  }
8714
8714
  function ur(i) {
8715
- const { top: t, left: e, width: s, height: n } = i.getBoundingClientRect(), { scrollLeft: r, scrollTop: o } = ci();
8715
+ const { top: t, left: e, width: s, height: n } = i.getBoundingClientRect(), { scrollLeft: r, scrollTop: o } = li();
8716
8716
  return {
8717
8717
  x: e + r,
8718
8718
  y: t + o,
@@ -8744,7 +8744,7 @@ function Xf(i) {
8744
8744
  };
8745
8745
  }
8746
8746
  function Uf() {
8747
- const { clientHeight: i, scrollTop: t, scrollHeight: e } = ci(), s = e - i;
8747
+ const { clientHeight: i, scrollTop: t, scrollHeight: e } = li(), s = e - i;
8748
8748
  return s <= 0 ? 0 : t / s * 100;
8749
8749
  }
8750
8750
  function jl() {
@@ -8797,13 +8797,13 @@ function fr(i) {
8797
8797
  x: i.pageX,
8798
8798
  y: i.pageY
8799
8799
  };
8800
- const { scrollLeft: t, scrollTop: e } = ci();
8800
+ const { scrollLeft: t, scrollTop: e } = li();
8801
8801
  return {
8802
8802
  x: i.clientX + t,
8803
8803
  y: i.clientY + e
8804
8804
  };
8805
8805
  }
8806
- function Qe(i, t) {
8806
+ function Je(i, t) {
8807
8807
  const e = {
8808
8808
  x: 0,
8809
8809
  y: 0
@@ -8958,7 +8958,7 @@ var Wo = { exports: {} };
8958
8958
  var x = p.ownerDocument || p;
8959
8959
  return x.defaultView || x.parentWindow || t;
8960
8960
  }
8961
- var zt = /mobile|tablet|ip(ad|hone|od)|android/i, R = "ontouchstart" in t, k = st(t, "PointerEvent") !== n, B = R && zt.test(navigator.userAgent), G = "touch", ut = "pen", Ot = "mouse", ds = "kinect", ms = 25, it = 1, Gt = 2, J = 4, ht = 8, Ae = 1, ge = 2, ye = 4, ae = 8, I = 16, K = ge | ye, xe = ae | I, xn = K | xe, wn = ["x", "y"], ps = ["clientX", "clientY"];
8961
+ var zt = /mobile|tablet|ip(ad|hone|od)|android/i, R = "ontouchstart" in t, k = st(t, "PointerEvent") !== n, B = R && zt.test(navigator.userAgent), G = "touch", ut = "pen", Ot = "mouse", fs = "kinect", ds = 25, it = 1, Gt = 2, J = 4, ht = 8, Ae = 1, ge = 2, ye = 4, ae = 8, I = 16, K = ge | ye, xe = ae | I, xn = K | xe, wn = ["x", "y"], ms = ["clientX", "clientY"];
8962
8962
  function It(p, x) {
8963
8963
  var M = this;
8964
8964
  this.manager = p, this.callback = x, this.element = p.element, this.target = p.options.inputTarget, this.domHandler = function(E) {
@@ -8987,7 +8987,7 @@ var Wo = { exports: {} };
8987
8987
  };
8988
8988
  function da(p) {
8989
8989
  var x, M = p.options.inputClass;
8990
- return M ? x = M : k ? x = ui : B ? x = xs : R ? x = fi : x = ys, new x(p, ma);
8990
+ return M ? x = M : k ? x = fi : B ? x = ys : R ? x = di : x = gs, new x(p, ma);
8991
8991
  }
8992
8992
  function ma(p, x, M) {
8993
8993
  var E = M.pointers.length, A = M.changedPointers.length, L = x & it && E - A === 0, U = x & (J | ht) && E - A === 0;
@@ -8997,7 +8997,7 @@ var Wo = { exports: {} };
8997
8997
  var M = p.session, E = x.pointers, A = E.length;
8998
8998
  M.firstInput || (M.firstInput = bn(x)), A > 1 && !M.firstMultiple ? M.firstMultiple = bn(x) : A === 1 && (M.firstMultiple = !1);
8999
8999
  var L = M.firstInput, U = M.firstMultiple, nt = U ? U.center : L.center, at = x.center = Sn(E);
9000
- x.timeStamp = l(), x.deltaTime = x.timeStamp - L.timeStamp, x.angle = li(nt, at), x.distance = gs(nt, at), ga(M, x), x.offsetDirection = Cn(x.deltaX, x.deltaY);
9000
+ x.timeStamp = l(), x.deltaTime = x.timeStamp - L.timeStamp, x.angle = ui(nt, at), x.distance = ps(nt, at), ga(M, x), x.offsetDirection = Cn(x.deltaX, x.deltaY);
9001
9001
  var ft = vn(x.deltaTime, x.deltaX, x.deltaY);
9002
9002
  x.overallVelocityX = ft.x, x.overallVelocityY = ft.y, x.overallVelocity = c(ft.x) > c(ft.y) ? ft.x : ft.y, x.scale = U ? wa(U.pointers, E) : 1, x.rotation = U ? xa(U.pointers, E) : 0, x.maxPointers = M.prevInput ? x.pointers.length > M.prevInput.maxPointers ? x.pointers.length : M.prevInput.maxPointers : x.pointers.length, ya(M, x);
9003
9003
  var jt = p.element;
@@ -9015,7 +9015,7 @@ var Wo = { exports: {} };
9015
9015
  }
9016
9016
  function ya(p, x) {
9017
9017
  var M = p.lastInterval || x, E = x.timeStamp - M.timeStamp, A, L, U, nt;
9018
- if (x.eventType != ht && (E > ms || M.velocity === n)) {
9018
+ if (x.eventType != ht && (E > ds || M.velocity === n)) {
9019
9019
  var at = x.deltaX - M.deltaX, ft = x.deltaY - M.deltaY, jt = vn(E, at, ft);
9020
9020
  L = jt.x, U = jt.y, A = c(jt.x) > c(jt.y) ? jt.x : jt.y, nt = Cn(at, ft), p.lastInterval = x;
9021
9021
  } else
@@ -9059,31 +9059,31 @@ var Wo = { exports: {} };
9059
9059
  function Cn(p, x) {
9060
9060
  return p === x ? Ae : c(p) >= c(x) ? p < 0 ? ge : ye : x < 0 ? ae : I;
9061
9061
  }
9062
- function gs(p, x, M) {
9062
+ function ps(p, x, M) {
9063
9063
  M || (M = wn);
9064
9064
  var E = x[M[0]] - p[M[0]], A = x[M[1]] - p[M[1]];
9065
9065
  return Math.sqrt(E * E + A * A);
9066
9066
  }
9067
- function li(p, x, M) {
9067
+ function ui(p, x, M) {
9068
9068
  M || (M = wn);
9069
9069
  var E = x[M[0]] - p[M[0]], A = x[M[1]] - p[M[1]];
9070
9070
  return Math.atan2(A, E) * 180 / Math.PI;
9071
9071
  }
9072
9072
  function xa(p, x) {
9073
- return li(x[1], x[0], ps) + li(p[1], p[0], ps);
9073
+ return ui(x[1], x[0], ms) + ui(p[1], p[0], ms);
9074
9074
  }
9075
9075
  function wa(p, x) {
9076
- return gs(x[0], x[1], ps) / gs(p[0], p[1], ps);
9076
+ return ps(x[0], x[1], ms) / ps(p[0], p[1], ms);
9077
9077
  }
9078
9078
  var ba = {
9079
9079
  mousedown: it,
9080
9080
  mousemove: Gt,
9081
9081
  mouseup: J
9082
9082
  }, Sa = "mousedown", va = "mousemove mouseup";
9083
- function ys() {
9083
+ function gs() {
9084
9084
  this.evEl = Sa, this.evWin = va, this.pressed = !1, It.apply(this, arguments);
9085
9085
  }
9086
- b(ys, It, {
9086
+ b(gs, It, {
9087
9087
  /**
9088
9088
  * handle mouse events
9089
9089
  * @param {Object} ev
@@ -9108,14 +9108,14 @@ var Wo = { exports: {} };
9108
9108
  2: G,
9109
9109
  3: ut,
9110
9110
  4: Ot,
9111
- 5: ds
9111
+ 5: fs
9112
9112
  // see https://twitter.com/jacobrossi/status/480596438489890816
9113
9113
  }, _n = "pointerdown", Tn = "pointermove pointerup pointercancel";
9114
9114
  t.MSPointerEvent && !t.PointerEvent && (_n = "MSPointerDown", Tn = "MSPointerMove MSPointerUp MSPointerCancel");
9115
- function ui() {
9115
+ function fi() {
9116
9116
  this.evEl = _n, this.evWin = Tn, It.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
9117
9117
  }
9118
- b(ui, It, {
9118
+ b(fi, It, {
9119
9119
  /**
9120
9120
  * handle mouse events
9121
9121
  * @param {Object} ev
@@ -9163,10 +9163,10 @@ var Wo = { exports: {} };
9163
9163
  touchend: J,
9164
9164
  touchcancel: ht
9165
9165
  }, Aa = "touchstart touchmove touchend touchcancel";
9166
- function xs() {
9166
+ function ys() {
9167
9167
  this.evTarget = Aa, this.targetIds = {}, It.apply(this, arguments);
9168
9168
  }
9169
- b(xs, It, {
9169
+ b(ys, It, {
9170
9170
  handler: function(x) {
9171
9171
  var M = Ia[x.type], E = ka.call(this, x, M);
9172
9172
  E && this.callback(this.manager, M, {
@@ -9197,12 +9197,12 @@ var Wo = { exports: {} };
9197
9197
  ];
9198
9198
  }
9199
9199
  var Da = 2500, En = 25;
9200
- function fi() {
9200
+ function di() {
9201
9201
  It.apply(this, arguments);
9202
9202
  var p = g(this.handler, this);
9203
- this.touch = new xs(this.manager, p), this.mouse = new ys(this.manager, p), this.primaryTouch = null, this.lastTouches = [];
9203
+ this.touch = new ys(this.manager, p), this.mouse = new gs(this.manager, p), this.primaryTouch = null, this.lastTouches = [];
9204
9204
  }
9205
- b(fi, It, {
9205
+ b(di, It, {
9206
9206
  /**
9207
9207
  * handle mouse and touch events
9208
9208
  * @param {Hammer} manager
@@ -9249,17 +9249,17 @@ var Wo = { exports: {} };
9249
9249
  }
9250
9250
  return !1;
9251
9251
  }
9252
- var In = st(o.style, "touchAction"), An = In !== n, kn = "compute", Dn = "auto", di = "manipulation", we = "none", je = "pan-x", He = "pan-y", ws = Oa();
9253
- function mi(p, x) {
9252
+ var In = st(o.style, "touchAction"), An = In !== n, kn = "compute", Dn = "auto", mi = "manipulation", we = "none", je = "pan-x", He = "pan-y", xs = Oa();
9253
+ function pi(p, x) {
9254
9254
  this.manager = p, this.set(x);
9255
9255
  }
9256
- mi.prototype = {
9256
+ pi.prototype = {
9257
9257
  /**
9258
9258
  * set the touchAction value on the element or enable the polyfill
9259
9259
  * @param {String} value
9260
9260
  */
9261
9261
  set: function(p) {
9262
- p == kn && (p = this.compute()), An && this.manager.element.style && ws[p] && (this.manager.element.style[In] = p), this.actions = p.toLowerCase().trim();
9262
+ p == kn && (p = this.compute()), An && this.manager.element.style && xs[p] && (this.manager.element.style[In] = p), this.actions = p.toLowerCase().trim();
9263
9263
  },
9264
9264
  /**
9265
9265
  * just re-set the touchAction value
@@ -9287,7 +9287,7 @@ var Wo = { exports: {} };
9287
9287
  x.preventDefault();
9288
9288
  return;
9289
9289
  }
9290
- var E = this.actions, A = V(E, we) && !ws[we], L = V(E, He) && !ws[He], U = V(E, je) && !ws[je];
9290
+ var E = this.actions, A = V(E, we) && !xs[we], L = V(E, He) && !xs[He], U = V(E, je) && !xs[je];
9291
9291
  if (A) {
9292
9292
  var nt = p.pointers.length === 1, at = p.distance < 2, ft = p.deltaTime < 250;
9293
9293
  if (nt && at && ft)
@@ -9308,7 +9308,7 @@ var Wo = { exports: {} };
9308
9308
  if (V(p, we))
9309
9309
  return we;
9310
9310
  var x = V(p, je), M = V(p, He);
9311
- return x && M ? we : x || M ? x ? je : He : V(p, di) ? di : Dn;
9311
+ return x && M ? we : x || M ? x ? je : He : V(p, mi) ? mi : Dn;
9312
9312
  }
9313
9313
  function Oa() {
9314
9314
  if (!An)
@@ -9318,9 +9318,9 @@ var Wo = { exports: {} };
9318
9318
  p[M] = x ? t.CSS.supports("touch-action", M) : !0;
9319
9319
  }), p;
9320
9320
  }
9321
- var bs = 1, At = 2, ke = 4, he = 8, Qt = he, We = 16, qt = 32;
9321
+ var ws = 1, At = 2, ke = 4, he = 8, Qt = he, We = 16, qt = 32;
9322
9322
  function Kt(p) {
9323
- this.options = S({}, this.defaults, p || {}), this.id = xt(), this.manager = null, this.options.enable = _(this.options.enable, !0), this.state = bs, this.simultaneous = {}, this.requireFail = [];
9323
+ this.options = S({}, this.defaults, p || {}), this.id = xt(), this.manager = null, this.options.enable = _(this.options.enable, !0), this.state = ws, this.simultaneous = {}, this.requireFail = [];
9324
9324
  }
9325
9325
  Kt.prototype = {
9326
9326
  /**
@@ -9345,7 +9345,7 @@ var Wo = { exports: {} };
9345
9345
  if (f(p, "recognizeWith", this))
9346
9346
  return this;
9347
9347
  var x = this.simultaneous;
9348
- return p = Ss(p, this), x[p.id] || (x[p.id] = p, p.recognizeWith(this)), this;
9348
+ return p = bs(p, this), x[p.id] || (x[p.id] = p, p.recognizeWith(this)), this;
9349
9349
  },
9350
9350
  /**
9351
9351
  * drop the simultaneous link. it doesnt remove the link on the other recognizer.
@@ -9353,7 +9353,7 @@ var Wo = { exports: {} };
9353
9353
  * @returns {Recognizer} this
9354
9354
  */
9355
9355
  dropRecognizeWith: function(p) {
9356
- return f(p, "dropRecognizeWith", this) ? this : (p = Ss(p, this), delete this.simultaneous[p.id], this);
9356
+ return f(p, "dropRecognizeWith", this) ? this : (p = bs(p, this), delete this.simultaneous[p.id], this);
9357
9357
  },
9358
9358
  /**
9359
9359
  * recognizer can only run when an other is failing
@@ -9364,7 +9364,7 @@ var Wo = { exports: {} };
9364
9364
  if (f(p, "requireFailure", this))
9365
9365
  return this;
9366
9366
  var x = this.requireFail;
9367
- return p = Ss(p, this), W(x, p) === -1 && (x.push(p), p.requireFailure(this)), this;
9367
+ return p = bs(p, this), W(x, p) === -1 && (x.push(p), p.requireFailure(this)), this;
9368
9368
  },
9369
9369
  /**
9370
9370
  * drop the requireFailure link. it does not remove the link on the other recognizer.
@@ -9374,7 +9374,7 @@ var Wo = { exports: {} };
9374
9374
  dropRequireFailure: function(p) {
9375
9375
  if (f(p, "dropRequireFailure", this))
9376
9376
  return this;
9377
- p = Ss(p, this);
9377
+ p = bs(p, this);
9378
9378
  var x = W(this.requireFail, p);
9379
9379
  return x > -1 && this.requireFail.splice(x, 1), this;
9380
9380
  },
@@ -9422,7 +9422,7 @@ var Wo = { exports: {} };
9422
9422
  */
9423
9423
  canEmit: function() {
9424
9424
  for (var p = 0; p < this.requireFail.length; ) {
9425
- if (!(this.requireFail[p].state & (qt | bs)))
9425
+ if (!(this.requireFail[p].state & (qt | ws)))
9426
9426
  return !1;
9427
9427
  p++;
9428
9428
  }
@@ -9438,7 +9438,7 @@ var Wo = { exports: {} };
9438
9438
  this.reset(), this.state = qt;
9439
9439
  return;
9440
9440
  }
9441
- this.state & (Qt | We | qt) && (this.state = bs), this.state = this.process(x), this.state & (At | ke | he | We) && this.tryEmit(x);
9441
+ this.state & (Qt | We | qt) && (this.state = ws), this.state = this.process(x), this.state & (At | ke | he | We) && this.tryEmit(x);
9442
9442
  },
9443
9443
  /**
9444
9444
  * return the state of the recognizer
@@ -9471,7 +9471,7 @@ var Wo = { exports: {} };
9471
9471
  function Ln(p) {
9472
9472
  return p == I ? "down" : p == ae ? "up" : p == ge ? "left" : p == ye ? "right" : "";
9473
9473
  }
9474
- function Ss(p, x) {
9474
+ function bs(p, x) {
9475
9475
  var M = x.manager;
9476
9476
  return M ? M.get(p) : p;
9477
9477
  }
@@ -9511,10 +9511,10 @@ var Wo = { exports: {} };
9511
9511
  return E && (M & ht || !A) ? x | We : E || A ? M & J ? x | he : x & At ? x | ke : At : qt;
9512
9512
  }
9513
9513
  });
9514
- function vs() {
9514
+ function Ss() {
9515
9515
  Bt.apply(this, arguments), this.pX = null, this.pY = null;
9516
9516
  }
9517
- b(vs, Bt, {
9517
+ b(Ss, Bt, {
9518
9518
  /**
9519
9519
  * @namespace
9520
9520
  * @memberof PanRecognizer
@@ -9542,10 +9542,10 @@ var Wo = { exports: {} };
9542
9542
  x && (p.additionalEvent = this.options.event + x), this._super.emit.call(this, p);
9543
9543
  }
9544
9544
  });
9545
- function pi() {
9545
+ function gi() {
9546
9546
  Bt.apply(this, arguments);
9547
9547
  }
9548
- b(pi, Bt, {
9548
+ b(gi, Bt, {
9549
9549
  /**
9550
9550
  * @namespace
9551
9551
  * @memberof PinchRecognizer
@@ -9569,10 +9569,10 @@ var Wo = { exports: {} };
9569
9569
  this._super.emit.call(this, p);
9570
9570
  }
9571
9571
  });
9572
- function gi() {
9572
+ function yi() {
9573
9573
  Kt.apply(this, arguments), this._timer = null, this._input = null;
9574
9574
  }
9575
- b(gi, Kt, {
9575
+ b(yi, Kt, {
9576
9576
  /**
9577
9577
  * @namespace
9578
9578
  * @memberof PressRecognizer
@@ -9607,10 +9607,10 @@ var Wo = { exports: {} };
9607
9607
  this.state === Qt && (p && p.eventType & J ? this.manager.emit(this.options.event + "up", p) : (this._input.timeStamp = l(), this.manager.emit(this.options.event, this._input)));
9608
9608
  }
9609
9609
  });
9610
- function yi() {
9610
+ function xi() {
9611
9611
  Bt.apply(this, arguments);
9612
9612
  }
9613
- b(yi, Bt, {
9613
+ b(xi, Bt, {
9614
9614
  /**
9615
9615
  * @namespace
9616
9616
  * @memberof RotateRecognizer
@@ -9627,10 +9627,10 @@ var Wo = { exports: {} };
9627
9627
  return this._super.attrTest.call(this, p) && (Math.abs(p.rotation) > this.options.threshold || this.state & At);
9628
9628
  }
9629
9629
  });
9630
- function xi() {
9630
+ function wi() {
9631
9631
  Bt.apply(this, arguments);
9632
9632
  }
9633
- b(xi, Bt, {
9633
+ b(wi, Bt, {
9634
9634
  /**
9635
9635
  * @namespace
9636
9636
  * @memberof SwipeRecognizer
@@ -9643,7 +9643,7 @@ var Wo = { exports: {} };
9643
9643
  pointers: 1
9644
9644
  },
9645
9645
  getTouchAction: function() {
9646
- return vs.prototype.getTouchAction.call(this);
9646
+ return Ss.prototype.getTouchAction.call(this);
9647
9647
  },
9648
9648
  attrTest: function(p) {
9649
9649
  var x = this.options.direction, M;
@@ -9654,10 +9654,10 @@ var Wo = { exports: {} };
9654
9654
  x && this.manager.emit(this.options.event + x, p), this.manager.emit(this.options.event, p);
9655
9655
  }
9656
9656
  });
9657
- function Cs() {
9657
+ function vs() {
9658
9658
  Kt.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
9659
9659
  }
9660
- b(Cs, Kt, {
9660
+ b(vs, Kt, {
9661
9661
  /**
9662
9662
  * @namespace
9663
9663
  * @memberof PinchRecognizer
@@ -9676,7 +9676,7 @@ var Wo = { exports: {} };
9676
9676
  // a multi-tap can be a bit off the initial position
9677
9677
  },
9678
9678
  getTouchAction: function() {
9679
- return [di];
9679
+ return [mi];
9680
9680
  },
9681
9681
  process: function(p) {
9682
9682
  var x = this.options, M = p.pointers.length === x.pointers, E = p.distance < x.threshold, A = p.deltaTime < x.time;
@@ -9685,7 +9685,7 @@ var Wo = { exports: {} };
9685
9685
  if (E && A && M) {
9686
9686
  if (p.eventType != J)
9687
9687
  return this.failTimeout();
9688
- var L = this.pTime ? p.timeStamp - this.pTime < x.interval : !0, U = !this.pCenter || gs(this.pCenter, p.center) < x.posThreshold;
9688
+ var L = this.pTime ? p.timeStamp - this.pTime < x.interval : !0, U = !this.pCenter || ps(this.pCenter, p.center) < x.posThreshold;
9689
9689
  this.pTime = p.timeStamp, this.pCenter = p.center, !U || !L ? this.count = 1 : this.count += 1, this._input = p;
9690
9690
  var nt = this.count % x.taps;
9691
9691
  if (nt === 0)
@@ -9708,7 +9708,7 @@ var Wo = { exports: {} };
9708
9708
  }
9709
9709
  });
9710
9710
  function te(p, x) {
9711
- return x = x || {}, x.recognizers = _(x.recognizers, te.defaults.preset), new wi(p, x);
9711
+ return x = x || {}, x.recognizers = _(x.recognizers, te.defaults.preset), new bi(p, x);
9712
9712
  }
9713
9713
  te.VERSION = "2.0.7", te.defaults = {
9714
9714
  /**
@@ -9751,13 +9751,13 @@ var Wo = { exports: {} };
9751
9751
  */
9752
9752
  preset: [
9753
9753
  // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
9754
- [yi, { enable: !1 }],
9755
- [pi, { enable: !1 }, ["rotate"]],
9756
- [xi, { direction: K }],
9757
- [vs, { direction: K }, ["swipe"]],
9758
- [Cs],
9759
- [Cs, { event: "doubletap", taps: 2 }, ["tap"]],
9760
- [gi]
9754
+ [xi, { enable: !1 }],
9755
+ [gi, { enable: !1 }, ["rotate"]],
9756
+ [wi, { direction: K }],
9757
+ [Ss, { direction: K }, ["swipe"]],
9758
+ [vs],
9759
+ [vs, { event: "doubletap", taps: 2 }, ["tap"]],
9760
+ [yi]
9761
9761
  ],
9762
9762
  /**
9763
9763
  * Some CSS properties can be used to improve the working of Hammer.
@@ -9807,13 +9807,13 @@ var Wo = { exports: {} };
9807
9807
  }
9808
9808
  };
9809
9809
  var Ba = 1, zn = 2;
9810
- function wi(p, x) {
9811
- this.options = S({}, te.defaults, x || {}), this.options.inputTarget = this.options.inputTarget || p, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = p, this.input = da(this), this.touchAction = new mi(this, this.options.touchAction), On(this, !0), d(this.options.recognizers, function(M) {
9810
+ function bi(p, x) {
9811
+ this.options = S({}, te.defaults, x || {}), this.options.inputTarget = this.options.inputTarget || p, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = p, this.input = da(this), this.touchAction = new pi(this, this.options.touchAction), On(this, !0), d(this.options.recognizers, function(M) {
9812
9812
  var E = this.add(new M[0](M[1]));
9813
9813
  M[2] && E.recognizeWith(M[2]), M[3] && E.requireFailure(M[3]);
9814
9814
  }, this);
9815
9815
  }
9816
- wi.prototype = {
9816
+ bi.prototype = {
9817
9817
  /**
9818
9818
  * set options
9819
9819
  * @param {Object} options
@@ -9958,7 +9958,7 @@ var Wo = { exports: {} };
9958
9958
  INPUT_MOVE: Gt,
9959
9959
  INPUT_END: J,
9960
9960
  INPUT_CANCEL: ht,
9961
- STATE_POSSIBLE: bs,
9961
+ STATE_POSSIBLE: ws,
9962
9962
  STATE_BEGAN: At,
9963
9963
  STATE_CHANGED: ke,
9964
9964
  STATE_ENDED: he,
@@ -9973,22 +9973,22 @@ var Wo = { exports: {} };
9973
9973
  DIRECTION_HORIZONTAL: K,
9974
9974
  DIRECTION_VERTICAL: xe,
9975
9975
  DIRECTION_ALL: xn,
9976
- Manager: wi,
9976
+ Manager: bi,
9977
9977
  Input: It,
9978
- TouchAction: mi,
9979
- TouchInput: xs,
9980
- MouseInput: ys,
9981
- PointerEventInput: ui,
9982
- TouchMouseInput: fi,
9978
+ TouchAction: pi,
9979
+ TouchInput: ys,
9980
+ MouseInput: gs,
9981
+ PointerEventInput: fi,
9982
+ TouchMouseInput: di,
9983
9983
  SingleTouchInput: Mn,
9984
9984
  Recognizer: Kt,
9985
9985
  AttrRecognizer: Bt,
9986
- Tap: Cs,
9987
- Pan: vs,
9988
- Swipe: xi,
9989
- Pinch: pi,
9990
- Rotate: yi,
9991
- Press: gi,
9986
+ Tap: vs,
9987
+ Pan: Ss,
9988
+ Swipe: wi,
9989
+ Pinch: gi,
9990
+ Rotate: xi,
9991
+ Press: yi,
9992
9992
  on: C,
9993
9993
  off: D,
9994
9994
  each: d,
@@ -10074,7 +10074,7 @@ function Hf(i = document.documentElement) {
10074
10074
  }, a = (I) => {
10075
10075
  t.emit("mouseUp", I);
10076
10076
  }, h = (I) => {
10077
- r.isDown || n.setCurrentMousePoint(Qe(I, i)), t.emit("mouseMove", I);
10077
+ r.isDown || n.setCurrentMousePoint(Je(I, i)), t.emit("mouseMove", I);
10078
10078
  }, c = (I) => {
10079
10079
  t.emit("mouseOver", I);
10080
10080
  }, l = (I) => {
@@ -10099,7 +10099,7 @@ function Hf(i = document.documentElement) {
10099
10099
  t.emit("touchCancel", I);
10100
10100
  }, y = (I) => {
10101
10101
  const K = I.changedTouches[0];
10102
- r.isDown || n.setCurrentMousePoint(Qe(K, i)), t.emit("touchMove", I);
10102
+ r.isDown || n.setCurrentMousePoint(Je(K, i)), t.emit("touchMove", I);
10103
10103
  }, _ = (I) => {
10104
10104
  t.emit("pointerDown", I);
10105
10105
  }, C = (I) => {
@@ -10140,9 +10140,9 @@ function Hf(i = document.documentElement) {
10140
10140
  t.emit("swipe", I);
10141
10141
  }, Ot = (I) => {
10142
10142
  t.emit("swipeLeft", I);
10143
- }, ds = (I) => {
10143
+ }, fs = (I) => {
10144
10144
  t.emit("swipeRight", I);
10145
- }, ms = (I) => {
10145
+ }, ds = (I) => {
10146
10146
  t.emit("swipeUp", I);
10147
10147
  }, it = (I) => {
10148
10148
  t.emit("swipeDown", I);
@@ -10179,26 +10179,26 @@ function Hf(i = document.documentElement) {
10179
10179
  // older Firefox
10180
10180
  S
10181
10181
  )
10182
- ), s.push(N(i, "contextmenu", v)), s.push(N(i, "touchstart", w)), s.push(N(i, "touchend", b)), s.push(N(i, "touchcancel", g)), s.push(N(i, "touchmove", y)), s.push(N(i, "pointerdown", _)), s.push(N(i, "pointerup", C)), s.push(N(i, "pointercancel", D)), s.push(N(i, "pointermove", X)), e.on("pan", V), e.on("panstart", q), e.on("panmove", W), e.on("panend", Q), e.on("pancancel", ot), e.on("panleft", st), e.on("panright", Lt), e.on("panup", xt), e.on("pandown", Pt), e.on("pinch", zt), e.on("pinchin", R), e.on("pinchout", k), e.on("press", B), e.on("rotate", G), e.on("swipe", ut), e.on("swipeleft", Ot), e.on("swiperight", ds), e.on("swipeup", ms), e.on("swipedown", it), e.on("tap", Gt), s.push(N(document, "pointerdown", J)), s.push(N(i, "transitionstart", ht)), s.push(N(i, "transitionend", Ae)), s.push(N(i, "animationstart", ge)), s.push(N(i, "animationend", ye));
10182
+ ), s.push(N(i, "contextmenu", v)), s.push(N(i, "touchstart", w)), s.push(N(i, "touchend", b)), s.push(N(i, "touchcancel", g)), s.push(N(i, "touchmove", y)), s.push(N(i, "pointerdown", _)), s.push(N(i, "pointerup", C)), s.push(N(i, "pointercancel", D)), s.push(N(i, "pointermove", X)), e.on("pan", V), e.on("panstart", q), e.on("panmove", W), e.on("panend", Q), e.on("pancancel", ot), e.on("panleft", st), e.on("panright", Lt), e.on("panup", xt), e.on("pandown", Pt), e.on("pinch", zt), e.on("pinchin", R), e.on("pinchout", k), e.on("press", B), e.on("rotate", G), e.on("swipe", ut), e.on("swipeleft", Ot), e.on("swiperight", fs), e.on("swipeup", ds), e.on("swipedown", it), e.on("tap", Gt), s.push(N(document, "pointerdown", J)), s.push(N(i, "transitionstart", ht)), s.push(N(i, "transitionend", Ae)), s.push(N(i, "animationstart", ge)), s.push(N(i, "animationend", ye));
10183
10183
  const I = await $o(i, (K) => {
10184
10184
  ae = K, t.emit("resize", K);
10185
10185
  });
10186
10186
  s.push(I), s.push(
10187
10187
  Ee(this, {
10188
10188
  start: (K) => {
10189
- n.setStartMousePoint(Qe(K, i), !0);
10189
+ n.setStartMousePoint(Je(K, i), !0);
10190
10190
  },
10191
10191
  move: (K) => {
10192
- n.setCurrentMousePoint(Qe(K, i));
10192
+ n.setCurrentMousePoint(Je(K, i));
10193
10193
  },
10194
10194
  end: (K) => {
10195
- n.setCurrentMousePoint(Qe(K, i), !1);
10195
+ n.setCurrentMousePoint(Je(K, i), !1);
10196
10196
  }
10197
10197
  })
10198
10198
  );
10199
10199
  },
10200
10200
  end: () => {
10201
- t.removeAllListeners(), s.forEach((I) => I()), s = [], e.off("pan", V), e.off("panstart", q), e.off("panmove", W), e.off("panend", Q), e.off("pancancel", ot), e.off("panleft", st), e.off("panright", Lt), e.off("panup", xt), e.off("pandown", Pt), e.off("pinch", zt), e.off("pinchin", R), e.off("pinchout", k), e.off("press", B), e.off("rotate", G), e.off("swipe", ut), e.off("swipeleft", Ot), e.off("swiperight", ds), e.off("swipeup", ms), e.off("swipedown", it), e.off("tap", Gt);
10201
+ t.removeAllListeners(), s.forEach((I) => I()), s = [], e.off("pan", V), e.off("panstart", q), e.off("panmove", W), e.off("panend", Q), e.off("pancancel", ot), e.off("panleft", st), e.off("panright", Lt), e.off("panup", xt), e.off("pandown", Pt), e.off("pinch", zt), e.off("pinchin", R), e.off("pinchout", k), e.off("press", B), e.off("rotate", G), e.off("swipe", ut), e.off("swipeleft", Ot), e.off("swiperight", fs), e.off("swipeup", ds), e.off("swipedown", it), e.off("tap", Gt);
10202
10202
  }
10203
10203
  };
10204
10204
  }
@@ -10223,7 +10223,7 @@ function $f(i, t, e = 50) {
10223
10223
  });
10224
10224
  }
10225
10225
  function Zl(i = "(prefers-color-scheme: dark)") {
10226
- const t = window.matchMedia(i), e = Qs(t.matches);
10226
+ const t = window.matchMedia(i), e = Ks(t.matches);
10227
10227
  return N(t, "change", (s) => {
10228
10228
  e.value = s.matches;
10229
10229
  }), { get: () => e.value };
@@ -10234,10 +10234,10 @@ const { get: fn, set: Jl } = Jc(
10234
10234
  function Zo(i) {
10235
10235
  switch (Jl(i), fn()) {
10236
10236
  case "dark":
10237
- document.documentElement.classList.add("dark"), as(document.documentElement, "data-theme", "dark");
10237
+ document.documentElement.classList.add("dark"), os(document.documentElement, "data-theme", "dark");
10238
10238
  break;
10239
10239
  default:
10240
- document.documentElement.classList.remove("dark"), as(document.documentElement, "data-theme", "light");
10240
+ document.documentElement.classList.remove("dark"), os(document.documentElement, "data-theme", "light");
10241
10241
  break;
10242
10242
  }
10243
10243
  }
@@ -10355,39 +10355,39 @@ function iu() {
10355
10355
  }
10356
10356
  iu();
10357
10357
  const kt = new Ve();
10358
- let js, Hs, Ws, $s;
10358
+ let Hs, Ws, $s, Zs;
10359
10359
  $o(document.documentElement, () => {
10360
10360
  setTimeout(() => {
10361
10361
  const i = getComputedStyle(document.documentElement), t = i.getPropertyValue("--sat");
10362
- t !== js && kt.emit("top", t), js = t;
10362
+ t !== Hs && kt.emit("top", t), Hs = t;
10363
10363
  const e = i.getPropertyValue("--sar");
10364
- e !== Hs && kt.emit("right", e), Hs = e;
10364
+ e !== Ws && kt.emit("right", e), Ws = e;
10365
10365
  const s = i.getPropertyValue("--sab");
10366
- s !== Ws && kt.emit("bottom", s), Ws = s;
10366
+ s !== $s && kt.emit("bottom", s), $s = s;
10367
10367
  const n = i.getPropertyValue("--sal");
10368
- n !== $s && kt.emit("left", n), $s = n;
10368
+ n !== Zs && kt.emit("left", n), Zs = n;
10369
10369
  }, 0);
10370
10370
  });
10371
10371
  const sd = {
10372
- onTop: (i) => (js && i(js), kt.on("top", i), () => {
10372
+ onTop: (i) => (Hs && i(Hs), kt.on("top", i), () => {
10373
10373
  kt.off("top", i);
10374
10374
  }),
10375
- onRight: (i) => (Hs && i(Hs), kt.on("right", i), () => {
10375
+ onRight: (i) => (Ws && i(Ws), kt.on("right", i), () => {
10376
10376
  kt.off("right", i);
10377
10377
  }),
10378
- onBottom: (i) => (Ws && i(Ws), kt.on("bottom", i), () => {
10378
+ onBottom: (i) => ($s && i($s), kt.on("bottom", i), () => {
10379
10379
  kt.off("bottom", i);
10380
10380
  }),
10381
- onLeft: (i) => ($s && i($s), kt.on("left", i), () => {
10381
+ onLeft: (i) => (Zs && i(Zs), kt.on("left", i), () => {
10382
10382
  kt.off("left", i);
10383
10383
  })
10384
- }, Ke = [];
10384
+ }, Qe = [];
10385
10385
  let pr = Oi;
10386
10386
  function nu(i) {
10387
- return Ke.length == 0 && (pr = N(document, "scroll", (t) => {
10388
- Ke.forEach((e) => e(t));
10389
- })), Ke.push(i), () => {
10390
- Ce(Ke, i), Ke.length == 0 && pr();
10387
+ return Qe.length == 0 && (pr = N(document, "scroll", (t) => {
10388
+ Qe.forEach((e) => e(t));
10389
+ })), Qe.push(i), () => {
10390
+ Ce(Qe, i), Qe.length == 0 && pr();
10391
10391
  };
10392
10392
  }
10393
10393
  function id(i, t) {
@@ -11146,7 +11146,7 @@ const Ko = function() {
11146
11146
  MODE_ALPHA_NUM: 2,
11147
11147
  MODE_8BIT_BYTE: 4,
11148
11148
  MODE_KANJI: 8
11149
- }, ss = {
11149
+ }, es = {
11150
11150
  M: 0,
11151
11151
  L: 1,
11152
11152
  H: 2,
@@ -11618,13 +11618,13 @@ class ne {
11618
11618
  }
11619
11619
  static getRsBlockTable(t, e) {
11620
11620
  switch (e) {
11621
- case ss.L:
11621
+ case es.L:
11622
11622
  return ne.RS_BLOCK_TABLE[(t - 1) * 4 + 0];
11623
- case ss.M:
11623
+ case es.M:
11624
11624
  return ne.RS_BLOCK_TABLE[(t - 1) * 4 + 1];
11625
- case ss.Q:
11625
+ case es.Q:
11626
11626
  return ne.RS_BLOCK_TABLE[(t - 1) * 4 + 2];
11627
- case ss.H:
11627
+ case es.H:
11628
11628
  return ne.RS_BLOCK_TABLE[(t - 1) * 4 + 3];
11629
11629
  default:
11630
11630
  return;
@@ -11677,7 +11677,7 @@ class Me {
11677
11677
  dataCache;
11678
11678
  dataList;
11679
11679
  constructor(t, e) {
11680
- this.typeNumber = t, this.errorCorrectLevel = ss[e], this.modules = [], this.moduleCount = 0, this.dataCache = null, this.dataList = [];
11680
+ this.typeNumber = t, this.errorCorrectLevel = es[e], this.modules = [], this.moduleCount = 0, this.dataCache = null, this.dataList = [];
11681
11681
  }
11682
11682
  addData(t) {
11683
11683
  const e = new lu(t);
@@ -11863,27 +11863,27 @@ class Me {
11863
11863
  return c;
11864
11864
  }
11865
11865
  }
11866
- const yr = Math.ceil, ns = Math.floor, xr = Math.round;
11866
+ const yr = Math.ceil, is = Math.floor, xr = Math.round;
11867
11867
  function Vd(i, t) {
11868
11868
  const e = Fr(i), s = t?.ecc || "H", n = t?.size || 256, r = -1, o = t?.padding || 0, a = t?.color || "#000000", h = t?.background || "#ffffff", c = new Me(r, s);
11869
11869
  c.addData(e), c.make();
11870
11870
  const l = c.getModuleCount(), u = (n - o * 2) / l, f = o, d = n - o;
11871
11871
  return cu(n, a, h, function(m, S) {
11872
11872
  if (f <= m && m < d && f <= S && S < d) {
11873
- const v = ns((m - f) / u), w = ns((S - f) / u);
11873
+ const v = is((m - f) / u), w = is((S - f) / u);
11874
11874
  return c.isDark(w, v) ? 0 : 1;
11875
11875
  } else
11876
11876
  return 1;
11877
11877
  });
11878
11878
  }
11879
11879
  function Gd(i, t) {
11880
- const e = t.x || 0, s = t.y || 0, n = Fr(i), r = t.ctx, o = t.ecc || "H", a = typeof t.size == "number" ? ns(t.size) : 256, h = t.padding || 0, c = -1, l = t.color || "#000000", u = t.background || "#ffffff", f = new Me(c, o);
11880
+ const e = t.x || 0, s = t.y || 0, n = Fr(i), r = t.ctx, o = t.ecc || "H", a = typeof t.size == "number" ? is(t.size) : 256, h = t.padding || 0, c = -1, l = t.color || "#000000", u = t.background || "#ffffff", f = new Me(c, o);
11881
11881
  f.addData(n), f.make();
11882
11882
  const d = f.getModuleCount(), m = (a - h * 2) / d;
11883
11883
  r.fillStyle = u, r.fillRect(e, s, a, a);
11884
11884
  for (let S = 0; S < d; S++)
11885
11885
  for (let v = 0; v < d; v++) {
11886
- const w = yr((v + 1) * m) - ns(v * m), b = yr((S + 1) * m) - ns(S * m);
11886
+ const w = yr((v + 1) * m) - is(v * m), b = yr((S + 1) * m) - is(S * m);
11887
11887
  r.fillStyle = f.isDark(S, v) ? l : u, r.fillRect(
11888
11888
  e + xr(v * m) + h,
11889
11889
  s + xr(S * m) + h,
@@ -11892,7 +11892,7 @@ function Gd(i, t) {
11892
11892
  );
11893
11893
  }
11894
11894
  }
11895
- const ks = new hi(), tt = new Rt();
11895
+ const Ds = new ci(), tt = new Rt();
11896
11896
  function re(i, t) {
11897
11897
  switch (t.constructor) {
11898
11898
  case Float32Array:
@@ -11971,7 +11971,7 @@ class oe {
11971
11971
  applyMatrix3(t) {
11972
11972
  if (this.itemSize === 2)
11973
11973
  for (let e = 0, s = this.count; e < s; e++)
11974
- ks.fromBufferAttribute(this, e), ks.applyMatrix3(t), this.setXY(e, ks.x, ks.y);
11974
+ Ds.fromBufferAttribute(this, e), Ds.applyMatrix3(t), this.setXY(e, Ds.x, Ds.y);
11975
11975
  else if (this.itemSize === 3)
11976
11976
  for (let e = 0, s = this.count; e < s; e++)
11977
11977
  tt.fromBufferAttribute(this, e), tt.applyMatrix3(t), this.setXYZ(e, tt.x, tt.y, tt.z);
@@ -12275,7 +12275,7 @@ class lt extends H {
12275
12275
  }
12276
12276
  }
12277
12277
  }
12278
- const Ds = {
12278
+ const Rs = {
12279
12279
  1: 705234,
12280
12280
  // rgb(10,194,210)
12281
12281
  2: 8108026,
@@ -12735,15 +12735,15 @@ class yt {
12735
12735
  static nextIndex = 0;
12736
12736
  static next(t = yt.nextIndex) {
12737
12737
  yt.nextIndex = t;
12738
- const e = Object.keys(Ds), s = e.length;
12739
- return $t.setHEX(Ds[e[yt.nextIndex++ % s]]).toString();
12738
+ const e = Object.keys(Rs), s = e.length;
12739
+ return $t.setHEX(Rs[e[yt.nextIndex++ % s]]).toString();
12740
12740
  }
12741
12741
  setColorName(t) {
12742
- const e = Ds[t.toLowerCase()];
12742
+ const e = Rs[t.toLowerCase()];
12743
12743
  return e !== void 0 ? this.setHEX(e) : t === "none" ? this.a = 0 : (this.a = 1, console.warn("Color.setColorName: Unknown color " + t)), this;
12744
12744
  }
12745
12745
  static getColors() {
12746
- return Object.values(Ds).map((t) => $t.setHEX(t).toString());
12746
+ return Object.values(Rs).map((t) => $t.setHEX(t).toString());
12747
12747
  }
12748
12748
  setRGB(t, e, s, n = 1) {
12749
12749
  return this.r = t, this.g = e, this.b = s, this.a = n, this;
@@ -12810,7 +12810,7 @@ class yt {
12810
12810
  return this.setHSL(n.h + t, n.s + e, n.l + s);
12811
12811
  }
12812
12812
  lerpHSL(t, e) {
12813
- const s = this.getHSL(), n = t.getHSL(), r = bi(s.h, n.h, e), o = bi(s.s, n.s, e), a = bi(s.l, n.l, e);
12813
+ const s = this.getHSL(), n = t.getHSL(), r = Si(s.h, n.h, e), o = Si(s.s, n.s, e), a = Si(s.l, n.l, e);
12814
12814
  return this.setHSL(r, o, a), this;
12815
12815
  }
12816
12816
  /// hsv(a) / hsb(a) : hue 色相 + saturation 饱和度 + value or brightness 明度
@@ -12858,7 +12858,7 @@ function Ye(i) {
12858
12858
  function Fe(i) {
12859
12859
  return i < 31308e-7 ? i * 12.92 : 1.055 * Math.pow(i, 0.41666) - 0.055;
12860
12860
  }
12861
- const uu = "", Oe = "srgb", ta = "srgb-linear", ea = "linear", Wi = "srgb", wr = new us().set(
12861
+ const uu = "", Oe = "srgb", ta = "srgb-linear", ea = "linear", Wi = "srgb", wr = new ls().set(
12862
12862
  0.4123908,
12863
12863
  0.3575843,
12864
12864
  0.1804808,
@@ -12868,7 +12868,7 @@ const uu = "", Oe = "srgb", ta = "srgb-linear", ea = "linear", Wi = "srgb", wr =
12868
12868
  0.0193308,
12869
12869
  0.1191948,
12870
12870
  0.9505322
12871
- ), br = new us().set(
12871
+ ), br = new ls().set(
12872
12872
  3.2409699,
12873
12873
  -1.5373832,
12874
12874
  -0.4986108,
@@ -13073,7 +13073,7 @@ class tm extends H {
13073
13073
  );
13074
13074
  }
13075
13075
  }
13076
- class Zs {
13076
+ class Js {
13077
13077
  video;
13078
13078
  constructor(t) {
13079
13079
  this.video = t;
@@ -13106,7 +13106,7 @@ class Zs {
13106
13106
  t.play().then(() => {
13107
13107
  t.autoplay = !0, e(!0);
13108
13108
  }).catch(() => {
13109
- Zs.setAutoPlayWhenClick(t), e(!1);
13109
+ Js.setAutoPlayWhenClick(t), e(!1);
13110
13110
  });
13111
13111
  });
13112
13112
  }
@@ -13870,12 +13870,12 @@ class em {
13870
13870
  e.el && (e.el.remove(), delete e.el);
13871
13871
  continue;
13872
13872
  }
13873
- if (e.frameStart(this.controller.mousePoint), e.el || (e instanceof Js ? e.el = this.text(
13873
+ if (e.frameStart(this.controller.mousePoint), e.el || (e instanceof Qs ? e.el = this.text(
13874
13874
  e.text,
13875
13875
  e.x,
13876
13876
  e.y,
13877
13877
  Nn(e.getAttrs(), (n, r) => typeof r == "string")
13878
- ) : (e.el = vt.createSvgPath(e.toSVGPathD(), e.id), this.ue.insert(e.el))), e.followMouse && (!Ns(e.x, this.controller.mousePoint.x, 5) || !Ns(e.y, this.controller.mousePoint.y, 5)) && e.followTo(this.controller.mousePoint), e.targetToAfterDragFree && (this.controller.mousePoint.isDown || e.runEaseTo(
13878
+ ) : (e.el = vt.createSvgPath(e.toSVGPathD(), e.id), this.ue.insert(e.el))), e.followMouse && (!Ys(e.x, this.controller.mousePoint.x, 5) || !Ys(e.y, this.controller.mousePoint.y, 5)) && e.followTo(this.controller.mousePoint), e.targetToAfterDragFree && (this.controller.mousePoint.isDown || e.runEaseTo(
13879
13879
  {
13880
13880
  x: e.targetToAfterDragFree.targetX,
13881
13881
  y: e.targetToAfterDragFree.targetY
@@ -13895,7 +13895,7 @@ class em {
13895
13895
  }
13896
13896
  } else
13897
13897
  e.isDragging = !1;
13898
- e instanceof Js && (e.setAttr("x", String(e.x)), e.setAttr("y", String(e.y))), e.frameUpdate(this.controller.mousePoint);
13898
+ e instanceof Qs && (e.setAttr("x", String(e.x)), e.setAttr("y", String(e.y))), e.frameUpdate(this.controller.mousePoint);
13899
13899
  const s = e.toSVGPathD();
13900
13900
  if (this.attr(
13901
13901
  e,
@@ -14547,7 +14547,7 @@ class lm extends lt {
14547
14547
  this.addShape([e, n, o]);
14548
14548
  }
14549
14549
  }
14550
- class Js extends H {
14550
+ class Qs extends H {
14551
14551
  text;
14552
14552
  width = 0;
14553
14553
  height = 0;
@@ -14614,7 +14614,7 @@ class yu extends lt {
14614
14614
  textShape;
14615
14615
  bgShape;
14616
14616
  constructor(t) {
14617
- super(t), this.text = t.text, this.bg = t.bg || "rgba(0,0,0,0.5)", this.padding = t.padding || 4, this.offset = t.offset || 20, this.isShow = typeof t?.isShow == "boolean" ? t?.isShow : !1, this.textShape = new Js({
14617
+ super(t), this.text = t.text, this.bg = t.bg || "rgba(0,0,0,0.5)", this.padding = t.padding || 4, this.offset = t.offset || 20, this.isShow = typeof t?.isShow == "boolean" ? t?.isShow : !1, this.textShape = new Qs({
14618
14618
  ...t,
14619
14619
  x: this.x + this.offset,
14620
14620
  y: this.y + this.offset,
@@ -14693,7 +14693,7 @@ class um extends lt {
14693
14693
  toY: this.p3.y,
14694
14694
  attrs: { ...e },
14695
14695
  isShow: this.defaultShowText
14696
- }), this.textShape = new Js({
14696
+ }), this.textShape = new Qs({
14697
14697
  x: this.p4.x,
14698
14698
  y: this.p4.y,
14699
14699
  text: this.text,
@@ -15560,7 +15560,7 @@ function vu(i) {
15560
15560
  function Sm(i) {
15561
15561
  return window.URL.revokeObjectURL(i);
15562
15562
  }
15563
- const Pr = new hs();
15563
+ const Pr = new as();
15564
15564
  async function Cu(i, t = 6e4) {
15565
15565
  return new Promise((e, s) => {
15566
15566
  const n = typeof i == "string" ? i : vu(i), r = Pr.get(n);
@@ -15586,7 +15586,7 @@ async function Cu(i, t = 6e4) {
15586
15586
  });
15587
15587
  }
15588
15588
  async function na(i = Ft.text, t = ["*"]) {
15589
- const s = (await xo(t))[0], n = await oi(s, i);
15589
+ const s = (await xo(t))[0], n = await ai(s, i);
15590
15590
  return {
15591
15591
  type: s.type,
15592
15592
  name: s.name,
@@ -15598,7 +15598,7 @@ async function vm(i = ["image/*"]) {
15598
15598
  const e = (await xo(i))[0];
15599
15599
  if (!e.type.match(/image\/*/))
15600
15600
  return new Error("Not Image Type!");
15601
- const s = await oi(
15601
+ const s = await ai(
15602
15602
  e,
15603
15603
  Ft.arraybuffer
15604
15604
  ), n = Qi(s), r = await Cu(n);
@@ -15754,7 +15754,7 @@ function Ir(i, t) {
15754
15754
  const e = document.createElement("a");
15755
15755
  e.style.visibility = "hidden", e.download = t, typeof i == "string" ? e.href = i : e.href = window.URL.createObjectURL(i), e.click();
15756
15756
  }
15757
- const Ji = new hs();
15757
+ const Ji = new as();
15758
15758
  function oa(i, t) {
15759
15759
  return nh({ url: i, ...t });
15760
15760
  }
@@ -16167,13 +16167,13 @@ const Pu = {
16167
16167
  const t = ["th", "st", "nd", "rd"], e = i % 100;
16168
16168
  return `[${i}${t[(e - 20) % 10] || t[e] || t[0]}]`;
16169
16169
  }
16170
- }, Se = new hs();
16171
- let Rs = "zh-cn";
16170
+ }, Se = new as();
16171
+ let Ls = "zh-cn";
16172
16172
  ca(Iu);
16173
16173
  ca(Pu);
16174
16174
  function ca(i, t) {
16175
16175
  if (!i)
16176
- return Se.get(Rs);
16176
+ return Se.get(Ls);
16177
16177
  let e;
16178
16178
  if (typeof i == "string") {
16179
16179
  const s = i.toLowerCase();
@@ -16182,12 +16182,12 @@ function ca(i, t) {
16182
16182
  else if (t)
16183
16183
  Se.set(s, t), e = s;
16184
16184
  else
16185
- return Se.get(Rs);
16185
+ return Se.get(Ls);
16186
16186
  } else {
16187
16187
  const { name: s } = i;
16188
16188
  Se.set(s, i), e = s;
16189
16189
  }
16190
- return e && (Rs = e), Se.get(e) || Se.get(Rs);
16190
+ return e && (Ls = e), Se.get(e) || Se.get(Ls);
16191
16191
  }
16192
16192
  function ze(i, t = {}, e = [], s) {
16193
16193
  return {
@@ -16205,16 +16205,16 @@ function mn(i) {
16205
16205
  i
16206
16206
  );
16207
16207
  }
16208
- function rs(i, t = document.documentElement) {
16208
+ function ns(i, t = document.documentElement) {
16209
16209
  if (i.el)
16210
16210
  return i.el;
16211
16211
  if (i.el = document.createElement(i.tag), i.props)
16212
16212
  for (const e in i.props) {
16213
16213
  const s = i.props[e];
16214
- e.startsWith("on") ? i.el.addEventListener(e.slice(2).toLowerCase(), s) : e === "style" ? un(i.el, i.props[e]) : as(i.el, e, s);
16214
+ e.startsWith("on") ? i.el.addEventListener(e.slice(2).toLowerCase(), s) : e === "style" ? un(i.el, i.props[e]) : os(i.el, e, s);
16215
16215
  }
16216
16216
  return i.children && (typeof i.children == "string" ? i.el.appendChild(document.createTextNode(i.children)) : i.children.forEach((e) => {
16217
- rs(e, i.el);
16217
+ ns(e, i.el);
16218
16218
  })), t.appendChild(i.el), i.el;
16219
16219
  }
16220
16220
  function pn(i, t) {
@@ -16222,7 +16222,7 @@ function pn(i, t) {
16222
16222
  return;
16223
16223
  if (i.tag !== t.tag) {
16224
16224
  (i.el.parentElement || document.body).replaceChild(
16225
- rs(t),
16225
+ ns(t),
16226
16226
  i.el
16227
16227
  );
16228
16228
  return;
@@ -16241,21 +16241,21 @@ function pn(i, t) {
16241
16241
  l in c || jo(e, l);
16242
16242
  un(e, c);
16243
16243
  } else
16244
- as(e, a, c);
16244
+ os(e, a, c);
16245
16245
  }
16246
16246
  const r = i.children || [], o = t.children || [];
16247
16247
  if (typeof o == "string")
16248
16248
  e.innerHTML = o;
16249
16249
  else if (typeof r == "string")
16250
16250
  e.innerHTML = "", o.forEach((a) => {
16251
- rs(a, e);
16251
+ ns(a, e);
16252
16252
  });
16253
16253
  else {
16254
16254
  const a = Math.min(r.length, o.length);
16255
16255
  for (let h = 0; h < a; h++)
16256
16256
  pn(r[h], o[h]);
16257
16257
  o.length > r.length && o.slice(r.length).forEach((h) => {
16258
- rs(h, e);
16258
+ ns(h, e);
16259
16259
  }), o.length < r.length && r.slice(o.length).forEach((h) => {
16260
16260
  h.el && e.removeChild(h.el);
16261
16261
  });
@@ -16760,7 +16760,7 @@ async function op(i) {
16760
16760
  for (let u = 0, f = h.files?.length || 0; u < f; u++) {
16761
16761
  const d = h.files?.[u];
16762
16762
  if (d) {
16763
- const m = await oi(
16763
+ const m = await ai(
16764
16764
  d,
16765
16765
  Ft.binaryString
16766
16766
  );
@@ -16850,7 +16850,7 @@ class hp {
16850
16850
  for (const e of this.shapes) {
16851
16851
  if (!e.isShow)
16852
16852
  continue;
16853
- if (this.ctx.save(), e.frameStart(this.controller.mousePoint), Lu(this.ctx, e.getAttrs()), e.followMouse && (!Ns(e.x, this.controller.mousePoint.x, 5) || !Ns(e.y, this.controller.mousePoint.y, 5)) && e.followTo(this.controller.mousePoint), e.targetToAfterDragFree && (this.controller.mousePoint.isDown || e.runEaseTo(
16853
+ if (this.ctx.save(), e.frameStart(this.controller.mousePoint), Lu(this.ctx, e.getAttrs()), e.followMouse && (!Ys(e.x, this.controller.mousePoint.x, 5) || !Ys(e.y, this.controller.mousePoint.y, 5)) && e.followTo(this.controller.mousePoint), e.targetToAfterDragFree && (this.controller.mousePoint.isDown || e.runEaseTo(
16854
16854
  {
16855
16855
  x: e.targetToAfterDragFree.targetX,
16856
16856
  y: e.targetToAfterDragFree.targetY
@@ -17033,7 +17033,7 @@ class cp {
17033
17033
  localPeerConnection = null;
17034
17034
  remotePeerConnection = null;
17035
17035
  constructor(t, e) {
17036
- this.localVideoUtil = new Zs(t), this.remoteVideoUtil = new Zs(e);
17036
+ this.localVideoUtil = new Js(t), this.remoteVideoUtil = new Js(e);
17037
17037
  }
17038
17038
  start() {
17039
17039
  this.getLocalMediaStream().then((t) => {
@@ -17318,7 +17318,7 @@ function zp(i, t, e = "snsapi_userinfo", s = "") {
17318
17318
  function Op(i) {
17319
17319
  window.AlipayJSBridge ? i && i() : document.addEventListener("AlipayJSBridgeReady", i, !1);
17320
17320
  }
17321
- function fs(i, t) {
17321
+ function us(i, t) {
17322
17322
  let e = "未知错误";
17323
17323
  switch (i.error) {
17324
17324
  case 1:
@@ -17393,7 +17393,7 @@ function Np(i, t, e) {
17393
17393
  ap.scan(
17394
17394
  Object.assign(i, {
17395
17395
  fail: (s) => {
17396
- e?.(fs(s));
17396
+ e?.(us(s));
17397
17397
  }
17398
17398
  }),
17399
17399
  function(s) {
@@ -17405,7 +17405,7 @@ function Yp(i, t, e) {
17405
17405
  ap.getLocation(
17406
17406
  Object.assign(i, {
17407
17407
  fail: (s) => {
17408
- e?.(fs(s));
17408
+ e?.(us(s));
17409
17409
  }
17410
17410
  }),
17411
17411
  function(s) {
@@ -17417,7 +17417,7 @@ function Fp(i, t, e) {
17417
17417
  ap.openLocation(
17418
17418
  Object.assign(i, {
17419
17419
  fail: (s) => {
17420
- e?.(fs(s));
17420
+ e?.(us(s));
17421
17421
  }
17422
17422
  }),
17423
17423
  function() {
@@ -17429,7 +17429,7 @@ function Xp(i, t, e) {
17429
17429
  ap.chooseImage(
17430
17430
  Object.assign(i, {
17431
17431
  fail: (s) => {
17432
- e?.(fs(s, "chooseImage"));
17432
+ e?.(us(s, "chooseImage"));
17433
17433
  }
17434
17434
  }),
17435
17435
  function(s) {
@@ -17441,7 +17441,7 @@ function Up(i, t, e) {
17441
17441
  ap.previewImage(
17442
17442
  Object.assign(i, {
17443
17443
  fail: (s) => {
17444
- e?.(fs(s));
17444
+ e?.(us(s));
17445
17445
  }
17446
17446
  }),
17447
17447
  function() {
@@ -17474,7 +17474,7 @@ class Gp {
17474
17474
  totalPages;
17475
17475
  parentVNode;
17476
17476
  constructor(t, e, s) {
17477
- this.currentPage = s?.currentPage || 0, this.itemsPerPage = s?.itemsPerPage || 10, this.entriesInterval = s?.entriesInterval || 5, this.entriesEdge = s?.entriesEdge || 1, this.linkTo = s?.linkTo || "javascript:;", this.prevText = s?.prevText || "上一页", this.nextText = s?.nextText || "下一页", this.ellipseText = s?.ellipseText || "...", this.prevShowAlways = typeof s?.prevShowAlways == "boolean" ? s?.prevShowAlways : !0, this.nextShowAlways = typeof s?.nextShowAlways == "boolean" ? s?.nextShowAlways : !0, this.callback = s?.callback || ((n) => !1), this.totalPages = Math.ceil(e / this.itemsPerPage), this.parentVNode = this.createParentVNode(), rs(this.parentVNode, t), this.selectPage(this.currentPage);
17477
+ this.currentPage = s?.currentPage || 0, this.itemsPerPage = s?.itemsPerPage || 10, this.entriesInterval = s?.entriesInterval || 5, this.entriesEdge = s?.entriesEdge || 1, this.linkTo = s?.linkTo || "javascript:;", this.prevText = s?.prevText || "上一页", this.nextText = s?.nextText || "下一页", this.ellipseText = s?.ellipseText || "...", this.prevShowAlways = typeof s?.prevShowAlways == "boolean" ? s?.prevShowAlways : !0, this.nextShowAlways = typeof s?.nextShowAlways == "boolean" ? s?.nextShowAlways : !0, this.callback = s?.callback || ((n) => !1), this.totalPages = Math.ceil(e / this.itemsPerPage), this.parentVNode = this.createParentVNode(), ns(this.parentVNode, t), this.selectPage(this.currentPage);
17478
17478
  }
17479
17479
  createParentVNode() {
17480
17480
  return ze("div", { class: "pagination" }, []);
@@ -17544,7 +17544,7 @@ export {
17544
17544
  im as Arrow,
17545
17545
  ko as BezierEasing,
17546
17546
  oe as BufferAttribute,
17547
- Ds as COLOR_NAMES,
17547
+ Rs as COLOR_NAMES,
17548
17548
  Cf as CSSToJSEasing,
17549
17549
  Kn as Clock,
17550
17550
  yt as Color,
@@ -17552,14 +17552,14 @@ export {
17552
17552
  Cm as CommonKeyCode,
17553
17553
  xm as Confetti,
17554
17554
  cm as Cross,
17555
- qs as CustomCanvasContext,
17555
+ js as CustomCanvasContext,
17556
17556
  Ii as CustomCanvasGradient,
17557
17557
  er as CustomCanvasPattern,
17558
17558
  fu as DOMParse,
17559
17559
  Be as DOMSVGUtil,
17560
17560
  $c as DOMToBlob,
17561
17561
  yo as DOMToString,
17562
- Zs as DOMVideo,
17562
+ Js as DOMVideo,
17563
17563
  z as Easing,
17564
17564
  gu as Ellipse,
17565
17565
  go as FetchWithAxios,
@@ -17586,12 +17586,12 @@ export {
17586
17586
  $m as MVVM,
17587
17587
  Mt as Matrix,
17588
17588
  Xo as Matrix2,
17589
- us as Matrix3,
17589
+ ls as Matrix3,
17590
17590
  Ct as Matrix4,
17591
17591
  uu as NoColorSpace,
17592
17592
  Gp as Pagination,
17593
17593
  me as Point,
17594
- Ps as Point3D,
17594
+ Is as Point3D,
17595
17595
  ym as Point3Ds,
17596
17596
  pu as Points,
17597
17597
  Me as QRCode,
@@ -17603,7 +17603,7 @@ export {
17603
17603
  Ye as SRGBToLinear,
17604
17604
  Wi as SRGBTransfer,
17605
17605
  mu as SVGParse,
17606
- Es as SVGParsedPathArgsLength,
17606
+ Ps as SVGParsedPathArgsLength,
17607
17607
  um as Sector,
17608
17608
  xu as SectorArc,
17609
17609
  mm as Segment,
@@ -17614,7 +17614,7 @@ export {
17614
17614
  dm as Slider,
17615
17615
  am as Star,
17616
17616
  Tf as TWEEN,
17617
- Js as Text,
17617
+ Qs as Text,
17618
17618
  an as Timeline,
17619
17619
  yu as Tip,
17620
17620
  lm as Tree,
@@ -17623,10 +17623,10 @@ export {
17623
17623
  Jd as Uint32BufferAttribute,
17624
17624
  jd as Uint8BufferAttribute,
17625
17625
  Hd as Uint8ClampedBufferAttribute,
17626
- hi as Vector2,
17626
+ ci as Vector2,
17627
17627
  Rt as Vector3,
17628
17628
  Fo as Vector4,
17629
- Is as WebGLCoordinateSystem,
17629
+ As as WebGLCoordinateSystem,
17630
17630
  lp as WebGLRenderer,
17631
17631
  or as WebGPUCoordinateSystem,
17632
17632
  cp as WebRTCClient,
@@ -17658,7 +17658,7 @@ export {
17658
17658
  Lf as atomRemoveAttribute,
17659
17659
  zm as atomRemoveDataset,
17660
17660
  jo as atomRemoveStyle,
17661
- as as atomWriteAttribute,
17661
+ os as atomWriteAttribute,
17662
17662
  un as atomWriteStyle,
17663
17663
  au as base64EncodeOutputStream,
17664
17664
  Su as bitmapMapper,
@@ -17706,7 +17706,7 @@ export {
17706
17706
  Ql as getCSSVar,
17707
17707
  Vo as getDOMMatrix,
17708
17708
  Pf as getDirection,
17709
- ci as getDocumentElementPosition,
17709
+ li as getDocumentElementPosition,
17710
17710
  ur as getElementPositionInPage,
17711
17711
  Ff as getElementPositionInPage2,
17712
17712
  ql as getElementPositionInViewport,
@@ -17722,7 +17722,7 @@ export {
17722
17722
  _m as getKeyCode,
17723
17723
  Yu as getMIME,
17724
17724
  Ju as getMouseButton,
17725
- Qe as getMousePositionInElement,
17725
+ Je as getMousePositionInElement,
17726
17726
  fr as getMousePositionInPage,
17727
17727
  Vf as getMousePositionInViewport,
17728
17728
  on as getOperatingSystem,
@@ -17779,7 +17779,7 @@ export {
17779
17779
  Dd as marginSharpen,
17780
17780
  vf as microTask,
17781
17781
  Xd as mosaic,
17782
- rs as mount,
17782
+ ns as mount,
17783
17783
  Sf as nextTick,
17784
17784
  Ef as normalizePoint,
17785
17785
  Gc as objectSignature,
@@ -17795,7 +17795,7 @@ export {
17795
17795
  yf as prefixes,
17796
17796
  Te as preventDefault,
17797
17797
  Od as radiusClip,
17798
- oi as readFileInBrowser,
17798
+ ai as readFileInBrowser,
17799
17799
  yn as recordToSearch,
17800
17800
  zd as rectClip,
17801
17801
  Bm as removeClass,