@lazycatcloud/lzc-toolkit 0.0.149 → 0.0.151

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
@@ -1,14 +1,14 @@
1
1
  import { shallowRef as ut, watchEffect as It, readonly as rt, getCurrentScope as At, onScopeDispose as zt, onMounted as ie, nextTick as fe, ref as m, watch as G, customRef as Lt, unref as I, isRef as jt, getCurrentInstance as Qe, onUpdated as xt, computed as N, reactive as Te, onUnmounted as ct, inject as te, provide as F, defineComponent as q, h as ae, render as me, openBlock as b, createBlock as Ee, Transition as Ye, withCtx as Be, withDirectives as ve, createElementBlock as U, createElementVNode as O, withModifiers as he, normalizeClass as se, renderSlot as Ie, createCommentVNode as ue, useCssVars as Ue, normalizeProps as _e, guardReactiveProps as Oe, pushScopeId as pe, popScopeId as De, normalizeStyle as K, toDisplayString as Re, vShow as Ae, createVNode as Me, onBeforeUnmount as dt, onActivated as ft, onBeforeMount as Ct, onDeactivated as St, useSlots as _t, toRef as Ot, Fragment as be, mergeProps as ge, renderList as bt, toRefs as vt } from "vue";
2
2
  const kt = {
3
3
  created(e, t) {
4
- let n, o;
4
+ let o, n;
5
5
  function l(a) {
6
- a.button == 0 && (n = a.clientX, o = a.clientY);
6
+ a.button == 0 && (o = a.clientX, n = a.clientY);
7
7
  }
8
8
  function s(a) {
9
- if (a.button != 0 || n === void 0)
9
+ if (a.button != 0 || o === void 0)
10
10
  return;
11
- const d = a.clientX, i = a.clientY, f = Math.abs(d - n), v = Math.abs(i - o);
11
+ const d = a.clientX, i = a.clientY, f = Math.abs(d - o), v = Math.abs(i - n);
12
12
  f > 5 || v > 5 || t.value && t.value(a);
13
13
  }
14
14
  e.__mouse_down__ = l, e.__mouse_up__ = s, e.addEventListener("mousedown", l), e.addEventListener("mouseup", s);
@@ -18,35 +18,35 @@ const kt = {
18
18
  }
19
19
  }, To = {
20
20
  created(e, t) {
21
- const { fn: n, ms: o = 1500 } = t.value;
21
+ const { fn: o, ms: n = 1500 } = t.value;
22
22
  let l = null;
23
23
  function s(a) {
24
- l || (n(a), l = setTimeout(() => {
24
+ l || (o(a), l = setTimeout(() => {
25
25
  l = null;
26
- }, o));
26
+ }, n));
27
27
  }
28
28
  e.addEventListener("click", s);
29
29
  }
30
30
  };
31
31
  function Qt(e, t) {
32
- var n;
33
- const o = ut();
32
+ var o;
33
+ const n = ut();
34
34
  return It(() => {
35
- o.value = e();
35
+ n.value = e();
36
36
  }, {
37
37
  ...t,
38
- flush: (n = t?.flush) != null ? n : "sync"
39
- }), rt(o);
38
+ flush: (o = t?.flush) != null ? o : "sync"
39
+ }), rt(n);
40
40
  }
41
41
  function Yt(e, t) {
42
- let n, o, l;
42
+ let o, n, l;
43
43
  const s = m(!0), a = () => {
44
44
  s.value = !0, l();
45
45
  };
46
46
  G(e, a, { flush: "sync" });
47
- const d = typeof t == "function" ? t : t.get, i = typeof t == "function" ? void 0 : t.set, f = Lt((v, u) => (o = v, l = u, {
47
+ const d = typeof t == "function" ? t : t.get, i = typeof t == "function" ? void 0 : t.set, f = Lt((v, u) => (n = v, l = u, {
48
48
  get() {
49
- return s.value && (n = d(), s.value = !1), o(), n;
49
+ return s.value && (o = d(), s.value = !1), n(), o;
50
50
  },
51
51
  set(M) {
52
52
  i?.(M);
@@ -65,73 +65,73 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
65
65
  const Bt = Object.prototype.toString, Ut = (e) => Bt.call(e) === "[object Object]", re = () => {
66
66
  };
67
67
  function gt(e, t) {
68
- function n(...o) {
68
+ function o(...n) {
69
69
  return new Promise((l, s) => {
70
- Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(l).catch(s);
70
+ Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(l).catch(s);
71
71
  });
72
72
  }
73
- return n;
73
+ return o;
74
74
  }
75
75
  function Rt(e, t = {}) {
76
- let n, o, l = re;
76
+ let o, n, l = re;
77
77
  const s = (d) => {
78
78
  clearTimeout(d), l(), l = re;
79
79
  };
80
80
  return (d) => {
81
81
  const i = J(e), f = J(t.maxWait);
82
- return n && s(n), i <= 0 || f !== void 0 && f <= 0 ? (o && (s(o), o = null), Promise.resolve(d())) : new Promise((v, u) => {
83
- l = t.rejectOnCancel ? u : v, f && !o && (o = setTimeout(() => {
84
- n && s(n), o = null, v(d());
85
- }, f)), n = setTimeout(() => {
86
- o && s(o), o = null, v(d());
82
+ return o && s(o), i <= 0 || f !== void 0 && f <= 0 ? (n && (s(n), n = null), Promise.resolve(d())) : new Promise((v, u) => {
83
+ l = t.rejectOnCancel ? u : v, f && !n && (n = setTimeout(() => {
84
+ o && s(o), n = null, v(d());
85
+ }, f)), o = setTimeout(() => {
86
+ n && s(n), n = null, v(d());
87
87
  }, i);
88
88
  });
89
89
  };
90
90
  }
91
91
  function $t(...e) {
92
- let t = 0, n, o = !0, l = re, s, a, d, i, f;
92
+ let t = 0, o, n = !0, l = re, s, a, d, i, f;
93
93
  !jt(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: d = !0, leading: i = !0, rejectOnCancel: f = !1 } = e[0] : [a, d = !0, i = !0, f = !1] = e;
94
94
  const v = () => {
95
- n && (clearTimeout(n), n = void 0, l(), l = re);
95
+ o && (clearTimeout(o), o = void 0, l(), l = re);
96
96
  };
97
97
  return (M) => {
98
98
  const g = J(a), r = Date.now() - t, T = () => s = M();
99
- return v(), g <= 0 ? (t = Date.now(), T()) : (r > g && (i || !o) ? (t = Date.now(), T()) : d && (s = new Promise((h, c) => {
100
- l = f ? c : h, n = setTimeout(() => {
101
- t = Date.now(), o = !0, h(T()), v();
99
+ return v(), g <= 0 ? (t = Date.now(), T()) : (r > g && (i || !n) ? (t = Date.now(), T()) : d && (s = new Promise((h, c) => {
100
+ l = f ? c : h, o = setTimeout(() => {
101
+ t = Date.now(), n = !0, h(T()), v();
102
102
  }, Math.max(0, g - r));
103
- })), !i && !n && (n = setTimeout(() => o = !0, g)), o = !1, s);
103
+ })), !i && !o && (o = setTimeout(() => n = !0, g)), n = !1, s);
104
104
  };
105
105
  }
106
106
  function Pt(e) {
107
107
  return e || Qe();
108
108
  }
109
- function ze(e, t = 200, n = {}) {
109
+ function ze(e, t = 200, o = {}) {
110
110
  return gt(
111
- Rt(t, n),
111
+ Rt(t, o),
112
112
  e
113
113
  );
114
114
  }
115
- function ke(e, t = 200, n = !1, o = !0, l = !1) {
115
+ function ke(e, t = 200, o = !1, n = !0, l = !1) {
116
116
  return gt(
117
- $t(t, n, o, l),
117
+ $t(t, o, n, l),
118
118
  e
119
119
  );
120
120
  }
121
- function Pe(e, t = !0, n) {
122
- Pt() ? ie(e, n) : t ? e() : fe(e);
121
+ function Pe(e, t = !0, o) {
122
+ Pt() ? ie(e, o) : t ? e() : fe(e);
123
123
  }
124
124
  function le(e) {
125
125
  var t;
126
- const n = J(e);
127
- return (t = n?.$el) != null ? t : n;
126
+ const o = J(e);
127
+ return (t = o?.$el) != null ? t : o;
128
128
  }
129
129
  const Le = Mt ? window : void 0, Ft = Mt ? window.document : void 0;
130
130
  function we(...e) {
131
- let t, n, o, l;
132
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = Le) : [t, n, o, l] = e, !t)
131
+ let t, o, n, l;
132
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, n, l] = e, t = Le) : [t, o, n, l] = e, !t)
133
133
  return re;
134
- Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
134
+ Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
135
135
  const s = [], a = () => {
136
136
  s.forEach((v) => v()), s.length = 0;
137
137
  }, d = (v, u, M, g) => (v.addEventListener(u, M, g), () => v.removeEventListener(u, M, g)), i = G(
@@ -141,7 +141,7 @@ function we(...e) {
141
141
  return;
142
142
  const M = Ut(u) ? { ...u } : u;
143
143
  s.push(
144
- ...n.flatMap((g) => o.map((r) => d(v, g, r, M)))
144
+ ...o.flatMap((g) => n.map((r) => d(v, g, r, M)))
145
145
  );
146
146
  },
147
147
  { immediate: !0, flush: "post" }
@@ -161,21 +161,21 @@ function Wt(e) {
161
161
  return N(() => (t.value, Boolean(e())));
162
162
  }
163
163
  function Xt(e) {
164
- const t = Qe(), n = Yt(
164
+ const t = Qe(), o = Yt(
165
165
  () => null,
166
166
  () => e ? le(e) : t.proxy.$el
167
167
  );
168
- return xt(n.trigger), ie(n.trigger), n;
168
+ return xt(o.trigger), ie(o.trigger), o;
169
169
  }
170
- function ht(e, t, n = {}) {
171
- const { window: o = Le, ...l } = n;
170
+ function ht(e, t, o = {}) {
171
+ const { window: n = Le, ...l } = o;
172
172
  let s;
173
- const a = Wt(() => o && "ResizeObserver" in o), d = () => {
173
+ const a = Wt(() => n && "ResizeObserver" in n), d = () => {
174
174
  s && (s.disconnect(), s = void 0);
175
175
  }, i = N(() => Array.isArray(e) ? e.map((u) => le(u)) : [le(e)]), f = G(
176
176
  i,
177
177
  (u) => {
178
- if (d(), a.value && o) {
178
+ if (d(), a.value && n) {
179
179
  s = new ResizeObserver(t);
180
180
  for (const M of u)
181
181
  M && s.observe(M, l);
@@ -190,18 +190,18 @@ function ht(e, t, n = {}) {
190
190
  stop: v
191
191
  };
192
192
  }
193
- function Zt(e, t = { width: 0, height: 0 }, n = {}) {
194
- const { window: o = Le, box: l = "content-box" } = n, s = N(() => {
193
+ function Zt(e, t = { width: 0, height: 0 }, o = {}) {
194
+ const { window: n = Le, box: l = "content-box" } = o, s = N(() => {
195
195
  var u, M;
196
196
  return (M = (u = le(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : M.includes("svg");
197
197
  }), a = m(t.width), d = m(t.height), { stop: i } = ht(
198
198
  e,
199
199
  ([u]) => {
200
200
  const M = l === "border-box" ? u.borderBoxSize : l === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
201
- if (o && s.value) {
201
+ if (n && s.value) {
202
202
  const g = le(e);
203
203
  if (g) {
204
- const r = o.getComputedStyle(g);
204
+ const r = n.getComputedStyle(g);
205
205
  a.value = Number.parseFloat(r.width), d.value = Number.parseFloat(r.height);
206
206
  }
207
207
  } else if (M) {
@@ -210,7 +210,7 @@ function Zt(e, t = { width: 0, height: 0 }, n = {}) {
210
210
  } else
211
211
  a.value = u.contentRect.width, d.value = u.contentRect.height;
212
212
  },
213
- n
213
+ o
214
214
  );
215
215
  Pe(() => {
216
216
  const u = le(e);
@@ -234,8 +234,8 @@ function Zt(e, t = { width: 0, height: 0 }, n = {}) {
234
234
  const ot = 1;
235
235
  function Vt(e, t = {}) {
236
236
  const {
237
- throttle: n = 0,
238
- idle: o = 200,
237
+ throttle: o = 0,
238
+ idle: n = 200,
239
239
  onStop: l = re,
240
240
  onScroll: s = re,
241
241
  offset: a = {
@@ -291,7 +291,7 @@ function Vt(e, t = {}) {
291
291
  bottom: !1
292
292
  }), x = (p) => {
293
293
  !h.value || (h.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, l(p));
294
- }, W = ze(x, n + o), H = (p) => {
294
+ }, W = ze(x, o + n), H = (p) => {
295
295
  var z;
296
296
  if (!f)
297
297
  return;
@@ -313,7 +313,7 @@ function Vt(e, t = {}) {
313
313
  return we(
314
314
  e,
315
315
  "scroll",
316
- n ? ke(_, n, !0, !1) : _,
316
+ o ? ke(_, o, !0, !1) : _,
317
317
  d
318
318
  ), Pe(() => {
319
319
  try {
@@ -343,8 +343,8 @@ function Vt(e, t = {}) {
343
343
  }
344
344
  let Kt = 0;
345
345
  function Fe(e, t = {}) {
346
- const n = m(!1), {
347
- document: o = Ft,
346
+ const o = m(!1), {
347
+ document: n = Ft,
348
348
  immediate: l = !0,
349
349
  manual: s = !1,
350
350
  id: a = `vueuse_styletag_${++Kt}`
@@ -352,36 +352,36 @@ function Fe(e, t = {}) {
352
352
  let i = () => {
353
353
  };
354
354
  const f = () => {
355
- if (!o)
355
+ if (!n)
356
356
  return;
357
- const u = o.getElementById(a) || o.createElement("style");
358
- u.isConnected || (u.id = a, t.media && (u.media = t.media), o.head.appendChild(u)), !n.value && (i = G(
357
+ const u = n.getElementById(a) || n.createElement("style");
358
+ u.isConnected || (u.id = a, t.media && (u.media = t.media), n.head.appendChild(u)), !o.value && (i = G(
359
359
  d,
360
360
  (M) => {
361
361
  u.textContent = M;
362
362
  },
363
363
  { immediate: !0 }
364
- ), n.value = !0);
364
+ ), o.value = !0);
365
365
  }, v = () => {
366
- !o || !n.value || (i(), o.head.removeChild(o.getElementById(a)), n.value = !1);
366
+ !n || !o.value || (i(), n.head.removeChild(n.getElementById(a)), o.value = !1);
367
367
  };
368
368
  return l && !s && Pe(f), s || $e(v), {
369
369
  id: a,
370
370
  css: d,
371
371
  unload: v,
372
372
  load: f,
373
- isLoaded: rt(n)
373
+ isLoaded: rt(o)
374
374
  };
375
375
  }
376
376
  function Gt(e, t) {
377
- const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = m(null), a = Zt(s), d = m(!0), i = ze(H, 100);
377
+ const { scrollEndHook: o, itemHeight: n, overscan: l = 5 } = t, s = m(null), a = Zt(s), d = m(!0), i = ze(H, 100);
378
378
  let f;
379
379
  const v = ut(e), u = m(0), M = m({ start: 0, end: 10 }), g = m({ start: 0, end: l });
380
380
  let r = 0;
381
381
  const T = m([]), h = N(() => {
382
382
  let { sum: L, height: E } = { sum: 0, height: 0 };
383
- return v.value.map((R, $) => (typeof o == "number" ? E = o : E = o($), L += E, { height: E, sum: L }));
384
- }), c = N(() => D(M.value.start)), y = N(() => typeof o == "number" ? h.value.length * o : h.value[h.value.length - 1]?.sum || 0), x = N(() => {
383
+ return v.value.map((R, $) => (typeof n == "number" ? E = n : E = n($), L += E, { height: E, sum: L }));
384
+ }), c = N(() => D(M.value.start)), y = N(() => typeof n == "number" ? h.value.length * n : h.value[h.value.length - 1]?.sum || 0), x = N(() => {
385
385
  const { start: L, end: E } = g.value;
386
386
  return T.value.slice(L, E);
387
387
  });
@@ -405,7 +405,7 @@ function Gt(e, t) {
405
405
  d.value = !1;
406
406
  }
407
407
  function H() {
408
- d.value = !0, n?.();
408
+ d.value = !0, o?.();
409
409
  }
410
410
  function _() {
411
411
  cancelAnimationFrame(f), f = requestAnimationFrame(p);
@@ -440,8 +440,8 @@ function Gt(e, t) {
440
440
  return E;
441
441
  }
442
442
  function D(L) {
443
- if (typeof o == "number")
444
- return L * o;
443
+ if (typeof n == "number")
444
+ return L * n;
445
445
  let E = h.value[L];
446
446
  return E ? E.sum - E.height : 0;
447
447
  }
@@ -491,14 +491,14 @@ function Gt(e, t) {
491
491
  }
492
492
  const He = Symbol(), We = Symbol(), Xe = Symbol(), Ze = Symbol(), Ve = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), ye = Symbol(), Je = Symbol();
493
493
  function wo() {
494
- const { voidFn: e, boolFn: t, boolRef: n, numberRef: o, arrayRef: l } = {
494
+ const { voidFn: e, boolFn: t, boolRef: o, numberRef: n, arrayRef: l } = {
495
495
  voidFn: (T) => {
496
496
  },
497
497
  boolFn: (T) => !1,
498
498
  boolRef: N(() => !1),
499
499
  numberRef: N(() => 0),
500
500
  arrayRef: N(() => [])
501
- }, s = te(Ze, l), a = te(Xe, t), d = te(qe, n), i = te(We, e), f = te(He, e), v = te(Ve, e), u = te(Ke, e), M = te(Ge, e), g = te(ye, e), r = te(Je, o);
501
+ }, s = te(Ze, l), a = te(Xe, t), d = te(qe, o), i = te(We, e), f = te(He, e), v = te(Ve, e), u = te(Ke, e), M = te(Ge, e), g = te(ye, e), r = te(Je, n);
502
502
  return {
503
503
  selected: s,
504
504
  isSelected: a,
@@ -512,22 +512,22 @@ function wo() {
512
512
  selectedCount: r
513
513
  };
514
514
  }
515
- function No(e, t, n = { deep: !0 }) {
516
- const o = m(!1), l = m(/* @__PURE__ */ new Set()), s = m(/* @__PURE__ */ new Map());
515
+ function No(e, t, o = { deep: !0 }) {
516
+ const n = m(!1), l = m(/* @__PURE__ */ new Set()), s = m(/* @__PURE__ */ new Map());
517
517
  G(
518
518
  e,
519
519
  (c) => {
520
520
  s.value = c.reduce((y, x) => (y.set(x[t], x), y), /* @__PURE__ */ new Map());
521
521
  },
522
522
  {
523
- deep: n.deep,
523
+ deep: o.deep,
524
524
  immediate: !0
525
525
  }
526
526
  );
527
527
  const a = N(() => {
528
528
  let c = [];
529
- if (o.value != null)
530
- o.value && (c = Array.from(s.value.values()));
529
+ if (n.value != null)
530
+ n.value && (c = Array.from(s.value.values()));
531
531
  else if (l.value.size) {
532
532
  let y;
533
533
  l.value.forEach((x) => {
@@ -537,11 +537,11 @@ function No(e, t, n = { deep: !0 }) {
537
537
  return c;
538
538
  }), d = N(() => {
539
539
  let c = 0;
540
- return o.value != null ? o.value && (c = s.value.size) : c = l.value.size, c;
540
+ return n.value != null ? n.value && (c = s.value.size) : c = l.value.size, c;
541
541
  }), i = N(() => {
542
542
  let c;
543
- if (o.value != null)
544
- c = o.value;
543
+ if (n.value != null)
544
+ c = n.value;
545
545
  else {
546
546
  const y = l.value.size, x = s.value.size;
547
547
  c = y == x;
@@ -549,10 +549,10 @@ function No(e, t, n = { deep: !0 }) {
549
549
  return c;
550
550
  });
551
551
  function f() {
552
- o.value = !0;
552
+ n.value = !0;
553
553
  }
554
554
  function v() {
555
- o.value = !1;
555
+ n.value = !1;
556
556
  }
557
557
  function u(c) {
558
558
  r(() => {
@@ -569,10 +569,10 @@ function No(e, t, n = { deep: !0 }) {
569
569
  });
570
570
  }
571
571
  function g(c) {
572
- return o.value != null ? o.value : l.value.has(c[t]);
572
+ return n.value != null ? n.value : l.value.has(c[t]);
573
573
  }
574
574
  function r(c) {
575
- o.value != null && (o.value ? l.value = new Set(Array.from(s.value.keys())) : l.value = /* @__PURE__ */ new Set()), c(), l.value.size == 0 ? o.value = !1 : l.value.size == s.value.size ? o.value = !0 : o.value = null;
575
+ n.value != null && (n.value ? l.value = new Set(Array.from(s.value.keys())) : l.value = /* @__PURE__ */ new Set()), c(), l.value.size == 0 ? n.value = !1 : l.value.size == s.value.size ? n.value = !0 : n.value = null;
576
576
  }
577
577
  function T(c) {
578
578
  r(() => {
@@ -599,18 +599,18 @@ function No(e, t, n = { deep: !0 }) {
599
599
  };
600
600
  }
601
601
  function Eo(e) {
602
- const t = m(!1), n = m(/* @__PURE__ */ new Set()), o = N(() => {
602
+ const t = m(!1), o = m(/* @__PURE__ */ new Set()), n = N(() => {
603
603
  let r = [];
604
- return t.value != null ? t.value && (r = e.value) : n.value.size && (r = Array.from(n.value.values())), r;
604
+ return t.value != null ? t.value && (r = e.value) : o.value.size && (r = Array.from(o.value.values())), r;
605
605
  }), l = N(() => {
606
606
  let r = 0;
607
- return t.value != null ? t.value && (r = e.value.length) : r = n.value.size, r;
607
+ return t.value != null ? t.value && (r = e.value.length) : r = o.value.size, r;
608
608
  }), s = N(() => {
609
609
  let r;
610
610
  if (t.value != null)
611
611
  r = t.value;
612
612
  else {
613
- const T = n.value.size, h = e.value.length;
613
+ const T = o.value.size, h = e.value.length;
614
614
  r = T == h;
615
615
  }
616
616
  return r;
@@ -624,27 +624,27 @@ function Eo(e) {
624
624
  function i(r) {
625
625
  u(() => {
626
626
  r.forEach((T) => {
627
- n.value.add(T);
627
+ o.value.add(T);
628
628
  });
629
629
  });
630
630
  }
631
631
  function f(r) {
632
632
  u(() => {
633
633
  r.forEach((T) => {
634
- n.value.delete(T);
634
+ o.value.delete(T);
635
635
  });
636
636
  });
637
637
  }
638
638
  function v(r) {
639
- return t.value != null ? t.value : n.value.has(r);
639
+ return t.value != null ? t.value : o.value.has(r);
640
640
  }
641
641
  function u(r) {
642
- t.value != null && (t.value ? n.value = new Set(Array.from(e.value)) : n.value = /* @__PURE__ */ new Set()), r(), n.value.size == 0 ? t.value = !1 : n.value.size == e.value.length ? t.value = !0 : t.value = null;
642
+ t.value != null && (t.value ? o.value = new Set(Array.from(e.value)) : o.value = /* @__PURE__ */ new Set()), r(), o.value.size == 0 ? t.value = !1 : o.value.size == e.value.length ? t.value = !0 : t.value = null;
643
643
  }
644
644
  function M(r) {
645
645
  u(() => {
646
646
  r.forEach((T) => {
647
- v(T) ? n.value.delete(T) : n.value.add(T);
647
+ v(T) ? o.value.delete(T) : o.value.add(T);
648
648
  });
649
649
  });
650
650
  }
@@ -652,8 +652,8 @@ function Eo(e) {
652
652
  const { value: r } = s;
653
653
  r ? d() : a();
654
654
  }
655
- return F(He, g), F(We, M), F(Xe, v), F(Ze, o), F(Ve, i), F(Ke, a), F(Ge, f), F(qe, s), F(ye, d), F(ye, d), F(Je, l), {
656
- selected: o,
655
+ return F(He, g), F(We, M), F(Xe, v), F(Ze, n), F(Ve, i), F(Ke, a), F(Ge, f), F(qe, s), F(ye, d), F(ye, d), F(Je, l), {
656
+ selected: n,
657
657
  select: i,
658
658
  selectAll: a,
659
659
  unselect: f,
@@ -673,14 +673,14 @@ function xe(e) {
673
673
  function mt({
674
674
  attribute: e,
675
675
  selectWay: t = "colum",
676
- scrollOptions: n = {},
677
- getSelectMap: o = () => ({})
676
+ scrollOptions: o = {},
677
+ getSelectMap: n = () => ({})
678
678
  }) {
679
679
  const {
680
680
  select: l = xe("\u9009\u62E9"),
681
681
  unselect: s = xe("\u53D6\u6D88\u9009\u62E9"),
682
682
  unselectAll: a = xe("\u53D6\u6D88\u5168\u9009")
683
- } = o();
683
+ } = n();
684
684
  let d = {};
685
685
  const i = N(
686
686
  () => ke(t === "colum" ? ce : wt, 50)
@@ -697,7 +697,7 @@ function mt({
697
697
  top: Math.min(g.value.y, r.value.y) - h.value.top,
698
698
  width: Math.abs(g.value.x - r.value.x),
699
699
  height: Math.abs(g.value.y - r.value.y)
700
- } : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed: H = 30 } = n;
700
+ } : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed: H = 30 } = o;
701
701
  let _;
702
702
  const p = x, z = W, Q = H, D = (j) => j ** 1;
703
703
  let w = 0;
@@ -808,17 +808,17 @@ function mt({
808
808
  };
809
809
  }
810
810
  function Io(e) {
811
- const t = mt(e), { observer: n, selectRange: o } = t, {
811
+ const t = mt(e), { observer: o, selectRange: n } = t, {
812
812
  onScroll: l,
813
813
  dragStart: s,
814
814
  dragMove: a,
815
815
  dragEnd: d,
816
816
  cancelSelectAllBySingleClick: i
817
817
  } = t, f = N(() => ({
818
- left: `${o.value.left}px`,
819
- top: `${o.value.top}px`,
820
- width: `${o.value.width}px`,
821
- height: `${o.value.height}px`
818
+ left: `${n.value.left}px`,
819
+ top: `${n.value.top}px`,
820
+ width: `${n.value.width}px`,
821
+ height: `${n.value.height}px`
822
822
  })), { load: v } = Fe(
823
823
  `.drag-select-box {
824
824
  position: absolute;
@@ -857,19 +857,19 @@ function Io(e) {
857
857
  }
858
858
  }
859
859
  function h() {
860
- n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", M), window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", r);
860
+ o.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", M), window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", r);
861
861
  }
862
862
  return { init: T, unMount: h };
863
863
  }
864
- function Ao(e, t, n = 600) {
865
- const o = mt({
864
+ function Ao(e, t, o = 600) {
865
+ const n = mt({
866
866
  ...e,
867
867
  selectWay: "row",
868
868
  scrollOptions: {
869
869
  startSpeed: 5,
870
870
  maxSpeed: 5
871
871
  }
872
- }), { observer: l } = o, { onScroll: s, dragStart: a, dragMove: d, dragEnd: i } = o;
872
+ }), { observer: l } = n, { onScroll: s, dragStart: a, dragMove: d, dragEnd: i } = n;
873
873
  let f;
874
874
  function v() {
875
875
  clearTimeout(f);
@@ -878,7 +878,7 @@ function Ao(e, t, n = 600) {
878
878
  v(), h.composedPath().some((y) => !!y?.getAttribute?.(e.attribute)) && (f = setTimeout(() => {
879
879
  const { clientX: y, clientY: x } = h.targetTouches[0];
880
880
  a(y, x), t?.(), d(y, x, () => h.preventDefault()), h.preventDefault();
881
- }, n));
881
+ }, o));
882
882
  }
883
883
  function M(h) {
884
884
  v();
@@ -890,17 +890,17 @@ function Ao(e, t, n = 600) {
890
890
  }
891
891
  function r(h) {
892
892
  try {
893
- if (!o.init(h))
893
+ if (!n.init(h))
894
894
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
895
- if (!o.containerEl?.value)
895
+ if (!n.containerEl?.value)
896
896
  return !1;
897
- o.containerEl.value?.addEventListener("scroll", s), o.containerEl.value?.addEventListener("touchstart", u), o.containerEl.value?.addEventListener("touchmove", M), window.addEventListener("touchcancel", g), window.addEventListener("touchend", g);
897
+ n.containerEl.value?.addEventListener("scroll", s), n.containerEl.value?.addEventListener("touchstart", u), n.containerEl.value?.addEventListener("touchmove", M), window.addEventListener("touchcancel", g), window.addEventListener("touchend", g);
898
898
  } catch (c) {
899
899
  console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", c);
900
900
  }
901
901
  }
902
902
  function T() {
903
- l.disconnect(), o.containerEl.value?.removeEventListener("scroll", s), o.containerEl.value?.removeEventListener("touchstart", u), o.containerEl.value?.removeEventListener("touchmove", M), window.removeEventListener("touchcancel", g), window.removeEventListener("touchEnd", g);
903
+ l.disconnect(), n.containerEl.value?.removeEventListener("scroll", s), n.containerEl.value?.removeEventListener("touchstart", u), n.containerEl.value?.removeEventListener("touchmove", M), window.removeEventListener("touchcancel", g), window.removeEventListener("touchEnd", g);
904
904
  }
905
905
  return { init: r, unMount: T };
906
906
  }
@@ -916,8 +916,8 @@ const qt = Symbol(), Jt = {
916
916
  },
917
917
  emits: ["update:visiable"],
918
918
  setup(e, { emit: t }) {
919
- const n = e, o = () => {
920
- n.closeOnClickOverlay && t("update:visiable", !1);
919
+ const o = e, n = () => {
920
+ o.closeOnClickOverlay && t("update:visiable", !1);
921
921
  };
922
922
  return F(qt, () => t("update:visiable", !1)), (l, s) => (b(), Ee(Ye, { name: "modal" }, {
923
923
  default: Be(() => [
@@ -930,7 +930,7 @@ const qt = Symbol(), Jt = {
930
930
  Ie(l.$slots, "default", {}, void 0, !0)
931
931
  ], 34)
932
932
  ])), [
933
- [I(kt), () => o()]
933
+ [I(kt), () => n()]
934
934
  ]) : ue("", !0)
935
935
  ]),
936
936
  _: 3
@@ -938,13 +938,13 @@ const qt = Symbol(), Jt = {
938
938
  }
939
939
  });
940
940
  const ee = (e, t) => {
941
- const n = e.__vccOpts || e;
942
- for (const [o, l] of t)
943
- n[o] = l;
944
- return n;
941
+ const o = e.__vccOpts || e;
942
+ for (const [n, l] of t)
943
+ o[n] = l;
944
+ return o;
945
945
  }, tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-14584295"]]);
946
946
  function zo(e) {
947
- function t(n, o) {
947
+ function t(o, n) {
948
948
  const l = document.createElement("div"), s = {
949
949
  setup() {
950
950
  return () => ae(
@@ -957,7 +957,7 @@ function zo(e) {
957
957
  ...e
958
958
  },
959
959
  {
960
- default: () => ae(n, o)
960
+ default: () => ae(o, n)
961
961
  }
962
962
  );
963
963
  }
@@ -973,9 +973,9 @@ function zo(e) {
973
973
  function yt({
974
974
  component: e,
975
975
  componentProps: t,
976
- delay: n = 300
976
+ delay: o = 300
977
977
  }) {
978
- const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${n}ms`;
978
+ const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${o}ms`;
979
979
  return Fe(
980
980
  `@keyframes lzcDelayLoad {
981
981
  to {
@@ -998,12 +998,12 @@ function yt({
998
998
  function Lo({
999
999
  component: e,
1000
1000
  componentProps: t,
1001
- delay: n = 300
1001
+ delay: o = 300
1002
1002
  }) {
1003
- const { LoadingComp: o } = yt({
1003
+ const { LoadingComp: n } = yt({
1004
1004
  component: e,
1005
1005
  componentProps: t,
1006
- delay: n
1006
+ delay: o
1007
1007
  }), l = m(!1);
1008
1008
  function s() {
1009
1009
  l.value = !0;
@@ -1011,7 +1011,7 @@ function Lo({
1011
1011
  function a() {
1012
1012
  l.value = !1;
1013
1013
  }
1014
- return { LoadingComp: o, loading: l, load: s, unload: a };
1014
+ return { LoadingComp: n, loading: l, load: s, unload: a };
1015
1015
  }
1016
1016
  const nn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), on = /* @__PURE__ */ nn(() => /* @__PURE__ */ O("div", { class: "ldio-mm5gwljcryb" }, [
1017
1017
  /* @__PURE__ */ O("div")
@@ -1027,7 +1027,7 @@ const nn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), on = /* @__PURE__ *
1027
1027
  return Ue((t) => ({
1028
1028
  "4e4a9ce4": e.width + "px",
1029
1029
  e56fe5c2: e.height + "px"
1030
- })), (t, n) => (b(), U("div", _e(Oe(t.$attrs)), ln, 16));
1030
+ })), (t, o) => (b(), U("div", _e(Oe(t.$attrs)), ln, 16));
1031
1031
  }
1032
1032
  });
1033
1033
  const an = /* @__PURE__ */ ee(sn, [["__scopeId", "data-v-92a1804d"]]), un = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC", rn = { class: "loading-wrap" }, cn = ["src"], dn = /* @__PURE__ */ q({
@@ -1038,18 +1038,18 @@ const an = /* @__PURE__ */ ee(sn, [["__scopeId", "data-v-92a1804d"]]), un = "dat
1038
1038
  },
1039
1039
  setup(e) {
1040
1040
  const t = e;
1041
- Ue((o) => ({
1041
+ Ue((n) => ({
1042
1042
  b1cf73a8: e.delay
1043
1043
  }));
1044
- const n = N(() => {
1045
- const o = {};
1046
- return t.size === "mini" ? (o.width = "22px", o.height = "22px") : t.size === "large" && (o.width = "28px", o.height = "28px"), o;
1044
+ const o = N(() => {
1045
+ const n = {};
1046
+ return t.size === "mini" ? (n.width = "22px", n.height = "22px") : t.size === "large" && (n.width = "28px", n.height = "28px"), n;
1047
1047
  });
1048
- return (o, l) => (b(), U("div", rn, [
1048
+ return (n, l) => (b(), U("div", rn, [
1049
1049
  O("img", {
1050
1050
  class: "loading-circle",
1051
1051
  src: I(un),
1052
- style: K(I(n))
1052
+ style: K(I(o))
1053
1053
  }, null, 12, cn)
1054
1054
  ]));
1055
1055
  }
@@ -1077,26 +1077,26 @@ const fn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
1077
1077
  },
1078
1078
  emits: ["close"],
1079
1079
  setup(e, { emit: t }) {
1080
- const n = e, o = "lzc-loading-toast", l = N(() => {
1080
+ const o = e, n = "lzc-loading-toast", l = N(() => {
1081
1081
  let f = {};
1082
- return n.captureEventP && (f.pointerEvents = "none"), f;
1082
+ return o.captureEventP && (f.pointerEvents = "none"), f;
1083
1083
  }), s = N(() => {
1084
1084
  let f = {
1085
1085
  padding: "12px"
1086
1086
  };
1087
- return (n.icon || n.showIcon) && (f.padding = "20px"), n.width && (f.width = n.width), n.maxWidth && (f.maxWidth = n.maxWidth), n.overlayContentStyle && (f = {
1087
+ return (o.icon || o.showIcon) && (f.padding = "20px"), o.width && (f.width = o.width), o.maxWidth && (f.maxWidth = o.maxWidth), o.overlayContentStyle && (f = {
1088
1088
  ...f,
1089
- ...n.overlayContentStyle
1089
+ ...o.overlayContentStyle
1090
1090
  }), f;
1091
1091
  }), a = N(() => {
1092
1092
  let f = {};
1093
- return n.showClose && !n.icon && (f.paddingRight = "16px"), f;
1093
+ return o.showClose && !o.icon && (f.paddingRight = "16px"), f;
1094
1094
  });
1095
1095
  function d() {
1096
- n.closeOnClickOverlay && t("close");
1096
+ o.closeOnClickOverlay && t("close");
1097
1097
  }
1098
1098
  function i() {
1099
- n.closeOnClick && t("close");
1099
+ o.closeOnClick && t("close");
1100
1100
  }
1101
1101
  return (f, v) => (b(), Ee(Ye, {
1102
1102
  "enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
@@ -1104,35 +1104,35 @@ const fn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
1104
1104
  }, {
1105
1105
  default: Be(() => [
1106
1106
  O("div", {
1107
- id: o,
1107
+ id: n,
1108
1108
  style: K(I(l))
1109
1109
  }, [
1110
1110
  ve(O("div", {
1111
- class: se(`${o} ${e.className}`),
1111
+ class: se(`${n} ${e.className}`),
1112
1112
  onClick: he(d, ["stop"])
1113
1113
  }, [
1114
1114
  O("div", {
1115
- class: se(`${o}-wrap`),
1115
+ class: se(`${n}-wrap`),
1116
1116
  onClick: he(i, ["stop"])
1117
1117
  }, [
1118
1118
  O("div", {
1119
- class: se(`${o}-content`),
1119
+ class: se(`${n}-content`),
1120
1120
  style: K(I(s))
1121
1121
  }, [
1122
1122
  e.showClose ? (b(), U("img", {
1123
1123
  key: 0,
1124
1124
  onClick: v[0] || (v[0] = he((u) => t("close"), ["stop"])),
1125
1125
  src: I(fn),
1126
- class: se(`${o}-close`)
1126
+ class: se(`${n}-close`)
1127
1127
  }, null, 10, hn)) : ue("", !0),
1128
1128
  e.showIcon ? (b(), U("img", {
1129
1129
  key: 1,
1130
1130
  src: e.icon || I(vn),
1131
- class: se(`${o}-icon`)
1131
+ class: se(`${n}-icon`)
1132
1132
  }, null, 10, mn)) : ue("", !0),
1133
1133
  e.message ? (b(), U("div", {
1134
1134
  key: 2,
1135
- class: se(`${o}-message`),
1135
+ class: se(`${n}-message`),
1136
1136
  style: K(I(a))
1137
1137
  }, Re(e.message), 7)) : ue("", !0)
1138
1138
  ], 6)
@@ -1157,9 +1157,9 @@ class Dn {
1157
1157
  this.options = { ...t, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast = pn;
1158
1158
  }
1159
1159
  async show() {
1160
- const t = this.options, o = { ...t, onClose: () => {
1160
+ const t = this.options, n = { ...t, onClose: () => {
1161
1161
  this.close(), t?.onClose?.();
1162
- } }, l = Me(this.loadingToast, o);
1162
+ } }, l = Me(this.loadingToast, n);
1163
1163
  me(l, this.el), document.body.insertBefore(this.el, document.body.firstChild), this.visible.value = !0, t.duration !== 0 && setTimeout(() => {
1164
1164
  this.destory();
1165
1165
  }, t.duration), await et(t.duration + this.animateDuration);
@@ -1180,12 +1180,12 @@ class Dn {
1180
1180
  }
1181
1181
  }
1182
1182
  function xo(e, t) {
1183
- const n = !!t?.debug, o = t?.printErrorLog !== !1, l = t?.loading !== !1, s = t?.autoClose !== !1, a = t?.delay != null ? t.delay : 300, d = {
1183
+ const o = !!t?.debug, n = t?.printErrorLog !== !1, l = t?.loading !== !1, s = t?.autoClose !== !1, a = t?.delay != null ? t.delay : 300, d = {
1184
1184
  ...t,
1185
1185
  showIcon: t?.showIcon !== !1,
1186
1186
  captureEventP: t?.captureEventP === !0
1187
1187
  };
1188
- n && console.log(
1188
+ o && console.log(
1189
1189
  "useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",
1190
1190
  l,
1191
1191
  s,
@@ -1196,28 +1196,28 @@ function xo(e, t) {
1196
1196
  let f = null;
1197
1197
  const v = new Dn(d);
1198
1198
  async function u(...g) {
1199
- if (n && console.log(`useDelayAsync - handler - processing: ${i.value}`), !i.value) {
1199
+ if (o && console.log(`useDelayAsync - handler - processing: ${i.value}`), !i.value) {
1200
1200
  i.value = !0, f = setTimeout(() => {
1201
- n && console.log(
1201
+ o && console.log(
1202
1202
  "useDelayAsync - handler - setTimeout - loading: %s processing: %s",
1203
1203
  l,
1204
1204
  i.value
1205
1205
  ), l && (!i.value || v.show());
1206
1206
  }, a);
1207
1207
  try {
1208
- n && console.time("useDelayAsync - handler-execute-time");
1208
+ o && console.time("useDelayAsync - handler-execute-time");
1209
1209
  const r = await e(...g);
1210
- n && console.log("useDelayAsync - execute res: ", r), n && console.timeEnd("useDelayAsync - handler-execute-time"), await M(s), await t?.onSuccess?.(r);
1210
+ o && console.log("useDelayAsync - execute res: ", r), o && console.timeEnd("useDelayAsync - handler-execute-time"), await M(s), await t?.onSuccess?.(r);
1211
1211
  } catch (r) {
1212
- n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(r), await M(s), await t?.onError?.(r);
1212
+ o && console.timeEnd("useDelayAsync - handler-execute-time"), n && console.error(r), await M(s), await t?.onError?.(r);
1213
1213
  }
1214
1214
  }
1215
1215
  }
1216
1216
  async function M(g = !0) {
1217
- n && console.log("useDelayAsync - close - closeLoading: ", g), i.value = !1, f && clearTimeout(f), f = null, g && await v.destory();
1217
+ o && console.log("useDelayAsync - close - closeLoading: ", g), i.value = !1, f && clearTimeout(f), f = null, g && await v.destory();
1218
1218
  }
1219
1219
  return dt(() => {
1220
- n && console.log("useDelayAsync - onBeforeUnmount - close"), M();
1220
+ o && console.log("useDelayAsync - onBeforeUnmount - close"), M();
1221
1221
  }), {
1222
1222
  processing: i,
1223
1223
  handler: u,
@@ -1228,14 +1228,14 @@ function Tn(e, t) {
1228
1228
  return e > t ? "horizontal" : t > e ? "vertical" : "";
1229
1229
  }
1230
1230
  function wn() {
1231
- const e = m(0), t = m(0), n = m(0), o = m(0), l = m(0), s = m(0), a = m(""), d = () => a.value === "vertical", i = () => a.value === "horizontal", f = () => {
1232
- n.value = 0, o.value = 0, l.value = 0, s.value = 0, a.value = "";
1231
+ const e = m(0), t = m(0), o = m(0), n = m(0), l = m(0), s = m(0), a = m(""), d = () => a.value === "vertical", i = () => a.value === "horizontal", f = () => {
1232
+ o.value = 0, n.value = 0, l.value = 0, s.value = 0, a.value = "";
1233
1233
  };
1234
1234
  function v(M, g) {
1235
1235
  f(), e.value = M, t.value = g;
1236
1236
  }
1237
1237
  function u(M, g) {
1238
- n.value = (M < 0 ? 0 : M) - e.value, o.value = g - t.value, l.value = Math.abs(n.value), s.value = Math.abs(o.value);
1238
+ o.value = (M < 0 ? 0 : M) - e.value, n.value = g - t.value, l.value = Math.abs(o.value), s.value = Math.abs(n.value);
1239
1239
  const r = 10;
1240
1240
  (!a.value || l.value < r && s.value < r) && (a.value = Tn(l.value, s.value));
1241
1241
  }
@@ -1245,8 +1245,8 @@ function wn() {
1245
1245
  reset: f,
1246
1246
  startX: e,
1247
1247
  startY: t,
1248
- deltaX: n,
1249
- deltaY: o,
1248
+ deltaX: o,
1249
+ deltaY: n,
1250
1250
  offsetX: l,
1251
1251
  offsetY: s,
1252
1252
  direction: a,
@@ -1257,32 +1257,32 @@ function wn() {
1257
1257
  const lt = 250, st = 5, Nn = 500;
1258
1258
  function En(e) {
1259
1259
  const { isDouble: t = !0 } = e;
1260
- let n, o;
1260
+ let o, n;
1261
1261
  function l() {
1262
- n = Date.now();
1262
+ o = Date.now();
1263
1263
  }
1264
1264
  async function s(a, d) {
1265
- const i = Date.now() - n;
1266
- a < st && d < st && (i < lt ? t ? o ? (clearTimeout(o), o = null, e.onDoubleTap?.()) : o = setTimeout(async () => {
1267
- e.onTap?.(), o = null;
1265
+ const i = Date.now() - o;
1266
+ a < st && d < st && (i < lt ? t ? n ? (clearTimeout(n), n = null, e.onDoubleTap?.()) : n = setTimeout(async () => {
1267
+ e.onTap?.(), n = null;
1268
1268
  }, lt) : e.onTap?.() : i > Nn && e.onLongPress?.());
1269
1269
  }
1270
1270
  return { startTap: l, checkTap: s };
1271
1271
  }
1272
1272
  function In(e, t) {
1273
- const n = m(!1);
1274
- function o() {
1275
- n.value || (n.value = !0, I(e)?.addEventListener("transitionend", l));
1273
+ const o = m(!1);
1274
+ function n() {
1275
+ o.value || (o.value = !0, I(e)?.addEventListener("transitionend", l));
1276
1276
  }
1277
1277
  function l() {
1278
- I(e)?.removeEventListener("transitionend", l), n.value = !1, t.onComplate?.();
1278
+ I(e)?.removeEventListener("transitionend", l), o.value = !1, t.onComplate?.();
1279
1279
  }
1280
- return { transitioning: n, startTransition: o };
1280
+ return { transitioning: o, startTransition: n };
1281
1281
  }
1282
- function An(e, t, n, o) {
1282
+ function An(e, t, o, n) {
1283
1283
  var l = Math.min(
1284
- n / e,
1285
- o / t
1284
+ o / e,
1285
+ n / t
1286
1286
  ), s = e * l, a = t * l;
1287
1287
  return {
1288
1288
  width: oe(s),
@@ -1292,14 +1292,14 @@ function An(e, t, n, o) {
1292
1292
  function zn(e) {
1293
1293
  return e < 3 ? "444ms" : e < 6 ? "555ms" : "666ms";
1294
1294
  }
1295
- function Ce(e, t, n) {
1296
- return Math.min(Math.max(e, t), n);
1295
+ function Ce(e, t, o) {
1296
+ return Math.min(Math.max(e, t), o);
1297
1297
  }
1298
1298
  function oe(e, t = 2) {
1299
1299
  return parseFloat(e.toFixed(t));
1300
1300
  }
1301
- function Se(e, t, n) {
1302
- return e = oe(e), t = oe(t), `translate3d(${e}px, ${t}px, 0) scale3d(${n},${n},${n})`;
1301
+ function Se(e, t, o) {
1302
+ return e = oe(e), t = oe(t), `translate3d(${e}px, ${t}px, 0) scale3d(${o},${o},${o})`;
1303
1303
  }
1304
1304
  function at(e) {
1305
1305
  return Math.sqrt(
@@ -1313,7 +1313,7 @@ function Ln(e) {
1313
1313
  };
1314
1314
  }
1315
1315
  function pt(e) {
1316
- const { disableZoom: t } = e, n = m(1), o = m(9), l = m(), s = m(), a = m({ width: 0, height: 0 }), d = m({ width: 0, height: 0 }), i = Te({
1316
+ const { disableZoom: t } = e, o = m(1), n = m(9), l = m(), s = m(), a = m({ width: 0, height: 0 }), d = m({ width: 0, height: 0 }), i = Te({
1317
1317
  level: 1,
1318
1318
  offsetX: 0,
1319
1319
  offsetY: 0,
@@ -1376,8 +1376,8 @@ function pt(e) {
1376
1376
  async function c(D, w, A) {
1377
1377
  if (t || (D = oe(D), D = Ce(
1378
1378
  D,
1379
- n.value - n.value * 0.5,
1380
- o.value + o.value * 0.5
1379
+ o.value - o.value * 0.5,
1380
+ n.value + n.value * 0.5
1381
1381
  ), D == i.level))
1382
1382
  return;
1383
1383
  i.preview && await T(), w || (w = { x: v.startX.value, y: v.startY.value });
@@ -1404,7 +1404,7 @@ function pt(e) {
1404
1404
  });
1405
1405
  }
1406
1406
  async function W() {
1407
- i.level >= n.value && i.level <= o.value ? i.zooming && await h() : i.level < n.value ? await c(n.value, void 0, !0) : i.level > o.value && await c(o.value, i.lastCenter, !0), i.zooming = !1;
1407
+ i.level >= o.value && i.level <= n.value ? i.zooming && await h() : i.level < o.value ? await c(o.value, void 0, !0) : i.level > n.value && await c(n.value, i.lastCenter, !0), i.zooming = !1;
1408
1408
  }
1409
1409
  function H() {
1410
1410
  const { width: D, height: w } = a.value, { width: A, height: k } = d.value, Y = 2.5;
@@ -1443,7 +1443,7 @@ function pt(e) {
1443
1443
  }
1444
1444
  function Q() {
1445
1445
  const D = H();
1446
- o.value = Math.max(o.value, D * 2);
1446
+ n.value = Math.max(n.value, D * 2);
1447
1447
  }
1448
1448
  return {
1449
1449
  touch: v,
@@ -1467,7 +1467,7 @@ function Co(e) {
1467
1467
  t.toggleZoom();
1468
1468
  },
1469
1469
  ...e
1470
- }), { state: n, touch: o, gesture: l, transition: s } = t;
1470
+ }), { state: o, touch: n, gesture: l, transition: s } = t;
1471
1471
  let a = !1, d = null;
1472
1472
  const i = { top: 0, left: 0 }, f = ze(r, 150);
1473
1473
  we("keyup", h), we("keydown", T);
@@ -1476,25 +1476,25 @@ function Co(e) {
1476
1476
  if (!y)
1477
1477
  return;
1478
1478
  const { left: x, top: W } = y.getBoundingClientRect();
1479
- l.startTap(), o.start(c.clientX - x, c.clientY - W), s.transitioning.value || (a = !0, i.left = x, i.top = W, n.offsetX = y.scrollLeft, n.offsetY = y.scrollTop), window.addEventListener("pointermove", u), window.addEventListener("pointerup", M);
1479
+ l.startTap(), n.start(c.clientX - x, c.clientY - W), s.transitioning.value || (a = !0, i.left = x, i.top = W, o.offsetX = y.scrollLeft, o.offsetY = y.scrollTop), window.addEventListener("pointermove", u), window.addEventListener("pointerup", M);
1480
1480
  }
1481
1481
  function u(c) {
1482
- !a || (o.move(c.clientX, c.clientY), n.level !== 1 && t.panTo(
1483
- o.deltaX.value - i.left,
1484
- o.deltaY.value - i.top
1482
+ !a || (n.move(c.clientX, c.clientY), o.level !== 1 && t.panTo(
1483
+ n.deltaX.value - i.left,
1484
+ n.deltaY.value - i.top
1485
1485
  ));
1486
1486
  }
1487
1487
  function M(c) {
1488
- l.checkTap(o.offsetX.value, o.offsetY.value), o.reset(), a = !1, window.removeEventListener("pointermove", u), window.removeEventListener("pointerup", M);
1488
+ l.checkTap(n.offsetX.value, n.offsetY.value), n.reset(), a = !1, window.removeEventListener("pointermove", u), window.removeEventListener("pointerup", M);
1489
1489
  }
1490
1490
  function g(c) {
1491
1491
  if (!c.ctrlKey)
1492
1492
  return;
1493
- n.zooming || (n.zooming = !0, d == "Control" && window.addEventListener("keyup", r)), c.preventDefault();
1493
+ o.zooming || (o.zooming = !0, d == "Control" && window.addEventListener("keyup", r)), c.preventDefault();
1494
1494
  let y = -c.deltaY;
1495
1495
  c.deltaMode === 1 ? y *= 0.05 : y *= c.deltaMode ? 1 : 2e-3, d != "Control" && (y *= 10), y = 2 ** y;
1496
- const x = n.level * y;
1497
- n.lastCenter = { x: c.offsetX, y: c.offsetY }, t.zoomTo(x, n.lastCenter), d != "Control" && f();
1496
+ const x = o.level * y;
1497
+ o.lastCenter = { x: c.offsetX, y: c.offsetY }, t.zoomTo(x, o.lastCenter), d != "Control" && f();
1498
1498
  }
1499
1499
  function r() {
1500
1500
  t.zoomFinished(), window.removeEventListener("keyup", r);
@@ -1513,22 +1513,22 @@ function So(e) {
1513
1513
  t.toggleZoom();
1514
1514
  },
1515
1515
  ...e
1516
- }), { state: n, touch: o, gesture: l, transition: s, containerRef: a } = t, d = Vt(a);
1516
+ }), { state: o, touch: n, gesture: l, transition: s, containerRef: a } = t, d = Vt(a);
1517
1517
  let i, f, v, u;
1518
1518
  async function M(h) {
1519
1519
  const { touches: c } = h;
1520
- i = c.length, n.zooming = i === 2, l.startTap(), o.start(c[0].clientX, c[0].clientY), T("start", h), n.zooming && (h.preventDefault(), f = n.level, v = at(c), await t.switchToZoom(), n.lastCenter = Ln(c));
1520
+ i = c.length, o.zooming = i === 2, l.startTap(), n.start(c[0].clientX, c[0].clientY), T("start", h), o.zooming && (h.preventDefault(), f = o.level, v = at(c), await t.switchToZoom(), o.lastCenter = Ln(c));
1521
1521
  }
1522
1522
  async function g(h) {
1523
1523
  const { touches: c } = h;
1524
- if (i = c.length, o.move(c[0].clientX, c[0].clientY), T("move", h), n.zooming && i == 2) {
1524
+ if (i = c.length, n.move(c[0].clientX, c[0].clientY), T("move", h), o.zooming && i == 2) {
1525
1525
  h.preventDefault();
1526
1526
  const y = at(c), x = f * y / v;
1527
- t.zoomTo(x, n.lastCenter);
1527
+ t.zoomTo(x, o.lastCenter);
1528
1528
  }
1529
1529
  }
1530
1530
  async function r(h) {
1531
- h.touches.length || (T("end", h), l.checkTap(o.offsetX.value, o.offsetY.value), t.zoomFinished(), o.reset());
1531
+ h.touches.length || (T("end", h), l.checkTap(n.offsetX.value, n.offsetY.value), t.zoomFinished(), n.reset());
1532
1532
  }
1533
1533
  function T(h, c) {
1534
1534
  d.measure();
@@ -1539,19 +1539,19 @@ function So(e) {
1539
1539
  else if (i == 2)
1540
1540
  u = !1;
1541
1541
  else if (u) {
1542
- if (o.direction.value == "vertical")
1543
- if (n.level != 1)
1542
+ if (n.direction.value == "vertical")
1543
+ if (o.level != 1)
1544
1544
  u = !1;
1545
1545
  else {
1546
- const z = o.startY.value < x;
1546
+ const z = n.startY.value < x;
1547
1547
  u = W && z || p && !z;
1548
1548
  }
1549
- else if (o.direction.value == "horizontal") {
1550
- const z = o.startX.value < y;
1549
+ else if (n.direction.value == "horizontal") {
1550
+ const z = n.startX.value < y;
1551
1551
  u = H && z || _ && !z;
1552
1552
  }
1553
1553
  }
1554
- u && s.transitioning.value && (u = !1, c.preventDefault()), h == "end" && !u && (y = o.startX.value, x = o.startY.value, u = !0), (h != "move" || u) && e.onSwipeEdge?.(h, o.direction.value, y, x);
1554
+ u && s.transitioning.value && (u = !1, c.preventDefault()), h == "end" && !u && (y = n.startX.value, x = n.startY.value, u = !0), (h != "move" || u) && e.onSwipeEdge?.(h, n.direction.value, y, x);
1555
1555
  }
1556
1556
  return { core: t, onTouchStart: M, onTouchMove: g, onTouchEnd: r };
1557
1557
  }
@@ -1568,13 +1568,13 @@ function _o() {
1568
1568
  function t(l, s) {
1569
1569
  e.startX = l, e.startY = s, e.scale = 1;
1570
1570
  }
1571
- function n(l, s) {
1571
+ function o(l, s) {
1572
1572
  e.started = !0, e.dragging = !0, e.offsetX = l - e.startX, e.offsetY = s - e.startY, e.scale = 1 - Math.abs(e.offsetY / s * 0.4);
1573
1573
  }
1574
- function o() {
1574
+ function n() {
1575
1575
  !e.dragging || (Math.abs(e.offsetY) > window.innerHeight * 0.14 ? e.scale = 0.3 : e.scale = 1, e.dragging = !1, e.offsetX = 0, e.offsetY = 0);
1576
1576
  }
1577
- return { state: e, dragStart: t, dragMove: n, dragEnd: o };
1577
+ return { state: e, dragStart: t, dragMove: o, dragEnd: n };
1578
1578
  }
1579
1579
  function jn() {
1580
1580
  const e = m(!1), t = m(!1);
@@ -1589,22 +1589,23 @@ function jn() {
1589
1589
  };
1590
1590
  }
1591
1591
  function Oo(e) {
1592
- const { isActivated: t } = jn();
1592
+ let t = window.onBackPress;
1593
+ const { isActivated: o } = jn();
1593
1594
  function n() {
1594
- window.onBackPress = () => (console.log("useBackPress - onBackPress"), e());
1595
+ window.onBackPress = () => e();
1595
1596
  }
1596
- function o() {
1597
- window.onBackPress = null;
1597
+ function l() {
1598
+ window.onBackPress = t;
1598
1599
  }
1599
- ft(() => {
1600
- !t.value || n();
1600
+ return ft(() => {
1601
+ !o.value || n();
1601
1602
  }), Ct(() => {
1602
1603
  n();
1603
1604
  }), dt(() => {
1604
- o();
1605
+ l();
1605
1606
  }), St(() => {
1606
- o();
1607
- });
1607
+ l();
1608
+ }), { register: n, unregister: l };
1608
1609
  }
1609
1610
  const xn = ["onClick"], Cn = /* @__PURE__ */ q({
1610
1611
  __name: "Toast",
@@ -1614,7 +1615,7 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
1614
1615
  buttonClickEvent: null
1615
1616
  },
1616
1617
  setup(e) {
1617
- const t = e, n = m(), o = m(), l = m(), s = N(() => {
1618
+ const t = e, o = m(), n = m(), l = m(), s = N(() => {
1618
1619
  switch (t.position) {
1619
1620
  case "top":
1620
1621
  return 10;
@@ -1629,7 +1630,7 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
1629
1630
  backgroundColor: "rgba(0, 0, 0, 0.8)",
1630
1631
  padding: "14px 19px",
1631
1632
  top: `calc(${s.value}% - ${l.value}px)`,
1632
- left: `calc(50% - ${o.value}px)`
1633
+ left: `calc(50% - ${n.value}px)`
1633
1634
  })), d = N(() => ({
1634
1635
  width: "fit-content",
1635
1636
  display: "flex",
@@ -1642,12 +1643,12 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
1642
1643
  !t.buttonClickEvent || t.buttonClickEvent();
1643
1644
  }
1644
1645
  return fe(() => {
1645
- o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
1646
+ n.value = o.value.offsetWidth / 2, l.value = o.value.offsetHeight / 2;
1646
1647
  }), (f, v) => (b(), U("div", {
1647
1648
  onClick: he(i, ["stop"]),
1648
1649
  id: "toastWrapper",
1649
1650
  ref_key: "toastWrapper",
1650
- ref: n,
1651
+ ref: o,
1651
1652
  class: "toastWrapper",
1652
1653
  style: K([I(a), { zIndex: 9999999 }])
1653
1654
  }, [
@@ -1675,10 +1676,10 @@ class bo {
1675
1676
  present() {
1676
1677
  const t = ae(ae(Sn), { ...it, ...this.options });
1677
1678
  me(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
1678
- const n = this.options.duration || it.duration;
1679
+ const o = this.options.duration || it.duration;
1679
1680
  setTimeout(() => {
1680
1681
  this.dismiss();
1681
- }, n);
1682
+ }, o);
1682
1683
  }
1683
1684
  dismiss() {
1684
1685
  if (this.container) {
@@ -1701,7 +1702,7 @@ const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
1701
1702
  height: null
1702
1703
  },
1703
1704
  setup(e) {
1704
- const t = e, n = N(() => `#${t.prefix}-${t.name}`), o = N(() => ({
1705
+ const t = e, o = N(() => `#${t.prefix}-${t.name}`), n = N(() => ({
1705
1706
  width: `${t.width ?? t.height}px`,
1706
1707
  height: `${t.height ?? t.width}px`,
1707
1708
  aspectRatio: t.width && t.height ? void 0 : "1/1"
@@ -1712,10 +1713,10 @@ const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
1712
1713
  }
1713
1714
  return (s, a) => (b(), U("svg", {
1714
1715
  "aria-hidden": "",
1715
- style: K({ ...I(o), ...l(s.$attrs) })
1716
+ style: K({ ...I(n), ...l(s.$attrs) })
1716
1717
  }, [
1717
1718
  O("use", {
1718
- "xlink:href": I(n),
1719
+ "xlink:href": I(o),
1719
1720
  fill: e.color,
1720
1721
  color: e.color
1721
1722
  }, null, 8, _n)
@@ -1725,8 +1726,8 @@ const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
1725
1726
  function On(e) {
1726
1727
  const {
1727
1728
  containerEl: t,
1728
- sliderEl: n,
1729
- autoHeight: o,
1729
+ sliderEl: o,
1730
+ autoHeight: n,
1730
1731
  performance: l = {},
1731
1732
  maxHeightRatio: s = 0.9,
1732
1733
  observeMethod: a = "classList"
@@ -1739,16 +1740,16 @@ function On(e) {
1739
1740
  clientHeight: 0
1740
1741
  }), T = m({
1741
1742
  clientHeight: 0
1742
- }), h = N(() => !!M.value), c = N(() => r.value.scrollHeight > r.value.clientHeight), y = N(() => o ? r.value.clientHeight - H.value : r.value.clientHeight - T.value.clientHeight), x = N(() => r.value.scrollHeight - r.value.clientHeight), W = N(() => Math.max(
1743
+ }), h = N(() => !!M.value), c = N(() => r.value.scrollHeight > r.value.clientHeight), y = N(() => n ? r.value.clientHeight - H.value : r.value.clientHeight - T.value.clientHeight), x = N(() => r.value.scrollHeight - r.value.clientHeight), W = N(() => Math.max(
1743
1744
  r.value.clientHeight / r.value.scrollHeight,
1744
1745
  0.05
1745
1746
  )), H = N(() => W.value > s ? 0 : W.value * r.value.clientHeight), _ = N(() => ({
1746
1747
  willChange: "transform",
1747
1748
  transform: `translate3d(0,${g.value}px,0)`,
1748
- height: o ? `${H.value}px` : void 0
1749
+ height: n ? `${H.value}px` : void 0
1749
1750
  }));
1750
1751
  function p(B) {
1751
- Q(), M.value = B.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
1752
+ Q(), M.value = B.clientY - o.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
1752
1753
  }
1753
1754
  function z() {
1754
1755
  t.value.style.scrollBehavior = v, M.value = 0, i();
@@ -1778,7 +1779,7 @@ function On(e) {
1778
1779
  }
1779
1780
  function C(B) {
1780
1781
  let P = "addEventListener";
1781
- B === "add" ? P = "addEventListener" : P = "removeEventListener", n.value?.[P]("pointerdown", p, {
1782
+ B === "add" ? P = "addEventListener" : P = "removeEventListener", o.value?.[P]("pointerdown", p, {
1782
1783
  passive: !0
1783
1784
  }), window[P]("pointermove", w, { passive: !0 }), window[P]("pointerup", z, { passive: !0 });
1784
1785
  }
@@ -1790,11 +1791,11 @@ function On(e) {
1790
1791
  }
1791
1792
  function R() {
1792
1793
  Q(), setTimeout(() => {
1793
- T.value.clientHeight = n.value?.clientHeight ?? 0, D();
1794
+ T.value.clientHeight = o.value?.clientHeight ?? 0, D();
1794
1795
  }, 150);
1795
1796
  }
1796
1797
  function $() {
1797
- if (t.value && n.value) {
1798
+ if (t.value && o.value) {
1798
1799
  t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", A, {
1799
1800
  passive: !0
1800
1801
  }), C("add");
@@ -1807,7 +1808,7 @@ function On(e) {
1807
1808
  E();
1808
1809
  }, 100), R();
1809
1810
  } else
1810
- console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
1811
+ console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: o });
1811
1812
  }
1812
1813
  return G(u, () => {
1813
1814
  Q(), i();
@@ -1832,13 +1833,13 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
1832
1833
  performance: null
1833
1834
  },
1834
1835
  setup(e, { expose: t }) {
1835
- const n = e, o = !!_t().default, l = m(null), s = N(() => n.containerEl), a = On({
1836
+ const o = e, n = !!_t().default, l = m(null), s = N(() => o.containerEl), a = On({
1836
1837
  containerEl: s,
1837
1838
  sliderEl: l,
1838
- autoHeight: o ? n.autoHeight : !0,
1839
- performance: n.performance,
1840
- observeMethod: n.observeMethod
1841
- }), { scrollable: d, isScrollEnd: i, sliderPos: f } = a, v = m(!1), u = n.autoHide ? N(() => v.value || !i.value) : N(() => d.value), { load: M } = Fe(
1839
+ autoHeight: n ? o.autoHeight : !0,
1840
+ performance: o.performance,
1841
+ observeMethod: o.observeMethod
1842
+ }), { scrollable: d, isScrollEnd: i, sliderPos: f } = a, v = m(!1), u = o.autoHide ? N(() => v.value || !i.value) : N(() => d.value), { load: M } = Fe(
1842
1843
  `.hide-scrollbar {
1843
1844
  scrollbar-width: none;
1844
1845
  -ms-overflow-style: none;
@@ -1897,11 +1898,11 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
1897
1898
  pullRefreshContainer: null
1898
1899
  },
1899
1900
  setup(e) {
1900
- const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), d = m(0.3), i = m(!1), f = m(0), v = m(0), u = m(0), M = m(0), g = m(0), r = m(), T = N(() => t.scrollTop), h = N(() => ({
1901
+ const t = e, o = 0.7, n = "#2EC1CC", l = m(-999), s = m(1), a = m(0), d = m(0.3), i = m(!1), f = m(0), v = m(0), u = m(0), M = m(0), g = m(0), r = m(), T = N(() => t.scrollTop), h = N(() => ({
1901
1902
  transition: `${M.value}ms`,
1902
1903
  transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
1903
1904
  })), c = N(() => ({
1904
- borderColor: o,
1905
+ borderColor: n,
1905
1906
  transition: M.value,
1906
1907
  transform: `rotate(${100 + a.value}deg)`,
1907
1908
  opacity: d.value
@@ -1911,20 +1912,20 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
1911
1912
  }), G(v, (p) => {
1912
1913
  if (g.value === 2)
1913
1914
  return;
1914
- const z = Math.pow(p, n);
1915
+ const z = Math.pow(p, o);
1915
1916
  z === 0 && (l.value = -50), z <= 50 && z > 0 && (l.value = z - 45, a.value = Math.pow(z, 1.5), z > 15 ? i.value = !0 : i.value = !1), z > 50 && (l.value = 5, d.value = 1, g.value);
1916
1917
  });
1917
1918
  const y = m(0), x = (p) => {
1918
1919
  y.value = p.touches[0].pageY;
1919
1920
  }, W = (p) => {
1920
1921
  const z = p.touches[0].pageY - y.value;
1921
- y.value = p.touches[0].pageY, !t.refreshOff && (!t?.refresh || g.value !== 2 && T.value === 0 && (f.value === 0 && (f.value = p.touches[0].pageY), u.value = 0, _.value.style.transition = `${u.value}ms`, M.value = 0, v.value = p.touches[0].pageY - f.value, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, z > 0 && p.preventDefault()));
1922
+ y.value = p.touches[0].pageY, !t.refreshOff && (!t?.refresh || g.value !== 2 && T.value === 0 && (f.value === 0 && (f.value = p.touches[0].pageY), u.value = 0, _.value.style.transition = `${u.value}ms`, M.value = 0, v.value = p.touches[0].pageY - f.value, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, o)}px, 0)`, z > 0 && p.preventDefault()));
1922
1923
  }, H = () => {
1923
1924
  if (t.refreshOff || !t?.refresh || g.value === 2)
1924
1925
  return;
1925
1926
  f.value = 0, u.value = 300;
1926
- const p = Math.pow(v.value, n);
1927
- _.value.style.transition = `${u.value}ms`, p > 50 ? (g.value = 2, v.value = Math.pow(50, 1 / n), _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, M.value = 300, t?.refresh && t?.refresh().then(() => {
1927
+ const p = Math.pow(v.value, o);
1928
+ _.value.style.transition = `${u.value}ms`, p > 50 ? (g.value = 2, v.value = Math.pow(50, 1 / o), _.value.style.transform = `translate3d(0, ${Math.pow(v.value, o)}px, 0)`, M.value = 300, t?.refresh && t?.refresh().then(() => {
1928
1929
  r.value = "\u5237\u65B0\u6210\u529F";
1929
1930
  }).catch(() => {
1930
1931
  r.value = "\u5237\u65B0\u5931\u8D25";
@@ -1932,12 +1933,12 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
1932
1933
  setTimeout(() => {
1933
1934
  g.value = 0, v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(
1934
1935
  v.value,
1935
- n
1936
+ o
1936
1937
  )}px, 0)`, setTimeout(() => {
1937
1938
  r.value = void 0;
1938
1939
  }, M.value);
1939
1940
  }, 600);
1940
- })) : (v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
1941
+ })) : (v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, o)}px, 0)`);
1941
1942
  }, _ = m(null);
1942
1943
  return ie(() => {
1943
1944
  t?.refreshOff || (_.value = document.querySelector(
@@ -1953,13 +1954,13 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
1953
1954
  O("div", $n, [
1954
1955
  O("div", {
1955
1956
  class: "left-circle",
1956
- style: K({ backgroundColor: o })
1957
+ style: K({ backgroundColor: n })
1957
1958
  }, null, 4)
1958
1959
  ]),
1959
1960
  O("div", Pn, [
1960
1961
  O("div", {
1961
1962
  class: "right-circle",
1962
- style: K({ backgroundColor: o })
1963
+ style: K({ backgroundColor: n })
1963
1964
  }, null, 4)
1964
1965
  ]),
1965
1966
  Fn
@@ -1971,7 +1972,7 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
1971
1972
  O("div", Hn, [
1972
1973
  O("div", {
1973
1974
  class: se(["arrows", { opacity: i.value }]),
1974
- style: K({ borderBottomColor: o })
1975
+ style: K({ borderBottomColor: n })
1975
1976
  }, null, 6)
1976
1977
  ])
1977
1978
  ], 4))
@@ -1994,12 +1995,12 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
1994
1995
  refreshOff: { type: Boolean, default: !1 }
1995
1996
  },
1996
1997
  emits: ["scrollEnd"],
1997
- setup(e, { expose: t, emit: n }) {
1998
- const o = e, l = Gt(Ot(o, "data"), {
1999
- itemHeight: (g) => o.itemHeight(o.data[g]),
2000
- overscan: o.overscan,
1998
+ setup(e, { expose: t, emit: o }) {
1999
+ const n = e, l = Gt(Ot(n, "data"), {
2000
+ itemHeight: (g) => n.itemHeight(n.data[g]),
2001
+ overscan: n.overscan,
2001
2002
  scrollEndHook: () => {
2002
- n("scrollEnd");
2003
+ o("scrollEnd");
2003
2004
  }
2004
2005
  }), {
2005
2006
  list: s,
@@ -2014,7 +2015,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
2014
2015
  });
2015
2016
  const u = "virtualListWrapper" + new Date().getTime();
2016
2017
  function M(g, r) {
2017
- return o.getItemKey ? o.getItemKey(g, r) : `${r}`;
2018
+ return n.getItemKey ? n.getItemKey(g, r) : `${r}`;
2018
2019
  }
2019
2020
  return (g, r) => (b(), U(be, null, [
2020
2021
  Me(Zn, {
@@ -2078,11 +2079,11 @@ const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e)
2078
2079
  },
2079
2080
  setup(e) {
2080
2081
  const t = e;
2081
- Ue((o) => ({
2082
- "312487ac": n
2082
+ Ue((n) => ({
2083
+ "312487ac": o
2083
2084
  }));
2084
- const n = `${t.duration}ms`;
2085
- return (o, l) => (b(), U("div", qn, [
2085
+ const o = `${t.duration}ms`;
2086
+ return (n, l) => (b(), U("div", qn, [
2086
2087
  Jn,
2087
2088
  (b(), U("svg", {
2088
2089
  style: { position: "relative" },
@@ -2120,18 +2121,18 @@ const Yo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-33519afd"]]), so = [
2120
2121
  "image/svg+xml"
2121
2122
  ];
2122
2123
  function Dt(e, t) {
2123
- const n = m(e?.value), o = N(() => n.value?.startsWith("/_lzc")), l = m(!1), s = N(() => l.value), a = N(() => {
2124
+ const o = m(e?.value), n = N(() => o.value?.startsWith("/_lzc")), l = m(!1), s = N(() => l.value), a = N(() => {
2124
2125
  const i = t?.value;
2125
- return !i || i.startsWith("video/") ? !0 : i.startsWith("image/") ? o.value ? so.includes(i) : ao.includes(i) : !1;
2126
+ return !i || i.startsWith("video/") ? !0 : i.startsWith("image/") ? n.value ? so.includes(i) : ao.includes(i) : !1;
2126
2127
  });
2127
2128
  e && G(e, (i) => {
2128
- n.value = i, l.value = !1;
2129
+ o.value = i, l.value = !1;
2129
2130
  });
2130
2131
  function d() {
2131
2132
  l.value = !0;
2132
2133
  }
2133
2134
  return {
2134
- imgSrc: n,
2135
+ imgSrc: o,
2135
2136
  isError: l,
2136
2137
  hasError: s,
2137
2138
  isSupport: a,
@@ -2157,10 +2158,10 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
2157
2158
  },
2158
2159
  emits: ["load"],
2159
2160
  setup(e, { emit: t }) {
2160
- const n = e, o = m(), l = m(), s = m(!1), a = m(!1), d = m(!1), { src: i, mime: f } = vt(n), { imgSrc: v, isSupport: u, hasError: M, handleError: g } = Dt(i, f), { vImageCancel: r } = Tt(), { LoadingComp: T } = yt({
2161
+ const o = e, n = m(), l = m(), s = m(!1), a = m(!1), d = m(!1), { src: i, mime: f } = vt(o), { imgSrc: v, isSupport: u, hasError: M, handleError: g } = Dt(i, f), { vImageCancel: r } = Tt(), { LoadingComp: T } = yt({
2161
2162
  component: an,
2162
2163
  delay: 300
2163
- }), h = Qt(() => d.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !d.value);
2164
+ }), h = Qt(() => d.value && o.autoRemoveThumbnail ? !1 : o.thumbnail && !d.value);
2164
2165
  function c() {
2165
2166
  a.value = !0;
2166
2167
  }
@@ -2168,10 +2169,10 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
2168
2169
  a.value && (d.value = !0);
2169
2170
  }
2170
2171
  async function x() {
2171
- c(), h.value ? (o.value?.addEventListener("animationend", W), o.value?.classList.add("showing"), await et(10)) : o.value && t("load", o.value), o.value?.classList.remove("src-class");
2172
+ c(), h.value ? (n.value?.addEventListener("animationend", W), n.value?.classList.add("showing"), await et(10)) : n.value && t("load", n.value), n.value?.classList.remove("src-class");
2172
2173
  }
2173
2174
  function W() {
2174
- o.value?.removeEventListener("animationend", W), o.value?.classList.remove("showing"), o.value && t("load", o.value), y();
2175
+ n.value?.removeEventListener("animationend", W), n.value?.classList.remove("showing"), n.value && t("load", n.value), y();
2175
2176
  }
2176
2177
  async function H(p) {
2177
2178
  p ? x() : l.value && t("load", l.value), s.value = !0;
@@ -2206,7 +2207,7 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
2206
2207
  ]) : ue("", !0),
2207
2208
  e.isShowSrc || a.value ? ve((b(), U("img", ge({ key: 1 }, p.$attrs, {
2208
2209
  ref_key: "srcRef",
2209
- ref: o,
2210
+ ref: n,
2210
2211
  class: "src-class",
2211
2212
  onLoad: z[2] || (z[2] = (Q) => H(!0)),
2212
2213
  onError: z[3] || (z[3] = (Q) => _(!0)),
@@ -2235,7 +2236,7 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-774cb54a"]]), ho = ["ti
2235
2236
  mime: null
2236
2237
  },
2237
2238
  setup(e) {
2238
- const t = e, n = m(!1), { src: o, mime: l } = vt(t), { imgSrc: s, hasError: a, isSupport: d, handleError: i } = Dt(o, l), { vImageCancel: f } = Tt();
2239
+ const t = e, o = m(!1), { src: n, mime: l } = vt(t), { imgSrc: s, hasError: a, isSupport: d, handleError: i } = Dt(n, l), { vImageCancel: f } = Tt();
2239
2240
  return (v, u) => I(d) ? I(a) ? (b(), U("div", {
2240
2241
  key: 2,
2241
2242
  title: I(s),
@@ -2248,12 +2249,12 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-774cb54a"]]), ho = ["ti
2248
2249
  ], 8, yo)) : ve((b(), U("img", {
2249
2250
  key: 1,
2250
2251
  fetchpriority: "high",
2251
- onLoad: u[0] || (u[0] = (M) => n.value = !0),
2252
+ onLoad: u[0] || (u[0] = (M) => o.value = !0),
2252
2253
  onError: u[1] || (u[1] = (...M) => I(i) && I(i)(...M)),
2253
2254
  src: I(s)
2254
2255
  }, null, 40, mo)), [
2255
2256
  [I(f)],
2256
- [Ae, n.value]
2257
+ [Ae, o.value]
2257
2258
  ]) : (b(), U("div", {
2258
2259
  key: 0,
2259
2260
  title: I(s),