@zyzgroup/core-web 0.0.86 → 0.0.88

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.
@@ -213,7 +213,7 @@ const pe = new us(), ws = (i) => {
213
213
  });
214
214
  return e;
215
215
  };
216
- function fa(i) {
216
+ function da(i) {
217
217
  const t = i.match(/[\s\S]/gu);
218
218
  return t ? t.length : 0;
219
219
  }
@@ -479,7 +479,7 @@ const it = [
479
479
  "fe",
480
480
  "ff"
481
481
  ];
482
- function fi() {
482
+ function di() {
483
483
  const i = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
484
484
  return (it[i & 255] + it[i >> 8 & 255] + it[i >> 16 & 255] + it[i >> 24 & 255] + "-" + it[t & 255] + it[t >> 8 & 255] + "-" + it[t >> 16 & 15 | 64] + it[t >> 24 & 255] + "-" + it[e & 63 | 128] + it[e >> 8 & 255] + "-" + it[e >> 16 & 255] + it[e >> 24 & 255] + it[s & 255] + it[s >> 8 & 255] + it[s >> 16 & 255] + it[s >> 24 & 255]).toLowerCase();
485
485
  }
@@ -606,7 +606,7 @@ function Jt(i, t) {
606
606
  }
607
607
  return i;
608
608
  }
609
- function ds(i, t, e = Number.EPSILON * Math.pow(2, 2)) {
609
+ function fs(i, t, e = Number.EPSILON * Math.pow(2, 2)) {
610
610
  return Math.abs(i - t) < e;
611
611
  }
612
612
  const q = (i, t, e) => i < t ? t : i > e ? e : i, va = (i, t, e) => (s) => {
@@ -667,7 +667,7 @@ function Ca() {
667
667
  };
668
668
  }
669
669
  var Pt = /* @__PURE__ */ ((i) => (i.UNKNOWN = "", i.HTML = "text/html", i.XHTML = "application/xhtml+xml", i.XML = "application/xml", i.XML_TEXT = "text/xml", i.TEXT = "text/plain", i.MD = "text/plain", i.JPEG = "image/jpeg", i.PNG = "image/png", i.GIF = "image/gif", i.WEBP = "image/webp", i.SVG = "image/svg+xml", i.ICO = "image/x-icon", i.MPEG = "audio/mpeg", i.MP3 = "audio/mpeg", i.MP4 = "video/mp4", i.OGG = "audio/ogg", i.WAV = "audio/wav", i.WEBM = "video/webm", i.CSS = "text/css", i.JAVASCRIPT = "application/javascript", i.ECMASCRIPT = "application/ecmascript", i.JSON = "application/json", i.XWWW = "application/x-www-form-urlencoded", i.DOC = "application/msword", i.CSV = "application/x-csv", i.EXCEL = "application/vnb.ms-excel", i.PDF = "application/pdf", i.ZIP = "application/zip", i.TGZ = "application/x-gtar", i.TAR_GZ = "application/x-gzip", i.EOT = "appliaction/vnd.ms-fontobject", i.TTF = "aplication/font-sfnt", i))(Pt || {}), Ne = /* @__PURE__ */ ((i) => (i.ascii = "ascii", i.utf8 = "utf8", i.utf16le = "utf16le", i.ucs2 = "ucs2", i.base64 = "base64", i.base64url = "base64url", i.latin1 = "latin1", i.binary = "binary", i.hex = "hex", i))(Ne || {});
670
- const de = (i, t = 16) => {
670
+ const fe = (i, t = 16) => {
671
671
  let e = i.toLowerCase();
672
672
  const s = e.indexOf("0b") == 0, n = e.indexOf("0o") == 0, r = e.indexOf("0x") == 0;
673
673
  (s || n || r) && (e = e.slice(2)), s && (t = 2), n && (t = 8), r && (t = 16);
@@ -839,7 +839,7 @@ function ka(i, t = {}) {
839
839
  function l() {
840
840
  return w(/^{\s*/);
841
841
  }
842
- function d() {
842
+ function f() {
843
843
  return w(/^}/);
844
844
  }
845
845
  function y() {
@@ -907,7 +907,7 @@ function ka(i, t = {}) {
907
907
  E(R);
908
908
  for (var I; I = x(); )
909
909
  I !== !1 && (R.push(I), E(R));
910
- return d() ? R : h("missing '}'");
910
+ return f() ? R : h("missing '}'");
911
911
  }
912
912
  function p() {
913
913
  for (var R, I = [], N = r(); R = w(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
@@ -930,7 +930,7 @@ function ka(i, t = {}) {
930
930
  return h("@keyframes missing '{'");
931
931
  for (var nt, Et = E(); nt = p(); )
932
932
  Et.push(nt), Et = Et.concat(E());
933
- return d() ? R({
933
+ return f() ? R({
934
934
  type: "keyframes",
935
935
  name: U,
936
936
  vendor: N,
@@ -945,7 +945,7 @@ function ka(i, t = {}) {
945
945
  if (!l())
946
946
  return h("@supports missing '{'");
947
947
  var U = E().concat(y());
948
- return d() ? R({
948
+ return f() ? R({
949
949
  type: "supports",
950
950
  supports: N,
951
951
  rules: U
@@ -958,7 +958,7 @@ function ka(i, t = {}) {
958
958
  if (!l())
959
959
  return h("@host missing '{'");
960
960
  var N = E().concat(y());
961
- return d() ? R({
961
+ return f() ? R({
962
962
  type: "host",
963
963
  rules: N
964
964
  }) : h("@host missing '}'");
@@ -971,7 +971,7 @@ function ka(i, t = {}) {
971
971
  if (!l())
972
972
  return h("@media missing '{'");
973
973
  var U = E().concat(y());
974
- return d() ? R({
974
+ return f() ? R({
975
975
  type: "media",
976
976
  media: N,
977
977
  rules: U
@@ -995,7 +995,7 @@ function ka(i, t = {}) {
995
995
  return h("@page missing '{'");
996
996
  for (var U = E(), nt; nt = x(); )
997
997
  U.push(nt), U = U.concat(E());
998
- return d() ? R({
998
+ return f() ? R({
999
999
  type: "page",
1000
1000
  selectors: N,
1001
1001
  declarations: U
@@ -1009,7 +1009,7 @@ function ka(i, t = {}) {
1009
1009
  if (!l())
1010
1010
  return h("@document missing '{'");
1011
1011
  var nt = E().concat(y());
1012
- return d() ? R({
1012
+ return f() ? R({
1013
1013
  type: "document",
1014
1014
  document: U,
1015
1015
  vendor: N,
@@ -1024,7 +1024,7 @@ function ka(i, t = {}) {
1024
1024
  return h("@font-face missing '{'");
1025
1025
  for (var N = E(), U; U = x(); )
1026
1026
  N.push(U), N = N.concat(E());
1027
- return d() ? R({
1027
+ return f() ? R({
1028
1028
  type: "font-face",
1029
1029
  declarations: N
1030
1030
  }) : h("@font-face missing '}'");
@@ -1242,7 +1242,7 @@ var Gn = { exports: {} };
1242
1242
  return g !== e && (S = b(g, p)), C > S ? new ArrayBuffer(0) : (F = S - C, z = new ArrayBuffer(F), G = new Uint8Array(z), $ = new Uint8Array(this, C, F), G.set($), z);
1243
1243
  };
1244
1244
  }();
1245
- function d(b) {
1245
+ function f(b) {
1246
1246
  return /[\u0080-\uFFFF]/.test(b) && (b = unescape(encodeURIComponent(b))), b;
1247
1247
  }
1248
1248
  function y(b, x) {
@@ -1268,7 +1268,7 @@ var Gn = { exports: {} };
1268
1268
  this.reset();
1269
1269
  }
1270
1270
  return P.prototype.append = function(b) {
1271
- return this.appendBinary(d(b)), this;
1271
+ return this.appendBinary(f(b)), this;
1272
1272
  }, P.prototype.appendBinary = function(b) {
1273
1273
  this._buff += b, this._length += b.length;
1274
1274
  var x = this._buff.length, g;
@@ -1299,7 +1299,7 @@ var Gn = { exports: {} };
1299
1299
  b[g] = 0;
1300
1300
  p = this._length * 8, p = p.toString(16).match(/(.*?)(.{0,8})$/), C = parseInt(p[2], 16), S = parseInt(p[1], 16) || 0, b[14] = C, b[15] = S, n(this._hash, b);
1301
1301
  }, P.hash = function(b, x) {
1302
- return P.hashBinary(d(b), x);
1302
+ return P.hashBinary(f(b), x);
1303
1303
  }, P.hashBinary = function(b, x) {
1304
1304
  var g = o(b), p = l(g);
1305
1305
  return x ? E(p) : p;
@@ -1661,16 +1661,16 @@ function Cs(i, t, e) {
1661
1661
  }
1662
1662
  return ii(m) ? !0 : (t.append(hn(P, E, r), c(m)), !1);
1663
1663
  }
1664
- const d = [], y = Object.assign(vo, {
1664
+ const f = [], y = Object.assign(vo, {
1665
1665
  defaultVisitor: l,
1666
1666
  convertValue: c,
1667
1667
  isVisitable: ii
1668
1668
  });
1669
1669
  function w(m, E) {
1670
1670
  if (!A.isUndefined(m)) {
1671
- if (d.indexOf(m) !== -1)
1671
+ if (f.indexOf(m) !== -1)
1672
1672
  throw Error("Circular reference detected in " + E.join("."));
1673
- d.push(m), A.forEach(m, function(b, x) {
1673
+ f.push(m), A.forEach(m, function(b, x) {
1674
1674
  (!(A.isUndefined(b) || b === null) && n.call(
1675
1675
  t,
1676
1676
  b,
@@ -1678,7 +1678,7 @@ function Cs(i, t, e) {
1678
1678
  E,
1679
1679
  y
1680
1680
  )) === !0 && w(b, E ? E.concat(x) : [x]);
1681
- }), d.pop();
1681
+ }), f.pop();
1682
1682
  }
1683
1683
  }
1684
1684
  if (!A.isObject(i))
@@ -1985,8 +1985,8 @@ class Es {
1985
1985
  const l = _e(h);
1986
1986
  if (!l)
1987
1987
  throw new Error("header name must be a non-empty string");
1988
- const d = A.findKey(n, l);
1989
- (!d || n[d] === void 0 || c === !0 || c === void 0 && n[d] !== !1) && (n[d || h] = cs(o));
1988
+ const f = A.findKey(n, l);
1989
+ (!f || n[f] === void 0 || c === !0 || c === void 0 && n[f] !== !1) && (n[f || h] = cs(o));
1990
1990
  }
1991
1991
  const a = (o, h) => A.forEach(o, (c, l) => r(c, l, h));
1992
1992
  return A.isPlainObject(t) || t instanceof this.constructor ? a(t, e) : A.isString(t) && (t = t.trim()) && !Fo(t) ? a(Ro(t), e) : t != null && r(e, t, s), this;
@@ -2205,16 +2205,16 @@ function qo(i, t) {
2205
2205
  return t = t !== void 0 ? t : 1e3, function(h) {
2206
2206
  const c = Date.now(), l = s[r];
2207
2207
  a || (a = c), e[n] = h, s[n] = c;
2208
- let d = r, y = 0;
2209
- for (; d !== n; )
2210
- y += e[d++], d = d % i;
2208
+ let f = r, y = 0;
2209
+ for (; f !== n; )
2210
+ y += e[f++], f = f % i;
2211
2211
  if (n = (n + 1) % i, n === r && (r = (r + 1) % i), c - a < t)
2212
2212
  return;
2213
2213
  const w = l && c - l;
2214
2214
  return w ? Math.round(y * 1e3 / w) : void 0;
2215
2215
  };
2216
2216
  }
2217
- function dn(i, t) {
2217
+ function fn(i, t) {
2218
2218
  let e = 0;
2219
2219
  const s = qo(50, 250);
2220
2220
  return (n) => {
@@ -2247,8 +2247,8 @@ const Ho = typeof XMLHttpRequest < "u", jo = Ho && function(i) {
2247
2247
  const m = i.auth.username || "", E = i.auth.password ? unescape(encodeURIComponent(i.auth.password)) : "";
2248
2248
  r.set("Authorization", "Basic " + btoa(m + ":" + E));
2249
2249
  }
2250
- const d = rr(i.baseURL, i.url);
2251
- l.open(i.method.toUpperCase(), er(d, i.params, i.paramsSerializer), !0), l.timeout = i.timeout;
2250
+ const f = rr(i.baseURL, i.url);
2251
+ l.open(i.method.toUpperCase(), er(f, i.params, i.paramsSerializer), !0), l.timeout = i.timeout;
2252
2252
  function y() {
2253
2253
  if (!l)
2254
2254
  return;
@@ -2284,15 +2284,15 @@ const Ho = typeof XMLHttpRequest < "u", jo = Ho && function(i) {
2284
2284
  l
2285
2285
  )), l = null;
2286
2286
  }, Lt.isStandardBrowserEnv) {
2287
- const m = (i.withCredentials || zo(d)) && i.xsrfCookieName && Xo.read(i.xsrfCookieName);
2287
+ const m = (i.withCredentials || zo(f)) && i.xsrfCookieName && Xo.read(i.xsrfCookieName);
2288
2288
  m && r.set(i.xsrfHeaderName, m);
2289
2289
  }
2290
2290
  n === void 0 && r.setContentType(null), "setRequestHeader" in l && A.forEach(r.toJSON(), function(E, P) {
2291
2291
  l.setRequestHeader(P, E);
2292
- }), A.isUndefined(i.withCredentials) || (l.withCredentials = !!i.withCredentials), a && a !== "json" && (l.responseType = i.responseType), typeof i.onDownloadProgress == "function" && l.addEventListener("progress", dn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", dn(i.onUploadProgress)), (i.cancelToken || i.signal) && (o = (m) => {
2292
+ }), A.isUndefined(i.withCredentials) || (l.withCredentials = !!i.withCredentials), a && a !== "json" && (l.responseType = i.responseType), typeof i.onDownloadProgress == "function" && l.addEventListener("progress", fn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", fn(i.onUploadProgress)), (i.cancelToken || i.signal) && (o = (m) => {
2293
2293
  l && (s(!m || m.type ? new Xe(null, i, l) : m), l.abort(), l = null);
2294
2294
  }, i.cancelToken && i.cancelToken.subscribe(o), i.signal && (i.signal.aborted ? o() : i.signal.addEventListener("abort", o)));
2295
- const w = Vo(d);
2295
+ const w = Vo(f);
2296
2296
  if (w && Lt.protocols.indexOf(w) === -1) {
2297
2297
  s(new X("Unsupported protocol " + w + ":", X.ERR_BAD_REQUEST, i));
2298
2298
  return;
@@ -2312,7 +2312,7 @@ A.forEach(ni, (i, t) => {
2312
2312
  Object.defineProperty(i, "adapterName", { value: t });
2313
2313
  }
2314
2314
  });
2315
- const fn = (i) => `- ${i}`, $o = (i) => A.isFunction(i) || i === null || i === !1, ar = {
2315
+ const dn = (i) => `- ${i}`, $o = (i) => A.isFunction(i) || i === null || i === !1, ar = {
2316
2316
  getAdapter: (i) => {
2317
2317
  i = A.isArray(i) ? i : [i];
2318
2318
  const { length: t } = i;
@@ -2332,8 +2332,8 @@ const fn = (i) => `- ${i}`, $o = (i) => A.isFunction(i) || i === null || i === !
2332
2332
  ([o, h]) => `adapter ${o} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
2333
2333
  );
2334
2334
  let a = t ? r.length > 1 ? `since :
2335
- ` + r.map(fn).join(`
2336
- `) : " " + fn(r[0]) : "as no adapter specified";
2335
+ ` + r.map(dn).join(`
2336
+ `) : " " + dn(r[0]) : "as no adapter specified";
2337
2337
  throw new X(
2338
2338
  "There is no suitable adapter to dispatch the request " + a,
2339
2339
  "ERR_NOT_SUPPORT"
@@ -2369,15 +2369,15 @@ const pn = (i) => i instanceof zt ? i.toJSON() : i;
2369
2369
  function ge(i, t) {
2370
2370
  t = t || {};
2371
2371
  const e = {};
2372
- function s(c, l, d) {
2373
- return A.isPlainObject(c) && A.isPlainObject(l) ? A.merge.call({ caseless: d }, c, l) : A.isPlainObject(l) ? A.merge({}, l) : A.isArray(l) ? l.slice() : l;
2372
+ function s(c, l, f) {
2373
+ return A.isPlainObject(c) && A.isPlainObject(l) ? A.merge.call({ caseless: f }, c, l) : A.isPlainObject(l) ? A.merge({}, l) : A.isArray(l) ? l.slice() : l;
2374
2374
  }
2375
- function n(c, l, d) {
2375
+ function n(c, l, f) {
2376
2376
  if (A.isUndefined(l)) {
2377
2377
  if (!A.isUndefined(c))
2378
- return s(void 0, c, d);
2378
+ return s(void 0, c, f);
2379
2379
  } else
2380
- return s(c, l, d);
2380
+ return s(c, l, f);
2381
2381
  }
2382
2382
  function r(c, l) {
2383
2383
  if (!A.isUndefined(l))
@@ -2390,10 +2390,10 @@ function ge(i, t) {
2390
2390
  } else
2391
2391
  return s(void 0, l);
2392
2392
  }
2393
- function o(c, l, d) {
2394
- if (d in t)
2393
+ function o(c, l, f) {
2394
+ if (f in t)
2395
2395
  return s(c, l);
2396
- if (d in i)
2396
+ if (f in i)
2397
2397
  return s(void 0, c);
2398
2398
  }
2399
2399
  const h = {
@@ -2427,8 +2427,8 @@ function ge(i, t) {
2427
2427
  headers: (c, l) => n(pn(c), pn(l), !0)
2428
2428
  };
2429
2429
  return A.forEach(Object.keys(Object.assign({}, i, t)), function(l) {
2430
- const d = h[l] || n, y = d(i[l], t[l], l);
2431
- A.isUndefined(y) && d !== o || (e[l] = y);
2430
+ const f = h[l] || n, y = f(i[l], t[l], l);
2431
+ A.isUndefined(y) && f !== o || (e[l] = y);
2432
2432
  }), e;
2433
2433
  }
2434
2434
  const or = "1.5.1", bi = {};
@@ -2477,7 +2477,7 @@ const ri = {
2477
2477
  assertOptions: Wo,
2478
2478
  validators: bi
2479
2479
  }, jt = ri.validators;
2480
- class fs {
2480
+ class ds {
2481
2481
  constructor(t) {
2482
2482
  this.defaults = t, this.interceptors = {
2483
2483
  request: new ln(),
@@ -2524,17 +2524,17 @@ class fs {
2524
2524
  this.interceptors.response.forEach(function(E) {
2525
2525
  c.push(E.fulfilled, E.rejected);
2526
2526
  });
2527
- let l, d = 0, y;
2527
+ let l, f = 0, y;
2528
2528
  if (!h) {
2529
2529
  const m = [mn.bind(this), void 0];
2530
- for (m.unshift.apply(m, o), m.push.apply(m, c), y = m.length, l = Promise.resolve(e); d < y; )
2531
- l = l.then(m[d++], m[d++]);
2530
+ for (m.unshift.apply(m, o), m.push.apply(m, c), y = m.length, l = Promise.resolve(e); f < y; )
2531
+ l = l.then(m[f++], m[f++]);
2532
2532
  return l;
2533
2533
  }
2534
2534
  y = o.length;
2535
2535
  let w = e;
2536
- for (d = 0; d < y; ) {
2537
- const m = o[d++], E = o[d++];
2536
+ for (f = 0; f < y; ) {
2537
+ const m = o[f++], E = o[f++];
2538
2538
  try {
2539
2539
  w = m(w);
2540
2540
  } catch (P) {
@@ -2547,8 +2547,8 @@ class fs {
2547
2547
  } catch (m) {
2548
2548
  return Promise.reject(m);
2549
2549
  }
2550
- for (d = 0, y = c.length; d < y; )
2551
- l = l.then(c[d++], c[d++]);
2550
+ for (f = 0, y = c.length; f < y; )
2551
+ l = l.then(c[f++], c[f++]);
2552
2552
  return l;
2553
2553
  }
2554
2554
  getUri(t) {
@@ -2558,7 +2558,7 @@ class fs {
2558
2558
  }
2559
2559
  }
2560
2560
  A.forEach(["delete", "get", "head", "options"], function(t) {
2561
- fs.prototype[t] = function(e, s) {
2561
+ ds.prototype[t] = function(e, s) {
2562
2562
  return this.request(ge(s || {}, {
2563
2563
  method: t,
2564
2564
  url: e,
@@ -2579,9 +2579,9 @@ A.forEach(["post", "put", "patch"], function(t) {
2579
2579
  }));
2580
2580
  };
2581
2581
  }
2582
- fs.prototype[t] = e(), fs.prototype[t + "Form"] = e(!0);
2582
+ ds.prototype[t] = e(), ds.prototype[t + "Form"] = e(!0);
2583
2583
  });
2584
- const ls = fs;
2584
+ const ls = ds;
2585
2585
  class vi {
2586
2586
  constructor(t) {
2587
2587
  if (typeof t != "function")
@@ -2967,6 +2967,8 @@ class Rc {
2967
2967
  uploadURL;
2968
2968
  // 要上传的文件
2969
2969
  file;
2970
+ // 本地文件 MD5 hash
2971
+ fileHash;
2970
2972
  // 文件切割块大小
2971
2973
  chunkSize;
2972
2974
  // 文件总切割数量
@@ -2975,8 +2977,6 @@ class Rc {
2975
2977
  currentChunk = 0;
2976
2978
  // 是否正在上传
2977
2979
  isUploading = !1;
2978
- // 是否已完成上传
2979
- isUploaded = !1;
2980
2980
  begin = 0;
2981
2981
  end = 0;
2982
2982
  timer;
@@ -2984,20 +2984,12 @@ class Rc {
2984
2984
  onTime;
2985
2985
  onProgress;
2986
2986
  onComplete;
2987
- // 本地文件 MD5 hash
2988
- fileHash;
2989
2987
  constructor(t) {
2990
2988
  this.axios = new ih({
2991
2989
  baseURL: t.baseURL,
2992
2990
  interceptor: {
2993
- request: (e) => (console.log("-- request --"), console.log(e), e),
2994
- requestError: (e) => {
2995
- console.log("-- requestError --"), console.log(e);
2996
- },
2997
- response: (e) => (console.log("-- response --"), console.log(e), e.config.url == this.uploadURL && (this.onProgress?.(this.currentChunk++, this.chunks), this.end == this.file.size ? (this.isUploading = !1, this.isUploaded = !0, this.stopTimeCount(), this.onComplete?.()) : this.isUploading && this.uploadChunk()), e),
2998
- responseError: (e) => {
2999
- console.log("-- responseError --"), console.log(e);
3000
- }
2991
+ request: (e) => e,
2992
+ response: (e) => (e.config.url == this.uploadURL && e.status == 200 && (this.onProgress?.(this.currentChunk++, this.chunks), this.end == this.file.size ? (this.isUploading = !1, this.stopTimeCount(), this.onComplete?.()) : this.isUploading && this.uploadChunk()), e)
3001
2993
  }
3002
2994
  }), this.checkURL = t.checkURL, this.uploadURL = t.uploadURL, this.file = t.file, this.chunkSize = t.chunkSize || 1 * 1024 * 1024, this.chunks = Math.ceil(this.file.size / this.chunkSize), this.onTime = t.onTime, this.onProgress = t.onProgress, this.onComplete = t.onComplete;
3003
2995
  }
@@ -3005,7 +2997,7 @@ class Rc {
3005
2997
  this.fileHash || (this.fileHash = await hh(this.file, this.chunkSize)), (await this.axios.post(this.checkURL, {
3006
2998
  fileName: this.file.name,
3007
2999
  fileHash: this.fileHash
3008
- })).isExist ? (this.isUploading = !1, this.isUploaded = !0, this.onComplete?.()) : !this.isUploading && !this.isUploaded && (this.startTimeCount(), await this.uploadChunk());
3000
+ })).isExist ? (this.isUploading = !1, this.onComplete?.()) : this.isUploading || (this.startTimeCount(), await this.uploadChunk());
3009
3001
  }
3010
3002
  pause() {
3011
3003
  this.isUploading && (this.isUploading = !1, this.stopTimeCount());
@@ -3065,11 +3057,11 @@ function Ci(i, t) {
3065
3057
  e.removeEventListener(l, h), e.addEventListener(l, c);
3066
3058
  } else
3067
3059
  o === "style" ? Object.keys(c || {}).forEach((l) => {
3068
- const d = String(c[l]).toLowerCase().includes("!important") ? "important" : "";
3060
+ const f = String(c[l]).toLowerCase().includes("!important") ? "important" : "";
3069
3061
  e.style.setProperty(
3070
3062
  mt(l),
3071
3063
  String(c[l]).replace(/!important/i, ""),
3072
- d
3064
+ f
3073
3065
  );
3074
3066
  }) : e.setAttribute(o, c);
3075
3067
  }
@@ -3322,7 +3314,7 @@ function zc(i) {
3322
3314
  y: i.clientY
3323
3315
  };
3324
3316
  }
3325
- function dh(i) {
3317
+ function fh(i) {
3326
3318
  if ("center" in i)
3327
3319
  return i.center;
3328
3320
  if (typeof i.pageX == "number" && typeof i.pageY == "number")
@@ -3339,7 +3331,7 @@ function It(i, t) {
3339
3331
  x: i.offsetX,
3340
3332
  y: i.offsetY
3341
3333
  };
3342
- const e = dh(i), s = lh(
3334
+ const e = fh(i), s = lh(
3343
3335
  t || i.target
3344
3336
  );
3345
3337
  return {
@@ -3368,7 +3360,7 @@ const Ei = () => {
3368
3360
  e && (t = e[1].replace("_", "."));
3369
3361
  }
3370
3362
  return t.toLowerCase();
3371
- }, dr = () => {
3363
+ }, fr = () => {
3372
3364
  const i = navigator.userAgent.toLowerCase();
3373
3365
  let t = "Unknown";
3374
3366
  return /opr/i.test(i) || /opera/i.test(i) ? t = "Opera" : /chrome/i.test(i) ? t = "Chrome" : /firefox/i.test(i) ? t = "Firefox" : /safari/i.test(i) ? t = "Safari" : /edge/i.test(i) ? t = "Edge" : /msie|trident/i.test(i) ? t = "IE" : /MicroMessenger/i.test(i) ? t = "Wechat" : /alipay/i.test(i) && (t = "Ali"), t.toLowerCase();
@@ -3409,20 +3401,20 @@ function jc() {
3409
3401
  function $c() {
3410
3402
  return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase();
3411
3403
  }
3412
- function fr() {
3404
+ function dr() {
3413
3405
  return Ei() === "ios";
3414
3406
  }
3415
3407
  function mr() {
3416
3408
  return Ei() === "macos";
3417
3409
  }
3418
3410
  function Wc() {
3419
- return fr() | mr();
3411
+ return dr() | mr();
3420
3412
  }
3421
- function fh() {
3413
+ function dh() {
3422
3414
  return Ei() === "android";
3423
3415
  }
3424
3416
  function Jc() {
3425
- return fr() || fh();
3417
+ return dr() || dh();
3426
3418
  }
3427
3419
  function Zc() {
3428
3420
  return typeof window == "object" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
@@ -3444,10 +3436,10 @@ function Qc() {
3444
3436
  return i && (i === 9 || i === 10);
3445
3437
  }
3446
3438
  function ph() {
3447
- return dr() === "wechat";
3439
+ return fr() === "wechat";
3448
3440
  }
3449
3441
  function gh() {
3450
- return dr() === "ali";
3442
+ return fr() === "ali";
3451
3443
  }
3452
3444
  function tl() {
3453
3445
  return ph() && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === "miniprogram";
@@ -3835,8 +3827,8 @@ class ms {
3835
3827
  })
3836
3828
  );
3837
3829
  let l = parseFloat(c[4]);
3838
- const d = this.globalAlpha;
3839
- d != null && (l *= d), e.setAttribute(
3830
+ const f = this.globalAlpha;
3831
+ f != null && (l *= f), e.setAttribute(
3840
3832
  a.svgAttr + "-opacity",
3841
3833
  "" + l
3842
3834
  );
@@ -4044,10 +4036,10 @@ class ms {
4044
4036
  this.lineTo(t, e);
4045
4037
  return;
4046
4038
  }
4047
- const l = h[0] * c[0] + h[1] * c[1], d = Math.acos(Math.abs(l)), y = this.normalize([
4039
+ const l = h[0] * c[0] + h[1] * c[1], f = Math.acos(Math.abs(l)), y = this.normalize([
4048
4040
  h[0] + c[0],
4049
4041
  h[1] + c[1]
4050
- ]), w = r / Math.sin(d / 2), m = t + w * y[0], E = e + w * y[1], P = [
4042
+ ]), w = r / Math.sin(f / 2), m = t + w * y[0], E = e + w * y[1], P = [
4051
4043
  -h[1],
4052
4044
  h[0]
4053
4045
  ], b = [c[1], -c[0]], x = function(C) {
@@ -4264,7 +4256,7 @@ class ms {
4264
4256
  if (n === r)
4265
4257
  return;
4266
4258
  n = n % (2 * Math.PI), r = r % (2 * Math.PI), n === r && (r = (r + 2 * Math.PI - 1e-3 * (a ? -1 : 1)) % (2 * Math.PI));
4267
- const o = t + s * Math.cos(r), h = e + s * Math.sin(r), c = t + s * Math.cos(n), l = e + s * Math.sin(n), d = a ? 0 : 1;
4259
+ const o = t + s * Math.cos(r), h = e + s * Math.sin(r), c = t + s * Math.cos(n), l = e + s * Math.sin(n), f = a ? 0 : 1;
4268
4260
  let y = 0, w = r - n;
4269
4261
  w < 0 && (w += 2 * Math.PI), a ? y = w > Math.PI ? 0 : 1 : y = w > Math.PI ? 1 : 0, this.lineTo(c, l), this.__addPathCommand(
4270
4262
  at(
@@ -4274,7 +4266,7 @@ class ms {
4274
4266
  ry: s,
4275
4267
  xAxisRotation: 0,
4276
4268
  largeArcFlag: y,
4277
- sweepFlag: d,
4269
+ sweepFlag: f,
4278
4270
  endX: o,
4279
4271
  endY: h
4280
4272
  }
@@ -4294,7 +4286,7 @@ class ms {
4294
4286
  * http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage
4295
4287
  */
4296
4288
  drawImage(...t) {
4297
- let e = t[0], s, n, r, a, o = 0, h = 0, c, l, d, y, w, m, E, P;
4289
+ let e = t[0], s, n, r, a, o = 0, h = 0, c, l, f, y, w, m, E, P;
4298
4290
  if (t.length === 3)
4299
4291
  s = t[1], n = t[2], c = e.width, l = e.height, r = c, a = l;
4300
4292
  else if (t.length === 5)
@@ -4309,10 +4301,10 @@ class ms {
4309
4301
  this.__currentElement;
4310
4302
  const x = "translate(" + s + ", " + n + ")";
4311
4303
  if (e instanceof ms) {
4312
- if (d = e.getSvg().cloneNode(!0), d.childNodes && d.childNodes.length > 1) {
4313
- for (y = d.childNodes[0]; y.childNodes.length; )
4304
+ if (f = e.getSvg().cloneNode(!0), f.childNodes && f.childNodes.length > 1) {
4305
+ for (y = f.childNodes[0]; y.childNodes.length; )
4314
4306
  P = y.childNodes[0].getAttribute("id"), this.__ids[P] = P, this.__SVGdefs.appendChild(y.childNodes[0]);
4315
- if (w = d.childNodes[1], w) {
4307
+ if (w = f.childNodes[1], w) {
4316
4308
  const g = w.getAttribute("transform");
4317
4309
  let p;
4318
4310
  g ? p = g + " " + x : p = x, w.setAttribute("transform", p), b.appendChild(w);
@@ -4701,8 +4693,8 @@ class Ps {
4701
4693
  return { x: n, y: h * (n - e) + s };
4702
4694
  } else
4703
4695
  return { x: e, y: c * (e - n) + r };
4704
- const l = (-c * n + r + h * e - s) / (h - c), d = h * (l - e) + s;
4705
- return isNaN(l) || isNaN(d) ? null : { x: l, y: d };
4696
+ const l = (-c * n + r + h * e - s) / (h - c), f = h * (l - e) + s;
4697
+ return isNaN(l) || isNaN(f) ? null : { x: l, y: f };
4706
4698
  }
4707
4699
  }
4708
4700
  const bn = Ps;
@@ -4759,7 +4751,7 @@ class hi extends Ps {
4759
4751
  );
4760
4752
  }
4761
4753
  convert(t, e, s, n, r, a, o, h, c) {
4762
- const l = o / 180 * Math.PI, d = (t - s) / 2, y = (e - n) / 2, w = Math.cos(l) * d + Math.sin(l) * y, m = -Math.sin(l) * d + Math.cos(l) * y, E = w * w / (r * r) + m * m / (a * a);
4754
+ const l = o / 180 * Math.PI, f = (t - s) / 2, y = (e - n) / 2, w = Math.cos(l) * f + Math.sin(l) * y, m = -Math.sin(l) * f + Math.cos(l) * y, E = w * w / (r * r) + m * m / (a * a);
4763
4755
  if (E > 1) {
4764
4756
  const W = Math.sqrt(E);
4765
4757
  throw r = W * r, a = W * a, new Error(
@@ -4848,9 +4840,9 @@ class ut extends Ps {
4848
4840
  let h;
4849
4841
  const c = [];
4850
4842
  Math.abs(n) > 1e12 && (n = 0.5), Math.abs(r) > 1e12 && (r = 0.5), n >= 0 && n <= 1 && (h = this.interpolate(n), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y })), r >= 0 && r <= 1 && (h = this.interpolate(r), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y })), t = this.c2y - 2 * this.c1y + this.y - (this.toY - 2 * this.c2y + this.c1y), e = 2 * (this.c1y - this.y) - 2 * (this.c2y - this.c1y), s = this.y - this.c1y, n = (-e + Math.sqrt(e * e - 4 * t * s)) / 2 / t, r = (-e - Math.sqrt(e * e - 4 * t * s)) / 2 / t, Math.abs(n) > 1e12 && (n = 0.5), Math.abs(r) > 1e12 && (r = 0.5), n >= 0 && n <= 1 && (h = this.interpolate(n), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y })), r >= 0 && r <= 1 && (h = this.interpolate(r), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y }));
4851
- let l = [], d = c.length;
4852
- for (let m = 0; m < d; m++) {
4853
- for (let E = m + 1; E < d; E++)
4843
+ let l = [], f = c.length;
4844
+ for (let m = 0; m < f; m++) {
4845
+ for (let E = m + 1; E < f; E++)
4854
4846
  c[m].X === c[E].X && c[m].Y === c[E].Y && (E = ++m);
4855
4847
  l.push({ X: c[m].X, Y: c[m].Y });
4856
4848
  }
@@ -4882,7 +4874,7 @@ class ut extends Ps {
4882
4874
  */
4883
4875
  static bezlen(t, e, s, n, r, a, o, h, c = 1) {
4884
4876
  c = Math.max(0, Math.min(c, 1));
4885
- const l = c / 2, d = [
4877
+ const l = c / 2, f = [
4886
4878
  -0.1252,
4887
4879
  0.1252,
4888
4880
  -0.3678,
@@ -4911,7 +4903,7 @@ class ut extends Ps {
4911
4903
  ];
4912
4904
  let w = 0;
4913
4905
  for (let m = 0; m < 12; m++) {
4914
- const E = l * d[m] + l, P = this.base3(E, t, s, r, o), b = this.base3(E, e, n, a, h);
4906
+ const E = l * f[m] + l, P = this.base3(E, t, s, r, o), b = this.base3(E, e, n, a, h);
4915
4907
  w += y[m] * Math.sqrt(P * P + b * b);
4916
4908
  }
4917
4909
  return l * w;
@@ -4934,15 +4926,15 @@ class ut extends Ps {
4934
4926
  const e = this.x, s = this.y, n = this.c1x, r = this.c1y, a = this.c2x, o = this.c2y, h = this.toX, c = this.toY;
4935
4927
  if (t < 0 || ut.bezlen(e, s, n, r, a, o, h, c) < t)
4936
4928
  return 0;
4937
- let l = 1, d = l / 2, y = l - d, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4929
+ let l = 1, f = l / 2, y = l - f, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4938
4930
  for (; Math.abs(w - t) > 0.01; )
4939
- d /= 2, y += (w < t ? 1 : -1) * d, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4931
+ f /= 2, y += (w < t ? 1 : -1) * f, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4940
4932
  return y;
4941
4933
  }
4942
4934
  /// Find dot coordinates on the given cubic bezier curve at the given t
4943
4935
  getPointAtSegmentLength(t) {
4944
4936
  const e = this.getTatLen(t);
4945
- let s = 1 - e, n = Math.pow(s, 3), r = Math.pow(s, 2), a = e * e, o = a * e, h = n * this.x + r * 3 * e * this.c1x + s * 3 * e * e * this.c2x + o * this.toX, c = n * this.y + r * 3 * e * this.c1y + s * 3 * e * e * this.c2y + o * this.toY, l = this.x + 2 * e * (this.c1x - this.x) + a * (this.c2x - 2 * this.c1x + this.x), d = this.y + 2 * e * (this.c1y - this.y) + a * (this.c2y - 2 * this.c1y + this.y), y = this.c1x + 2 * e * (this.c2x - this.c1x) + a * (this.toX - 2 * this.c2x + this.c1x), w = this.c1y + 2 * e * (this.c2y - this.c1y) + a * (this.toY - 2 * this.c2y + this.c1y), m = s * this.x + e * this.c1x, E = s * this.y + e * this.c1y, P = s * this.c2x + e * this.toX, b = s * this.c2y + e * this.toY, x = 90 - Math.atan2(l - y, d - w) * 180 / Math.PI;
4937
+ let s = 1 - e, n = Math.pow(s, 3), r = Math.pow(s, 2), a = e * e, o = a * e, h = n * this.x + r * 3 * e * this.c1x + s * 3 * e * e * this.c2x + o * this.toX, c = n * this.y + r * 3 * e * this.c1y + s * 3 * e * e * this.c2y + o * this.toY, l = this.x + 2 * e * (this.c1x - this.x) + a * (this.c2x - 2 * this.c1x + this.x), f = this.y + 2 * e * (this.c1y - this.y) + a * (this.c2y - 2 * this.c1y + this.y), y = this.c1x + 2 * e * (this.c2x - this.c1x) + a * (this.toX - 2 * this.c2x + this.c1x), w = this.c1y + 2 * e * (this.c2y - this.c1y) + a * (this.toY - 2 * this.c2y + this.c1y), m = s * this.x + e * this.c1x, E = s * this.y + e * this.c1y, P = s * this.c2x + e * this.toX, b = s * this.c2y + e * this.toY, x = 90 - Math.atan2(l - y, f - w) * 180 / Math.PI;
4946
4938
  return {
4947
4939
  x: h,
4948
4940
  // x coordinate of the point
@@ -4951,7 +4943,7 @@ class ut extends Ps {
4951
4943
  m: {
4952
4944
  x: l,
4953
4945
  // x coordinate of the left anchor
4954
- y: d
4946
+ y: f
4955
4947
  // y coordinate of the left anchor
4956
4948
  },
4957
4949
  n: {
@@ -4984,10 +4976,10 @@ function vn(i, t, e, s) {
4984
4976
  return r > 1 && (r = 1), r < -1 && (r = -1), n * Math.acos(r);
4985
4977
  }
4986
4978
  function Th(i, t, e, s, n, r, a, o, h, c) {
4987
- const l = c * (i - e) / 2 + h * (t - s) / 2, d = -h * (i - e) / 2 + c * (t - s) / 2, y = a * a, w = o * o, m = l * l, E = d * d;
4979
+ const l = c * (i - e) / 2 + h * (t - s) / 2, f = -h * (i - e) / 2 + c * (t - s) / 2, y = a * a, w = o * o, m = l * l, E = f * f;
4988
4980
  let P = y * w - y * E - w * m;
4989
4981
  P < 0 && (P = 0), P /= y * E + w * m, P = Math.sqrt(P) * (n === r ? -1 : 1);
4990
- const b = P * a / o * d, x = P * -o / a * l, g = c * b - h * x + (i + e) / 2, p = h * b + c * x + (t + s) / 2, C = (l - b) / a, S = (d - x) / o, F = (-l - b) / a, z = (-d - x) / o, G = vn(1, 0, C, S);
4982
+ const b = P * a / o * f, x = P * -o / a * l, g = c * b - h * x + (i + e) / 2, p = h * b + c * x + (t + s) / 2, C = (l - b) / a, S = (f - x) / o, F = (-l - b) / a, z = (-f - x) / o, G = vn(1, 0, C, S);
4991
4983
  let $ = vn(C, S, F, z);
4992
4984
  return r === 0 && $ > 0 && ($ -= Oe), r === 1 && $ < 0 && ($ += Oe), [g, p, G, $];
4993
4985
  }
@@ -5005,13 +4997,13 @@ function Ph(i, t) {
5005
4997
  ];
5006
4998
  }
5007
4999
  function pr(i, t, e, s, n, r, a, o, h) {
5008
- const c = Math.sin(h * Oe / 360), l = Math.cos(h * Oe / 360), d = l * (i - e) / 2 + c * (t - s) / 2, y = -c * (i - e) / 2 + l * (t - s) / 2;
5009
- if (d === 0 && y === 0)
5000
+ const c = Math.sin(h * Oe / 360), l = Math.cos(h * Oe / 360), f = l * (i - e) / 2 + c * (t - s) / 2, y = -c * (i - e) / 2 + l * (t - s) / 2;
5001
+ if (f === 0 && y === 0)
5010
5002
  return [];
5011
5003
  if (a === 0 || o === 0)
5012
5004
  return [];
5013
5005
  a = Math.abs(a), o = Math.abs(o);
5014
- const w = d * d / (a * a) + y * y / (o * o);
5006
+ const w = f * f / (a * a) + y * y / (o * o);
5015
5007
  w > 1 && (a *= Math.sqrt(w), o *= Math.sqrt(w));
5016
5008
  const m = Th(i, t, e, s, n, r, a, o, c, l), E = [];
5017
5009
  let P = m[2], b = m[3];
@@ -5065,7 +5057,7 @@ const ss = {
5065
5057
  // Z
5066
5058
  // r: 4
5067
5059
  };
5068
- class fe {
5060
+ class de {
5069
5061
  static createSVGElement(t = "path", e) {
5070
5062
  const s = document.createElementNS.call(
5071
5063
  document,
@@ -5075,7 +5067,7 @@ class fe {
5075
5067
  return e && k.attribute(s, e), s;
5076
5068
  }
5077
5069
  static createSvgPath(t, e) {
5078
- return this.createSVGElement("path", { d: t, id: e || fi() });
5070
+ return this.createSVGElement("path", { d: t, id: e || di() });
5079
5071
  }
5080
5072
  static downloadFromSVGElement(t, e = "shape") {
5081
5073
  return yn(
@@ -5116,7 +5108,7 @@ class fe {
5116
5108
  /// parse an svg path data string to `[[command, arg1, arg2, ...], ...]`
5117
5109
  static parseSVGPath(t) {
5118
5110
  const e = [];
5119
- return fe.isSVGPath(t) && t.replace(
5111
+ return de.isSVGPath(t) && t.replace(
5120
5112
  /([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,
5121
5113
  (s, n, r) => {
5122
5114
  let a = n.toLowerCase();
@@ -5219,7 +5211,7 @@ class fe {
5219
5211
  /// https://github.com/jkroso/normalize-svg-path
5220
5212
  static normalizeSVGPath(t) {
5221
5213
  const e = [];
5222
- let s = 0, n = 0, r = 0, a = 0, o = 0, h = 0, c = 0, l = 0, d;
5214
+ let s = 0, n = 0, r = 0, a = 0, o = 0, h = 0, c = 0, l = 0, f;
5223
5215
  for (let y = 0, w = t.length; y < w; y++) {
5224
5216
  let m = t[y];
5225
5217
  const E = m[0];
@@ -5248,10 +5240,10 @@ class fe {
5248
5240
  break;
5249
5241
  case "S":
5250
5242
  let b = r, x = a;
5251
- (d == "C" || d == "S") && (b += b - c, x += x - l), m = ["C", b, x, m[1], m[2], m[3], m[4]];
5243
+ (f == "C" || f == "S") && (b += b - c, x += x - l), m = ["C", b, x, m[1], m[2], m[3], m[4]];
5252
5244
  break;
5253
5245
  case "T":
5254
- d == "Q" || d == "T" ? (o = r * 2 - o, h = a * 2 - h) : (o = r, h = a), m = ["C", ...ci(r, a, o, h, m[1], m[2])];
5246
+ f == "Q" || f == "T" ? (o = r * 2 - o, h = a * 2 - h) : (o = r, h = a), m = ["C", ...ci(r, a, o, h, m[1], m[2])];
5255
5247
  break;
5256
5248
  case "Q":
5257
5249
  o = m[1], h = m[2], m = ["C", ...ci(r, a, m[1], m[2], m[3], m[4])];
@@ -5269,7 +5261,7 @@ class fe {
5269
5261
  m = ["C", ...Me(r, a, s, n)];
5270
5262
  break;
5271
5263
  }
5272
- d = E, r = m[m.length - 2], a = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], l = m[m.length - 3]) : (c = r, l = a), e.push(m);
5264
+ f = E, r = m[m.length - 2], a = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], l = m[m.length - 3]) : (c = r, l = a), e.push(m);
5273
5265
  }
5274
5266
  return e;
5275
5267
  }
@@ -5359,7 +5351,7 @@ class fe {
5359
5351
  return t;
5360
5352
  }
5361
5353
  }
5362
- const gt = fe;
5354
+ const gt = de;
5363
5355
  class xt {
5364
5356
  /// cX cY 为相对于自身 (0,0) 点的相对值
5365
5357
  cX;
@@ -5465,7 +5457,7 @@ class xt {
5465
5457
  t.ry,
5466
5458
  t.xAxisRotate
5467
5459
  ).forEach((c) => {
5468
- const [l, d, y, w, m, E, P, b] = c;
5460
+ const [l, f, y, w, m, E, P, b] = c;
5469
5461
  this.normalizedLines.push(
5470
5462
  new ut({
5471
5463
  x: this.prevPathX,
@@ -5545,7 +5537,7 @@ class xt {
5545
5537
  this.cX = typeof t.cX == "number" ? t.cX : this.cX, this.cY = typeof t.cY == "number" ? t.cY : this.cY, this.x = t.x, this.y = t.y, this.degree = t.degree, this.scalarX = t.scalarX, this.scalarY = t.scalarY;
5546
5538
  }
5547
5539
  updateTransform() {
5548
- const t = new ft();
5540
+ const t = new dt();
5549
5541
  if (t.translate(this.x + this.cX, this.y + this.cY), t.rotate(this.degree), t.scale(this.scalarX, this.scalarY), t.translate(-this.cX, -this.cY), t.isIdentity)
5550
5542
  return {
5551
5543
  startPathX: this.startPathX,
@@ -5560,9 +5552,9 @@ class xt {
5560
5552
  }));
5561
5553
  const n = [];
5562
5554
  return this.normalizedLines.forEach((r) => {
5563
- let a = r.x, o = r.y, h = r.c1x, c = r.c1y, l = r.c2x, d = r.c2y, y = r.toX, w = r.toY;
5564
- ({ x: a, y: o } = t.transformPoint({ x: a, y: o })), { x: h, y: c } = t.transformPoint({ x: h, y: c }), { x: l, y: d } = t.transformPoint({ x: l, y: d }), { x: y, y: w } = t.transformPoint({ x: y, y: w }), n.push(
5565
- new ut({ x: a, y: o, c1x: h, c1y: c, c2x: l, c2y: d, toX: y, toY: w })
5555
+ let a = r.x, o = r.y, h = r.c1x, c = r.c1y, l = r.c2x, f = r.c2y, y = r.toX, w = r.toY;
5556
+ ({ x: a, y: o } = t.transformPoint({ x: a, y: o })), { x: h, y: c } = t.transformPoint({ x: h, y: c }), { x: l, y: f } = t.transformPoint({ x: l, y: f }), { x: y, y: w } = t.transformPoint({ x: y, y: w }), n.push(
5557
+ new ut({ x: a, y: o, c1x: h, c1y: c, c2x: l, c2y: f, toX: y, toY: w })
5566
5558
  );
5567
5559
  }), {
5568
5560
  startPathX: e,
@@ -5618,7 +5610,7 @@ class xt {
5618
5610
  let o = null, h = 0;
5619
5611
  const c = new xt();
5620
5612
  c.prevPathX = c.startPathX = n, c.prevPathY = c.startPathY = r;
5621
- for (let l = 0, d = a.length; l < d; l++) {
5613
+ for (let l = 0, f = a.length; l < f; l++) {
5622
5614
  const y = a[l], w = y.length();
5623
5615
  if (h + w > e && !o) {
5624
5616
  const m = y.getPointAtSegmentLength(e - h);
@@ -5654,12 +5646,12 @@ class xt {
5654
5646
  const s = this.getTotalLength();
5655
5647
  let n = { x: t, y: e }, r = 0, a = 1 / 0, o = 8;
5656
5648
  for (let c = 0; c <= s; c += o) {
5657
- let l = this.getPointAtLength(c), d = Vs(l.x, l.y, t, e);
5658
- d < a && (n = l, r = c, a = d);
5649
+ let l = this.getPointAtLength(c), f = Vs(l.x, l.y, t, e);
5650
+ f < a && (n = l, r = c, a = f);
5659
5651
  }
5660
5652
  for (o /= 2; o > 0.5; ) {
5661
- let c = r - o, l = this.getPointAtLength(c), d = Vs(l.x, l.y, t, e), y = r + o, w = this.getPointAtLength(y), m = Vs(w.x, w.y, t, e);
5662
- c >= 0 && d < a ? (n = l, r = c, a = d) : y <= s && m < a ? (n = w, r = y, a = m) : o /= 2;
5653
+ let c = r - o, l = this.getPointAtLength(c), f = Vs(l.x, l.y, t, e), y = r + o, w = this.getPointAtLength(y), m = Vs(w.x, w.y, t, e);
5654
+ c >= 0 && f < a ? (n = l, r = c, a = f) : y <= s && m < a ? (n = w, r = y, a = m) : o /= 2;
5663
5655
  }
5664
5656
  const h = this.getPointAtLength(
5665
5657
  r + (r === s ? -0.1 : 0.1)
@@ -5693,8 +5685,8 @@ class xt {
5693
5685
  a.push(["M", e[0], e[1]]);
5694
5686
  let o = 2;
5695
5687
  for (; o + 5 <= s - 1; ) {
5696
- const h = e[o++], c = e[o++], l = e[o++], d = e[o++], y = e[o++], w = e[o++];
5697
- a.push(["C", h, c, l, d, y, w]);
5688
+ const h = e[o++], c = e[o++], l = e[o++], f = e[o++], y = e[o++], w = e[o++];
5689
+ a.push(["C", h, c, l, f, y, w]);
5698
5690
  let m = 0;
5699
5691
  for (; m < r && n > 0; )
5700
5692
  a.push(["C", y, w, y, w, y, w]), n -= 6, m++;
@@ -5763,7 +5755,7 @@ function ul(i, t = 0) {
5763
5755
  e = !0;
5764
5756
  };
5765
5757
  }
5766
- function dl(i, t = 20) {
5758
+ function fl(i, t = 20) {
5767
5759
  const e = 1e3 / t;
5768
5760
  let s = 0, n;
5769
5761
  return () => (Z() - s >= e && (s = Z(), n = i()), n);
@@ -5810,7 +5802,7 @@ function Mh(i) {
5810
5802
  e < $t && re < $t ? (e < 8 && (e = 8), $t = e < re ? re : e) : e > $t && re > $t ? $t = e < re ? re : e : re = e, ps = t + $t, Dh.postMessage(null);
5811
5803
  });
5812
5804
  }
5813
- function fl(i) {
5805
+ function dl(i) {
5814
5806
  return cancelAnimationFrame(i);
5815
5807
  }
5816
5808
  function ml(i) {
@@ -6122,8 +6114,8 @@ function Cr(i, t, e, s) {
6122
6114
  for (; h !== c && n[h] <= a; ++h)
6123
6115
  o += is;
6124
6116
  --h;
6125
- const l = (a - n[h]) / (n[h + 1] - n[h]), d = o + l * is, y = Sr(d, i, e);
6126
- return y >= Lh ? Yh(a, d, i, e) : y === 0 ? d : Nh(
6117
+ const l = (a - n[h]) / (n[h + 1] - n[h]), f = o + l * is, y = Sr(f, i, e);
6118
+ return y >= Lh ? Yh(a, f, i, e) : y === 0 ? f : Nh(
6127
6119
  a,
6128
6120
  o,
6129
6121
  o + is,
@@ -6671,7 +6663,7 @@ class V extends pi {
6671
6663
  parent;
6672
6664
  shapes = [];
6673
6665
  constructor(t) {
6674
- if (super(), this.id = fi(), t?.d && (this.originD = t?.d), t?.originMatrix && (this.originMatrix = t.originMatrix), this.independentTransformInGroup = typeof t?.independentTransformInGroup == "boolean" ? t.independentTransformInGroup : !1, this.x = t?.x || 0, this.y = t?.y || 0, this.cX = 0, this.cY = 0, typeof t?.centerX == "number" && typeof t?.centerY == "number" && this.forceSetCXY(t.centerX - this.x, t.centerY - this.y), this.degree = t?.degree || 0, this.scalarX = 1, this.scalarY = 1, t?.scalar !== void 0 && (this.scalarX = t.scalar, this.scalarY = t.scalar), t?.scalarX !== void 0 && (this.scalarX = t.scalarX), t?.scalarY !== void 0 && (this.scalarY = t.scalarY), this.diffXInGroup = t?.diffXInGroup || 0, this.diffYInGroup = t?.diffYInGroup || 0, this.diffDegreeInGroup = t?.diffDegreeInGroup || 0, this.diffScalarXInGroup = t?.diffScalarXInGroup || 1, this.diffScalarYInGroup = t?.diffScalarYInGroup || 1, this.vx = t?.vx || 0, this.vy = t?.vy || 0, this.ax = t?.ax || 0, this.ay = t?.ay || 0, this.mass = t?.mass || 1, this.attrs = {
6666
+ if (super(), this.id = di(), t?.d && (this.originD = t?.d), t?.originMatrix && (this.originMatrix = t.originMatrix), this.independentTransformInGroup = typeof t?.independentTransformInGroup == "boolean" ? t.independentTransformInGroup : !1, this.x = t?.x || 0, this.y = t?.y || 0, this.cX = 0, this.cY = 0, typeof t?.centerX == "number" && typeof t?.centerY == "number" && this.forceSetCXY(t.centerX - this.x, t.centerY - this.y), this.degree = t?.degree || 0, this.scalarX = 1, this.scalarY = 1, t?.scalar !== void 0 && (this.scalarX = t.scalar, this.scalarY = t.scalar), t?.scalarX !== void 0 && (this.scalarX = t.scalarX), t?.scalarY !== void 0 && (this.scalarY = t.scalarY), this.diffXInGroup = t?.diffXInGroup || 0, this.diffYInGroup = t?.diffYInGroup || 0, this.diffDegreeInGroup = t?.diffDegreeInGroup || 0, this.diffScalarXInGroup = t?.diffScalarXInGroup || 1, this.diffScalarYInGroup = t?.diffScalarYInGroup || 1, this.vx = t?.vx || 0, this.vy = t?.vy || 0, this.ax = t?.ax || 0, this.ay = t?.ay || 0, this.mass = t?.mass || 1, this.attrs = {
6675
6667
  // "paint-order": "markers stroke fill", // 先 stroke 再 fill
6676
6668
  // "paint-order": "fill stroke markers", // default
6677
6669
  stroke: "none",
@@ -6758,10 +6750,10 @@ class V extends pi {
6758
6750
  if (!t)
6759
6751
  return;
6760
6752
  this.shapes.forEach((s) => {
6761
- const n = s.originMatrix ? s.originMatrix.clone() : new ft();
6753
+ const n = s.originMatrix ? s.originMatrix.clone() : new dt();
6762
6754
  n.translate(-t.x + s.x, -t.y + s.y), s.originMatrix = n;
6763
6755
  });
6764
- const e = this.originMatrix ? this.originMatrix.clone() : new ft();
6756
+ const e = this.originMatrix ? this.originMatrix.clone() : new dt();
6765
6757
  e.translate(-t.x + this.x, -t.y + this.y), this.originMatrix = e;
6766
6758
  }
6767
6759
  isPointInPath(t, e, s) {
@@ -7046,7 +7038,7 @@ const En = [1, 0, 0, 1, 0, 0], Tn = [
7046
7038
  0,
7047
7039
  1
7048
7040
  ];
7049
- class ft {
7041
+ class dt {
7050
7042
  value;
7051
7043
  _m13 = 0;
7052
7044
  _m23 = 0;
@@ -7057,7 +7049,7 @@ class ft {
7057
7049
  }
7058
7050
  // matrix(1, 0, 0, 1, -50, -50)
7059
7051
  static fromString(t) {
7060
- const e = new ft(), s = Rn("number", t);
7052
+ const e = new dt(), s = Rn("number", t);
7061
7053
  return s.length === 6 && s.forEach((n, r) => {
7062
7054
  n.fullMatch && (e.value[r] = parseFloat(n.fullMatch));
7063
7055
  }), e;
@@ -7159,10 +7151,10 @@ class ft {
7159
7151
  };
7160
7152
  }
7161
7153
  clone() {
7162
- return new ft([...this.value]);
7154
+ return new dt([...this.value]);
7163
7155
  }
7164
7156
  multiply(t) {
7165
- const e = this.clone(), s = t instanceof ft ? t : new ft(t);
7157
+ const e = this.clone(), s = t instanceof dt ? t : new dt(t);
7166
7158
  return this.m11 = s.m11 * e.m11 + s.m12 * e.m21 + s.m13 * e.m31, this.m12 = s.m11 * e.m12 + s.m12 * e.m22 + s.m13 * e.m32, this.m13 = s.m11 * e.m13 + s.m12 * e.m23 + s.m13 * e.m33, this.m21 = s.m21 * e.m11 + s.m22 * e.m21 + s.m23 * e.m31, this.m22 = s.m21 * e.m12 + s.m22 * e.m22 + s.m23 * e.m32, this.m23 = s.m21 * e.m13 + s.m22 * e.m23 + s.m23 * e.m33, this.m31 = s.m31 * e.m11 + s.m32 * e.m21 + s.m33 * e.m31, this.m32 = s.m31 * e.m12 + s.m32 * e.m22 + s.m33 * e.m32, this.m33 = s.m31 * e.m13 + s.m32 * e.m23 + s.m33 * e.m33, this;
7167
7159
  }
7168
7160
  append(t) {
@@ -7172,12 +7164,12 @@ class ft {
7172
7164
  return t.multiply(this), this;
7173
7165
  }
7174
7166
  inverse() {
7175
- const t = this.m11, e = this.m12, s = this.m13, n = this.m21, r = this.m22, a = this.m23, o = this.m31, h = this.m32, c = this.m33, l = c * r - a * h, d = -c * n + a * o, y = h * n - r * o;
7176
- let w = t * l + e * d + s * y;
7177
- return w ? (w = 1 / w, this.m11 = l * w, this.m12 = (-c * e + s * h) * w, this.m13 = (a * e - s * r) * w, this.m21 = d * w, this.m22 = (c * t - s * o) * w, this.m23 = (-a * t + s * n) * w, this.m31 = y * w, this.m32 = (-h * t + e * o) * w, this.m33 = (r * t - e * n) * w, this) : null;
7167
+ const t = this.m11, e = this.m12, s = this.m13, n = this.m21, r = this.m22, a = this.m23, o = this.m31, h = this.m32, c = this.m33, l = c * r - a * h, f = -c * n + a * o, y = h * n - r * o;
7168
+ let w = t * l + e * f + s * y;
7169
+ return w ? (w = 1 / w, this.m11 = l * w, this.m12 = (-c * e + s * h) * w, this.m13 = (a * e - s * r) * w, this.m21 = f * w, this.m22 = (c * t - s * o) * w, this.m23 = (-a * t + s * n) * w, this.m31 = y * w, this.m32 = (-h * t + e * o) * w, this.m33 = (r * t - e * n) * w, this) : null;
7178
7170
  }
7179
7171
  adjugate() {
7180
- const t = new ft();
7172
+ const t = new dt();
7181
7173
  return t.m11 = this.m22 * this.m33 - this.m32 * this.m23, t.m12 = this.m32 * this.m13 - this.m12 * this.m33, t.m13 = this.m12 * this.m23 - this.m22 * this.m13, t.m21 = this.m31 * this.m23 - this.m21 * this.m33, t.m22 = this.m11 * this.m33 - this.m31 * this.m13, t.m23 = this.m21 * this.m13 - this.m11 * this.m23, t.m31 = this.m21 * this.m32 - this.m31 * this.m22, t.m32 = this.m31 * this.m12 - this.m11 * this.m32, t.m33 = this.m11 * this.m22 - this.m21 * this.m12, t;
7182
7174
  }
7183
7175
  split() {
@@ -7193,8 +7185,8 @@ class ft {
7193
7185
  };
7194
7186
  }
7195
7187
  getGroupCoords(t) {
7196
- const e = this.value[0], s = this.value[1], n = this.value[2], r = this.value[3], a = this.value[4], o = this.value[5], h = t.value[0], c = t.value[1], l = t.value[2], d = t.value[3], y = t.value[4], w = t.value[5], m = h * d, E = c * l, P = (l * s - e * d) / (E - m), b = (h * s - e * c) / (m - E), x = (l * r - n * d) / (E - m), g = (h * r - n * c) / (m - E), p = (l * (o - w) + d * (y - a)) / (E - m), C = (h * (o - w) + c * (y - a)) / (m - E), S = [P, b, x, g, p, C];
7197
- return new ft(S);
7188
+ const e = this.value[0], s = this.value[1], n = this.value[2], r = this.value[3], a = this.value[4], o = this.value[5], h = t.value[0], c = t.value[1], l = t.value[2], f = t.value[3], y = t.value[4], w = t.value[5], m = h * f, E = c * l, P = (l * s - e * f) / (E - m), b = (h * s - e * c) / (m - E), x = (l * r - n * f) / (E - m), g = (h * r - n * c) / (m - E), p = (l * (o - w) + f * (y - a)) / (E - m), C = (h * (o - w) + c * (y - a)) / (m - E), S = [P, b, x, g, p, C];
7189
+ return new dt(S);
7198
7190
  }
7199
7191
  toString(t = 6) {
7200
7192
  return this.matrix3d.is2D() ? `matrix(${this.value.map((e) => Rt(e, t)).join(",")})` : this.matrix3d.toString();
@@ -7513,7 +7505,7 @@ class yt {
7513
7505
  }
7514
7506
  toMatrix(t) {
7515
7507
  const { scalarX: e, scalarY: s, skewX: n, skewY: r, x: a, y: o } = this.split(), h = [e, r, n, s, a, o];
7516
- return t ? (t.value = h, t) : new ft(h);
7508
+ return t ? (t.value = h, t) : new dt(h);
7517
7509
  }
7518
7510
  flatten() {
7519
7511
  return this.m31 = 0, this.m32 = 0, this.m33 = 1, this.m34 = 0, this.m14 = 0, this.m24 = 0, this.m43 = 0, this.m44 = 1, this;
@@ -7555,12 +7547,12 @@ class yt {
7555
7547
  * -> based on https://github.com/mrdoob/three.js/blob/master/src/math/Matrix4.js
7556
7548
  */
7557
7549
  inverse() {
7558
- const t = [], e = this.m11, s = this.m12, n = this.m13, r = this.m14, a = this.m21, o = this.m22, h = this.m23, c = this.m24, l = this.m31, d = this.m32, y = this.m33, w = this.m34, m = this.m41, E = this.m42, P = this.m43, b = this.m44;
7559
- t[0] = h * w * E - c * y * E + c * d * P - o * w * P - h * d * b + o * y * b, t[1] = r * y * E - n * w * E - r * d * P + s * w * P + n * d * b - s * y * b, t[2] = n * c * E - r * h * E + r * o * P - s * c * P - n * o * b + s * h * b, t[3] = r * h * d - n * c * d - r * o * y + s * c * y + n * o * w - s * h * w;
7550
+ const t = [], e = this.m11, s = this.m12, n = this.m13, r = this.m14, a = this.m21, o = this.m22, h = this.m23, c = this.m24, l = this.m31, f = this.m32, y = this.m33, w = this.m34, m = this.m41, E = this.m42, P = this.m43, b = this.m44;
7551
+ t[0] = h * w * E - c * y * E + c * f * P - o * w * P - h * f * b + o * y * b, t[1] = r * y * E - n * w * E - r * f * P + s * w * P + n * f * b - s * y * b, t[2] = n * c * E - r * h * E + r * o * P - s * c * P - n * o * b + s * h * b, t[3] = r * h * f - n * c * f - r * o * y + s * c * y + n * o * w - s * h * w;
7560
7552
  const x = e * t[0] + a * t[1] + l * t[2] + m * t[3];
7561
7553
  if (x == 0)
7562
7554
  return console.warn("Can't invert matrix, determinant is 0");
7563
- t[4] = c * y * m - h * w * m - c * l * P + a * w * P + h * l * b - a * y * b, t[5] = n * w * m - r * y * m + r * l * P - e * w * P - n * l * b + e * y * b, t[6] = r * h * m - n * c * m - r * a * P + e * c * P + n * a * b - e * h * b, t[7] = n * c * l - r * h * l + r * a * y - e * c * y - n * a * w + e * h * w, t[8] = o * w * m - c * d * m + c * l * E - a * w * E - o * l * b + a * d * b, t[9] = r * d * m - s * w * m - r * l * E + e * w * E + s * l * b - e * d * b, t[10] = s * c * m - r * o * m + r * a * E - e * c * E - s * a * b + e * o * b, t[11] = r * o * l - s * c * l - r * a * d + e * c * d + s * a * w - e * o * w, t[12] = h * d * m - o * y * m - h * l * E + a * y * E + o * l * P - a * d * P, t[13] = s * y * m - n * d * m + n * l * E - e * y * E - s * l * P + e * d * P, t[14] = n * o * m - s * h * m - n * a * E + e * h * E + s * a * P - e * o * P, t[15] = s * h * l - n * o * l + n * a * d - e * h * d - s * a * y + e * o * y, this.value = t, this.scalar(1 / x);
7555
+ t[4] = c * y * m - h * w * m - c * l * P + a * w * P + h * l * b - a * y * b, t[5] = n * w * m - r * y * m + r * l * P - e * w * P - n * l * b + e * y * b, t[6] = r * h * m - n * c * m - r * a * P + e * c * P + n * a * b - e * h * b, t[7] = n * c * l - r * h * l + r * a * y - e * c * y - n * a * w + e * h * w, t[8] = o * w * m - c * f * m + c * l * E - a * w * E - o * l * b + a * f * b, t[9] = r * f * m - s * w * m - r * l * E + e * w * E + s * l * b - e * f * b, t[10] = s * c * m - r * o * m + r * a * E - e * c * E - s * a * b + e * o * b, t[11] = r * o * l - s * c * l - r * a * f + e * c * f + s * a * w - e * o * w, t[12] = h * f * m - o * y * m - h * l * E + a * y * E + o * l * P - a * f * P, t[13] = s * y * m - n * f * m + n * l * E - e * y * E - s * l * P + e * f * P, t[14] = n * o * m - s * h * m - n * a * E + e * h * E + s * a * P - e * o * P, t[15] = s * h * l - n * o * l + n * a * f - e * h * f - s * a * y + e * o * y, this.value = t, this.scalar(1 / x);
7564
7556
  }
7565
7557
  multiply(t) {
7566
7558
  const e = this.clone();
@@ -7678,8 +7670,8 @@ class yt {
7678
7670
  const l = h - n;
7679
7671
  if (l == 0)
7680
7672
  return { x: e, y: s, z: n, mass: r };
7681
- const d = -n / l;
7682
- return e += d * (a - e), s += d * (o - s), { x: e, y: s, z: n, mass: r };
7673
+ const f = -n / l;
7674
+ return e += f * (a - e), s += f * (o - s), { x: e, y: s, z: n, mass: r };
7683
7675
  }
7684
7676
  // from homegeneous (euclid) to cartesian FLATTENED!!!! like a projection
7685
7677
  project(t) {
@@ -7690,12 +7682,12 @@ class yt {
7690
7682
  bounds(t, e, s, n) {
7691
7683
  const r = new ns({ x: t, y: e }), a = new ns({ x: t + s, y: e }), o = new ns({ x: t + s, y: e + n }), h = new ns({ x: t, y: e + n });
7692
7684
  ({ x: r.x, y: r.y, z: r.z, mass: r.mass } = this.project(r)), { x: a.x, y: a.y, z: a.z, mass: a.mass } = this.project(a), { x: o.x, y: o.y, z: o.z, mass: o.mass } = this.project(o), { x: h.x, y: h.y, z: h.z, mass: h.mass } = this.project(h);
7693
- const c = Math.min(r.x, a.x, o.x, h.x), l = Math.min(r.y, a.y, o.y, h.y), d = Math.max(r.x, a.x, o.x, h.x) - c, y = Math.max(r.y, a.y, o.y, h.y) - l;
7694
- return { x: c, y: l, width: d, height: y };
7685
+ const c = Math.min(r.x, a.x, o.x, h.x), l = Math.min(r.y, a.y, o.y, h.y), f = Math.max(r.x, a.x, o.x, h.x) - c, y = Math.max(r.y, a.y, o.y, h.y) - l;
7686
+ return { x: c, y: l, width: f, height: y };
7695
7687
  }
7696
7688
  }
7697
7689
  function _r(i) {
7698
- const t = new ft();
7690
+ const t = new dt();
7699
7691
  return i.replace(
7700
7692
  // /([a-z]+)\(?([^)a-z]+)\)?/gi,
7701
7693
  /([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,
@@ -7788,7 +7780,7 @@ function _r(i) {
7788
7780
  ), t;
7789
7781
  }
7790
7782
  function kt(i, t, e) {
7791
- const s = new ft();
7783
+ const s = new dt();
7792
7784
  return s.rotate(ot(i)), s.transformPoint({ x: t, y: e });
7793
7785
  }
7794
7786
  function Ar(i) {
@@ -7819,7 +7811,7 @@ function jh(i, t) {
7819
7811
  x: t.m31,
7820
7812
  y: t.m32,
7821
7813
  z: t.m33
7822
- }, r = i.transformPoint(e), a = i.transformPoint(s), o = i.transformPoint(n), h = new ft();
7814
+ }, r = i.transformPoint(e), a = i.transformPoint(s), o = i.transformPoint(n), h = new dt();
7823
7815
  return h.m11 = r.x, h.m12 = r.y, h.m13 = r.z, h.m21 = a.x, h.m22 = a.y, h.m23 = a.z, h.m31 = o.x, h.m32 = o.y, h.m33 = o.z, h;
7824
7816
  }
7825
7817
  function $h(i, t) {
@@ -7899,7 +7891,7 @@ class k {
7899
7891
  };
7900
7892
  static getVNode(t, e) {
7901
7893
  let s = t.getAttribute("id") || "";
7902
- s || (s = e || fi(), t.setAttribute("id", s)), this.origins.get(s) || this.origins.set(s, ae(t.tagName, {}, [], t));
7894
+ s || (s = e || di(), t.setAttribute("id", s)), this.origins.get(s) || this.origins.set(s, ae(t.tagName, {}, [], t));
7903
7895
  const n = this.updates.get(s) || ae(t.tagName, {}, [], t);
7904
7896
  return {
7905
7897
  vnode: n,
@@ -8902,7 +8894,7 @@ class k {
8902
8894
  return a;
8903
8895
  const o = t.split(""), h = "...";
8904
8896
  let c = r ? k.measureText(h, s, n).width : 0;
8905
- for (let l = 0, d = o.length; l < d; l++)
8897
+ for (let l = 0, f = o.length; l < f; l++)
8906
8898
  if (c += k.measureText(o[l], s, n).width, c > e) {
8907
8899
  r && (a += h);
8908
8900
  break;
@@ -8941,26 +8933,26 @@ var Dr = { exports: {} };
8941
8933
  (function(i) {
8942
8934
  (function(t, e, s, n) {
8943
8935
  var r = ["", "webkit", "Moz", "MS", "ms", "o"], a = e.createElement("div"), o = "function", h = Math.round, c = Math.abs, l = Date.now;
8944
- function d(u, f, v) {
8945
- return setTimeout(g(u, v), f);
8936
+ function f(u, d, v) {
8937
+ return setTimeout(g(u, v), d);
8946
8938
  }
8947
- function y(u, f, v) {
8948
- return Array.isArray(u) ? (w(u, v[f], v), !0) : !1;
8939
+ function y(u, d, v) {
8940
+ return Array.isArray(u) ? (w(u, v[d], v), !0) : !1;
8949
8941
  }
8950
- function w(u, f, v) {
8942
+ function w(u, d, v) {
8951
8943
  var _;
8952
8944
  if (u)
8953
8945
  if (u.forEach)
8954
- u.forEach(f, v);
8946
+ u.forEach(d, v);
8955
8947
  else if (u.length !== n)
8956
8948
  for (_ = 0; _ < u.length; )
8957
- f.call(v, u[_], _, u), _++;
8949
+ d.call(v, u[_], _, u), _++;
8958
8950
  else
8959
8951
  for (_ in u)
8960
- u.hasOwnProperty(_) && f.call(v, u[_], _, u);
8952
+ u.hasOwnProperty(_) && d.call(v, u[_], _, u);
8961
8953
  }
8962
- function m(u, f, v) {
8963
- var _ = "DEPRECATED METHOD: " + f + `
8954
+ function m(u, d, v) {
8955
+ var _ = "DEPRECATED METHOD: " + d + `
8964
8956
  ` + v + ` AT
8965
8957
  `;
8966
8958
  return function() {
@@ -8969,10 +8961,10 @@ var Dr = { exports: {} };
8969
8961
  };
8970
8962
  }
8971
8963
  var E;
8972
- typeof Object.assign != "function" ? E = function(f) {
8973
- if (f === n || f === null)
8964
+ typeof Object.assign != "function" ? E = function(d) {
8965
+ if (d === n || d === null)
8974
8966
  throw new TypeError("Cannot convert undefined or null to object");
8975
- for (var v = Object(f), _ = 1; _ < arguments.length; _++) {
8967
+ for (var v = Object(d), _ = 1; _ < arguments.length; _++) {
8976
8968
  var M = arguments[_];
8977
8969
  if (M !== n && M !== null)
8978
8970
  for (var L in M)
@@ -8980,57 +8972,57 @@ var Dr = { exports: {} };
8980
8972
  }
8981
8973
  return v;
8982
8974
  } : E = Object.assign;
8983
- var P = m(function(f, v, _) {
8975
+ var P = m(function(d, v, _) {
8984
8976
  for (var M = Object.keys(v), L = 0; L < M.length; )
8985
- (!_ || _ && f[M[L]] === n) && (f[M[L]] = v[M[L]]), L++;
8986
- return f;
8987
- }, "extend", "Use `assign`."), b = m(function(f, v) {
8988
- return P(f, v, !0);
8977
+ (!_ || _ && d[M[L]] === n) && (d[M[L]] = v[M[L]]), L++;
8978
+ return d;
8979
+ }, "extend", "Use `assign`."), b = m(function(d, v) {
8980
+ return P(d, v, !0);
8989
8981
  }, "merge", "Use `assign`.");
8990
- function x(u, f, v) {
8991
- var _ = f.prototype, M;
8982
+ function x(u, d, v) {
8983
+ var _ = d.prototype, M;
8992
8984
  M = u.prototype = Object.create(_), M.constructor = u, M._super = _, v && E(M, v);
8993
8985
  }
8994
- function g(u, f) {
8986
+ function g(u, d) {
8995
8987
  return function() {
8996
- return u.apply(f, arguments);
8988
+ return u.apply(d, arguments);
8997
8989
  };
8998
8990
  }
8999
- function p(u, f) {
9000
- return typeof u == o ? u.apply(f && f[0] || n, f) : u;
8991
+ function p(u, d) {
8992
+ return typeof u == o ? u.apply(d && d[0] || n, d) : u;
9001
8993
  }
9002
- function C(u, f) {
9003
- return u === n ? f : u;
8994
+ function C(u, d) {
8995
+ return u === n ? d : u;
9004
8996
  }
9005
- function S(u, f, v) {
9006
- w($(f), function(_) {
8997
+ function S(u, d, v) {
8998
+ w($(d), function(_) {
9007
8999
  u.addEventListener(_, v, !1);
9008
9000
  });
9009
9001
  }
9010
- function F(u, f, v) {
9011
- w($(f), function(_) {
9002
+ function F(u, d, v) {
9003
+ w($(d), function(_) {
9012
9004
  u.removeEventListener(_, v, !1);
9013
9005
  });
9014
9006
  }
9015
- function z(u, f) {
9007
+ function z(u, d) {
9016
9008
  for (; u; ) {
9017
- if (u == f)
9009
+ if (u == d)
9018
9010
  return !0;
9019
9011
  u = u.parentNode;
9020
9012
  }
9021
9013
  return !1;
9022
9014
  }
9023
- function G(u, f) {
9024
- return u.indexOf(f) > -1;
9015
+ function G(u, d) {
9016
+ return u.indexOf(d) > -1;
9025
9017
  }
9026
9018
  function $(u) {
9027
9019
  return u.trim().split(/\s+/g);
9028
9020
  }
9029
- function W(u, f, v) {
9021
+ function W(u, d, v) {
9030
9022
  if (u.indexOf && !v)
9031
- return u.indexOf(f);
9023
+ return u.indexOf(d);
9032
9024
  for (var _ = 0; _ < u.length; ) {
9033
- if (v && u[_][v] == f || !v && u[_] === f)
9025
+ if (v && u[_][v] == d || !v && u[_] === d)
9034
9026
  return _;
9035
9027
  _++;
9036
9028
  }
@@ -9039,18 +9031,18 @@ var Dr = { exports: {} };
9039
9031
  function st(u) {
9040
9032
  return Array.prototype.slice.call(u, 0);
9041
9033
  }
9042
- function wt(u, f, v) {
9034
+ function wt(u, d, v) {
9043
9035
  for (var _ = [], M = [], L = 0; L < u.length; ) {
9044
- var Y = f ? u[L][f] : u[L];
9036
+ var Y = d ? u[L][d] : u[L];
9045
9037
  W(M, Y) < 0 && _.push(u[L]), M[L] = Y, L++;
9046
9038
  }
9047
- return v && (f ? _ = _.sort(function(et, rt) {
9048
- return et[f] > rt[f];
9039
+ return v && (d ? _ = _.sort(function(et, rt) {
9040
+ return et[d] > rt[d];
9049
9041
  }) : _ = _.sort()), _;
9050
9042
  }
9051
- function lt(u, f) {
9052
- for (var v, _, M = f[0].toUpperCase() + f.slice(1), L = 0; L < r.length; ) {
9053
- if (v = r[L], _ = v ? v + M : f, _ in u)
9043
+ function lt(u, d) {
9044
+ for (var v, _, M = d[0].toUpperCase() + d.slice(1), L = 0; L < r.length; ) {
9045
+ if (v = r[L], _ = v ? v + M : d, _ in u)
9054
9046
  return _;
9055
9047
  L++;
9056
9048
  }
@@ -9061,13 +9053,13 @@ var Dr = { exports: {} };
9061
9053
  return ce++;
9062
9054
  }
9063
9055
  function se(u) {
9064
- var f = u.ownerDocument || u;
9065
- return f.defaultView || f.parentWindow || t;
9056
+ var d = u.ownerDocument || u;
9057
+ return d.defaultView || d.parentWindow || t;
9066
9058
  }
9067
9059
  var le = /mobile|tablet|ip(ad|hone|od)|android/i, R = "ontouchstart" in t, I = lt(t, "PointerEvent") !== n, N = R && le.test(navigator.userAgent), U = "touch", nt = "pen", Et = "mouse", ze = "kinect", Ve = 25, K = 1, _t = 2, j = 4, D = 8, qe = 1, be = 2, ve = 4, Se = 8, Ce = 16, At = be | ve, ie = Se | Ce, Ii = At | ie, ki = ["x", "y"], He = ["clientX", "clientY"];
9068
- function bt(u, f) {
9060
+ function bt(u, d) {
9069
9061
  var v = this;
9070
- this.manager = u, this.callback = f, this.element = u.element, this.target = u.options.inputTarget, this.domHandler = function(_) {
9062
+ this.manager = u, this.callback = d, this.element = u.element, this.target = u.options.inputTarget, this.domHandler = function(_) {
9071
9063
  p(u.options.enable, [u]) && v.handler(_);
9072
9064
  }, this.init();
9073
9065
  }
@@ -9092,94 +9084,94 @@ var Dr = { exports: {} };
9092
9084
  }
9093
9085
  };
9094
9086
  function Xr(u) {
9095
- var f, v = u.options.inputClass;
9096
- return v ? f = v : I ? f = Ms : N ? f = We : R ? f = Is : f = $e, new f(u, Ur);
9097
- }
9098
- function Ur(u, f, v) {
9099
- var _ = v.pointers.length, M = v.changedPointers.length, L = f & K && _ - M === 0, Y = f & (j | D) && _ - M === 0;
9100
- v.isFirst = !!L, v.isFinal = !!Y, L && (u.session = {}), v.eventType = f, Gr(u, v), u.emit("hammer.input", v), u.recognize(v), u.session.prevInput = v;
9101
- }
9102
- function Gr(u, f) {
9103
- var v = u.session, _ = f.pointers, M = _.length;
9104
- v.firstInput || (v.firstInput = Li(f)), M > 1 && !v.firstMultiple ? v.firstMultiple = Li(f) : M === 1 && (v.firstMultiple = !1);
9105
- var L = v.firstInput, Y = v.firstMultiple, Q = Y ? Y.center : L.center, et = f.center = Ri(_);
9106
- f.timeStamp = l(), f.deltaTime = f.timeStamp - L.timeStamp, f.angle = Ds(Q, et), f.distance = je(Q, et), zr(v, f), f.offsetDirection = Fi(f.deltaX, f.deltaY);
9107
- var rt = Oi(f.deltaTime, f.deltaX, f.deltaY);
9108
- f.overallVelocityX = rt.x, f.overallVelocityY = rt.y, f.overallVelocity = c(rt.x) > c(rt.y) ? rt.x : rt.y, f.scale = Y ? Hr(Y.pointers, _) : 1, f.rotation = Y ? qr(Y.pointers, _) : 0, f.maxPointers = v.prevInput ? f.pointers.length > v.prevInput.maxPointers ? f.pointers.length : v.prevInput.maxPointers : f.pointers.length, Vr(v, f);
9087
+ var d, v = u.options.inputClass;
9088
+ return v ? d = v : I ? d = Ms : N ? d = We : R ? d = Is : d = $e, new d(u, Ur);
9089
+ }
9090
+ function Ur(u, d, v) {
9091
+ var _ = v.pointers.length, M = v.changedPointers.length, L = d & K && _ - M === 0, Y = d & (j | D) && _ - M === 0;
9092
+ v.isFirst = !!L, v.isFinal = !!Y, L && (u.session = {}), v.eventType = d, Gr(u, v), u.emit("hammer.input", v), u.recognize(v), u.session.prevInput = v;
9093
+ }
9094
+ function Gr(u, d) {
9095
+ var v = u.session, _ = d.pointers, M = _.length;
9096
+ v.firstInput || (v.firstInput = Li(d)), M > 1 && !v.firstMultiple ? v.firstMultiple = Li(d) : M === 1 && (v.firstMultiple = !1);
9097
+ var L = v.firstInput, Y = v.firstMultiple, Q = Y ? Y.center : L.center, et = d.center = Ri(_);
9098
+ d.timeStamp = l(), d.deltaTime = d.timeStamp - L.timeStamp, d.angle = Ds(Q, et), d.distance = je(Q, et), zr(v, d), d.offsetDirection = Fi(d.deltaX, d.deltaY);
9099
+ var rt = Oi(d.deltaTime, d.deltaX, d.deltaY);
9100
+ d.overallVelocityX = rt.x, d.overallVelocityY = rt.y, d.overallVelocity = c(rt.x) > c(rt.y) ? rt.x : rt.y, d.scale = Y ? Hr(Y.pointers, _) : 1, d.rotation = Y ? qr(Y.pointers, _) : 0, d.maxPointers = v.prevInput ? d.pointers.length > v.prevInput.maxPointers ? d.pointers.length : v.prevInput.maxPointers : d.pointers.length, Vr(v, d);
9109
9101
  var Mt = u.element;
9110
- z(f.srcEvent.target, Mt) && (Mt = f.srcEvent.target), f.target = Mt;
9102
+ z(d.srcEvent.target, Mt) && (Mt = d.srcEvent.target), d.target = Mt;
9111
9103
  }
9112
- function zr(u, f) {
9113
- var v = f.center, _ = u.offsetDelta || {}, M = u.prevDelta || {}, L = u.prevInput || {};
9114
- (f.eventType === K || L.eventType === j) && (M = u.prevDelta = {
9104
+ function zr(u, d) {
9105
+ var v = d.center, _ = u.offsetDelta || {}, M = u.prevDelta || {}, L = u.prevInput || {};
9106
+ (d.eventType === K || L.eventType === j) && (M = u.prevDelta = {
9115
9107
  x: L.deltaX || 0,
9116
9108
  y: L.deltaY || 0
9117
9109
  }, _ = u.offsetDelta = {
9118
9110
  x: v.x,
9119
9111
  y: v.y
9120
- }), f.deltaX = M.x + (v.x - _.x), f.deltaY = M.y + (v.y - _.y);
9112
+ }), d.deltaX = M.x + (v.x - _.x), d.deltaY = M.y + (v.y - _.y);
9121
9113
  }
9122
- function Vr(u, f) {
9123
- var v = u.lastInterval || f, _ = f.timeStamp - v.timeStamp, M, L, Y, Q;
9124
- if (f.eventType != D && (_ > Ve || v.velocity === n)) {
9125
- var et = f.deltaX - v.deltaX, rt = f.deltaY - v.deltaY, Mt = Oi(_, et, rt);
9126
- L = Mt.x, Y = Mt.y, M = c(Mt.x) > c(Mt.y) ? Mt.x : Mt.y, Q = Fi(et, rt), u.lastInterval = f;
9114
+ function Vr(u, d) {
9115
+ var v = u.lastInterval || d, _ = d.timeStamp - v.timeStamp, M, L, Y, Q;
9116
+ if (d.eventType != D && (_ > Ve || v.velocity === n)) {
9117
+ var et = d.deltaX - v.deltaX, rt = d.deltaY - v.deltaY, Mt = Oi(_, et, rt);
9118
+ L = Mt.x, Y = Mt.y, M = c(Mt.x) > c(Mt.y) ? Mt.x : Mt.y, Q = Fi(et, rt), u.lastInterval = d;
9127
9119
  } else
9128
9120
  M = v.velocity, L = v.velocityX, Y = v.velocityY, Q = v.direction;
9129
- f.velocity = M, f.velocityX = L, f.velocityY = Y, f.direction = Q;
9121
+ d.velocity = M, d.velocityX = L, d.velocityY = Y, d.direction = Q;
9130
9122
  }
9131
9123
  function Li(u) {
9132
- for (var f = [], v = 0; v < u.pointers.length; )
9133
- f[v] = {
9124
+ for (var d = [], v = 0; v < u.pointers.length; )
9125
+ d[v] = {
9134
9126
  clientX: h(u.pointers[v].clientX),
9135
9127
  clientY: h(u.pointers[v].clientY)
9136
9128
  }, v++;
9137
9129
  return {
9138
9130
  timeStamp: l(),
9139
- pointers: f,
9140
- center: Ri(f),
9131
+ pointers: d,
9132
+ center: Ri(d),
9141
9133
  deltaX: u.deltaX,
9142
9134
  deltaY: u.deltaY
9143
9135
  };
9144
9136
  }
9145
9137
  function Ri(u) {
9146
- var f = u.length;
9147
- if (f === 1)
9138
+ var d = u.length;
9139
+ if (d === 1)
9148
9140
  return {
9149
9141
  x: h(u[0].clientX),
9150
9142
  y: h(u[0].clientY)
9151
9143
  };
9152
- for (var v = 0, _ = 0, M = 0; M < f; )
9144
+ for (var v = 0, _ = 0, M = 0; M < d; )
9153
9145
  v += u[M].clientX, _ += u[M].clientY, M++;
9154
9146
  return {
9155
- x: h(v / f),
9156
- y: h(_ / f)
9147
+ x: h(v / d),
9148
+ y: h(_ / d)
9157
9149
  };
9158
9150
  }
9159
- function Oi(u, f, v) {
9151
+ function Oi(u, d, v) {
9160
9152
  return {
9161
- x: f / u || 0,
9153
+ x: d / u || 0,
9162
9154
  y: v / u || 0
9163
9155
  };
9164
9156
  }
9165
- function Fi(u, f) {
9166
- return u === f ? qe : c(u) >= c(f) ? u < 0 ? be : ve : f < 0 ? Se : Ce;
9157
+ function Fi(u, d) {
9158
+ return u === d ? qe : c(u) >= c(d) ? u < 0 ? be : ve : d < 0 ? Se : Ce;
9167
9159
  }
9168
- function je(u, f, v) {
9160
+ function je(u, d, v) {
9169
9161
  v || (v = ki);
9170
- var _ = f[v[0]] - u[v[0]], M = f[v[1]] - u[v[1]];
9162
+ var _ = d[v[0]] - u[v[0]], M = d[v[1]] - u[v[1]];
9171
9163
  return Math.sqrt(_ * _ + M * M);
9172
9164
  }
9173
- function Ds(u, f, v) {
9165
+ function Ds(u, d, v) {
9174
9166
  v || (v = ki);
9175
- var _ = f[v[0]] - u[v[0]], M = f[v[1]] - u[v[1]];
9167
+ var _ = d[v[0]] - u[v[0]], M = d[v[1]] - u[v[1]];
9176
9168
  return Math.atan2(M, _) * 180 / Math.PI;
9177
9169
  }
9178
- function qr(u, f) {
9179
- return Ds(f[1], f[0], He) + Ds(u[1], u[0], He);
9170
+ function qr(u, d) {
9171
+ return Ds(d[1], d[0], He) + Ds(u[1], u[0], He);
9180
9172
  }
9181
- function Hr(u, f) {
9182
- return je(f[0], f[1], He) / je(u[0], u[1], He);
9173
+ function Hr(u, d) {
9174
+ return je(d[0], d[1], He) / je(u[0], u[1], He);
9183
9175
  }
9184
9176
  var jr = {
9185
9177
  mousedown: K,
@@ -9194,13 +9186,13 @@ var Dr = { exports: {} };
9194
9186
  * handle mouse events
9195
9187
  * @param {Object} ev
9196
9188
  */
9197
- handler: function(f) {
9198
- var v = jr[f.type];
9199
- v & K && f.button === 0 && (this.pressed = !0), v & _t && f.which !== 1 && (v = j), this.pressed && (v & j && (this.pressed = !1), this.callback(this.manager, v, {
9200
- pointers: [f],
9201
- changedPointers: [f],
9189
+ handler: function(d) {
9190
+ var v = jr[d.type];
9191
+ v & K && d.button === 0 && (this.pressed = !0), v & _t && d.which !== 1 && (v = j), this.pressed && (v & j && (this.pressed = !1), this.callback(this.manager, v, {
9192
+ pointers: [d],
9193
+ changedPointers: [d],
9202
9194
  pointerType: Et,
9203
- srcEvent: f
9195
+ srcEvent: d
9204
9196
  }));
9205
9197
  }
9206
9198
  });
@@ -9226,13 +9218,13 @@ var Dr = { exports: {} };
9226
9218
  * handle mouse events
9227
9219
  * @param {Object} ev
9228
9220
  */
9229
- handler: function(f) {
9230
- var v = this.store, _ = !1, M = f.type.toLowerCase().replace("ms", ""), L = Jr[M], Y = Zr[f.pointerType] || f.pointerType, Q = Y == U, et = W(v, f.pointerId, "pointerId");
9231
- L & K && (f.button === 0 || Q) ? et < 0 && (v.push(f), et = v.length - 1) : L & (j | D) && (_ = !0), !(et < 0) && (v[et] = f, this.callback(this.manager, L, {
9221
+ handler: function(d) {
9222
+ var v = this.store, _ = !1, M = d.type.toLowerCase().replace("ms", ""), L = Jr[M], Y = Zr[d.pointerType] || d.pointerType, Q = Y == U, et = W(v, d.pointerId, "pointerId");
9223
+ L & K && (d.button === 0 || Q) ? et < 0 && (v.push(d), et = v.length - 1) : L & (j | D) && (_ = !0), !(et < 0) && (v[et] = d, this.callback(this.manager, L, {
9232
9224
  pointers: v,
9233
- changedPointers: [f],
9225
+ changedPointers: [d],
9234
9226
  pointerType: Y,
9235
- srcEvent: f
9227
+ srcEvent: d
9236
9228
  }), _ && v.splice(et, 1));
9237
9229
  }
9238
9230
  });
@@ -9246,22 +9238,22 @@ var Dr = { exports: {} };
9246
9238
  this.evTarget = Qr, this.evWin = ta, this.started = !1, bt.apply(this, arguments);
9247
9239
  }
9248
9240
  x(Bi, bt, {
9249
- handler: function(f) {
9250
- var v = Kr[f.type];
9241
+ handler: function(d) {
9242
+ var v = Kr[d.type];
9251
9243
  if (v === K && (this.started = !0), !!this.started) {
9252
- var _ = ea.call(this, f, v);
9244
+ var _ = ea.call(this, d, v);
9253
9245
  v & (j | D) && _[0].length - _[1].length === 0 && (this.started = !1), this.callback(this.manager, v, {
9254
9246
  pointers: _[0],
9255
9247
  changedPointers: _[1],
9256
9248
  pointerType: U,
9257
- srcEvent: f
9249
+ srcEvent: d
9258
9250
  });
9259
9251
  }
9260
9252
  }
9261
9253
  });
9262
- function ea(u, f) {
9254
+ function ea(u, d) {
9263
9255
  var v = st(u.touches), _ = st(u.changedTouches);
9264
- return f & (j | D) && (v = wt(v.concat(_), "identifier", !0)), [v, _];
9256
+ return d & (j | D) && (v = wt(v.concat(_), "identifier", !0)), [v, _];
9265
9257
  }
9266
9258
  var sa = {
9267
9259
  touchstart: K,
@@ -9273,28 +9265,28 @@ var Dr = { exports: {} };
9273
9265
  this.evTarget = ia, this.targetIds = {}, bt.apply(this, arguments);
9274
9266
  }
9275
9267
  x(We, bt, {
9276
- handler: function(f) {
9277
- var v = sa[f.type], _ = na.call(this, f, v);
9268
+ handler: function(d) {
9269
+ var v = sa[d.type], _ = na.call(this, d, v);
9278
9270
  _ && this.callback(this.manager, v, {
9279
9271
  pointers: _[0],
9280
9272
  changedPointers: _[1],
9281
9273
  pointerType: U,
9282
- srcEvent: f
9274
+ srcEvent: d
9283
9275
  });
9284
9276
  }
9285
9277
  });
9286
- function na(u, f) {
9278
+ function na(u, d) {
9287
9279
  var v = st(u.touches), _ = this.targetIds;
9288
- if (f & (K | _t) && v.length === 1)
9280
+ if (d & (K | _t) && v.length === 1)
9289
9281
  return _[v[0].identifier] = !0, [v, v];
9290
9282
  var M, L, Y = st(u.changedTouches), Q = [], et = this.target;
9291
9283
  if (L = v.filter(function(rt) {
9292
9284
  return z(rt.target, et);
9293
- }), f === K)
9285
+ }), d === K)
9294
9286
  for (M = 0; M < L.length; )
9295
9287
  _[L[M].identifier] = !0, M++;
9296
9288
  for (M = 0; M < Y.length; )
9297
- _[Y[M].identifier] && Q.push(Y[M]), f & (j | D) && delete _[Y[M].identifier], M++;
9289
+ _[Y[M].identifier] && Q.push(Y[M]), d & (j | D) && delete _[Y[M].identifier], M++;
9298
9290
  if (Q.length)
9299
9291
  return [
9300
9292
  // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
@@ -9315,14 +9307,14 @@ var Dr = { exports: {} };
9315
9307
  * @param {String} inputEvent
9316
9308
  * @param {Object} inputData
9317
9309
  */
9318
- handler: function(f, v, _) {
9310
+ handler: function(d, v, _) {
9319
9311
  var M = _.pointerType == U, L = _.pointerType == Et;
9320
9312
  if (!(L && _.sourceCapabilities && _.sourceCapabilities.firesTouchEvents)) {
9321
9313
  if (M)
9322
9314
  aa.call(this, v, _);
9323
9315
  else if (L && oa.call(this, _))
9324
9316
  return;
9325
- this.callback(f, v, _);
9317
+ this.callback(d, v, _);
9326
9318
  }
9327
9319
  },
9328
9320
  /**
@@ -9332,13 +9324,13 @@ var Dr = { exports: {} };
9332
9324
  this.touch.destroy(), this.mouse.destroy();
9333
9325
  }
9334
9326
  });
9335
- function aa(u, f) {
9336
- u & K ? (this.primaryTouch = f.changedPointers[0].identifier, Ui.call(this, f)) : u & (j | D) && Ui.call(this, f);
9327
+ function aa(u, d) {
9328
+ u & K ? (this.primaryTouch = d.changedPointers[0].identifier, Ui.call(this, d)) : u & (j | D) && Ui.call(this, d);
9337
9329
  }
9338
9330
  function Ui(u) {
9339
- var f = u.changedPointers[0];
9340
- if (f.identifier === this.primaryTouch) {
9341
- var v = { x: f.clientX, y: f.clientY };
9331
+ var d = u.changedPointers[0];
9332
+ if (d.identifier === this.primaryTouch) {
9333
+ var v = { x: d.clientX, y: d.clientY };
9342
9334
  this.lastTouches.push(v);
9343
9335
  var _ = this.lastTouches, M = function() {
9344
9336
  var L = _.indexOf(v);
@@ -9348,16 +9340,16 @@ var Dr = { exports: {} };
9348
9340
  }
9349
9341
  }
9350
9342
  function oa(u) {
9351
- for (var f = u.srcEvent.clientX, v = u.srcEvent.clientY, _ = 0; _ < this.lastTouches.length; _++) {
9352
- var M = this.lastTouches[_], L = Math.abs(f - M.x), Y = Math.abs(v - M.y);
9343
+ for (var d = u.srcEvent.clientX, v = u.srcEvent.clientY, _ = 0; _ < this.lastTouches.length; _++) {
9344
+ var M = this.lastTouches[_], L = Math.abs(d - M.x), Y = Math.abs(v - M.y);
9353
9345
  if (L <= Xi && Y <= Xi)
9354
9346
  return !0;
9355
9347
  }
9356
9348
  return !1;
9357
9349
  }
9358
9350
  var Gi = lt(a.style, "touchAction"), zi = Gi !== n, Vi = "compute", qi = "auto", ks = "manipulation", ne = "none", Ee = "pan-x", Te = "pan-y", Je = ca();
9359
- function Ls(u, f) {
9360
- this.manager = u, this.set(f);
9351
+ function Ls(u, d) {
9352
+ this.manager = u, this.set(d);
9361
9353
  }
9362
9354
  Ls.prototype = {
9363
9355
  /**
@@ -9379,8 +9371,8 @@ var Dr = { exports: {} };
9379
9371
  */
9380
9372
  compute: function() {
9381
9373
  var u = [];
9382
- return w(this.manager.recognizers, function(f) {
9383
- p(f.options.enable, [f]) && (u = u.concat(f.getTouchAction()));
9374
+ return w(this.manager.recognizers, function(d) {
9375
+ p(d.options.enable, [d]) && (u = u.concat(d.getTouchAction()));
9384
9376
  }), ha(u.join(" "));
9385
9377
  },
9386
9378
  /**
@@ -9388,9 +9380,9 @@ var Dr = { exports: {} };
9388
9380
  * @param {Object} input
9389
9381
  */
9390
9382
  preventDefaults: function(u) {
9391
- var f = u.srcEvent, v = u.offsetDirection;
9383
+ var d = u.srcEvent, v = u.offsetDirection;
9392
9384
  if (this.manager.session.prevented) {
9393
- f.preventDefault();
9385
+ d.preventDefault();
9394
9386
  return;
9395
9387
  }
9396
9388
  var _ = this.actions, M = G(_, ne) && !Je[ne], L = G(_, Te) && !Je[Te], Y = G(_, Ee) && !Je[Ee];
@@ -9400,7 +9392,7 @@ var Dr = { exports: {} };
9400
9392
  return;
9401
9393
  }
9402
9394
  if (!(Y && L) && (M || L && v & At || Y && v & ie))
9403
- return this.preventSrc(f);
9395
+ return this.preventSrc(d);
9404
9396
  },
9405
9397
  /**
9406
9398
  * call preventDefault to prevent the browser's default behavior (scrolling in most cases)
@@ -9413,15 +9405,15 @@ var Dr = { exports: {} };
9413
9405
  function ha(u) {
9414
9406
  if (G(u, ne))
9415
9407
  return ne;
9416
- var f = G(u, Ee), v = G(u, Te);
9417
- return f && v ? ne : f || v ? f ? Ee : Te : G(u, ks) ? ks : qi;
9408
+ var d = G(u, Ee), v = G(u, Te);
9409
+ return d && v ? ne : d || v ? d ? Ee : Te : G(u, ks) ? ks : qi;
9418
9410
  }
9419
9411
  function ca() {
9420
9412
  if (!zi)
9421
9413
  return !1;
9422
- var u = {}, f = t.CSS && t.CSS.supports;
9414
+ var u = {}, d = t.CSS && t.CSS.supports;
9423
9415
  return ["auto", "manipulation", "pan-y", "pan-x", "pan-x pan-y", "none"].forEach(function(v) {
9424
- u[v] = f ? t.CSS.supports("touch-action", v) : !0;
9416
+ u[v] = d ? t.CSS.supports("touch-action", v) : !0;
9425
9417
  }), u;
9426
9418
  }
9427
9419
  var Ze = 1, vt = 2, ue = 4, Ht = 8, Ft = Ht, Pe = 16, Dt = 32;
@@ -9450,8 +9442,8 @@ var Dr = { exports: {} };
9450
9442
  recognizeWith: function(u) {
9451
9443
  if (y(u, "recognizeWith", this))
9452
9444
  return this;
9453
- var f = this.simultaneous;
9454
- return u = Ke(u, this), f[u.id] || (f[u.id] = u, u.recognizeWith(this)), this;
9445
+ var d = this.simultaneous;
9446
+ return u = Ke(u, this), d[u.id] || (d[u.id] = u, u.recognizeWith(this)), this;
9455
9447
  },
9456
9448
  /**
9457
9449
  * drop the simultaneous link. it doesnt remove the link on the other recognizer.
@@ -9469,8 +9461,8 @@ var Dr = { exports: {} };
9469
9461
  requireFailure: function(u) {
9470
9462
  if (y(u, "requireFailure", this))
9471
9463
  return this;
9472
- var f = this.requireFail;
9473
- return u = Ke(u, this), W(f, u) === -1 && (f.push(u), u.requireFailure(this)), this;
9464
+ var d = this.requireFail;
9465
+ return u = Ke(u, this), W(d, u) === -1 && (d.push(u), u.requireFailure(this)), this;
9474
9466
  },
9475
9467
  /**
9476
9468
  * drop the requireFailure link. it does not remove the link on the other recognizer.
@@ -9481,8 +9473,8 @@ var Dr = { exports: {} };
9481
9473
  if (y(u, "dropRequireFailure", this))
9482
9474
  return this;
9483
9475
  u = Ke(u, this);
9484
- var f = W(this.requireFail, u);
9485
- return f > -1 && this.requireFail.splice(f, 1), this;
9476
+ var d = W(this.requireFail, u);
9477
+ return d > -1 && this.requireFail.splice(d, 1), this;
9486
9478
  },
9487
9479
  /**
9488
9480
  * has require failures boolean
@@ -9505,11 +9497,11 @@ var Dr = { exports: {} };
9505
9497
  * @param {Object} input
9506
9498
  */
9507
9499
  emit: function(u) {
9508
- var f = this, v = this.state;
9500
+ var d = this, v = this.state;
9509
9501
  function _(M) {
9510
- f.manager.emit(M, u);
9502
+ d.manager.emit(M, u);
9511
9503
  }
9512
- v < Ht && _(f.options.event + Hi(v)), _(f.options.event), u.additionalEvent && _(u.additionalEvent), v >= Ht && _(f.options.event + Hi(v));
9504
+ v < Ht && _(d.options.event + Hi(v)), _(d.options.event), u.additionalEvent && _(u.additionalEvent), v >= Ht && _(d.options.event + Hi(v));
9513
9505
  },
9514
9506
  /**
9515
9507
  * Check that all the require failure recognizers has failed,
@@ -9539,12 +9531,12 @@ var Dr = { exports: {} };
9539
9531
  * @param {Object} inputData
9540
9532
  */
9541
9533
  recognize: function(u) {
9542
- var f = E({}, u);
9543
- if (!p(this.options.enable, [this, f])) {
9534
+ var d = E({}, u);
9535
+ if (!p(this.options.enable, [this, d])) {
9544
9536
  this.reset(), this.state = Dt;
9545
9537
  return;
9546
9538
  }
9547
- this.state & (Ft | Pe | Dt) && (this.state = Ze), this.state = this.process(f), this.state & (vt | ue | Ht | Pe) && this.tryEmit(f);
9539
+ this.state & (Ft | Pe | Dt) && (this.state = Ze), this.state = this.process(d), this.state & (vt | ue | Ht | Pe) && this.tryEmit(d);
9548
9540
  },
9549
9541
  /**
9550
9542
  * return the state of the recognizer
@@ -9577,8 +9569,8 @@ var Dr = { exports: {} };
9577
9569
  function ji(u) {
9578
9570
  return u == Ce ? "down" : u == Se ? "up" : u == be ? "left" : u == ve ? "right" : "";
9579
9571
  }
9580
- function Ke(u, f) {
9581
- var v = f.manager;
9572
+ function Ke(u, d) {
9573
+ var v = d.manager;
9582
9574
  return v ? v.get(u) : u;
9583
9575
  }
9584
9576
  function Tt() {
@@ -9603,8 +9595,8 @@ var Dr = { exports: {} };
9603
9595
  * @returns {Boolean} recognized
9604
9596
  */
9605
9597
  attrTest: function(u) {
9606
- var f = this.options.pointers;
9607
- return f === 0 || u.pointers.length === f;
9598
+ var d = this.options.pointers;
9599
+ return d === 0 || u.pointers.length === d;
9608
9600
  },
9609
9601
  /**
9610
9602
  * Process the input and return the state for the recognizer
@@ -9613,8 +9605,8 @@ var Dr = { exports: {} };
9613
9605
  * @returns {*} State
9614
9606
  */
9615
9607
  process: function(u) {
9616
- var f = this.state, v = u.eventType, _ = f & (vt | ue), M = this.attrTest(u);
9617
- return _ && (v & D || !M) ? f | Pe : _ || M ? v & j ? f | Ht : f & vt ? f | ue : vt : Dt;
9608
+ var d = this.state, v = u.eventType, _ = d & (vt | ue), M = this.attrTest(u);
9609
+ return _ && (v & D || !M) ? d | Pe : _ || M ? v & j ? d | Ht : d & vt ? d | ue : vt : Dt;
9618
9610
  }
9619
9611
  });
9620
9612
  function Qe() {
@@ -9632,20 +9624,20 @@ var Dr = { exports: {} };
9632
9624
  direction: Ii
9633
9625
  },
9634
9626
  getTouchAction: function() {
9635
- var u = this.options.direction, f = [];
9636
- return u & At && f.push(Te), u & ie && f.push(Ee), f;
9627
+ var u = this.options.direction, d = [];
9628
+ return u & At && d.push(Te), u & ie && d.push(Ee), d;
9637
9629
  },
9638
9630
  directionTest: function(u) {
9639
- var f = this.options, v = !0, _ = u.distance, M = u.direction, L = u.deltaX, Y = u.deltaY;
9640
- return M & f.direction || (f.direction & At ? (M = L === 0 ? qe : L < 0 ? be : ve, v = L != this.pX, _ = Math.abs(u.deltaX)) : (M = Y === 0 ? qe : Y < 0 ? Se : Ce, v = Y != this.pY, _ = Math.abs(u.deltaY))), u.direction = M, v && _ > f.threshold && M & f.direction;
9631
+ var d = this.options, v = !0, _ = u.distance, M = u.direction, L = u.deltaX, Y = u.deltaY;
9632
+ return M & d.direction || (d.direction & At ? (M = L === 0 ? qe : L < 0 ? be : ve, v = L != this.pX, _ = Math.abs(u.deltaX)) : (M = Y === 0 ? qe : Y < 0 ? Se : Ce, v = Y != this.pY, _ = Math.abs(u.deltaY))), u.direction = M, v && _ > d.threshold && M & d.direction;
9641
9633
  },
9642
9634
  attrTest: function(u) {
9643
9635
  return Tt.prototype.attrTest.call(this, u) && (this.state & vt || !(this.state & vt) && this.directionTest(u));
9644
9636
  },
9645
9637
  emit: function(u) {
9646
9638
  this.pX = u.deltaX, this.pY = u.deltaY;
9647
- var f = ji(u.direction);
9648
- f && (u.additionalEvent = this.options.event + f), this._super.emit.call(this, u);
9639
+ var d = ji(u.direction);
9640
+ d && (u.additionalEvent = this.options.event + d), this._super.emit.call(this, u);
9649
9641
  }
9650
9642
  });
9651
9643
  function Rs() {
@@ -9669,8 +9661,8 @@ var Dr = { exports: {} };
9669
9661
  },
9670
9662
  emit: function(u) {
9671
9663
  if (u.scale !== 1) {
9672
- var f = u.scale < 1 ? "in" : "out";
9673
- u.additionalEvent = this.options.event + f;
9664
+ var d = u.scale < 1 ? "in" : "out";
9665
+ u.additionalEvent = this.options.event + d;
9674
9666
  }
9675
9667
  this._super.emit.call(this, u);
9676
9668
  }
@@ -9695,13 +9687,13 @@ var Dr = { exports: {} };
9695
9687
  return [qi];
9696
9688
  },
9697
9689
  process: function(u) {
9698
- var f = this.options, v = u.pointers.length === f.pointers, _ = u.distance < f.threshold, M = u.deltaTime > f.time;
9690
+ var d = this.options, v = u.pointers.length === d.pointers, _ = u.distance < d.threshold, M = u.deltaTime > d.time;
9699
9691
  if (this._input = u, !_ || !v || u.eventType & (j | D) && !M)
9700
9692
  this.reset();
9701
9693
  else if (u.eventType & K)
9702
- this.reset(), this._timer = d(function() {
9694
+ this.reset(), this._timer = f(function() {
9703
9695
  this.state = Ft, this.tryEmit();
9704
- }, f.time, this);
9696
+ }, d.time, this);
9705
9697
  else if (u.eventType & j)
9706
9698
  return Ft;
9707
9699
  return Dt;
@@ -9752,12 +9744,12 @@ var Dr = { exports: {} };
9752
9744
  return Qe.prototype.getTouchAction.call(this);
9753
9745
  },
9754
9746
  attrTest: function(u) {
9755
- var f = this.options.direction, v;
9756
- return f & (At | ie) ? v = u.overallVelocity : f & At ? v = u.overallVelocityX : f & ie && (v = u.overallVelocityY), this._super.attrTest.call(this, u) && f & u.offsetDirection && u.distance > this.options.threshold && u.maxPointers == this.options.pointers && c(v) > this.options.velocity && u.eventType & j;
9747
+ var d = this.options.direction, v;
9748
+ return d & (At | ie) ? v = u.overallVelocity : d & At ? v = u.overallVelocityX : d & ie && (v = u.overallVelocityY), this._super.attrTest.call(this, u) && d & u.offsetDirection && u.distance > this.options.threshold && u.maxPointers == this.options.pointers && c(v) > this.options.velocity && u.eventType & j;
9757
9749
  },
9758
9750
  emit: function(u) {
9759
- var f = ji(u.offsetDirection);
9760
- f && this.manager.emit(this.options.event + f, u), this.manager.emit(this.options.event, u);
9751
+ var d = ji(u.offsetDirection);
9752
+ d && this.manager.emit(this.options.event + d, u), this.manager.emit(this.options.event, u);
9761
9753
  }
9762
9754
  });
9763
9755
  function ts() {
@@ -9785,24 +9777,24 @@ var Dr = { exports: {} };
9785
9777
  return [ks];
9786
9778
  },
9787
9779
  process: function(u) {
9788
- var f = this.options, v = u.pointers.length === f.pointers, _ = u.distance < f.threshold, M = u.deltaTime < f.time;
9780
+ var d = this.options, v = u.pointers.length === d.pointers, _ = u.distance < d.threshold, M = u.deltaTime < d.time;
9789
9781
  if (this.reset(), u.eventType & K && this.count === 0)
9790
9782
  return this.failTimeout();
9791
9783
  if (_ && M && v) {
9792
9784
  if (u.eventType != j)
9793
9785
  return this.failTimeout();
9794
- var L = this.pTime ? u.timeStamp - this.pTime < f.interval : !0, Y = !this.pCenter || je(this.pCenter, u.center) < f.posThreshold;
9786
+ var L = this.pTime ? u.timeStamp - this.pTime < d.interval : !0, Y = !this.pCenter || je(this.pCenter, u.center) < d.posThreshold;
9795
9787
  this.pTime = u.timeStamp, this.pCenter = u.center, !Y || !L ? this.count = 1 : this.count += 1, this._input = u;
9796
- var Q = this.count % f.taps;
9788
+ var Q = this.count % d.taps;
9797
9789
  if (Q === 0)
9798
- return this.hasRequireFailures() ? (this._timer = d(function() {
9790
+ return this.hasRequireFailures() ? (this._timer = f(function() {
9799
9791
  this.state = Ft, this.tryEmit();
9800
- }, f.interval, this), vt) : Ft;
9792
+ }, d.interval, this), vt) : Ft;
9801
9793
  }
9802
9794
  return Dt;
9803
9795
  },
9804
9796
  failTimeout: function() {
9805
- return this._timer = d(function() {
9797
+ return this._timer = f(function() {
9806
9798
  this.state = Dt;
9807
9799
  }, this.options.interval, this), Dt;
9808
9800
  },
@@ -9813,8 +9805,8 @@ var Dr = { exports: {} };
9813
9805
  this.state == Ft && (this._input.tapCount = this.count, this.manager.emit(this.options.event, this._input));
9814
9806
  }
9815
9807
  });
9816
- function Yt(u, f) {
9817
- return f = f || {}, f.recognizers = C(f.recognizers, Yt.defaults.preset), new Ys(u, f);
9808
+ function Yt(u, d) {
9809
+ return d = d || {}, d.recognizers = C(d.recognizers, Yt.defaults.preset), new Ys(u, d);
9818
9810
  }
9819
9811
  Yt.VERSION = "2.0.7", Yt.defaults = {
9820
9812
  /**
@@ -9913,8 +9905,8 @@ var Dr = { exports: {} };
9913
9905
  }
9914
9906
  };
9915
9907
  var la = 1, $i = 2;
9916
- function Ys(u, f) {
9917
- this.options = E({}, Yt.defaults, f || {}), this.options.inputTarget = this.options.inputTarget || u, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = u, this.input = Xr(this), this.touchAction = new Ls(this, this.options.touchAction), Wi(this, !0), w(this.options.recognizers, function(v) {
9908
+ function Ys(u, d) {
9909
+ this.options = E({}, Yt.defaults, d || {}), this.options.inputTarget = this.options.inputTarget || u, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = u, this.input = Xr(this), this.touchAction = new Ls(this, this.options.touchAction), Wi(this, !0), w(this.options.recognizers, function(v) {
9918
9910
  var _ = this.add(new v[0](v[1]));
9919
9911
  v[2] && _.recognizeWith(v[2]), v[3] && _.requireFailure(v[3]);
9920
9912
  }, this);
@@ -9944,15 +9936,15 @@ var Dr = { exports: {} };
9944
9936
  * @param {Object} inputData
9945
9937
  */
9946
9938
  recognize: function(u) {
9947
- var f = this.session;
9948
- if (!f.stopped) {
9939
+ var d = this.session;
9940
+ if (!d.stopped) {
9949
9941
  this.touchAction.preventDefaults(u);
9950
- var v, _ = this.recognizers, M = f.curRecognizer;
9951
- (!M || M && M.state & Ft) && (M = f.curRecognizer = null);
9942
+ var v, _ = this.recognizers, M = d.curRecognizer;
9943
+ (!M || M && M.state & Ft) && (M = d.curRecognizer = null);
9952
9944
  for (var L = 0; L < _.length; )
9953
- v = _[L], f.stopped !== $i && // 1
9945
+ v = _[L], d.stopped !== $i && // 1
9954
9946
  (!M || v == M || // 2
9955
- v.canRecognizeWith(M)) ? v.recognize(u) : v.reset(), !M && v.state & (vt | ue | Ht) && (M = f.curRecognizer = v), L++;
9947
+ v.canRecognizeWith(M)) ? v.recognize(u) : v.reset(), !M && v.state & (vt | ue | Ht) && (M = d.curRecognizer = v), L++;
9956
9948
  }
9957
9949
  },
9958
9950
  /**
@@ -9963,9 +9955,9 @@ var Dr = { exports: {} };
9963
9955
  get: function(u) {
9964
9956
  if (u instanceof Nt)
9965
9957
  return u;
9966
- for (var f = this.recognizers, v = 0; v < f.length; v++)
9967
- if (f[v].options.event == u)
9968
- return f[v];
9958
+ for (var d = this.recognizers, v = 0; v < d.length; v++)
9959
+ if (d[v].options.event == u)
9960
+ return d[v];
9969
9961
  return null;
9970
9962
  },
9971
9963
  /**
@@ -9977,8 +9969,8 @@ var Dr = { exports: {} };
9977
9969
  add: function(u) {
9978
9970
  if (y(u, "add", this))
9979
9971
  return this;
9980
- var f = this.get(u.options.event);
9981
- return f && this.remove(f), this.recognizers.push(u), u.manager = this, this.touchAction.update(), u;
9972
+ var d = this.get(u.options.event);
9973
+ return d && this.remove(d), this.recognizers.push(u), u.manager = this, this.touchAction.update(), u;
9982
9974
  },
9983
9975
  /**
9984
9976
  * remove a recognizer by name or instance
@@ -9989,8 +9981,8 @@ var Dr = { exports: {} };
9989
9981
  if (y(u, "remove", this))
9990
9982
  return this;
9991
9983
  if (u = this.get(u), u) {
9992
- var f = this.recognizers, v = W(f, u);
9993
- v !== -1 && (f.splice(v, 1), this.touchAction.update());
9984
+ var d = this.recognizers, v = W(d, u);
9985
+ v !== -1 && (d.splice(v, 1), this.touchAction.update());
9994
9986
  }
9995
9987
  return this;
9996
9988
  },
@@ -10000,11 +9992,11 @@ var Dr = { exports: {} };
10000
9992
  * @param {Function} handler
10001
9993
  * @returns {EventEmitter} this
10002
9994
  */
10003
- on: function(u, f) {
10004
- if (u !== n && f !== n) {
9995
+ on: function(u, d) {
9996
+ if (u !== n && d !== n) {
10005
9997
  var v = this.handlers;
10006
9998
  return w($(u), function(_) {
10007
- v[_] = v[_] || [], v[_].push(f);
9999
+ v[_] = v[_] || [], v[_].push(d);
10008
10000
  }), this;
10009
10001
  }
10010
10002
  },
@@ -10014,11 +10006,11 @@ var Dr = { exports: {} };
10014
10006
  * @param {Function} [handler]
10015
10007
  * @returns {EventEmitter} this
10016
10008
  */
10017
- off: function(u, f) {
10009
+ off: function(u, d) {
10018
10010
  if (u !== n) {
10019
10011
  var v = this.handlers;
10020
10012
  return w($(u), function(_) {
10021
- f ? v[_] && v[_].splice(W(v[_], f), 1) : delete v[_];
10013
+ d ? v[_] && v[_].splice(W(v[_], d), 1) : delete v[_];
10022
10014
  }), this;
10023
10015
  }
10024
10016
  },
@@ -10027,15 +10019,15 @@ var Dr = { exports: {} };
10027
10019
  * @param {String} event
10028
10020
  * @param {Object} data
10029
10021
  */
10030
- emit: function(u, f) {
10031
- this.options.domEvents && ua(u, f);
10022
+ emit: function(u, d) {
10023
+ this.options.domEvents && ua(u, d);
10032
10024
  var v = this.handlers[u] && this.handlers[u].slice();
10033
10025
  if (!(!v || !v.length)) {
10034
- f.type = u, f.preventDefault = function() {
10035
- f.srcEvent.preventDefault();
10026
+ d.type = u, d.preventDefault = function() {
10027
+ d.srcEvent.preventDefault();
10036
10028
  };
10037
10029
  for (var _ = 0; _ < v.length; )
10038
- v[_](f), _++;
10030
+ v[_](d), _++;
10039
10031
  }
10040
10032
  },
10041
10033
  /**
@@ -10046,18 +10038,18 @@ var Dr = { exports: {} };
10046
10038
  this.element && Wi(this, !1), this.handlers = {}, this.session = {}, this.input.destroy(), this.element = null;
10047
10039
  }
10048
10040
  };
10049
- function Wi(u, f) {
10041
+ function Wi(u, d) {
10050
10042
  var v = u.element;
10051
10043
  if (v.style) {
10052
10044
  var _;
10053
10045
  w(u.options.cssProps, function(M, L) {
10054
- _ = lt(v.style, L), f ? (u.oldCssProps[_] = v.style[_], v.style[_] = M) : v.style[_] = u.oldCssProps[_] || "";
10055
- }), f || (u.oldCssProps = {});
10046
+ _ = lt(v.style, L), d ? (u.oldCssProps[_] = v.style[_], v.style[_] = M) : v.style[_] = u.oldCssProps[_] || "";
10047
+ }), d || (u.oldCssProps = {});
10056
10048
  }
10057
10049
  }
10058
- function ua(u, f) {
10050
+ function ua(u, d) {
10059
10051
  var v = e.createEvent("Event");
10060
- v.initEvent(u, !0, !0), v.gesture = f, f.target.dispatchEvent(v);
10052
+ v.initEvent(u, !0, !0), v.gesture = d, d.target.dispatchEvent(v);
10061
10053
  }
10062
10054
  E(Yt, {
10063
10055
  INPUT_START: K,
@@ -10105,8 +10097,8 @@ var Dr = { exports: {} };
10105
10097
  bindFn: g,
10106
10098
  prefixed: lt
10107
10099
  });
10108
- var da = typeof t < "u" ? t : typeof self < "u" ? self : {};
10109
- da.Hammer = Yt, typeof n == "function" && n.amd ? n(function() {
10100
+ var fa = typeof t < "u" ? t : typeof self < "u" ? self : {};
10101
+ fa.Hammer = Yt, typeof n == "function" && n.amd ? n(function() {
10110
10102
  return Yt;
10111
10103
  }) : i.exports ? i.exports = Yt : t[s] = Yt;
10112
10104
  })(window, document, "Hammer");
@@ -10239,7 +10231,7 @@ class Kh extends pi {
10239
10231
  this.emit("mouseDoubleClick", D);
10240
10232
  }, l = (D) => {
10241
10233
  this.emit("mouseWheel", D);
10242
- }, d = (D) => {
10234
+ }, f = (D) => {
10243
10235
  this.emit("mouseContextMenu", D);
10244
10236
  }, y = (D) => {
10245
10237
  this.emit("touchStart", D);
@@ -10308,11 +10300,11 @@ class Kh extends pi {
10308
10300
  }, _t = (D) => {
10309
10301
  D.dataTransfer, this.emit("drop", D, D.dataTransfer?.files);
10310
10302
  };
10311
- this.container.addEventListener("mousedown", t, !1), this.container.addEventListener("mouseup", e, !1), this.container.addEventListener("mousemove", s, !1), this.container.addEventListener("mouseover", n, !1), this.container.addEventListener("mouseout", r, !1), this.container.addEventListener("mouseenter", a, !1), this.container.addEventListener("mouseleave", o, !1), this.container.addEventListener("click", h, !1), this.container.addEventListener("dblclick", c, !1), this.container.addEventListener("wheel", l, !1), this.container.addEventListener("contextmenu", d, !1), this.container.addEventListener("touchstart", y, !1), this.container.addEventListener("touchend", w, !1), this.container.addEventListener("touchcancel", m, !1), this.container.addEventListener("touchmove", E, !1), this.container.addEventListener("pointerdown", P, !1), this.container.addEventListener("pointerup", b, !1), this.container.addEventListener("pointercancel", x, !1), this.container.addEventListener("pointermove", g, !1), this.hammer.on("pan", p), this.hammer.on("panstart", C), this.hammer.on("panmove", S), this.hammer.on("panend", F), this.hammer.on("pancancel", z), this.hammer.on("panleft", G), this.hammer.on("panright", $), this.hammer.on("panup", W), this.hammer.on("pandown", st), this.hammer.on("pinch", wt), this.hammer.on("press", lt), this.hammer.on("rotate", ce), this.hammer.on("swipe", qt), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", le), this.hammer.on("swipeup", R), this.hammer.on("swipedown", I), this.hammer.on("tap", N), document.addEventListener("pointerdown", U, !1), this.container instanceof HTMLInputElement && this.container.addEventListener("change", nt, !1), this.container.addEventListener("dragstart", Et, !1), this.container.addEventListener("dragover", ze, !1), this.container.addEventListener("dragenter", Ve, !1), this.container.addEventListener("dragend", K, !1), this.container.addEventListener("drop", _t, !1);
10303
+ this.container.addEventListener("mousedown", t, !1), this.container.addEventListener("mouseup", e, !1), this.container.addEventListener("mousemove", s, !1), this.container.addEventListener("mouseover", n, !1), this.container.addEventListener("mouseout", r, !1), this.container.addEventListener("mouseenter", a, !1), this.container.addEventListener("mouseleave", o, !1), this.container.addEventListener("click", h, !1), this.container.addEventListener("dblclick", c, !1), this.container.addEventListener("wheel", l, !1), this.container.addEventListener("contextmenu", f, !1), this.container.addEventListener("touchstart", y, !1), this.container.addEventListener("touchend", w, !1), this.container.addEventListener("touchcancel", m, !1), this.container.addEventListener("touchmove", E, !1), this.container.addEventListener("pointerdown", P, !1), this.container.addEventListener("pointerup", b, !1), this.container.addEventListener("pointercancel", x, !1), this.container.addEventListener("pointermove", g, !1), this.hammer.on("pan", p), this.hammer.on("panstart", C), this.hammer.on("panmove", S), this.hammer.on("panend", F), this.hammer.on("pancancel", z), this.hammer.on("panleft", G), this.hammer.on("panright", $), this.hammer.on("panup", W), this.hammer.on("pandown", st), this.hammer.on("pinch", wt), this.hammer.on("press", lt), this.hammer.on("rotate", ce), this.hammer.on("swipe", qt), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", le), this.hammer.on("swipeup", R), this.hammer.on("swipedown", I), this.hammer.on("tap", N), document.addEventListener("pointerdown", U, !1), this.container instanceof HTMLInputElement && this.container.addEventListener("change", nt, !1), this.container.addEventListener("dragstart", Et, !1), this.container.addEventListener("dragover", ze, !1), this.container.addEventListener("dragenter", Ve, !1), this.container.addEventListener("dragend", K, !1), this.container.addEventListener("drop", _t, !1);
10312
10304
  const j = () => {
10313
10305
  this.container.removeEventListener("mousedown", t, !1), this.container.removeEventListener("mouseup", e, !1), this.container.removeEventListener("mousemove", s, !1), this.container.removeEventListener("mouseover", n, !1), this.container.removeEventListener("mouseout", r, !1), this.container.removeEventListener("mouseenter", a, !1), this.container.removeEventListener("mouseleave", o, !1), this.container.removeEventListener("click", h, !1), this.container.removeEventListener("dblclick", c, !1), this.container.removeEventListener("wheel", l, !1), this.container.removeEventListener(
10314
10306
  "contextmenu",
10315
- d,
10307
+ f,
10316
10308
  !1
10317
10309
  ), this.container.removeEventListener("touchstart", y, !1), this.container.removeEventListener("touchend", w, !1), this.container.removeEventListener("touchcancel", m, !1), this.container.removeEventListener("touchmove", E, !1), this.container.removeEventListener("pointerdown", P, !1), this.container.removeEventListener("pointerup", b, !1), this.container.removeEventListener("pointercancel", x), this.container.removeEventListener("pointermove", g, !1), this.hammer.off("pan", p), this.hammer.off("panstart", C), this.hammer.off("panmove", S), this.hammer.off("panend", F), this.hammer.off("pancancel", z), this.hammer.off("panleft", G), this.hammer.off("panright", $), this.hammer.off("panup", W), this.hammer.off("pandown", st), this.hammer.off("pinch", wt), this.hammer.off("press", lt), this.hammer.off("rotate", ce), this.hammer.off("swipe", qt), this.hammer.off("swipeleft", se), this.hammer.off("swiperight", le), this.hammer.off("swipeup", R), this.hammer.off("swipedown", I), this.hammer.off("tap", N), document.removeEventListener("pointerdown", U, !1), document.removeEventListener("touchstart", U, !1), document.removeEventListener("mousedown", U, !1), this.container instanceof HTMLInputElement && this.container.removeEventListener("change", nt, !1), this.container.removeEventListener("dragstart", Et, !1), this.container.removeEventListener("dragover", ze, !1), this.container.removeEventListener("dragenter", Ve, !1), this.container.removeEventListener("dragend", K, !1), this.container.removeEventListener("drop", _t, !1);
10318
10310
  };
@@ -10524,14 +10516,14 @@ class Kh extends pi {
10524
10516
  h.preventDefault(), h.stopPropagation();
10525
10517
  const c = h.changedTouches[0], l = { ...s };
10526
10518
  s = It(c, this.container);
10527
- const d = {
10519
+ const f = {
10528
10520
  ...s,
10529
10521
  dx: s.x - (l.x || 0),
10530
10522
  dy: s.y - (l.y || 0),
10531
10523
  dStartX: e ? s.x - e.x : 0,
10532
10524
  dStartY: e ? s.y - e.y : 0
10533
10525
  };
10534
- this.setMousePoint(d), t?.move?.(c, d);
10526
+ this.setMousePoint(f), t?.move?.(c, f);
10535
10527
  };
10536
10528
  this.on("touchStart", n);
10537
10529
  const o = () => {
@@ -10703,7 +10695,7 @@ class ic extends pi {
10703
10695
  super(), this.source = t;
10704
10696
  }
10705
10697
  parse() {
10706
- const t = fa(this.source);
10698
+ const t = da(this.source);
10707
10699
  if (t === 0) {
10708
10700
  this.emit("finish");
10709
10701
  return;
@@ -10976,7 +10968,7 @@ const Pn = {
10976
10968
  d44: k.getCSSVar("--distance-44") || "44px"
10977
10969
  /// button-height
10978
10970
  };
10979
- class dt {
10971
+ class ft {
10980
10972
  __color = {
10981
10973
  r: 0,
10982
10974
  // 0 - 255
@@ -11043,14 +11035,14 @@ class dt {
11043
11035
  return `rgba(${this.r},${this.g},${this.b},${Rt(this.a, 6)})`;
11044
11036
  }
11045
11037
  clone() {
11046
- return new dt(this.color);
11038
+ return new ft(this.color);
11047
11039
  }
11048
11040
  copy(t) {
11049
11041
  this.setColor(t.color);
11050
11042
  }
11051
11043
  opposite(t = !1, e = "#000000", s = "#ffffff") {
11052
11044
  if (t)
11053
- return new dt(
11045
+ return new ft(
11054
11046
  this.r * 0.299 + this.g * 0.587 + this.b * 0.114 > 186 ? e : s
11055
11047
  );
11056
11048
  {
@@ -11062,29 +11054,29 @@ class dt {
11062
11054
  lighten(t) {
11063
11055
  t = q(Math.abs(t), 0, 1);
11064
11056
  let { r: e, g: s, b: n, a: r } = this.color;
11065
- return e += (255 - e) * t, s += (255 - s) * t, n += (255 - n) * t, new dt().setRGBA(e, s, n, r);
11057
+ return e += (255 - e) * t, s += (255 - s) * t, n += (255 - n) * t, new ft().setRGBA(e, s, n, r);
11066
11058
  }
11067
11059
  /// t: 0 ~ 1
11068
11060
  darken(t) {
11069
11061
  t = q(Math.abs(t), 0, 1);
11070
11062
  let { r: e, g: s, b: n, a: r } = this.color;
11071
- return e = e * (1 - t), s = s * (1 - t), n = n * (1 - t), new dt().setRGBA(e, s, n, r);
11063
+ return e = e * (1 - t), s = s * (1 - t), n = n * (1 - t), new ft().setRGBA(e, s, n, r);
11072
11064
  }
11073
11065
  // 渐变色
11074
11066
  static gradient(t, e, s) {
11075
11067
  try {
11076
11068
  const n = $s(t), r = $s(e);
11077
- return new dt().setRGB(
11069
+ return new ft().setRGB(
11078
11070
  (r.r - n.r) * s + n.r,
11079
11071
  (r.g - n.g) * s + n.g,
11080
11072
  (r.b - n.b) * s + n.b
11081
11073
  );
11082
11074
  } catch {
11083
- return new dt(e);
11075
+ return new ft(e);
11084
11076
  }
11085
11077
  }
11086
11078
  static random() {
11087
- return new dt(Math.random() * 16777215);
11079
+ return new ft(Math.random() * 16777215);
11088
11080
  }
11089
11081
  get hsv() {
11090
11082
  const { r: t, g: e, b: s, a: n } = this.color, r = Math.max(t, e, s), a = Math.min(t, e, s), o = r - a;
@@ -11119,7 +11111,7 @@ class dt {
11119
11111
  }
11120
11112
  }
11121
11113
  function _s(i, t) {
11122
- return new dt(i, t);
11114
+ return new ft(i, t);
11123
11115
  }
11124
11116
  function $s(i) {
11125
11117
  const t = Object.prototype.hasOwnProperty.call(i, "a") ? q(i.a, 0, 1) : 1;
@@ -11127,7 +11119,7 @@ function $s(i) {
11127
11119
  return i.r = q(Math.round(i.r), 0, 255), i.g = q(Math.round(i.g), 0, 255), i.b = q(Math.round(i.b), 0, 255), i.a = t, i;
11128
11120
  if (Object.prototype.hasOwnProperty.call(i, "h") && Object.prototype.hasOwnProperty.call(i, "s") && Object.prototype.hasOwnProperty.call(i, "v")) {
11129
11121
  let s = q(i.h, 0, 360), n = q(i.s, 0, 1), r = q(i.v, 0, 1);
11130
- const a = Math.floor(s / 60) % 6, o = s / 60 - Math.floor(s / 60), h = r * (1 - n), c = r * (1 - o * n), l = r * (1 - (1 - o) * n), d = [
11122
+ const a = Math.floor(s / 60) % 6, o = s / 60 - Math.floor(s / 60), h = r * (1 - n), c = r * (1 - o * n), l = r * (1 - (1 - o) * n), f = [
11131
11123
  [r, l, h],
11132
11124
  [c, r, h],
11133
11125
  [h, r, l],
@@ -11136,9 +11128,9 @@ function $s(i) {
11136
11128
  [r, h, c]
11137
11129
  ][a];
11138
11130
  return {
11139
- r: Math.round(d[0] * 255),
11140
- g: Math.round(d[1] * 255),
11141
- b: Math.round(d[2] * 255),
11131
+ r: Math.round(f[0] * 255),
11132
+ g: Math.round(f[1] * 255),
11133
+ b: Math.round(f[2] * 255),
11142
11134
  a: t
11143
11135
  };
11144
11136
  }
@@ -11198,11 +11190,11 @@ const rc = [
11198
11190
  borderColor: "",
11199
11191
  inputColor: ""
11200
11192
  };
11201
- ye.buttonColor = new dt(ye.saveRowColor).darken(0.1).toString();
11202
- ye.borderColor = new dt(
11193
+ ye.buttonColor = new ft(ye.saveRowColor).darken(0.1).toString();
11194
+ ye.borderColor = new ft(
11203
11195
  ye.backgroundColor
11204
11196
  ).lighten(0.07).toString();
11205
- ye.inputColor = new dt(
11197
+ ye.inputColor = new ft(
11206
11198
  ye.backgroundColor
11207
11199
  ).lighten(0.085).toString();
11208
11200
  function Ai(i = window.location.href) {
@@ -11412,12 +11404,12 @@ function Rl(i, t) {
11412
11404
  headers: h = {},
11413
11405
  withCredentials: c = !1,
11414
11406
  responseType: l = "json",
11415
- timeout: d = 3e4
11407
+ timeout: f = 3e4
11416
11408
  } = t || {}, y = lc();
11417
- y.timeout = d, y.responseType = l, y.onreadystatechange = function(x) {
11409
+ y.timeout = f, y.responseType = l, y.onreadystatechange = function(x) {
11418
11410
  y.readyState === 4 && (y.status === 200 ? e(y.response) : s(y.statusText));
11419
11411
  }, y.ontimeout = () => {
11420
- s(`${i} is timed out for ${d}ms.`);
11412
+ s(`${i} is timed out for ${f}ms.`);
11421
11413
  }, y.addEventListener("load", (x) => t?.load?.(x, y), !1), y.addEventListener(
11422
11414
  "loadstart",
11423
11415
  (x) => t?.loadstart?.(x, y),
@@ -11487,8 +11479,8 @@ async function Ol(i) {
11487
11479
  case "FILE":
11488
11480
  const h = r;
11489
11481
  if (s)
11490
- for (let d = 0, y = h.files?.length || 0; d < y; d++) {
11491
- const w = h.files?.[d];
11482
+ for (let f = 0, y = h.files?.length || 0; f < y; f++) {
11483
+ const w = h.files?.[f];
11492
11484
  if (w) {
11493
11485
  const m = await Si(
11494
11486
  w,
@@ -11582,9 +11574,9 @@ const Mi = (i, t) => {
11582
11574
  if (!o.target)
11583
11575
  return t("no reader target", null);
11584
11576
  const h = o.target.result, c = Bn(h), l = new Blob([h]);
11585
- kr(l, (d, y) => {
11577
+ kr(l, (f, y) => {
11586
11578
  if (!y)
11587
- return t(d, null);
11579
+ return t(f, null);
11588
11580
  Mi(y, (w, m) => {
11589
11581
  if (!m)
11590
11582
  return t(w, null);
@@ -11704,10 +11696,10 @@ const Mi = (i, t) => {
11704
11696
  ], o = (4 - t * 3 % 4) % 4, h = i.data;
11705
11697
  let c = "";
11706
11698
  const l = t << 2;
11707
- let d = e;
11699
+ let f = e;
11708
11700
  const y = String.fromCharCode;
11709
11701
  do {
11710
- const m = l * (d - 1);
11702
+ const m = l * (f - 1);
11711
11703
  let E = "";
11712
11704
  for (let P = 0; P < t; P++) {
11713
11705
  const b = P << 2;
@@ -11716,7 +11708,7 @@ const Mi = (i, t) => {
11716
11708
  for (let P = 0; P < o; P++)
11717
11709
  E += String.fromCharCode(0);
11718
11710
  c += E;
11719
- } while (--d);
11711
+ } while (--f);
11720
11712
  function w(m) {
11721
11713
  if (!window.btoa)
11722
11714
  throw "btoa undefined";
@@ -11926,7 +11918,7 @@ const Hl = (i) => {
11926
11918
  n[h] = t[h], n[h + 1] = t[h + 1], n[h + 2] = t[h + 2], n[h + 3] = 255;
11927
11919
  }
11928
11920
  return new ImageData(n, e, s);
11929
- }, du = (i) => {
11921
+ }, fu = (i) => {
11930
11922
  const { data: t, width: e, height: s } = i, n = new Uint8ClampedArray(t.length);
11931
11923
  for (let a = 0; a < s; a++)
11932
11924
  for (let o = 0; o < e; o++) {
@@ -11947,22 +11939,22 @@ const Hl = (i) => {
11947
11939
  }
11948
11940
  }
11949
11941
  return new ImageData(n, e, s);
11950
- }, fu = (i, t, e, s, n, r = !1, a) => {
11942
+ }, du = (i, t, e, s, n, r = !1, a) => {
11951
11943
  const { data: o, width: h, height: c } = i;
11952
- let l = n, d = s, y = t, w = e;
11953
- if (l < 0 ? l = 0 : l > h && (l = h), d < 0 ? d = 0 : d > c && (d = c), y < 1 ? y = 1 : y > h && (y = h), w < 1 ? w = 1 : w > c && (w = c), l + y > h && (y = h - l), d + w > c && (w = c - d), r) {
11944
+ let l = n, f = s, y = t, w = e;
11945
+ if (l < 0 ? l = 0 : l > h && (l = h), f < 0 ? f = 0 : f > c && (f = c), y < 1 ? y = 1 : y > h && (y = h), w < 1 ? w = 1 : w > c && (w = c), l + y > h && (y = h - l), f + w > c && (w = c - f), r) {
11954
11946
  const m = new Uint8ClampedArray(o.length);
11955
11947
  for (let P = 0; P < c; P++)
11956
11948
  for (let b = 0; b < h; b++) {
11957
11949
  const x = (P * h + b) * 4;
11958
- b >= l && b <= l + y && P >= d && P <= d + w ? (m[x] = o[x], m[x + 1] = o[x + 1], m[x + 2] = o[x + 2], m[x + 3] = o[x + 3]) : (m[x] = 255, m[x + 1] = 255, m[x + 2] = 255, m[x + 3] = a && ["JPG", "JPEG"].includes(a.toUpperCase()) ? 255 : 0);
11950
+ b >= l && b <= l + y && P >= f && P <= f + w ? (m[x] = o[x], m[x + 1] = o[x + 1], m[x + 2] = o[x + 2], m[x + 3] = o[x + 3]) : (m[x] = 255, m[x + 1] = 255, m[x + 2] = 255, m[x + 3] = a && ["JPG", "JPEG"].includes(a.toUpperCase()) ? 255 : 0);
11959
11951
  }
11960
11952
  return new ImageData(m, h, c);
11961
11953
  } else {
11962
11954
  const m = new Uint8ClampedArray(y * w * 4);
11963
- for (let P = d; P <= d + w; P++)
11955
+ for (let P = f; P <= f + w; P++)
11964
11956
  for (let b = l; b <= l + y; b++) {
11965
- const x = ((P - d) * y + b - l) * 4, g = (P * h + b) * 4;
11957
+ const x = ((P - f) * y + b - l) * 4, g = (P * h + b) * 4;
11966
11958
  m[x] = o[g], m[x + 1] = o[g + 1], m[x + 2] = o[g + 2], m[x + 3] = o[g + 3];
11967
11959
  }
11968
11960
  return new ImageData(m, y, w);
@@ -11973,17 +11965,17 @@ const Hl = (i) => {
11973
11965
  o > Math.floor(r / 2) && (o = Math.floor(r / 2)), o > Math.floor(a / 2) && (o = Math.floor(a / 2)), o < 0 && (o = 0);
11974
11966
  const h = new Uint8ClampedArray(n.length);
11975
11967
  for (let l = 0; l < a; l++)
11976
- for (let d = 0; d < r; d++) {
11977
- const y = (l * r + d) * 4;
11968
+ for (let f = 0; f < r; f++) {
11969
+ const y = (l * r + f) * 4;
11978
11970
  let w = -1;
11979
- d < o ? l < o ? w = Math.sqrt(
11980
- Math.pow(o - d - 1, 2) + Math.pow(o - l - 1, 2)
11971
+ f < o ? l < o ? w = Math.sqrt(
11972
+ Math.pow(o - f - 1, 2) + Math.pow(o - l - 1, 2)
11981
11973
  ) : l > a - o - 1 && (w = Math.sqrt(
11982
- Math.pow(o - d - 1, 2) + Math.pow(l - (a - o), 2)
11983
- )) : d > r - o - 1 && (l < o ? w = Math.sqrt(
11984
- Math.pow(d - (r - o), 2) + Math.pow(o - l - 1, 2)
11974
+ Math.pow(o - f - 1, 2) + Math.pow(l - (a - o), 2)
11975
+ )) : f > r - o - 1 && (l < o ? w = Math.sqrt(
11976
+ Math.pow(f - (r - o), 2) + Math.pow(o - l - 1, 2)
11985
11977
  ) : l > a - o - 1 && (w = Math.sqrt(
11986
- Math.pow(d - (r - o), 2) + Math.pow(l - (a - o), 2)
11978
+ Math.pow(f - (r - o), 2) + Math.pow(l - (a - o), 2)
11987
11979
  ))), Math.round(w) > o ? (h[y] = 255, h[y + 1] = 255, h[y + 2] = 255, h[y + 3] = s || e.toUpperCase() === "PNG" ? 0 : 255) : (h[y] = n[y], h[y + 1] = n[y + 1], h[y + 2] = n[y + 2], h[y + 3] = s || e.toUpperCase() === "PNG" ? n[y + 3] : 255);
11988
11980
  }
11989
11981
  return new ImageData(h, r, a);
@@ -12015,8 +12007,8 @@ const Hl = (i) => {
12015
12007
  for (let c = 0; c < n; c++) {
12016
12008
  const l = (h * n + c) * 4;
12017
12009
  s[l + 3] === 0 ? (a[l] = 255, a[l + 1] = 255, a[l + 2] = 255) : (a[l] = s[l], a[l + 1] = s[l + 1], a[l + 2] = s[l + 2]);
12018
- let d = s[l + 3];
12019
- e ? d = Math.max(Math.min(Math.floor(255 * t), 255), 0) : d = Math.max(Math.min(Math.floor(d + 255 * t), 255), 0), a[l + 3] = d;
12010
+ let f = s[l + 3];
12011
+ e ? f = Math.max(Math.min(Math.floor(255 * t), 255), 0) : f = Math.max(Math.min(Math.floor(f + 255 * t), 255), 0), a[l + 3] = f;
12020
12012
  }
12021
12013
  return new ImageData(a, n, r);
12022
12014
  }, xu = (i, t, e, s) => {
@@ -12025,16 +12017,16 @@ const Hl = (i) => {
12025
12017
  width: h,
12026
12018
  height: c
12027
12019
  } = t;
12028
- let l = e, d = s;
12029
- e + c > a && (l = a - c), s + h > r && (d = r - h);
12020
+ let l = e, f = s;
12021
+ e + c > a && (l = a - c), s + h > r && (f = r - h);
12030
12022
  const y = new Uint8ClampedArray(n.length);
12031
12023
  for (let m = 0; m < a; m++)
12032
12024
  for (let E = 0; E < r; E++) {
12033
12025
  const P = (m * r + E) * 4;
12034
- if (E < d || E > d + h || m <= l || m >= l + c)
12026
+ if (E < f || E > f + h || m <= l || m >= l + c)
12035
12027
  y[P] = n[P], y[P + 1] = n[P + 1], y[P + 2] = n[P + 2], y[P + 3] = n[P + 3];
12036
12028
  else {
12037
- const b = (m * r + E - ((l + 1) * r + (m - (l + 1)) * (r - h)) + h - d - 1) * 4, x = [
12029
+ const b = (m * r + E - ((l + 1) * r + (m - (l + 1)) * (r - h)) + h - f - 1) * 4, x = [
12038
12030
  o[b],
12039
12031
  o[b + 1],
12040
12032
  o[b + 2],
@@ -12051,13 +12043,13 @@ const Hl = (i) => {
12051
12043
  return new ImageData(y, r, a);
12052
12044
  }, wu = (i, t, e, s, n, r = 10) => {
12053
12045
  const { data: a, width: o, height: h } = i;
12054
- let c = n, l = s, d = t, y = e;
12055
- c < 0 ? c = 0 : c > o && (c = o), l < 0 ? l = 0 : l > h && (l = h), d < 1 ? d = 1 : d > o && (d = o), y < 1 ? y = 1 : y > h && (y = h), c + d > o && (d = o - c), l + y > h && (y = h - l);
12046
+ let c = n, l = s, f = t, y = e;
12047
+ c < 0 ? c = 0 : c > o && (c = o), l < 0 ? l = 0 : l > h && (l = h), f < 1 ? f = 1 : f > o && (f = o), y < 1 ? y = 1 : y > h && (y = h), c + f > o && (f = o - c), l + y > h && (y = h - l);
12056
12048
  const w = new Uint8ClampedArray(a.length);
12057
12049
  for (let E = 0; E < h; E++)
12058
12050
  for (let P = 0; P < o; P++) {
12059
12051
  const b = (E * o + P) * 4;
12060
- if (P >= c && P <= c + d && E >= l && E <= l + y) {
12052
+ if (P >= c && P <= c + f && E >= l && E <= l + y) {
12061
12053
  const x = Math.floor((P - c) / r), g = Math.floor((E - l) / r);
12062
12054
  let p = Math.floor(
12063
12055
  r * (x + 1) - r / 2 + c
@@ -12077,9 +12069,9 @@ const Hl = (i) => {
12077
12069
  }) => {
12078
12070
  if (t && e) {
12079
12071
  const { data: s, width: n, height: r } = i, { data: a } = t, o = new Uint8ClampedArray(s.length), { backgroundColor: h, changeIntoColor: c } = e;
12080
- for (let d = 0; d < r; d++)
12072
+ for (let f = 0; f < r; f++)
12081
12073
  for (let y = 0; y < n; y++) {
12082
- const w = (d * n + y) * 4, m = a[w], E = a[w + 1], P = a[w + 2], b = a[w + 3];
12074
+ const w = (f * n + y) * 4, m = a[w], E = a[w + 1], P = a[w + 2], b = a[w + 3];
12083
12075
  m === h.r && E === h.g && P === h.b && b === h.a && c.a !== 0 ? (o[w] = c.r, o[w + 1] = c.g, o[w + 2] = c.b, o[w + 3] = c.a) : (o[w] = s[w], o[w + 1] = s[w + 1], o[w + 2] = s[w + 2], o[w + 3] = s[w + 3]);
12084
12076
  }
12085
12077
  return new ImageData(o, n, r);
@@ -12091,8 +12083,8 @@ const Hl = (i) => {
12091
12083
  for (let h = 0; h < s; h++) {
12092
12084
  const c = (o * s + h) * 4;
12093
12085
  for (let l = 0; l < 3; l++) {
12094
- const d = c + l;
12095
- h === 0 || h === s - 1 || o === 0 || o === n - 1 ? r[d] = e[d] : r[d] = t[0] * e[d - s * 4 - 4] + t[1] * e[d - s * 4] + t[2] * e[d - s * 4 + 4] + t[3] * e[d - 4] + t[4] * e[d] + t[5] * e[d + 4] + t[6] * e[d + s * 4 - 4] + t[7] * e[d + s * 4] + t[8] * e[d + s * 4 + 4];
12086
+ const f = c + l;
12087
+ h === 0 || h === s - 1 || o === 0 || o === n - 1 ? r[f] = e[f] : r[f] = t[0] * e[f - s * 4 - 4] + t[1] * e[f - s * 4] + t[2] * e[f - s * 4 + 4] + t[3] * e[f - 4] + t[4] * e[f] + t[5] * e[f + 4] + t[6] * e[f + s * 4 - 4] + t[7] * e[f + s * 4] + t[8] * e[f + s * 4 + 4];
12096
12088
  }
12097
12089
  r[c + 3] = e[c + 3];
12098
12090
  }
@@ -12169,7 +12161,7 @@ const Hl = (i) => {
12169
12161
  return t += "]", t;
12170
12162
  }
12171
12163
  };
12172
- }, dc = function() {
12164
+ }, fc = function() {
12173
12165
  let i = 0, t = 0, e = 0, s = "";
12174
12166
  const n = function(a) {
12175
12167
  if (!(a < 0)) {
@@ -12204,17 +12196,17 @@ const Hl = (i) => {
12204
12196
  return s;
12205
12197
  }
12206
12198
  };
12207
- }, fc = function(i, t, e) {
12199
+ }, dc = function(i, t, e) {
12208
12200
  const s = new Array(i * i), n = function(o) {
12209
12201
  const h = o;
12210
12202
  let c = 0, l = 0;
12211
12203
  return {
12212
- write(d, y) {
12213
- if (d >>> y)
12204
+ write(f, y) {
12205
+ if (f >>> y)
12214
12206
  throw new Error("length over");
12215
12207
  for (; c + y >= 8; )
12216
- h.writeByte(255 & (d << c | l)), y -= 8 - c, d >>>= 8 - c, l = 0, c = 0;
12217
- l = d << c | l, c = c + y;
12208
+ h.writeByte(255 & (f << c | l)), y -= 8 - c, f >>>= 8 - c, l = 0, c = 0;
12209
+ l = f << c | l, c = c + y;
12218
12210
  },
12219
12211
  flush() {
12220
12212
  c > 0 && h.writeByte(l);
@@ -12223,18 +12215,18 @@ const Hl = (i) => {
12223
12215
  }, r = function(o) {
12224
12216
  const h = 1 << o, c = (1 << o) + 1;
12225
12217
  let l = o + 1;
12226
- const d = a();
12218
+ const f = a();
12227
12219
  for (let P = 0; P < h; P++)
12228
- d.add(String.fromCharCode(P));
12229
- d.add(String.fromCharCode(h)), d.add(String.fromCharCode(c));
12220
+ f.add(String.fromCharCode(P));
12221
+ f.add(String.fromCharCode(h)), f.add(String.fromCharCode(c));
12230
12222
  const y = Or(), w = n(y);
12231
12223
  w.write(h, l);
12232
12224
  let m = 0, E = String.fromCharCode(s[m]);
12233
12225
  for (m += 1; m < s.length; ) {
12234
12226
  const P = String.fromCharCode(s[m]);
12235
- m += 1, d.contains(E + P) ? E = E + P : (w.write(d.indexOf(E), l), d.size() < 4095 && (d.size() == 1 << l && (l += 1), d.add(E + P)), E = P);
12227
+ m += 1, f.contains(E + P) ? E = E + P : (w.write(f.indexOf(E), l), f.size() < 4095 && (f.size() == 1 << l && (l += 1), f.add(E + P)), E = P);
12236
12228
  }
12237
- return w.write(d.indexOf(E), l), w.write(c, l), w.flush(), y.toByteArray();
12229
+ return w.write(f.indexOf(E), l), w.write(c, l), w.flush(), y.toByteArray();
12238
12230
  }, a = function() {
12239
12231
  const o = {};
12240
12232
  let h = 0;
@@ -12260,7 +12252,7 @@ const Hl = (i) => {
12260
12252
  s[h * i + o] = c;
12261
12253
  },
12262
12254
  write(o) {
12263
- o.writeString("GIF87a"), o.writeShort(i), o.writeShort(i), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(de("0x" + t[1] + t[2])), o.writeByte(de("0x" + t[3] + t[4])), o.writeByte(de("0x" + t[5] + t[6])), o.writeByte(de("0x" + e[1] + e[2])), o.writeByte(de("0x" + e[3] + e[4])), o.writeByte(de("0x" + e[5] + e[6])), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(i), o.writeShort(i), o.writeByte(0);
12255
+ o.writeString("GIF87a"), o.writeShort(i), o.writeShort(i), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(fe("0x" + t[1] + t[2])), o.writeByte(fe("0x" + t[3] + t[4])), o.writeByte(fe("0x" + t[5] + t[6])), o.writeByte(fe("0x" + e[1] + e[2])), o.writeByte(fe("0x" + e[3] + e[4])), o.writeByte(fe("0x" + e[5] + e[6])), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(i), o.writeShort(i), o.writeByte(0);
12264
12256
  const h = 2, c = r(h);
12265
12257
  o.writeByte(h);
12266
12258
  let l = 0;
@@ -12270,13 +12262,13 @@ const Hl = (i) => {
12270
12262
  }
12271
12263
  };
12272
12264
  }, mc = function(i, t, e, s) {
12273
- const n = fc(i, t, e);
12265
+ const n = dc(i, t, e);
12274
12266
  for (let c = 0; c < i; c++)
12275
12267
  for (let l = 0; l < i; l++)
12276
12268
  n.setPixel(l, c, s(l, c));
12277
12269
  const r = Or();
12278
12270
  n.write(r);
12279
- const a = dc(), o = r.toByteArray();
12271
+ const a = fc(), o = r.toByteArray();
12280
12272
  for (let c = 0, l = o.length; c < l; c++)
12281
12273
  a.writeByte(o[c]);
12282
12274
  a.flush();
@@ -12977,30 +12969,30 @@ class oe {
12977
12969
  static createBytes(t, e) {
12978
12970
  let s = 0, n = 0, r = 0;
12979
12971
  const a = new Array(e.length), o = new Array(e.length);
12980
- for (let d = 0; d < e.length; d++) {
12981
- const y = e[d].dataCount, w = e[d].totalCount - y;
12982
- n = Math.max(n, y), r = Math.max(r, w), a[d] = new Array(y);
12983
- for (let b = 0; b < a[d].length; b++)
12984
- a[d][b] = 255 & t.buffer[b + s];
12972
+ for (let f = 0; f < e.length; f++) {
12973
+ const y = e[f].dataCount, w = e[f].totalCount - y;
12974
+ n = Math.max(n, y), r = Math.max(r, w), a[f] = new Array(y);
12975
+ for (let b = 0; b < a[f].length; b++)
12976
+ a[f][b] = 255 & t.buffer[b + s];
12985
12977
  s += y;
12986
- const m = H.getErrorCorrectPolynomial(w), P = new xe(a[d], m.getLength() - 1).mod(m);
12987
- o[d] = new Array(m.getLength() - 1);
12988
- for (let b = 0; b < o[d].length; b++) {
12989
- const x = b + P.getLength() - o[d].length;
12990
- o[d][b] = x >= 0 ? P.get(x) : 0;
12978
+ const m = H.getErrorCorrectPolynomial(w), P = new xe(a[f], m.getLength() - 1).mod(m);
12979
+ o[f] = new Array(m.getLength() - 1);
12980
+ for (let b = 0; b < o[f].length; b++) {
12981
+ const x = b + P.getLength() - o[f].length;
12982
+ o[f][b] = x >= 0 ? P.get(x) : 0;
12991
12983
  }
12992
12984
  }
12993
12985
  let h = 0;
12994
- for (let d = 0; d < e.length; d++)
12995
- h += e[d].totalCount;
12986
+ for (let f = 0; f < e.length; f++)
12987
+ h += e[f].totalCount;
12996
12988
  const c = new Array(h);
12997
12989
  let l = 0;
12998
- for (let d = 0; d < n; d++)
12990
+ for (let f = 0; f < n; f++)
12999
12991
  for (let y = 0; y < e.length; y++)
13000
- d < a[y].length && (c[l++] = a[y][d]);
13001
- for (let d = 0; d < r; d++)
12992
+ f < a[y].length && (c[l++] = a[y][f]);
12993
+ for (let f = 0; f < r; f++)
13002
12994
  for (let y = 0; y < e.length; y++)
13003
- d < o[y].length && (c[l++] = o[y][d]);
12995
+ f < o[y].length && (c[l++] = o[y][f]);
13004
12996
  return c;
13005
12997
  }
13006
12998
  }
@@ -13008,24 +13000,24 @@ const An = Math.ceil, Fe = Math.floor, Dn = Math.round;
13008
13000
  function vu(i, t) {
13009
13001
  const e = On(i), s = t?.ecc || "H", n = t?.size || 256, r = -1, a = t?.padding || 0, o = t?.color || "#000000", h = t?.background || "#ffffff", c = new oe(r, s);
13010
13002
  c.addData(e), c.make();
13011
- const l = c.getModuleCount(), d = (n - a * 2) / l, y = a, w = n - a;
13003
+ const l = c.getModuleCount(), f = (n - a * 2) / l, y = a, w = n - a;
13012
13004
  return mc(n, o, h, function(m, E) {
13013
13005
  if (y <= m && m < w && y <= E && E < w) {
13014
- const P = Fe((m - y) / d), b = Fe((E - y) / d);
13006
+ const P = Fe((m - y) / f), b = Fe((E - y) / f);
13015
13007
  return c.isDark(b, P) ? 0 : 1;
13016
13008
  } else
13017
13009
  return 1;
13018
13010
  });
13019
13011
  }
13020
13012
  function Su(i, t) {
13021
- const e = t.x || 0, s = t.y || 0, n = On(i), r = t.ctx, a = t.ecc || "H", o = typeof t.size == "number" ? Fe(t.size) : 256, h = t.padding || 0, c = -1, l = t.color || "#000000", d = t.background || "#ffffff", y = new oe(c, a);
13013
+ const e = t.x || 0, s = t.y || 0, n = On(i), r = t.ctx, a = t.ecc || "H", o = typeof t.size == "number" ? Fe(t.size) : 256, h = t.padding || 0, c = -1, l = t.color || "#000000", f = t.background || "#ffffff", y = new oe(c, a);
13022
13014
  y.addData(n), y.make();
13023
13015
  const w = y.getModuleCount(), m = (o - h * 2) / w;
13024
- r.fillStyle = d, r.fillRect(e, s, o, o);
13016
+ r.fillStyle = f, r.fillRect(e, s, o, o);
13025
13017
  for (let E = 0; E < w; E++)
13026
13018
  for (let P = 0; P < w; P++) {
13027
13019
  const b = An((P + 1) * m) - Fe(P * m), x = An((E + 1) * m) - Fe(E * m);
13028
- r.fillStyle = y.isDark(E, P) ? l : d, r.fillRect(
13020
+ r.fillStyle = y.isDark(E, P) ? l : f, r.fillRect(
13029
13021
  e + Dn(P * m) + h,
13030
13022
  s + Dn(E * m) + h,
13031
13023
  b,
@@ -13388,7 +13380,7 @@ class gc extends ic {
13388
13380
  n = {}, e.style && Js(e.style, n), n.offset = n.offset || e.offset, n.color = n["stop-color"] || e["stop-color"], n.opacity = n["stop-opacity"] || e["stop-opacity"], ~(n.offset + "").indexOf("%") ? n.offset = parseFloat(n.offset) : n.offset = parseFloat(n.offset) * 100, n.offset = +n.offset.toFixed(2), this.grad.stops.push(n);
13389
13381
  break;
13390
13382
  case "linearGradient":
13391
- this.grad.angle = (360 + di(
13383
+ this.grad.angle = (360 + fi(
13392
13384
  parseFloat(e.x1),
13393
13385
  parseFloat(e.y1),
13394
13386
  parseFloat(e.x2),
@@ -13433,12 +13425,12 @@ class gc extends ic {
13433
13425
  this.items.push(this.currentItem);
13434
13426
  }
13435
13427
  }
13436
- function di(i, t, e, s, n, r) {
13428
+ function fi(i, t, e, s, n, r) {
13437
13429
  if (typeof n > "u" || typeof r > "u") {
13438
13430
  const a = i - e, o = t - s;
13439
13431
  return !a && !o ? 0 : (180 + Math.atan2(-o, -a) * 180 / Math.PI + 360) % 360;
13440
13432
  } else
13441
- return di(i, t, n, r) - di(e, s, n, r);
13433
+ return fi(i, t, n, r) - fi(e, s, n, r);
13442
13434
  }
13443
13435
  function Js(i, t, e) {
13444
13436
  const s = (i + "").split(";"), n = /^\s+|\s+$/g;
@@ -13550,7 +13542,7 @@ class Eu {
13550
13542
  e.x,
13551
13543
  e.y,
13552
13544
  tn(e.getAttrs(), (n, r) => typeof r == "string")
13553
- ) : (e.el = gt.createSvgPath(e.toSVGPathD(), e.id), k.insert(this.rootEl, e.el))), e.followMouse && (!ds(e.x, this.app.mousePoint.x, 5) || !ds(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
13545
+ ) : (e.el = gt.createSvgPath(e.toSVGPathD(), e.id), k.insert(this.rootEl, e.el))), e.followMouse && (!fs(e.x, this.app.mousePoint.x, 5) || !fs(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
13554
13546
  {
13555
13547
  x: e.targetToAfterDragFree.targetX,
13556
13548
  y: e.targetToAfterDragFree.targetY
@@ -13687,22 +13679,22 @@ class Tu extends ct {
13687
13679
  this.width = this.svgWidth, this.height = this.svgHeight;
13688
13680
  continue;
13689
13681
  }
13690
- if (r.type != "path" || !fe.isSVGPath(r.path))
13682
+ if (r.type != "path" || !de.isSVGPath(r.path))
13691
13683
  continue;
13692
13684
  const a = {};
13693
13685
  for (const l in r)
13694
13686
  l === "type" || l === "path" || l === "transform" || (a[l] = r[l]);
13695
- const o = fe.absolutizeSVGPath(
13696
- fe.parseSVGPath(r.path)
13687
+ const o = de.absolutizeSVGPath(
13688
+ de.parseSVGPath(r.path)
13697
13689
  ), h = [];
13698
13690
  let c = [];
13699
- for (let l = 0, d = o.length; l < d; l++) {
13691
+ for (let l = 0, f = o.length; l < f; l++) {
13700
13692
  const y = o[l];
13701
13693
  c.push(y), y[0].toLowerCase() == "z" && (h.push(c), c = []);
13702
13694
  }
13703
13695
  c.length && h.push(c), h.forEach((l) => {
13704
- const d = _r(r.transform ?? "");
13705
- d.scale(
13696
+ const f = _r(r.transform ?? "");
13697
+ f.scale(
13706
13698
  this.width && this.svgWidth ? this.width / this.svgWidth : 1
13707
13699
  ), this.addShape(
13708
13700
  new V({
@@ -13712,7 +13704,7 @@ class Tu extends ct {
13712
13704
  ...t?.attrs || {}
13713
13705
  },
13714
13706
  d: l,
13715
- originMatrix: d
13707
+ originMatrix: f
13716
13708
  })
13717
13709
  );
13718
13710
  });
@@ -13820,8 +13812,8 @@ class Qt extends V {
13820
13812
  if (Math.sqrt(e * e + s * s) < this.radius + t.radius) {
13821
13813
  const r = Math.atan2(s, e), a = { x: 0, y: 0 }, o = kt(-r, e, s), h = kt(-r, this.vx, this.vy), c = kt(-r, t.vx, t.vy), l = h.x - c.x;
13822
13814
  h.x = ((this.mass - t.mass) * h.x + 2 * t.mass * c.x) / (this.mass + t.mass), c.x = l + h.x;
13823
- const d = Math.abs(h.x) + Math.abs(c.x), y = this.radius + t.radius - Math.abs(a.x - o.x);
13824
- a.x += h.x / d * y, o.x += c.x / d * y;
13815
+ const f = Math.abs(h.x) + Math.abs(c.x), y = this.radius + t.radius - Math.abs(a.x - o.x);
13816
+ a.x += h.x / f * y, o.x += c.x / f * y;
13825
13817
  const w = kt(r, a.x, a.y), m = kt(r, o.x, o.y);
13826
13818
  t.x = this.x + m.x, t.y = this.y + m.y, this.x = this.x + w.x, this.y = this.y + w.y;
13827
13819
  const E = kt(r, h.x, h.y), P = kt(r, c.x, c.y);
@@ -13905,11 +13897,11 @@ class yc extends V {
13905
13897
  let n = !1;
13906
13898
  const r = 2e-10;
13907
13899
  for (let a = 0, o = s - 1; a < s; o = a, a++) {
13908
- const h = this.points[a].x, c = this.points[a].y, l = this.points[o].x, d = this.points[o].y;
13909
- if (h === t && c === e || l === t && d === e || e === c && e === d)
13900
+ const h = this.points[a].x, c = this.points[a].y, l = this.points[o].x, f = this.points[o].y;
13901
+ if (h === t && c === e || l === t && f === e || e === c && e === f)
13910
13902
  return !0;
13911
- if (e >= c && e < d || e < c && e >= d) {
13912
- const y = (l - h) / (d - c), w = h + y * (e - c);
13903
+ if (e >= c && e < f || e < c && e >= f) {
13904
+ const y = (l - h) / (f - c), w = h + y * (e - c);
13913
13905
  if (w === t || Math.abs(w - t) < r)
13914
13906
  return !0;
13915
13907
  w > t && (n = !n);
@@ -14469,7 +14461,7 @@ class Fu extends ct {
14469
14461
  this.value = r(
14470
14462
  typeof t?.defaultValue == "number" ? q(t.defaultValue, e, s) : e
14471
14463
  );
14472
- const a = this.value / (s - e), o = t?.barWidth || 100, h = t?.barHeight || 4, c = t?.handleRadius || 10, l = h * 0.5, d = t?.barColor || Pn.colorGrayF5, y = t?.handleColor || Pn.colorPrimary;
14464
+ const a = this.value / (s - e), o = t?.barWidth || 100, h = t?.barHeight || 4, c = t?.handleRadius || 10, l = h * 0.5, f = t?.barColor || Pn.colorGrayF5, y = t?.handleColor || Pn.colorPrimary;
14473
14465
  this.backgroundRect = new ee({
14474
14466
  x: this.x,
14475
14467
  y: this.y,
@@ -14477,7 +14469,7 @@ class Fu extends ct {
14477
14469
  height: h,
14478
14470
  borderRadius: l,
14479
14471
  attrs: {
14480
- fill: d
14472
+ fill: f
14481
14473
  },
14482
14474
  enableDrag: !1,
14483
14475
  independentTransformInGroup: !0
@@ -14805,7 +14797,7 @@ class Xu extends ct {
14805
14797
  angle: h,
14806
14798
  spread: c,
14807
14799
  startVelocity: l,
14808
- decay: d,
14800
+ decay: f,
14809
14801
  gravity: y,
14810
14802
  drift: w,
14811
14803
  ticks: m,
@@ -14853,7 +14845,7 @@ class Xu extends ct {
14853
14845
  tiltAngle: (Math.random() * (0.75 - 0.25) + 0.25) * Math.PI,
14854
14846
  tick: 0,
14855
14847
  totalTicks: m,
14856
- decay: d,
14848
+ decay: f,
14857
14849
  drift: w,
14858
14850
  random: Math.random() + 2,
14859
14851
  tiltSin: 0,
@@ -14961,12 +14953,12 @@ class Fr {
14961
14953
  const h = this.shapes[a].getAttr("fill", "none"), c = this.shapes[a + 1].getAttr("fill", "none");
14962
14954
  typeof h == "string" && typeof c == "string" && s.setAttr(
14963
14955
  "fill",
14964
- dt.gradient(h, c, o).toString()
14956
+ ft.gradient(h, c, o).toString()
14965
14957
  );
14966
- const l = this.shapes[a].getAttr("stroke", "none"), d = this.shapes[a + 1].getAttr("stroke", "none");
14967
- return typeof l == "string" && typeof d == "string" && s.setAttr(
14958
+ const l = this.shapes[a].getAttr("stroke", "none"), f = this.shapes[a + 1].getAttr("stroke", "none");
14959
+ return typeof l == "string" && typeof f == "string" && s.setAttr(
14968
14960
  "stroke",
14969
- dt.gradient(l, d, o).toString()
14961
+ ft.gradient(l, f, o).toString()
14970
14962
  ), s;
14971
14963
  };
14972
14964
  }
@@ -15023,7 +15015,7 @@ class Fr {
15023
15015
  throw new Error("no dividing by zero, please");
15024
15016
  const a = [], o = 360 / r;
15025
15017
  for (let h = 0; h < r; h += 1) {
15026
- const c = o * h * Math.PI / 180, l = t + 2 * s * Math.cos(c), d = e + 2 * s * Math.sin(c);
15018
+ const c = o * h * Math.PI / 180, l = t + 2 * s * Math.cos(c), f = e + 2 * s * Math.sin(c);
15027
15019
  a.push(
15028
15020
  new hi({
15029
15021
  x: t,
@@ -15034,12 +15026,12 @@ class Fr {
15034
15026
  largeArcFlag: 1,
15035
15027
  sweepFlag: 1,
15036
15028
  toX: l,
15037
- toY: d
15029
+ toY: f
15038
15030
  })
15039
15031
  ), a.push(
15040
15032
  new hi({
15041
15033
  x: l,
15042
- y: d,
15034
+ y: f,
15043
15035
  rx: s,
15044
15036
  ry: n,
15045
15037
  xAxisRotate: o * h,
@@ -15144,7 +15136,7 @@ class zu {
15144
15136
  for (let e of this.shapes) {
15145
15137
  if (!e.isShow)
15146
15138
  continue;
15147
- if (this.ctx.save(), e.frameStart(this.app.mousePoint), k.attrsToCanvas(this.ctx, e.getAttrs()), e.followMouse && (!ds(e.x, this.app.mousePoint.x, 5) || !ds(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
15139
+ if (this.ctx.save(), e.frameStart(this.app.mousePoint), k.attrsToCanvas(this.ctx, e.getAttrs()), e.followMouse && (!fs(e.x, this.app.mousePoint.x, 5) || !fs(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
15148
15140
  {
15149
15141
  x: e.targetToAfterDragFree.targetX,
15150
15142
  y: e.targetToAfterDragFree.targetY
@@ -15195,7 +15187,7 @@ class zu {
15195
15187
  move: () => {
15196
15188
  if (this.isMouseDown) {
15197
15189
  for (let c = 0; c < n; c++) {
15198
- const l = Math.random() * Math.PI * 2, d = Math.random() * s, y = this.app.mousePoint.x + Math.cos(l) * d | 0, w = this.app.mousePoint.y + Math.sin(l) * d | 0, m = (y + w * a.width) * 4;
15190
+ const l = Math.random() * Math.PI * 2, f = Math.random() * s, y = this.app.mousePoint.x + Math.cos(l) * f | 0, w = this.app.mousePoint.y + Math.sin(l) * f | 0, m = (y + w * a.width) * 4;
15199
15191
  o[m] = h.r, o[m + 1] = h.g, o[m + 2] = h.b, o[m + 3] = 255;
15200
15192
  }
15201
15193
  this.ctx.putImageData(a);
@@ -15465,55 +15457,55 @@ function Ku(i) {
15465
15457
  function Qu(i) {
15466
15458
  wx.uploadImage(i);
15467
15459
  }
15468
- function td(i) {
15460
+ function tf(i) {
15469
15461
  wx.downloadImage(i);
15470
15462
  }
15471
- function ed(i) {
15463
+ function ef(i) {
15472
15464
  wx.getLocalImgData(i);
15473
15465
  }
15474
- function sd() {
15466
+ function sf() {
15475
15467
  wx.startRecord();
15476
15468
  }
15477
- function id(i) {
15469
+ function nf(i) {
15478
15470
  wx.stopRecord(i);
15479
15471
  }
15480
- function nd(i) {
15472
+ function rf(i) {
15481
15473
  wx.onVoiceRecordEnd(i);
15482
15474
  }
15483
- function rd(i) {
15475
+ function af(i) {
15484
15476
  wx.playVoice(i);
15485
15477
  }
15486
- function ad(i) {
15478
+ function of(i) {
15487
15479
  wx.pauseVoice(i);
15488
15480
  }
15489
- function od(i) {
15481
+ function hf(i) {
15490
15482
  wx.stopVoice(i);
15491
15483
  }
15492
- function hd(i) {
15484
+ function cf(i) {
15493
15485
  wx.onVoicePlayEnd(i);
15494
15486
  }
15495
- function cd(i) {
15487
+ function lf(i) {
15496
15488
  wx.uploadVoice(i);
15497
15489
  }
15498
- function ld(i) {
15490
+ function uf(i) {
15499
15491
  wx.downloadVoice(i);
15500
15492
  }
15501
- function ud(i) {
15493
+ function ff(i) {
15502
15494
  wx.translateVoice(i);
15503
15495
  }
15504
- function dd(i) {
15496
+ function df(i) {
15505
15497
  wx.getNetworkType(i);
15506
15498
  }
15507
- function fd(i) {
15499
+ function mf(i) {
15508
15500
  wx.openLocation(i);
15509
15501
  }
15510
- function md(i) {
15502
+ function pf(i) {
15511
15503
  wx.getLocation(i);
15512
15504
  }
15513
- function pd(i) {
15505
+ function gf(i) {
15514
15506
  wx.scanQRCode(i);
15515
15507
  }
15516
- function gd(i, t, e) {
15508
+ function yf(i, t, e) {
15517
15509
  function s() {
15518
15510
  WeixinJSBridge.invoke("getBrandWCPayRequest", i, function(n) {
15519
15511
  n.err_msg == "get_brand_wcpay_request:ok" ? t() : e(n.err_msg);
@@ -15521,7 +15513,7 @@ function gd(i, t, e) {
15521
15513
  }
15522
15514
  typeof WeixinJSBridge > "u" ? document.addEventListener ? document.addEventListener("WeixinJSBridgeReady", s, !1) : document.attachEvent && (document.attachEvent("WeixinJSBridgeReady", s), document.attachEvent("onWeixinJSBridgeReady", s)) : s();
15523
15515
  }
15524
- function yd(i) {
15516
+ function xf(i) {
15525
15517
  window.AlipayJSBridge ? i && i() : document.addEventListener("AlipayJSBridgeReady", i, !1);
15526
15518
  }
15527
15519
  function Ge(i, t) {
@@ -15563,7 +15555,7 @@ function Ge(i, t) {
15563
15555
  }
15564
15556
  return `${i.error}(${e}): ${i.errorMessage}`;
15565
15557
  }
15566
- function xd(i, t, e) {
15558
+ function wf(i, t, e) {
15567
15559
  ap.tradePay(
15568
15560
  Object.assign(i, {
15569
15561
  // fail: (res: commonFailOption) => {
@@ -15595,7 +15587,7 @@ function xd(i, t, e) {
15595
15587
  }
15596
15588
  );
15597
15589
  }
15598
- function wd(i, t, e) {
15590
+ function bf(i, t, e) {
15599
15591
  ap.scan(
15600
15592
  Object.assign(i, {
15601
15593
  fail: (s) => {
@@ -15607,7 +15599,7 @@ function wd(i, t, e) {
15607
15599
  }
15608
15600
  );
15609
15601
  }
15610
- function bd(i, t, e) {
15602
+ function vf(i, t, e) {
15611
15603
  ap.getLocation(
15612
15604
  Object.assign(i, {
15613
15605
  fail: (s) => {
@@ -15619,7 +15611,7 @@ function bd(i, t, e) {
15619
15611
  }
15620
15612
  );
15621
15613
  }
15622
- function vd(i, t, e) {
15614
+ function Sf(i, t, e) {
15623
15615
  ap.openLocation(
15624
15616
  Object.assign(i, {
15625
15617
  fail: (s) => {
@@ -15631,7 +15623,7 @@ function vd(i, t, e) {
15631
15623
  }
15632
15624
  );
15633
15625
  }
15634
- function Sd(i, t, e) {
15626
+ function Cf(i, t, e) {
15635
15627
  ap.chooseImage(
15636
15628
  Object.assign(i, {
15637
15629
  fail: (s) => {
@@ -15643,7 +15635,7 @@ function Sd(i, t, e) {
15643
15635
  }
15644
15636
  );
15645
15637
  }
15646
- function Cd(i, t, e) {
15638
+ function Ef(i, t, e) {
15647
15639
  ap.previewImage(
15648
15640
  Object.assign(i, {
15649
15641
  fail: (s) => {
@@ -15655,13 +15647,13 @@ function Cd(i, t, e) {
15655
15647
  }
15656
15648
  );
15657
15649
  }
15658
- class Ed {
15650
+ class Tf {
15659
15651
  map;
15660
15652
  constructor(t, e = 120.619585, s = 31.299379, n = 18) {
15661
15653
  this.map = new T.Map(t), this.map.centerAndZoom(new T.LngLat(e, s), n);
15662
15654
  }
15663
15655
  }
15664
- class Td {
15656
+ class Pf {
15665
15657
  /// 当前页数,从0开始
15666
15658
  currentPage;
15667
15659
  /// 每页item数量
@@ -15845,7 +15837,7 @@ class Dc {
15845
15837
  }
15846
15838
  }
15847
15839
  const As = Dc;
15848
- class Pd extends As {
15840
+ class _f extends As {
15849
15841
  constructor(t) {
15850
15842
  super(t);
15851
15843
  }
@@ -15867,7 +15859,7 @@ class Pd extends As {
15867
15859
  return n.addEventListener("load", r, !1), n.addEventListener("error", a, !1), t.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (n.crossOrigin = this.crossOrigin), this.manager.itemStart(t), n.src = t, n;
15868
15860
  }
15869
15861
  }
15870
- class _d extends As {
15862
+ class Af extends As {
15871
15863
  isImageBitmapLoader = !0;
15872
15864
  options;
15873
15865
  constructor(t) {
@@ -15946,7 +15938,7 @@ class Ic extends As {
15946
15938
  if (o.status === 200 || o.status === 0) {
15947
15939
  if (o.status === 0 && console.warn("FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || o.body === void 0 || o.body?.getReader === void 0)
15948
15940
  return o;
15949
- const h = Ut[t], c = o.body.getReader(), l = o.headers.get("X-File-Size") || o.headers.get("Content-Length"), d = l ? parseInt(l) : 0, y = d !== 0;
15941
+ const h = Ut[t], c = o.body.getReader(), l = o.headers.get("X-File-Size") || o.headers.get("Content-Length"), f = l ? parseInt(l) : 0, y = f !== 0;
15950
15942
  let w = 0;
15951
15943
  const m = new ReadableStream({
15952
15944
  start(E) {
@@ -15961,7 +15953,7 @@ class Ic extends As {
15961
15953
  const g = new ProgressEvent("progress", {
15962
15954
  lengthComputable: y,
15963
15955
  loaded: w,
15964
- total: d
15956
+ total: f
15965
15957
  });
15966
15958
  for (let p = 0, C = h.length; p < C; p++)
15967
15959
  h[p].onProgress?.(g);
@@ -15998,8 +15990,8 @@ class Ic extends As {
15998
15990
  if (r === void 0)
15999
15991
  return o.text();
16000
15992
  {
16001
- const c = /charset="?([^;"\s]*)"?/i.exec(r), l = c && c[1] ? c[1].toLowerCase() : void 0, d = new TextDecoder(l);
16002
- return o.arrayBuffer().then((y) => d.decode(y));
15993
+ const c = /charset="?([^;"\s]*)"?/i.exec(r), l = c && c[1] ? c[1].toLowerCase() : void 0, f = new TextDecoder(l);
15994
+ return o.arrayBuffer().then((y) => f.decode(y));
16003
15995
  }
16004
15996
  }
16005
15997
  }).then((o) => {
@@ -16027,7 +16019,7 @@ class Ic extends As {
16027
16019
  return this.mimeType = t, this;
16028
16020
  }
16029
16021
  }
16030
- class Ad extends As {
16022
+ class Df extends As {
16031
16023
  constructor(t) {
16032
16024
  super(t);
16033
16025
  }
@@ -16053,11 +16045,11 @@ class Ad extends As {
16053
16045
  }
16054
16046
  export {
16055
16047
  Pu as Arrow,
16056
- Ad as AudioLoader,
16048
+ Df as AudioLoader,
16057
16049
  Cr as BezierEasing,
16058
16050
  gl as CSSToJSEasing,
16059
16051
  Cn as Clock,
16060
- dt as Color,
16052
+ ft as Color,
16061
16053
  Sl as CommonKeyCode,
16062
16054
  Xu as Confetti,
16063
16055
  ye as ControlsColorPattern,
@@ -16068,7 +16060,7 @@ export {
16068
16060
  Kh as DOMEventBus,
16069
16061
  Zh as DOMKey,
16070
16062
  ic as DOMParse,
16071
- fe as DOMSVGUtil,
16063
+ de as DOMSVGUtil,
16072
16064
  rh as DOMToBlob,
16073
16065
  lr as DOMToString,
16074
16066
  k as DOMUtil,
@@ -16082,16 +16074,16 @@ export {
16082
16074
  _u as Fox,
16083
16075
  Au as Heart,
16084
16076
  Du as HeartVariant,
16085
- _d as ImageBitmapLoader,
16086
- Pd as ImageLoader,
16077
+ Af as ImageBitmapLoader,
16078
+ _f as ImageLoader,
16087
16079
  Kt as Interpolation,
16088
16080
  me as Line,
16089
16081
  Tu as LinePicture,
16090
16082
  Cu as LineQuadraticBezier,
16091
- ft as Matrix,
16083
+ dt as Matrix,
16092
16084
  yt as Matrix3D,
16093
16085
  rc as NormalColors,
16094
- Td as Pagination,
16086
+ Pf as Pagination,
16095
16087
  Qt as Point,
16096
16088
  ns as Point3D,
16097
16089
  Bu as Point3Ds,
@@ -16129,17 +16121,17 @@ export {
16129
16121
  xu as addWatermark,
16130
16122
  Br as addWxJsReadyFnBeforeConfig,
16131
16123
  Rl as ajax,
16132
- Sd as aliJsChooseImage,
16133
- bd as aliJsGetLocation,
16134
- vd as aliJsOpenLocation,
16135
- Cd as aliJsPreviewImage,
16136
- yd as aliJsReady,
16137
- wd as aliJsScan,
16138
- xd as aliJsTradePay,
16124
+ Cf as aliJsChooseImage,
16125
+ vf as aliJsGetLocation,
16126
+ Sf as aliJsOpenLocation,
16127
+ Ef as aliJsPreviewImage,
16128
+ xf as aliJsReady,
16129
+ bf as aliJsScan,
16130
+ wf as aliJsTradePay,
16139
16131
  he as angle,
16140
16132
  Ir as appendURL,
16141
16133
  Il as appendURLRecord,
16142
- dc as base64EncodeOutputStream,
16134
+ fc as base64EncodeOutputStream,
16143
16135
  Cc as bitmapMapper,
16144
16136
  Vl as blobToRawImage,
16145
16137
  Or as byteArrayOutputStream,
@@ -16165,10 +16157,10 @@ export {
16165
16157
  cc as flushURL,
16166
16158
  Ml as flushURLRecord,
16167
16159
  hc as formDataToString,
16168
- dl as fpsTask,
16160
+ fl as fpsTask,
16169
16161
  Uu as getBitmapFromCanvas,
16170
16162
  Nc as getBodyPosition,
16171
- dr as getBrowserClient,
16163
+ fr as getBrowserClient,
16172
16164
  qc as getBrowserClientVersion,
16173
16165
  jc as getBrowserLanguage,
16174
16166
  nc as getColorScheme,
@@ -16193,7 +16185,7 @@ export {
16193
16185
  ql as getImageMainColor,
16194
16186
  mh as getInternetExplorerVersion,
16195
16187
  It as getMousePositionInElement,
16196
- dh as getMousePositionInPage,
16188
+ fh as getMousePositionInPage,
16197
16189
  zc as getMousePositionInViewport,
16198
16190
  Ei as getOperatingSystem,
16199
16191
  Vc as getOperatingSystemVersion,
@@ -16207,7 +16199,7 @@ export {
16207
16199
  Hc as getUserGeolocationPromise,
16208
16200
  Gc as getVerticalScrollPercentInPage,
16209
16201
  Yc as getViewportSize,
16210
- fc as gifImage,
16202
+ dc as gifImage,
16211
16203
  ae as h,
16212
16204
  sl as hasDocument,
16213
16205
  il as hasHistory,
@@ -16218,14 +16210,14 @@ export {
16218
16210
  ju as injectWxJsConfig,
16219
16211
  gh as isAliBrowser,
16220
16212
  el as isAliMiniProgram,
16221
- fh as isAndroid,
16213
+ dh as isAndroid,
16222
16214
  Wc as isAppleDevice,
16223
16215
  nl as isBrowserSupportFileAPI,
16224
16216
  Zc as isDarkMode,
16225
16217
  al as isElement,
16226
16218
  Kc as isIE,
16227
16219
  Qc as isIE9or10,
16228
- fr as isIOS,
16220
+ dr as isIOS,
16229
16221
  mr as isMacOS,
16230
16222
  Jc as isMobile,
16231
16223
  zs as isNative,
@@ -16237,7 +16229,7 @@ export {
16237
16229
  Ti as length,
16238
16230
  yn as linkExport,
16239
16231
  Mr as localstorage,
16240
- Ed as mapTDTJSSDK,
16232
+ Tf as mapTDTJSSDK,
16241
16233
  lu as marginSharpen,
16242
16234
  pl as microTask,
16243
16235
  wu as mosaic,
@@ -16256,13 +16248,13 @@ export {
16256
16248
  ac as parseURL,
16257
16249
  Ci as patch,
16258
16250
  ch as patchDOM,
16259
- du as pngToJpg,
16251
+ fu as pngToJpg,
16260
16252
  Vt as polar,
16261
16253
  ol as prefixes,
16262
16254
  mu as radiusClip,
16263
16255
  Si as readFileInBrowser,
16264
16256
  Di as recordToString,
16265
- fu as rectClip,
16257
+ du as rectClip,
16266
16258
  gr as requestAnimationFrameCycle,
16267
16259
  yl as reverseCSSToJSEasing,
16268
16260
  Xh as reverseEaseNameToCubicBezier,
@@ -16301,28 +16293,28 @@ export {
16301
16293
  wl as transformPath2D,
16302
16294
  oc as trimURLHash,
16303
16295
  Zu as wxJsChooseImage,
16304
- td as wxJsDownloadImage,
16305
- ld as wxJsDownloadVoice,
16306
- ed as wxJsGetLocalImgData,
16307
- md as wxJsGetLocation,
16308
- dd as wxJsGetNetworkType,
16309
- hd as wxJsOnVoicePlayEnd,
16310
- nd as wxJsOnVoiceRecordEnd,
16311
- fd as wxJsOpenLocation,
16312
- ad as wxJsPauseVoice,
16313
- gd as wxJsPay,
16314
- rd as wxJsPlayVoice,
16296
+ tf as wxJsDownloadImage,
16297
+ uf as wxJsDownloadVoice,
16298
+ ef as wxJsGetLocalImgData,
16299
+ pf as wxJsGetLocation,
16300
+ df as wxJsGetNetworkType,
16301
+ cf as wxJsOnVoicePlayEnd,
16302
+ rf as wxJsOnVoiceRecordEnd,
16303
+ mf as wxJsOpenLocation,
16304
+ of as wxJsPauseVoice,
16305
+ yf as wxJsPay,
16306
+ af as wxJsPlayVoice,
16315
16307
  Ku as wxJsPreviewImage,
16316
- pd as wxJsScanQRCode,
16317
- sd as wxJsStartRecord,
16318
- id as wxJsStopRecord,
16319
- od as wxJsStopVoice,
16320
- ud as wxJsTranslateVoice,
16308
+ gf as wxJsScanQRCode,
16309
+ sf as wxJsStartRecord,
16310
+ nf as wxJsStopRecord,
16311
+ hf as wxJsStopVoice,
16312
+ ff as wxJsTranslateVoice,
16321
16313
  Wu as wxJsUpdateAppMessageShareData,
16322
16314
  Ju as wxJsUpdateTimelineShareData,
16323
16315
  Qu as wxJsUploadImage,
16324
- cd as wxJsUploadVoice,
16325
- fl as yzCancelIdleCallback,
16316
+ lf as wxJsUploadVoice,
16317
+ dl as yzCancelIdleCallback,
16326
16318
  Mh as yzRequestIdleCallback
16327
16319
  };
16328
16320
  //# sourceMappingURL=zyzgroup_core_web.js.map