@lazycatcloud/lzc-toolkit 0.0.142 → 0.0.144

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
@@ -96,9 +96,9 @@ function Ut(...e) {
96
96
  };
97
97
  return (v) => {
98
98
  const f = le(i), c = Date.now() - t, w = () => a = v();
99
- return d(), f <= 0 ? (t = Date.now(), w()) : (c > f && (M || !o) ? (t = Date.now(), w()) : r && (a = new Promise((T, g) => {
100
- l = s ? g : T, n = setTimeout(() => {
101
- t = Date.now(), o = !0, T(w()), d();
99
+ return d(), f <= 0 ? (t = Date.now(), w()) : (c > f && (M || !o) ? (t = Date.now(), w()) : r && (a = new Promise((D, g) => {
100
+ l = s ? g : D, n = setTimeout(() => {
101
+ t = Date.now(), o = !0, D(w()), d();
102
102
  }, Math.max(0, f - c));
103
103
  })), !M && !n && (n = setTimeout(() => o = !0, f)), o = !1, a);
104
104
  };
@@ -279,7 +279,7 @@ function Zt(e, t = {}) {
279
279
  behavior: le(M)
280
280
  });
281
281
  }
282
- const T = h(!1), g = Le({
282
+ const D = h(!1), g = Le({
283
283
  left: !0,
284
284
  right: !1,
285
285
  top: !0,
@@ -290,7 +290,7 @@ function Zt(e, t = {}) {
290
290
  top: !1,
291
291
  bottom: !1
292
292
  }), x = (y) => {
293
- !T.value || (T.value = !1, N.left = !1, N.right = !1, N.top = !1, N.bottom = !1, l(y));
293
+ !D.value || (D.value = !1, N.left = !1, N.right = !1, N.top = !1, N.bottom = !1, l(y));
294
294
  }, R = Ze(x, n + o), F = (y) => {
295
295
  var L;
296
296
  if (!s)
@@ -308,7 +308,7 @@ function Zt(e, t = {}) {
308
308
  if (!s)
309
309
  return;
310
310
  const k = (L = y.target.documentElement) != null ? L : y.target;
311
- F(k), T.value = !0, R(y), a(y);
311
+ F(k), D.value = !0, R(y), a(y);
312
312
  };
313
313
  return ut(
314
314
  e,
@@ -332,7 +332,7 @@ function Zt(e, t = {}) {
332
332
  ), {
333
333
  x: f,
334
334
  y: c,
335
- isScrolling: T,
335
+ isScrolling: D,
336
336
  arrivedState: g,
337
337
  directions: N,
338
338
  measure() {
@@ -378,10 +378,10 @@ function Gt(e, t) {
378
378
  let s;
379
379
  const d = vt(e), u = h(0), v = h({ start: 0, end: 10 }), f = h({ start: 0, end: l });
380
380
  let c = 0;
381
- const w = h([]), T = E(() => {
381
+ const w = h([]), D = E(() => {
382
382
  let { sum: S, height: j } = { sum: 0, height: 0 };
383
383
  return d.value.map(($, Z) => (typeof o == "number" ? j = o : j = o(Z), S += j, { height: j, sum: S }));
384
- }), g = E(() => K(v.value.start)), N = E(() => typeof o == "number" ? T.value.length * o : T.value[T.value.length - 1]?.sum || 0), x = E(() => {
384
+ }), g = E(() => K(v.value.start)), N = E(() => typeof o == "number" ? D.value.length * o : D.value[D.value.length - 1]?.sum || 0), x = E(() => {
385
385
  const { start: S, end: j } = f.value;
386
386
  return w.value.slice(S, j);
387
387
  });
@@ -426,27 +426,27 @@ function Gt(e, t) {
426
426
  }
427
427
  }
428
428
  function L(S) {
429
- let j = 0, $ = T.value.length - 1, Z = -1;
429
+ let j = 0, $ = D.value.length - 1, Z = -1;
430
430
  for (; j <= $; ) {
431
431
  const U = Math.floor((j + $) / 2);
432
- T.value[U].sum >= S ? (Z = U, $ = U - 1) : j = U + 1;
432
+ D.value[U].sum >= S ? (Z = U, $ = U - 1) : j = U + 1;
433
433
  }
434
434
  return Math.max(0, Z);
435
435
  }
436
436
  function k(S) {
437
437
  let j = 0, $ = 0;
438
- for (let Z = S; Z < T.value.length && (j++, $ += T.value[Z].height, !($ >= i.height.value)); Z++)
438
+ for (let Z = S; Z < D.value.length && (j++, $ += D.value[Z].height, !($ >= i.height.value)); Z++)
439
439
  ;
440
440
  return j;
441
441
  }
442
442
  function K(S) {
443
443
  if (typeof o == "number")
444
444
  return S * o;
445
- let j = T.value[S];
445
+ let j = D.value[S];
446
446
  return j ? j.sum - j.height : 0;
447
447
  }
448
448
  function P(S) {
449
- return T.value[S] || { sum: 0, height: 0 };
449
+ return D.value[S] || { sum: 0, height: 0 };
450
450
  }
451
451
  function W(S) {
452
452
  if (a.value) {
@@ -581,18 +581,18 @@ function Do(e, t, n = { deep: !0 }) {
581
581
  });
582
582
  });
583
583
  }
584
- function T() {
584
+ function D() {
585
585
  const { value: g } = M;
586
586
  g ? d() : s();
587
587
  }
588
- return B(Ke, T), B(qe, w), B(Je, f), B(et, i), B(tt, u), B(nt, s), B(ot, v), B(lt, M), B(Ie, d), B(Ie, d), B(st, r), {
588
+ return B(Ke, D), B(qe, w), B(Je, f), B(et, i), B(tt, u), B(nt, s), B(ot, v), B(lt, M), B(Ie, d), B(Ie, d), B(st, r), {
589
589
  selected: i,
590
590
  select: u,
591
591
  selectAll: s,
592
592
  unselect: v,
593
593
  unselectAll: d,
594
594
  toggle: w,
595
- toggleAll: T,
595
+ toggleAll: D,
596
596
  isSelected: f,
597
597
  isAllSelected: M,
598
598
  selectedCount: r
@@ -610,8 +610,8 @@ function po(e) {
610
610
  if (t.value != null)
611
611
  c = t.value;
612
612
  else {
613
- const w = n.value.size, T = e.value.length;
614
- c = w == T;
613
+ const w = n.value.size, D = e.value.length;
614
+ c = w == D;
615
615
  }
616
616
  return c;
617
617
  });
@@ -683,18 +683,18 @@ function pt({
683
683
  } = o();
684
684
  let r = {};
685
685
  const M = E(
686
- () => Re(t === "colum" ? Oe : D, 50)
686
+ () => Re(t === "colum" ? Oe : p, 50)
687
687
  ), s = /* @__PURE__ */ new Set(), d = h(!0), u = h(), v = h(!1), f = h({ x: 0, y: 0 }), c = h({ x: 0, y: 0, scrollTop: 0 }), w = new ResizeObserver(
688
- (m) => T.value = m[0].target.getBoundingClientRect()
689
- ), T = h({}), g = h({
688
+ (m) => D.value = m[0].target.getBoundingClientRect()
689
+ ), D = h({}), g = h({
690
690
  top: 0,
691
691
  height: 0,
692
692
  sync(m = !1) {
693
693
  g.value.top = u.value?.scrollTop || 0, m && (g.value.height = u.value?.scrollHeight || 0);
694
694
  }
695
695
  }), N = E(() => v.value ? {
696
- left: Math.min(f.value.x, c.value.x) - T.value.left,
697
- top: Math.min(f.value.y, c.value.y) - T.value.top,
696
+ left: Math.min(f.value.x, c.value.x) - D.value.left,
697
+ top: Math.min(f.value.y, c.value.y) - D.value.top,
698
698
  width: Math.abs(f.value.x - c.value.x),
699
699
  height: Math.abs(f.value.y - c.value.y)
700
700
  } : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: R = 30, maxSpeed: F = 30 } = n;
@@ -706,17 +706,17 @@ function pt({
706
706
  Math.min(P, k),
707
707
  -k
708
708
  ), P !== 0) {
709
- const p = u.value;
710
- if (!p || !v.value)
709
+ const T = u.value;
710
+ if (!T || !v.value)
711
711
  return;
712
- const C = g.value.height - T.value.height;
712
+ const C = g.value.height - D.value.height;
713
713
  let A = g.value.top + Number(P);
714
- A = Math.min(Math.max(0, A), C), p.scrollTop = A, H(), b = requestAnimationFrame(() => W(m));
714
+ A = Math.min(Math.max(0, A), C), T.scrollTop = A, H(), b = requestAnimationFrame(() => W(m));
715
715
  }
716
716
  }
717
717
  function ne(m) {
718
718
  if (u.value) {
719
- const C = T.value, A = C.bottom - m;
719
+ const C = D.value, A = C.bottom - m;
720
720
  if (A < y)
721
721
  return L * K(1 - A / y);
722
722
  const Y = m - C.top;
@@ -726,37 +726,37 @@ function pt({
726
726
  return 0;
727
727
  }
728
728
  function te(m) {
729
- const p = { ...N.value, right: 0, bottom: 0 };
730
- return p.left += T.value.left, p.top += T.value.top - g.value.top, p.right = p.width + p.left, p.bottom = p.height + p.top, p.left < m.right && p.right > m.left && p.top < m.bottom && p.bottom > m.top;
729
+ const T = { ...N.value, right: 0, bottom: 0 };
730
+ return T.left += D.value.left, T.top += D.value.top - g.value.top, T.right = T.width + T.left, T.bottom = T.height + T.top, T.left < m.right && T.right > m.left && T.top < m.bottom && T.bottom > m.top;
731
731
  }
732
732
  function H() {
733
733
  g.value.sync();
734
- const { top: m, height: p } = g.value;
734
+ const { top: m, height: T } = g.value;
735
735
  c.value.y = Math.min(
736
- p + T.value.top,
736
+ T + D.value.top,
737
737
  c.value.y + m - c.value.scrollTop
738
738
  ), c.value.scrollTop = m;
739
739
  }
740
- function S(m, p, C = "dynamic-styles") {
740
+ function S(m, T, C = "dynamic-styles") {
741
741
  let A = document.getElementById(C);
742
742
  A || (A = document.createElement("style"), A.id = C, document.head.appendChild(A));
743
- const Y = A.sheet.cssRules, G = Y.length, V = `${m} { ${p} }`;
743
+ const Y = A.sheet.cssRules, G = Y.length, V = `${m} { ${T} }`;
744
744
  for (let ae = 0; ae < G; ae++) {
745
745
  const re = Y[ae];
746
- if (re.selectorText === m && re.style.cssText === p)
746
+ if (re.selectorText === m && re.style.cssText === T)
747
747
  return;
748
748
  }
749
749
  A.sheet.insertRule(V, G);
750
750
  }
751
- function j(m, p) {
751
+ function j(m, T) {
752
752
  d.value = !0, v.value = !0, g.value.sync(!0);
753
- const C = p + g.value.top;
753
+ const C = T + g.value.top;
754
754
  f.value.x = m, f.value.y = C, c.value.x = m, c.value.y = C, u.value?.classList.add("disable-scroll-behavior"), s.clear();
755
755
  }
756
- function $(m, p, C) {
757
- !v.value || (d.value && t === "colum" && !X() && (i(), d.value = !1), C?.(), W(p), c.value.x = Math.max(m, T.value.left), c.value.y = Math.min(
758
- p + g.value.top,
759
- g.value.height + T.value.top
756
+ function $(m, T, C) {
757
+ !v.value || (d.value && t === "colum" && !X() && (i(), d.value = !1), C?.(), W(T), c.value.x = Math.max(m, D.value.left), c.value.y = Math.min(
758
+ T + g.value.top,
759
+ g.value.height + D.value.top
760
760
  ), c.value.scrollTop = g.value.top, M.value());
761
761
  }
762
762
  function Z() {
@@ -768,8 +768,8 @@ function pt({
768
768
  function X() {
769
769
  if (!v.value)
770
770
  return !1;
771
- const { width: m, height: p } = N.value;
772
- return !(Math.max(m, p) > 5);
771
+ const { width: m, height: T } = N.value;
772
+ return !(Math.max(m, T) > 5);
773
773
  }
774
774
  function pe() {
775
775
  X() && i();
@@ -779,14 +779,14 @@ function pt({
779
779
  r[`${e}`] = m.getAttribute(`${e}`), te(m.getBoundingClientRect()) ? l([r]) : a([r]);
780
780
  });
781
781
  }
782
- function D() {
782
+ function p() {
783
783
  const m = [];
784
- let p = null, C = 0;
784
+ let T = null, C = 0;
785
785
  u.value?.querySelectorAll(`[${e}]`).forEach((A, Y) => {
786
786
  const G = A.getAttribute(`${e}`);
787
- m.push(G), te(A.getBoundingClientRect()) ? (p === null && (p = Y), p = Math.min(p, Y), C = Math.max(C, Y)) : (r[`${e}`] = G, s.has(G) && a([r]));
787
+ m.push(G), te(A.getBoundingClientRect()) ? (T === null && (T = Y), T = Math.min(T, Y), C = Math.max(C, Y)) : (r[`${e}`] = G, s.has(G) && a([r]));
788
788
  });
789
- for (let A = p; A < C + 1; A++)
789
+ for (let A = T; A < C + 1; A++)
790
790
  r[`${e}`] = m[A], l([r]), s.add(m[A]);
791
791
  }
792
792
  function I(m) {
@@ -856,10 +856,10 @@ function To(e) {
856
856
  console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", N);
857
857
  }
858
858
  }
859
- function T() {
859
+ function D() {
860
860
  n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", v), window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", c);
861
861
  }
862
- return { init: w, unMount: T };
862
+ return { init: w, unMount: D };
863
863
  }
864
864
  function No(e, t, n = 600) {
865
865
  const o = pt({
@@ -874,23 +874,23 @@ function No(e, t, n = 600) {
874
874
  function d() {
875
875
  clearTimeout(s);
876
876
  }
877
- function u(T) {
878
- d(), T.composedPath().some((N) => !!N?.getAttribute?.(e.attribute)) && (s = setTimeout(() => {
879
- const { clientX: N, clientY: x } = T.targetTouches[0];
880
- i(N, x), t?.(), r(N, x, () => T.preventDefault()), T.preventDefault();
877
+ function u(D) {
878
+ d(), D.composedPath().some((N) => !!N?.getAttribute?.(e.attribute)) && (s = setTimeout(() => {
879
+ const { clientX: N, clientY: x } = D.targetTouches[0];
880
+ i(N, x), t?.(), r(N, x, () => D.preventDefault()), D.preventDefault();
881
881
  }, n));
882
882
  }
883
- function v(T) {
883
+ function v(D) {
884
884
  d();
885
- const { clientX: g, clientY: N } = T.targetTouches[0];
886
- r(g, N, () => T.preventDefault());
885
+ const { clientX: g, clientY: N } = D.targetTouches[0];
886
+ r(g, N, () => D.preventDefault());
887
887
  }
888
888
  function f() {
889
889
  d(), M();
890
890
  }
891
- function c(T) {
891
+ function c(D) {
892
892
  try {
893
- if (!o.init(T))
893
+ if (!o.init(D))
894
894
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
895
895
  if (!o.containerEl?.value)
896
896
  return !1;
@@ -1296,91 +1296,91 @@ function zo(e) {
1296
1296
  zooming: !1,
1297
1297
  preview: !0
1298
1298
  }), d = h({}), u = Tn(), v = Zt(i);
1299
- let f, c, w, T, g, N, x, R;
1299
+ let f, c, w, D, g, N, x, R;
1300
1300
  J(
1301
1301
  [a, i],
1302
- ([D, I]) => {
1303
- F(D, I);
1302
+ ([p, I]) => {
1303
+ F(p, I);
1304
1304
  },
1305
1305
  { immediate: !0 }
1306
1306
  );
1307
- async function F(D, I) {
1308
- await b(D, I), D && y();
1307
+ async function F(p, I) {
1308
+ await b(p, I), p && y();
1309
1309
  }
1310
- async function b(D, I) {
1311
- if (D = D ?? a.value, I = I ?? i.value, !I)
1310
+ async function b(p, I) {
1311
+ if (p = p ?? a.value, I = I ?? i.value, !I)
1312
1312
  return;
1313
- let { clientWidth: m = 0, clientHeight: p = 0 } = D || {};
1313
+ let { clientWidth: m = 0, clientHeight: T = 0 } = p || {};
1314
1314
  const { clientWidth: C, clientHeight: A } = I;
1315
- if (D instanceof HTMLImageElement) {
1315
+ if (p instanceof HTMLImageElement) {
1316
1316
  const Y = wn(
1317
- D.naturalWidth || C,
1318
- D.naturalHeight || A,
1317
+ p.naturalWidth || C,
1318
+ p.naturalHeight || A,
1319
1319
  C,
1320
1320
  A
1321
1321
  );
1322
- m = Y.width, p = Y.height;
1322
+ m = Y.width, T = Y.height;
1323
1323
  }
1324
- (m === 0 || p === 0) && (m = r.value.width || C, p = r.value.height || A), r.value = {
1324
+ (m === 0 || T === 0) && (m = r.value.width || C, T = r.value.height || A), r.value = {
1325
1325
  width: Math.min(m, C),
1326
- height: Math.min(p, A)
1326
+ height: Math.min(T, A)
1327
1327
  }, M.value = { width: C, height: A };
1328
1328
  }
1329
1329
  function y() {
1330
- const D = Z();
1331
- n.value = Math.max(n.value, D * 2);
1330
+ const p = Z();
1331
+ n.value = Math.max(n.value, p * 2);
1332
1332
  }
1333
- function L(D, I) {
1334
- const { width: m, height: p } = M.value, C = Math.max(0, (p - I) * 0.5), A = Math.max(0, (m - D) * 0.5);
1333
+ function L(p, I) {
1334
+ const { width: m, height: T } = M.value, C = Math.max(0, (T - I) * 0.5), A = Math.max(0, (m - p) * 0.5);
1335
1335
  return { top: C, left: A };
1336
1336
  }
1337
- async function k(D) {
1338
- const { touches: I } = D;
1339
- f = I.length, !(f === 2 && o.value) && (s.zooming = f === 2, T = Date.now(), u.start(D), H("start", D), s.zooming && (D.preventDefault(), c = s.scale, w = ft(I), await te(s.scale), R || (R = En(I))), s.touched || (s.touched = !0));
1337
+ async function k(p) {
1338
+ const { touches: I } = p;
1339
+ f = I.length, !(f === 2 && o.value) && (s.zooming = f === 2, D = Date.now(), u.start(p), H("start", p), s.zooming && (p.preventDefault(), c = s.scale, w = ft(I), await te(s.scale), R || (R = En(I))), s.touched || (s.touched = !0));
1340
1340
  }
1341
- async function K(D) {
1342
- const { touches: I } = D;
1343
- if (f = I.length, u.move(D), H("move", D), s.zooming && f == 2) {
1344
- D.preventDefault(), N = !1;
1345
- const m = ft(I), p = c * m / w;
1346
- R && $(p, R);
1341
+ async function K(p) {
1342
+ const { touches: I } = p;
1343
+ if (f = I.length, u.move(p), H("move", p), s.zooming && f == 2) {
1344
+ p.preventDefault(), N = !1;
1345
+ const m = ft(I), T = c * m / w;
1346
+ R && $(T, R);
1347
1347
  }
1348
1348
  }
1349
- async function P(D) {
1350
- D.touches.length || (H("end", D), pe(), s.scale >= t.value && s.scale <= n.value ? s.zooming && await ne(s.scale) : (s.zooming = !1, s.scale < t.value ? await $(t.value, void 0, !0) : s.scale > n.value && await $(n.value, R, !0)), u.reset(), W());
1349
+ async function P(p) {
1350
+ p.touches.length || (H("end", p), pe(), s.scale >= t.value && s.scale <= n.value ? s.zooming && await ne(s.scale) : (s.zooming = !1, s.scale < t.value ? await $(t.value, void 0, !0) : s.scale > n.value && await $(n.value, R, !0)), u.reset(), W());
1351
1351
  }
1352
1352
  function W() {
1353
1353
  R = void 0, s.touched = !1;
1354
1354
  }
1355
- async function ne(D) {
1355
+ async function ne(p) {
1356
1356
  if (s.preview)
1357
1357
  return;
1358
1358
  s.preview = !0;
1359
- const { value: I } = d, { scaleW: m, scaleH: p } = S(D), { left: C, top: A } = L(m, p);
1360
- D === 1 && (I.maxHeight = "100%"), I.width = `${m}px`, I.height = `${p}px`, I.transitionDuration = "0s", I.transform = Qe(C, A, 1), d.value = I, await me();
1359
+ const { value: I } = d, { scaleW: m, scaleH: T } = S(p), { left: C, top: A } = L(m, T);
1360
+ p === 1 && (I.maxHeight = "100%"), I.width = `${m}px`, I.height = `${T}px`, I.transitionDuration = "0s", I.transform = Qe(C, A, 1), d.value = I, await me();
1361
1361
  const Y = i.value;
1362
1362
  if (!Y)
1363
1363
  return;
1364
1364
  const { offsetX: G, offsetY: V } = s;
1365
1365
  G < 0 && (Y.scrollLeft = Math.abs(G)), V < 0 && (Y.scrollTop = Math.abs(V));
1366
1366
  }
1367
- async function te(D) {
1367
+ async function te(p) {
1368
1368
  if (!s.preview)
1369
1369
  return;
1370
1370
  s.preview = !1;
1371
1371
  const I = i.value;
1372
1372
  if (!I)
1373
1373
  return;
1374
- const { scrollTop: m, scrollLeft: p } = I, { width: C, height: A } = r.value, { scaleW: Y, scaleH: G } = S(D), { top: V, left: ae } = L(Y, G), re = ae != 0 ? ae : p * -1, Me = V != 0 ? V : m * -1;
1374
+ const { scrollTop: m, scrollLeft: T } = I, { width: C, height: A } = r.value, { scaleW: Y, scaleH: G } = S(p), { top: V, left: ae } = L(Y, G), re = ae != 0 ? ae : T * -1, Me = V != 0 ? V : m * -1;
1375
1375
  I.scrollTop = 0, I.scrollLeft = 0;
1376
1376
  const { value: oe } = d;
1377
- oe.width = `${C}px`, oe.height = `${A}px`, oe.maxHeight = "none", oe.transitionDuration = "0s", oe.transform = Qe(re, Me, D), d.value = oe, await me(), s.offsetX = re, s.offsetY = Me, await at(20);
1377
+ oe.width = `${C}px`, oe.height = `${A}px`, oe.maxHeight = "none", oe.transitionDuration = "0s", oe.transform = Qe(re, Me, p), d.value = oe, await me(), s.offsetX = re, s.offsetY = Me, await at(20);
1378
1378
  }
1379
- function H(D, I) {
1379
+ function H(p, I) {
1380
1380
  v.measure();
1381
- let { clientX: m, clientY: p } = I.touches.length != 0 ? I.touches[0] : I.changedTouches[0];
1381
+ let { clientX: m, clientY: T } = I.touches.length != 0 ? I.touches[0] : I.changedTouches[0];
1382
1382
  const { top: C, left: A, right: Y, bottom: G } = v.arrivedState;
1383
- if (D == "start")
1383
+ if (p == "start")
1384
1384
  x = C || A || Y || G;
1385
1385
  else if (f == 2)
1386
1386
  x = !1;
@@ -1389,7 +1389,7 @@ function zo(e) {
1389
1389
  if (s.scale != 1)
1390
1390
  x = !1;
1391
1391
  else {
1392
- const V = u.startY.value < p;
1392
+ const V = u.startY.value < T;
1393
1393
  x = C && V || G && !V;
1394
1394
  }
1395
1395
  else if (u.direction.value == "horizontal") {
@@ -1397,58 +1397,58 @@ function zo(e) {
1397
1397
  x = A && V || Y && !V;
1398
1398
  }
1399
1399
  }
1400
- x && N && (x = !1, I.preventDefault()), D == "end" && !x && (m = u.startX.value, p = u.startY.value, x = !0), (D != "move" || x) && e.onSwipeEdge?.(D, u.direction.value, m, p);
1400
+ x && N && (x = !1, I.preventDefault()), p == "end" && !x && (m = u.startX.value, T = u.startY.value, x = !0), (p != "move" || x) && e.onSwipeEdge?.(p, u.direction.value, m, T);
1401
1401
  }
1402
- function S(D) {
1402
+ function S(p) {
1403
1403
  const { width: I, height: m } = r.value;
1404
1404
  return {
1405
- scaleW: ue(D * I),
1406
- scaleH: ue(D * m)
1405
+ scaleW: ue(p * I),
1406
+ scaleH: ue(p * m)
1407
1407
  };
1408
1408
  }
1409
1409
  function j() {
1410
1410
  N || (N = !0, i.value?.addEventListener("transitionend", X));
1411
1411
  }
1412
- async function $(D, I, m) {
1413
- if (D = ue(D), D = ke(
1414
- D,
1412
+ async function $(p, I, m) {
1413
+ if (p = ue(p), p = ke(
1414
+ p,
1415
1415
  t.value - t.value * 0.5,
1416
1416
  n.value + n.value * 0.5
1417
- ), D !== s.scale) {
1417
+ ), p !== s.scale) {
1418
1418
  s.preview && await te(s.scale), I || (I = { x: u.startX.value, y: u.startY.value });
1419
- const { value: p } = d, { width: C, height: A } = r.value, { scaleW: Y, scaleH: G } = S(D), { top: V, left: ae } = L(Y, G), re = D / s.scale, Me = {
1420
- top: Math.abs(A * D - M.value.height) * -1,
1419
+ const { value: T } = d, { width: C, height: A } = r.value, { scaleW: Y, scaleH: G } = S(p), { top: V, left: ae } = L(Y, G), re = p / s.scale, Me = {
1420
+ top: Math.abs(A * p - M.value.height) * -1,
1421
1421
  bottom: V,
1422
- left: Math.abs(C * D - M.value.width) * -1,
1422
+ left: Math.abs(C * p - M.value.width) * -1,
1423
1423
  right: ae
1424
1424
  };
1425
1425
  let oe = ae != 0 ? ae : (s.offsetX - I.x) * re + I.x, ze = V != 0 ? V : (s.offsetY - I.y) * re + I.y;
1426
- oe = ue(ke(oe, Me.left, Me.right)), ze = ue(ke(ze, Me.top, Me.bottom)), p.width = `${C}px`, p.height = `${A}px`, p.transitionDuration = m ? In(D) : "0s", p.transform = Qe(oe, ze, D), s.offsetX = oe, s.offsetY = ze, s.scale = D, d.value = p, await me(), m && j(), e.onScale?.();
1426
+ oe = ue(ke(oe, Me.left, Me.right)), ze = ue(ke(ze, Me.top, Me.bottom)), T.width = `${C}px`, T.height = `${A}px`, T.transitionDuration = m ? In(p) : "0s", T.transform = Qe(oe, ze, p), s.offsetX = oe, s.offsetY = ze, s.scale = p, d.value = T, await me(), m && j(), e.onScale?.();
1427
1427
  }
1428
1428
  }
1429
1429
  function Z() {
1430
- const { width: D, height: I } = r.value, { width: m, height: p } = M.value, C = 2.5;
1430
+ const { width: p, height: I } = r.value, { width: m, height: T } = M.value, C = 2.5;
1431
1431
  let A;
1432
- return I == p ? (A = m / D, A - 1 < 0.1 && (A = C)) : A = Math.max(C, m / D, p / I), A;
1432
+ return I == T ? (A = m / p, A - 1 < 0.1 && (A = C)) : A = Math.max(C, m / p, T / I), A;
1433
1433
  }
1434
1434
  function U() {
1435
- const D = s.scale > 1 ? 1 : Z();
1435
+ const p = s.scale > 1 ? 1 : Z();
1436
1436
  $(
1437
- D,
1438
- D != 1 ? { x: u.startX.value, y: u.startY.value } : void 0,
1437
+ p,
1438
+ p != 1 ? { x: u.startX.value, y: u.startY.value } : void 0,
1439
1439
  !0
1440
1440
  );
1441
1441
  }
1442
1442
  async function X() {
1443
1443
  i.value?.removeEventListener("transitionend", X), N = !1, s.preview || await ne(s.scale);
1444
1444
  }
1445
- async function pe(D) {
1445
+ async function pe(p) {
1446
1446
  if (f > 1)
1447
1447
  return;
1448
- const { offsetX: I, offsetY: m } = u, p = Date.now() - T;
1449
- I.value < dt && m.value < dt && (p < rt ? l.value ? g ? (clearTimeout(g), g = null, U()) : g = setTimeout(async () => {
1448
+ const { offsetX: I, offsetY: m } = u, T = Date.now() - D;
1449
+ I.value < dt && m.value < dt && (T < rt ? l.value ? g ? (clearTimeout(g), g = null, U()) : g = setTimeout(async () => {
1450
1450
  e.onTap?.(), g = null;
1451
- }, rt) : e.onTap?.() : p > Nn && e.onLongPress?.());
1451
+ }, rt) : e.onTap?.() : T > Nn && e.onLongPress?.());
1452
1452
  }
1453
1453
  function Oe() {
1454
1454
  $(1, void 0, !0);
@@ -1618,7 +1618,7 @@ function xn(e) {
1618
1618
  clientHeight: 0
1619
1619
  }), w = h({
1620
1620
  clientHeight: 0
1621
- }), T = E(() => !!v.value), g = E(() => c.value.scrollHeight > c.value.clientHeight), N = E(() => o ? c.value.clientHeight - F.value : c.value.clientHeight - w.value.clientHeight), x = E(() => c.value.scrollHeight - c.value.clientHeight), R = E(() => Math.max(
1621
+ }), D = E(() => !!v.value), g = E(() => c.value.scrollHeight > c.value.clientHeight), N = E(() => o ? c.value.clientHeight - F.value : c.value.clientHeight - w.value.clientHeight), x = E(() => c.value.scrollHeight - c.value.clientHeight), R = E(() => Math.max(
1622
1622
  c.value.clientHeight / c.value.scrollHeight,
1623
1623
  0.05
1624
1624
  )), F = E(() => R.value > a ? 0 : R.value * c.value.clientHeight), b = E(() => ({
@@ -1636,10 +1636,10 @@ function xn(e) {
1636
1636
  r.value = !1;
1637
1637
  }
1638
1638
  function K() {
1639
- T.value || (r.value = !0);
1639
+ D.value || (r.value = !0);
1640
1640
  }
1641
1641
  function P(U) {
1642
- if (!T.value)
1642
+ if (!D.value)
1643
1643
  return;
1644
1644
  let X = U.clientY - c.value.top - v.value;
1645
1645
  X < 0 ? f.value = 0 : X >= N.value ? f.value = N.value : f.value = X, t.value.scrollTo({
@@ -1647,7 +1647,7 @@ function xn(e) {
1647
1647
  });
1648
1648
  }
1649
1649
  function W() {
1650
- T.value || ne();
1650
+ D.value || ne();
1651
1651
  }
1652
1652
  function ne() {
1653
1653
  cancelAnimationFrame(s), s = requestAnimationFrame(te);
@@ -1692,7 +1692,7 @@ function xn(e) {
1692
1692
  k(), M();
1693
1693
  }), {
1694
1694
  isScrollEnd: r,
1695
- isDragSlider: T,
1695
+ isDragSlider: D,
1696
1696
  offsetTop: f,
1697
1697
  scrollTop: u,
1698
1698
  scrollable: g,
@@ -1740,7 +1740,7 @@ const Cn = (e) => (Ee("data-v-405c22cf"), e = e(), Ae(), e), Sn = /* @__PURE__ *
1740
1740
  function c() {
1741
1741
  d.value = !1;
1742
1742
  }
1743
- return t({ uScrollBarReturn: i }), (w, T) => (O(), xe(Pe, null, {
1743
+ return t({ uScrollBarReturn: i }), (w, D) => (O(), xe(Pe, null, {
1744
1744
  default: He(() => [
1745
1745
  ye(_("div", {
1746
1746
  ref_key: "sliderRef",
@@ -1776,7 +1776,7 @@ const xo = /* @__PURE__ */ se(_n, [["__scopeId", "data-v-405c22cf"]]), On = (e)
1776
1776
  pullRefreshContainer: null
1777
1777
  },
1778
1778
  setup(e) {
1779
- const t = e, n = 0.7, o = "#2EC1CC", l = h(-999), a = h(1), i = h(0), r = h(0.3), M = h(!1), s = h(0), d = h(0), u = h(0), v = h(0), f = h(0), c = h(), w = E(() => t.scrollTop), T = E(() => ({
1779
+ const t = e, n = 0.7, o = "#2EC1CC", l = h(-999), a = h(1), i = h(0), r = h(0.3), M = h(!1), s = h(0), d = h(0), u = h(0), v = h(0), f = h(0), c = h(), w = E(() => t.scrollTop), D = E(() => ({
1780
1780
  transition: `${v.value}ms`,
1781
1781
  transform: `translate3d(0,${l.value}px, 0) scale(${a.value})`
1782
1782
  })), g = E(() => ({
@@ -1825,7 +1825,7 @@ const xo = /* @__PURE__ */ se(_n, [["__scopeId", "data-v-405c22cf"]]), On = (e)
1825
1825
  }), (y, L) => (O(), Q("div", bn, [
1826
1826
  _("div", {
1827
1827
  class: "pull-refresh-box",
1828
- style: q(z(T))
1828
+ style: q(z(D))
1829
1829
  }, [
1830
1830
  c.value ? (O(), Q("div", $n, We(c.value), 1)) : (O(), Q("div", kn, [
1831
1831
  f.value == 2 ? (O(), Q("div", Qn, [
@@ -1913,17 +1913,17 @@ const Hn = /* @__PURE__ */ se(Pn, [["__scopeId", "data-v-df5da876"]]), Fn = ["da
1913
1913
  }, f.$attrs), [
1914
1914
  _("div", Ye(Be(z(r))), [
1915
1915
  _("div", Ye(Be(z(M))), [
1916
- (O(!0), Q(Ue, null, _t(z(a), ({ data: w, index: T }) => (O(), Q("div", {
1917
- key: v(w, T),
1918
- "data-key": v(w, T),
1916
+ (O(!0), Q(Ue, null, _t(z(a), ({ data: w, index: D }) => (O(), Q("div", {
1917
+ key: v(w, D),
1918
+ "data-key": v(w, D),
1919
1919
  style: q({
1920
- height: `${z(s)(T).height}px`,
1920
+ height: `${z(s)(D).height}px`,
1921
1921
  display: "flex"
1922
1922
  })
1923
1923
  }, [
1924
1924
  Ce(f.$slots, "default", {
1925
1925
  data: w,
1926
- index: T
1926
+ index: D
1927
1927
  }, void 0, !0)
1928
1928
  ], 12, Fn))), 128))
1929
1929
  ], 16)
@@ -2024,7 +2024,7 @@ function wt() {
2024
2024
  }
2025
2025
  } };
2026
2026
  }
2027
- const oo = (e) => (Ee("data-v-1544c8e8"), e = e(), Ae(), e), lo = ["title"], so = /* @__PURE__ */ oo(() => /* @__PURE__ */ _("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), ao = ["src"], io = ["src"], uo = ["title"], co = { inheritAttrs: !1 }, ro = /* @__PURE__ */ ee({
2027
+ const oo = (e) => (Ee("data-v-774cb54a"), e = e(), Ae(), e), lo = ["title"], so = /* @__PURE__ */ oo(() => /* @__PURE__ */ _("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), ao = ["src"], io = ["src"], uo = ["title"], co = { inheritAttrs: !1 }, ro = /* @__PURE__ */ ee({
2028
2028
  ...co,
2029
2029
  __name: "Image",
2030
2030
  props: {
@@ -2039,7 +2039,7 @@ const oo = (e) => (Ee("data-v-1544c8e8"), e = e(), Ae(), e), lo = ["title"], so
2039
2039
  const n = e, o = h(), l = h(), a = h(!1), i = h(!1), r = h(!1), { src: M, mime: s } = mt(n), { imgSrc: d, isSupport: u, hasError: v, handleError: f } = Nt(M, s), { vImageCancel: c } = wt(), { LoadingComp: w } = Tt({
2040
2040
  component: sn,
2041
2041
  delay: 300
2042
- }), T = bt(() => r.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !r.value);
2042
+ }), D = bt(() => r.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !r.value);
2043
2043
  function g() {
2044
2044
  i.value = !0;
2045
2045
  }
@@ -2047,7 +2047,7 @@ const oo = (e) => (Ee("data-v-1544c8e8"), e = e(), Ae(), e), lo = ["title"], so
2047
2047
  i.value && (r.value = !0);
2048
2048
  }
2049
2049
  async function x() {
2050
- g(), o.value?.addEventListener("animationend", R), o.value?.classList.add("showing"), await at(10), o.value?.classList.remove("src-class");
2050
+ g(), D.value ? (o.value?.addEventListener("animationend", R), o.value?.classList.add("showing"), await at(10)) : o.value && t("load", o.value), o.value?.classList.remove("src-class");
2051
2051
  }
2052
2052
  function R() {
2053
2053
  o.value?.removeEventListener("animationend", R), o.value?.classList.remove("showing"), o.value && t("load", o.value), N();
@@ -2074,7 +2074,7 @@ const oo = (e) => (Ee("data-v-1544c8e8"), e = e(), Ae(), e), lo = ["title"], so
2074
2074
  onLoad: F,
2075
2075
  onError: b
2076
2076
  }, () => [
2077
- z(T) ? ye((O(), Q("img", Te({ key: 0 }, y.$attrs, {
2077
+ z(D) ? ye((O(), Q("img", Te({ key: 0 }, y.$attrs, {
2078
2078
  ref_key: "thumbnailRef",
2079
2079
  ref: l,
2080
2080
  onLoad: L[0] || (L[0] = (k) => F()),
@@ -2107,7 +2107,7 @@ const oo = (e) => (Ee("data-v-1544c8e8"), e = e(), Ae(), e), lo = ["title"], so
2107
2107
  ], 64));
2108
2108
  }
2109
2109
  });
2110
- const _o = /* @__PURE__ */ se(ro, [["__scopeId", "data-v-1544c8e8"]]), fo = ["title"], Mo = ["src"], vo = ["title"], go = /* @__PURE__ */ ee({
2110
+ const _o = /* @__PURE__ */ se(ro, [["__scopeId", "data-v-774cb54a"]]), fo = ["title"], Mo = ["src"], vo = ["title"], go = /* @__PURE__ */ ee({
2111
2111
  __name: "Thumbnail",
2112
2112
  props: {
2113
2113
  src: null,
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const xe={created(t,n){let o,l;function s(r){r.button==0&&(o=r.clientX,l=r.clientY)}function i(r){if(r.button!=0||o===void 0)return;const d=r.clientX,g=r.clientY,a=Math.abs(d-o),f=Math.abs(g-l);a>5||f>5||n.value&&n.value(r)}t.__mouse_down__=s,t.__mouse_up__=i,t.addEventListener("mousedown",s),t.addEventListener("mouseup",i)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Ze={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function i(r){s||(o(r),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",i)}};function Ke(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 Ge(t,n){let o,l,s;const i=e.ref(!0),r=()=>{i.value=!0,s()};e.watch(t,r,{flush:"sync"});const d=typeof n=="function"?n:n.get,g=typeof n=="function"?void 0:n.set,a=e.customRef((f,c)=>(l=f,s=c,{get(){return i.value&&(o=d(),i.value=!1),l(),o},set(m){g?.(m)}}));return Object.isExtensible(a)&&(a.trigger=r),a}function Te(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function X(t){return typeof t=="function"?t():e.unref(t)}const _e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qe=Object.prototype.toString,Je=t=>qe.call(t)==="[object Object]",ne=()=>{};function Oe(t,n){function o(...l){return new Promise((s,i)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(i)})}return o}function et(t,n={}){let o,l,s=ne;const i=d=>{clearTimeout(d),s(),s=ne};return d=>{const g=X(t),a=X(n.maxWait);return o&&i(o),g<=0||a!==void 0&&a<=0?(l&&(i(l),l=null),Promise.resolve(d())):new Promise((f,c)=>{s=n.rejectOnCancel?c:f,a&&!l&&(l=setTimeout(()=>{o&&i(o),l=null,f(d())},a)),o=setTimeout(()=>{l&&i(l),l=null,f(d())},g)})}}function tt(...t){let n=0,o,l=!0,s=ne,i,r,d,g,a;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:r,trailing:d=!0,leading:g=!0,rejectOnCancel:a=!1}=t[0]:[r,d=!0,g=!0,a=!1]=t;const f=()=>{o&&(clearTimeout(o),o=void 0,s(),s=ne)};return m=>{const M=X(r),u=Date.now()-n,E=()=>i=m();return f(),M<=0?(n=Date.now(),E()):(u>M&&(g||!l)?(n=Date.now(),E()):d&&(i=new Promise((N,h)=>{s=a?h:N,o=setTimeout(()=>{n=Date.now(),l=!0,N(E()),f()},Math.max(0,M-u))})),!g&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,i)}}function nt(t){return t||e.getCurrentInstance()}function Ne(t,n=200,o={}){return Oe(et(n,o),t)}function we(t,n=200,o=!1,l=!0,s=!1){return Oe(tt(n,o,l,s),t)}function Ee(t,n=!0,o){nt()?e.onMounted(t,o):n?t():e.nextTick(t)}function J(t){var n;const o=X(t);return(n=o?.$el)!=null?n:o}const ie=_e?window:void 0,ot=_e?window.document:void 0;function be(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ie):[n,o,l,s]=t,!n)return ne;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],r=()=>{i.forEach(f=>f()),i.length=0},d=(f,c,m,M)=>(f.addEventListener(c,m,M),()=>f.removeEventListener(c,m,M)),g=e.watch(()=>[J(n),X(s)],([f,c])=>{if(r(),!f)return;const m=Je(c)?{...c}:c;i.push(...o.flatMap(M=>l.map(u=>d(f,M,u,m))))},{immediate:!0,flush:"post"}),a=()=>{g(),r()};return Te(a),a}function lt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function st(t){const n=lt();return e.computed(()=>(n.value,Boolean(t())))}function at(t){const n=e.getCurrentInstance(),o=Ge(()=>null,()=>t?J(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function it(t,n,o={}){const{window:l=ie,...s}=o;let i;const r=st(()=>l&&"ResizeObserver"in l),d=()=>{i&&(i.disconnect(),i=void 0)},g=e.computed(()=>Array.isArray(t)?t.map(c=>J(c)):[J(t)]),a=e.watch(g,c=>{if(d(),r.value&&l){i=new ResizeObserver(n);for(const m of c)m&&i.observe(m,s)}},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return Te(f),{isSupported:r,stop:f}}function rt(t,n={width:0,height:0},o={}){const{window:l=ie,box:s="content-box"}=o,i=e.computed(()=>{var c,m;return(m=(c=J(t))==null?void 0:c.namespaceURI)==null?void 0:m.includes("svg")}),r=e.ref(n.width),d=e.ref(n.height),{stop:g}=it(t,([c])=>{const m=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&i.value){const M=J(t);if(M){const u=l.getComputedStyle(M);r.value=Number.parseFloat(u.width),d.value=Number.parseFloat(u.height)}}else if(m){const M=Array.isArray(m)?m:[m];r.value=M.reduce((u,{inlineSize:E})=>u+E,0),d.value=M.reduce((u,{blockSize:E})=>u+E,0)}else r.value=c.contentRect.width,d.value=c.contentRect.height},o);Ee(()=>{const c=J(t);c&&(r.value="offsetWidth"in c?c.offsetWidth:n.width,d.value="offsetHeight"in c?c.offsetHeight:n.height)});const a=e.watch(()=>J(t),c=>{r.value=c?n.width:0,d.value=c?n.height:0});function f(){g(),a()}return{width:r,height:d,stop:f}}const ke=1;function ct(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=ne,onScroll:i=ne,offset:r={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:g="auto",window:a=ie,onError:f=y=>{console.error(y)}}=n,c=e.ref(0),m=e.ref(0),M=e.computed({get(){return c.value},set(y){E(y,void 0)}}),u=e.computed({get(){return m.value},set(y){E(void 0,y)}});function E(y,A){var _,V,Q;if(!a)return;const R=X(t);!R||(Q=R instanceof Document?a.document.body:R)==null||Q.scrollTo({top:(_=X(A))!=null?_:u.value,left:(V=X(y))!=null?V:M.value,behavior:X(g)})}const N=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),L=y=>{!N.value||(N.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,s(y))},k=Ne(L,o+l),U=y=>{var A;if(!a)return;const _=((A=y?.document)==null?void 0:A.documentElement)||y?.documentElement||J(y),{display:V,flexDirection:Q}=getComputedStyle(_),R=_.scrollLeft;w.left=R<c.value,w.right=R>c.value;const K=Math.abs(R)<=(r.left||0),W=Math.abs(R)+_.clientWidth>=_.scrollWidth-(r.right||0)-ke;V==="flex"&&Q==="row-reverse"?(h.left=W,h.right=K):(h.left=K,h.right=W),c.value=R;let Y=_.scrollTop;y===a.document&&!Y&&(Y=a.document.body.scrollTop),w.top=Y<m.value,w.bottom=Y>m.value;const S=Math.abs(Y)<=(r.top||0),j=Math.abs(Y)+_.clientHeight>=_.scrollHeight-(r.bottom||0)-ke;V==="flex"&&Q==="column-reverse"?(h.top=j,h.bottom=S):(h.top=S,h.bottom=j),m.value=Y},x=y=>{var A;if(!a)return;const _=(A=y.target.documentElement)!=null?A:y.target;U(_),N.value=!0,k(y),i(y)};return be(t,"scroll",o?we(x,o,!0,!1):x,d),Ee(()=>{try{const y=X(t);if(!y)return;U(y)}catch(y){f(y)}}),be(t,"scrollend",L,d),{x:M,y:u,isScrolling:N,arrivedState:h,directions:w,measure(){const y=X(t);a&&y&&U(y)}}}let ut=0;function ve(t,n={}){const o=e.ref(!1),{document:l=ot,immediate:s=!0,manual:i=!1,id:r=`vueuse_styletag_${++ut}`}=n,d=e.ref(t);let g=()=>{};const a=()=>{if(!l)return;const c=l.getElementById(r)||l.createElement("style");c.isConnected||(c.id=r,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(g=e.watch(d,m=>{c.textContent=m},{immediate:!0}),o.value=!0)},f=()=>{!l||!o.value||(g(),l.head.removeChild(l.getElementById(r)),o.value=!1)};return s&&!i&&Ee(a),i||Te(f),{id:r,css:d,unload:f,load:a,isLoaded:e.readonly(o)}}function Be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,i=e.ref(null),r=rt(i),d=e.ref(!0),g=Ne(U,100);let a;const f=e.shallowRef(t),c=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let u=0;const E=e.ref([]),N=e.computed(()=>{let{sum:S,height:j}={sum:0,height:0};return f.value.map((B,P)=>(typeof l=="number"?j=l:j=l(P),S+=j,{height:j,sum:S}))}),h=e.computed(()=>V(m.value.start)),w=e.computed(()=>typeof l=="number"?N.value.length*l:N.value[N.value.length-1]?.sum||0),L=e.computed(()=>{const{start:S,end:j}=M.value;return E.value.slice(S,j)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(a)),e.watch(f,()=>{(r.width.value||r.height.value)&&x()},{deep:!0}),e.watch([r.width,r.height],([S,j])=>{(S||j)&&x()},{deep:!0}),e.watch(c,()=>{k(),g()});function k(){d.value=!1}function U(){d.value=!0,o?.()}function x(){cancelAnimationFrame(a),a=requestAnimationFrame(y)}function y(){if(i.value){c.value=i.value.scrollTop;let S=A(c.value);u=_(S);let j=Math.max(0,S-s),B=Math.min(S+u+s,f.value.length);m.value={start:j,end:B},E.value=f.value.slice(j,B).map((P,b)=>({data:P,index:b+j})),M.value.start=S-j,M.value.end=M.value.start+u}}function A(S){let j=0,B=N.value.length-1,P=-1;for(;j<=B;){const b=Math.floor((j+B)/2);N.value[b].sum>=S?(P=b,B=b-1):j=b+1}return Math.max(0,P)}function _(S){let j=0,B=0;for(let P=S;P<N.value.length&&(j++,B+=N.value[P].height,!(B>=r.height.value));P++);return j}function V(S){if(typeof l=="number")return S*l;let j=N.value[S];return j?j.sum-j.height:0}function Q(S){return N.value[S]||{sum:0,height:0}}function R(S){if(i.value){const j=Q(S);i.value.scrollTop=j.sum-j.height,y()}}const K=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:d.value?void 0:"none"}})),W=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),Y={overflowY:"auto"};return{list:E,visiableList:L,getItemHeightData:Q,getoffsetTopIndex:A,totalHeight:w,clientHeight:r.height,scrollTo:R,scrollTop:c,isScrollEnd:d,containerProps:{ref:i,onScroll:()=>{x()},style:Y},wrapperProps:K,innerProps:W}}const re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ge=Symbol(),me=Symbol(),le=Symbol(),he=Symbol();function dt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(de,s),r=e.inject(ue,n),d=e.inject(me,o),g=e.inject(ce,t),a=e.inject(re,t),f=e.inject(fe,t),c=e.inject(Me,t),m=e.inject(ge,t),M=e.inject(le,t),u=e.inject(he,l);return{selected:i,isSelected:r,isAllSelected:d,toggle:g,toggleAll:a,select:f,selectAll:c,unselect:m,unselectAll:M,selectedCount:u}}function ft(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),i=e.ref(new Map);e.watch(t,h=>{i.value=h.reduce((w,L)=>(w.set(L[n],L),w),new Map)},{deep:o.deep,immediate:!0});const r=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(i.value.values()));else if(s.value.size){let w;s.value.forEach(L=>{w=i.value.get(L),w&&h.push(w)})}return h}),d=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=i.value.size):h=s.value.size,h}),g=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const w=s.value.size,L=i.value.size;h=w==L}return h});function a(){l.value=!0}function f(){l.value=!1}function c(h){u(()=>{h.forEach(w=>{s.value.add(w[n])})})}function m(h){u(()=>{h.forEach(w=>{s.value.delete(w[n])})})}function M(h){return l.value!=null?l.value:s.value.has(h[n])}function u(h){l.value!=null&&(l.value?s.value=new Set(Array.from(i.value.keys())):s.value=new Set),h(),s.value.size==0?l.value=!1:s.value.size==i.value.size?l.value=!0:l.value=null}function E(h){u(()=>{h.forEach(w=>{M(w)?s.value.delete(w[n]):s.value.add(w[n])})})}function N(){const{value:h}=g;h?f():a()}return e.provide(re,N),e.provide(ce,E),e.provide(ue,M),e.provide(de,r),e.provide(fe,c),e.provide(Me,a),e.provide(ge,m),e.provide(me,g),e.provide(le,f),e.provide(le,f),e.provide(he,d),{selected:r,select:c,selectAll:a,unselect:m,unselectAll:f,toggle:E,toggleAll:N,isSelected:M,isAllSelected:g,selectedCount:d}}function Mt(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}),i=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const E=o.value.size,N=t.value.length;u=E==N}return u});function r(){n.value=!0}function d(){n.value=!1}function g(u){c(()=>{u.forEach(E=>{o.value.add(E)})})}function a(u){c(()=>{u.forEach(E=>{o.value.delete(E)})})}function f(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(E=>{f(E)?o.value.delete(E):o.value.add(E)})})}function M(){const{value:u}=i;u?d():r()}return e.provide(re,M),e.provide(ce,m),e.provide(ue,f),e.provide(de,l),e.provide(fe,g),e.provide(Me,r),e.provide(ge,a),e.provide(me,i),e.provide(le,d),e.provide(le,d),e.provide(he,s),{selected:l,select:g,selectAll:r,unselect:a,unselectAll:d,toggle:m,toggleAll:M,isSelected:f,isAllSelected:i,selectedCount:s}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=Ie("\u9009\u62E9"),unselect:i=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=Ie("\u53D6\u6D88\u5168\u9009")}=l();let d={};const g=e.computed(()=>we(n==="colum"?Se:D,50)),a=new Set,f=e.ref(!0),c=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(p=>N.value=p[0].target.getBoundingClientRect()),N=e.ref({}),h=e.ref({top:0,height:0,sync(p=!1){h.value.top=c.value?.scrollTop||0,p&&(h.value.height=c.value?.scrollHeight||0)}}),w=e.computed(()=>m.value?{left:Math.min(M.value.x,u.value.x)-N.value.left,top:Math.min(M.value.y,u.value.y)-N.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:L=50,startSpeed:k=30,maxSpeed:U=30}=o;let x;const y=L,A=k,_=U,V=p=>p**1;let Q=0;function R(p){if(cancelAnimationFrame(x),Q=K(p),Q=Math.max(Math.min(Q,_),-_),Q!==0){const T=c.value;if(!T||!m.value)return;const C=h.value.height-N.value.height;let z=h.value.top+Number(Q);z=Math.min(Math.max(0,z),C),T.scrollTop=z,Y(),x=requestAnimationFrame(()=>R(p))}}function K(p){if(c.value){const C=N.value,z=C.bottom-p;if(z<y)return A*V(1-z/y);const O=p-C.top;if(O<y)return-A*V(1-O/y)}return 0}function W(p){const T={...w.value,right:0,bottom:0};return T.left+=N.value.left,T.top+=N.value.top-h.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<p.right&&T.right>p.left&&T.top<p.bottom&&T.bottom>p.top}function Y(){h.value.sync();const{top:p,height:T}=h.value;u.value.y=Math.min(T+N.value.top,u.value.y+p-u.value.scrollTop),u.value.scrollTop=p}function S(p,T,C="dynamic-styles"){let z=document.getElementById(C);z||(z=document.createElement("style"),z.id=C,document.head.appendChild(z));const O=z.sheet.cssRules,H=O.length,F=`${p} { ${T} }`;for(let q=0;q<H;q++){const te=O[q];if(te.selectorText===p&&te.style.cssText===T)return}z.sheet.insertRule(F,H)}function j(p,T){f.value=!0,m.value=!0,h.value.sync(!0);const C=T+h.value.top;M.value.x=p,M.value.y=C,u.value.x=p,u.value.y=C,c.value?.classList.add("disable-scroll-behavior"),a.clear()}function B(p,T,C){!m.value||(f.value&&n==="colum"&&!$()&&(r(),f.value=!1),C?.(),R(T),u.value.x=Math.max(p,N.value.left),u.value.y=Math.min(T+h.value.top,h.value.height+N.value.top),u.value.scrollTop=h.value.top,g.value())}function P(){m.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function b(){!m.value||(Q||Y(),g.value())}function $(){if(!m.value)return!1;const{width:p,height:T}=w.value;return!(Math.max(p,T)>5)}function ae(){$()&&r()}function Se(){$()||c.value?.querySelectorAll(`[${t}]`).forEach(p=>{d[`${t}`]=p.getAttribute(`${t}`),W(p.getBoundingClientRect())?s([d]):i([d])})}function D(){const p=[];let T=null,C=0;c.value?.querySelectorAll(`[${t}]`).forEach((z,O)=>{const H=z.getAttribute(`${t}`);p.push(H),W(z.getBoundingClientRect())?(T===null&&(T=O),T=Math.min(T,O),C=Math.max(C,O)):(d[`${t}`]=H,a.has(H)&&i([d]))});for(let z=T;z<C+1;z++)d[`${t}`]=p[z],s([d]),a.add(p[z])}function v(p){return!p?.value||(c.value=p.value,!c?.value)?!1:(E.observe(c.value),S(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:v,dragStart:j,dragMove:B,dragEnd:P,onScroll:b,isSingleClick:$,cancelSelectAllBySingleClick:ae,selectFn:g,selectRange:w,isPressing:m,containerEl:c,observer:E}}function gt(t){const n=ze(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:i,dragMove:r,dragEnd:d,cancelSelectAllBySingleClick:g}=n,a=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:f}=ve(`.drag-select-box {
1
+ (function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const xe={created(t,n){let o,l;function s(r){r.button==0&&(o=r.clientX,l=r.clientY)}function i(r){if(r.button!=0||o===void 0)return;const d=r.clientX,g=r.clientY,a=Math.abs(d-o),f=Math.abs(g-l);a>5||f>5||n.value&&n.value(r)}t.__mouse_down__=s,t.__mouse_up__=i,t.addEventListener("mousedown",s),t.addEventListener("mouseup",i)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Ze={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function i(r){s||(o(r),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",i)}};function Ke(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 Ge(t,n){let o,l,s;const i=e.ref(!0),r=()=>{i.value=!0,s()};e.watch(t,r,{flush:"sync"});const d=typeof n=="function"?n:n.get,g=typeof n=="function"?void 0:n.set,a=e.customRef((f,c)=>(l=f,s=c,{get(){return i.value&&(o=d(),i.value=!1),l(),o},set(m){g?.(m)}}));return Object.isExtensible(a)&&(a.trigger=r),a}function Te(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function X(t){return typeof t=="function"?t():e.unref(t)}const _e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qe=Object.prototype.toString,Je=t=>qe.call(t)==="[object Object]",ne=()=>{};function Oe(t,n){function o(...l){return new Promise((s,i)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(i)})}return o}function et(t,n={}){let o,l,s=ne;const i=d=>{clearTimeout(d),s(),s=ne};return d=>{const g=X(t),a=X(n.maxWait);return o&&i(o),g<=0||a!==void 0&&a<=0?(l&&(i(l),l=null),Promise.resolve(d())):new Promise((f,c)=>{s=n.rejectOnCancel?c:f,a&&!l&&(l=setTimeout(()=>{o&&i(o),l=null,f(d())},a)),o=setTimeout(()=>{l&&i(l),l=null,f(d())},g)})}}function tt(...t){let n=0,o,l=!0,s=ne,i,r,d,g,a;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:r,trailing:d=!0,leading:g=!0,rejectOnCancel:a=!1}=t[0]:[r,d=!0,g=!0,a=!1]=t;const f=()=>{o&&(clearTimeout(o),o=void 0,s(),s=ne)};return m=>{const M=X(r),u=Date.now()-n,E=()=>i=m();return f(),M<=0?(n=Date.now(),E()):(u>M&&(g||!l)?(n=Date.now(),E()):d&&(i=new Promise((D,h)=>{s=a?h:D,o=setTimeout(()=>{n=Date.now(),l=!0,D(E()),f()},Math.max(0,M-u))})),!g&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,i)}}function nt(t){return t||e.getCurrentInstance()}function Ne(t,n=200,o={}){return Oe(et(n,o),t)}function we(t,n=200,o=!1,l=!0,s=!1){return Oe(tt(n,o,l,s),t)}function Ee(t,n=!0,o){nt()?e.onMounted(t,o):n?t():e.nextTick(t)}function J(t){var n;const o=X(t);return(n=o?.$el)!=null?n:o}const ie=_e?window:void 0,ot=_e?window.document:void 0;function be(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ie):[n,o,l,s]=t,!n)return ne;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],r=()=>{i.forEach(f=>f()),i.length=0},d=(f,c,m,M)=>(f.addEventListener(c,m,M),()=>f.removeEventListener(c,m,M)),g=e.watch(()=>[J(n),X(s)],([f,c])=>{if(r(),!f)return;const m=Je(c)?{...c}:c;i.push(...o.flatMap(M=>l.map(u=>d(f,M,u,m))))},{immediate:!0,flush:"post"}),a=()=>{g(),r()};return Te(a),a}function lt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function st(t){const n=lt();return e.computed(()=>(n.value,Boolean(t())))}function at(t){const n=e.getCurrentInstance(),o=Ge(()=>null,()=>t?J(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function it(t,n,o={}){const{window:l=ie,...s}=o;let i;const r=st(()=>l&&"ResizeObserver"in l),d=()=>{i&&(i.disconnect(),i=void 0)},g=e.computed(()=>Array.isArray(t)?t.map(c=>J(c)):[J(t)]),a=e.watch(g,c=>{if(d(),r.value&&l){i=new ResizeObserver(n);for(const m of c)m&&i.observe(m,s)}},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return Te(f),{isSupported:r,stop:f}}function rt(t,n={width:0,height:0},o={}){const{window:l=ie,box:s="content-box"}=o,i=e.computed(()=>{var c,m;return(m=(c=J(t))==null?void 0:c.namespaceURI)==null?void 0:m.includes("svg")}),r=e.ref(n.width),d=e.ref(n.height),{stop:g}=it(t,([c])=>{const m=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&i.value){const M=J(t);if(M){const u=l.getComputedStyle(M);r.value=Number.parseFloat(u.width),d.value=Number.parseFloat(u.height)}}else if(m){const M=Array.isArray(m)?m:[m];r.value=M.reduce((u,{inlineSize:E})=>u+E,0),d.value=M.reduce((u,{blockSize:E})=>u+E,0)}else r.value=c.contentRect.width,d.value=c.contentRect.height},o);Ee(()=>{const c=J(t);c&&(r.value="offsetWidth"in c?c.offsetWidth:n.width,d.value="offsetHeight"in c?c.offsetHeight:n.height)});const a=e.watch(()=>J(t),c=>{r.value=c?n.width:0,d.value=c?n.height:0});function f(){g(),a()}return{width:r,height:d,stop:f}}const ke=1;function ct(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=ne,onScroll:i=ne,offset:r={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:g="auto",window:a=ie,onError:f=y=>{console.error(y)}}=n,c=e.ref(0),m=e.ref(0),M=e.computed({get(){return c.value},set(y){E(y,void 0)}}),u=e.computed({get(){return m.value},set(y){E(void 0,y)}});function E(y,A){var _,V,Q;if(!a)return;const R=X(t);!R||(Q=R instanceof Document?a.document.body:R)==null||Q.scrollTo({top:(_=X(A))!=null?_:u.value,left:(V=X(y))!=null?V:M.value,behavior:X(g)})}const D=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),L=y=>{!D.value||(D.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,s(y))},k=Ne(L,o+l),U=y=>{var A;if(!a)return;const _=((A=y?.document)==null?void 0:A.documentElement)||y?.documentElement||J(y),{display:V,flexDirection:Q}=getComputedStyle(_),R=_.scrollLeft;w.left=R<c.value,w.right=R>c.value;const K=Math.abs(R)<=(r.left||0),W=Math.abs(R)+_.clientWidth>=_.scrollWidth-(r.right||0)-ke;V==="flex"&&Q==="row-reverse"?(h.left=W,h.right=K):(h.left=K,h.right=W),c.value=R;let Y=_.scrollTop;y===a.document&&!Y&&(Y=a.document.body.scrollTop),w.top=Y<m.value,w.bottom=Y>m.value;const S=Math.abs(Y)<=(r.top||0),j=Math.abs(Y)+_.clientHeight>=_.scrollHeight-(r.bottom||0)-ke;V==="flex"&&Q==="column-reverse"?(h.top=j,h.bottom=S):(h.top=S,h.bottom=j),m.value=Y},x=y=>{var A;if(!a)return;const _=(A=y.target.documentElement)!=null?A:y.target;U(_),D.value=!0,k(y),i(y)};return be(t,"scroll",o?we(x,o,!0,!1):x,d),Ee(()=>{try{const y=X(t);if(!y)return;U(y)}catch(y){f(y)}}),be(t,"scrollend",L,d),{x:M,y:u,isScrolling:D,arrivedState:h,directions:w,measure(){const y=X(t);a&&y&&U(y)}}}let ut=0;function ve(t,n={}){const o=e.ref(!1),{document:l=ot,immediate:s=!0,manual:i=!1,id:r=`vueuse_styletag_${++ut}`}=n,d=e.ref(t);let g=()=>{};const a=()=>{if(!l)return;const c=l.getElementById(r)||l.createElement("style");c.isConnected||(c.id=r,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(g=e.watch(d,m=>{c.textContent=m},{immediate:!0}),o.value=!0)},f=()=>{!l||!o.value||(g(),l.head.removeChild(l.getElementById(r)),o.value=!1)};return s&&!i&&Ee(a),i||Te(f),{id:r,css:d,unload:f,load:a,isLoaded:e.readonly(o)}}function Be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,i=e.ref(null),r=rt(i),d=e.ref(!0),g=Ne(U,100);let a;const f=e.shallowRef(t),c=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let u=0;const E=e.ref([]),D=e.computed(()=>{let{sum:S,height:j}={sum:0,height:0};return f.value.map((B,P)=>(typeof l=="number"?j=l:j=l(P),S+=j,{height:j,sum:S}))}),h=e.computed(()=>V(m.value.start)),w=e.computed(()=>typeof l=="number"?D.value.length*l:D.value[D.value.length-1]?.sum||0),L=e.computed(()=>{const{start:S,end:j}=M.value;return E.value.slice(S,j)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(a)),e.watch(f,()=>{(r.width.value||r.height.value)&&x()},{deep:!0}),e.watch([r.width,r.height],([S,j])=>{(S||j)&&x()},{deep:!0}),e.watch(c,()=>{k(),g()});function k(){d.value=!1}function U(){d.value=!0,o?.()}function x(){cancelAnimationFrame(a),a=requestAnimationFrame(y)}function y(){if(i.value){c.value=i.value.scrollTop;let S=A(c.value);u=_(S);let j=Math.max(0,S-s),B=Math.min(S+u+s,f.value.length);m.value={start:j,end:B},E.value=f.value.slice(j,B).map((P,b)=>({data:P,index:b+j})),M.value.start=S-j,M.value.end=M.value.start+u}}function A(S){let j=0,B=D.value.length-1,P=-1;for(;j<=B;){const b=Math.floor((j+B)/2);D.value[b].sum>=S?(P=b,B=b-1):j=b+1}return Math.max(0,P)}function _(S){let j=0,B=0;for(let P=S;P<D.value.length&&(j++,B+=D.value[P].height,!(B>=r.height.value));P++);return j}function V(S){if(typeof l=="number")return S*l;let j=D.value[S];return j?j.sum-j.height:0}function Q(S){return D.value[S]||{sum:0,height:0}}function R(S){if(i.value){const j=Q(S);i.value.scrollTop=j.sum-j.height,y()}}const K=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:d.value?void 0:"none"}})),W=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),Y={overflowY:"auto"};return{list:E,visiableList:L,getItemHeightData:Q,getoffsetTopIndex:A,totalHeight:w,clientHeight:r.height,scrollTo:R,scrollTop:c,isScrollEnd:d,containerProps:{ref:i,onScroll:()=>{x()},style:Y},wrapperProps:K,innerProps:W}}const re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ge=Symbol(),me=Symbol(),le=Symbol(),he=Symbol();function dt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(de,s),r=e.inject(ue,n),d=e.inject(me,o),g=e.inject(ce,t),a=e.inject(re,t),f=e.inject(fe,t),c=e.inject(Me,t),m=e.inject(ge,t),M=e.inject(le,t),u=e.inject(he,l);return{selected:i,isSelected:r,isAllSelected:d,toggle:g,toggleAll:a,select:f,selectAll:c,unselect:m,unselectAll:M,selectedCount:u}}function ft(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),i=e.ref(new Map);e.watch(t,h=>{i.value=h.reduce((w,L)=>(w.set(L[n],L),w),new Map)},{deep:o.deep,immediate:!0});const r=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(i.value.values()));else if(s.value.size){let w;s.value.forEach(L=>{w=i.value.get(L),w&&h.push(w)})}return h}),d=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=i.value.size):h=s.value.size,h}),g=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const w=s.value.size,L=i.value.size;h=w==L}return h});function a(){l.value=!0}function f(){l.value=!1}function c(h){u(()=>{h.forEach(w=>{s.value.add(w[n])})})}function m(h){u(()=>{h.forEach(w=>{s.value.delete(w[n])})})}function M(h){return l.value!=null?l.value:s.value.has(h[n])}function u(h){l.value!=null&&(l.value?s.value=new Set(Array.from(i.value.keys())):s.value=new Set),h(),s.value.size==0?l.value=!1:s.value.size==i.value.size?l.value=!0:l.value=null}function E(h){u(()=>{h.forEach(w=>{M(w)?s.value.delete(w[n]):s.value.add(w[n])})})}function D(){const{value:h}=g;h?f():a()}return e.provide(re,D),e.provide(ce,E),e.provide(ue,M),e.provide(de,r),e.provide(fe,c),e.provide(Me,a),e.provide(ge,m),e.provide(me,g),e.provide(le,f),e.provide(le,f),e.provide(he,d),{selected:r,select:c,selectAll:a,unselect:m,unselectAll:f,toggle:E,toggleAll:D,isSelected:M,isAllSelected:g,selectedCount:d}}function Mt(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}),i=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const E=o.value.size,D=t.value.length;u=E==D}return u});function r(){n.value=!0}function d(){n.value=!1}function g(u){c(()=>{u.forEach(E=>{o.value.add(E)})})}function a(u){c(()=>{u.forEach(E=>{o.value.delete(E)})})}function f(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(E=>{f(E)?o.value.delete(E):o.value.add(E)})})}function M(){const{value:u}=i;u?d():r()}return e.provide(re,M),e.provide(ce,m),e.provide(ue,f),e.provide(de,l),e.provide(fe,g),e.provide(Me,r),e.provide(ge,a),e.provide(me,i),e.provide(le,d),e.provide(le,d),e.provide(he,s),{selected:l,select:g,selectAll:r,unselect:a,unselectAll:d,toggle:m,toggleAll:M,isSelected:f,isAllSelected:i,selectedCount:s}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=Ie("\u9009\u62E9"),unselect:i=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=Ie("\u53D6\u6D88\u5168\u9009")}=l();let d={};const g=e.computed(()=>we(n==="colum"?Se:T,50)),a=new Set,f=e.ref(!0),c=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(p=>D.value=p[0].target.getBoundingClientRect()),D=e.ref({}),h=e.ref({top:0,height:0,sync(p=!1){h.value.top=c.value?.scrollTop||0,p&&(h.value.height=c.value?.scrollHeight||0)}}),w=e.computed(()=>m.value?{left:Math.min(M.value.x,u.value.x)-D.value.left,top:Math.min(M.value.y,u.value.y)-D.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:L=50,startSpeed:k=30,maxSpeed:U=30}=o;let x;const y=L,A=k,_=U,V=p=>p**1;let Q=0;function R(p){if(cancelAnimationFrame(x),Q=K(p),Q=Math.max(Math.min(Q,_),-_),Q!==0){const N=c.value;if(!N||!m.value)return;const C=h.value.height-D.value.height;let z=h.value.top+Number(Q);z=Math.min(Math.max(0,z),C),N.scrollTop=z,Y(),x=requestAnimationFrame(()=>R(p))}}function K(p){if(c.value){const C=D.value,z=C.bottom-p;if(z<y)return A*V(1-z/y);const O=p-C.top;if(O<y)return-A*V(1-O/y)}return 0}function W(p){const N={...w.value,right:0,bottom:0};return N.left+=D.value.left,N.top+=D.value.top-h.value.top,N.right=N.width+N.left,N.bottom=N.height+N.top,N.left<p.right&&N.right>p.left&&N.top<p.bottom&&N.bottom>p.top}function Y(){h.value.sync();const{top:p,height:N}=h.value;u.value.y=Math.min(N+D.value.top,u.value.y+p-u.value.scrollTop),u.value.scrollTop=p}function S(p,N,C="dynamic-styles"){let z=document.getElementById(C);z||(z=document.createElement("style"),z.id=C,document.head.appendChild(z));const O=z.sheet.cssRules,H=O.length,F=`${p} { ${N} }`;for(let q=0;q<H;q++){const te=O[q];if(te.selectorText===p&&te.style.cssText===N)return}z.sheet.insertRule(F,H)}function j(p,N){f.value=!0,m.value=!0,h.value.sync(!0);const C=N+h.value.top;M.value.x=p,M.value.y=C,u.value.x=p,u.value.y=C,c.value?.classList.add("disable-scroll-behavior"),a.clear()}function B(p,N,C){!m.value||(f.value&&n==="colum"&&!$()&&(r(),f.value=!1),C?.(),R(N),u.value.x=Math.max(p,D.value.left),u.value.y=Math.min(N+h.value.top,h.value.height+D.value.top),u.value.scrollTop=h.value.top,g.value())}function P(){m.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function b(){!m.value||(Q||Y(),g.value())}function $(){if(!m.value)return!1;const{width:p,height:N}=w.value;return!(Math.max(p,N)>5)}function ae(){$()&&r()}function Se(){$()||c.value?.querySelectorAll(`[${t}]`).forEach(p=>{d[`${t}`]=p.getAttribute(`${t}`),W(p.getBoundingClientRect())?s([d]):i([d])})}function T(){const p=[];let N=null,C=0;c.value?.querySelectorAll(`[${t}]`).forEach((z,O)=>{const H=z.getAttribute(`${t}`);p.push(H),W(z.getBoundingClientRect())?(N===null&&(N=O),N=Math.min(N,O),C=Math.max(C,O)):(d[`${t}`]=H,a.has(H)&&i([d]))});for(let z=N;z<C+1;z++)d[`${t}`]=p[z],s([d]),a.add(p[z])}function v(p){return!p?.value||(c.value=p.value,!c?.value)?!1:(E.observe(c.value),S(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:v,dragStart:j,dragMove:B,dragEnd:P,onScroll:b,isSingleClick:$,cancelSelectAllBySingleClick:ae,selectFn:g,selectRange:w,isPressing:m,containerEl:c,observer:E}}function gt(t){const n=ze(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:i,dragMove:r,dragEnd:d,cancelSelectAllBySingleClick:g}=n,a=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:f}=ve(`.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:a.value})}});function m(h){h.button===0&&i(h.x,h.y)}function M(h){r(h.x,h.y)}function u(h){h.composedPath().some(L=>L?.getAttribute?.(t.attribute))||g(),d()}function E(h){try{if(!n.init(h))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),f(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",m),window.addEventListener("mousemove",M),window.addEventListener("mouseup",u)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function N(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",m),window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",u)}return{init:E,unMount:N}}function mt(t,n,o=600){const l=ze({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:r,dragMove:d,dragEnd:g}=l;let a;function f(){clearTimeout(a)}function c(N){f(),N.composedPath().some(w=>!!w?.getAttribute?.(t.attribute))&&(a=setTimeout(()=>{const{clientX:w,clientY:L}=N.targetTouches[0];r(w,L),n?.(),d(w,L,()=>N.preventDefault()),N.preventDefault()},o))}function m(N){f();const{clientX:h,clientY:w}=N.targetTouches[0];d(h,w,()=>N.preventDefault())}function M(){f(),g()}function u(N){try{if(!l.init(N))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",M),window.addEventListener("touchend",M)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function E(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",M),window.removeEventListener("touchEnd",M)}return{init:u,unMount:E}}const Qe=Symbol(),ht={key:0,class:"lzc-modal"},pt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Qe,()=>n("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(xe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),bn="",Z=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},yt=Z(pt,[["__scopeId","data-v-14584295"]]);function Dt(t){function n(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(yt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:n}}function Ae({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return ve(`@keyframes lzcDelayLoad {
6
+ }`,{id:"styletag_lzc_dragselect",manual:!0}),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:a.value})}});function m(h){h.button===0&&i(h.x,h.y)}function M(h){r(h.x,h.y)}function u(h){h.composedPath().some(L=>L?.getAttribute?.(t.attribute))||g(),d()}function E(h){try{if(!n.init(h))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),f(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",m),window.addEventListener("mousemove",M),window.addEventListener("mouseup",u)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function D(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",m),window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",u)}return{init:E,unMount:D}}function mt(t,n,o=600){const l=ze({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:r,dragMove:d,dragEnd:g}=l;let a;function f(){clearTimeout(a)}function c(D){f(),D.composedPath().some(w=>!!w?.getAttribute?.(t.attribute))&&(a=setTimeout(()=>{const{clientX:w,clientY:L}=D.targetTouches[0];r(w,L),n?.(),d(w,L,()=>D.preventDefault()),D.preventDefault()},o))}function m(D){f();const{clientX:h,clientY:w}=D.targetTouches[0];d(h,w,()=>D.preventDefault())}function M(){f(),g()}function u(D){try{if(!l.init(D))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",M),window.addEventListener("touchend",M)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function E(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",M),window.removeEventListener("touchEnd",M)}return{init:u,unMount:E}}const Qe=Symbol(),ht={key:0,class:"lzc-modal"},pt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Qe,()=>n("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(xe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),bn="",Z=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},yt=Z(pt,[["__scopeId","data-v-14584295"]]);function Dt(t){function n(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(yt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:n}}function Ae({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return ve(`@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 ${i} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const d=at();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Tt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),s=e.ref(!1);function i(){s.value=!0}function r(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:r}}const Nt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],wt=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)),Nt,16))}}),Qn="",Ye=Z(wt,[["__scopeId","data-v-92a1804d"]]),Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5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75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",vt={class:"loading-wrap"},It=["src"],zt=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",vt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Et),style:e.normalizeStyle(e.unref(o))},null,12,It)]))}}),Yn="",At=Z(zt,[["__scopeId","data-v-3c54972f"]]);async function je(t){return new Promise(n=>setTimeout(()=>n(),t))}const jt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAg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yBMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Ct=["onClick"],St=["onClick"],xt=["src"],_t=["src"],Ot=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 a={};return o.captureEventP&&(a.pointerEvents="none"),a}),i=e.computed(()=>{let a={padding:"12px"};return(o.icon||o.showIcon)&&(a.padding="20px"),o.width&&(a.width=o.width),o.maxWidth&&(a.maxWidth=o.maxWidth),o.overlayContentStyle&&(a={...a,...o.overlayContentStyle}),a}),r=e.computed(()=>{let a={};return o.showClose&&!o.icon&&(a.paddingRight="16px"),a});function d(){o.closeOnClickOverlay&&n("close")}function g(){o.closeOnClick&&n("close")}return(a,f)=>(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(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(g,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:f[0]||(f[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(jt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Lt),class:e.normalizeClass(`${l}-icon`)},null,10,_t)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(r))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,St)],10,Ct),[[e.vShow,t.visible]])],4)]),_:1}))}}),Un="",Rn="",bt=Z(Ot,[["__scopeId","data-v-0947d1e3"]]);class Ue{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=bt}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 je(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 kt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,i=n?.autoClose!==!1,r=n?.delay!=null?n.delay:300,d={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,r,d);const g=e.ref(!1);let a=null;const f=new Ue(d);async function c(...M){if(o&&console.log(`useDelayAsync - handler - processing: ${g.value}`),!g.value){g.value=!0,a=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,g.value),s&&(!g.value||f.show())},r);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 m(i),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await m(i),await n?.onError?.(u)}}}async function m(M=!0){o&&console.log("useDelayAsync - close - closeLoading: ",M),g.value=!1,a&&clearTimeout(a),a=null,M&&await f.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:g,handler:c,close:m}}function Bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Qt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),i=e.ref(0),r=e.ref(""),d=()=>r.value==="vertical",g=()=>r.value==="horizontal",a=()=>{o.value=0,l.value=0,s.value=0,i.value=0,r.value=""};return{move:m=>{const M=m.touches[0];o.value=(M.clientX<0?0:M.clientX)-t.value,l.value=M.clientY-n.value,s.value=Math.abs(o.value),i.value=Math.abs(l.value);const u=10;(!r.value||s.value<u&&i.value<u)&&(r.value=Bt(s.value,i.value))},start:m=>{a(),t.value=m.touches[0].clientX,n.value=m.touches[0].clientY},reset:a,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:i,direction:r,isVertical:d,isHorizontal:g}}const Re=250,Le=5,$e=500;function Yt(t,n,o,l){var s=Math.min(o/t,l/n),i=t*s,r=n*s;return{width:ee(i),height:ee(r)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function pe(t,n,o){return Math.min(Math.max(t,n),o)}function ee(t,n=2){return parseFloat(t.toFixed(n))}function ye(t,n,o){return t=ee(t),n=ee(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Pe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Fe(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Rt(t){const n=e.ref(1),o=e.ref(6),l=e.ref(!1),s=e.ref(!0),i=e.ref(),r=e.ref(),d=e.ref({width:0,height:0}),g=e.ref({width:0,height:0}),a=e.reactive({scale:1,offsetX:0,offsetY:0,touched:!1,zooming:!1,preview:!0}),f=e.ref({}),c=Qt(),m=ct(r);let M,u,E,N,h,w,L,k;e.watch([i,r],([D,v])=>{U(D,v)},{immediate:!0});async function U(D,v){await x(D,v),D&&y()}async function x(D,v){if(D=D??i.value,v=v??r.value,!v)return;let{clientWidth:p=0,clientHeight:T=0}=D||{};const{clientWidth:C,clientHeight:z}=v;if(D instanceof HTMLImageElement){const O=Yt(D.naturalWidth||C,D.naturalHeight||z,C,z);p=O.width,T=O.height}(p===0||T===0)&&(p=d.value.width||C,T=d.value.height||z),d.value={width:Math.min(p,C),height:Math.min(T,z)},g.value={width:C,height:z}}function y(){const D=P();o.value=Math.max(o.value,D*2)}function A(D,v){const{width:p,height:T}=g.value,C=Math.max(0,(T-v)*.5),z=Math.max(0,(p-D)*.5);return{top:C,left:z}}async function _(D){const{touches:v}=D;M=v.length,!(M===2&&l.value)&&(a.zooming=M===2,N=Date.now(),c.start(D),Y("start",D),a.zooming&&(D.preventDefault(),u=a.scale,E=Pe(v),await W(a.scale),k||(k=Fe(v))),a.touched||(a.touched=!0))}async function V(D){const{touches:v}=D;if(M=v.length,c.move(D),Y("move",D),a.zooming&&M==2){D.preventDefault(),w=!1;const p=Pe(v),T=u*p/E;k&&B(T,k)}}async function Q(D){D.touches.length||(Y("end",D),ae(),a.scale>=n.value&&a.scale<=o.value?a.zooming&&await K(a.scale):(a.zooming=!1,a.scale<n.value?await B(n.value,void 0,!0):a.scale>o.value&&await B(o.value,k,!0)),c.reset(),R())}function R(){k=void 0,a.touched=!1}async function K(D){if(a.preview)return;a.preview=!0;const{value:v}=f,{scaleW:p,scaleH:T}=S(D),{left:C,top:z}=A(p,T);D===1&&(v.maxHeight="100%"),v.width=`${p}px`,v.height=`${T}px`,v.transitionDuration="0s",v.transform=ye(C,z,1),f.value=v,await e.nextTick();const O=r.value;if(!O)return;const{offsetX:H,offsetY:F}=a;H<0&&(O.scrollLeft=Math.abs(H)),F<0&&(O.scrollTop=Math.abs(F))}async function W(D){if(!a.preview)return;a.preview=!1;const v=r.value;if(!v)return;const{scrollTop:p,scrollLeft:T}=v,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=q!=0?q:T*-1,oe=F!=0?F:p*-1;v.scrollTop=0,v.scrollLeft=0;const{value:G}=f;G.width=`${C}px`,G.height=`${z}px`,G.maxHeight="none",G.transitionDuration="0s",G.transform=ye(te,oe,D),f.value=G,await e.nextTick(),a.offsetX=te,a.offsetY=oe,await je(20)}function Y(D,v){m.measure();let{clientX:p,clientY:T}=v.touches.length!=0?v.touches[0]:v.changedTouches[0];const{top:C,left:z,right:O,bottom:H}=m.arrivedState;if(D=="start")L=C||z||O||H;else if(M==2)L=!1;else if(L){if(c.direction.value=="vertical")if(a.scale!=1)L=!1;else{const F=c.startY.value<T;L=C&&F||H&&!F}else if(c.direction.value=="horizontal"){const F=c.startX.value<p;L=z&&F||O&&!F}}L&&w&&(L=!1,v.preventDefault()),D=="end"&&!L&&(p=c.startX.value,T=c.startY.value,L=!0),(D!="move"||L)&&t.onSwipeEdge?.(D,c.direction.value,p,T)}function S(D){const{width:v,height:p}=d.value;return{scaleW:ee(D*v),scaleH:ee(D*p)}}function j(){w||(w=!0,r.value?.addEventListener("transitionend",$))}async function B(D,v,p){if(D=ee(D),D=pe(D,n.value-n.value*.5,o.value+o.value*.5),D!==a.scale){a.preview&&await W(a.scale),v||(v={x:c.startX.value,y:c.startY.value});const{value:T}=f,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=D/a.scale,oe={top:Math.abs(z*D-g.value.height)*-1,bottom:F,left:Math.abs(C*D-g.value.width)*-1,right:q};let G=q!=0?q:(a.offsetX-v.x)*te+v.x,De=F!=0?F:(a.offsetY-v.y)*te+v.y;G=ee(pe(G,oe.left,oe.right)),De=ee(pe(De,oe.top,oe.bottom)),T.width=`${C}px`,T.height=`${z}px`,T.transitionDuration=p?Ut(D):"0s",T.transform=ye(G,De,D),a.offsetX=G,a.offsetY=De,a.scale=D,f.value=T,await e.nextTick(),p&&j(),t.onScale?.()}}function P(){const{width:D,height:v}=d.value,{width:p,height:T}=g.value,C=2.5;let z;return v==T?(z=p/D,z-1<.1&&(z=C)):z=Math.max(C,p/D,T/v),z}function b(){const D=a.scale>1?1:P();B(D,D!=1?{x:c.startX.value,y:c.startY.value}:void 0,!0)}async function $(){r.value?.removeEventListener("transitionend",$),w=!1,a.preview||await K(a.scale)}async function ae(D){if(M>1)return;const{offsetX:v,offsetY:p}=c,T=Date.now()-N;v.value<Le&&p.value<Le&&(T<Re?s.value?h?(clearTimeout(h),h=null,b()):h=setTimeout(async()=>{t.onTap?.(),h=null},Re):t.onTap?.():T>$e&&t.onLongPress?.())}function Se(){B(1,void 0,!0)}return{imageRef:i,containerRef:r,state:a,style:f,resetScale:Se,onTouchStart:_,onTouchMove:V,onTouchEnd:Q}}function $t(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,i){t.startX=s,t.startY=i,t.scale=1}function o(s,i){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=i-t.startY,t.scale=1-Math.abs(t.offsetY/i*.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}}const Pt=["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(),i=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),r=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function g(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(a,f)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(g,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(r),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Pt))}}),$n="",Ht=Z(Ft,[["__scopeId","data-v-25d39b90"]]),He={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),{...He,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||He.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"],se=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(i){const{style:r}=i;return typeof r=="object"?r:{}}return(i,r)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$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:i=.9,observeMethod:r="classList"}=t,d=e.ref(!0),g=Ne(V,100);let a,f="";const c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),N=e.computed(()=>!!m.value),h=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),w=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-E.value.clientHeight),L=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),k=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>k.value>i?0:k.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${U.value}px`:void 0}));function y(b){_(),m.value=b.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=f,m.value=0,g()}function _(){d.value=!1}function V(){N.value||(d.value=!0)}function Q(b){if(!N.value)return;let $=b.clientY-u.value.top-m.value;$<0?M.value=0:$>=w.value?M.value=w.value:M.value=$,n.value.scrollTo({top:M.value/w.value*L.value})}function R(){N.value||K()}function K(){cancelAnimationFrame(a),a=requestAnimationFrame(W)}function W(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,M.value=c.value/L.value*w.value)}function Y(b){let $="addEventListener";b==="add"?$="addEventListener":$="removeEventListener",o.value?.[$]("pointerdown",y,{passive:!0}),window[$]("pointermove",Q,{passive:!0}),window[$]("pointerup",A,{passive:!0})}const S=new MutationObserver(b=>{(r=="classList"||b.map(ae=>ae.oldValue).join().includes("height"))&&j()});function j(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){_(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,V()},150)}function P(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",R,{passive:!0}),Y("add");const b={};r==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),S.observe(n.value,b),setTimeout(()=>{j()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{_(),g()}),{isScrollEnd:d,isDragSlider:N,offsetTop:M,scrollTop:c,scrollable:h,sliderPos:x,init:P,modifySliderEventListener:Y}}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),i=e.computed(()=>o.containerEl),r=Xt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:d,isScrollEnd:g,sliderPos:a}=r,f=e.ref(!1),c=o.autoHide?e.computed(()=>f.value||!g.value):e.computed(()=>d.value),{load:m}=ve(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const d=at();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Tt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),s=e.ref(!1);function i(){s.value=!0}function r(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:r}}const Nt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],wt=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)),Nt,16))}}),Qn="",Ye=Z(wt,[["__scopeId","data-v-92a1804d"]]),Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN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CqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",vt={class:"loading-wrap"},It=["src"],zt=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",vt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Et),style:e.normalizeStyle(e.unref(o))},null,12,It)]))}}),Yn="",At=Z(zt,[["__scopeId","data-v-3c54972f"]]);async function je(t){return new Promise(n=>setTimeout(()=>n(),t))}const jt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9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E1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Ct=["onClick"],St=["onClick"],xt=["src"],_t=["src"],Ot=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 a={};return o.captureEventP&&(a.pointerEvents="none"),a}),i=e.computed(()=>{let a={padding:"12px"};return(o.icon||o.showIcon)&&(a.padding="20px"),o.width&&(a.width=o.width),o.maxWidth&&(a.maxWidth=o.maxWidth),o.overlayContentStyle&&(a={...a,...o.overlayContentStyle}),a}),r=e.computed(()=>{let a={};return o.showClose&&!o.icon&&(a.paddingRight="16px"),a});function d(){o.closeOnClickOverlay&&n("close")}function g(){o.closeOnClick&&n("close")}return(a,f)=>(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(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(g,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:f[0]||(f[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(jt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Lt),class:e.normalizeClass(`${l}-icon`)},null,10,_t)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(r))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,St)],10,Ct),[[e.vShow,t.visible]])],4)]),_:1}))}}),Un="",Rn="",bt=Z(Ot,[["__scopeId","data-v-0947d1e3"]]);class Ue{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=bt}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 je(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 kt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,i=n?.autoClose!==!1,r=n?.delay!=null?n.delay:300,d={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,r,d);const g=e.ref(!1);let a=null;const f=new Ue(d);async function c(...M){if(o&&console.log(`useDelayAsync - handler - processing: ${g.value}`),!g.value){g.value=!0,a=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,g.value),s&&(!g.value||f.show())},r);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 m(i),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await m(i),await n?.onError?.(u)}}}async function m(M=!0){o&&console.log("useDelayAsync - close - closeLoading: ",M),g.value=!1,a&&clearTimeout(a),a=null,M&&await f.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:g,handler:c,close:m}}function Bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Qt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),i=e.ref(0),r=e.ref(""),d=()=>r.value==="vertical",g=()=>r.value==="horizontal",a=()=>{o.value=0,l.value=0,s.value=0,i.value=0,r.value=""};return{move:m=>{const M=m.touches[0];o.value=(M.clientX<0?0:M.clientX)-t.value,l.value=M.clientY-n.value,s.value=Math.abs(o.value),i.value=Math.abs(l.value);const u=10;(!r.value||s.value<u&&i.value<u)&&(r.value=Bt(s.value,i.value))},start:m=>{a(),t.value=m.touches[0].clientX,n.value=m.touches[0].clientY},reset:a,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:i,direction:r,isVertical:d,isHorizontal:g}}const Re=250,Le=5,$e=500;function Yt(t,n,o,l){var s=Math.min(o/t,l/n),i=t*s,r=n*s;return{width:ee(i),height:ee(r)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function pe(t,n,o){return Math.min(Math.max(t,n),o)}function ee(t,n=2){return parseFloat(t.toFixed(n))}function ye(t,n,o){return t=ee(t),n=ee(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Pe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Fe(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Rt(t){const n=e.ref(1),o=e.ref(6),l=e.ref(!1),s=e.ref(!0),i=e.ref(),r=e.ref(),d=e.ref({width:0,height:0}),g=e.ref({width:0,height:0}),a=e.reactive({scale:1,offsetX:0,offsetY:0,touched:!1,zooming:!1,preview:!0}),f=e.ref({}),c=Qt(),m=ct(r);let M,u,E,D,h,w,L,k;e.watch([i,r],([T,v])=>{U(T,v)},{immediate:!0});async function U(T,v){await x(T,v),T&&y()}async function x(T,v){if(T=T??i.value,v=v??r.value,!v)return;let{clientWidth:p=0,clientHeight:N=0}=T||{};const{clientWidth:C,clientHeight:z}=v;if(T instanceof HTMLImageElement){const O=Yt(T.naturalWidth||C,T.naturalHeight||z,C,z);p=O.width,N=O.height}(p===0||N===0)&&(p=d.value.width||C,N=d.value.height||z),d.value={width:Math.min(p,C),height:Math.min(N,z)},g.value={width:C,height:z}}function y(){const T=P();o.value=Math.max(o.value,T*2)}function A(T,v){const{width:p,height:N}=g.value,C=Math.max(0,(N-v)*.5),z=Math.max(0,(p-T)*.5);return{top:C,left:z}}async function _(T){const{touches:v}=T;M=v.length,!(M===2&&l.value)&&(a.zooming=M===2,D=Date.now(),c.start(T),Y("start",T),a.zooming&&(T.preventDefault(),u=a.scale,E=Pe(v),await W(a.scale),k||(k=Fe(v))),a.touched||(a.touched=!0))}async function V(T){const{touches:v}=T;if(M=v.length,c.move(T),Y("move",T),a.zooming&&M==2){T.preventDefault(),w=!1;const p=Pe(v),N=u*p/E;k&&B(N,k)}}async function Q(T){T.touches.length||(Y("end",T),ae(),a.scale>=n.value&&a.scale<=o.value?a.zooming&&await K(a.scale):(a.zooming=!1,a.scale<n.value?await B(n.value,void 0,!0):a.scale>o.value&&await B(o.value,k,!0)),c.reset(),R())}function R(){k=void 0,a.touched=!1}async function K(T){if(a.preview)return;a.preview=!0;const{value:v}=f,{scaleW:p,scaleH:N}=S(T),{left:C,top:z}=A(p,N);T===1&&(v.maxHeight="100%"),v.width=`${p}px`,v.height=`${N}px`,v.transitionDuration="0s",v.transform=ye(C,z,1),f.value=v,await e.nextTick();const O=r.value;if(!O)return;const{offsetX:H,offsetY:F}=a;H<0&&(O.scrollLeft=Math.abs(H)),F<0&&(O.scrollTop=Math.abs(F))}async function W(T){if(!a.preview)return;a.preview=!1;const v=r.value;if(!v)return;const{scrollTop:p,scrollLeft:N}=v,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(T),{top:F,left:q}=A(O,H),te=q!=0?q:N*-1,oe=F!=0?F:p*-1;v.scrollTop=0,v.scrollLeft=0;const{value:G}=f;G.width=`${C}px`,G.height=`${z}px`,G.maxHeight="none",G.transitionDuration="0s",G.transform=ye(te,oe,T),f.value=G,await e.nextTick(),a.offsetX=te,a.offsetY=oe,await je(20)}function Y(T,v){m.measure();let{clientX:p,clientY:N}=v.touches.length!=0?v.touches[0]:v.changedTouches[0];const{top:C,left:z,right:O,bottom:H}=m.arrivedState;if(T=="start")L=C||z||O||H;else if(M==2)L=!1;else if(L){if(c.direction.value=="vertical")if(a.scale!=1)L=!1;else{const F=c.startY.value<N;L=C&&F||H&&!F}else if(c.direction.value=="horizontal"){const F=c.startX.value<p;L=z&&F||O&&!F}}L&&w&&(L=!1,v.preventDefault()),T=="end"&&!L&&(p=c.startX.value,N=c.startY.value,L=!0),(T!="move"||L)&&t.onSwipeEdge?.(T,c.direction.value,p,N)}function S(T){const{width:v,height:p}=d.value;return{scaleW:ee(T*v),scaleH:ee(T*p)}}function j(){w||(w=!0,r.value?.addEventListener("transitionend",$))}async function B(T,v,p){if(T=ee(T),T=pe(T,n.value-n.value*.5,o.value+o.value*.5),T!==a.scale){a.preview&&await W(a.scale),v||(v={x:c.startX.value,y:c.startY.value});const{value:N}=f,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(T),{top:F,left:q}=A(O,H),te=T/a.scale,oe={top:Math.abs(z*T-g.value.height)*-1,bottom:F,left:Math.abs(C*T-g.value.width)*-1,right:q};let G=q!=0?q:(a.offsetX-v.x)*te+v.x,De=F!=0?F:(a.offsetY-v.y)*te+v.y;G=ee(pe(G,oe.left,oe.right)),De=ee(pe(De,oe.top,oe.bottom)),N.width=`${C}px`,N.height=`${z}px`,N.transitionDuration=p?Ut(T):"0s",N.transform=ye(G,De,T),a.offsetX=G,a.offsetY=De,a.scale=T,f.value=N,await e.nextTick(),p&&j(),t.onScale?.()}}function P(){const{width:T,height:v}=d.value,{width:p,height:N}=g.value,C=2.5;let z;return v==N?(z=p/T,z-1<.1&&(z=C)):z=Math.max(C,p/T,N/v),z}function b(){const T=a.scale>1?1:P();B(T,T!=1?{x:c.startX.value,y:c.startY.value}:void 0,!0)}async function $(){r.value?.removeEventListener("transitionend",$),w=!1,a.preview||await K(a.scale)}async function ae(T){if(M>1)return;const{offsetX:v,offsetY:p}=c,N=Date.now()-D;v.value<Le&&p.value<Le&&(N<Re?s.value?h?(clearTimeout(h),h=null,b()):h=setTimeout(async()=>{t.onTap?.(),h=null},Re):t.onTap?.():N>$e&&t.onLongPress?.())}function Se(){B(1,void 0,!0)}return{imageRef:i,containerRef:r,state:a,style:f,resetScale:Se,onTouchStart:_,onTouchMove:V,onTouchEnd:Q}}function $t(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,i){t.startX=s,t.startY=i,t.scale=1}function o(s,i){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=i-t.startY,t.scale=1-Math.abs(t.offsetY/i*.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}}const Pt=["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(),i=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),r=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function g(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(a,f)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(g,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(r),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Pt))}}),$n="",Ht=Z(Ft,[["__scopeId","data-v-25d39b90"]]),He={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),{...He,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||He.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"],se=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(i){const{style:r}=i;return typeof r=="object"?r:{}}return(i,r)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$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:i=.9,observeMethod:r="classList"}=t,d=e.ref(!0),g=Ne(V,100);let a,f="";const c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),D=e.computed(()=>!!m.value),h=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),w=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-E.value.clientHeight),L=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),k=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>k.value>i?0:k.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${U.value}px`:void 0}));function y(b){_(),m.value=b.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=f,m.value=0,g()}function _(){d.value=!1}function V(){D.value||(d.value=!0)}function Q(b){if(!D.value)return;let $=b.clientY-u.value.top-m.value;$<0?M.value=0:$>=w.value?M.value=w.value:M.value=$,n.value.scrollTo({top:M.value/w.value*L.value})}function R(){D.value||K()}function K(){cancelAnimationFrame(a),a=requestAnimationFrame(W)}function W(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,M.value=c.value/L.value*w.value)}function Y(b){let $="addEventListener";b==="add"?$="addEventListener":$="removeEventListener",o.value?.[$]("pointerdown",y,{passive:!0}),window[$]("pointermove",Q,{passive:!0}),window[$]("pointerup",A,{passive:!0})}const S=new MutationObserver(b=>{(r=="classList"||b.map(ae=>ae.oldValue).join().includes("height"))&&j()});function j(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){_(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,V()},150)}function P(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",R,{passive:!0}),Y("add");const b={};r==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),S.observe(n.value,b),setTimeout(()=>{j()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{_(),g()}),{isScrollEnd:d,isDragSlider:D,offsetTop:M,scrollTop:c,scrollable:h,sliderPos:x,init:P,modifySliderEventListener:Y}}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),i=e.computed(()=>o.containerEl),r=Xt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:d,isScrollEnd:g,sliderPos:a}=r,f=e.ref(!1),c=o.autoHide?e.computed(()=>f.value||!g.value):e.computed(()=>d.value),{load:m}=ve(`.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(()=>{r.init()})}),e.onUnmounted(()=>{r.modifySliderEventListener("remove")});function M(){f.value=!0}function u(){f.value=!1}return n({uScrollBarReturn:r}),(E,N)=>(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(a))},[e.renderSlot(E.$slots,"default",{},()=>[Zt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Fn="",Gt=Z(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),i=e.ref(1),r=e.ref(0),d=e.ref(.3),g=e.ref(!1),a=e.ref(0),f=e.ref(0),c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref(),E=e.computed(()=>n.scrollTop),N=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),h=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+r.value}deg)`,opacity:d.value}));e.watch(M,y=>{y===0&&(s.value=-50,d.value=.3)}),e.watch(f,y=>{if(M.value===2)return;const A=Math.pow(y,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,r.value=Math.pow(A,1.5),A>15?g.value=!0:g.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const w=e.ref(0),L=y=>{w.value=y.touches[0].pageY},k=y=>{const A=y.touches[0].pageY-w.value;w.value=y.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&E.value===0&&(a.value===0&&(a.value=y.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,m.value=0,f.value=y.touches[0].pageY-a.value,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,A>0&&y.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;a.value=0,c.value=300;const y=Math.pow(f.value,o);x.value.style.transition=`${c.value}ms`,y>50?(M.value=2,f.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(f.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(()=>{M.value=0,f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},m.value)},600)})):(f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",L),x.value?.addEventListener("touchmove",k),x.value?.addEventListener("touchend",U))}),(y,A)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(N))},[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(h))},[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:g.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Hn="",Ve=Z(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=Be(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:r,wrapperProps:d,innerProps:g,getItemHeightData:a,scrollTop:f}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function m(M,u){return l.getItemKey?l.getItemKey(M,u):`${u}`}return(M,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ve,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(f),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]=(...E)=>e.unref(r).onScroll&&e.unref(r).onScroll(...E)),ref:e.unref(r).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(g))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({data:E,index:N})=>(e.openBlock(),e.createElementBlock("div",{key:m(E,N),"data-key":m(E,N),style:e.normalizeStyle({height:`${e.unref(a)(N).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:E,index:N},void 0,!0)],12,cn))),128))],16)],16)],16)])],64))}}),Vn="",fn=Z(dn,[["__scopeId","data-v-dfe60586"]]),Ce=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Mn={style:{position:"absolute"}},gn=Ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mn=["width","height"],hn=[Ce(()=>e.createElementVNode("title",null,"logo",-1)),Ce(()=>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))]))}}),Zn="",yn=Z(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 We(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),r=e.computed(()=>{const g=n?.value;return!g||g.startsWith("video/")?!0:g.startsWith("image/")?l.value?Dn.includes(g):Tn.includes(g):!1});t&&e.watch(t,g=>{o.value=g,s.value=!1});function d(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:r,handleError:d}}function Xe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Nn=t=>(e.pushScopeId("data-v-1544c8e8"),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},jn=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(),i=e.ref(!1),r=e.ref(!1),d=e.ref(!1),{src:g,mime:a}=e.toRefs(o),{imgSrc:f,isSupport:c,hasError:m,handleError:M}=We(g,a),{vImageCancel:u}=Xe(),{LoadingComp:E}=Ae({component:Ye,delay:300}),N=Ke(()=>d.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!d.value);function h(){r.value=!0}function w(){r.value&&(d.value=!0)}async function L(){h(),l.value?.addEventListener("animationend",k),l.value?.classList.add("showing"),await je(10),l.value?.classList.remove("src-class")}function k(){l.value?.removeEventListener("animationend",k),l.value?.classList.remove("showing"),l.value&&n("load",l.value),w()}async function U(y){y?L():s.value&&n("load",s.value),i.value=!0}function x(y){y?M():h(),i.value=!0}return(y,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(E),{key:0})),e.unref(c)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,zn)):e.renderSlot(y.$slots,"default",{key:2,src:e.unref(f),onLoad:U,onError:x},()=>[e.unref(N)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},y.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=_=>U()),onError:A[1]||(A[1]=_=>x()),src:t.thumbnail}),null,16,vn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||r.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},y.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:A[2]||(A[2]=_=>U(!0)),onError:A[3]||(A[3]=_=>x(!0)),src:e.unref(f)}),null,16,In)),[[e.unref(u)],[e.vShow,r.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),En],16,wn))],64))}}),Kn="",Ln=Z(jn,[["__scopeId","data-v-1544c8e8"]]),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:i,hasError:r,isSupport:d,handleError:g}=We(l,s),{vImageCancel:a}=Xe();return(f,c)=>e.unref(d)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{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(g)&&e.unref(g)(...m)),src:e.unref(i)},null,40,Sn)),[[e.unref(a)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Cn))}}),Gn="",On=Z(_n,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=Ye,I.Image=Ln,I.LONG_PRESS_START_TIME=$e,I.Loading=yn,I.LoadingToast=Ue,I.PageLoading=At,I.PullRefresh=Ve,I.ScrollBar=Gt,I.SvgIcon=se,I.TAP_OFFSET=Le,I.Thumbnail=On,I.ToastCreator=Vt,I.VirtualList=fn,I.allSelectedKey=de,I.clamp=pe,I.closeDialogKey=Qe,I.dialogController=Dt,I.getCenter=Fe,I.getTransform=ye,I.isAllSelectedKey=me,I.isSelectedKey=ue,I.selectAllKey=Me,I.selectKey=fe,I.selectedCountKey=he,I.toggleAllKey=re,I.toggleKey=ce,I.unselectAllKey=le,I.unselectKey=ge,I.useDelayAsync=kt,I.useDelayLoad=Tt,I.useDelayLoadComp=Ae,I.useDownDrag=$t,I.useDragSelect=ze,I.useDragSelectByMobile=mt,I.useDragSelectByPc=gt,I.useScaleImage=Rt,I.useSelectable=ft,I.useSelectableByBase=Mt,I.useSelectableInjectors=dt,I.useVirtualList=Be,I.vDebounceClick=Ze,I.vSingleClick=xe,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{r.init()})}),e.onUnmounted(()=>{r.modifySliderEventListener("remove")});function M(){f.value=!0}function u(){f.value=!1}return n({uScrollBarReturn:r}),(E,D)=>(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(a))},[e.renderSlot(E.$slots,"default",{},()=>[Zt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Fn="",Gt=Z(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),i=e.ref(1),r=e.ref(0),d=e.ref(.3),g=e.ref(!1),a=e.ref(0),f=e.ref(0),c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref(),E=e.computed(()=>n.scrollTop),D=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),h=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+r.value}deg)`,opacity:d.value}));e.watch(M,y=>{y===0&&(s.value=-50,d.value=.3)}),e.watch(f,y=>{if(M.value===2)return;const A=Math.pow(y,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,r.value=Math.pow(A,1.5),A>15?g.value=!0:g.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const w=e.ref(0),L=y=>{w.value=y.touches[0].pageY},k=y=>{const A=y.touches[0].pageY-w.value;w.value=y.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&E.value===0&&(a.value===0&&(a.value=y.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,m.value=0,f.value=y.touches[0].pageY-a.value,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,A>0&&y.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;a.value=0,c.value=300;const y=Math.pow(f.value,o);x.value.style.transition=`${c.value}ms`,y>50?(M.value=2,f.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(f.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(()=>{M.value=0,f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},m.value)},600)})):(f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",L),x.value?.addEventListener("touchmove",k),x.value?.addEventListener("touchend",U))}),(y,A)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(D))},[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(h))},[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:g.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Hn="",Ve=Z(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=Be(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:r,wrapperProps:d,innerProps:g,getItemHeightData:a,scrollTop:f}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function m(M,u){return l.getItemKey?l.getItemKey(M,u):`${u}`}return(M,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ve,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(f),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]=(...E)=>e.unref(r).onScroll&&e.unref(r).onScroll(...E)),ref:e.unref(r).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(g))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({data:E,index:D})=>(e.openBlock(),e.createElementBlock("div",{key:m(E,D),"data-key":m(E,D),style:e.normalizeStyle({height:`${e.unref(a)(D).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:E,index:D},void 0,!0)],12,cn))),128))],16)],16)],16)])],64))}}),Vn="",fn=Z(dn,[["__scopeId","data-v-dfe60586"]]),Ce=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Mn={style:{position:"absolute"}},gn=Ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mn=["width","height"],hn=[Ce(()=>e.createElementVNode("title",null,"logo",-1)),Ce(()=>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))]))}}),Zn="",yn=Z(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 We(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),r=e.computed(()=>{const g=n?.value;return!g||g.startsWith("video/")?!0:g.startsWith("image/")?l.value?Dn.includes(g):Tn.includes(g):!1});t&&e.watch(t,g=>{o.value=g,s.value=!1});function d(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:r,handleError:d}}function Xe(){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},jn=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(),i=e.ref(!1),r=e.ref(!1),d=e.ref(!1),{src:g,mime:a}=e.toRefs(o),{imgSrc:f,isSupport:c,hasError:m,handleError:M}=We(g,a),{vImageCancel:u}=Xe(),{LoadingComp:E}=Ae({component:Ye,delay:300}),D=Ke(()=>d.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!d.value);function h(){r.value=!0}function w(){r.value&&(d.value=!0)}async function L(){h(),D.value?(l.value?.addEventListener("animationend",k),l.value?.classList.add("showing"),await je(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function k(){l.value?.removeEventListener("animationend",k),l.value?.classList.remove("showing"),l.value&&n("load",l.value),w()}async function U(y){y?L():s.value&&n("load",s.value),i.value=!0}function x(y){y?M():h(),i.value=!0}return(y,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(E),{key:0})),e.unref(c)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,zn)):e.renderSlot(y.$slots,"default",{key:2,src:e.unref(f),onLoad:U,onError:x},()=>[e.unref(D)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},y.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=_=>U()),onError:A[1]||(A[1]=_=>x()),src:t.thumbnail}),null,16,vn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||r.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},y.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:A[2]||(A[2]=_=>U(!0)),onError:A[3]||(A[3]=_=>x(!0)),src:e.unref(f)}),null,16,In)),[[e.unref(u)],[e.vShow,r.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),En],16,wn))],64))}}),Kn="",Ln=Z(jn,[["__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:i,hasError:r,isSupport:d,handleError:g}=We(l,s),{vImageCancel:a}=Xe();return(f,c)=>e.unref(d)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{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(g)&&e.unref(g)(...m)),src:e.unref(i)},null,40,Sn)),[[e.unref(a)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Cn))}}),Gn="",On=Z(_n,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=Ye,I.Image=Ln,I.LONG_PRESS_START_TIME=$e,I.Loading=yn,I.LoadingToast=Ue,I.PageLoading=At,I.PullRefresh=Ve,I.ScrollBar=Gt,I.SvgIcon=se,I.TAP_OFFSET=Le,I.Thumbnail=On,I.ToastCreator=Vt,I.VirtualList=fn,I.allSelectedKey=de,I.clamp=pe,I.closeDialogKey=Qe,I.dialogController=Dt,I.getCenter=Fe,I.getTransform=ye,I.isAllSelectedKey=me,I.isSelectedKey=ue,I.selectAllKey=Me,I.selectKey=fe,I.selectedCountKey=he,I.toggleAllKey=re,I.toggleKey=ce,I.unselectAllKey=le,I.unselectKey=ge,I.useDelayAsync=kt,I.useDelayLoad=Tt,I.useDelayLoadComp=Ae,I.useDownDrag=$t,I.useDragSelect=ze,I.useDragSelectByMobile=mt,I.useDragSelectByPc=gt,I.useScaleImage=Rt,I.useSelectable=ft,I.useSelectableByBase=Mt,I.useSelectableInjectors=dt,I.useVirtualList=Be,I.vDebounceClick=Ze,I.vSingleClick=xe,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .lzc-modal[data-v-14584295]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-14584295]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-1544c8e8],.v-leave-active[data-v-1544c8e8]{transition:opacity .6s ease}.v-enter-from[data-v-1544c8e8],.v-leave-to[data-v-1544c8e8]{opacity:0}img[data-v-1544c8e8]{pointer-events:none}.tip[data-v-1544c8e8]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-1544c8e8]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-1544c8e8]{width:162px;height:134px}.bad-image[data-v-1544c8e8]{width:92px;height:92px}.src-class[data-v-1544c8e8]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-1544c8e8{0%{opacity:0}to{opacity:1}}.showing[data-v-1544c8e8]{animation:fadeIn-1544c8e8 .35s linear}img[data-v-5a7af152]{pointer-events:none}.icon-wrap[data-v-5a7af152]{display:flex;align-items:center;justify-content:center}.icon[data-v-5a7af152]{width:100%;height:100%}
1
+ .lzc-modal[data-v-14584295]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-14584295]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-774cb54a],.v-leave-active[data-v-774cb54a]{transition:opacity .6s ease}.v-enter-from[data-v-774cb54a],.v-leave-to[data-v-774cb54a]{opacity:0}.tip[data-v-774cb54a]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-774cb54a]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-774cb54a]{width:162px;height:134px}.bad-image[data-v-774cb54a]{width:92px;height:92px}.src-class[data-v-774cb54a]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-774cb54a{0%{opacity:0}to{opacity:1}}.showing[data-v-774cb54a]{animation:fadeIn-774cb54a .35s linear}img[data-v-774cb54a]{user-select:none;pointer-events:none}img[data-v-5a7af152]{pointer-events:none}.icon-wrap[data-v-5a7af152]{display:flex;align-items:center;justify-content:center}.icon[data-v-5a7af152]{width:100%;height:100%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.142",
3
+ "version": "0.0.144",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",