@zyzgroup/core-vue 0.0.46 → 0.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as Ur, createVNode as pt, render as En, onMounted as ls, onUnmounted as Zs, defineComponent as Q, openBlock as q, createElementBlock as ut, createElementVNode as I, renderSlot as Xt, createBlock as yt, withCtx as rt, unref as We, h as Wt, normalizeStyle as $, ref as D, watch as Dt, createCommentVNode as Vt, toDisplayString as Qt, normalizeClass as Ps, watchEffect as qr, mergeProps as jr, reactive as Qe, computed as Mn, createTextVNode as Hr } from "vue";
1
+ import { getCurrentInstance as Ur, createVNode as pt, render as En, onMounted as ls, onUnmounted as Hs, defineComponent as Q, openBlock as q, createElementBlock as ut, createElementVNode as I, renderSlot as Xt, createBlock as yt, withCtx as rt, unref as We, h as Wt, normalizeStyle as $, ref as D, watch as Dt, createCommentVNode as Vt, toDisplayString as Qt, normalizeClass as Ss, watchEffect as qr, mergeProps as jr, reactive as Qe, computed as Mn, createTextVNode as Hr } from "vue";
2
2
  import { useRoute as Zr, useRouter as In, createRouter as Wr, createWebHashHistory as Qr } from "vue-router";
3
3
  import { RouterLink as wh, RouterView as Ch, useRoute as Sh, useRouter as Ph } from "vue-router";
4
4
  import { useStore as Fn, createNamespacedHelpers as us, mapMutations as Kr, mapActions as Jr, mapState as to, mapGetters as eo } from "vuex";
@@ -16,7 +16,7 @@ function fh(i) {
16
16
  let t;
17
17
  ls(() => {
18
18
  t = i();
19
- }), Zs(() => {
19
+ }), Hs(() => {
20
20
  t?.();
21
21
  });
22
22
  }
@@ -56,7 +56,7 @@ function ho(i) {
56
56
  };
57
57
  }
58
58
  var Rn = /* @__PURE__ */ ((i) => (i.UNKNOWN = "", i.TEXT = "text/plain", i.MD = "text/plain", i.HTML = "text/html", i.XML_TEXT = "text/xml", i.CSS = "text/css", i.JPEG = "image/jpeg", i.PNG = "image/png", i.GIF = "image/gif", i.BMP = "image/bmp", i.WEBP = "image/webp", i.SVG = "image/svg+xml", i.ICON = "image/x-icon", i.MICROSOFT_ICON = "image/vnd.microsoft.icon", i.MPEG = "audio/mpeg", i.MP3 = "audio/mpeg", i.MP4 = "video/mp4", i.OGG = "audio/ogg", i.WAV = "audio/wav", i.MIDI = "audio/midi", i.WEBM = "video/webm", i.VIDEO_OGG = "video/ogg", i.OCTET_STREAM = "application/octet-stream", i.JAVASCRIPT = "application/javascript", i.ECMASCRIPT = "application/ecmascript", i.JSON = "application/json", i.XML = "application/xml", i.XHTML = "application/xhtml+xml", i.XWWW = "application/x-www-form-urlencoded", i.DOC = "application/msword", i.CSV = "application/x-csv", i.EXCEL = "application/vnb.ms-excel", i.PPT = "application/vnb.mspowerpoint", 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.PKCS12 = "aplication/pkcs12", i))(Rn || {}), Ke = /* @__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))(Ke || {});
59
- const Ws = (i) => {
59
+ const Zs = (i) => {
60
60
  let t = null;
61
61
  switch (i) {
62
62
  case "any-character":
@@ -97,7 +97,7 @@ const Ws = (i) => {
97
97
  break;
98
98
  case "native-method":
99
99
  t = RegExp(
100
- "^" + Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(Ws("regexp"), "\\$&").replace(
100
+ "^" + Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(Zs("regexp"), "\\$&").replace(
101
101
  /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
102
102
  "$1.*?"
103
103
  ) + "$"
@@ -196,7 +196,7 @@ const Ws = (i) => {
196
196
  }
197
197
  return t;
198
198
  }, lo = (i, t) => {
199
- typeof i == "string" && (i = Ws(i) || new RegExp(i));
199
+ typeof i == "string" && (i = Zs(i) || new RegExp(i));
200
200
  const e = t.match(i);
201
201
  return e ? i.flags.toLowerCase().indexOf("g") >= 0 ? e.map(
202
202
  (s) => ({
@@ -210,7 +210,7 @@ const Ws = (i) => {
210
210
  groupMatchs: e.slice(1)
211
211
  } : null;
212
212
  }, On = (i, t) => {
213
- typeof i == "string" && (i = Ws(i) || new RegExp(i));
213
+ typeof i == "string" && (i = Zs(i) || new RegExp(i));
214
214
  const e = [], s = t.matchAll(i);
215
215
  for (const n of s)
216
216
  e.push({
@@ -290,7 +290,7 @@ function V(i, t, e) {
290
290
  function To(i, t) {
291
291
  return (i % t + t) % t;
292
292
  }
293
- function ks(i, t, e) {
293
+ function Ps(i, t, e) {
294
294
  return (1 - e) * i + e * t;
295
295
  }
296
296
  function wo(i, t = 12) {
@@ -345,7 +345,46 @@ const Dn = (i, t, e) => t ? e === Ke.base64 ? new Blob([i], { type: `${t};${e}`
345
345
  function et() {
346
346
  return (performance || Date).now();
347
347
  }
348
- class Qs {
348
+ class So {
349
+ // 外部可主动读取结果
350
+ results = [];
351
+ queue = [];
352
+ // 并发数量
353
+ concurrency;
354
+ // 当前运行的数量
355
+ activeTaskCount = 0;
356
+ constructor(t = 1) {
357
+ this.concurrency = t;
358
+ }
359
+ clear() {
360
+ this.queue = [];
361
+ }
362
+ addTask(t) {
363
+ Array.isArray(t) ? this.queue.push(...t) : this.queue.push(t), this.activeTaskCount < this.concurrency && this.queue.length > 0 && this._runTasks();
364
+ }
365
+ async _runTasks() {
366
+ for (; this.activeTaskCount < this.concurrency && this.queue.length > 0; ) {
367
+ const t = this.queue.splice(
368
+ 0,
369
+ Math.max(0, this.concurrency - this.activeTaskCount)
370
+ );
371
+ this.activeTaskCount += t.length;
372
+ const e = await Promise.allSettled(
373
+ t.map((s) => s())
374
+ );
375
+ e.forEach((s, n) => {
376
+ if (s.status == "fulfilled") {
377
+ const r = s.value;
378
+ this.results.push(r);
379
+ } else if (s.status == "rejected") {
380
+ const r = new Error(s.reason);
381
+ this.results.push(r);
382
+ }
383
+ }), this.activeTaskCount -= e.length;
384
+ }
385
+ }
386
+ }
387
+ class Ws {
349
388
  _maps = /* @__PURE__ */ new Map();
350
389
  _mapsAddedDuringUpdate = /* @__PURE__ */ new Map();
351
390
  _overflow;
@@ -429,8 +468,8 @@ class Qs {
429
468
  }
430
469
  }
431
470
  }
432
- const So = 300;
433
- function Po(i, t = So, e) {
471
+ const Po = 300;
472
+ function ko(i, t = Po, e) {
434
473
  const s = typeof e?.leading == "boolean" ? e.leading : !0, n = typeof e?.trailing == "boolean" ? e.trailing : !1;
435
474
  return function(...o) {
436
475
  const { get: a, set: c } = ho(this || i);
@@ -448,10 +487,10 @@ Array.prototype.ap = function(i) {
448
487
  return this.reduce((t, e) => t.concat(i.map(e)), []);
449
488
  };
450
489
  let we;
451
- function Ks(i) {
490
+ function Qs(i) {
452
491
  we = i, i(), we = null;
453
492
  }
454
- class ko {
493
+ class Ao {
455
494
  subscribers = /* @__PURE__ */ new Set();
456
495
  add() {
457
496
  we && !this.subscribers.has(we) && this.subscribers.add(we);
@@ -465,13 +504,13 @@ function Ue(i, t) {
465
504
  let e = Mi.get(i);
466
505
  e || (e = /* @__PURE__ */ new Map(), Mi.set(i, e));
467
506
  let s = e.get(t);
468
- return s || (s = new ko(), e.set(t, s)), s;
507
+ return s || (s = new Ao(), e.set(t, s)), s;
469
508
  }
470
- function Ao(i, t = !1) {
509
+ function Eo(i, t = !1) {
471
510
  return Object.keys(i).forEach((e) => {
472
511
  let s = i[e];
473
512
  if (t && typeof s == "object" && s !== null)
474
- i[e] = Js(s, t);
513
+ i[e] = Ks(s, t);
475
514
  else {
476
515
  const n = Ue(i, e);
477
516
  Object.defineProperty(i, e, {
@@ -494,16 +533,16 @@ function Ao(i, t = !1) {
494
533
  }), i;
495
534
  }
496
535
  function Xn(i, t = !1) {
497
- return Ao({ value: i }, t);
536
+ return Eo({ value: i }, t);
498
537
  }
499
- function Js(i, t = !1) {
538
+ function Ks(i, t = !1) {
500
539
  const e = {
501
540
  // 拦截对象属性的读取
502
541
  // target 目标对象、key 键值、receiver 当前proxy实例
503
542
  get(n, r, o) {
504
543
  const a = Reflect.get(n, r, o);
505
544
  if (t && typeof a == "object" && a !== null && !("isYZReactiveProxy" in a)) {
506
- const h = Js(a, t);
545
+ const h = Ks(a, t);
507
546
  h.YZReactiveProxyParentTarget = n, h.YZReactiveProxyParentKey = r, Reflect.set(o, r, h);
508
547
  }
509
548
  return Ue(n, r).add(), Reflect.get(n, r, o);
@@ -564,8 +603,8 @@ function Js(i, t = !1) {
564
603
  };
565
604
  return new Proxy(i, e);
566
605
  }
567
- const Eo = Js;
568
- class fs {
606
+ const Mo = Ks;
607
+ class Js {
569
608
  events;
570
609
  constructor() {
571
610
  this.events = {};
@@ -609,7 +648,7 @@ class fs {
609
648
  return this.on(t, n), this;
610
649
  }
611
650
  }
612
- function Mo(i, t = (e, s) => e <= s) {
651
+ function Io(i, t = (e, s) => e <= s) {
613
652
  const e = i.length;
614
653
  let s = Math.floor(e / 2);
615
654
  for (; s > 0; ) {
@@ -630,57 +669,6 @@ try {
630
669
  Ii = function() {
631
670
  };
632
671
  }
633
- class Io extends fs {
634
- /// 外部可主动读取结果
635
- results = [];
636
- queue = [];
637
- rs;
638
- controller;
639
- // 并发数量
640
- concurrency;
641
- // 当前运行的数量
642
- activeTaskCount = 0;
643
- constructor(t = 1) {
644
- super(), this.concurrency = t, this.rs = new ReadableStream({
645
- start: async (e) => {
646
- this.controller = e;
647
- }
648
- });
649
- }
650
- // readStream(taskQueue.stream, (value) => {
651
- // console.log(value, value instanceof Error);
652
- // });
653
- get stream() {
654
- return this.rs;
655
- }
656
- clearUnstartTasks() {
657
- this.queue = [];
658
- }
659
- addTask(t) {
660
- Array.isArray(t) ? this.queue.push(...t) : this.queue.push(t), this.activeTaskCount < this.concurrency && this.queue.length > 0 && this.runTasks();
661
- }
662
- async runTasks() {
663
- for (; this.activeTaskCount < this.concurrency && this.queue.length > 0; ) {
664
- const t = this.queue.splice(
665
- 0,
666
- this.concurrency - this.activeTaskCount
667
- );
668
- this.activeTaskCount += t.length;
669
- const e = await Promise.allSettled(
670
- t.map((n) => n())
671
- ), s = this.results.length;
672
- e.forEach((n, r) => {
673
- if (n.status == "fulfilled") {
674
- const o = n.value;
675
- this.results.push(o), this.controller?.enqueue(o), this.emit("success", s + r, o);
676
- } else if (n.status == "rejected") {
677
- const o = new Error(n.reason);
678
- this.results.push(o), this.controller?.enqueue(o), this.emit("error", s + r, o);
679
- }
680
- }), this.activeTaskCount -= e.length;
681
- }
682
- }
683
- }
684
672
  function Fo(i) {
685
673
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
686
674
  }
@@ -844,7 +832,7 @@ function Lo(i, t) {
844
832
  s && (s = JSON.parse(s), e.value = s ? s.value : "");
845
833
  } catch {
846
834
  }
847
- return Ks(() => {
835
+ return Qs(() => {
848
836
  if (e.value)
849
837
  try {
850
838
  window.localStorage.setItem(i, JSON.stringify(e));
@@ -905,31 +893,31 @@ window.requestIdleCallback = window.requestIdleCallback || function(i, t) {
905
893
  window.cancelIdleCallback = window.cancelIdleCallback || function(i) {
906
894
  clearTimeout(i);
907
895
  };
908
- const As = new Qs();
909
- let Es = !1;
896
+ const ks = new Ws();
897
+ let As = !1;
910
898
  function Nn(i, t, e) {
911
- i && t && As.set(i, { cb: t, startTime: et(), timeout: e }), !Es && (Es = !0, Xo((s) => {
912
- Es = !1;
899
+ i && t && ks.set(i, { cb: t, startTime: et(), timeout: e }), !As && (As = !0, Xo((s) => {
900
+ As = !1;
913
901
  let n = s.timeRemaining();
914
- As.filter((r, o) => {
902
+ ks.filter((r, o) => {
915
903
  let a = !1;
916
904
  const c = et();
917
905
  (n > 0 || o.timeout && et() - o.startTime >= o.timeout) && (o.cb(), a = !0);
918
906
  const h = et();
919
907
  return n -= h - c, !a;
920
- }), As.length > 0 && Nn();
908
+ }), ks.length > 0 && Nn();
921
909
  }));
922
910
  }
923
- let ts = 0, se = 33, jt = 33, Bs;
911
+ let ts = 0, se = 33, jt = 33, Ns;
924
912
  const Bn = new MessageChannel(), Do = Bn.port2;
925
913
  Bn.port1.onmessage = (i) => {
926
- Bs !== null && Bs({
914
+ Ns !== null && Ns({
927
915
  didTimeout: ts <= et(),
928
916
  timeRemaining: () => Math.max(0, ts - et())
929
917
  });
930
918
  };
931
919
  function Xo(i) {
932
- return Bs = i, requestAnimationFrame((t) => {
920
+ return Ns = i, requestAnimationFrame((t) => {
933
921
  let e = t - ts + jt;
934
922
  e < jt && se < jt ? (e < 8 && (e = 8), jt = e < se ? se : e) : e > jt && se > jt ? jt = e < se ? se : e : se = e, ts = t + jt, Do.postMessage(null);
935
923
  });
@@ -1537,10 +1525,8 @@ class Go {
1537
1525
  }
1538
1526
  }
1539
1527
  const Ri = Go;
1540
- class ms {
1528
+ class fs {
1541
1529
  tweens = [];
1542
- /// 异步任务队列
1543
- // private taskQueue: AsyncTaskQueue = new AsyncTaskQueue(1);
1544
1530
  /// 每帧时间
1545
1531
  frameDuration;
1546
1532
  onGroupStart;
@@ -1555,7 +1541,7 @@ class ms {
1555
1541
  this.tweens = [];
1556
1542
  }
1557
1543
  sort(t = !1) {
1558
- Mo(
1544
+ Io(
1559
1545
  this.tweens,
1560
1546
  (e, s) => t ? e.delay > s.delay : e.delay <= s.delay
1561
1547
  );
@@ -1636,7 +1622,7 @@ class ms {
1636
1622
  this.pausedDuration += this.pausedClock.getElapsedTime(), this.pausedClock.stop(), this.isPaused = !1;
1637
1623
  }
1638
1624
  }
1639
- const es = new Qs(), Vo = (i = !0) => {
1625
+ const es = new Ws(), Vo = (i = !0) => {
1640
1626
  es.filter((t, e) => (e.alternate && (nr(e, e.alternate), i && es.set(t, e.alternate), e.alternate = void 0), i));
1641
1627
  };
1642
1628
  function Gn(i) {
@@ -1662,7 +1648,7 @@ function Vn(i, t, e = 0) {
1662
1648
  function $n(i, t, e, s) {
1663
1649
  return Vn(e - i, s - t);
1664
1650
  }
1665
- function Ms(i, t, e, s) {
1651
+ function Es(i, t, e, s) {
1666
1652
  const n = e - i, r = s - t;
1667
1653
  return n * n + r * r;
1668
1654
  }
@@ -1810,7 +1796,7 @@ const ve = {
1810
1796
  apply: "stroke"
1811
1797
  }
1812
1798
  };
1813
- class Is {
1799
+ class Ms {
1814
1800
  __root;
1815
1801
  __ctx;
1816
1802
  constructor(t, e) {
@@ -1947,7 +1933,7 @@ class is {
1947
1933
  id: a.__root.getAttribute("id")
1948
1934
  })
1949
1935
  );
1950
- } else if (a instanceof Is)
1936
+ } else if (a instanceof Ms)
1951
1937
  e.setAttribute(
1952
1938
  o.apply,
1953
1939
  ct("url(#{id})", {
@@ -2290,7 +2276,7 @@ class is {
2290
2276
  },
2291
2277
  !1
2292
2278
  );
2293
- return this.__SVGdefs.appendChild(r), new Is(r, this);
2279
+ return this.__SVGdefs.appendChild(r), new Ms(r, this);
2294
2280
  }
2295
2281
  /**
2296
2282
  * Adds a radial gradient to a defs tag.
@@ -2310,7 +2296,7 @@ class is {
2310
2296
  },
2311
2297
  !1
2312
2298
  );
2313
- return this.__SVGdefs.appendChild(a), new Is(a, this);
2299
+ return this.__SVGdefs.appendChild(a), new Ms(a, this);
2314
2300
  }
2315
2301
  /**
2316
2302
  * Parses the font string and returns svg mapping
@@ -3161,7 +3147,7 @@ function Un(i, t, e, s, n, r, o, a, c) {
3161
3147
  return y;
3162
3148
  });
3163
3149
  }
3164
- function Gs(i, t, e, s, n, r) {
3150
+ function Bs(i, t, e, s, n, r) {
3165
3151
  return [
3166
3152
  i / 3 + 2 / 3 * e,
3167
3153
  t / 3 + 2 / 3 * s,
@@ -3383,10 +3369,10 @@ class si {
3383
3369
  (p == "C" || p == "S") && (T += T - h, w += w - l), f = ["C", T, w, f[1], f[2], f[3], f[4]];
3384
3370
  break;
3385
3371
  case "T":
3386
- p == "Q" || p == "T" ? (a = r * 2 - a, c = o * 2 - c) : (a = r, c = o), f = ["C", ...Gs(r, o, a, c, f[1], f[2])];
3372
+ p == "Q" || p == "T" ? (a = r * 2 - a, c = o * 2 - c) : (a = r, c = o), f = ["C", ...Bs(r, o, a, c, f[1], f[2])];
3387
3373
  break;
3388
3374
  case "Q":
3389
- a = f[1], c = f[2], f = ["C", ...Gs(r, o, f[1], f[2], f[3], f[4])];
3375
+ a = f[1], c = f[2], f = ["C", ...Bs(r, o, f[1], f[2], f[3], f[4])];
3390
3376
  break;
3391
3377
  case "L":
3392
3378
  f = ["C", ...Te(r, o, f[1], f[2])];
@@ -3614,7 +3600,7 @@ class zt {
3614
3600
  return;
3615
3601
  }
3616
3602
  let e, s, n, r, o, a;
3617
- t instanceof Ht ? (e = t.c1x, s = t.c1y, n = t.c2x, r = t.c2y, o = t.toX, a = t.toY) : t instanceof Ko ? [e, s, n, r, o, a] = Gs(
3603
+ t instanceof Ht ? (e = t.c1x, s = t.c1y, n = t.c2x, r = t.c2y, o = t.toX, a = t.toY) : t instanceof Ko ? [e, s, n, r, o, a] = Bs(
3618
3604
  this.prevPathX,
3619
3605
  this.prevPathY,
3620
3606
  t.cx,
@@ -3786,11 +3772,11 @@ class zt {
3786
3772
  const s = this.getTotalLength();
3787
3773
  let n = { x: t, y: e }, r = 0, o = 1 / 0, a = 8;
3788
3774
  for (let h = 0; h <= s; h += a) {
3789
- const l = this.getPointAtLength(h), p = Ms(l.x, l.y, t, e);
3775
+ const l = this.getPointAtLength(h), p = Es(l.x, l.y, t, e);
3790
3776
  p < o && (n = l, r = h, o = p);
3791
3777
  }
3792
3778
  for (a /= 2; a > 0.5; ) {
3793
- const h = r - a, l = this.getPointAtLength(h), p = Ms(l.x, l.y, t, e), _ = r + a, g = this.getPointAtLength(_), f = Ms(g.x, g.y, t, e);
3779
+ const h = r - a, l = this.getPointAtLength(h), p = Es(l.x, l.y, t, e), _ = r + a, g = this.getPointAtLength(_), f = Es(g.x, g.y, t, e);
3794
3780
  h >= 0 && p < o ? (n = l, r = h, o = p) : _ <= s && f < o ? (n = g, r = _, o = f) : a /= 2;
3795
3781
  }
3796
3782
  const c = this.getPointAtLength(
@@ -3850,7 +3836,7 @@ class zt {
3850
3836
  ).toSVGPathData();
3851
3837
  }
3852
3838
  }
3853
- class ea extends fs {
3839
+ class ea extends Js {
3854
3840
  // [index: string | number | symbol]: any;
3855
3841
  id;
3856
3842
  originD;
@@ -3904,7 +3890,7 @@ class ea extends fs {
3904
3890
  s
3905
3891
  ).reduce((n, r) => n + r, 0);
3906
3892
  }
3907
- return Eo(this);
3893
+ return Mo(this);
3908
3894
  }
3909
3895
  /// 强制设置 坐标系原点
3910
3896
  forceSetCXY(t, e) {
@@ -3916,7 +3902,7 @@ class ea extends fs {
3916
3902
  /// 统一初始化 pathd
3917
3903
  initPathD() {
3918
3904
  if (!this.pathd) {
3919
- if (this.pathd = new zt(), Ks(() => {
3905
+ if (this.pathd = new zt(), Qs(() => {
3920
3906
  this.pathd?.reset(
3921
3907
  this.originD || this.toSVGPathData(),
3922
3908
  this.originMatrix
@@ -4115,7 +4101,7 @@ class ea extends fs {
4115
4101
  strokeDasharray: `${n} ${n}`,
4116
4102
  strokeDashoffset: `${n}`
4117
4103
  });
4118
- const r = e?.onUpdate, o = new ms({ frameDuration: t });
4104
+ const r = e?.onUpdate, o = new fs({ frameDuration: t });
4119
4105
  o.addTween(
4120
4106
  { offset: n },
4121
4107
  { offset: 0 },
@@ -4160,13 +4146,13 @@ class sa extends ea {
4160
4146
  this.cX = t, this.cY = e, this.cZ = s;
4161
4147
  }
4162
4148
  rotateX(t) {
4163
- ({ x: this.y, y: this.z } = Os(nt(t), this.y, this.z));
4149
+ ({ x: this.y, y: this.z } = Rs(nt(t), this.y, this.z));
4164
4150
  }
4165
4151
  rotateY(t) {
4166
- ({ x: this.x, y: this.z } = Os(nt(t), this.x, this.z));
4152
+ ({ x: this.x, y: this.z } = Rs(nt(t), this.x, this.z));
4167
4153
  }
4168
4154
  rotateZ(t) {
4169
- ({ x: this.x, y: this.y } = Os(nt(t), this.x, this.y));
4155
+ ({ x: this.x, y: this.y } = Rs(nt(t), this.x, this.y));
4170
4156
  }
4171
4157
  getScreenX() {
4172
4158
  const t = this.fl / (this.fl + this.z + this.cZ);
@@ -4675,13 +4661,13 @@ class Rt {
4675
4661
  }
4676
4662
  /// 相对于 v 的垂直分量
4677
4663
  perpendOnVector(t) {
4678
- return Fs.copy(this).projectOnVector(t), this.sub(Fs);
4664
+ return Is.copy(this).projectOnVector(t), this.sub(Is);
4679
4665
  }
4680
4666
  projectOnPlane(t) {
4681
4667
  return this.perpendOnVector(t);
4682
4668
  }
4683
4669
  reflect(t) {
4684
- return this.sub(Fs.copy(t).multiplyScalar(2 * this.dot(t)));
4670
+ return this.sub(Is.copy(t).multiplyScalar(2 * this.dot(t)));
4685
4671
  }
4686
4672
  angleTo(t) {
4687
4673
  const e = Math.sqrt(this.lengthSq() * t.lengthSq());
@@ -4765,7 +4751,7 @@ class Rt {
4765
4751
  yield this.x, yield this.y, yield this.z;
4766
4752
  }
4767
4753
  }
4768
- const Fs = new Rt(), Yi = new ii(), Ge = 2e3, Ni = 2001, Bi = [1, 0, 0, 1, 0, 0], Gi = [1, 0, 0, 0, 1, 0, 0, 0, 1], Vi = [
4754
+ const Is = new Rt(), Yi = new ii(), Ge = 2e3, Ni = 2001, Bi = [1, 0, 0, 1, 0, 0], Gi = [1, 0, 0, 0, 1, 0, 0, 0, 1], Vi = [
4769
4755
  1,
4770
4756
  0,
4771
4757
  0,
@@ -4926,13 +4912,13 @@ class Ae {
4926
4912
  ), this;
4927
4913
  }
4928
4914
  scale(t, e) {
4929
- return this.premultiply(Rs.makeScale(t, e)), this;
4915
+ return this.premultiply(Fs.makeScale(t, e)), this;
4930
4916
  }
4931
4917
  rotate(t) {
4932
- return this.premultiply(Rs.makeRotation(-t)), this;
4918
+ return this.premultiply(Fs.makeRotation(-t)), this;
4933
4919
  }
4934
4920
  translate(t, e) {
4935
- return this.premultiply(Rs.makeTranslation(t, e)), this;
4921
+ return this.premultiply(Fs.makeTranslation(t, e)), this;
4936
4922
  }
4937
4923
  makeTranslation(t, e) {
4938
4924
  return typeof t == "number" ? this.set(1, 0, t, 0, 1, e, 0, 0, 1) : this.set(1, 0, t.x, 0, 1, t.y, 0, 0, 1), this;
@@ -5814,12 +5800,12 @@ class Pt {
5814
5800
  return this.matrix4.perspective(t), this.matrix4.toMatrix(this), this;
5815
5801
  }
5816
5802
  }
5817
- const ia = new Rt(0, 0, 0), na = new Rt(1, 1, 1), Zt = new Rt(), Ve = new Rt(), mt = new Rt(), oe = new Rt(), Rs = new Ae(), It = new wt();
5818
- function Os(i, t, e) {
5803
+ const ia = new Rt(0, 0, 0), na = new Rt(1, 1, 1), Zt = new Rt(), Ve = new Rt(), mt = new Rt(), oe = new Rt(), Fs = new Ae(), It = new wt();
5804
+ function Rs(i, t, e) {
5819
5805
  const s = new Pt();
5820
5806
  return s.rotate(St(i)), s.transformPoint({ x: t, y: e });
5821
5807
  }
5822
- function Ls(i, t, e) {
5808
+ function Os(i, t, e) {
5823
5809
  const s = Gn(i);
5824
5810
  return s.props.style = s.props.style || {}, t ? s.props.style[t] || s.props.style[mo(t)] || s.props.style[Yt(t)] || "" : s.props.style;
5825
5811
  }
@@ -6178,7 +6164,7 @@ var Wn = { exports: {} };
6178
6164
  };
6179
6165
  function vr(u) {
6180
6166
  var m, b = u.options.inputClass;
6181
- return b ? m = b : At ? m = ys : Et ? m = Fe : _t ? m = vs : m = Ie, new m(u, _r);
6167
+ return b ? m = b : At ? m = gs : Et ? m = Fe : _t ? m = ys : m = Ie, new m(u, _r);
6182
6168
  }
6183
6169
  function _r(u, m, b) {
6184
6170
  var P = b.pointers.length, E = b.changedPointers.length, R = m & U && P - E === 0, N = m & (Z | J) && P - E === 0;
@@ -6188,7 +6174,7 @@ var Wn = { exports: {} };
6188
6174
  var b = u.session, P = m.pointers, E = P.length;
6189
6175
  b.firstInput || (b.firstInput = ui(m)), E > 1 && !b.firstMultiple ? b.firstMultiple = ui(m) : E === 1 && (b.firstMultiple = !1);
6190
6176
  var R = b.firstInput, N = b.firstMultiple, tt = N ? N.center : R.center, it = m.center = fi(P);
6191
- m.timeStamp = l(), m.deltaTime = m.timeStamp - R.timeStamp, m.angle = gs(tt, it), m.distance = Me(tt, it), br(b, m), m.offsetDirection = di(m.deltaX, m.deltaY);
6177
+ m.timeStamp = l(), m.deltaTime = m.timeStamp - R.timeStamp, m.angle = ps(tt, it), m.distance = Me(tt, it), br(b, m), m.offsetDirection = di(m.deltaX, m.deltaY);
6192
6178
  var at = mi(m.deltaTime, m.deltaX, m.deltaY);
6193
6179
  m.overallVelocityX = at.x, m.overallVelocityY = at.y, m.overallVelocity = h(at.x) > h(at.y) ? at.x : at.y, m.scale = N ? Cr(N.pointers, P) : 1, m.rotation = N ? wr(N.pointers, P) : 0, m.maxPointers = b.prevInput ? m.pointers.length > b.prevInput.maxPointers ? m.pointers.length : b.prevInput.maxPointers : m.pointers.length, Tr(b, m);
6194
6180
  var Lt = u.element;
@@ -6255,13 +6241,13 @@ var Wn = { exports: {} };
6255
6241
  var P = m[b[0]] - u[b[0]], E = m[b[1]] - u[b[1]];
6256
6242
  return Math.sqrt(P * P + E * E);
6257
6243
  }
6258
- function gs(u, m, b) {
6244
+ function ps(u, m, b) {
6259
6245
  b || (b = li);
6260
6246
  var P = m[b[0]] - u[b[0]], E = m[b[1]] - u[b[1]];
6261
6247
  return Math.atan2(E, P) * 180 / Math.PI;
6262
6248
  }
6263
6249
  function wr(u, m) {
6264
- return gs(m[1], m[0], Ee) + gs(u[1], u[0], Ee);
6250
+ return ps(m[1], m[0], Ee) + ps(u[1], u[0], Ee);
6265
6251
  }
6266
6252
  function Cr(u, m) {
6267
6253
  return Me(m[0], m[1], Ee) / Me(u[0], u[1], Ee);
@@ -6303,10 +6289,10 @@ var Wn = { exports: {} };
6303
6289
  // see https://twitter.com/jacobrossi/status/480596438489890816
6304
6290
  }, pi = "pointerdown", gi = "pointermove pointerup pointercancel";
6305
6291
  t.MSPointerEvent && !t.PointerEvent && (pi = "MSPointerDown", gi = "MSPointerMove MSPointerUp MSPointerCancel");
6306
- function ys() {
6292
+ function gs() {
6307
6293
  this.evEl = pi, this.evWin = gi, bt.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
6308
6294
  }
6309
- w(ys, bt, {
6295
+ w(gs, bt, {
6310
6296
  /**
6311
6297
  * handle mouse events
6312
6298
  * @param {Object} ev
@@ -6388,12 +6374,12 @@ var Wn = { exports: {} };
6388
6374
  ];
6389
6375
  }
6390
6376
  var Dr = 2500, vi = 25;
6391
- function vs() {
6377
+ function ys() {
6392
6378
  bt.apply(this, arguments);
6393
6379
  var u = y(this.handler, this);
6394
6380
  this.touch = new Fe(this.manager, u), this.mouse = new Ie(this.manager, u), this.primaryTouch = null, this.lastTouches = [];
6395
6381
  }
6396
- w(vs, bt, {
6382
+ w(ys, bt, {
6397
6383
  /**
6398
6384
  * handle mouse and touch events
6399
6385
  * @param {Hammer} manager
@@ -6440,11 +6426,11 @@ var Wn = { exports: {} };
6440
6426
  }
6441
6427
  return !1;
6442
6428
  }
6443
- var xi = G(o.style, "touchAction"), bi = xi !== n, Ti = "compute", wi = "auto", _s = "manipulation", ee = "none", de = "pan-x", pe = "pan-y", Re = Br();
6444
- function xs(u, m) {
6429
+ var xi = G(o.style, "touchAction"), bi = xi !== n, Ti = "compute", wi = "auto", vs = "manipulation", ee = "none", de = "pan-x", pe = "pan-y", Re = Br();
6430
+ function _s(u, m) {
6445
6431
  this.manager = u, this.set(m);
6446
6432
  }
6447
- xs.prototype = {
6433
+ _s.prototype = {
6448
6434
  /**
6449
6435
  * set the touchAction value on the element or enable the polyfill
6450
6436
  * @param {String} value
@@ -6499,7 +6485,7 @@ var Wn = { exports: {} };
6499
6485
  if (L(u, ee))
6500
6486
  return ee;
6501
6487
  var m = L(u, de), b = L(u, pe);
6502
- return m && b ? ee : m || b ? m ? de : pe : L(u, _s) ? _s : wi;
6488
+ return m && b ? ee : m || b ? m ? de : pe : L(u, vs) ? vs : wi;
6503
6489
  }
6504
6490
  function Br() {
6505
6491
  if (!bi)
@@ -6733,10 +6719,10 @@ var Wn = { exports: {} };
6733
6719
  m && (u.additionalEvent = this.options.event + m), this._super.emit.call(this, u);
6734
6720
  }
6735
6721
  });
6736
- function bs() {
6722
+ function xs() {
6737
6723
  Mt.apply(this, arguments);
6738
6724
  }
6739
- w(bs, Mt, {
6725
+ w(xs, Mt, {
6740
6726
  /**
6741
6727
  * @namespace
6742
6728
  * @memberof PinchRecognizer
@@ -6760,10 +6746,10 @@ var Wn = { exports: {} };
6760
6746
  this._super.emit.call(this, u);
6761
6747
  }
6762
6748
  });
6763
- function Ts() {
6749
+ function bs() {
6764
6750
  Bt.apply(this, arguments), this._timer = null, this._input = null;
6765
6751
  }
6766
- w(Ts, Bt, {
6752
+ w(bs, Bt, {
6767
6753
  /**
6768
6754
  * @namespace
6769
6755
  * @memberof PressRecognizer
@@ -6798,10 +6784,10 @@ var Wn = { exports: {} };
6798
6784
  this.state === Nt && (u && u.eventType & Z ? this.manager.emit(this.options.event + "up", u) : (this._input.timeStamp = l(), this.manager.emit(this.options.event, this._input)));
6799
6785
  }
6800
6786
  });
6801
- function ws() {
6787
+ function Ts() {
6802
6788
  Mt.apply(this, arguments);
6803
6789
  }
6804
- w(ws, Mt, {
6790
+ w(Ts, Mt, {
6805
6791
  /**
6806
6792
  * @namespace
6807
6793
  * @memberof RotateRecognizer
@@ -6818,10 +6804,10 @@ var Wn = { exports: {} };
6818
6804
  return this._super.attrTest.call(this, u) && (Math.abs(u.rotation) > this.options.threshold || this.state & Tt);
6819
6805
  }
6820
6806
  });
6821
- function Cs() {
6807
+ function ws() {
6822
6808
  Mt.apply(this, arguments);
6823
6809
  }
6824
- w(Cs, Mt, {
6810
+ w(ws, Mt, {
6825
6811
  /**
6826
6812
  * @namespace
6827
6813
  * @memberof SwipeRecognizer
@@ -6867,7 +6853,7 @@ var Wn = { exports: {} };
6867
6853
  // a multi-tap can be a bit off the initial position
6868
6854
  },
6869
6855
  getTouchAction: function() {
6870
- return [_s];
6856
+ return [vs];
6871
6857
  },
6872
6858
  process: function(u) {
6873
6859
  var m = this.options, b = u.pointers.length === m.pointers, P = u.distance < m.threshold, E = u.deltaTime < m.time;
@@ -6899,7 +6885,7 @@ var Wn = { exports: {} };
6899
6885
  }
6900
6886
  });
6901
6887
  function Gt(u, m) {
6902
- return m = m || {}, m.recognizers = x(m.recognizers, Gt.defaults.preset), new Ss(u, m);
6888
+ return m = m || {}, m.recognizers = x(m.recognizers, Gt.defaults.preset), new Cs(u, m);
6903
6889
  }
6904
6890
  Gt.VERSION = "2.0.7", Gt.defaults = {
6905
6891
  /**
@@ -6942,13 +6928,13 @@ var Wn = { exports: {} };
6942
6928
  */
6943
6929
  preset: [
6944
6930
  // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
6945
- [ws, { enable: !1 }],
6946
- [bs, { enable: !1 }, ["rotate"]],
6947
- [Cs, { direction: W }],
6931
+ [Ts, { enable: !1 }],
6932
+ [xs, { enable: !1 }, ["rotate"]],
6933
+ [ws, { direction: W }],
6948
6934
  [ze, { direction: W }, ["swipe"]],
6949
6935
  [De],
6950
6936
  [De, { event: "doubletap", taps: 2 }, ["tap"]],
6951
- [Ts]
6937
+ [bs]
6952
6938
  ],
6953
6939
  /**
6954
6940
  * Some CSS properties can be used to improve the working of Hammer.
@@ -6998,13 +6984,13 @@ var Wn = { exports: {} };
6998
6984
  }
6999
6985
  };
7000
6986
  var Gr = 1, Pi = 2;
7001
- function Ss(u, m) {
7002
- this.options = C({}, Gt.defaults, m || {}), this.options.inputTarget = this.options.inputTarget || u, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = u, this.input = vr(this), this.touchAction = new xs(this, this.options.touchAction), ki(this, !0), g(this.options.recognizers, function(b) {
6987
+ function Cs(u, m) {
6988
+ this.options = C({}, Gt.defaults, m || {}), this.options.inputTarget = this.options.inputTarget || u, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = u, this.input = vr(this), this.touchAction = new _s(this, this.options.touchAction), ki(this, !0), g(this.options.recognizers, function(b) {
7003
6989
  var P = this.add(new b[0](b[1]));
7004
6990
  b[2] && P.recognizeWith(b[2]), b[3] && P.requireFailure(b[3]);
7005
6991
  }, this);
7006
6992
  }
7007
- Ss.prototype = {
6993
+ Cs.prototype = {
7008
6994
  /**
7009
6995
  * set options
7010
6996
  * @param {Object} options
@@ -7164,22 +7150,22 @@ var Wn = { exports: {} };
7164
7150
  DIRECTION_HORIZONTAL: W,
7165
7151
  DIRECTION_VERTICAL: te,
7166
7152
  DIRECTION_ALL: hi,
7167
- Manager: Ss,
7153
+ Manager: Cs,
7168
7154
  Input: bt,
7169
- TouchAction: xs,
7155
+ TouchAction: _s,
7170
7156
  TouchInput: Fe,
7171
7157
  MouseInput: Ie,
7172
- PointerEventInput: ys,
7173
- TouchMouseInput: vs,
7158
+ PointerEventInput: gs,
7159
+ TouchMouseInput: ys,
7174
7160
  SingleTouchInput: yi,
7175
7161
  Recognizer: Bt,
7176
7162
  AttrRecognizer: Mt,
7177
7163
  Tap: De,
7178
7164
  Pan: ze,
7179
- Swipe: Cs,
7180
- Pinch: bs,
7181
- Rotate: ws,
7182
- Press: Ts,
7165
+ Swipe: ws,
7166
+ Pinch: xs,
7167
+ Rotate: Ts,
7168
+ Press: bs,
7183
7169
  on: v,
7184
7170
  off: M,
7185
7171
  each: g,
@@ -7223,7 +7209,7 @@ function ma(i, t) {
7223
7209
  return e.on("pointerDown", s), () => e.off("pointerDown", s);
7224
7210
  }
7225
7211
  function da(i = document.documentElement) {
7226
- const t = new fs(), e = new ua(i);
7212
+ const t = new Js(), e = new ua(i);
7227
7213
  let s = [];
7228
7214
  const n = ha(), r = n.mousePoint, o = (A) => {
7229
7215
  t.emit("mouseDown", A);
@@ -7364,13 +7350,13 @@ function pa(i = "(prefers-color-scheme: dark)") {
7364
7350
  e.value = s.matches;
7365
7351
  }), e;
7366
7352
  }
7367
- const Vs = Lo("__yz_theme__");
7368
- if (!Vs.value) {
7353
+ const Gs = Lo("__yz_theme__");
7354
+ if (!Gs.value) {
7369
7355
  const i = pa("(prefers-color-scheme: dark)");
7370
- Vs.value = i.value ? "dark" : "light";
7356
+ Gs.value = i.value ? "dark" : "light";
7371
7357
  }
7372
- Ks(() => {
7373
- switch (Vs.value) {
7358
+ Qs(() => {
7359
+ switch (Gs.value) {
7374
7360
  case "dark":
7375
7361
  document.documentElement.classList.add("dark"), ns(document.documentElement, "data-theme", "dark");
7376
7362
  break;
@@ -7403,7 +7389,7 @@ function ya() {
7403
7389
  `));
7404
7390
  }
7405
7391
  ya();
7406
- const Ct = new fs();
7392
+ const Ct = new Js();
7407
7393
  let rs, os, as, cs;
7408
7394
  Qn(document.documentElement, () => {
7409
7395
  setTimeout(() => {
@@ -7957,7 +7943,7 @@ class dt {
7957
7943
  this.r = a * 255, this.g = a * 255, this.b = a * 255;
7958
7944
  else {
7959
7945
  const c = a <= 0.5 ? a * (1 + o) : a + o - a * o, h = 2 * a - c;
7960
- this.r = zs(h, c, r + 1 / 3) * 255, this.g = zs(h, c, r) * 255, this.b = zs(h, c, r - 1 / 3) * 255;
7946
+ this.r = Ls(h, c, r + 1 / 3) * 255, this.g = Ls(h, c, r) * 255, this.b = Ls(h, c, r - 1 / 3) * 255;
7961
7947
  }
7962
7948
  return this.a = n, this;
7963
7949
  }
@@ -7995,7 +7981,7 @@ class dt {
7995
7981
  return this.setHSL(n.h + t, n.s + e, n.l + s);
7996
7982
  }
7997
7983
  lerpHSL(t, e) {
7998
- const s = this.getHSL(), n = t.getHSL(), r = ks(s.h, n.h, e), o = ks(s.s, n.s, e), a = ks(s.l, n.l, e);
7984
+ const s = this.getHSL(), n = t.getHSL(), r = Ps(s.h, n.h, e), o = Ps(s.s, n.s, e), a = Ps(s.l, n.l, e);
7999
7985
  return this.setHSL(r, o, a), this;
8000
7986
  }
8001
7987
  /// hsv(a) / hsb(a) : hue 色相 + saturation 饱和度 + value or brightness 明度
@@ -8043,7 +8029,7 @@ function he(i) {
8043
8029
  function le(i) {
8044
8030
  return i < 31308e-7 ? i * 12.92 : 1.055 * Math.pow(i, 0.41666) - 0.055;
8045
8031
  }
8046
- const ba = "", ce = "srgb", Kn = "srgb-linear", Jn = "linear", $s = "srgb", Zi = new Ae().set(
8032
+ const ba = "", ce = "srgb", Kn = "srgb-linear", Jn = "linear", Vs = "srgb", Zi = new Ae().set(
8047
8033
  0.4123908,
8048
8034
  0.3575843,
8049
8035
  0.1804808,
@@ -8086,7 +8072,7 @@ const ba = "", ce = "srgb", Kn = "srgb-linear", Jn = "linear", $s = "srgb", Zi =
8086
8072
  */
8087
8073
  spaces: {},
8088
8074
  convert: function(i, t, e) {
8089
- return this.enabled === !1 || t === e || !t || !e || (this.spaces[t].transfer === $s && (i.r = he(i.r), i.g = he(i.g), i.b = he(i.b)), this.spaces[t].primaries !== this.spaces[e].primaries && (i.applyMatrix3(this.spaces[t].toXYZ), i.applyMatrix3(this.spaces[e].fromXYZ)), this.spaces[e].transfer === $s && (i.r = le(i.r), i.g = le(i.g), i.b = le(i.b))), i;
8075
+ return this.enabled === !1 || t === e || !t || !e || (this.spaces[t].transfer === Vs && (i.r = he(i.r), i.g = he(i.g), i.b = he(i.b)), this.spaces[t].primaries !== this.spaces[e].primaries && (i.applyMatrix3(this.spaces[t].toXYZ), i.applyMatrix3(this.spaces[e].fromXYZ)), this.spaces[e].transfer === Vs && (i.r = le(i.r), i.g = le(i.g), i.b = le(i.b))), i;
8090
8076
  },
8091
8077
  fromWorkingColorSpace: function(i, t) {
8092
8078
  return this.convert(i, this.workingColorSpace, t);
@@ -8131,20 +8117,20 @@ tr.define({
8131
8117
  [ce]: {
8132
8118
  primaries: Qi,
8133
8119
  whitePoint: Ji,
8134
- transfer: $s,
8120
+ transfer: Vs,
8135
8121
  toXYZ: Zi,
8136
8122
  fromXYZ: Wi,
8137
8123
  luminanceCoefficients: Ki,
8138
8124
  outputColorSpaceConfig: { drawingBufferColorSpace: ce }
8139
8125
  }
8140
8126
  });
8141
- function zs(i, t, e) {
8127
+ function Ls(i, t, e) {
8142
8128
  return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? i + (t - i) * 6 * e : e < 1 / 2 ? t : e < 2 / 3 ? i + (t - i) * 6 * (2 / 3 - e) : i;
8143
8129
  }
8144
8130
  function Ta(i) {
8145
8131
  return window.URL.createObjectURL(i);
8146
8132
  }
8147
- const tn = new Qs();
8133
+ const tn = new Ws();
8148
8134
  async function wa(i, t = 6e4) {
8149
8135
  return new Promise((e, s) => {
8150
8136
  const n = typeof i == "string" ? i : Ta(i), r = tn.get(n);
@@ -8204,7 +8190,7 @@ function sr(i) {
8204
8190
  const t = this.parents();
8205
8191
  for (let e = 0, s = t.length; e < s; e++)
8206
8192
  if (/(auto|scroll)/.test(
8207
- Ls(t[e], "overflow") + Ls(t[e], "overflow-y") + Ls(t[e], "overflow-x")
8193
+ Os(t[e], "overflow") + Os(t[e], "overflow-y") + Os(t[e], "overflow-x")
8208
8194
  ))
8209
8195
  return t[e];
8210
8196
  return document.scrollingElement || document.documentElement;
@@ -8436,7 +8422,7 @@ const $t = (i, t) => {
8436
8422
  }));
8437
8423
  }
8438
8424
  });
8439
- const rr = /* @__PURE__ */ $t(za, [["__scopeId", "data-v-786ac2a3"]]), or = /^[a-z0-9]+(-[a-z0-9]+)*$/, ds = (i, t, e, s = "") => {
8425
+ const rr = /* @__PURE__ */ $t(za, [["__scopeId", "data-v-786ac2a3"]]), or = /^[a-z0-9]+(-[a-z0-9]+)*$/, ms = (i, t, e, s = "") => {
8440
8426
  const n = i.split(":");
8441
8427
  if (i.slice(0, 1) === "@") {
8442
8428
  if (n.length < 2 || n.length > 3)
@@ -8485,11 +8471,11 @@ const rr = /* @__PURE__ */ $t(za, [["__scopeId", "data-v-786ac2a3"]]), or = /^[a
8485
8471
  rotate: 0,
8486
8472
  vFlip: !1,
8487
8473
  hFlip: !1
8488
- }), ps = Object.freeze({
8474
+ }), ds = Object.freeze({
8489
8475
  ...ar,
8490
8476
  ...hs
8491
- }), Us = Object.freeze({
8492
- ...ps,
8477
+ }), $s = Object.freeze({
8478
+ ...ds,
8493
8479
  body: "",
8494
8480
  hidden: !1
8495
8481
  });
@@ -8501,7 +8487,7 @@ function Da(i, t) {
8501
8487
  }
8502
8488
  function nn(i, t) {
8503
8489
  const e = Da(i, t);
8504
- for (const s in Us)
8490
+ for (const s in $s)
8505
8491
  s in hs ? s in i && !(s in e) && (e[s] = hs[s]) : s in t ? e[s] = t[s] : s in i && (e[s] = i[s]);
8506
8492
  return e;
8507
8493
  }
@@ -8550,7 +8536,7 @@ const Na = {
8550
8536
  not_found: {},
8551
8537
  ...ar
8552
8538
  };
8553
- function Ds(i, t) {
8539
+ function zs(i, t) {
8554
8540
  for (const e in t)
8555
8541
  if (e in i && typeof i[e] != typeof t[e])
8556
8542
  return !1;
@@ -8560,7 +8546,7 @@ function hr(i) {
8560
8546
  if (typeof i != "object" || i === null)
8561
8547
  return null;
8562
8548
  const t = i;
8563
- if (typeof t.prefix != "string" || !i.icons || typeof i.icons != "object" || !Ds(i, Na))
8549
+ if (typeof t.prefix != "string" || !i.icons || typeof i.icons != "object" || !zs(i, Na))
8564
8550
  return null;
8565
8551
  const e = t.icons;
8566
8552
  for (const n in e) {
@@ -8569,9 +8555,9 @@ function hr(i) {
8569
8555
  // Name cannot be empty
8570
8556
  !n || // Must have body
8571
8557
  typeof r.body != "string" || // Check other props
8572
- !Ds(
8558
+ !zs(
8573
8559
  r,
8574
- Us
8560
+ $s
8575
8561
  )
8576
8562
  )
8577
8563
  return null;
@@ -8583,9 +8569,9 @@ function hr(i) {
8583
8569
  // Name cannot be empty
8584
8570
  !n || // Parent must be set and point to existing icon
8585
8571
  typeof o != "string" || !e[o] && !s[o] || // Check other props
8586
- !Ds(
8572
+ !zs(
8587
8573
  r,
8588
- Us
8574
+ $s
8589
8575
  )
8590
8576
  )
8591
8577
  return null;
@@ -8623,14 +8609,14 @@ function ur(i) {
8623
8609
  return typeof i == "boolean" && (Pe = i), Pe;
8624
8610
  }
8625
8611
  function Va(i) {
8626
- const t = typeof i == "string" ? ds(i, !0, Pe) : i;
8612
+ const t = typeof i == "string" ? ms(i, !0, Pe) : i;
8627
8613
  if (t) {
8628
8614
  const e = me(t.provider, t.prefix), s = t.name;
8629
8615
  return e.icons[s] || (e.missing.has(s) ? null : void 0);
8630
8616
  }
8631
8617
  }
8632
8618
  function $a(i, t) {
8633
- const e = ds(i, !0, Pe);
8619
+ const e = ms(i, !0, Pe);
8634
8620
  if (!e)
8635
8621
  return !1;
8636
8622
  const s = me(e.provider, e.prefix);
@@ -8714,7 +8700,7 @@ function Wa(i, t, e) {
8714
8700
  const Qa = (i) => i === "unset" || i === "undefined" || i === "none";
8715
8701
  function Ka(i, t) {
8716
8702
  const e = {
8717
- ...ps,
8703
+ ...ds,
8718
8704
  ...i
8719
8705
  }, s = {
8720
8706
  ...mr,
@@ -8792,12 +8778,12 @@ function sc(i, t = tc) {
8792
8778
  );
8793
8779
  }), i = i.replace(new RegExp(n, "g"), ""), i;
8794
8780
  }
8795
- const qs = /* @__PURE__ */ Object.create(null);
8781
+ const Us = /* @__PURE__ */ Object.create(null);
8796
8782
  function ic(i, t) {
8797
- qs[i] = t;
8783
+ Us[i] = t;
8798
8784
  }
8799
- function js(i) {
8800
- return qs[i] || qs[""];
8785
+ function qs(i) {
8786
+ return Us[i] || Us[""];
8801
8787
  }
8802
8788
  function oi(i) {
8803
8789
  let t;
@@ -9033,7 +9019,7 @@ function pc(i, t, e) {
9033
9019
  function gc(i, t = !0, e = !1) {
9034
9020
  const s = [];
9035
9021
  return i.forEach((n) => {
9036
- const r = typeof n == "string" ? ds(n, t, e) : n;
9022
+ const r = typeof n == "string" ? ms(n, t, e) : n;
9037
9023
  r && s.push(r);
9038
9024
  }), s;
9039
9025
  }
@@ -9181,9 +9167,9 @@ function pr(i) {
9181
9167
  }
9182
9168
  function cn() {
9183
9169
  }
9184
- const Xs = /* @__PURE__ */ Object.create(null);
9170
+ const Ds = /* @__PURE__ */ Object.create(null);
9185
9171
  function _c(i) {
9186
- if (!Xs[i]) {
9172
+ if (!Ds[i]) {
9187
9173
  const t = ci(i);
9188
9174
  if (!t)
9189
9175
  return;
@@ -9191,14 +9177,14 @@ function _c(i) {
9191
9177
  config: t,
9192
9178
  redundancy: e
9193
9179
  };
9194
- Xs[i] = s;
9180
+ Ds[i] = s;
9195
9181
  }
9196
- return Xs[i];
9182
+ return Ds[i];
9197
9183
  }
9198
9184
  function xc(i, t, e) {
9199
9185
  let s, n;
9200
9186
  if (typeof i == "string") {
9201
- const r = js(i);
9187
+ const r = qs(i);
9202
9188
  if (!r)
9203
9189
  return e(void 0, 424), cn;
9204
9190
  n = r.send;
@@ -9208,7 +9194,7 @@ function xc(i, t, e) {
9208
9194
  const r = oi(i);
9209
9195
  if (r) {
9210
9196
  s = pr(r);
9211
- const o = i.resources ? i.resources[0] : "", a = js(o);
9197
+ const o = i.resources ? i.resources[0] : "", a = qs(o);
9212
9198
  a && (n = a.send);
9213
9199
  }
9214
9200
  }
@@ -9289,7 +9275,7 @@ function wc(i, t) {
9289
9275
  const { valid: o, invalid: a } = Tc(n);
9290
9276
  if (a.length && be(i, a, null), !o.length)
9291
9277
  return;
9292
- const c = s.match(or) ? js(e) : null;
9278
+ const c = s.match(or) ? qs(e) : null;
9293
9279
  if (!c) {
9294
9280
  be(i, o, null);
9295
9281
  return;
@@ -9407,7 +9393,7 @@ const un = {
9407
9393
  role: "img"
9408
9394
  }, Oc = {
9409
9395
  display: "inline-block"
9410
- }, Hs = {
9396
+ }, js = {
9411
9397
  backgroundColor: "currentColor"
9412
9398
  }, gr = {
9413
9399
  backgroundColor: "transparent"
@@ -9416,8 +9402,8 @@ const un = {
9416
9402
  Repeat: "no-repeat",
9417
9403
  Size: "100% 100%"
9418
9404
  }, mn = {
9419
- webkitMask: Hs,
9420
- mask: Hs,
9405
+ webkitMask: js,
9406
+ mask: js,
9421
9407
  background: gr
9422
9408
  };
9423
9409
  for (const i in mn) {
@@ -9489,7 +9475,7 @@ const pn = (i, t) => {
9489
9475
  width: dn(h.width),
9490
9476
  height: dn(h.height),
9491
9477
  ...Oc,
9492
- ...g ? Hs : gr,
9478
+ ...g ? js : gr,
9493
9479
  ...a
9494
9480
  }, Wt("span", s);
9495
9481
  };
@@ -9527,7 +9513,7 @@ if (typeof document < "u" && typeof window < "u") {
9527
9513
  }
9528
9514
  }
9529
9515
  const Lc = {
9530
- ...ps,
9516
+ ...ds,
9531
9517
  body: ""
9532
9518
  }, zc = Q({
9533
9519
  // Do not inherit other attributes: it is handled by render()
@@ -9562,7 +9548,7 @@ const Lc = {
9562
9548
  data: i
9563
9549
  };
9564
9550
  let s;
9565
- if (typeof i != "string" || (s = ds(i, !1, !0)) === null)
9551
+ if (typeof i != "string" || (s = ms(i, !1, !0)) === null)
9566
9552
  return this.abortLoading(), null;
9567
9553
  let n = Va(s);
9568
9554
  if (!n)
@@ -9592,7 +9578,7 @@ const Lc = {
9592
9578
  ...i,
9593
9579
  class: (typeof i.class == "string" ? i.class + " " : "") + t.classes.join(" ")
9594
9580
  }), pn({
9595
- ...ps,
9581
+ ...ds,
9596
9582
  ...t.data
9597
9583
  }, e);
9598
9584
  }
@@ -9699,7 +9685,7 @@ const yn = /* @__PURE__ */ $t(Bc, [["__scopeId", "data-v-b6f6b2a6"]]), Gc = {
9699
9685
  key: 0,
9700
9686
  class: "loading",
9701
9687
  style: { "margin-right": "6px" }
9702
- }, Ys = 0.03, Ns = 0.06, vn = /* @__PURE__ */ Q({
9688
+ }, Xs = 0.03, Ys = 0.06, vn = /* @__PURE__ */ Q({
9703
9689
  customOptions: { Loading11: yn },
9704
9690
  inheritAttrs: !0,
9705
9691
  __name: "Button",
@@ -9750,11 +9736,11 @@ const yn = /* @__PURE__ */ $t(Bc, [["__scopeId", "data-v-b6f6b2a6"]]), Gc = {
9750
9736
  const T = D(s.disabled ? "0.6" : "1"), w = D(s.disabled ? "not-allowed" : "pointer");
9751
9737
  let y = !1;
9752
9738
  const d = () => {
9753
- s.disabled || (y = !0, s.stylePattern == "transparent" && (a.value = ht.set(l.value).darken(Ys).toString()), c.value = ht.set(p.value).darken(Ys).toString(), C ? h.value = `linear-gradient(180deg, ${f.value} 0%, ${g.value} 100%)` : h.value = ht.set(_.value).darken(Ys).toString());
9739
+ s.disabled || (y = !0, s.stylePattern == "transparent" && (a.value = ht.set(l.value).darken(Xs).toString()), c.value = ht.set(p.value).darken(Xs).toString(), C ? h.value = `linear-gradient(180deg, ${f.value} 0%, ${g.value} 100%)` : h.value = ht.set(_.value).darken(Xs).toString());
9754
9740
  }, x = () => {
9755
9741
  s.disabled || (y = !1, a.value = l.value, c.value = p.value, C ? h.value = `linear-gradient(180deg, ${g.value} 0%, ${f.value} 100%)` : h.value = _.value);
9756
- }, v = D(!1), O = Po(() => {
9757
- s.disabled || v.value || (s.stylePattern == "transparent" && (a.value = ht.set(l.value).darken(Ns).toString()), c.value = ht.set(p.value).darken(Ns).toString(), C ? h.value = `linear-gradient(180deg, ${g.value} 0%, ${f.value} 100%)` : h.value = ht.set(_.value).darken(Ns).toString(), setTimeout(() => {
9742
+ }, v = D(!1), O = ko(() => {
9743
+ s.disabled || v.value || (s.stylePattern == "transparent" && (a.value = ht.set(l.value).darken(Ys).toString()), c.value = ht.set(p.value).darken(Ys).toString(), C ? h.value = `linear-gradient(180deg, ${g.value} 0%, ${f.value} 100%)` : h.value = ht.set(_.value).darken(Ys).toString(), setTimeout(() => {
9758
9744
  y ? d() : x();
9759
9745
  }, 150), n("yz-click"), n("click"), s.asyncClick && (v.value = !0, s.asyncClick().then(() => {
9760
9746
  v.value = !1;
@@ -9849,7 +9835,7 @@ const yn = /* @__PURE__ */ $t(Bc, [["__scopeId", "data-v-b6f6b2a6"]]), Gc = {
9849
9835
  n = va.onBottom((r) => {
9850
9836
  s.value = r;
9851
9837
  });
9852
- }), Zs(() => {
9838
+ }), Hs(() => {
9853
9839
  n?.();
9854
9840
  }), (r, o) => (q(), ut("div", {
9855
9841
  class: "xg-footer",
@@ -9970,7 +9956,7 @@ const _n = /* @__PURE__ */ $t($c, [["__scopeId", "data-v-47056f4a"]]), Uc = { cl
9970
9956
  }, [
9971
9957
  h.displayType == "dot" && h.plate !== "无牌车" ? (q(), ut("div", {
9972
9958
  key: 0,
9973
- class: Ps(["leading", h.displayType]),
9959
+ class: Ss(["leading", h.displayType]),
9974
9960
  style: $({
9975
9961
  ...o.value.style,
9976
9962
  width: c.value + "px",
@@ -9980,12 +9966,12 @@ const _n = /* @__PURE__ */ $t($c, [["__scopeId", "data-v-47056f4a"]]), Uc = { cl
9980
9966
  }, Qt(o.value.name), 7)) : Vt("", !0),
9981
9967
  h.displayType == "chinese" && h.plate !== "无牌车" ? (q(), ut("div", {
9982
9968
  key: 1,
9983
- class: Ps(["leading", h.displayType]),
9969
+ class: Ss(["leading", h.displayType]),
9984
9970
  style: $(o.value.style)
9985
9971
  }, Qt(o.value.name), 7)) : Vt("", !0),
9986
9972
  h.displayType == "plaintext" && h.plate !== "无牌车" ? (q(), ut("div", {
9987
9973
  key: 2,
9988
- class: Ps(["leading", h.displayType])
9974
+ class: Ss(["leading", h.displayType])
9989
9975
  }, Qt(o.value.name), 3)) : Vt("", !0),
9990
9976
  I("div", Uc, Qt(h.plate), 1)
9991
9977
  ], 512));
@@ -10032,7 +10018,7 @@ const xn = /* @__PURE__ */ $t(qc, [["__scopeId", "data-v-6395bb5a"]]), gt = /* @
10032
10018
  p?.(l), n("ready", l), _ = !0;
10033
10019
  })));
10034
10020
  }), ls(() => {
10035
- }), Zs(() => {
10021
+ }), Hs(() => {
10036
10022
  l?.end();
10037
10023
  }), t({
10038
10024
  getController: () => new Promise((g) => {
@@ -10442,7 +10428,7 @@ const Tn = /* @__PURE__ */ Q({
10442
10428
  }
10443
10429
  }
10444
10430
  let g = !1;
10445
- const f = new ms(), C = () => {
10431
+ const f = new fs(), C = () => {
10446
10432
  const O = {}, L = {};
10447
10433
  f.clear(), f.frameDuration = s.duration, _(
10448
10434
  () => {
@@ -11065,7 +11051,7 @@ const Tn = /* @__PURE__ */ Q({
11065
11051
  function At() {
11066
11052
  ot(r - 1);
11067
11053
  }
11068
- const Et = new Io(1);
11054
+ const Et = new So(1);
11069
11055
  function ot(X, k) {
11070
11056
  Et.addTask(
11071
11057
  () => new Promise((ft) => {
@@ -11172,7 +11158,7 @@ const Tn = /* @__PURE__ */ Q({
11172
11158
  },
11173
11159
  emits: ["open", "close", "resize", "clickOverlay"],
11174
11160
  setup(i, { expose: t, emit: e }) {
11175
- const s = i, n = e, r = new ms({ frameDuration: s.dur }), o = Qe({
11161
+ const s = i, n = e, r = new fs({ frameDuration: s.dur }), o = Qe({
11176
11162
  position: "absolute",
11177
11163
  // overflow: "hidden",
11178
11164
  opacity: "1",
@@ -11388,7 +11374,7 @@ const Tn = /* @__PURE__ */ Q({
11388
11374
  },
11389
11375
  emits: ["settled"],
11390
11376
  setup(i, { expose: t, emit: e }) {
11391
- const s = i, n = e, r = new ms({
11377
+ const s = i, n = e, r = new fs({
11392
11378
  frameDuration: s.dur
11393
11379
  }), o = D(0), a = D(0), c = D(0), h = D(0), l = D(0), p = D(0), _ = D(0), g = D(0), f = D(!0), C = D(0), S = D(0);
11394
11380
  wa(s.src).then((Y) => {