@lazycatcloud/lzc-toolkit 0.0.155 → 0.0.157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -48,8 +48,8 @@ function Yt(e, t) {
48
48
  get() {
49
49
  return s.value && (n = d(), s.value = !1), o(), n;
50
50
  },
51
- set(M) {
52
- i?.(M);
51
+ set(g) {
52
+ i?.(g);
53
53
  }
54
54
  }));
55
55
  return Object.isExtensible(f) && (f.trigger = a), f;
@@ -94,13 +94,13 @@ function $t(...e) {
94
94
  const v = () => {
95
95
  n && (clearTimeout(n), n = void 0, l(), l = re);
96
96
  };
97
- return (M) => {
98
- const g = J(a), r = Date.now() - t, T = () => s = M();
99
- return v(), g <= 0 ? (t = Date.now(), T()) : (r > g && (i || !o) ? (t = Date.now(), T()) : d && (s = new Promise((h, c) => {
97
+ return (g) => {
98
+ const M = J(a), r = Date.now() - t, T = () => s = g();
99
+ return v(), M <= 0 ? (t = Date.now(), T()) : (r > M && (i || !o) ? (t = Date.now(), T()) : d && (s = new Promise((h, c) => {
100
100
  l = f ? c : h, n = setTimeout(() => {
101
101
  t = Date.now(), o = !0, h(T()), v();
102
- }, Math.max(0, g - r));
103
- })), !i && !n && (n = setTimeout(() => o = !0, g)), o = !1, s);
102
+ }, Math.max(0, M - r));
103
+ })), !i && !n && (n = setTimeout(() => o = !0, M)), o = !1, s);
104
104
  };
105
105
  }
106
106
  function Pt(e) {
@@ -134,14 +134,14 @@ function we(...e) {
134
134
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
135
135
  const s = [], a = () => {
136
136
  s.forEach((v) => v()), s.length = 0;
137
- }, d = (v, u, M, g) => (v.addEventListener(u, M, g), () => v.removeEventListener(u, M, g)), i = G(
137
+ }, d = (v, u, g, M) => (v.addEventListener(u, g, M), () => v.removeEventListener(u, g, M)), i = G(
138
138
  () => [se(t), J(l)],
139
139
  ([v, u]) => {
140
140
  if (a(), !v)
141
141
  return;
142
- const M = Ut(u) ? { ...u } : u;
142
+ const g = Ut(u) ? { ...u } : u;
143
143
  s.push(
144
- ...n.flatMap((g) => o.map((r) => d(v, g, r, M)))
144
+ ...n.flatMap((M) => o.map((r) => d(v, M, r, g)))
145
145
  );
146
146
  },
147
147
  { immediate: !0, flush: "post" }
@@ -177,8 +177,8 @@ function ht(e, t, n = {}) {
177
177
  (u) => {
178
178
  if (d(), a.value && o) {
179
179
  s = new ResizeObserver(t);
180
- for (const M of u)
181
- M && s.observe(M, l);
180
+ for (const g of u)
181
+ g && s.observe(g, l);
182
182
  }
183
183
  },
184
184
  { immediate: !0, flush: "post" }
@@ -192,21 +192,21 @@ function ht(e, t, n = {}) {
192
192
  }
193
193
  function Zt(e, t = { width: 0, height: 0 }, n = {}) {
194
194
  const { window: o = Le, box: l = "content-box" } = n, s = N(() => {
195
- var u, M;
196
- return (M = (u = se(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : M.includes("svg");
195
+ var u, g;
196
+ return (g = (u = se(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : g.includes("svg");
197
197
  }), a = m(t.width), d = m(t.height), { stop: i } = ht(
198
198
  e,
199
199
  ([u]) => {
200
- const M = l === "border-box" ? u.borderBoxSize : l === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
200
+ const g = l === "border-box" ? u.borderBoxSize : l === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
201
201
  if (o && s.value) {
202
- const g = se(e);
203
- if (g) {
204
- const r = o.getComputedStyle(g);
202
+ const M = se(e);
203
+ if (M) {
204
+ const r = o.getComputedStyle(M);
205
205
  a.value = Number.parseFloat(r.width), d.value = Number.parseFloat(r.height);
206
206
  }
207
- } else if (M) {
208
- const g = Array.isArray(M) ? M : [M];
209
- a.value = g.reduce((r, { inlineSize: T }) => r + T, 0), d.value = g.reduce((r, { blockSize: T }) => r + T, 0);
207
+ } else if (g) {
208
+ const M = Array.isArray(g) ? g : [g];
209
+ a.value = M.reduce((r, { inlineSize: T }) => r + T, 0), d.value = M.reduce((r, { blockSize: T }) => r + T, 0);
210
210
  } else
211
211
  a.value = u.contentRect.width, d.value = u.contentRect.height;
212
212
  },
@@ -253,7 +253,7 @@ function Vt(e, t = {}) {
253
253
  onError: v = (p) => {
254
254
  console.error(p);
255
255
  }
256
- } = t, u = m(0), M = m(0), g = N({
256
+ } = t, u = m(0), g = m(0), M = N({
257
257
  get() {
258
258
  return u.value;
259
259
  },
@@ -262,7 +262,7 @@ function Vt(e, t = {}) {
262
262
  }
263
263
  }), r = N({
264
264
  get() {
265
- return M.value;
265
+ return g.value;
266
266
  },
267
267
  set(p) {
268
268
  T(void 0, p);
@@ -275,7 +275,7 @@ function Vt(e, t = {}) {
275
275
  const A = J(e);
276
276
  !A || (w = A instanceof Document ? f.document.body : A) == null || w.scrollTo({
277
277
  top: (Q = J(z)) != null ? Q : r.value,
278
- left: (D = J(p)) != null ? D : g.value,
278
+ left: (D = J(p)) != null ? D : M.value,
279
279
  behavior: J(i)
280
280
  });
281
281
  }
@@ -300,9 +300,9 @@ function Vt(e, t = {}) {
300
300
  const k = Math.abs(A) <= (a.left || 0), Y = Math.abs(A) + Q.clientWidth >= Q.scrollWidth - (a.right || 0) - ot;
301
301
  D === "flex" && w === "row-reverse" ? (c.left = Y, c.right = k) : (c.left = k, c.right = Y), u.value = A;
302
302
  let C = Q.scrollTop;
303
- p === f.document && !C && (C = f.document.body.scrollTop), y.top = C < M.value, y.bottom = C > M.value;
303
+ p === f.document && !C && (C = f.document.body.scrollTop), y.top = C < g.value, y.bottom = C > g.value;
304
304
  const L = Math.abs(C) <= (a.top || 0), E = Math.abs(C) + Q.clientHeight >= Q.scrollHeight - (a.bottom || 0) - ot;
305
- D === "flex" && w === "column-reverse" ? (c.top = E, c.bottom = L) : (c.top = L, c.bottom = E), M.value = C;
305
+ D === "flex" && w === "column-reverse" ? (c.top = E, c.bottom = L) : (c.top = L, c.bottom = E), g.value = C;
306
306
  }, _ = (p) => {
307
307
  var z;
308
308
  if (!f)
@@ -330,7 +330,7 @@ function Vt(e, t = {}) {
330
330
  x,
331
331
  d
332
332
  ), {
333
- x: g,
333
+ x: M,
334
334
  y: r,
335
335
  isScrolling: h,
336
336
  arrivedState: c,
@@ -357,8 +357,8 @@ function Fe(e, t = {}) {
357
357
  const u = o.getElementById(a) || o.createElement("style");
358
358
  u.isConnected || (u.id = a, t.media && (u.media = t.media), o.head.appendChild(u)), !n.value && (i = G(
359
359
  d,
360
- (M) => {
361
- u.textContent = M;
360
+ (g) => {
361
+ u.textContent = g;
362
362
  },
363
363
  { immediate: !0 }
364
364
  ), n.value = !0);
@@ -376,13 +376,13 @@ function Fe(e, t = {}) {
376
376
  function Gt(e, t) {
377
377
  const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = m(null), a = Zt(s), d = m(!0), i = ze(H, 100);
378
378
  let f;
379
- const v = ut(e), u = m(0), M = m({ start: 0, end: 10 }), g = m({ start: 0, end: l });
379
+ const v = ut(e), u = m(0), g = m({ start: 0, end: 10 }), M = m({ start: 0, end: l });
380
380
  let r = 0;
381
381
  const T = m([]), h = N(() => {
382
382
  let { sum: L, height: E } = { sum: 0, height: 0 };
383
383
  return v.value.map((R, $) => (typeof o == "number" ? E = o : E = o($), L += E, { height: E, sum: L }));
384
- }), c = N(() => D(M.value.start)), y = N(() => typeof o == "number" ? h.value.length * o : h.value[h.value.length - 1]?.sum || 0), x = N(() => {
385
- const { start: L, end: E } = g.value;
384
+ }), c = N(() => D(g.value.start)), y = N(() => typeof o == "number" ? h.value.length * o : h.value[h.value.length - 1]?.sum || 0), x = N(() => {
385
+ const { start: L, end: E } = M.value;
386
386
  return T.value.slice(L, E);
387
387
  });
388
388
  ie(() => {
@@ -419,10 +419,10 @@ function Gt(e, t) {
419
419
  L + r + l,
420
420
  v.value.length
421
421
  );
422
- M.value = { start: E, end: R }, T.value = v.value.slice(E, R).map(($, B) => ({
422
+ g.value = { start: E, end: R }, T.value = v.value.slice(E, R).map(($, B) => ({
423
423
  data: $,
424
424
  index: B + E
425
- })), g.value.start = L - E, g.value.end = g.value.start + r;
425
+ })), M.value.start = L - E, M.value.end = M.value.start + r;
426
426
  }
427
427
  }
428
428
  function z(L) {
@@ -498,7 +498,7 @@ function wo() {
498
498
  boolRef: N(() => !1),
499
499
  numberRef: N(() => 0),
500
500
  arrayRef: N(() => [])
501
- }, s = te(Ze, l), a = te(Xe, t), d = te(qe, n), i = te(We, e), f = te(He, e), v = te(Ve, e), u = te(Ke, e), M = te(Ge, e), g = te(ye, e), r = te(Je, o);
501
+ }, s = te(Ze, l), a = te(Xe, t), d = te(qe, n), i = te(We, e), f = te(He, e), v = te(Ve, e), u = te(Ke, e), g = te(Ge, e), M = te(ye, e), r = te(Je, o);
502
502
  return {
503
503
  selected: s,
504
504
  isSelected: a,
@@ -507,8 +507,8 @@ function wo() {
507
507
  toggleAll: f,
508
508
  select: v,
509
509
  selectAll: u,
510
- unselect: M,
511
- unselectAll: g,
510
+ unselect: g,
511
+ unselectAll: M,
512
512
  selectedCount: r
513
513
  };
514
514
  }
@@ -561,14 +561,14 @@ function No(e, t, n = { deep: !0 }) {
561
561
  });
562
562
  });
563
563
  }
564
- function M(c) {
564
+ function g(c) {
565
565
  r(() => {
566
566
  c.forEach((y) => {
567
567
  l.value.delete(y[t]);
568
568
  });
569
569
  });
570
570
  }
571
- function g(c) {
571
+ function M(c) {
572
572
  return o.value != null ? o.value : l.value.has(c[t]);
573
573
  }
574
574
  function r(c) {
@@ -577,7 +577,7 @@ function No(e, t, n = { deep: !0 }) {
577
577
  function T(c) {
578
578
  r(() => {
579
579
  c.forEach((y) => {
580
- g(y) ? l.value.delete(y[t]) : l.value.add(y[t]);
580
+ M(y) ? l.value.delete(y[t]) : l.value.add(y[t]);
581
581
  });
582
582
  });
583
583
  }
@@ -585,15 +585,15 @@ function No(e, t, n = { deep: !0 }) {
585
585
  const { value: c } = i;
586
586
  c ? v() : f();
587
587
  }
588
- return F(He, h), F(We, T), F(Xe, g), F(Ze, a), F(Ve, u), F(Ke, f), F(Ge, M), F(qe, i), F(ye, v), F(ye, v), F(Je, d), {
588
+ return F(He, h), F(We, T), F(Xe, M), F(Ze, a), F(Ve, u), F(Ke, f), F(Ge, g), F(qe, i), F(ye, v), F(ye, v), F(Je, d), {
589
589
  selected: a,
590
590
  select: u,
591
591
  selectAll: f,
592
- unselect: M,
592
+ unselect: g,
593
593
  unselectAll: v,
594
594
  toggle: T,
595
595
  toggleAll: h,
596
- isSelected: g,
596
+ isSelected: M,
597
597
  isAllSelected: i,
598
598
  selectedCount: d
599
599
  };
@@ -641,25 +641,25 @@ function Eo(e) {
641
641
  function u(r) {
642
642
  t.value != null && (t.value ? n.value = new Set(Array.from(e.value)) : n.value = /* @__PURE__ */ new Set()), r(), n.value.size == 0 ? t.value = !1 : n.value.size == e.value.length ? t.value = !0 : t.value = null;
643
643
  }
644
- function M(r) {
644
+ function g(r) {
645
645
  u(() => {
646
646
  r.forEach((T) => {
647
647
  v(T) ? n.value.delete(T) : n.value.add(T);
648
648
  });
649
649
  });
650
650
  }
651
- function g() {
651
+ function M() {
652
652
  const { value: r } = s;
653
653
  r ? d() : a();
654
654
  }
655
- return F(He, g), F(We, M), F(Xe, v), F(Ze, o), F(Ve, i), F(Ke, a), F(Ge, f), F(qe, s), F(ye, d), F(ye, d), F(Je, l), {
655
+ return F(He, M), F(We, g), F(Xe, v), F(Ze, o), F(Ve, i), F(Ke, a), F(Ge, f), F(qe, s), F(ye, d), F(ye, d), F(Je, l), {
656
656
  selected: o,
657
657
  select: i,
658
658
  selectAll: a,
659
659
  unselect: f,
660
660
  unselectAll: d,
661
- toggle: M,
662
- toggleAll: g,
661
+ toggle: g,
662
+ toggleAll: M,
663
663
  isSelected: v,
664
664
  isAllSelected: s,
665
665
  selectedCount: l
@@ -684,7 +684,7 @@ function mt({
684
684
  let d = {};
685
685
  const i = N(
686
686
  () => ke(t === "colum" ? ce : wt, 50)
687
- ), f = /* @__PURE__ */ new Set(), v = m(!0), u = m(), M = m(!1), g = m({ x: 0, y: 0 }), r = m({ x: 0, y: 0, scrollTop: 0 }), T = new ResizeObserver(
687
+ ), f = /* @__PURE__ */ new Set(), v = m(!0), u = m(), g = m(!1), M = m({ x: 0, y: 0 }), r = m({ x: 0, y: 0, scrollTop: 0 }), T = new ResizeObserver(
688
688
  (j) => h.value = j[0].target.getBoundingClientRect()
689
689
  ), h = m({}), c = m({
690
690
  top: 0,
@@ -692,11 +692,11 @@ function mt({
692
692
  sync(j = !1) {
693
693
  c.value.top = u.value?.scrollTop || 0, j && (c.value.height = u.value?.scrollHeight || 0);
694
694
  }
695
- }), y = N(() => M.value ? {
696
- left: Math.min(g.value.x, r.value.x) - h.value.left,
697
- top: Math.min(g.value.y, r.value.y) - h.value.top,
698
- width: Math.abs(g.value.x - r.value.x),
699
- height: Math.abs(g.value.y - r.value.y)
695
+ }), y = N(() => g.value ? {
696
+ left: Math.min(M.value.x, r.value.x) - h.value.left,
697
+ top: Math.min(M.value.y, r.value.y) - h.value.top,
698
+ width: Math.abs(M.value.x - r.value.x),
699
+ height: Math.abs(M.value.y - r.value.y)
700
700
  } : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed: H = 30 } = n;
701
701
  let _;
702
702
  const p = x, z = W, Q = H, D = (j) => j ** 1;
@@ -707,7 +707,7 @@ function mt({
707
707
  -Q
708
708
  ), w !== 0) {
709
709
  const S = u.value;
710
- if (!S || !M.value)
710
+ if (!S || !g.value)
711
711
  return;
712
712
  const Z = c.value.height - h.value.height;
713
713
  let X = c.value.top + Number(w);
@@ -749,24 +749,24 @@ function mt({
749
749
  X.sheet.insertRule(Et, de);
750
750
  }
751
751
  function E(j, S) {
752
- v.value = !0, M.value = !0, c.value.sync(!0);
752
+ v.value = !0, g.value = !0, c.value.sync(!0);
753
753
  const Z = S + c.value.top;
754
- g.value.x = j, g.value.y = Z, r.value.x = j, r.value.y = Z, u.value?.classList.add("disable-scroll-behavior"), f.clear();
754
+ M.value.x = j, M.value.y = Z, r.value.x = j, r.value.y = Z, u.value?.classList.add("disable-scroll-behavior"), f.clear();
755
755
  }
756
756
  function R(j, S, Z) {
757
- !M.value || (v.value && t === "colum" && !P() && (a(), v.value = !1), Z?.(), A(S), r.value.x = Math.max(j, h.value.left), r.value.y = Math.min(
757
+ !g.value || (v.value && t === "colum" && !P() && (a(), v.value = !1), Z?.(), A(S), r.value.x = Math.max(j, h.value.left), r.value.y = Math.min(
758
758
  S + c.value.top,
759
759
  c.value.height + h.value.top
760
760
  ), r.value.scrollTop = c.value.top, i.value());
761
761
  }
762
762
  function $() {
763
- M.value = !1, u.value?.classList.remove("disable-scroll-behavior");
763
+ g.value = !1, u.value?.classList.remove("disable-scroll-behavior");
764
764
  }
765
765
  function B() {
766
- !M.value || (w || C(), i.value());
766
+ !g.value || (w || C(), i.value());
767
767
  }
768
768
  function P() {
769
- if (!M.value)
769
+ if (!g.value)
770
770
  return !1;
771
771
  const { width: j, height: S } = y.value;
772
772
  return !(Math.max(j, S) > 5);
@@ -802,7 +802,7 @@ function mt({
802
802
  cancelSelectAllBySingleClick: V,
803
803
  selectFn: i,
804
804
  selectRange: y,
805
- isPressing: M,
805
+ isPressing: g,
806
806
  containerEl: u,
807
807
  observer: T
808
808
  };
@@ -836,10 +836,10 @@ function Io(e) {
836
836
  });
837
837
  }
838
838
  });
839
- function M(c) {
839
+ function g(c) {
840
840
  c.button === 0 && s(c.x, c.y);
841
841
  }
842
- function g(c) {
842
+ function M(c) {
843
843
  a(c.x, c.y);
844
844
  }
845
845
  function r(c) {
@@ -851,13 +851,13 @@ function Io(e) {
851
851
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
852
852
  if (!t.containerEl?.value)
853
853
  return !1;
854
- me(ae(u), t.containerEl.value), v(), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", M), window.addEventListener("mousemove", g), window.addEventListener("mouseup", r);
854
+ me(ae(u), t.containerEl.value), v(), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", g), window.addEventListener("mousemove", M), window.addEventListener("mouseup", r);
855
855
  } catch (y) {
856
856
  console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", y);
857
857
  }
858
858
  }
859
859
  function h() {
860
- n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", M), window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", r);
860
+ n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", g), window.removeEventListener("mousemove", M), window.removeEventListener("mouseup", r);
861
861
  }
862
862
  return { init: T, unMount: h };
863
863
  }
@@ -880,12 +880,12 @@ function Ao(e, t, n = 600) {
880
880
  a(y, x), t?.(), d(y, x, () => h.preventDefault()), h.preventDefault();
881
881
  }, n));
882
882
  }
883
- function M(h) {
883
+ function g(h) {
884
884
  v();
885
885
  const { clientX: c, clientY: y } = h.targetTouches[0];
886
886
  d(c, y, () => h.preventDefault());
887
887
  }
888
- function g() {
888
+ function M() {
889
889
  v(), i();
890
890
  }
891
891
  function r(h) {
@@ -894,13 +894,13 @@ function Ao(e, t, n = 600) {
894
894
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
895
895
  if (!o.containerEl?.value)
896
896
  return !1;
897
- o.containerEl.value?.addEventListener("scroll", s), o.containerEl.value?.addEventListener("touchstart", u), o.containerEl.value?.addEventListener("touchmove", M), window.addEventListener("touchcancel", g), window.addEventListener("touchend", g);
897
+ o.containerEl.value?.addEventListener("scroll", s), o.containerEl.value?.addEventListener("touchstart", u), o.containerEl.value?.addEventListener("touchmove", g), window.addEventListener("touchcancel", M), window.addEventListener("touchend", M);
898
898
  } catch (c) {
899
899
  console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", c);
900
900
  }
901
901
  }
902
902
  function T() {
903
- l.disconnect(), o.containerEl.value?.removeEventListener("scroll", s), o.containerEl.value?.removeEventListener("touchstart", u), o.containerEl.value?.removeEventListener("touchmove", M), window.removeEventListener("touchcancel", g), window.removeEventListener("touchEnd", g);
903
+ l.disconnect(), o.containerEl.value?.removeEventListener("scroll", s), o.containerEl.value?.removeEventListener("touchstart", u), o.containerEl.value?.removeEventListener("touchmove", g), window.removeEventListener("touchcancel", M), window.removeEventListener("touchEnd", M);
904
904
  }
905
905
  return { init: r, unMount: T };
906
906
  }
@@ -1196,7 +1196,7 @@ function xo(e, t) {
1196
1196
  const i = m(!1);
1197
1197
  let f = null;
1198
1198
  const v = new pn(d);
1199
- async function u(...g) {
1199
+ async function u(...M) {
1200
1200
  if (n && console.log(`useDelayAsync - handler - processing: ${i.value}`), !i.value) {
1201
1201
  i.value = !0, f = setTimeout(() => {
1202
1202
  n && console.log(
@@ -1207,22 +1207,22 @@ function xo(e, t) {
1207
1207
  }, a);
1208
1208
  try {
1209
1209
  n && console.time("useDelayAsync - handler-execute-time");
1210
- const r = await e(...g);
1211
- n && console.log("useDelayAsync - execute res: ", r), n && console.timeEnd("useDelayAsync - handler-execute-time"), await M(s), await t?.onSuccess?.(r);
1210
+ const r = await e(...M);
1211
+ n && console.log("useDelayAsync - execute res: ", r), n && console.timeEnd("useDelayAsync - handler-execute-time"), await g(s), await t?.onSuccess?.(r, [...M]);
1212
1212
  } catch (r) {
1213
- n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(r), await M(s), await t?.onError?.(r);
1213
+ n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(r), await g(s), await t?.onError?.(r, [...M]);
1214
1214
  }
1215
1215
  }
1216
1216
  }
1217
- async function M(g = !0) {
1218
- n && console.log("useDelayAsync - close - closeLoading: ", g), i.value = !1, f && clearTimeout(f), f = null, g && await v.destory();
1217
+ async function g(M = !0) {
1218
+ n && console.log("useDelayAsync - close - closeLoading: ", M), i.value = !1, f && clearTimeout(f), f = null, M && await v.destory();
1219
1219
  }
1220
1220
  return dt(() => {
1221
- n && console.log("useDelayAsync - onBeforeUnmount - close"), M();
1221
+ n && console.log("useDelayAsync - onBeforeUnmount - close"), g();
1222
1222
  }), {
1223
1223
  processing: i,
1224
1224
  handler: u,
1225
- close: M
1225
+ close: g
1226
1226
  };
1227
1227
  }
1228
1228
  function Dn(e, t) {
@@ -1232,11 +1232,11 @@ function Tn() {
1232
1232
  const e = m(0), t = m(0), n = m(0), o = m(0), l = m(0), s = m(0), a = m(""), d = () => a.value === "vertical", i = () => a.value === "horizontal", f = () => {
1233
1233
  n.value = 0, o.value = 0, l.value = 0, s.value = 0, a.value = "";
1234
1234
  };
1235
- function v(M, g) {
1236
- f(), e.value = M, t.value = g;
1235
+ function v(g, M) {
1236
+ f(), e.value = g, t.value = M;
1237
1237
  }
1238
- function u(M, g) {
1239
- n.value = (M < 0 ? 0 : M) - e.value, o.value = g - t.value, l.value = Math.abs(n.value), s.value = Math.abs(o.value);
1238
+ function u(g, M) {
1239
+ n.value = (g < 0 ? 0 : g) - e.value, o.value = M - t.value, l.value = Math.abs(n.value), s.value = Math.abs(o.value);
1240
1240
  const r = 10;
1241
1241
  (!a.value || l.value < r && s.value < r) && (a.value = Dn(l.value, s.value));
1242
1242
  }
@@ -1325,7 +1325,7 @@ function pt(e) {
1325
1325
  onComplate() {
1326
1326
  i.preview || h();
1327
1327
  }
1328
- }), M = Nn({
1328
+ }), g = Nn({
1329
1329
  onTap() {
1330
1330
  e.onTap?.();
1331
1331
  },
@@ -1336,14 +1336,14 @@ function pt(e) {
1336
1336
  e.onLongPress?.();
1337
1337
  }
1338
1338
  });
1339
- ht(s, (D) => g(D)), G(
1339
+ ht(s, (D) => M(D)), G(
1340
1340
  [l, s],
1341
1341
  ([D, w]) => {
1342
1342
  r(D, w);
1343
1343
  },
1344
1344
  { immediate: !0 }
1345
1345
  );
1346
- async function g(D) {
1346
+ async function M(D) {
1347
1347
  const [w] = D;
1348
1348
  w.contentRect.width == d.value.width && w.contentRect.height == d.value.height || (await r(l.value), await h(i.level, !0));
1349
1349
  }
@@ -1450,7 +1450,7 @@ function pt(e) {
1450
1450
  touch: v,
1451
1451
  state: i,
1452
1452
  style: f,
1453
- gesture: M,
1453
+ gesture: g,
1454
1454
  transition: u,
1455
1455
  imageRef: l,
1456
1456
  containerRef: s,
@@ -1477,7 +1477,7 @@ function Co(e) {
1477
1477
  if (!y)
1478
1478
  return;
1479
1479
  const { left: x, top: W } = y.getBoundingClientRect();
1480
- l.startTap(), o.start(c.clientX - x, c.clientY - W), s.transitioning.value || (a = !0, i.left = x, i.top = W, n.offsetX = y.scrollLeft, n.offsetY = y.scrollTop), window.addEventListener("pointermove", u), window.addEventListener("pointerup", M);
1480
+ l.startTap(), o.start(c.clientX - x, c.clientY - W), s.transitioning.value || (a = !0, i.left = x, i.top = W, n.offsetX = y.scrollLeft, n.offsetY = y.scrollTop), window.addEventListener("pointermove", u), window.addEventListener("pointerup", g);
1481
1481
  }
1482
1482
  function u(c) {
1483
1483
  !a || (o.move(c.clientX, c.clientY), n.level !== 1 && t.panTo(
@@ -1485,10 +1485,10 @@ function Co(e) {
1485
1485
  o.deltaY.value - i.top
1486
1486
  ));
1487
1487
  }
1488
- function M(c) {
1489
- l.checkTap(o.offsetX.value, o.offsetY.value), o.reset(), a = !1, window.removeEventListener("pointermove", u), window.removeEventListener("pointerup", M);
1490
- }
1491
1488
  function g(c) {
1489
+ l.checkTap(o.offsetX.value, o.offsetY.value), o.reset(), a = !1, window.removeEventListener("pointermove", u), window.removeEventListener("pointerup", g);
1490
+ }
1491
+ function M(c) {
1492
1492
  if (!c.ctrlKey)
1493
1493
  return;
1494
1494
  n.zooming || (n.zooming = !0, d == "Control" && window.addEventListener("keyup", r)), c.preventDefault();
@@ -1506,7 +1506,7 @@ function Co(e) {
1506
1506
  function h() {
1507
1507
  d = null;
1508
1508
  }
1509
- return { core: t, onPointerDown: v, onWheel: g };
1509
+ return { core: t, onPointerDown: v, onWheel: M };
1510
1510
  }
1511
1511
  function So(e) {
1512
1512
  const t = pt({
@@ -1516,11 +1516,11 @@ function So(e) {
1516
1516
  ...e
1517
1517
  }), { state: n, touch: o, gesture: l, transition: s, containerRef: a } = t, d = Vt(a);
1518
1518
  let i, f, v, u;
1519
- async function M(h) {
1519
+ async function g(h) {
1520
1520
  const { touches: c } = h;
1521
1521
  i = c.length, n.zooming = i === 2, l.startTap(), o.start(c[0].clientX, c[0].clientY), T("start", h), n.zooming && (h.preventDefault(), f = n.level, v = at(c), await t.switchToZoom(), n.lastCenter = zn(c));
1522
1522
  }
1523
- async function g(h) {
1523
+ async function M(h) {
1524
1524
  const { touches: c } = h;
1525
1525
  if (i = c.length, o.move(c[0].clientX, c[0].clientY), T("move", h), n.zooming && i == 2) {
1526
1526
  h.preventDefault();
@@ -1554,7 +1554,7 @@ function So(e) {
1554
1554
  }
1555
1555
  u && s.transitioning.value && (u = !1, c.preventDefault()), h == "end" && !u && (y = o.startX.value, x = o.startY.value, u = !0), (h != "move" || u) && e.onSwipeEdge?.(h, o.direction.value, y, x);
1556
1556
  }
1557
- return { core: t, onTouchStart: M, onTouchMove: g, onTouchEnd: r };
1557
+ return { core: t, onTouchStart: g, onTouchMove: M, onTouchEnd: r };
1558
1558
  }
1559
1559
  function _o() {
1560
1560
  const e = Te({
@@ -1740,26 +1740,26 @@ function On(e) {
1740
1740
  observeMethod: a = "classList"
1741
1741
  } = e, d = m(!0), i = ze(D, 100);
1742
1742
  let f, v = "";
1743
- const u = m(0), M = m(0), g = m(0), r = m({
1743
+ const u = m(0), g = m(0), M = m(0), r = m({
1744
1744
  top: 0,
1745
1745
  scrollTop: 0,
1746
1746
  scrollHeight: 0,
1747
1747
  clientHeight: 0
1748
1748
  }), T = m({
1749
1749
  clientHeight: 0
1750
- }), h = N(() => !!M.value), c = N(() => r.value.scrollHeight > r.value.clientHeight), y = N(() => o ? r.value.clientHeight - H.value : r.value.clientHeight - T.value.clientHeight), x = N(() => r.value.scrollHeight - r.value.clientHeight), W = N(() => Math.max(
1750
+ }), h = N(() => !!g.value), c = N(() => r.value.scrollHeight > r.value.clientHeight), y = N(() => o ? r.value.clientHeight - H.value : r.value.clientHeight - T.value.clientHeight), x = N(() => r.value.scrollHeight - r.value.clientHeight), W = N(() => Math.max(
1751
1751
  r.value.clientHeight / r.value.scrollHeight,
1752
1752
  0.05
1753
1753
  )), H = N(() => W.value > s ? 0 : W.value * r.value.clientHeight), _ = N(() => ({
1754
1754
  willChange: "transform",
1755
- transform: `translate3d(0,${g.value}px,0)`,
1755
+ transform: `translate3d(0,${M.value}px,0)`,
1756
1756
  height: o ? `${H.value}px` : void 0
1757
1757
  }));
1758
1758
  function p(B) {
1759
- Q(), M.value = B.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
1759
+ Q(), g.value = B.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
1760
1760
  }
1761
1761
  function z() {
1762
- t.value.style.scrollBehavior = v, M.value = 0, i();
1762
+ t.value.style.scrollBehavior = v, g.value = 0, i();
1763
1763
  }
1764
1764
  function Q() {
1765
1765
  d.value = !1;
@@ -1770,9 +1770,9 @@ function On(e) {
1770
1770
  function w(B) {
1771
1771
  if (!h.value)
1772
1772
  return;
1773
- let P = B.clientY - r.value.top - M.value;
1774
- P < 0 ? g.value = 0 : P >= y.value ? g.value = y.value : g.value = P, t.value.scrollTo({
1775
- top: g.value / y.value * x.value
1773
+ let P = B.clientY - r.value.top - g.value;
1774
+ P < 0 ? M.value = 0 : P >= y.value ? M.value = y.value : M.value = P, t.value.scrollTo({
1775
+ top: M.value / y.value * x.value
1776
1776
  });
1777
1777
  }
1778
1778
  function A() {
@@ -1782,7 +1782,7 @@ function On(e) {
1782
1782
  cancelAnimationFrame(f), f = requestAnimationFrame(Y);
1783
1783
  }
1784
1784
  function Y() {
1785
- t.value && (u.value = l.scrollTop?.value ?? t.value.scrollTop, g.value = u.value / x.value * y.value);
1785
+ t.value && (u.value = l.scrollTop?.value ?? t.value.scrollTop, M.value = u.value / x.value * y.value);
1786
1786
  }
1787
1787
  function C(B) {
1788
1788
  let P = "addEventListener";
@@ -1822,7 +1822,7 @@ function On(e) {
1822
1822
  }), {
1823
1823
  isScrollEnd: d,
1824
1824
  isDragSlider: h,
1825
- offsetTop: g,
1825
+ offsetTop: M,
1826
1826
  scrollTop: u,
1827
1827
  scrollable: c,
1828
1828
  sliderPos: _,
@@ -1846,7 +1846,7 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
1846
1846
  autoHeight: o ? n.autoHeight : !0,
1847
1847
  performance: n.performance,
1848
1848
  observeMethod: n.observeMethod
1849
- }), { scrollable: d, isScrollEnd: i, sliderPos: f } = a, v = m(!1), u = n.autoHide ? N(() => v.value || !i.value) : N(() => d.value), { load: M } = Fe(
1849
+ }), { scrollable: d, isScrollEnd: i, sliderPos: f } = a, v = m(!1), u = n.autoHide ? N(() => v.value || !i.value) : N(() => d.value), { load: g } = Fe(
1850
1850
  `.hide-scrollbar {
1851
1851
  scrollbar-width: none;
1852
1852
  -ms-overflow-style: none;
@@ -1857,13 +1857,13 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
1857
1857
  { id: "styletag_lzc_scrollbar", manual: !0 }
1858
1858
  );
1859
1859
  ie(() => {
1860
- M(), fe(() => {
1860
+ g(), fe(() => {
1861
1861
  a.init();
1862
1862
  });
1863
1863
  }), ct(() => {
1864
1864
  a.modifySliderEventListener("remove");
1865
1865
  });
1866
- function g() {
1866
+ function M() {
1867
1867
  v.value = !0;
1868
1868
  }
1869
1869
  function r() {
@@ -1875,7 +1875,7 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
1875
1875
  ref_key: "sliderRef",
1876
1876
  ref: l,
1877
1877
  class: "slider-wrapper",
1878
- onMouseenter: g,
1878
+ onMouseenter: M,
1879
1879
  onMouseleave: r,
1880
1880
  style: K(I(f))
1881
1881
  }, [
@@ -1905,45 +1905,45 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
1905
1905
  pullRefreshContainer: null
1906
1906
  },
1907
1907
  setup(e) {
1908
- const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), d = m(0.3), i = m(!1), f = m(0), v = m(0), u = m(0), M = m(0), g = m(0), r = m(), T = N(() => t.scrollTop), h = N(() => ({
1909
- transition: `${M.value}ms`,
1908
+ const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), d = m(0.3), i = m(!1), f = m(0), v = m(0), u = m(0), g = m(0), M = m(0), r = m(), T = N(() => t.scrollTop), h = N(() => ({
1909
+ transition: `${g.value}ms`,
1910
1910
  transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
1911
1911
  })), c = N(() => ({
1912
1912
  borderColor: o,
1913
- transition: M.value,
1913
+ transition: g.value,
1914
1914
  transform: `rotate(${100 + a.value}deg)`,
1915
1915
  opacity: d.value
1916
1916
  }));
1917
- G(g, (p) => {
1917
+ G(M, (p) => {
1918
1918
  p === 0 && (l.value = -50, d.value = 0.3);
1919
1919
  }), G(v, (p) => {
1920
- if (g.value === 2)
1920
+ if (M.value === 2)
1921
1921
  return;
1922
1922
  const z = Math.pow(p, n);
1923
- z === 0 && (l.value = -50), z <= 50 && z > 0 && (l.value = z - 45, a.value = Math.pow(z, 1.5), z > 15 ? i.value = !0 : i.value = !1), z > 50 && (l.value = 5, d.value = 1, g.value);
1923
+ z === 0 && (l.value = -50), z <= 50 && z > 0 && (l.value = z - 45, a.value = Math.pow(z, 1.5), z > 15 ? i.value = !0 : i.value = !1), z > 50 && (l.value = 5, d.value = 1, M.value);
1924
1924
  });
1925
1925
  const y = m(0), x = (p) => {
1926
1926
  y.value = p.touches[0].pageY;
1927
1927
  }, W = (p) => {
1928
1928
  const z = p.touches[0].pageY - y.value;
1929
- y.value = p.touches[0].pageY, !t.refreshOff && (!t?.refresh || g.value !== 2 && T.value === 0 && (f.value === 0 && (f.value = p.touches[0].pageY), u.value = 0, _.value.style.transition = `${u.value}ms`, M.value = 0, v.value = p.touches[0].pageY - f.value, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, z > 0 && p.preventDefault()));
1929
+ y.value = p.touches[0].pageY, !t.refreshOff && (!t?.refresh || M.value !== 2 && T.value === 0 && (f.value === 0 && (f.value = p.touches[0].pageY), u.value = 0, _.value.style.transition = `${u.value}ms`, g.value = 0, v.value = p.touches[0].pageY - f.value, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, z > 0 && p.preventDefault()));
1930
1930
  }, H = () => {
1931
- if (t.refreshOff || !t?.refresh || g.value === 2)
1931
+ if (t.refreshOff || !t?.refresh || M.value === 2)
1932
1932
  return;
1933
1933
  f.value = 0, u.value = 300;
1934
1934
  const p = Math.pow(v.value, n);
1935
- _.value.style.transition = `${u.value}ms`, p > 50 ? (g.value = 2, v.value = Math.pow(50, 1 / n), _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, M.value = 300, t?.refresh && t?.refresh().then(() => {
1935
+ _.value.style.transition = `${u.value}ms`, p > 50 ? (M.value = 2, v.value = Math.pow(50, 1 / n), _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, g.value = 300, t?.refresh && t?.refresh().then(() => {
1936
1936
  r.value = "\u5237\u65B0\u6210\u529F";
1937
1937
  }).catch(() => {
1938
1938
  r.value = "\u5237\u65B0\u5931\u8D25";
1939
1939
  }).finally(() => {
1940
1940
  setTimeout(() => {
1941
- g.value = 0, v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(
1941
+ M.value = 0, v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(
1942
1942
  v.value,
1943
1943
  n
1944
1944
  )}px, 0)`, setTimeout(() => {
1945
1945
  r.value = void 0;
1946
- }, M.value);
1946
+ }, g.value);
1947
1947
  }, 600);
1948
1948
  })) : (v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
1949
1949
  }, _ = m(null);
@@ -1957,7 +1957,7 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
1957
1957
  style: K(I(h))
1958
1958
  }, [
1959
1959
  r.value ? (b(), U("div", Wn, Re(r.value), 1)) : (b(), U("div", Un, [
1960
- g.value == 2 ? (b(), U("div", Rn, [
1960
+ M.value == 2 ? (b(), U("div", Rn, [
1961
1961
  O("div", $n, [
1962
1962
  O("div", {
1963
1963
  class: "left-circle",
@@ -2004,7 +2004,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
2004
2004
  emits: ["scrollEnd"],
2005
2005
  setup(e, { expose: t, emit: n }) {
2006
2006
  const o = e, l = Gt(Ot(o, "data"), {
2007
- itemHeight: (g) => o.itemHeight(o.data[g]),
2007
+ itemHeight: (M) => o.itemHeight(o.data[M]),
2008
2008
  overscan: o.overscan,
2009
2009
  scrollEndHook: () => {
2010
2010
  n("scrollEnd");
@@ -2021,10 +2021,10 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
2021
2021
  vListReturn: l
2022
2022
  });
2023
2023
  const u = "virtualListWrapper" + new Date().getTime();
2024
- function M(g, r) {
2025
- return o.getItemKey ? o.getItemKey(g, r) : `${r}`;
2024
+ function g(M, r) {
2025
+ return o.getItemKey ? o.getItemKey(M, r) : `${r}`;
2026
2026
  }
2027
- return (g, r) => (b(), U(be, null, [
2027
+ return (M, r) => (b(), U(be, null, [
2028
2028
  Me(Zn, {
2029
2029
  refresh: e.refresh,
2030
2030
  refreshOff: e.refreshOff,
@@ -2039,18 +2039,18 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
2039
2039
  onScrollPassive: r[0] || (r[0] = (...T) => I(a).onScroll && I(a).onScroll(...T)),
2040
2040
  ref: I(a).ref,
2041
2041
  class: "virtualList"
2042
- }, g.$attrs), [
2042
+ }, M.$attrs), [
2043
2043
  O("div", _e(Oe(I(d))), [
2044
2044
  O("div", _e(Oe(I(i))), [
2045
2045
  (b(!0), U(be, null, bt(I(s), ({ data: T, index: h }) => (b(), U("div", {
2046
- key: M(T, h),
2047
- "data-key": M(T, h),
2046
+ key: g(T, h),
2047
+ "data-key": g(T, h),
2048
2048
  style: K({
2049
2049
  height: `${I(f)(h).height}px`,
2050
2050
  display: "flex"
2051
2051
  })
2052
2052
  }, [
2053
- Ie(g.$slots, "default", {
2053
+ Ie(M.$slots, "default", {
2054
2054
  data: T,
2055
2055
  index: h
2056
2056
  }, void 0, !0)
@@ -2165,7 +2165,7 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
2165
2165
  },
2166
2166
  emits: ["load"],
2167
2167
  setup(e, { emit: t }) {
2168
- const n = e, o = m(), l = m(), s = m(!1), a = m(!1), d = m(!1), { src: i, mime: f } = vt(n), { imgSrc: v, isSupport: u, hasError: M, handleError: g } = Dt(i, f), { vImageCancel: r } = Tt(), { LoadingComp: T } = yt({
2168
+ const n = e, o = m(), l = m(), s = m(!1), a = m(!1), d = m(!1), { src: i, mime: f } = vt(n), { imgSrc: v, isSupport: u, hasError: g, handleError: M } = Dt(i, f), { vImageCancel: r } = Tt(), { LoadingComp: T } = yt({
2169
2169
  component: sn,
2170
2170
  delay: 300
2171
2171
  }), h = Qt(() => d.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !d.value);
@@ -2185,11 +2185,11 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
2185
2185
  p ? x() : l.value && t("load", l.value), s.value = !0;
2186
2186
  }
2187
2187
  function _(p) {
2188
- p ? g() : c(), s.value = !0;
2188
+ p ? M() : c(), s.value = !0;
2189
2189
  }
2190
2190
  return (p, z) => (b(), U(be, null, [
2191
2191
  s.value ? ue("", !0) : (b(), Ee(I(T), { key: 0 })),
2192
- I(u) ? I(M) ? (b(), U("div", ge({ key: 3 }, p.$attrs, {
2192
+ I(u) ? I(g) ? (b(), U("div", ge({ key: 3 }, p.$attrs, {
2193
2193
  title: I(v),
2194
2194
  class: "tip-wrap"
2195
2195
  }), [
@@ -2256,8 +2256,8 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-774cb54a"]]), ho = ["ti
2256
2256
  ], 8, yo)) : ve((b(), U("img", {
2257
2257
  key: 1,
2258
2258
  fetchpriority: "high",
2259
- onLoad: u[0] || (u[0] = (M) => n.value = !0),
2260
- onError: u[1] || (u[1] = (...M) => I(i) && I(i)(...M)),
2259
+ onLoad: u[0] || (u[0] = (g) => n.value = !0),
2260
+ onError: u[1] || (u[1] = (...g) => I(i) && I(i)(...g)),
2261
2261
  src: I(s)
2262
2262
  }, null, 40, mo)), [
2263
2263
  [I(f)],
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.ui={},E.Vue))})(this,function(E,e){"use strict";const Ie={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const f=i.clientX,r=i.clientY,M=Math.abs(f-o),g=Math.abs(r-l);M>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},He={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}};function Ve(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function We(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const f=typeof n=="function"?n:n.get,r=typeof n=="function"?void 0:n.set,M=e.customRef((g,c)=>(l=g,s=c,{get(){return a.value&&(o=f(),a.value=!1),l(),o},set(m){r?.(m)}}));return Object.isExtensible(M)&&(M.trigger=i),M}function ge(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function H(t){return typeof t=="function"?t():e.unref(t)}const ze=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Xe=Object.prototype.toString,Ze=t=>Xe.call(t)==="[object Object]",K=()=>{};function Ae(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function Ke(t,n={}){let o,l,s=K;const a=f=>{clearTimeout(f),s(),s=K};return f=>{const r=H(t),M=H(n.maxWait);return o&&a(o),r<=0||M!==void 0&&M<=0?(l&&(a(l),l=null),Promise.resolve(f())):new Promise((g,c)=>{s=n.rejectOnCancel?c:g,M&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(f())},M)),o=setTimeout(()=>{l&&a(l),l=null,g(f())},r)})}}function Ge(...t){let n=0,o,l=!0,s=K,a,i,f,r,M;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:f=!0,leading:r=!0,rejectOnCancel:M=!1}=t[0]:[i,f=!0,r=!0,M=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=K)};return m=>{const h=H(i),u=Date.now()-n,N=()=>a=m();return g(),h<=0?(n=Date.now(),N()):(u>h&&(r||!l)?(n=Date.now(),N()):f&&(a=new Promise((p,d)=>{s=M?d:p,o=setTimeout(()=>{n=Date.now(),l=!0,p(N()),g()},Math.max(0,h-u))})),!r&&!o&&(o=setTimeout(()=>l=!0,h)),l=!1,a)}}function qe(t){return t||e.getCurrentInstance()}function te(t,n=200,o={}){return Ae(Ke(n,o),t)}function me(t,n=200,o=!1,l=!0,s=!1){return Ae(Ge(n,o,l,s),t)}function he(t,n=!0,o){qe()?e.onMounted(t,o):n?t():e.nextTick(t)}function W(t){var n;const o=H(t);return(n=o?.$el)!=null?n:o}const ne=ze?window:void 0,Je=ze?window.document:void 0;function oe(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ne):[n,o,l,s]=t,!n)return K;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},f=(g,c,m,h)=>(g.addEventListener(c,m,h),()=>g.removeEventListener(c,m,h)),r=e.watch(()=>[W(n),H(s)],([g,c])=>{if(i(),!g)return;const m=Ze(c)?{...c}:c;a.push(...o.flatMap(h=>l.map(u=>f(g,h,u,m))))},{immediate:!0,flush:"post"}),M=()=>{r(),i()};return ge(M),M}function et(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function tt(t){const n=et();return e.computed(()=>(n.value,Boolean(t())))}function nt(t){const n=e.getCurrentInstance(),o=We(()=>null,()=>t?W(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Le(t,n,o={}){const{window:l=ne,...s}=o;let a;const i=tt(()=>l&&"ResizeObserver"in l),f=()=>{a&&(a.disconnect(),a=void 0)},r=e.computed(()=>Array.isArray(t)?t.map(c=>W(c)):[W(t)]),M=e.watch(r,c=>{if(f(),i.value&&l){a=new ResizeObserver(n);for(const m of c)m&&a.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),M()};return ge(g),{isSupported:i,stop:g}}function ot(t,n={width:0,height:0},o={}){const{window:l=ne,box:s="content-box"}=o,a=e.computed(()=>{var c,m;return(m=(c=W(t))==null?void 0:c.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),f=e.ref(n.height),{stop:r}=Le(t,([c])=>{const m=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&a.value){const h=W(t);if(h){const u=l.getComputedStyle(h);i.value=Number.parseFloat(u.width),f.value=Number.parseFloat(u.height)}}else if(m){const h=Array.isArray(m)?m:[m];i.value=h.reduce((u,{inlineSize:N})=>u+N,0),f.value=h.reduce((u,{blockSize:N})=>u+N,0)}else i.value=c.contentRect.width,f.value=c.contentRect.height},o);he(()=>{const c=W(t);c&&(i.value="offsetWidth"in c?c.offsetWidth:n.width,f.value="offsetHeight"in c?c.offsetHeight:n.height)});const M=e.watch(()=>W(t),c=>{i.value=c?n.width:0,f.value=c?n.height:0});function g(){r(),M()}return{width:i,height:f,stop:g}}const je=1;function lt(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=K,onScroll:a=K,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:f={capture:!1,passive:!0},behavior:r="auto",window:M=ne,onError:g=D=>{console.error(D)}}=n,c=e.ref(0),m=e.ref(0),h=e.computed({get(){return c.value},set(D){N(D,void 0)}}),u=e.computed({get(){return m.value},set(D){N(void 0,D)}});function N(D,z){var b,T,w;if(!M)return;const I=H(t);!I||(w=I instanceof Document?M.document.body:I)==null||w.scrollTo({top:(b=H(z))!=null?b:u.value,left:(T=H(D))!=null?T:h.value,behavior:H(r)})}const p=e.ref(!1),d=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),j=D=>{!p.value||(p.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,s(D))},R=te(j,o+l),U=D=>{var z;if(!M)return;const b=((z=D?.document)==null?void 0:z.documentElement)||D?.documentElement||W(D),{display:T,flexDirection:w}=getComputedStyle(b),I=b.scrollLeft;y.left=I<c.value,y.right=I>c.value;const _=Math.abs(I)<=(i.left||0),O=Math.abs(I)+b.clientWidth>=b.scrollWidth-(i.right||0)-je;T==="flex"&&w==="row-reverse"?(d.left=O,d.right=_):(d.left=_,d.right=O),c.value=I;let C=b.scrollTop;D===M.document&&!C&&(C=M.document.body.scrollTop),y.top=C<m.value,y.bottom=C>m.value;const A=Math.abs(C)<=(i.top||0),v=Math.abs(C)+b.clientHeight>=b.scrollHeight-(i.bottom||0)-je;T==="flex"&&w==="column-reverse"?(d.top=v,d.bottom=A):(d.top=A,d.bottom=v),m.value=C},x=D=>{var z;if(!M)return;const b=(z=D.target.documentElement)!=null?z:D.target;U(b),p.value=!0,R(D),a(D)};return oe(t,"scroll",o?me(x,o,!0,!1):x,f),he(()=>{try{const D=H(t);if(!D)return;U(D)}catch(D){g(D)}}),oe(t,"scrollend",j,f),{x:h,y:u,isScrolling:p,arrivedState:d,directions:y,measure(){const D=H(t);M&&D&&U(D)}}}let st=0;function pe(t,n={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++st}`}=n,f=e.ref(t);let r=()=>{};const M=()=>{if(!l)return;const c=l.getElementById(i)||l.createElement("style");c.isConnected||(c.id=i,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(r=e.watch(f,m=>{c.textContent=m},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(r(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&he(M),a||ge(g),{id:i,css:f,unload:g,load:M,isLoaded:e.readonly(o)}}function Ce(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=ot(a),f=e.ref(!0),r=te(U,100);let M;const g=e.shallowRef(t),c=e.ref(0),m=e.ref({start:0,end:10}),h=e.ref({start:0,end:s});let u=0;const N=e.ref([]),p=e.computed(()=>{let{sum:A,height:v}={sum:0,height:0};return g.value.map((B,Q)=>(typeof l=="number"?v=l:v=l(Q),A+=v,{height:v,sum:A}))}),d=e.computed(()=>T(m.value.start)),y=e.computed(()=>typeof l=="number"?p.value.length*l:p.value[p.value.length-1]?.sum||0),j=e.computed(()=>{const{start:A,end:v}=h.value;return N.value.slice(A,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(M)),e.watch(g,()=>{(i.width.value||i.height.value)&&x()},{deep:!0}),e.watch([i.width,i.height],([A,v])=>{(A||v)&&x()},{deep:!0}),e.watch(c,()=>{R(),r()});function R(){f.value=!1}function U(){f.value=!0,o?.()}function x(){cancelAnimationFrame(M),M=requestAnimationFrame(D)}function D(){if(a.value){c.value=a.value.scrollTop;let A=z(c.value);u=b(A);let v=Math.max(0,A-s),B=Math.min(A+u+s,g.value.length);m.value={start:v,end:B},N.value=g.value.slice(v,B).map((Q,k)=>({data:Q,index:k+v})),h.value.start=A-v,h.value.end=h.value.start+u}}function z(A){let v=0,B=p.value.length-1,Q=-1;for(;v<=B;){const k=Math.floor((v+B)/2);p.value[k].sum>=A?(Q=k,B=k-1):v=k+1}return Math.max(0,Q)}function b(A){let v=0,B=0;for(let Q=A;Q<p.value.length&&(v++,B+=p.value[Q].height,!(B>=i.height.value));Q++);return v}function T(A){if(typeof l=="number")return A*l;let v=p.value[A];return v?v.sum-v.height:0}function w(A){return p.value[A]||{sum:0,height:0}}function I(A){if(a.value){const v=w(A);a.value.scrollTop=v.sum-v.height,D()}}const _=e.computed(()=>({style:{width:"100%",height:`${y.value}px`,pointerEvents:f.value?void 0:"none"}})),O=e.computed(()=>({style:{transform:`translate3d(0, ${d.value}px, 0)`,"will-change":"transform"}})),C={overflowY:"auto"};return{list:N,visiableList:j,getItemHeightData:w,getoffsetTopIndex:z,totalHeight:y,clientHeight:i.height,scrollTo:I,scrollTop:c,isScrollEnd:f,containerProps:{ref:a,onScroll:()=>{x()},style:C},wrapperProps:_,innerProps:O}}const le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),G=Symbol(),fe=Symbol();function at(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(ie,s),i=e.inject(ae,n),f=e.inject(de,o),r=e.inject(se,t),M=e.inject(le,t),g=e.inject(re,t),c=e.inject(ce,t),m=e.inject(ue,t),h=e.inject(G,t),u=e.inject(fe,l);return{selected:a,isSelected:i,isAllSelected:f,toggle:r,toggleAll:M,select:g,selectAll:c,unselect:m,unselectAll:h,selectedCount:u}}function it(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.ref(new Map);e.watch(t,d=>{a.value=d.reduce((y,j)=>(y.set(j[n],j),y),new Map)},{deep:o.deep,immediate:!0});const i=e.computed(()=>{let d=[];if(l.value!=null)l.value&&(d=Array.from(a.value.values()));else if(s.value.size){let y;s.value.forEach(j=>{y=a.value.get(j),y&&d.push(y)})}return d}),f=e.computed(()=>{let d=0;return l.value!=null?l.value&&(d=a.value.size):d=s.value.size,d}),r=e.computed(()=>{let d;if(l.value!=null)d=l.value;else{const y=s.value.size,j=a.value.size;d=y==j}return d});function M(){l.value=!0}function g(){l.value=!1}function c(d){u(()=>{d.forEach(y=>{s.value.add(y[n])})})}function m(d){u(()=>{d.forEach(y=>{s.value.delete(y[n])})})}function h(d){return l.value!=null?l.value:s.value.has(d[n])}function u(d){l.value!=null&&(l.value?s.value=new Set(Array.from(a.value.keys())):s.value=new Set),d(),s.value.size==0?l.value=!1:s.value.size==a.value.size?l.value=!0:l.value=null}function N(d){u(()=>{d.forEach(y=>{h(y)?s.value.delete(y[n]):s.value.add(y[n])})})}function p(){const{value:d}=r;d?g():M()}return e.provide(le,p),e.provide(se,N),e.provide(ae,h),e.provide(ie,i),e.provide(re,c),e.provide(ce,M),e.provide(ue,m),e.provide(de,r),e.provide(G,g),e.provide(G,g),e.provide(fe,f),{selected:i,select:c,selectAll:M,unselect:m,unselectAll:g,toggle:N,toggleAll:p,isSelected:h,isAllSelected:r,selectedCount:f}}function rt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let u=[];return n.value!=null?n.value&&(u=t.value):o.value.size&&(u=Array.from(o.value.values())),u}),s=e.computed(()=>{let u=0;return n.value!=null?n.value&&(u=t.value.length):u=o.value.size,u}),a=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const N=o.value.size,p=t.value.length;u=N==p}return u});function i(){n.value=!0}function f(){n.value=!1}function r(u){c(()=>{u.forEach(N=>{o.value.add(N)})})}function M(u){c(()=>{u.forEach(N=>{o.value.delete(N)})})}function g(u){return n.value!=null?n.value:o.value.has(u)}function c(u){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),u(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(u){c(()=>{u.forEach(N=>{g(N)?o.value.delete(N):o.value.add(N)})})}function h(){const{value:u}=a;u?f():i()}return e.provide(le,h),e.provide(se,m),e.provide(ae,g),e.provide(ie,l),e.provide(re,r),e.provide(ce,i),e.provide(ue,M),e.provide(de,a),e.provide(G,f),e.provide(G,f),e.provide(fe,s),{selected:l,select:r,selectAll:i,unselect:M,unselectAll:f,toggle:m,toggleAll:h,isSelected:g,isAllSelected:a,selectedCount:s}}function ye(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function De({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ye("\u9009\u62E9"),unselect:a=ye("\u53D6\u6D88\u9009\u62E9"),unselectAll:i=ye("\u53D6\u6D88\u5168\u9009")}=l();let f={};const r=e.computed(()=>me(n==="colum"?q:On,50)),M=new Set,g=e.ref(!0),c=e.ref(),m=e.ref(!1),h=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(L=>p.value=L[0].target.getBoundingClientRect()),p=e.ref({}),d=e.ref({top:0,height:0,sync(L=!1){d.value.top=c.value?.scrollTop||0,L&&(d.value.height=c.value?.scrollHeight||0)}}),y=e.computed(()=>m.value?{left:Math.min(h.value.x,u.value.x)-p.value.left,top:Math.min(h.value.y,u.value.y)-p.value.top,width:Math.abs(h.value.x-u.value.x),height:Math.abs(h.value.y-u.value.y)}:{left:0,top:0,width:0,height:0}),{margin:j=50,startSpeed:R=30,maxSpeed:U=30}=o;let x;const D=j,z=R,b=U,T=L=>L**1;let w=0;function I(L){if(cancelAnimationFrame(x),w=_(L),w=Math.max(Math.min(w,b),-b),w!==0){const S=c.value;if(!S||!m.value)return;const $=d.value.height-p.value.height;let P=d.value.top+Number(w);P=Math.min(Math.max(0,P),$),S.scrollTop=P,C(),x=requestAnimationFrame(()=>I(L))}}function _(L){if(c.value){const $=p.value,P=$.bottom-L;if(P<D)return z*T(1-P/D);const Z=L-$.top;if(Z<D)return-z*T(1-Z/D)}return 0}function O(L){const S={...y.value,right:0,bottom:0};return S.left+=p.value.left,S.top+=p.value.top-d.value.top,S.right=S.width+S.left,S.bottom=S.height+S.top,S.left<L.right&&S.right>L.left&&S.top<L.bottom&&S.bottom>L.top}function C(){d.value.sync();const{top:L,height:S}=d.value;u.value.y=Math.min(S+p.value.top,u.value.y+L-u.value.scrollTop),u.value.scrollTop=L}function A(L,S,$="dynamic-styles"){let P=document.getElementById($);P||(P=document.createElement("style"),P.id=$,document.head.appendChild(P));const Z=P.sheet.cssRules,J=Z.length,Bn=`${L} { ${S} }`;for(let ve=0;ve<J;ve++){const Fe=Z[ve];if(Fe.selectorText===L&&Fe.style.cssText===S)return}P.sheet.insertRule(Bn,J)}function v(L,S){g.value=!0,m.value=!0,d.value.sync(!0);const $=S+d.value.top;h.value.x=L,h.value.y=$,u.value.x=L,u.value.y=$,c.value?.classList.add("disable-scroll-behavior"),M.clear()}function B(L,S,$){!m.value||(g.value&&n==="colum"&&!Y()&&(i(),g.value=!1),$?.(),I(S),u.value.x=Math.max(L,p.value.left),u.value.y=Math.min(S+d.value.top,d.value.height+p.value.top),u.value.scrollTop=d.value.top,r.value())}function Q(){m.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function k(){!m.value||(w||C(),r.value())}function Y(){if(!m.value)return!1;const{width:L,height:S}=y.value;return!(Math.max(L,S)>5)}function F(){Y()&&i()}function q(){Y()||c.value?.querySelectorAll(`[${t}]`).forEach(L=>{f[`${t}`]=L.getAttribute(`${t}`),O(L.getBoundingClientRect())?s([f]):a([f])})}function On(){const L=[];let S=null,$=0;c.value?.querySelectorAll(`[${t}]`).forEach((P,Z)=>{const J=P.getAttribute(`${t}`);L.push(J),O(P.getBoundingClientRect())?(S===null&&(S=Z),S=Math.min(S,Z),$=Math.max($,Z)):(f[`${t}`]=J,M.has(J)&&a([f]))});for(let P=S;P<$+1;P++)f[`${t}`]=L[P],s([f]),M.add(L[P])}function kn(L){return!L?.value||(c.value=L.value,!c?.value)?!1:(N.observe(c.value),A(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:kn,dragStart:v,dragMove:B,dragEnd:Q,onScroll:k,isSingleClick:Y,cancelSelectAllBySingleClick:F,selectFn:r,selectRange:y,isPressing:m,containerEl:c,observer:N}}function ct(t){const n=De(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:a,dragMove:i,dragEnd:f,cancelSelectAllBySingleClick:r}=n,M=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=pe(`.drag-select-box {
1
+ (function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.ui={},E.Vue))})(this,function(E,e){"use strict";const Ie={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const f=i.clientX,r=i.clientY,M=Math.abs(f-o),g=Math.abs(r-l);M>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},He={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}};function Ve(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function We(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const f=typeof n=="function"?n:n.get,r=typeof n=="function"?void 0:n.set,M=e.customRef((g,c)=>(l=g,s=c,{get(){return a.value&&(o=f(),a.value=!1),l(),o},set(h){r?.(h)}}));return Object.isExtensible(M)&&(M.trigger=i),M}function ge(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function H(t){return typeof t=="function"?t():e.unref(t)}const ze=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Xe=Object.prototype.toString,Ze=t=>Xe.call(t)==="[object Object]",K=()=>{};function Ae(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function Ke(t,n={}){let o,l,s=K;const a=f=>{clearTimeout(f),s(),s=K};return f=>{const r=H(t),M=H(n.maxWait);return o&&a(o),r<=0||M!==void 0&&M<=0?(l&&(a(l),l=null),Promise.resolve(f())):new Promise((g,c)=>{s=n.rejectOnCancel?c:g,M&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(f())},M)),o=setTimeout(()=>{l&&a(l),l=null,g(f())},r)})}}function Ge(...t){let n=0,o,l=!0,s=K,a,i,f,r,M;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:f=!0,leading:r=!0,rejectOnCancel:M=!1}=t[0]:[i,f=!0,r=!0,M=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=K)};return h=>{const m=H(i),u=Date.now()-n,N=()=>a=h();return g(),m<=0?(n=Date.now(),N()):(u>m&&(r||!l)?(n=Date.now(),N()):f&&(a=new Promise((p,d)=>{s=M?d:p,o=setTimeout(()=>{n=Date.now(),l=!0,p(N()),g()},Math.max(0,m-u))})),!r&&!o&&(o=setTimeout(()=>l=!0,m)),l=!1,a)}}function qe(t){return t||e.getCurrentInstance()}function te(t,n=200,o={}){return Ae(Ke(n,o),t)}function me(t,n=200,o=!1,l=!0,s=!1){return Ae(Ge(n,o,l,s),t)}function he(t,n=!0,o){qe()?e.onMounted(t,o):n?t():e.nextTick(t)}function W(t){var n;const o=H(t);return(n=o?.$el)!=null?n:o}const ne=ze?window:void 0,Je=ze?window.document:void 0;function oe(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ne):[n,o,l,s]=t,!n)return K;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},f=(g,c,h,m)=>(g.addEventListener(c,h,m),()=>g.removeEventListener(c,h,m)),r=e.watch(()=>[W(n),H(s)],([g,c])=>{if(i(),!g)return;const h=Ze(c)?{...c}:c;a.push(...o.flatMap(m=>l.map(u=>f(g,m,u,h))))},{immediate:!0,flush:"post"}),M=()=>{r(),i()};return ge(M),M}function et(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function tt(t){const n=et();return e.computed(()=>(n.value,Boolean(t())))}function nt(t){const n=e.getCurrentInstance(),o=We(()=>null,()=>t?W(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Le(t,n,o={}){const{window:l=ne,...s}=o;let a;const i=tt(()=>l&&"ResizeObserver"in l),f=()=>{a&&(a.disconnect(),a=void 0)},r=e.computed(()=>Array.isArray(t)?t.map(c=>W(c)):[W(t)]),M=e.watch(r,c=>{if(f(),i.value&&l){a=new ResizeObserver(n);for(const h of c)h&&a.observe(h,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),M()};return ge(g),{isSupported:i,stop:g}}function ot(t,n={width:0,height:0},o={}){const{window:l=ne,box:s="content-box"}=o,a=e.computed(()=>{var c,h;return(h=(c=W(t))==null?void 0:c.namespaceURI)==null?void 0:h.includes("svg")}),i=e.ref(n.width),f=e.ref(n.height),{stop:r}=Le(t,([c])=>{const h=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&a.value){const m=W(t);if(m){const u=l.getComputedStyle(m);i.value=Number.parseFloat(u.width),f.value=Number.parseFloat(u.height)}}else if(h){const m=Array.isArray(h)?h:[h];i.value=m.reduce((u,{inlineSize:N})=>u+N,0),f.value=m.reduce((u,{blockSize:N})=>u+N,0)}else i.value=c.contentRect.width,f.value=c.contentRect.height},o);he(()=>{const c=W(t);c&&(i.value="offsetWidth"in c?c.offsetWidth:n.width,f.value="offsetHeight"in c?c.offsetHeight:n.height)});const M=e.watch(()=>W(t),c=>{i.value=c?n.width:0,f.value=c?n.height:0});function g(){r(),M()}return{width:i,height:f,stop:g}}const je=1;function lt(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=K,onScroll:a=K,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:f={capture:!1,passive:!0},behavior:r="auto",window:M=ne,onError:g=D=>{console.error(D)}}=n,c=e.ref(0),h=e.ref(0),m=e.computed({get(){return c.value},set(D){N(D,void 0)}}),u=e.computed({get(){return h.value},set(D){N(void 0,D)}});function N(D,z){var b,T,w;if(!M)return;const I=H(t);!I||(w=I instanceof Document?M.document.body:I)==null||w.scrollTo({top:(b=H(z))!=null?b:u.value,left:(T=H(D))!=null?T:m.value,behavior:H(r)})}const p=e.ref(!1),d=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),j=D=>{!p.value||(p.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,s(D))},R=te(j,o+l),U=D=>{var z;if(!M)return;const b=((z=D?.document)==null?void 0:z.documentElement)||D?.documentElement||W(D),{display:T,flexDirection:w}=getComputedStyle(b),I=b.scrollLeft;y.left=I<c.value,y.right=I>c.value;const _=Math.abs(I)<=(i.left||0),O=Math.abs(I)+b.clientWidth>=b.scrollWidth-(i.right||0)-je;T==="flex"&&w==="row-reverse"?(d.left=O,d.right=_):(d.left=_,d.right=O),c.value=I;let C=b.scrollTop;D===M.document&&!C&&(C=M.document.body.scrollTop),y.top=C<h.value,y.bottom=C>h.value;const A=Math.abs(C)<=(i.top||0),v=Math.abs(C)+b.clientHeight>=b.scrollHeight-(i.bottom||0)-je;T==="flex"&&w==="column-reverse"?(d.top=v,d.bottom=A):(d.top=A,d.bottom=v),h.value=C},x=D=>{var z;if(!M)return;const b=(z=D.target.documentElement)!=null?z:D.target;U(b),p.value=!0,R(D),a(D)};return oe(t,"scroll",o?me(x,o,!0,!1):x,f),he(()=>{try{const D=H(t);if(!D)return;U(D)}catch(D){g(D)}}),oe(t,"scrollend",j,f),{x:m,y:u,isScrolling:p,arrivedState:d,directions:y,measure(){const D=H(t);M&&D&&U(D)}}}let st=0;function pe(t,n={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++st}`}=n,f=e.ref(t);let r=()=>{};const M=()=>{if(!l)return;const c=l.getElementById(i)||l.createElement("style");c.isConnected||(c.id=i,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(r=e.watch(f,h=>{c.textContent=h},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(r(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&he(M),a||ge(g),{id:i,css:f,unload:g,load:M,isLoaded:e.readonly(o)}}function Ce(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=ot(a),f=e.ref(!0),r=te(U,100);let M;const g=e.shallowRef(t),c=e.ref(0),h=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let u=0;const N=e.ref([]),p=e.computed(()=>{let{sum:A,height:v}={sum:0,height:0};return g.value.map((B,Q)=>(typeof l=="number"?v=l:v=l(Q),A+=v,{height:v,sum:A}))}),d=e.computed(()=>T(h.value.start)),y=e.computed(()=>typeof l=="number"?p.value.length*l:p.value[p.value.length-1]?.sum||0),j=e.computed(()=>{const{start:A,end:v}=m.value;return N.value.slice(A,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(M)),e.watch(g,()=>{(i.width.value||i.height.value)&&x()},{deep:!0}),e.watch([i.width,i.height],([A,v])=>{(A||v)&&x()},{deep:!0}),e.watch(c,()=>{R(),r()});function R(){f.value=!1}function U(){f.value=!0,o?.()}function x(){cancelAnimationFrame(M),M=requestAnimationFrame(D)}function D(){if(a.value){c.value=a.value.scrollTop;let A=z(c.value);u=b(A);let v=Math.max(0,A-s),B=Math.min(A+u+s,g.value.length);h.value={start:v,end:B},N.value=g.value.slice(v,B).map((Q,k)=>({data:Q,index:k+v})),m.value.start=A-v,m.value.end=m.value.start+u}}function z(A){let v=0,B=p.value.length-1,Q=-1;for(;v<=B;){const k=Math.floor((v+B)/2);p.value[k].sum>=A?(Q=k,B=k-1):v=k+1}return Math.max(0,Q)}function b(A){let v=0,B=0;for(let Q=A;Q<p.value.length&&(v++,B+=p.value[Q].height,!(B>=i.height.value));Q++);return v}function T(A){if(typeof l=="number")return A*l;let v=p.value[A];return v?v.sum-v.height:0}function w(A){return p.value[A]||{sum:0,height:0}}function I(A){if(a.value){const v=w(A);a.value.scrollTop=v.sum-v.height,D()}}const _=e.computed(()=>({style:{width:"100%",height:`${y.value}px`,pointerEvents:f.value?void 0:"none"}})),O=e.computed(()=>({style:{transform:`translate3d(0, ${d.value}px, 0)`,"will-change":"transform"}})),C={overflowY:"auto"};return{list:N,visiableList:j,getItemHeightData:w,getoffsetTopIndex:z,totalHeight:y,clientHeight:i.height,scrollTo:I,scrollTop:c,isScrollEnd:f,containerProps:{ref:a,onScroll:()=>{x()},style:C},wrapperProps:_,innerProps:O}}const le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),G=Symbol(),fe=Symbol();function at(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(ie,s),i=e.inject(ae,n),f=e.inject(de,o),r=e.inject(se,t),M=e.inject(le,t),g=e.inject(re,t),c=e.inject(ce,t),h=e.inject(ue,t),m=e.inject(G,t),u=e.inject(fe,l);return{selected:a,isSelected:i,isAllSelected:f,toggle:r,toggleAll:M,select:g,selectAll:c,unselect:h,unselectAll:m,selectedCount:u}}function it(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.ref(new Map);e.watch(t,d=>{a.value=d.reduce((y,j)=>(y.set(j[n],j),y),new Map)},{deep:o.deep,immediate:!0});const i=e.computed(()=>{let d=[];if(l.value!=null)l.value&&(d=Array.from(a.value.values()));else if(s.value.size){let y;s.value.forEach(j=>{y=a.value.get(j),y&&d.push(y)})}return d}),f=e.computed(()=>{let d=0;return l.value!=null?l.value&&(d=a.value.size):d=s.value.size,d}),r=e.computed(()=>{let d;if(l.value!=null)d=l.value;else{const y=s.value.size,j=a.value.size;d=y==j}return d});function M(){l.value=!0}function g(){l.value=!1}function c(d){u(()=>{d.forEach(y=>{s.value.add(y[n])})})}function h(d){u(()=>{d.forEach(y=>{s.value.delete(y[n])})})}function m(d){return l.value!=null?l.value:s.value.has(d[n])}function u(d){l.value!=null&&(l.value?s.value=new Set(Array.from(a.value.keys())):s.value=new Set),d(),s.value.size==0?l.value=!1:s.value.size==a.value.size?l.value=!0:l.value=null}function N(d){u(()=>{d.forEach(y=>{m(y)?s.value.delete(y[n]):s.value.add(y[n])})})}function p(){const{value:d}=r;d?g():M()}return e.provide(le,p),e.provide(se,N),e.provide(ae,m),e.provide(ie,i),e.provide(re,c),e.provide(ce,M),e.provide(ue,h),e.provide(de,r),e.provide(G,g),e.provide(G,g),e.provide(fe,f),{selected:i,select:c,selectAll:M,unselect:h,unselectAll:g,toggle:N,toggleAll:p,isSelected:m,isAllSelected:r,selectedCount:f}}function rt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let u=[];return n.value!=null?n.value&&(u=t.value):o.value.size&&(u=Array.from(o.value.values())),u}),s=e.computed(()=>{let u=0;return n.value!=null?n.value&&(u=t.value.length):u=o.value.size,u}),a=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const N=o.value.size,p=t.value.length;u=N==p}return u});function i(){n.value=!0}function f(){n.value=!1}function r(u){c(()=>{u.forEach(N=>{o.value.add(N)})})}function M(u){c(()=>{u.forEach(N=>{o.value.delete(N)})})}function g(u){return n.value!=null?n.value:o.value.has(u)}function c(u){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),u(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function h(u){c(()=>{u.forEach(N=>{g(N)?o.value.delete(N):o.value.add(N)})})}function m(){const{value:u}=a;u?f():i()}return e.provide(le,m),e.provide(se,h),e.provide(ae,g),e.provide(ie,l),e.provide(re,r),e.provide(ce,i),e.provide(ue,M),e.provide(de,a),e.provide(G,f),e.provide(G,f),e.provide(fe,s),{selected:l,select:r,selectAll:i,unselect:M,unselectAll:f,toggle:h,toggleAll:m,isSelected:g,isAllSelected:a,selectedCount:s}}function ye(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function De({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ye("\u9009\u62E9"),unselect:a=ye("\u53D6\u6D88\u9009\u62E9"),unselectAll:i=ye("\u53D6\u6D88\u5168\u9009")}=l();let f={};const r=e.computed(()=>me(n==="colum"?q:On,50)),M=new Set,g=e.ref(!0),c=e.ref(),h=e.ref(!1),m=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(L=>p.value=L[0].target.getBoundingClientRect()),p=e.ref({}),d=e.ref({top:0,height:0,sync(L=!1){d.value.top=c.value?.scrollTop||0,L&&(d.value.height=c.value?.scrollHeight||0)}}),y=e.computed(()=>h.value?{left:Math.min(m.value.x,u.value.x)-p.value.left,top:Math.min(m.value.y,u.value.y)-p.value.top,width:Math.abs(m.value.x-u.value.x),height:Math.abs(m.value.y-u.value.y)}:{left:0,top:0,width:0,height:0}),{margin:j=50,startSpeed:R=30,maxSpeed:U=30}=o;let x;const D=j,z=R,b=U,T=L=>L**1;let w=0;function I(L){if(cancelAnimationFrame(x),w=_(L),w=Math.max(Math.min(w,b),-b),w!==0){const S=c.value;if(!S||!h.value)return;const $=d.value.height-p.value.height;let P=d.value.top+Number(w);P=Math.min(Math.max(0,P),$),S.scrollTop=P,C(),x=requestAnimationFrame(()=>I(L))}}function _(L){if(c.value){const $=p.value,P=$.bottom-L;if(P<D)return z*T(1-P/D);const Z=L-$.top;if(Z<D)return-z*T(1-Z/D)}return 0}function O(L){const S={...y.value,right:0,bottom:0};return S.left+=p.value.left,S.top+=p.value.top-d.value.top,S.right=S.width+S.left,S.bottom=S.height+S.top,S.left<L.right&&S.right>L.left&&S.top<L.bottom&&S.bottom>L.top}function C(){d.value.sync();const{top:L,height:S}=d.value;u.value.y=Math.min(S+p.value.top,u.value.y+L-u.value.scrollTop),u.value.scrollTop=L}function A(L,S,$="dynamic-styles"){let P=document.getElementById($);P||(P=document.createElement("style"),P.id=$,document.head.appendChild(P));const Z=P.sheet.cssRules,J=Z.length,Bn=`${L} { ${S} }`;for(let ve=0;ve<J;ve++){const Fe=Z[ve];if(Fe.selectorText===L&&Fe.style.cssText===S)return}P.sheet.insertRule(Bn,J)}function v(L,S){g.value=!0,h.value=!0,d.value.sync(!0);const $=S+d.value.top;m.value.x=L,m.value.y=$,u.value.x=L,u.value.y=$,c.value?.classList.add("disable-scroll-behavior"),M.clear()}function B(L,S,$){!h.value||(g.value&&n==="colum"&&!Y()&&(i(),g.value=!1),$?.(),I(S),u.value.x=Math.max(L,p.value.left),u.value.y=Math.min(S+d.value.top,d.value.height+p.value.top),u.value.scrollTop=d.value.top,r.value())}function Q(){h.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function k(){!h.value||(w||C(),r.value())}function Y(){if(!h.value)return!1;const{width:L,height:S}=y.value;return!(Math.max(L,S)>5)}function F(){Y()&&i()}function q(){Y()||c.value?.querySelectorAll(`[${t}]`).forEach(L=>{f[`${t}`]=L.getAttribute(`${t}`),O(L.getBoundingClientRect())?s([f]):a([f])})}function On(){const L=[];let S=null,$=0;c.value?.querySelectorAll(`[${t}]`).forEach((P,Z)=>{const J=P.getAttribute(`${t}`);L.push(J),O(P.getBoundingClientRect())?(S===null&&(S=Z),S=Math.min(S,Z),$=Math.max($,Z)):(f[`${t}`]=J,M.has(J)&&a([f]))});for(let P=S;P<$+1;P++)f[`${t}`]=L[P],s([f]),M.add(L[P])}function kn(L){return!L?.value||(c.value=L.value,!c?.value)?!1:(N.observe(c.value),A(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:kn,dragStart:v,dragMove:B,dragEnd:Q,onScroll:k,isSingleClick:Y,cancelSelectAllBySingleClick:F,selectFn:r,selectRange:y,isPressing:h,containerEl:c,observer:N}}function ct(t){const n=De(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:a,dragMove:i,dragEnd:f,cancelSelectAllBySingleClick:r}=n,M=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=pe(`.drag-select-box {
2
2
  position: absolute;
3
3
  z-index: 99999;
4
4
  background-color: rgb(191 219 254);
5
5
  opacity: 0.5;
6
- }`,{id:"styletag_lzc_dragselect",manual:!0}),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:M.value})}});function m(d){d.button===0&&a(d.x,d.y)}function h(d){i(d.x,d.y)}function u(d){d.composedPath().some(j=>j?.getAttribute?.(t.attribute))||r(),f()}function N(d){try{if(!n.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",m),window.addEventListener("mousemove",h),window.addEventListener("mouseup",u)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",m),window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",u)}return{init:N,unMount:p}}function ut(t,n,o=600){const l=De({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:a,dragStart:i,dragMove:f,dragEnd:r}=l;let M;function g(){clearTimeout(M)}function c(p){g(),p.composedPath().some(y=>!!y?.getAttribute?.(t.attribute))&&(M=setTimeout(()=>{const{clientX:y,clientY:j}=p.targetTouches[0];i(y,j),n?.(),f(y,j,()=>p.preventDefault()),p.preventDefault()},o))}function m(p){g();const{clientX:d,clientY:y}=p.targetTouches[0];f(d,y,()=>p.preventDefault())}function h(){g(),r()}function u(p){try{if(!l.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",a),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",h),window.addEventListener("touchend",h)}catch(d){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",d)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",a),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",h),window.removeEventListener("touchEnd",h)}return{init:u,unMount:N}}const Se=Symbol(),dt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Se,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.hiddenOverlay?"no-overlay-modal":"lzc-modal")},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(Ie),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Qn="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},ft=V(dt,[["__scopeId","data-v-9cbfb945"]]);function Mt(t){function n(o,l){const s=document.createElement("div"),a={setup(){return()=>e.h(ft,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function Te({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${o}ms`;return pe(`@keyframes lzcDelayLoad {
6
+ }`,{id:"styletag_lzc_dragselect",manual:!0}),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:M.value})}});function h(d){d.button===0&&a(d.x,d.y)}function m(d){i(d.x,d.y)}function u(d){d.composedPath().some(j=>j?.getAttribute?.(t.attribute))||r(),f()}function N(d){try{if(!n.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",h),window.addEventListener("mousemove",m),window.addEventListener("mouseup",u)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",h),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",u)}return{init:N,unMount:p}}function ut(t,n,o=600){const l=De({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:a,dragStart:i,dragMove:f,dragEnd:r}=l;let M;function g(){clearTimeout(M)}function c(p){g(),p.composedPath().some(y=>!!y?.getAttribute?.(t.attribute))&&(M=setTimeout(()=>{const{clientX:y,clientY:j}=p.targetTouches[0];i(y,j),n?.(),f(y,j,()=>p.preventDefault()),p.preventDefault()},o))}function h(p){g();const{clientX:d,clientY:y}=p.targetTouches[0];f(d,y,()=>p.preventDefault())}function m(){g(),r()}function u(p){try{if(!l.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",a),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",h),window.addEventListener("touchcancel",m),window.addEventListener("touchend",m)}catch(d){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",d)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",a),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",h),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:u,unMount:N}}const Se=Symbol(),dt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Se,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.hiddenOverlay?"no-overlay-modal":"lzc-modal")},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(Ie),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Qn="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},ft=V(dt,[["__scopeId","data-v-9cbfb945"]]);function Mt(t){function n(o,l){const s=document.createElement("div"),a={setup(){return()=>e.h(ft,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function Te({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${o}ms`;return pe(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,10 +11,10 @@
11
11
  .${s} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${a} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const f=nt();return e.onMounted(()=>{f.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function gt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Te({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const mt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ht=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),mt,16))}}),Rn="",xe=V(ht,[["__scopeId","data-v-92a1804d"]]),pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",yt={class:"loading-wrap"},Dt=["src"],Tt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(pt),style:e.normalizeStyle(e.unref(o))},null,12,Dt)]))}}),Pn="",Nt=V(Tt,[["__scopeId","data-v-3c54972f"]]);async function Ne(t){return new Promise(n=>setTimeout(()=>n(),t))}const wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNC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OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",vt=["onClick"],It=["onClick"],zt=["src"],At=["src"],Lt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let M={};return o.captureEventP&&(M.pointerEvents="none"),M}),a=e.computed(()=>{let M={padding:"12px"};return(o.icon||o.showIcon)&&(M.padding="20px"),o.width&&(M.width=o.width),o.maxWidth&&(M.maxWidth=o.maxWidth),o.overlayContentStyle&&(M={...M,...o.overlayContentStyle}),M}),i=e.computed(()=>{let M={};return o.showClose&&!o.icon&&(M.paddingRight="16px"),M});function f(){o.closeOnClickOverlay&&n("close")}function r(){o.closeOnClick&&n("close")}return(M,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(f,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(wt),class:e.normalizeClass(`${l}-close`)},null,10,zt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Et),class:e.normalizeClass(`${l}-icon`)},null,10,At)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,It)],10,vt),[[e.vShow,t.visible]])],4)]),_:1}))}}),$n="",Fn="",jt=V(Lt,[["__scopeId","data-v-0947d1e3"]]);class _e{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=jt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await Ne(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Ct(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!=null?n.delay:300,f={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,f);const r=e.ref(!1);let M=null;const g=new _e(f);async function c(...h){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,M=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,r.value),s&&(!r.value||g.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const u=await t(...h);o&&console.log("useDelayAsync - execute res: ",u),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await m(a),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await m(a),await n?.onError?.(u)}}}async function m(h=!0){o&&console.log("useDelayAsync - close - closeLoading: ",h),r.value=!1,M&&clearTimeout(M),M=null,h&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:r,handler:c,close:m}}function St(t,n){return t>n?"horizontal":n>t?"vertical":""}function xt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),f=()=>i.value==="vertical",r=()=>i.value==="horizontal",M=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(m,h){M(),t.value=m,n.value=h}function c(m,h){o.value=(m<0?0:m)-t.value,l.value=h-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const u=10;(!i.value||s.value<u&&a.value<u)&&(i.value=St(s.value,a.value))}return{move:c,start:g,reset:M,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:f,isHorizontal:r}}const be=250,Oe=5,_t=500;function bt(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,f){const r=Date.now()-o;i<Oe&&f<Oe&&(r<be?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},be):t.onTap?.():r>_t&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Ot(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function kt(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:X(a),height:X(i)}}function Bt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function we(t,n,o){return Math.min(Math.max(t,n),o)}function X(t,n=2){return parseFloat(t.toFixed(n))}function Me(t,n,o){return t=X(t),n=X(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function ke(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Qt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Be(t){const{disableZoom:n}=t,o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),f=e.ref({width:0,height:0}),r=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),M=e.ref({}),g=xt(),c=Ot(a,{onComplate(){r.preview||p()}}),m=bt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Le(a,T=>h(T)),e.watch([s,a],([T,w])=>{u(T,w)},{immediate:!0});async function h(T){const[w]=T;w.contentRect.width==f.value.width&&w.contentRect.height==f.value.height||(await u(s.value),await p(r.level,!0))}async function u(T,w){await z(T,w),T&&b()}async function N(T){if(!r.preview)return;r.preview=!1,T=T??r.level;const w=a.value;if(!w)return;const{scrollTop:I,scrollLeft:_}=w,{width:O,height:C}=i.value,{scaleW:A,scaleH:v}=x(T),{top:B,left:Q}=D(A,v),k=Q!=0?Q:_*-1,Y=B!=0?B:I*-1;w.scrollTop=0,w.scrollLeft=0;const{value:F}=M;F.width=`${O}px`,F.height=`${C}px`,F.maxHeight="none",F.transitionDuration="0s",F.transform=Me(k,Y,T),M.value=F,await e.nextTick(),r.offsetX=k,r.offsetY=Y,await Ne(20)}async function p(T,w){if(!w&&r.preview)return;r.preview=!0,T=T??r.level;const{value:I}=M,{scaleW:_,scaleH:O}=x(T),{left:C,top:A}=D(_,O);T===1&&(I.maxHeight="100%"),I.width=`${_}px`,I.height=`${O}px`,I.transitionDuration="0s",I.transform=Me(C,A,1),M.value=I,await e.nextTick();const v=a.value;if(!v)return;const{offsetX:B,offsetY:Q}=r;B<0&&(v.scrollLeft=Math.abs(B)),Q<0&&(v.scrollTop=Math.abs(Q))}async function d(T,w,I){if(n||(T=X(T),T=we(T,o.value-o.value*.5,l.value+l.value*.5),T==r.level))return;r.preview&&await N(),w||(w={x:g.startX.value,y:g.startY.value});const{value:_}=M,{width:O,height:C}=i.value,{scaleW:A,scaleH:v}=x(T),{top:B,left:Q}=D(A,v),k=T/r.level,Y={left:Math.abs(O*T-f.value.width)*-1,top:Math.abs(C*T-f.value.height)*-1,right:Q,bottom:B};let F=Q!=0?Q:(r.offsetX-w.x)*k+w.x,q=B!=0?B:(r.offsetY-w.y)*k+w.y;F=X(we(F,Y.left,Y.right)),q=X(we(q,Y.top,Y.bottom)),_.width=`${O}px`,_.height=`${C}px`,_.transitionDuration=I?Bt(T):"0s",_.transform=Me(F,q,T),r.offsetX=F,r.offsetY=q,r.level=T,M.value=_,await e.nextTick(),I&&c.startTransition(),t.onScale?.(T)}function y(){const T=r.level>1?1:U();d(T,void 0,!0)}function j(T,w){if(!r.preview)return;const I=a.value;!I||I.scrollTo({left:r.offsetX-T,top:r.offsetY-w})}async function R(){r.level>=o.value&&r.level<=l.value?r.zooming&&await p():r.level<o.value?await d(o.value,void 0,!0):r.level>l.value&&await d(l.value,r.lastCenter,!0),r.zooming=!1}function U(){const{width:T,height:w}=i.value,{width:I,height:_}=f.value,O=2.5;let C;return w==_?(C=I/T,C-1<.1&&(C=O)):C=Math.max(O,I/T,_/w),C}function x(T){const{width:w,height:I}=i.value;return{scaleW:X(T*w),scaleH:X(T*I)}}function D(T,w){const{width:I,height:_}=f.value,O=Math.max(0,(_-w)*.5),C=Math.max(0,(I-T)*.5);return{top:O,left:C}}async function z(T,w){if(T=T??s.value,w=w??a.value,!w)return;let I,{clientWidth:_=0,clientHeight:O=0}=T||{};const{clientWidth:C,clientHeight:A}=w;if(T instanceof HTMLImageElement?I={width:T.naturalWidth,height:T.naturalHeight}:T instanceof HTMLVideoElement&&(I={width:T.videoWidth,height:T.videoHeight}),I){const v=kt(I.width,I.height,C,A);_=v.width,O=v.height}(_===0||O===0)&&(_=i.value.width||C,O=i.value.height||A),i.value={width:Math.min(_,C),height:Math.min(O,A)},f.value={width:C,height:A}}function b(){const T=U();l.value=Math.max(l.value,T*2)}return{touch:g,state:r,style:M,gesture:m,transition:c,imageRef:s,containerRef:a,switchToZoom:N,switchToPreview:p,panTo:j,zoomTo:d,zoomFinished:R,toggleZoom:y}}function Yt(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,f=null;const r={top:0,left:0},M=te(u,150);oe("keyup",p),oe("keydown",N);function g(d){const y=n.containerRef.value;if(!y)return;const{left:j,top:R}=y.getBoundingClientRect();s.startTap(),l.start(d.clientX-j,d.clientY-R),a.transitioning.value||(i=!0,r.left=j,r.top=R,o.offsetX=y.scrollLeft,o.offsetY=y.scrollTop),window.addEventListener("pointermove",c),window.addEventListener("pointerup",m)}function c(d){!i||(l.move(d.clientX,d.clientY),o.level!==1&&n.panTo(l.deltaX.value-r.left,l.deltaY.value-r.top))}function m(d){s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",m)}function h(d){if(!d.ctrlKey)return;o.zooming||(o.zooming=!0,f=="Control"&&window.addEventListener("keyup",u)),d.preventDefault();let y=-d.deltaY;d.deltaMode===1?y*=.05:y*=d.deltaMode?1:.002,f!="Control"&&(y*=10),y=2**y;const j=o.level*y;o.lastCenter={x:d.offsetX,y:d.offsetY},n.zoomTo(j,o.lastCenter),f!="Control"&&M()}function u(){n.zoomFinished(),window.removeEventListener("keyup",u)}function N(d){f=d.key}function p(){f=null}return{core:n,onPointerDown:g,onWheel:h}}function Ut(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a,containerRef:i}=n,f=lt(i);let r,M,g,c;async function m(p){const{touches:d}=p;r=d.length,o.zooming=r===2,s.startTap(),l.start(d[0].clientX,d[0].clientY),N("start",p),o.zooming&&(p.preventDefault(),M=o.level,g=ke(d),await n.switchToZoom(),o.lastCenter=Qt(d))}async function h(p){const{touches:d}=p;if(r=d.length,l.move(d[0].clientX,d[0].clientY),N("move",p),o.zooming&&r==2){p.preventDefault();const y=ke(d),j=M*y/g;n.zoomTo(j,o.lastCenter)}}async function u(p){p.touches.length||(N("end",p),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset())}function N(p,d){f.measure();let{clientX:y,clientY:j}=d.touches.length!=0?d.touches[0]:d.changedTouches[0];const{top:R,left:U,right:x,bottom:D}=f.arrivedState;if(p=="start")c=R||U||x||D;else if(r==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const z=l.startY.value<j;c=R&&z||D&&!z}else if(l.direction.value=="horizontal"){const z=l.startX.value<y;c=U&&z||x&&!z}}c&&a.transitioning.value&&(c=!1,d.preventDefault()),p=="end"&&!c&&(y=l.startX.value,j=l.startY.value,c=!0),(p!="move"||c)&&t.onSwipeEdge?.(p,l.direction.value,y,j)}return{core:n,onTouchStart:m,onTouchMove:h,onTouchEnd:u}}function Rt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function Qe(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Ye(t){let n=!1;return()=>{n||(t(),n=!0)}}function Pt(t){let n=null;const{isActivated:o}=Qe(),l=Ye(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const $t=["onClick"],Ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function r(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(M,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(r,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,$t))}}),Hn="",Ht=V(Ft,[["__scopeId","data-v-25d39b90"]]),Ue={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Vt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Ht),{...Ue,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Ue.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Wt=["xlink:href","fill","color"],ee=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Wt)],4))}});function Xt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,f=e.ref(!0),r=te(T,100);let M,g="";const c=e.ref(0),m=e.ref(0),h=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),p=e.computed(()=>!!m.value),d=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),y=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-N.value.clientHeight),j=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),R=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>R.value>a?0:R.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${h.value}px,0)`,height:l?`${U.value}px`:void 0}));function D(k){b(),m.value=k.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function z(){n.value.style.scrollBehavior=g,m.value=0,r()}function b(){f.value=!1}function T(){p.value||(f.value=!0)}function w(k){if(!p.value)return;let Y=k.clientY-u.value.top-m.value;Y<0?h.value=0:Y>=y.value?h.value=y.value:h.value=Y,n.value.scrollTo({top:h.value/y.value*j.value})}function I(){p.value||_()}function _(){cancelAnimationFrame(M),M=requestAnimationFrame(O)}function O(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,h.value=c.value/j.value*y.value)}function C(k){let Y="addEventListener";k==="add"?Y="addEventListener":Y="removeEventListener",o.value?.[Y]("pointerdown",D,{passive:!0}),window[Y]("pointermove",w,{passive:!0}),window[Y]("pointerup",z,{passive:!0})}const A=new MutationObserver(k=>{(i=="classList"||k.map(F=>F.oldValue).join().includes("height"))&&v()});function v(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){b(),setTimeout(()=>{N.value.clientHeight=o.value?.clientHeight??0,T()},150)}function Q(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",I,{passive:!0}),C("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),A.observe(n.value,k),setTimeout(()=>{v()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{b(),r()}),{isScrollEnd:f,isDragSlider:p,offsetTop:h,scrollTop:c,scrollable:d,sliderPos:x,init:Q,modifySliderEventListener:C}}const Zt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Kt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=Xt({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:f,isScrollEnd:r,sliderPos:M}=i,g=e.ref(!1),c=o.autoHide?e.computed(()=>g.value||!r.value):e.computed(()=>f.value),{load:m}=pe(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const f=nt();return e.onMounted(()=>{f.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function gt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Te({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const mt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ht=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),mt,16))}}),Rn="",xe=V(ht,[["__scopeId","data-v-92a1804d"]]),pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9c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syDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",yt={class:"loading-wrap"},Dt=["src"],Tt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(pt),style:e.normalizeStyle(e.unref(o))},null,12,Dt)]))}}),Pn="",Nt=V(Tt,[["__scopeId","data-v-3c54972f"]]);async function Ne(t){return new Promise(n=>setTimeout(()=>n(),t))}const wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ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IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",vt=["onClick"],It=["onClick"],zt=["src"],At=["src"],Lt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let M={};return o.captureEventP&&(M.pointerEvents="none"),M}),a=e.computed(()=>{let M={padding:"12px"};return(o.icon||o.showIcon)&&(M.padding="20px"),o.width&&(M.width=o.width),o.maxWidth&&(M.maxWidth=o.maxWidth),o.overlayContentStyle&&(M={...M,...o.overlayContentStyle}),M}),i=e.computed(()=>{let M={};return o.showClose&&!o.icon&&(M.paddingRight="16px"),M});function f(){o.closeOnClickOverlay&&n("close")}function r(){o.closeOnClick&&n("close")}return(M,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(f,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(wt),class:e.normalizeClass(`${l}-close`)},null,10,zt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Et),class:e.normalizeClass(`${l}-icon`)},null,10,At)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,It)],10,vt),[[e.vShow,t.visible]])],4)]),_:1}))}}),$n="",Fn="",jt=V(Lt,[["__scopeId","data-v-0947d1e3"]]);class _e{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=jt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await Ne(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Ct(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!=null?n.delay:300,f={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,f);const r=e.ref(!1);let M=null;const g=new _e(f);async function c(...m){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,M=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,r.value),s&&(!r.value||g.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const u=await t(...m);o&&console.log("useDelayAsync - execute res: ",u),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await h(a),await n?.onSuccess?.(u,[...m])}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await h(a),await n?.onError?.(u,[...m])}}}async function h(m=!0){o&&console.log("useDelayAsync - close - closeLoading: ",m),r.value=!1,M&&clearTimeout(M),M=null,m&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),h()}),{processing:r,handler:c,close:h}}function St(t,n){return t>n?"horizontal":n>t?"vertical":""}function xt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),f=()=>i.value==="vertical",r=()=>i.value==="horizontal",M=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(h,m){M(),t.value=h,n.value=m}function c(h,m){o.value=(h<0?0:h)-t.value,l.value=m-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const u=10;(!i.value||s.value<u&&a.value<u)&&(i.value=St(s.value,a.value))}return{move:c,start:g,reset:M,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:f,isHorizontal:r}}const be=250,Oe=5,_t=500;function bt(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,f){const r=Date.now()-o;i<Oe&&f<Oe&&(r<be?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},be):t.onTap?.():r>_t&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Ot(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function kt(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:X(a),height:X(i)}}function Bt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function we(t,n,o){return Math.min(Math.max(t,n),o)}function X(t,n=2){return parseFloat(t.toFixed(n))}function Me(t,n,o){return t=X(t),n=X(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function ke(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Qt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Be(t){const{disableZoom:n}=t,o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),f=e.ref({width:0,height:0}),r=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),M=e.ref({}),g=xt(),c=Ot(a,{onComplate(){r.preview||p()}}),h=bt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Le(a,T=>m(T)),e.watch([s,a],([T,w])=>{u(T,w)},{immediate:!0});async function m(T){const[w]=T;w.contentRect.width==f.value.width&&w.contentRect.height==f.value.height||(await u(s.value),await p(r.level,!0))}async function u(T,w){await z(T,w),T&&b()}async function N(T){if(!r.preview)return;r.preview=!1,T=T??r.level;const w=a.value;if(!w)return;const{scrollTop:I,scrollLeft:_}=w,{width:O,height:C}=i.value,{scaleW:A,scaleH:v}=x(T),{top:B,left:Q}=D(A,v),k=Q!=0?Q:_*-1,Y=B!=0?B:I*-1;w.scrollTop=0,w.scrollLeft=0;const{value:F}=M;F.width=`${O}px`,F.height=`${C}px`,F.maxHeight="none",F.transitionDuration="0s",F.transform=Me(k,Y,T),M.value=F,await e.nextTick(),r.offsetX=k,r.offsetY=Y,await Ne(20)}async function p(T,w){if(!w&&r.preview)return;r.preview=!0,T=T??r.level;const{value:I}=M,{scaleW:_,scaleH:O}=x(T),{left:C,top:A}=D(_,O);T===1&&(I.maxHeight="100%"),I.width=`${_}px`,I.height=`${O}px`,I.transitionDuration="0s",I.transform=Me(C,A,1),M.value=I,await e.nextTick();const v=a.value;if(!v)return;const{offsetX:B,offsetY:Q}=r;B<0&&(v.scrollLeft=Math.abs(B)),Q<0&&(v.scrollTop=Math.abs(Q))}async function d(T,w,I){if(n||(T=X(T),T=we(T,o.value-o.value*.5,l.value+l.value*.5),T==r.level))return;r.preview&&await N(),w||(w={x:g.startX.value,y:g.startY.value});const{value:_}=M,{width:O,height:C}=i.value,{scaleW:A,scaleH:v}=x(T),{top:B,left:Q}=D(A,v),k=T/r.level,Y={left:Math.abs(O*T-f.value.width)*-1,top:Math.abs(C*T-f.value.height)*-1,right:Q,bottom:B};let F=Q!=0?Q:(r.offsetX-w.x)*k+w.x,q=B!=0?B:(r.offsetY-w.y)*k+w.y;F=X(we(F,Y.left,Y.right)),q=X(we(q,Y.top,Y.bottom)),_.width=`${O}px`,_.height=`${C}px`,_.transitionDuration=I?Bt(T):"0s",_.transform=Me(F,q,T),r.offsetX=F,r.offsetY=q,r.level=T,M.value=_,await e.nextTick(),I&&c.startTransition(),t.onScale?.(T)}function y(){const T=r.level>1?1:U();d(T,void 0,!0)}function j(T,w){if(!r.preview)return;const I=a.value;!I||I.scrollTo({left:r.offsetX-T,top:r.offsetY-w})}async function R(){r.level>=o.value&&r.level<=l.value?r.zooming&&await p():r.level<o.value?await d(o.value,void 0,!0):r.level>l.value&&await d(l.value,r.lastCenter,!0),r.zooming=!1}function U(){const{width:T,height:w}=i.value,{width:I,height:_}=f.value,O=2.5;let C;return w==_?(C=I/T,C-1<.1&&(C=O)):C=Math.max(O,I/T,_/w),C}function x(T){const{width:w,height:I}=i.value;return{scaleW:X(T*w),scaleH:X(T*I)}}function D(T,w){const{width:I,height:_}=f.value,O=Math.max(0,(_-w)*.5),C=Math.max(0,(I-T)*.5);return{top:O,left:C}}async function z(T,w){if(T=T??s.value,w=w??a.value,!w)return;let I,{clientWidth:_=0,clientHeight:O=0}=T||{};const{clientWidth:C,clientHeight:A}=w;if(T instanceof HTMLImageElement?I={width:T.naturalWidth,height:T.naturalHeight}:T instanceof HTMLVideoElement&&(I={width:T.videoWidth,height:T.videoHeight}),I){const v=kt(I.width,I.height,C,A);_=v.width,O=v.height}(_===0||O===0)&&(_=i.value.width||C,O=i.value.height||A),i.value={width:Math.min(_,C),height:Math.min(O,A)},f.value={width:C,height:A}}function b(){const T=U();l.value=Math.max(l.value,T*2)}return{touch:g,state:r,style:M,gesture:h,transition:c,imageRef:s,containerRef:a,switchToZoom:N,switchToPreview:p,panTo:j,zoomTo:d,zoomFinished:R,toggleZoom:y}}function Yt(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,f=null;const r={top:0,left:0},M=te(u,150);oe("keyup",p),oe("keydown",N);function g(d){const y=n.containerRef.value;if(!y)return;const{left:j,top:R}=y.getBoundingClientRect();s.startTap(),l.start(d.clientX-j,d.clientY-R),a.transitioning.value||(i=!0,r.left=j,r.top=R,o.offsetX=y.scrollLeft,o.offsetY=y.scrollTop),window.addEventListener("pointermove",c),window.addEventListener("pointerup",h)}function c(d){!i||(l.move(d.clientX,d.clientY),o.level!==1&&n.panTo(l.deltaX.value-r.left,l.deltaY.value-r.top))}function h(d){s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",h)}function m(d){if(!d.ctrlKey)return;o.zooming||(o.zooming=!0,f=="Control"&&window.addEventListener("keyup",u)),d.preventDefault();let y=-d.deltaY;d.deltaMode===1?y*=.05:y*=d.deltaMode?1:.002,f!="Control"&&(y*=10),y=2**y;const j=o.level*y;o.lastCenter={x:d.offsetX,y:d.offsetY},n.zoomTo(j,o.lastCenter),f!="Control"&&M()}function u(){n.zoomFinished(),window.removeEventListener("keyup",u)}function N(d){f=d.key}function p(){f=null}return{core:n,onPointerDown:g,onWheel:m}}function Ut(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a,containerRef:i}=n,f=lt(i);let r,M,g,c;async function h(p){const{touches:d}=p;r=d.length,o.zooming=r===2,s.startTap(),l.start(d[0].clientX,d[0].clientY),N("start",p),o.zooming&&(p.preventDefault(),M=o.level,g=ke(d),await n.switchToZoom(),o.lastCenter=Qt(d))}async function m(p){const{touches:d}=p;if(r=d.length,l.move(d[0].clientX,d[0].clientY),N("move",p),o.zooming&&r==2){p.preventDefault();const y=ke(d),j=M*y/g;n.zoomTo(j,o.lastCenter)}}async function u(p){p.touches.length||(N("end",p),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset())}function N(p,d){f.measure();let{clientX:y,clientY:j}=d.touches.length!=0?d.touches[0]:d.changedTouches[0];const{top:R,left:U,right:x,bottom:D}=f.arrivedState;if(p=="start")c=R||U||x||D;else if(r==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const z=l.startY.value<j;c=R&&z||D&&!z}else if(l.direction.value=="horizontal"){const z=l.startX.value<y;c=U&&z||x&&!z}}c&&a.transitioning.value&&(c=!1,d.preventDefault()),p=="end"&&!c&&(y=l.startX.value,j=l.startY.value,c=!0),(p!="move"||c)&&t.onSwipeEdge?.(p,l.direction.value,y,j)}return{core:n,onTouchStart:h,onTouchMove:m,onTouchEnd:u}}function Rt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function Qe(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Ye(t){let n=!1;return()=>{n||(t(),n=!0)}}function Pt(t){let n=null;const{isActivated:o}=Qe(),l=Ye(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const $t=["onClick"],Ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function r(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(M,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(r,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,$t))}}),Hn="",Ht=V(Ft,[["__scopeId","data-v-25d39b90"]]),Ue={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Vt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Ht),{...Ue,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Ue.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Wt=["xlink:href","fill","color"],ee=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Wt)],4))}});function Xt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,f=e.ref(!0),r=te(T,100);let M,g="";const c=e.ref(0),h=e.ref(0),m=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),p=e.computed(()=>!!h.value),d=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),y=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-N.value.clientHeight),j=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),R=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>R.value>a?0:R.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function D(k){b(),h.value=k.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function z(){n.value.style.scrollBehavior=g,h.value=0,r()}function b(){f.value=!1}function T(){p.value||(f.value=!0)}function w(k){if(!p.value)return;let Y=k.clientY-u.value.top-h.value;Y<0?m.value=0:Y>=y.value?m.value=y.value:m.value=Y,n.value.scrollTo({top:m.value/y.value*j.value})}function I(){p.value||_()}function _(){cancelAnimationFrame(M),M=requestAnimationFrame(O)}function O(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,m.value=c.value/j.value*y.value)}function C(k){let Y="addEventListener";k==="add"?Y="addEventListener":Y="removeEventListener",o.value?.[Y]("pointerdown",D,{passive:!0}),window[Y]("pointermove",w,{passive:!0}),window[Y]("pointerup",z,{passive:!0})}const A=new MutationObserver(k=>{(i=="classList"||k.map(F=>F.oldValue).join().includes("height"))&&v()});function v(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){b(),setTimeout(()=>{N.value.clientHeight=o.value?.clientHeight??0,T()},150)}function Q(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",I,{passive:!0}),C("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),A.observe(n.value,k),setTimeout(()=>{v()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{b(),r()}),{isScrollEnd:f,isDragSlider:p,offsetTop:m,scrollTop:c,scrollable:d,sliderPos:x,init:Q,modifySliderEventListener:C}}const Zt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Kt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=Xt({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:f,isScrollEnd:r,sliderPos:M}=i,g=e.ref(!1),c=o.autoHide?e.computed(()=>g.value||!r.value):e.computed(()=>f.value),{load:h}=pe(`.hide-scrollbar {
15
15
  scrollbar-width: none;
16
16
  -ms-overflow-style: none;
17
17
  }
18
18
  .hide-scrollbar::-webkit-scrollbar {
19
19
  display: none;
20
- }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function h(){g.value=!0}function u(){g.value=!1}return n({uScrollBarReturn:i}),(N,p)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:h,onMouseleave:u,style:e.normalizeStyle(e.unref(M))},[e.renderSlot(N.$slots,"default",{},()=>[Zt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Wn="",Gt=V(Kt,[["__scopeId","data-v-405c22cf"]]),qt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Jt={class:"pull-refresh"},en={key:0,class:"pull-arrow-circle"},tn={key:0,class:"box-load"},nn={class:"left-load"},on={class:"right-load"},ln=qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),sn={class:"pull-arrow"},an={key:1},rn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),f=e.ref(.3),r=e.ref(!1),M=e.ref(0),g=e.ref(0),c=e.ref(0),m=e.ref(0),h=e.ref(0),u=e.ref(),N=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),d=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:f.value}));e.watch(h,D=>{D===0&&(s.value=-50,f.value=.3)}),e.watch(g,D=>{if(h.value===2)return;const z=Math.pow(D,o);z===0&&(s.value=-50),z<=50&&z>0&&(s.value=z-45,i.value=Math.pow(z,1.5),z>15?r.value=!0:r.value=!1),z>50&&(s.value=5,f.value=1,h.value)});const y=e.ref(0),j=D=>{y.value=D.touches[0].pageY},R=D=>{const z=D.touches[0].pageY-y.value;y.value=D.touches[0].pageY,!n.refreshOff&&(!n?.refresh||h.value!==2&&N.value===0&&(M.value===0&&(M.value=D.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,m.value=0,g.value=D.touches[0].pageY-M.value,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,z>0&&D.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||h.value===2)return;M.value=0,c.value=300;const D=Math.pow(g.value,o);x.value.style.transition=`${c.value}ms`,D>50?(h.value=2,g.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{u.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{u.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{h.value=0,g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},m.value)},600)})):(g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",j),x.value?.addEventListener("touchmove",R),x.value?.addEventListener("touchend",U))}),(D,z)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[u.value?(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",en,[h.value==2?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",on,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),ln])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:r.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Xn="",Re=V(rn,[["__scopeId","data-v-df5da876"]]),cn=["data-key"],un={inheritAttrs:!1},dn=e.defineComponent({...un,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Ce(e.toRef(l,"data"),{itemHeight:h=>l.itemHeight(l.data[h]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:f,innerProps:r,getItemHeightData:M,scrollTop:g}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function m(h,u){return l.getItemKey?l.getItemKey(h,u):`${u}`}return(h,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Re,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+c},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:c},[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...N)=>e.unref(i).onScroll&&e.unref(i).onScroll(...N)),ref:e.unref(i).ref,class:"virtualList"},h.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:N,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:m(N,p),"data-key":m(N,p),style:e.normalizeStyle({height:`${e.unref(M)(p).height}px`,display:"flex"})},[e.renderSlot(h.$slots,"default",{data:N,index:p},void 0,!0)],12,cn))),128))],16)],16)],16)])],64))}}),Zn="",fn=V(dn,[["__scopeId","data-v-dfe60586"]]),Ee=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Mn={style:{position:"absolute"}},gn=Ee(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mn=["width","height"],hn=[Ee(()=>e.createElementVNode("title",null,"logo",-1)),Ee(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],pn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Mn,[gn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hn,8,mn))]))}}),qn="",yn=V(pn,[["__scopeId","data-v-33519afd"]]),Dn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],Tn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function Pe(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const r=n?.value;return!r||r.startsWith("video/")?!0:r.startsWith("image/")?l.value?Dn.includes(r):Tn.includes(r):!1});t&&e.watch(t,r=>{o.value=r,s.value=!1});function f(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:f}}function $e(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Nn=t=>(e.pushScopeId("data-v-774cb54a"),t=t(),e.popScopeId(),t),wn=["title"],En=Nn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),vn=["src"],In=["src"],zn=["title"],An={inheritAttrs:!1},Ln=e.defineComponent({...An,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},emits:["load"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),f=e.ref(!1),{src:r,mime:M}=e.toRefs(o),{imgSrc:g,isSupport:c,hasError:m,handleError:h}=Pe(r,M),{vImageCancel:u}=$e(),{LoadingComp:N}=Te({component:xe,delay:300}),p=Ve(()=>f.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!f.value);function d(){i.value=!0}function y(){i.value&&(f.value=!0)}async function j(){d(),p.value?(l.value?.addEventListener("animationend",R),l.value?.classList.add("showing"),await Ne(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function R(){l.value?.removeEventListener("animationend",R),l.value?.classList.remove("showing"),l.value&&n("load",l.value),y()}async function U(D){D?j():s.value&&n("load",s.value),a.value=!0}function x(D){D?h():d(),a.value=!0}return(D,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(N),{key:0})),e.unref(c)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,zn)):e.renderSlot(D.$slots,"default",{key:2,src:e.unref(g),onLoad:U,onError:x},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},D.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:z[0]||(z[0]=b=>U()),onError:z[1]||(z[1]=b=>x()),src:t.thumbnail}),null,16,vn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},D.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:z[2]||(z[2]=b=>U(!0)),onError:z[3]||(z[3]=b=>x(!0)),src:e.unref(g)}),null,16,In)),[[e.unref(u)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),En],16,wn))],64))}}),Jn="",jn=V(Ln,[["__scopeId","data-v-774cb54a"]]),Cn=["title"],Sn=["src"],xn=["title"],_n=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:a,hasError:i,isSupport:f,handleError:r}=Pe(l,s),{vImageCancel:M}=$e();return(g,c)=>e.unref(f)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,xn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:c[0]||(c[0]=m=>o.value=!0),onError:c[1]||(c[1]=(...m)=>e.unref(r)&&e.unref(r)(...m)),src:e.unref(a)},null,40,Sn)),[[e.unref(M)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Cn))}}),eo="",bn=V(_n,[["__scopeId","data-v-5a7af152"]]);E.DefaultLoading=xe,E.Image=jn,E.Loading=yn,E.LoadingToast=_e,E.PageLoading=Nt,E.PullRefresh=Re,E.ScrollBar=Gt,E.SvgIcon=ee,E.Thumbnail=bn,E.ToastCreator=Vt,E.VirtualList=fn,E.allSelectedKey=ie,E.closeDialogKey=Se,E.dialogController=Mt,E.getTransform=Me,E.isAllSelectedKey=de,E.isSelectedKey=ae,E.once=Ye,E.selectAllKey=ce,E.selectKey=re,E.selectedCountKey=fe,E.toggleAllKey=le,E.toggleKey=se,E.unselectAllKey=G,E.unselectKey=ue,E.useBackPress=Pt,E.useDelayAsync=Ct,E.useDelayLoad=gt,E.useDelayLoadComp=Te,E.useDownDrag=Rt,E.useDragSelect=De,E.useDragSelectByMobile=ut,E.useDragSelectByPc=ct,E.useRouterActivated=Qe,E.useScaleImageByMobile=Ut,E.useScaleImageByPc=Yt,E.useSelectable=it,E.useSelectableByBase=rt,E.useSelectableInjectors=at,E.useVirtualList=Ce,E.vDebounceClick=He,E.vSingleClick=Ie,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{h(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function m(){g.value=!0}function u(){g.value=!1}return n({uScrollBarReturn:i}),(N,p)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:m,onMouseleave:u,style:e.normalizeStyle(e.unref(M))},[e.renderSlot(N.$slots,"default",{},()=>[Zt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Wn="",Gt=V(Kt,[["__scopeId","data-v-405c22cf"]]),qt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Jt={class:"pull-refresh"},en={key:0,class:"pull-arrow-circle"},tn={key:0,class:"box-load"},nn={class:"left-load"},on={class:"right-load"},ln=qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),sn={class:"pull-arrow"},an={key:1},rn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),f=e.ref(.3),r=e.ref(!1),M=e.ref(0),g=e.ref(0),c=e.ref(0),h=e.ref(0),m=e.ref(0),u=e.ref(),N=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${h.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),d=e.computed(()=>({borderColor:l,transition:h.value,transform:`rotate(${100+i.value}deg)`,opacity:f.value}));e.watch(m,D=>{D===0&&(s.value=-50,f.value=.3)}),e.watch(g,D=>{if(m.value===2)return;const z=Math.pow(D,o);z===0&&(s.value=-50),z<=50&&z>0&&(s.value=z-45,i.value=Math.pow(z,1.5),z>15?r.value=!0:r.value=!1),z>50&&(s.value=5,f.value=1,m.value)});const y=e.ref(0),j=D=>{y.value=D.touches[0].pageY},R=D=>{const z=D.touches[0].pageY-y.value;y.value=D.touches[0].pageY,!n.refreshOff&&(!n?.refresh||m.value!==2&&N.value===0&&(M.value===0&&(M.value=D.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,h.value=0,g.value=D.touches[0].pageY-M.value,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,z>0&&D.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||m.value===2)return;M.value=0,c.value=300;const D=Math.pow(g.value,o);x.value.style.transition=`${c.value}ms`,D>50?(m.value=2,g.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,h.value=300,n?.refresh&&n?.refresh().then(()=>{u.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{u.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{m.value=0,g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},h.value)},600)})):(g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",j),x.value?.addEventListener("touchmove",R),x.value?.addEventListener("touchend",U))}),(D,z)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[u.value?(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",en,[m.value==2?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",on,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),ln])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:r.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Xn="",Re=V(rn,[["__scopeId","data-v-df5da876"]]),cn=["data-key"],un={inheritAttrs:!1},dn=e.defineComponent({...un,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Ce(e.toRef(l,"data"),{itemHeight:m=>l.itemHeight(l.data[m]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:f,innerProps:r,getItemHeightData:M,scrollTop:g}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function h(m,u){return l.getItemKey?l.getItemKey(m,u):`${u}`}return(m,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Re,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+c},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:c},[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...N)=>e.unref(i).onScroll&&e.unref(i).onScroll(...N)),ref:e.unref(i).ref,class:"virtualList"},m.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:N,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:h(N,p),"data-key":h(N,p),style:e.normalizeStyle({height:`${e.unref(M)(p).height}px`,display:"flex"})},[e.renderSlot(m.$slots,"default",{data:N,index:p},void 0,!0)],12,cn))),128))],16)],16)],16)])],64))}}),Zn="",fn=V(dn,[["__scopeId","data-v-dfe60586"]]),Ee=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Mn={style:{position:"absolute"}},gn=Ee(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mn=["width","height"],hn=[Ee(()=>e.createElementVNode("title",null,"logo",-1)),Ee(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],pn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Mn,[gn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hn,8,mn))]))}}),qn="",yn=V(pn,[["__scopeId","data-v-33519afd"]]),Dn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],Tn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function Pe(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const r=n?.value;return!r||r.startsWith("video/")?!0:r.startsWith("image/")?l.value?Dn.includes(r):Tn.includes(r):!1});t&&e.watch(t,r=>{o.value=r,s.value=!1});function f(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:f}}function $e(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Nn=t=>(e.pushScopeId("data-v-774cb54a"),t=t(),e.popScopeId(),t),wn=["title"],En=Nn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),vn=["src"],In=["src"],zn=["title"],An={inheritAttrs:!1},Ln=e.defineComponent({...An,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},emits:["load"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),f=e.ref(!1),{src:r,mime:M}=e.toRefs(o),{imgSrc:g,isSupport:c,hasError:h,handleError:m}=Pe(r,M),{vImageCancel:u}=$e(),{LoadingComp:N}=Te({component:xe,delay:300}),p=Ve(()=>f.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!f.value);function d(){i.value=!0}function y(){i.value&&(f.value=!0)}async function j(){d(),p.value?(l.value?.addEventListener("animationend",R),l.value?.classList.add("showing"),await Ne(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function R(){l.value?.removeEventListener("animationend",R),l.value?.classList.remove("showing"),l.value&&n("load",l.value),y()}async function U(D){D?j():s.value&&n("load",s.value),a.value=!0}function x(D){D?m():d(),a.value=!0}return(D,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(N),{key:0})),e.unref(c)?e.unref(h)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,zn)):e.renderSlot(D.$slots,"default",{key:2,src:e.unref(g),onLoad:U,onError:x},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},D.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:z[0]||(z[0]=b=>U()),onError:z[1]||(z[1]=b=>x()),src:t.thumbnail}),null,16,vn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},D.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:z[2]||(z[2]=b=>U(!0)),onError:z[3]||(z[3]=b=>x(!0)),src:e.unref(g)}),null,16,In)),[[e.unref(u)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),En],16,wn))],64))}}),Jn="",jn=V(Ln,[["__scopeId","data-v-774cb54a"]]),Cn=["title"],Sn=["src"],xn=["title"],_n=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:a,hasError:i,isSupport:f,handleError:r}=Pe(l,s),{vImageCancel:M}=$e();return(g,c)=>e.unref(f)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,xn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:c[0]||(c[0]=h=>o.value=!0),onError:c[1]||(c[1]=(...h)=>e.unref(r)&&e.unref(r)(...h)),src:e.unref(a)},null,40,Sn)),[[e.unref(M)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Cn))}}),eo="",bn=V(_n,[["__scopeId","data-v-5a7af152"]]);E.DefaultLoading=xe,E.Image=jn,E.Loading=yn,E.LoadingToast=_e,E.PageLoading=Nt,E.PullRefresh=Re,E.ScrollBar=Gt,E.SvgIcon=ee,E.Thumbnail=bn,E.ToastCreator=Vt,E.VirtualList=fn,E.allSelectedKey=ie,E.closeDialogKey=Se,E.dialogController=Mt,E.getTransform=Me,E.isAllSelectedKey=de,E.isSelectedKey=ae,E.once=Ye,E.selectAllKey=ce,E.selectKey=re,E.selectedCountKey=fe,E.toggleAllKey=le,E.toggleKey=se,E.unselectAllKey=G,E.unselectKey=ue,E.useBackPress=Pt,E.useDelayAsync=Ct,E.useDelayLoad=gt,E.useDelayLoadComp=Te,E.useDownDrag=Rt,E.useDragSelect=De,E.useDragSelectByMobile=ut,E.useDragSelectByPc=ct,E.useRouterActivated=Qe,E.useScaleImageByMobile=Ut,E.useScaleImageByPc=Yt,E.useSelectable=it,E.useSelectableByBase=rt,E.useSelectableInjectors=at,E.useVirtualList=Ce,E.vDebounceClick=He,E.vSingleClick=Ie,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -12,9 +12,9 @@ export interface UseDelayAsyncOptions extends LoadingToastOptions {
12
12
  /** 当 error 错误时是否打印错误日志,默认开启 */
13
13
  printErrorLog?: boolean;
14
14
  /** 当execute函数执行完成后执行该回调函数 */
15
- onSuccess?: ((res?: any) => void) | ((res?: any) => Promise<void>);
15
+ onSuccess?: (() => void) | (() => Promise<void>) | ((res: any) => void) | ((res: any) => Promise<void>) | ((res: any, params: any[]) => void) | ((res: any, params: any[]) => Promise<void>);
16
16
  /** 抛出捕获到的错误 */
17
- onError?: ((err: any) => void) | (() => void) | (() => Promise<void>);
17
+ onError?: (() => void) | (() => Promise<void>) | ((err: any) => void) | ((err: any) => Promise<void>) | ((err: any, params: any[]) => void) | ((err: any, params: any[]) => Promise<void>);
18
18
  }
19
19
  export declare type UseDelayAsyncExpose = {
20
20
  /** 是否在执行中 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",