@xto/data 1.7.0 → 1.7.1

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/es/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, computed as $, openBlock as M, createElementBlock as w, normalizeStyle as F, normalizeClass as p, createElementVNode as A, renderSlot as G, createTextVNode as ae, toDisplayString as U, unref as u, createVNode as ne, createCommentVNode as j, ref as _, watch as se, Fragment as q, renderList as le, withDirectives as ze, withKeys as Ve, vModelText as Pe, useSlots as be, withModifiers as ie, mergeProps as Ae, inject as ge, resolveComponent as Re, createBlock as re, withCtx as Ie, vShow as $e, reactive as Se, provide as ve, toRef as je, nextTick as Ee, onMounted as pe, onUnmounted as me, resolveDynamicComponent as xe, Teleport as Oe, onBeforeUnmount as _e } from "vue";
1
+ import { defineComponent as Z, computed as $, openBlock as M, createElementBlock as w, normalizeStyle as U, normalizeClass as p, createElementVNode as A, renderSlot as F, createTextVNode as oe, toDisplayString as X, unref as u, createVNode as le, createCommentVNode as j, ref as O, watch as se, Fragment as te, renderList as re, withDirectives as ze, withKeys as Ve, vModelText as Re, useSlots as be, withModifiers as ue, mergeProps as Ae, inject as ye, resolveComponent as Pe, createBlock as ce, withCtx as Ie, vShow as $e, reactive as Se, provide as me, toRef as je, nextTick as Ee, onMounted as pe, onUnmounted as Me, resolveDynamicComponent as xe, Teleport as Oe, onBeforeUnmount as _e } from "vue";
2
2
  import { useNamespace as J } from "@xto/core";
3
3
  const Ne = {
4
4
  // 箭头类
@@ -204,7 +204,7 @@ const Ne = {
204
204
  function We(s) {
205
205
  return s in Ne;
206
206
  }
207
- const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te = /* @__PURE__ */ Z({
207
+ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], ne = /* @__PURE__ */ Z({
208
208
  name: "XIcon",
209
209
  __name: "index",
210
210
  props: {
@@ -224,19 +224,19 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
224
224
  })), l = $(() => [
225
225
  e.b(),
226
226
  e.is("spin", n.spin)
227
- ]), i = $(() => n.name && We(n.name) ? Ne[n.name] : "");
227
+ ]), c = $(() => n.name && We(n.name) ? Ne[n.name] : "");
228
228
  return r({
229
229
  iconSize: o,
230
230
  iconStyle: a,
231
- iconPath: i
231
+ iconPath: c
232
232
  }), (z, k) => (M(), w("span", {
233
233
  class: p(l.value),
234
- style: F(a.value),
234
+ style: U(a.value),
235
235
  "aria-hidden": !s.name,
236
236
  "aria-label": s.name,
237
237
  role: "img"
238
238
  }, [
239
- i.value ? (M(), w("svg", {
239
+ c.value ? (M(), w("svg", {
240
240
  key: 0,
241
241
  viewBox: "0 0 24 24",
242
242
  fill: "none",
@@ -244,12 +244,12 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
244
244
  "stroke-width": s.strokeWidth,
245
245
  "stroke-linecap": "round",
246
246
  "stroke-linejoin": "round",
247
- style: F(t.value),
247
+ style: U(t.value),
248
248
  "aria-hidden": "true"
249
249
  }, [
250
- A("path", { d: i.value }, null, 8, Qe)
251
- ], 12, Xe)) : G(z.$slots, "default", { key: 1 }, () => [
252
- ae(U(s.name), 1)
250
+ A("path", { d: c.value }, null, 8, Qe)
251
+ ], 12, Xe)) : F(z.$slots, "default", { key: 1 }, () => [
252
+ oe(X(s.name), 1)
253
253
  ])
254
254
  ], 14, Ye));
255
255
  }
@@ -276,20 +276,20 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
276
276
  backgroundColor: n.effect === "dark" ? n.color : "",
277
277
  borderColor: n.color,
278
278
  color: n.effect === "dark" ? "#fff" : n.color
279
- } : {}), l = (i) => {
280
- e("close", i);
279
+ } : {}), l = (c) => {
280
+ e("close", c);
281
281
  };
282
- return (i, z) => (M(), w("span", {
282
+ return (c, z) => (M(), w("span", {
283
283
  class: p(a.value),
284
- style: F(t.value)
284
+ style: U(t.value)
285
285
  }, [
286
- G(i.$slots, "default"),
286
+ F(c.$slots, "default"),
287
287
  s.closable ? (M(), w("i", {
288
288
  key: 0,
289
289
  class: p(u(o).e("close")),
290
290
  onClick: l
291
291
  }, [
292
- ne(u(te), {
292
+ le(u(ne), {
293
293
  name: "close",
294
294
  size: 10
295
295
  })
@@ -316,15 +316,15 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
316
316
  key: 0,
317
317
  class: p(u(n).e("header"))
318
318
  }, [
319
- G(o.$slots, "header", {}, () => [
320
- ae(U(s.header), 1)
319
+ F(o.$slots, "header", {}, () => [
320
+ oe(X(s.header), 1)
321
321
  ])
322
322
  ], 2)) : j("", !0),
323
323
  A("div", {
324
324
  class: p(u(n).e("body")),
325
- style: F(s.bodyStyle)
325
+ style: U(s.bodyStyle)
326
326
  }, [
327
- G(o.$slots, "default")
327
+ F(o.$slots, "default")
328
328
  ], 6)
329
329
  ], 2));
330
330
  }
@@ -357,7 +357,7 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
357
357
  n.is("show-text", r.showText),
358
358
  n.is(`status-${r.status || ""}`, !!r.status)
359
359
  ]);
360
- return $(() => r.status === "success" ? "100%" : r.status === "warning" ? "Warning" : r.status === "exception" ? "Exception" : `${e.value}%`), (l, i) => (M(), w("div", {
360
+ return $(() => r.status === "success" ? "100%" : r.status === "warning" ? "Warning" : r.status === "exception" ? "Exception" : `${e.value}%`), (l, c) => (M(), w("div", {
361
361
  class: p(t.value)
362
362
  }, [
363
363
  s.type === "line" ? (M(), w("div", {
@@ -372,21 +372,21 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
372
372
  }, [
373
373
  A("div", {
374
374
  class: p(u(n).e("bar")),
375
- style: F(a.value)
375
+ style: U(a.value)
376
376
  }, null, 6)
377
377
  ], 2)
378
378
  ], 2),
379
379
  s.showText ? (M(), w("div", {
380
380
  key: 0,
381
381
  class: p(u(n).e("text"))
382
- }, U(e.value) + "% ", 3)) : j("", !0)
382
+ }, X(e.value) + "% ", 3)) : j("", !0)
383
383
  ], 2)) : (M(), w("div", {
384
384
  key: 1,
385
385
  class: p(u(n).e("circle"))
386
386
  }, [
387
387
  (M(), w("svg", {
388
388
  viewBox: `0 0 ${s.width} ${s.width}`,
389
- style: F({ width: `${s.width}px`, height: `${s.width}px` })
389
+ style: U({ width: `${s.width}px`, height: `${s.width}px` })
390
390
  }, [
391
391
  A("circle", {
392
392
  cx: s.width / 2,
@@ -411,7 +411,7 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
411
411
  s.showText ? (M(), w("div", {
412
412
  key: 0,
413
413
  class: p(u(n).e("circle-text"))
414
- }, U(e.value) + "% ", 3)) : j("", !0)
414
+ }, X(e.value) + "% ", 3)) : j("", !0)
415
415
  ], 2))
416
416
  ], 2));
417
417
  }
@@ -427,35 +427,35 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
427
427
  },
428
428
  emits: ["update:currentPage", "update:pageSize", "current-change", "size-change"],
429
429
  setup(s, { emit: r }) {
430
- const n = s, e = r, o = J("pagination"), a = _(n.currentPage), t = _(n.pageSize);
430
+ const n = s, e = r, o = J("pagination"), a = O(n.currentPage), t = O(n.pageSize);
431
431
  se(() => n.currentPage, (E) => {
432
432
  a.value = E;
433
433
  }), se(() => n.pageSize, (E) => {
434
434
  t.value = E;
435
435
  });
436
- const l = $(() => a.value), i = $(() => t.value), z = $(() => Math.max(1, Math.ceil(n.total / i.value))), k = $(
436
+ const l = $(() => a.value), c = $(() => t.value), z = $(() => Math.max(1, Math.ceil(n.total / c.value))), k = $(
437
437
  () => n.layout.split(",").map((E) => E.trim()).filter(Boolean)
438
438
  ), x = (E) => k.value.includes(E), C = $(() => {
439
- const E = [], B = z.value, H = l.value;
439
+ const E = [], B = z.value, N = l.value;
440
440
  if (B <= 7)
441
441
  for (let K = 1; K <= B; K++) E.push(K);
442
- else if (H <= 4) {
442
+ else if (N <= 4) {
443
443
  for (let K = 1; K <= 5; K++) E.push(K);
444
444
  E.push(-1), E.push(B);
445
- } else if (H >= B - 3) {
445
+ } else if (N >= B - 3) {
446
446
  E.push(1), E.push(-1);
447
447
  for (let K = B - 4; K <= B; K++) E.push(K);
448
448
  } else {
449
449
  E.push(1), E.push(-1);
450
- for (let K = H - 1; K <= H + 1; K++) E.push(K);
450
+ for (let K = N - 1; K <= N + 1; K++) E.push(K);
451
451
  E.push(-1), E.push(B);
452
452
  }
453
453
  return E;
454
454
  }), S = (E) => {
455
455
  E < 1 || E > z.value || E === l.value || (a.value = E, e("update:currentPage", E), e("current-change", E));
456
- }, P = (E) => {
457
- E !== i.value && (t.value = E, e("update:pageSize", E), e("size-change", E), a.value = 1, e("update:currentPage", 1), e("current-change", 1));
458
- }, V = _(""), W = () => {
456
+ }, R = (E) => {
457
+ E !== c.value && (t.value = E, e("update:pageSize", E), e("size-change", E), a.value = 1, e("update:currentPage", 1), e("current-change", 1));
458
+ }, V = O(""), _ = () => {
459
459
  const E = parseInt(V.value, 10);
460
460
  isFinite(E) && (S(Math.min(Math.max(1, E), z.value)), V.value = "");
461
461
  };
@@ -465,12 +465,12 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
465
465
  x("total") ? (M(), w("span", {
466
466
  key: 0,
467
467
  class: p(u(o).e("total"))
468
- }, "共 " + U(s.total) + " 条", 3)) : j("", !0),
468
+ }, "共 " + X(s.total) + " 条", 3)) : j("", !0),
469
469
  x("prev") ? (M(), w("button", {
470
470
  key: 1,
471
471
  class: p(u(o).e("btn")),
472
472
  disabled: l.value <= 1,
473
- onClick: B[0] || (B[0] = (H) => S(l.value - 1))
473
+ onClick: B[0] || (B[0] = (N) => S(l.value - 1))
474
474
  }, [...B[4] || (B[4] = [
475
475
  A("svg", {
476
476
  viewBox: "0 0 24 24",
@@ -487,21 +487,21 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
487
487
  })
488
488
  ], -1)
489
489
  ])], 10, Ze)) : j("", !0),
490
- x("pager") ? (M(!0), w(q, { key: 2 }, le(C.value, (H) => (M(), w(q, { key: H }, [
491
- H === -1 ? (M(), w("span", {
490
+ x("pager") ? (M(!0), w(te, { key: 2 }, re(C.value, (N) => (M(), w(te, { key: N }, [
491
+ N === -1 ? (M(), w("span", {
492
492
  key: 0,
493
493
  class: p(u(o).e("ellipsis"))
494
494
  }, "...", 2)) : (M(), w("button", {
495
495
  key: 1,
496
- class: p([u(o).e("btn"), u(o).is("active", H === l.value)]),
497
- onClick: (K) => S(H)
498
- }, U(H), 11, Je))
496
+ class: p([u(o).e("btn"), u(o).is("active", N === l.value)]),
497
+ onClick: (K) => S(N)
498
+ }, X(N), 11, Je))
499
499
  ], 64))), 128)) : j("", !0),
500
500
  x("next") ? (M(), w("button", {
501
501
  key: 3,
502
502
  class: p(u(o).e("btn")),
503
503
  disabled: l.value >= z.value,
504
- onClick: B[1] || (B[1] = (H) => S(l.value + 1))
504
+ onClick: B[1] || (B[1] = (N) => S(l.value + 1))
505
505
  }, [...B[5] || (B[5] = [
506
506
  A("svg", {
507
507
  viewBox: "0 0 24 24",
@@ -521,30 +521,30 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
521
521
  x("sizes") ? (M(), w("select", {
522
522
  key: 4,
523
523
  class: p(u(o).e("sizes")),
524
- value: i.value,
525
- onChange: B[2] || (B[2] = (H) => P(Number(H.target.value)))
524
+ value: c.value,
525
+ onChange: B[2] || (B[2] = (N) => R(Number(N.target.value)))
526
526
  }, [
527
- (M(!0), w(q, null, le(s.pageSizes, (H) => (M(), w("option", {
528
- key: H,
529
- value: H
530
- }, U(H) + " 条/页", 9, tt))), 128))
527
+ (M(!0), w(te, null, re(s.pageSizes, (N) => (M(), w("option", {
528
+ key: N,
529
+ value: N
530
+ }, X(N) + " 条/页", 9, tt))), 128))
531
531
  ], 42, et)) : j("", !0),
532
532
  x("jumper") ? (M(), w("span", {
533
533
  key: 5,
534
534
  class: p(u(o).e("jumper"))
535
535
  }, [
536
- B[6] || (B[6] = ae(" 前往 ", -1)),
536
+ B[6] || (B[6] = oe(" 前往 ", -1)),
537
537
  ze(A("input", {
538
538
  class: p(u(o).e("jumper-input")),
539
539
  type: "text",
540
540
  inputmode: "numeric",
541
- "onUpdate:modelValue": B[3] || (B[3] = (H) => V.value = H),
542
- onKeyup: Ve(W, ["enter"]),
543
- onBlur: W
541
+ "onUpdate:modelValue": B[3] || (B[3] = (N) => V.value = N),
542
+ onKeyup: Ve(_, ["enter"]),
543
+ onBlur: _
544
544
  }, null, 34), [
545
- [Pe, V.value]
545
+ [Re, V.value]
546
546
  ]),
547
- B[7] || (B[7] = ae(" 页 ", -1))
547
+ B[7] || (B[7] = oe(" 页 ", -1))
548
548
  ], 2)) : j("", !0)
549
549
  ], 2));
550
550
  }
@@ -576,84 +576,84 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
576
576
  be();
577
577
  const t = $({
578
578
  get: () => e.data,
579
- set: (c) => o("update:data", c)
580
- }), l = _({
579
+ set: (i) => o("update:data", i)
580
+ }), l = O({
581
581
  prop: ((L = e.defaultSort) == null ? void 0 : L.prop) || "",
582
582
  order: ((f = e.defaultSort) == null ? void 0 : f.order) || null
583
- }), i = _([]), z = _(!1), k = _(!1), x = $(() => {
583
+ }), c = O([]), z = O(!1), k = O(!1), x = $(() => {
584
584
  if (!l.value.prop || !l.value.order)
585
585
  return t.value;
586
- const { prop: c, order: d } = l.value;
587
- return [...t.value].sort((y, h) => {
588
- const T = y[c], N = h[c];
589
- if (T === N) return 0;
590
- const R = T > N ? 1 : -1;
591
- return d === "ascending" ? R : -R;
586
+ const { prop: i, order: d } = l.value;
587
+ return [...t.value].sort((g, h) => {
588
+ const T = g[i], H = h[i];
589
+ if (T === H) return 0;
590
+ const P = T > H ? 1 : -1;
591
+ return d === "ascending" ? P : -P;
592
592
  });
593
593
  }), C = $(() => {
594
- const c = {};
595
- return e.height && (c.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (c.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), c;
594
+ const i = {};
595
+ return e.height && (i.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (i.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), i;
596
596
  }), S = $(() => {
597
- const c = typeof e.operationWidth == "number" ? `${e.operationWidth}px` : e.operationWidth;
598
- return { width: c, minWidth: c };
599
- }), P = $(() => [
597
+ const i = typeof e.operationWidth == "number" ? `${e.operationWidth}px` : e.operationWidth;
598
+ return { width: i, minWidth: i };
599
+ }), R = $(() => [
600
600
  a.b(),
601
601
  a.is("border", e.border),
602
602
  a.is("stripe", e.stripe),
603
603
  a.is("loading", e.loading)
604
- ]), V = (c) => {
605
- c.sortable && (l.value.prop === c.prop ? l.value.order === "ascending" ? l.value.order = "descending" : l.value.order === "descending" && (l.value.order = null, l.value.prop = "") : (l.value.prop = c.prop, l.value.order = "ascending"), o("sort-change", { ...l.value }));
606
- }, W = (c) => c.sortable ? l.value.prop !== c.prop ? a.is("sortable") : [
604
+ ]), V = (i) => {
605
+ i.sortable && (l.value.prop === i.prop ? l.value.order === "ascending" ? l.value.order = "descending" : l.value.order === "descending" && (l.value.order = null, l.value.prop = "") : (l.value.prop = i.prop, l.value.order = "ascending"), o("sort-change", { ...l.value }));
606
+ }, _ = (i) => i.sortable ? l.value.prop !== i.prop ? a.is("sortable") : [
607
607
  a.is("sortable"),
608
608
  a.is(`sort-${l.value.order}`)
609
- ] : "", E = (c, d, y) => {
610
- const h = c[d.prop];
611
- return d.formatter ? d.formatter(c, d, h, y) : h ?? "";
612
- }, B = (c, d, y) => {
613
- o("row-click", c, d, y);
614
- }, H = (c, d, y) => {
615
- const h = y.target;
616
- o("cell-click", c, d, h, y);
609
+ ] : "", E = (i, d, g) => {
610
+ const h = i[d.prop];
611
+ return d.formatter ? d.formatter(i, d, h, g) : h ?? "";
612
+ }, B = (i, d, g) => {
613
+ o("row-click", i, d, g);
614
+ }, N = (i, d, g) => {
615
+ const h = g.target;
616
+ o("cell-click", i, d, h, g);
617
617
  }, K = () => {
618
- z.value || k.value ? (i.value = [], z.value = !1, k.value = !1) : (i.value = [...t.value], z.value = !0, k.value = !1), o("select-all", i.value), o("selection-change", i.value);
619
- }, Y = (c) => {
620
- const d = i.value.findIndex((y) => typeof e.rowKey == "function" ? e.rowKey(y) === e.rowKey(c) : e.rowKey ? y[e.rowKey] === c[e.rowKey] : y === c);
621
- d > -1 ? i.value.splice(d, 1) : i.value.push(c), z.value = i.value.length === t.value.length, k.value = i.value.length > 0 && i.value.length < t.value.length, o("selection-change", i.value);
622
- }, ee = (c) => i.value.some((d) => typeof e.rowKey == "function" ? e.rowKey(d) === e.rowKey(c) : e.rowKey ? d[e.rowKey] === c[e.rowKey] : d === c), v = (c) => {
618
+ z.value || k.value ? (c.value = [], z.value = !1, k.value = !1) : (c.value = [...t.value], z.value = !0, k.value = !1), o("select-all", c.value), o("selection-change", c.value);
619
+ }, Y = (i) => {
620
+ const d = c.value.findIndex((g) => typeof e.rowKey == "function" ? e.rowKey(g) === e.rowKey(i) : e.rowKey ? g[e.rowKey] === i[e.rowKey] : g === i);
621
+ d > -1 ? c.value.splice(d, 1) : c.value.push(i), z.value = c.value.length === t.value.length, k.value = c.value.length > 0 && c.value.length < t.value.length, o("selection-change", c.value);
622
+ }, q = (i) => c.value.some((d) => typeof e.rowKey == "function" ? e.rowKey(d) === e.rowKey(i) : e.rowKey ? d[e.rowKey] === i[e.rowKey] : d === i), v = (i) => {
623
623
  const d = {};
624
- return c.width && (d.width = typeof c.width == "number" ? `${c.width}px` : c.width), c.minWidth && (d.minWidth = typeof c.minWidth == "number" ? `${c.minWidth}px` : c.minWidth), c.align && (d.textAlign = c.align), d;
625
- }, b = (c) => {
626
- const d = c || {};
627
- e.columns.forEach((y) => {
628
- d[y.prop] === void 0 && (d[y.prop] = "");
624
+ return i.width && (d.width = typeof i.width == "number" ? `${i.width}px` : i.width), i.minWidth && (d.minWidth = typeof i.minWidth == "number" ? `${i.minWidth}px` : i.minWidth), i.align && (d.textAlign = i.align), d;
625
+ }, b = (i) => {
626
+ const d = i || {};
627
+ e.columns.forEach((g) => {
628
+ d[g.prop] === void 0 && (d[g.prop] = "");
629
629
  }), t.value = [...t.value, d], o("add-row", d);
630
- }, m = (c) => {
631
- const d = t.value[c];
632
- t.value = t.value.filter((y, h) => h !== c), o("delete-row", d, c);
630
+ }, y = (i) => {
631
+ const d = t.value[i];
632
+ t.value = t.value.filter((g, h) => h !== i), o("delete-row", d, i);
633
633
  };
634
634
  return r({
635
635
  clearSelection: () => {
636
- i.value = [], z.value = !1, k.value = !1;
636
+ c.value = [], z.value = !1, k.value = !1;
637
637
  },
638
- getSelection: () => [...i.value],
638
+ getSelection: () => [...c.value],
639
639
  sortState: l,
640
640
  addRow: b,
641
- deleteRow: m,
641
+ deleteRow: y,
642
642
  getData: () => [...t.value]
643
- }), (c, d) => (M(), w("div", {
644
- class: p(P.value)
643
+ }), (i, d) => (M(), w("div", {
644
+ class: p(R.value)
645
645
  }, [
646
646
  s.showAddButton ? (M(), w("div", {
647
647
  key: 0,
648
648
  class: p(u(a).e("toolbar"))
649
649
  }, [
650
- G(c.$slots, "toolbar", {}, () => [
650
+ F(i.$slots, "toolbar", {}, () => [
651
651
  A("button", {
652
652
  class: p(u(a).e("add-btn")),
653
- onClick: d[0] || (d[0] = (y) => b())
653
+ onClick: d[0] || (d[0] = (g) => b())
654
654
  }, [...d[2] || (d[2] = [
655
655
  A("span", { class: "add-icon" }, "+", -1),
656
- ae(" 新增一行 ", -1)
656
+ oe(" 新增一行 ", -1)
657
657
  ])], 2)
658
658
  ])
659
659
  ], 2)) : j("", !0),
@@ -666,7 +666,7 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
666
666
  ])], 2)) : j("", !0),
667
667
  A("div", {
668
668
  class: p(u(a).e("wrapper")),
669
- style: F(C.value)
669
+ style: U(C.value)
670
670
  }, [
671
671
  A("table", null, [
672
672
  s.showHeader ? (M(), w("thead", at, [
@@ -687,25 +687,25 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
687
687
  class: p(u(a).e("header-cell")),
688
688
  style: { width: "60px" }
689
689
  }, " 序号 ", 2)) : j("", !0),
690
- (M(!0), w(q, null, le(s.columns, (y) => (M(), w("th", {
691
- key: y.prop,
692
- class: p([u(a).e("header-cell"), W(y)]),
693
- style: F(v(y)),
694
- onClick: (h) => V(y)
690
+ (M(!0), w(te, null, re(s.columns, (g) => (M(), w("th", {
691
+ key: g.prop,
692
+ class: p([u(a).e("header-cell"), _(g)]),
693
+ style: U(v(g)),
694
+ onClick: (h) => V(g)
695
695
  }, [
696
- A("span", null, U(y.label), 1),
697
- y.sortable ? (M(), w("span", {
696
+ A("span", null, X(g.label), 1),
697
+ g.sortable ? (M(), w("span", {
698
698
  key: 0,
699
699
  class: p(u(a).e("sort-icon"))
700
700
  }, [
701
701
  A("span", st, [
702
- ne(u(te), {
702
+ le(u(ne), {
703
703
  name: "sort-up",
704
704
  size: 12
705
705
  })
706
706
  ]),
707
707
  A("span", rt, [
708
- ne(u(te), {
708
+ le(u(ne), {
709
709
  name: "sort-down",
710
710
  size: 12
711
711
  })
@@ -715,15 +715,15 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
715
715
  s.showOperation ? (M(), w("th", {
716
716
  key: 2,
717
717
  class: p(u(a).e("header-cell")),
718
- style: F(S.value)
719
- }, U(s.operationLabel), 7)) : j("", !0)
718
+ style: U(S.value)
719
+ }, X(s.operationLabel), 7)) : j("", !0)
720
720
  ])
721
721
  ])) : j("", !0),
722
722
  A("tbody", null, [
723
- (M(!0), w(q, null, le(x.value, (y, h) => (M(), w("tr", {
724
- key: s.rowKey ? typeof s.rowKey == "function" ? s.rowKey(y) : y[s.rowKey] : h,
725
- class: p([u(a).e("row"), u(a).is("selected", ee(y))]),
726
- onClick: (T) => B(y, s.columns[0], T)
723
+ (M(!0), w(te, null, re(x.value, (g, h) => (M(), w("tr", {
724
+ key: s.rowKey ? typeof s.rowKey == "function" ? s.rowKey(g) : g[s.rowKey] : h,
725
+ class: p([u(a).e("row"), u(a).is("selected", q(g))]),
726
+ onClick: (T) => B(g, s.columns[0], T)
727
727
  }, [
728
728
  s.rowKey ? (M(), w("td", {
729
729
  key: 0,
@@ -731,40 +731,40 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
731
731
  }, [
732
732
  A("input", {
733
733
  type: "checkbox",
734
- checked: ee(y),
735
- onClick: d[1] || (d[1] = ie(() => {
734
+ checked: q(g),
735
+ onClick: d[1] || (d[1] = ue(() => {
736
736
  }, ["stop"])),
737
- onChange: (T) => Y(y)
737
+ onChange: (T) => Y(g)
738
738
  }, null, 40, ct)
739
739
  ], 2)) : j("", !0),
740
740
  s.showIndex ? (M(), w("td", {
741
741
  key: 1,
742
742
  class: p(u(a).e("cell"))
743
- }, U(h + 1), 3)) : j("", !0),
744
- (M(!0), w(q, null, le(s.columns, (T) => (M(), w("td", {
743
+ }, X(h + 1), 3)) : j("", !0),
744
+ (M(!0), w(te, null, re(s.columns, (T) => (M(), w("td", {
745
745
  key: T.prop,
746
746
  class: p(u(a).e("cell")),
747
- style: F(v(T)),
748
- onClick: (N) => H(y, T, N)
747
+ style: U(v(T)),
748
+ onClick: (H) => N(g, T, H)
749
749
  }, [
750
- G(c.$slots, `column-${T.prop}`, Ae({
751
- row: y,
750
+ F(i.$slots, `column-${T.prop}`, Ae({
751
+ row: g,
752
752
  column: T
753
753
  }, { ref_for: !0 }, { $index: h }), () => [
754
- ae(U(E(y, T, h)), 1)
754
+ oe(X(E(g, T, h)), 1)
755
755
  ])
756
756
  ], 14, ut))), 128)),
757
757
  s.showOperation ? (M(), w("td", {
758
758
  key: 2,
759
759
  class: p([u(a).e("cell"), u(a).e("operation-cell")])
760
760
  }, [
761
- G(c.$slots, "operation", Ae({
762
- row: y,
763
- deleteRow: () => m(h)
761
+ F(i.$slots, "operation", Ae({
762
+ row: g,
763
+ deleteRow: () => y(h)
764
764
  }, { ref_for: !0 }, { $index: h }), () => [
765
765
  A("button", {
766
766
  class: p(u(a).e("operation-btn")),
767
- onClick: ie((T) => m(h), ["stop"])
767
+ onClick: ue((T) => y(h), ["stop"])
768
768
  }, " 删除 ", 10, dt)
769
769
  ])
770
770
  ], 2)) : j("", !0)
@@ -776,8 +776,8 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
776
776
  colspan: s.columns.length + (s.rowKey ? 1 : 0) + (s.showIndex ? 1 : 0) + (s.showOperation ? 1 : 0),
777
777
  class: p(u(a).e("empty"))
778
778
  }, [
779
- G(c.$slots, "empty", {}, () => [
780
- ae(U(s.emptyText), 1)
779
+ F(i.$slots, "empty", {}, () => [
780
+ oe(X(s.emptyText), 1)
781
781
  ])
782
782
  ], 10, ft)
783
783
  ])
@@ -802,45 +802,45 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
802
802
  node: {}
803
803
  },
804
804
  setup(s) {
805
- const r = s, n = ge("tree"), { props: e, store: o, toggleExpand: a, toggleCheck: t, handleNodeClick: l, handleNodeContextmenu: i } = n, z = _(), k = _(null), x = $(() => {
806
- var c;
807
- return e.highlightCurrent && ((c = n.store) == null ? void 0 : c.currentKey) === r.node.key;
808
- }), C = $(() => r.node.expanded), S = $(() => r.node.checked), P = $(() => r.node.indeterminate), V = $(() => r.node.disabled), W = $(() => r.node.loading), E = $(() => r.node.isLeaf), B = $(() => e.showCheckbox || e.checkable), H = $(() => r.node.selected), K = $(() => ({
805
+ const r = s, n = ye("tree"), { props: e, store: o, toggleExpand: a, toggleCheck: t, handleNodeClick: l, handleNodeContextmenu: c } = n, z = O(), k = O(null), x = $(() => {
806
+ var i;
807
+ return e.highlightCurrent && ((i = n.store) == null ? void 0 : i.currentKey) === r.node.key;
808
+ }), C = $(() => r.node.expanded), S = $(() => r.node.checked), R = $(() => r.node.indeterminate), V = $(() => r.node.disabled), _ = $(() => r.node.loading), E = $(() => r.node.isLeaf), B = $(() => e.showCheckbox || e.checkable), N = $(() => r.node.selected), K = $(() => ({
809
809
  paddingLeft: `${r.node.level * (e.indent || 16)}px`
810
- })), Y = (c) => {
811
- l(r.node, c);
812
- }, ee = (c) => {
813
- i(r.node, c);
814
- }, v = (c) => {
815
- c.stopPropagation(), V.value || a(r.node);
816
- }, b = (c) => {
817
- c.stopPropagation(), V.value || t(r.node);
818
- }, m = (c) => {
810
+ })), Y = (i) => {
811
+ l(r.node, i);
812
+ }, q = (i) => {
813
+ c(r.node, i);
814
+ }, v = (i) => {
815
+ i.stopPropagation(), V.value || a(r.node);
816
+ }, b = (i) => {
817
+ i.stopPropagation(), V.value || t(r.node);
818
+ }, y = (i) => {
819
819
  var d;
820
820
  if (!(!e.draggable || V.value)) {
821
821
  if (e.allowDrag && !e.allowDrag(r.node)) {
822
- c.preventDefault();
822
+ i.preventDefault();
823
823
  return;
824
824
  }
825
- c.dataTransfer.effectAllowed = "move", c.dataTransfer.setData("nodeKey", String(r.node.key)), (d = n.emit) == null || d.call(n, "node-drag-start", r.node, c);
825
+ i.dataTransfer.effectAllowed = "move", i.dataTransfer.setData("nodeKey", String(r.node.key)), (d = n.emit) == null || d.call(n, "node-drag-start", r.node, i);
826
826
  }
827
- }, D = (c) => {
827
+ }, D = (i) => {
828
828
  var d;
829
- c.preventDefault(), e.draggable && (k.value = "inner", (d = n.emit) == null || d.call(n, "node-drag-enter", r.node, c));
830
- }, I = (c) => {
829
+ i.preventDefault(), e.draggable && (k.value = "inner", (d = n.emit) == null || d.call(n, "node-drag-enter", r.node, i));
830
+ }, I = (i) => {
831
831
  var d;
832
- k.value = null, (d = n.emit) == null || d.call(n, "node-drag-leave", r.node, c);
833
- }, g = (c) => {
834
- var T, N;
835
- if (c.preventDefault(), !e.draggable || V.value) return;
832
+ k.value = null, (d = n.emit) == null || d.call(n, "node-drag-leave", r.node, i);
833
+ }, m = (i) => {
834
+ var T, H;
835
+ if (i.preventDefault(), !e.draggable || V.value) return;
836
836
  const d = (T = z.value) == null ? void 0 : T.getBoundingClientRect();
837
837
  if (!d) return;
838
- const y = c.clientY - d.top, h = d.height;
839
- y < h * 0.25 ? k.value = "prev" : y > h * 0.75 ? k.value = "next" : k.value = "inner", (N = n.emit) == null || N.call(n, "node-drag-over", r.node, c);
840
- }, L = (c) => {
841
- var y, h;
842
- if (c.preventDefault(), !e.draggable) return;
843
- const d = (y = c.dataTransfer) == null ? void 0 : y.getData("nodeKey");
838
+ const g = i.clientY - d.top, h = d.height;
839
+ g < h * 0.25 ? k.value = "prev" : g > h * 0.75 ? k.value = "next" : k.value = "inner", (H = n.emit) == null || H.call(n, "node-drag-over", r.node, i);
840
+ }, L = (i) => {
841
+ var g, h;
842
+ if (i.preventDefault(), !e.draggable) return;
843
+ const d = (g = i.dataTransfer) == null ? void 0 : g.getData("nodeKey");
844
844
  if (d) {
845
845
  const T = o.nodesMap.get(d);
846
846
  if (T && k.value) {
@@ -848,71 +848,71 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
848
848
  k.value = null;
849
849
  return;
850
850
  }
851
- (h = n.emit) == null || h.call(n, "node-drop", T, r.node, k.value, c);
851
+ (h = n.emit) == null || h.call(n, "node-drop", T, r.node, k.value, i);
852
852
  }
853
853
  }
854
854
  k.value = null;
855
- }, f = (c) => {
855
+ }, f = (i) => {
856
856
  var d;
857
- k.value = null, (d = n.emit) == null || d.call(n, "node-drag-end", r.node, c);
857
+ k.value = null, (d = n.emit) == null || d.call(n, "node-drag-end", r.node, i);
858
858
  };
859
- return (c, d) => {
859
+ return (i, d) => {
860
860
  var h;
861
- const y = Re("TreeNode", !0);
861
+ const g = Pe("TreeNode", !0);
862
862
  return ze((M(), w("div", {
863
863
  ref_key: "nodeRef",
864
864
  ref: z,
865
865
  class: p(["x-tree-node", {
866
866
  "is-expanded": C.value,
867
867
  "is-current": x.value,
868
- "is-selected": H.value,
868
+ "is-selected": N.value,
869
869
  "is-disabled": V.value,
870
870
  "is-drop-inner": k.value === "inner",
871
871
  "is-drop-prev": k.value === "prev",
872
872
  "is-drop-next": k.value === "next"
873
873
  }]),
874
874
  draggable: u(e).draggable && !V.value,
875
- onDragstart: m,
875
+ onDragstart: y,
876
876
  onDragenter: D,
877
877
  onDragleave: I,
878
- onDragover: g,
878
+ onDragover: m,
879
879
  onDrop: L,
880
880
  onDragend: f
881
881
  }, [
882
882
  A("div", {
883
883
  class: "x-tree-node__content",
884
- style: F(K.value),
884
+ style: U(K.value),
885
885
  onClick: Y,
886
- onContextmenu: ee
886
+ onContextmenu: q
887
887
  }, [
888
888
  A("span", {
889
889
  class: p(["x-tree-node__expand-icon", {
890
890
  "is-expanded": C.value,
891
891
  "is-leaf": E.value,
892
- "is-loading": W.value
892
+ "is-loading": _.value
893
893
  }]),
894
894
  onClick: v
895
895
  }, [
896
- W.value ? (M(), w("span", pt)) : (M(), w(q, { key: 1 }, [
896
+ _.value ? (M(), w("span", pt)) : (M(), w(te, { key: 1 }, [
897
897
  E.value ? j("", !0) : (M(), w("span", gt))
898
898
  ], 64))
899
899
  ], 2),
900
- s.node.data.icon || u(e).icon ? (M(), w("span", mt, U(s.node.data.icon || u(e).icon), 1)) : j("", !0),
900
+ s.node.data.icon || u(e).icon ? (M(), w("span", mt, X(s.node.data.icon || u(e).icon), 1)) : j("", !0),
901
901
  B.value ? (M(), w("span", {
902
902
  key: 1,
903
903
  class: p(["x-tree-node__checkbox", {
904
904
  "is-checked": S.value,
905
- "is-indeterminate": P.value,
905
+ "is-indeterminate": R.value,
906
906
  "is-disabled": V.value
907
907
  }]),
908
- onClick: ie(b, ["stop"])
908
+ onClick: ue(b, ["stop"])
909
909
  }, [
910
- S.value ? (M(), re(u(te), {
910
+ S.value ? (M(), ce(u(ne), {
911
911
  key: 0,
912
912
  name: "check",
913
913
  size: 12,
914
914
  class: "x-tree-node__checkbox-icon"
915
- })) : P.value ? (M(), re(u(te), {
915
+ })) : R.value ? (M(), ce(u(ne), {
916
916
  key: 1,
917
917
  name: "minus",
918
918
  size: 12,
@@ -920,11 +920,11 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
920
920
  })) : j("", !0)
921
921
  ], 2)) : j("", !0),
922
922
  A("span", yt, [
923
- G(c.$slots, "default", {
923
+ F(i.$slots, "default", {
924
924
  node: s.node,
925
925
  data: s.node.data
926
926
  }, () => [
927
- ae(U(s.node.label), 1)
927
+ oe(X(s.node.label), 1)
928
928
  ])
929
929
  ])
930
930
  ], 36),
@@ -932,14 +932,14 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
932
932
  key: 0,
933
933
  class: p(["x-tree-node__children", { "x-tree-node__children--show-line": u(e).showLine }])
934
934
  }, [
935
- !u(e).renderAfterExpand || C.value ? (M(!0), w(q, { key: 0 }, le(s.node.children, (T) => (M(), re(y, {
935
+ !u(e).renderAfterExpand || C.value ? (M(!0), w(te, { key: 0 }, re(s.node.children, (T) => (M(), ce(g, {
936
936
  key: T.key,
937
937
  node: T
938
938
  }, {
939
- default: Ie((N) => [
940
- G(c.$slots, "default", {
941
- node: N.node,
942
- data: N.data
939
+ default: Ie((H) => [
940
+ F(i.$slots, "default", {
941
+ node: H.node,
942
+ data: H.data
943
943
  })
944
944
  ]),
945
945
  _: 3
@@ -951,14 +951,14 @@ const Ye = ["aria-hidden", "aria-label"], Xe = ["stroke-width"], Qe = ["d"], te
951
951
  };
952
952
  }
953
953
  });
954
- class he {
954
+ class ve {
955
955
  constructor(r, n, e = 0, o = null) {
956
956
  this.data = r, this.store = n, this.level = e, this.parent = o, this.children = [], this.expanded = !1, this.selected = !1, this.checked = !1, this.indeterminate = !1, this.loading = !1, this.visible = !0, this.loaded = !1;
957
- const a = n.props || {}, t = a.value || "value", l = a.label || "label", i = a.disabled || "disabled", z = a.isLeaf || "isLeaf";
958
- this.key = r[t] ?? r.value ?? r.id ?? Math.random().toString(), this.label = r[l] ?? r.label ?? "", this.disabled = r[i] ?? r.disabled ?? !1, this.isLeaf = r[z] ?? r.isLeaf ?? !1;
957
+ const a = n.props || {}, t = a.value || "value", l = a.label || "label", c = a.disabled || "disabled", z = a.isLeaf || "isLeaf";
958
+ this.key = r[t] ?? r.value ?? r.id ?? Math.random().toString(), this.label = r[l] ?? r.label ?? "", this.disabled = r[c] ?? r.disabled ?? !1, this.isLeaf = r[z] ?? r.isLeaf ?? !1;
959
959
  const k = a.children || "children", x = r[k] ?? r.children ?? [];
960
960
  x.length > 0 ? this.children = x.map(
961
- (C) => new he(C, n, e + 1, this)
961
+ (C) => new ve(C, n, e + 1, this)
962
962
  ) : this.isLeaf = !0;
963
963
  }
964
964
  /** 设置展开状态 */
@@ -1077,35 +1077,35 @@ const sn = /* @__PURE__ */ Z({
1077
1077
  indeterminateKeys: /* @__PURE__ */ new Set(),
1078
1078
  currentKey: null,
1079
1079
  filterValue: ""
1080
- }), l = _(""), i = () => e.fieldNames ? {
1080
+ }), l = O(""), c = () => e.fieldNames ? {
1081
1081
  value: e.fieldNames.key || "value",
1082
1082
  label: e.fieldNames.title || e.fieldNames.key || "label",
1083
1083
  children: e.fieldNames.children || "children",
1084
1084
  disabled: e.fieldNames.disabled || "disabled",
1085
1085
  isLeaf: e.fieldNames.isLeaf || "isLeaf"
1086
1086
  } : e.props, z = () => e.treeData || e.data || [];
1087
- t.props = i();
1087
+ t.props = c();
1088
1088
  const k = (f) => {
1089
1089
  if (t.nodesMap.clear(), t.rootNodes = [], t.checkedKeys.clear(), t.indeterminateKeys.clear(), !f || !f.length) return;
1090
- const c = i(), d = (y, h, T) => {
1091
- const N = new he(y, t, h, T);
1092
- t.nodesMap.set(N.key, N);
1093
- const R = (c == null ? void 0 : c.children) || "children", X = y[R] ?? y.children ?? [];
1094
- return X.length > 0 && (N.children = X.map(
1095
- (O) => d(O, h + 1, N)
1096
- ), N.isLeaf = !1), N;
1090
+ const i = c(), d = (g, h, T) => {
1091
+ const H = new ve(g, t, h, T);
1092
+ t.nodesMap.set(H.key, H);
1093
+ const P = (i == null ? void 0 : i.children) || "children", W = g[P] ?? g.children ?? [];
1094
+ return W.length > 0 && (H.children = W.map(
1095
+ (ee) => d(ee, h + 1, H)
1096
+ ), H.isLeaf = !1), H;
1097
1097
  };
1098
- t.rootNodes = f.map((y) => d(y, 0, null)), x();
1098
+ t.rootNodes = f.map((g) => d(g, 0, null)), x();
1099
1099
  }, x = () => {
1100
- var f, c, d;
1101
- e.defaultExpandAll ? C() : (f = e.defaultExpandedKeys) != null && f.length && e.defaultExpandedKeys.forEach((y) => {
1102
- const h = t.nodesMap.get(y);
1103
- h && (h.expanded = !0, t.expandedKeys.add(y));
1104
- }), (c = e.defaultCheckedKeys) != null && c.length && e.defaultCheckedKeys.forEach((y) => {
1105
- const h = t.nodesMap.get(y);
1100
+ var f, i, d;
1101
+ e.defaultExpandAll ? C() : (f = e.defaultExpandedKeys) != null && f.length && e.defaultExpandedKeys.forEach((g) => {
1102
+ const h = t.nodesMap.get(g);
1103
+ h && (h.expanded = !0, t.expandedKeys.add(g));
1104
+ }), (i = e.defaultCheckedKeys) != null && i.length && e.defaultCheckedKeys.forEach((g) => {
1105
+ const h = t.nodesMap.get(g);
1106
1106
  h && h.setChecked(!0, !e.checkStrictly);
1107
- }), (d = e.checkedKeys) != null && d.length && e.checkedKeys.forEach((y) => {
1108
- const h = t.nodesMap.get(y);
1107
+ }), (d = e.checkedKeys) != null && d.length && e.checkedKeys.forEach((g) => {
1108
+ const h = t.nodesMap.get(g);
1109
1109
  h && h.setChecked(!0, !e.checkStrictly);
1110
1110
  });
1111
1111
  }, C = () => {
@@ -1116,171 +1116,171 @@ const sn = /* @__PURE__ */ Z({
1116
1116
  t.nodesMap.forEach((f) => {
1117
1117
  f.expanded = !1;
1118
1118
  }), t.expandedKeys.clear();
1119
- }, P = (f) => {
1119
+ }, R = (f) => {
1120
1120
  if (f.disabled) return;
1121
1121
  !f.expanded ? (f.expanded = !0, t.expandedKeys.add(f.key), o("node-expand", f.data, f, null)) : (f.expanded = !1, t.expandedKeys.delete(f.key), o("node-collapse", f.data, f, null));
1122
- }, V = (f, c) => {
1122
+ }, V = (f, i) => {
1123
1123
  if (f.disabled) return;
1124
- const d = c ?? !f.checked;
1124
+ const d = i ?? !f.checked;
1125
1125
  f.setChecked(d, !e.checkStrictly), o("check-change", f.data, f.checked, f.indeterminate);
1126
- const y = [], h = [], T = [], N = [];
1127
- t.nodesMap.forEach((R) => {
1128
- R.checked && (y.push(R.data), h.push(R.key)), R.indeterminate && (T.push(R.data), N.push(R.key));
1126
+ const g = [], h = [], T = [], H = [];
1127
+ t.nodesMap.forEach((P) => {
1128
+ P.checked && (g.push(P.data), h.push(P.key)), P.indeterminate && (T.push(P.data), H.push(P.key));
1129
1129
  }), o("check", f.data, {
1130
- checkedNodes: y,
1130
+ checkedNodes: g,
1131
1131
  checkedKeys: h,
1132
1132
  halfCheckedNodes: T,
1133
- halfCheckedKeys: N
1133
+ halfCheckedKeys: H
1134
1134
  });
1135
- }, W = (f, c) => {
1136
- f.disabled || (o("node-click", f.data, f, null), e.expandOnClickNode && f.children.length > 0 && P(f), e.highlightCurrent && (t.currentKey = f.key, o("current-change", f.data, f)));
1135
+ }, _ = (f, i) => {
1136
+ f.disabled || (o("node-click", f.data, f, null), e.expandOnClickNode && f.children.length > 0 && R(f), e.highlightCurrent && (t.currentKey = f.key, o("current-change", f.data, f)));
1137
1137
  }, E = (f) => {
1138
1138
  if (l.value = f, t.filterValue = f, !f) {
1139
- t.nodesMap.forEach((c) => {
1140
- c.visible = !0;
1139
+ t.nodesMap.forEach((i) => {
1140
+ i.visible = !0;
1141
1141
  });
1142
1142
  return;
1143
1143
  }
1144
- t.nodesMap.forEach((c) => {
1145
- const d = c.label || "";
1146
- c.visible = String(d).toLowerCase().includes(f.toLowerCase());
1147
- }), t.nodesMap.forEach((c) => {
1148
- if (c.visible && c.parent) {
1149
- let d = c.parent;
1144
+ t.nodesMap.forEach((i) => {
1145
+ const d = i.label || "";
1146
+ i.visible = String(d).toLowerCase().includes(f.toLowerCase());
1147
+ }), t.nodesMap.forEach((i) => {
1148
+ if (i.visible && i.parent) {
1149
+ let d = i.parent;
1150
1150
  for (; d; )
1151
1151
  d.visible = !0, d.expanded = !0, t.expandedKeys.add(d.key), d = d.parent;
1152
1152
  }
1153
1153
  });
1154
- }, B = (f) => t.nodesMap.get(f), H = (f) => {
1154
+ }, B = (f) => t.nodesMap.get(f), N = (f) => {
1155
1155
  t.currentKey = f;
1156
1156
  }, K = () => {
1157
1157
  if (t.currentKey)
1158
1158
  return t.nodesMap.get(t.currentKey);
1159
1159
  }, Y = (f = !1) => {
1160
- const c = [];
1160
+ const i = [];
1161
1161
  return t.nodesMap.forEach((d) => {
1162
- d.checked && (!f || d.isLeaf) && c.push(d.data);
1163
- }), c;
1164
- }, ee = (f = !1) => {
1165
- const c = [];
1162
+ d.checked && (!f || d.isLeaf) && i.push(d.data);
1163
+ }), i;
1164
+ }, q = (f = !1) => {
1165
+ const i = [];
1166
1166
  return t.nodesMap.forEach((d) => {
1167
- d.checked && (!f || d.isLeaf) && c.push(d.key);
1168
- }), c;
1167
+ d.checked && (!f || d.isLeaf) && i.push(d.key);
1168
+ }), i;
1169
1169
  }, v = (f) => {
1170
- t.nodesMap.forEach((c) => {
1171
- c.checked = !1, c.indeterminate = !1;
1172
- }), t.checkedKeys.clear(), t.indeterminateKeys.clear(), f.forEach((c) => {
1173
- const d = t.nodesMap.get(c);
1170
+ t.nodesMap.forEach((i) => {
1171
+ i.checked = !1, i.indeterminate = !1;
1172
+ }), t.checkedKeys.clear(), t.indeterminateKeys.clear(), f.forEach((i) => {
1173
+ const d = t.nodesMap.get(i);
1174
1174
  d && d.setChecked(!0, !e.checkStrictly);
1175
1175
  });
1176
1176
  }, b = () => {
1177
1177
  const f = [];
1178
- return t.nodesMap.forEach((c) => {
1179
- c.indeterminate && f.push(c.data);
1178
+ return t.nodesMap.forEach((i) => {
1179
+ i.indeterminate && f.push(i.data);
1180
1180
  }), f;
1181
- }, m = () => {
1181
+ }, y = () => {
1182
1182
  const f = [];
1183
- return t.nodesMap.forEach((c) => {
1184
- c.indeterminate && f.push(c.key);
1183
+ return t.nodesMap.forEach((i) => {
1184
+ i.indeterminate && f.push(i.key);
1185
1185
  }), f;
1186
- }, D = (f, c, d = !0) => {
1187
- const y = t.nodesMap.get(f);
1188
- y && y.setChecked(c, d && !e.checkStrictly);
1186
+ }, D = (f, i, d = !0) => {
1187
+ const g = t.nodesMap.get(f);
1188
+ g && g.setChecked(i, d && !e.checkStrictly);
1189
1189
  }, I = () => {
1190
1190
  const f = [];
1191
- return t.nodesMap.forEach((c) => {
1192
- c.selected && f.push(c.data);
1191
+ return t.nodesMap.forEach((i) => {
1192
+ i.selected && f.push(i.data);
1193
1193
  }), f;
1194
- }, g = (f) => {
1195
- t.nodesMap.forEach((c) => {
1196
- c.selected = !1;
1197
- }), t.selectedKeys.clear(), f.forEach((c) => {
1198
- const d = t.nodesMap.get(c);
1199
- d && (d.selected = !0, t.selectedKeys.add(c));
1194
+ }, m = (f) => {
1195
+ t.nodesMap.forEach((i) => {
1196
+ i.selected = !1;
1197
+ }), t.selectedKeys.clear(), f.forEach((i) => {
1198
+ const d = t.nodesMap.get(i);
1199
+ d && (d.selected = !0, t.selectedKeys.add(i));
1200
1200
  });
1201
1201
  }, L = $(() => e.showCheckbox || e.checkable);
1202
- return ve("tree", {
1202
+ return me("tree", {
1203
1203
  props: e,
1204
1204
  store: t,
1205
1205
  emit: o,
1206
- toggleExpand: P,
1206
+ toggleExpand: R,
1207
1207
  toggleCheck: V,
1208
- handleNodeClick: W,
1208
+ handleNodeClick: _,
1209
1209
  filterValue: je(l),
1210
1210
  showCheckboxComputed: L
1211
1211
  }), r({
1212
1212
  filter: E,
1213
1213
  getNode: B,
1214
- setCurrentKey: H,
1214
+ setCurrentKey: N,
1215
1215
  getCurrentKey: () => t.currentKey,
1216
1216
  getCurrentNode: K,
1217
1217
  getCheckedNodes: Y,
1218
- getCheckedKeys: ee,
1218
+ getCheckedKeys: q,
1219
1219
  setCheckedKeys: v,
1220
1220
  getHalfCheckedNodes: b,
1221
- getHalfCheckedKeys: m,
1221
+ getHalfCheckedKeys: y,
1222
1222
  setChecked: D,
1223
1223
  getSelectedNodes: I,
1224
- setSelectedKeys: g,
1224
+ setSelectedKeys: m,
1225
1225
  expandAll: C,
1226
1226
  collapseAll: S,
1227
1227
  // 额外方法
1228
- updateKeyChildren: (f, c) => {
1228
+ updateKeyChildren: (f, i) => {
1229
1229
  const d = t.nodesMap.get(f);
1230
- d && (d.children.forEach((y) => {
1231
- t.nodesMap.delete(y.key);
1232
- }), d.children = c.map((y) => {
1233
- const h = new he(y, t, d.level + 1, d);
1230
+ d && (d.children.forEach((g) => {
1231
+ t.nodesMap.delete(g.key);
1232
+ }), d.children = i.map((g) => {
1233
+ const h = new ve(g, t, d.level + 1, d);
1234
1234
  return t.nodesMap.set(h.key, h), h;
1235
1235
  }), d.isLeaf = d.children.length === 0);
1236
1236
  },
1237
1237
  remove: (f) => {
1238
- const c = t.nodesMap.get(f);
1239
- if (c) {
1240
- const d = c.parent;
1238
+ const i = t.nodesMap.get(f);
1239
+ if (i) {
1240
+ const d = i.parent;
1241
1241
  if (d) {
1242
- const h = d.children.indexOf(c);
1242
+ const h = d.children.indexOf(i);
1243
1243
  h > -1 && d.children.splice(h, 1), d.children.length === 0 && (d.isLeaf = !0);
1244
1244
  } else {
1245
- const h = t.rootNodes.indexOf(c);
1245
+ const h = t.rootNodes.indexOf(i);
1246
1246
  h > -1 && t.rootNodes.splice(h, 1);
1247
1247
  }
1248
- const y = (h) => {
1249
- t.nodesMap.delete(h.key), h.children.forEach(y);
1248
+ const g = (h) => {
1249
+ t.nodesMap.delete(h.key), h.children.forEach(g);
1250
1250
  };
1251
- y(c);
1251
+ g(i);
1252
1252
  }
1253
1253
  },
1254
- append: (f, c) => {
1255
- if (c) {
1256
- const d = t.nodesMap.get(c);
1254
+ append: (f, i) => {
1255
+ if (i) {
1256
+ const d = t.nodesMap.get(i);
1257
1257
  if (d) {
1258
- const y = new he(f, t, d.level + 1, d);
1259
- t.nodesMap.set(y.key, y), d.children.push(y), d.isLeaf = !1;
1258
+ const g = new ve(f, t, d.level + 1, d);
1259
+ t.nodesMap.set(g.key, g), d.children.push(g), d.isLeaf = !1;
1260
1260
  }
1261
1261
  } else {
1262
- const d = new he(f, t, 0, null);
1262
+ const d = new ve(f, t, 0, null);
1263
1263
  t.nodesMap.set(d.key, d), t.rootNodes.push(d);
1264
1264
  }
1265
1265
  },
1266
- insertBefore: (f, c) => {
1267
- var y;
1268
- const d = t.nodesMap.get(c);
1266
+ insertBefore: (f, i) => {
1267
+ var g;
1268
+ const d = t.nodesMap.get(i);
1269
1269
  if (d) {
1270
- const h = new he(f, t, d.level, d.parent);
1270
+ const h = new ve(f, t, d.level, d.parent);
1271
1271
  t.nodesMap.set(h.key, h);
1272
- const T = ((y = d.parent) == null ? void 0 : y.children) || t.rootNodes, N = T.indexOf(d);
1273
- T.splice(N, 0, h);
1272
+ const T = ((g = d.parent) == null ? void 0 : g.children) || t.rootNodes, H = T.indexOf(d);
1273
+ T.splice(H, 0, h);
1274
1274
  }
1275
1275
  },
1276
- insertAfter: (f, c) => {
1277
- var y;
1278
- const d = t.nodesMap.get(c);
1276
+ insertAfter: (f, i) => {
1277
+ var g;
1278
+ const d = t.nodesMap.get(i);
1279
1279
  if (d) {
1280
- const h = new he(f, t, d.level, d.parent);
1280
+ const h = new ve(f, t, d.level, d.parent);
1281
1281
  t.nodesMap.set(h.key, h);
1282
- const T = ((y = d.parent) == null ? void 0 : y.children) || t.rootNodes, N = T.indexOf(d);
1283
- T.splice(N + 1, 0, h);
1282
+ const T = ((g = d.parent) == null ? void 0 : g.children) || t.rootNodes, H = T.indexOf(d);
1283
+ T.splice(H + 1, 0, h);
1284
1284
  }
1285
1285
  }
1286
1286
  }), se(
@@ -1301,19 +1301,19 @@ const sn = /* @__PURE__ */ Z({
1301
1301
  f && f.length > 0 && !e.checkedKeys && v(f);
1302
1302
  },
1303
1303
  { immediate: !0, deep: !0 }
1304
- ), (f, c) => (M(), w("div", {
1304
+ ), (f, i) => (M(), w("div", {
1305
1305
  class: p([u(a).b(), u(a).m(s.size)])
1306
1306
  }, [
1307
- (M(!0), w(q, null, le(t.rootNodes, (d) => (M(), re(Mt, {
1307
+ (M(!0), w(te, null, re(t.rootNodes, (d) => (M(), ce(Mt, {
1308
1308
  key: d.key,
1309
1309
  node: d
1310
1310
  }, {
1311
- default: Ie((y) => [
1312
- G(f.$slots, "default", {
1313
- node: y.node,
1314
- data: y.data
1311
+ default: Ie((g) => [
1312
+ F(f.$slots, "default", {
1313
+ node: g.node,
1314
+ data: g.data
1315
1315
  }, () => [
1316
- ae(U(y.node.label), 1)
1316
+ oe(X(g.node.label), 1)
1317
1317
  ])
1318
1318
  ]),
1319
1319
  _: 2
@@ -1322,8 +1322,8 @@ const sn = /* @__PURE__ */ Z({
1322
1322
  key: 0,
1323
1323
  class: p(u(a).e("empty"))
1324
1324
  }, [
1325
- G(f.$slots, "empty", {}, () => [
1326
- ae(U(s.emptyText), 1)
1325
+ F(f.$slots, "empty", {}, () => [
1326
+ oe(X(s.emptyText), 1)
1327
1327
  ])
1328
1328
  ], 2))
1329
1329
  ], 2));
@@ -1347,18 +1347,18 @@ const sn = /* @__PURE__ */ Z({
1347
1347
  }, [
1348
1348
  A("div", {
1349
1349
  class: p(u(n).e("image")),
1350
- style: F(e.value)
1350
+ style: U(e.value)
1351
1351
  }, [
1352
- G(a.$slots, "image", {}, () => [
1352
+ F(a.$slots, "image", {}, () => [
1353
1353
  s.image ? (M(), w("img", {
1354
1354
  key: 0,
1355
1355
  src: s.image,
1356
- style: F(e.value),
1356
+ style: U(e.value),
1357
1357
  draggable: "false"
1358
1358
  }, null, 12, kt)) : (M(), w("img", {
1359
1359
  key: 1,
1360
1360
  src: wt,
1361
- style: F(e.value),
1361
+ style: U(e.value),
1362
1362
  draggable: "false"
1363
1363
  }, null, 4))
1364
1364
  ])
@@ -1366,15 +1366,15 @@ const sn = /* @__PURE__ */ Z({
1366
1366
  A("div", {
1367
1367
  class: p(u(n).e("description"))
1368
1368
  }, [
1369
- G(a.$slots, "description", {}, () => [
1370
- A("p", null, U(o.value), 1)
1369
+ F(a.$slots, "description", {}, () => [
1370
+ A("p", null, X(o.value), 1)
1371
1371
  ])
1372
1372
  ], 2),
1373
1373
  a.$slots.default ? (M(), w("div", {
1374
1374
  key: 0,
1375
1375
  class: p(u(n).e("bottom"))
1376
1376
  }, [
1377
- G(a.$slots, "default")
1377
+ F(a.$slots, "default")
1378
1378
  ], 2)) : j("", !0)
1379
1379
  ], 2));
1380
1380
  }
@@ -1386,7 +1386,7 @@ const sn = /* @__PURE__ */ Z({
1386
1386
  },
1387
1387
  setup(s) {
1388
1388
  const r = s, n = J("timeline");
1389
- ve("timeline", {
1389
+ me("timeline", {
1390
1390
  props: r
1391
1391
  });
1392
1392
  const e = $(() => [
@@ -1397,7 +1397,7 @@ const sn = /* @__PURE__ */ Z({
1397
1397
  class: p(e.value),
1398
1398
  role: "timeline"
1399
1399
  }, [
1400
- G(o.$slots, "default")
1400
+ F(o.$slots, "default")
1401
1401
  ], 2));
1402
1402
  }
1403
1403
  }), un = /* @__PURE__ */ Z({
@@ -1430,9 +1430,9 @@ const sn = /* @__PURE__ */ Z({
1430
1430
  }, [
1431
1431
  A("div", {
1432
1432
  class: p(u(n).e("node")),
1433
- style: F(o.value)
1433
+ style: U(o.value)
1434
1434
  }, [
1435
- G(t.$slots, "dot")
1435
+ F(t.$slots, "dot")
1436
1436
  ], 6),
1437
1437
  A("div", {
1438
1438
  class: p(u(n).e("tail"))
@@ -1443,16 +1443,16 @@ const sn = /* @__PURE__ */ Z({
1443
1443
  !s.hideTimestamp && s.timestamp && s.placement === "top" ? (M(), w("div", {
1444
1444
  key: 0,
1445
1445
  class: p(u(n).e("timestamp"))
1446
- }, U(s.timestamp), 3)) : j("", !0),
1446
+ }, X(s.timestamp), 3)) : j("", !0),
1447
1447
  A("div", {
1448
1448
  class: p(u(n).e("content"))
1449
1449
  }, [
1450
- G(t.$slots, "default")
1450
+ F(t.$slots, "default")
1451
1451
  ], 2),
1452
1452
  !s.hideTimestamp && s.timestamp && s.placement === "bottom" ? (M(), w("div", {
1453
1453
  key: 1,
1454
1454
  class: p(u(n).e("timestamp"))
1455
- }, U(s.timestamp), 3)) : j("", !0)
1455
+ }, X(s.timestamp), 3)) : j("", !0)
1456
1456
  ], 2)
1457
1457
  ], 2));
1458
1458
  }
@@ -1471,33 +1471,33 @@ const sn = /* @__PURE__ */ Z({
1471
1471
  },
1472
1472
  emits: ["update:activeIndex", "change"],
1473
1473
  setup(s, { expose: r, emit: n }) {
1474
- const e = s, o = n, a = J("carousel"), t = _(e.activeIndex), l = _(0), i = _(null), z = _(!1);
1475
- ve("carousel", {
1474
+ const e = s, o = n, a = J("carousel"), t = O(e.activeIndex), l = O(0), c = O(null), z = O(!1);
1475
+ me("carousel", {
1476
1476
  currentIndex: t,
1477
1477
  itemCount: l
1478
1478
  });
1479
1479
  const k = (Y) => {
1480
- const ee = t.value;
1481
- e.loop ? t.value = (Y + l.value) % l.value : t.value = Math.max(0, Math.min(Y, l.value - 1)), o("update:activeIndex", t.value), o("change", t.value, ee);
1480
+ const q = t.value;
1481
+ e.loop ? t.value = (Y + l.value) % l.value : t.value = Math.max(0, Math.min(Y, l.value - 1)), o("update:activeIndex", t.value), o("change", t.value, q);
1482
1482
  }, x = () => {
1483
1483
  k(t.value - 1);
1484
1484
  }, C = () => {
1485
1485
  k(t.value + 1);
1486
1486
  }, S = () => {
1487
- e.autoplay && l.value > 1 && (P(), i.value = setInterval(() => {
1487
+ e.autoplay && l.value > 1 && (R(), c.value = setInterval(() => {
1488
1488
  z.value || C();
1489
1489
  }, e.interval));
1490
- }, P = () => {
1491
- i.value && (clearInterval(i.value), i.value = null);
1490
+ }, R = () => {
1491
+ c.value && (clearInterval(c.value), c.value = null);
1492
1492
  }, V = () => {
1493
1493
  z.value = !0, e.arrow;
1494
- }, W = () => {
1494
+ }, _ = () => {
1495
1495
  z.value = !1;
1496
1496
  }, E = (Y) => {
1497
1497
  e.trigger === "hover" && k(Y);
1498
1498
  }, B = (Y) => {
1499
1499
  e.trigger === "click" && k(Y);
1500
- }, H = $(() => ({
1500
+ }, N = $(() => ({
1501
1501
  height: typeof e.height == "number" ? `${e.height}px` : e.height
1502
1502
  })), K = $(() => [
1503
1503
  a.b(),
@@ -1514,22 +1514,22 @@ const sn = /* @__PURE__ */ Z({
1514
1514
  });
1515
1515
  }), pe(() => {
1516
1516
  S();
1517
- }), me(() => {
1518
- P();
1517
+ }), Me(() => {
1518
+ R();
1519
1519
  }), r({
1520
1520
  prev: x,
1521
1521
  next: C,
1522
1522
  setActiveItem: k
1523
- }), (Y, ee) => (M(), w("div", {
1523
+ }), (Y, q) => (M(), w("div", {
1524
1524
  class: p(K.value),
1525
- style: F(H.value),
1525
+ style: U(N.value),
1526
1526
  onMouseenter: V,
1527
- onMouseleave: W
1527
+ onMouseleave: _
1528
1528
  }, [
1529
1529
  A("div", {
1530
1530
  class: p(u(a).e("container"))
1531
1531
  }, [
1532
- G(Y.$slots, "default")
1532
+ F(Y.$slots, "default")
1533
1533
  ], 2),
1534
1534
  s.arrow !== "never" ? (M(), w("button", {
1535
1535
  key: 0,
@@ -1545,7 +1545,7 @@ const sn = /* @__PURE__ */ Z({
1545
1545
  key: 2,
1546
1546
  class: p(u(a).e("indicators"))
1547
1547
  }, [
1548
- (M(!0), w(q, null, le(l.value, (v) => (M(), w("li", {
1548
+ (M(!0), w(te, null, re(l.value, (v) => (M(), w("li", {
1549
1549
  key: v,
1550
1550
  class: p([u(a).e("indicator"), u(a).is("active", v - 1 === t.value)]),
1551
1551
  onMouseenter: (b) => E(v - 1),
@@ -1562,10 +1562,10 @@ const sn = /* @__PURE__ */ Z({
1562
1562
  name: "XCarouselItem",
1563
1563
  __name: "CarouselItem",
1564
1564
  setup(s) {
1565
- const r = J("carousel-item"), n = ge("carousel"), e = _(-1);
1565
+ const r = J("carousel-item"), n = ye("carousel"), e = O(-1);
1566
1566
  pe(() => {
1567
1567
  n && (e.value = n.itemCount.value, n.itemCount.value++);
1568
- }), me(() => {
1568
+ }), Me(() => {
1569
1569
  n && n.itemCount.value--;
1570
1570
  });
1571
1571
  const o = $(() => n && e.value === n.currentIndex.value), a = $(() => [
@@ -1575,7 +1575,7 @@ const sn = /* @__PURE__ */ Z({
1575
1575
  return (t, l) => (M(), w("div", {
1576
1576
  class: p(a.value)
1577
1577
  }, [
1578
- G(t.$slots, "default")
1578
+ F(t.$slots, "default")
1579
1579
  ], 2));
1580
1580
  }
1581
1581
  }), bt = { key: 0 }, Ct = ["onClick"], zt = { class: "sort-arrow up" }, It = { class: "sort-arrow down" }, At = ["onClick"], Dt = ["onClick"], Lt = { key: 1 }, Tt = ["colspan"], Bt = { style: { display: "none" } }, fn = /* @__PURE__ */ Z({
@@ -1596,54 +1596,54 @@ const sn = /* @__PURE__ */ Z({
1596
1596
  },
1597
1597
  emits: ["sort-change", "row-click", "row-dblclick", "cell-click", "selection-change", "select-all", "page-change", "size-change"],
1598
1598
  setup(s, { expose: r, emit: n }) {
1599
- var d, y;
1599
+ var d, g;
1600
1600
  const e = s, o = n, a = J("table");
1601
1601
  be();
1602
1602
  const t = Se([]);
1603
- ve("x-table", {
1603
+ me("x-table", {
1604
1604
  registerColumn: (h, T) => {
1605
- t.findIndex((R) => R.config.prop === h.prop) === -1 && t.push({ config: h, slot: T });
1605
+ t.findIndex((P) => P.config.prop === h.prop) === -1 && t.push({ config: h, slot: T });
1606
1606
  },
1607
1607
  unregisterColumn: (h) => {
1608
- const T = t.findIndex((N) => N.config.prop === h);
1608
+ const T = t.findIndex((H) => H.config.prop === h);
1609
1609
  T !== -1 && t.splice(T, 1);
1610
1610
  },
1611
1611
  updateColumnSlot: (h, T) => {
1612
- const N = t.find((R) => R.config.prop === h);
1613
- N && (N.slot = T);
1612
+ const H = t.find((P) => P.config.prop === h);
1613
+ H && (H.slot = T);
1614
1614
  },
1615
1615
  props: e
1616
1616
  });
1617
1617
  const k = $(() => {
1618
- const h = t.map((X) => X.config), T = h.filter((X) => X.fixed === "left" || X.fixed === !0), N = h.filter((X) => !X.fixed), R = h.filter((X) => X.fixed === "right");
1619
- return [...T, ...N, ...R];
1618
+ const h = t.map((W) => W.config), T = h.filter((W) => W.fixed === "left" || W.fixed === !0), H = h.filter((W) => !W.fixed), P = h.filter((W) => W.fixed === "right");
1619
+ return [...T, ...H, ...P];
1620
1620
  }), x = $(() => k.value.filter((h) => h.fixed === "left" || h.fixed === !0)), C = $(() => k.value.filter((h) => h.fixed === "right"));
1621
1621
  $(() => k.value.filter((h) => !h.fixed)), $(() => x.value.reduce((h, T) => {
1622
- const N = T.width ? typeof T.width == "number" ? T.width : parseInt(T.width) : 100;
1623
- return h + N;
1622
+ const H = T.width ? typeof T.width == "number" ? T.width : parseInt(T.width) : 100;
1623
+ return h + H;
1624
1624
  }, 0)), $(() => C.value.reduce((h, T) => {
1625
- const N = T.width ? typeof T.width == "number" ? T.width : parseInt(T.width) : 100;
1626
- return h + N;
1625
+ const H = T.width ? typeof T.width == "number" ? T.width : parseInt(T.width) : 100;
1626
+ return h + H;
1627
1627
  }, 0));
1628
1628
  const S = $(() => {
1629
1629
  const h = {};
1630
1630
  return t.forEach((T) => {
1631
1631
  T.slot && (h[T.config.prop] = T.slot);
1632
1632
  }), h;
1633
- }), P = _({
1633
+ }), R = O({
1634
1634
  prop: ((d = e.defaultSort) == null ? void 0 : d.prop) || "",
1635
- order: ((y = e.defaultSort) == null ? void 0 : y.order) || null
1635
+ order: ((g = e.defaultSort) == null ? void 0 : g.order) || null
1636
1636
  }), V = $(() => {
1637
- if (!P.value.prop || !P.value.order)
1637
+ if (!R.value.prop || !R.value.order)
1638
1638
  return e.data;
1639
- const { prop: h, order: T } = P.value;
1640
- return [...e.data].sort((N, R) => {
1641
- const X = N[h], O = R[h];
1642
- if (X === O) return 0;
1643
- const Q = X > O ? 1 : -1;
1644
- return T === "ascending" ? Q : -Q;
1639
+ const { prop: h, order: T } = R.value;
1640
+ return [...e.data].sort((H, P) => {
1641
+ const W = H[h], ee = P[h];
1642
+ if (W === ee) return 0;
1643
+ const ae = W > ee ? 1 : -1;
1644
+ return T === "ascending" ? ae : -ae;
1645
1645
  });
1646
- }), W = $(() => {
1646
+ }), _ = $(() => {
1647
1647
  const h = {};
1648
1648
  return e.height && (h.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (h.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), h;
1649
1649
  }), E = $(() => [
@@ -1653,58 +1653,58 @@ const sn = /* @__PURE__ */ Z({
1653
1653
  a.is("loading", e.loading),
1654
1654
  a.is("has-fixed", x.value.length > 0 || C.value.length > 0)
1655
1655
  ]), B = (h) => {
1656
- h.sortable && (P.value.prop === h.prop ? P.value.order === "ascending" ? P.value.order = "descending" : P.value.order === "descending" && (P.value.order = null, P.value.prop = "") : (P.value.prop = h.prop, P.value.order = "ascending"), o("sort-change", { ...P.value }));
1657
- }, H = (h) => h.sortable ? P.value.prop !== h.prop ? a.is("sortable") : [
1656
+ h.sortable && (R.value.prop === h.prop ? R.value.order === "ascending" ? R.value.order = "descending" : R.value.order === "descending" && (R.value.order = null, R.value.prop = "") : (R.value.prop = h.prop, R.value.order = "ascending"), o("sort-change", { ...R.value }));
1657
+ }, N = (h) => h.sortable ? R.value.prop !== h.prop ? a.is("sortable") : [
1658
1658
  a.is("sortable"),
1659
- a.is(`sort-${P.value.order}`)
1660
- ] : "", K = (h, T, N) => {
1661
- const R = h[T.prop];
1662
- return T.formatter ? T.formatter(h, T, R, N) : R ?? "";
1659
+ a.is(`sort-${R.value.order}`)
1660
+ ] : "", K = (h, T, H) => {
1661
+ const P = h[T.prop];
1662
+ return T.formatter ? T.formatter(h, T, P, H) : P ?? "";
1663
1663
  }, Y = (h, T) => {
1664
1664
  o("row-click", h, k.value[0], T);
1665
- }, ee = (h, T, N) => {
1666
- const R = N.target;
1667
- o("cell-click", h, T, R, N);
1665
+ }, q = (h, T, H) => {
1666
+ const P = H.target;
1667
+ o("cell-click", h, T, P, H);
1668
1668
  }, v = (h) => {
1669
1669
  o("page-change", h);
1670
1670
  }, b = (h) => {
1671
1671
  o("size-change", h);
1672
- }, m = (h, T, N) => {
1673
- const R = {};
1674
- if (h.width && (R.width = typeof h.width == "number" ? `${h.width}px` : h.width), h.minWidth && (R.minWidth = typeof h.minWidth == "number" ? `${h.minWidth}px` : h.minWidth), h.align && (R.textAlign = h.align), (h.fixed === "left" || h.fixed === !0) && (R.position = "sticky", R.left = "0px", R.zIndex = "2", T !== void 0 && T > 0)) {
1675
- let X = 0;
1676
- for (let O = 0; O < T; O++) {
1677
- const Q = x.value[O], ye = Q.width ? typeof Q.width == "number" ? Q.width : parseInt(Q.width) : 100;
1678
- X += ye;
1672
+ }, y = (h, T, H) => {
1673
+ const P = {};
1674
+ if (h.width && (P.width = typeof h.width == "number" ? `${h.width}px` : h.width), h.minWidth && (P.minWidth = typeof h.minWidth == "number" ? `${h.minWidth}px` : h.minWidth), h.align && (P.textAlign = h.align), (h.fixed === "left" || h.fixed === !0) && (P.position = "sticky", P.left = "0px", P.zIndex = "2", T !== void 0 && T > 0)) {
1675
+ let W = 0;
1676
+ for (let ee = 0; ee < T; ee++) {
1677
+ const ae = x.value[ee], Q = ae.width ? typeof ae.width == "number" ? ae.width : parseInt(ae.width) : 100;
1678
+ W += Q;
1679
1679
  }
1680
- R.left = `${X}px`;
1680
+ P.left = `${W}px`;
1681
1681
  }
1682
- if (h.fixed === "right" && (R.position = "sticky", R.right = "0px", R.zIndex = "2", T !== void 0)) {
1683
- const X = C.value, O = X.length - 1 - T;
1684
- if (O > 0) {
1685
- let Q = 0;
1686
- for (let ye = 0; ye < O; ye++) {
1687
- const we = X[X.length - 1 - ye], He = we.width ? typeof we.width == "number" ? we.width : parseInt(we.width) : 100;
1688
- Q += He;
1682
+ if (h.fixed === "right" && (P.position = "sticky", P.right = "0px", P.zIndex = "2", T !== void 0)) {
1683
+ const W = C.value, ee = W.length - 1 - T;
1684
+ if (ee > 0) {
1685
+ let ae = 0;
1686
+ for (let Q = 0; Q < ee; Q++) {
1687
+ const G = W[W.length - 1 - Q], He = G.width ? typeof G.width == "number" ? G.width : parseInt(G.width) : 100;
1688
+ ae += He;
1689
1689
  }
1690
- R.right = `${Q}px`;
1690
+ P.right = `${ae}px`;
1691
1691
  }
1692
1692
  }
1693
- return R;
1693
+ return P;
1694
1694
  }, D = (h) => {
1695
1695
  const T = [];
1696
1696
  return (h.fixed === "left" || h.fixed === !0) && T.push(a.is("fixed-left")), h.fixed === "right" && T.push(a.is("fixed-right")), T;
1697
- }, I = _([]), g = (h) => e.rowKey ? typeof e.rowKey == "function" ? e.rowKey(h) : String(h[e.rowKey]) : String(e.data.indexOf(h));
1697
+ }, I = O([]), m = (h) => e.rowKey ? typeof e.rowKey == "function" ? e.rowKey(h) : String(h[e.rowKey]) : String(e.data.indexOf(h));
1698
1698
  return r({
1699
1699
  clearSelection: () => {
1700
1700
  I.value = [], o("selection-change", []);
1701
1701
  },
1702
1702
  getSelection: () => [...I.value],
1703
1703
  toggleRowSelection: (h, T) => {
1704
- const N = g(h), R = I.value.findIndex((X) => g(X) === N);
1705
- T === void 0 ? R > -1 ? I.value.splice(R, 1) : I.value.push(h) : T && R === -1 ? I.value.push(h) : !T && R > -1 && I.value.splice(R, 1), o("selection-change", [...I.value]);
1704
+ const H = m(h), P = I.value.findIndex((W) => m(W) === H);
1705
+ T === void 0 ? P > -1 ? I.value.splice(P, 1) : I.value.push(h) : T && P === -1 ? I.value.push(h) : !T && P > -1 && I.value.splice(P, 1), o("selection-change", [...I.value]);
1706
1706
  },
1707
- sortState: P,
1707
+ sortState: R,
1708
1708
  columns: k
1709
1709
  }), (h, T) => (M(), w("div", {
1710
1710
  class: p(E.value)
@@ -1718,30 +1718,30 @@ const sn = /* @__PURE__ */ Z({
1718
1718
  ])], 2)) : j("", !0),
1719
1719
  A("div", {
1720
1720
  class: p(u(a).e("wrapper")),
1721
- style: F(W.value)
1721
+ style: U(_.value)
1722
1722
  }, [
1723
1723
  A("table", null, [
1724
1724
  s.showHeader ? (M(), w("thead", bt, [
1725
1725
  A("tr", null, [
1726
- (M(!0), w(q, null, le(k.value, (N, R) => (M(), w("th", {
1727
- key: N.prop,
1728
- class: p([u(a).e("header-cell"), H(N), ...D(N)]),
1729
- style: F(m(N, N.fixed === "right" ? C.value.indexOf(N) : R)),
1730
- onClick: (X) => B(N)
1726
+ (M(!0), w(te, null, re(k.value, (H, P) => (M(), w("th", {
1727
+ key: H.prop,
1728
+ class: p([u(a).e("header-cell"), N(H), ...D(H)]),
1729
+ style: U(y(H, H.fixed === "right" ? C.value.indexOf(H) : P)),
1730
+ onClick: (W) => B(H)
1731
1731
  }, [
1732
- A("span", null, U(N.label), 1),
1733
- N.sortable ? (M(), w("span", {
1732
+ A("span", null, X(H.label), 1),
1733
+ H.sortable ? (M(), w("span", {
1734
1734
  key: 0,
1735
1735
  class: p(u(a).e("sort-icon"))
1736
1736
  }, [
1737
1737
  A("span", zt, [
1738
- ne(u(te), {
1738
+ le(u(ne), {
1739
1739
  name: "sort-up",
1740
1740
  size: 12
1741
1741
  })
1742
1742
  ]),
1743
1743
  A("span", It, [
1744
- ne(u(te), {
1744
+ le(u(ne), {
1745
1745
  name: "sort-down",
1746
1746
  size: 12
1747
1747
  })
@@ -1751,19 +1751,19 @@ const sn = /* @__PURE__ */ Z({
1751
1751
  ])
1752
1752
  ])) : j("", !0),
1753
1753
  A("tbody", null, [
1754
- (M(!0), w(q, null, le(V.value, (N, R) => (M(), w("tr", {
1755
- key: s.rowKey ? typeof s.rowKey == "function" ? s.rowKey(N) : N[s.rowKey] : R,
1754
+ (M(!0), w(te, null, re(V.value, (H, P) => (M(), w("tr", {
1755
+ key: s.rowKey ? typeof s.rowKey == "function" ? s.rowKey(H) : H[s.rowKey] : P,
1756
1756
  class: p([u(a).e("row")]),
1757
- onClick: (X) => Y(N, X)
1757
+ onClick: (W) => Y(H, W)
1758
1758
  }, [
1759
- (M(!0), w(q, null, le(k.value, (X, O) => (M(), w("td", {
1760
- key: X.prop,
1761
- class: p([u(a).e("cell"), ...D(X)]),
1762
- style: F(m(X, X.fixed === "right" ? C.value.indexOf(X) : O)),
1763
- onClick: (Q) => ee(N, X, Q)
1759
+ (M(!0), w(te, null, re(k.value, (W, ee) => (M(), w("td", {
1760
+ key: W.prop,
1761
+ class: p([u(a).e("cell"), ...D(W)]),
1762
+ style: U(y(W, W.fixed === "right" ? C.value.indexOf(W) : ee)),
1763
+ onClick: (ae) => q(H, W, ae)
1764
1764
  }, [
1765
- S.value[X.prop] ? (M(), re(xe(() => S.value[X.prop]({ row: N, column: X, $index: R })), { key: 0 })) : (M(), w(q, { key: 1 }, [
1766
- ae(U(K(N, X, R)), 1)
1765
+ S.value[W.prop] ? (M(), ce(xe(() => S.value[W.prop]({ row: H, column: W, $index: P })), { key: 0 })) : (M(), w(te, { key: 1 }, [
1766
+ oe(X(K(H, W, P)), 1)
1767
1767
  ], 64))
1768
1768
  ], 14, Dt))), 128))
1769
1769
  ], 10, At))), 128))
@@ -1774,8 +1774,8 @@ const sn = /* @__PURE__ */ Z({
1774
1774
  colspan: k.value.length || 1,
1775
1775
  class: p(u(a).e("empty"))
1776
1776
  }, [
1777
- G(h.$slots, "empty", {}, () => [
1778
- ae(U(s.emptyText), 1)
1777
+ F(h.$slots, "empty", {}, () => [
1778
+ oe(X(s.emptyText), 1)
1779
1779
  ])
1780
1780
  ], 10, Tt)
1781
1781
  ])
@@ -1786,7 +1786,7 @@ const sn = /* @__PURE__ */ Z({
1786
1786
  key: 1,
1787
1787
  class: p(u(a).e("pagination"))
1788
1788
  }, [
1789
- ne(nt, {
1789
+ le(nt, {
1790
1790
  total: s.pagination.total,
1791
1791
  "current-page": s.pagination.current,
1792
1792
  "page-size": s.pagination.pageSize,
@@ -1795,7 +1795,7 @@ const sn = /* @__PURE__ */ Z({
1795
1795
  }, null, 8, ["total", "current-page", "page-size"])
1796
1796
  ], 2)) : j("", !0),
1797
1797
  A("div", Bt, [
1798
- G(h.$slots, "default")
1798
+ F(h.$slots, "default")
1799
1799
  ])
1800
1800
  ], 2));
1801
1801
  }
@@ -1815,7 +1815,7 @@ const sn = /* @__PURE__ */ Z({
1815
1815
  setup(s) {
1816
1816
  const r = s;
1817
1817
  J("table-column");
1818
- const n = be(), e = _(`column_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`), o = ge("x-table"), a = $(() => ({
1818
+ const n = be(), e = O(`column_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`), o = ye("x-table"), a = $(() => ({
1819
1819
  prop: r.prop || e.value,
1820
1820
  label: r.label,
1821
1821
  width: r.width,
@@ -1829,11 +1829,11 @@ const sn = /* @__PURE__ */ Z({
1829
1829
  o != null && o.registerColumn && o.registerColumn(a.value, n.default);
1830
1830
  }), se(() => n.default, (t) => {
1831
1831
  o != null && o.updateColumnSlot && t && o.updateColumnSlot(r.prop || e.value, t);
1832
- }, { immediate: !0 }), me(() => {
1832
+ }, { immediate: !0 }), Me(() => {
1833
1833
  o != null && o.unregisterColumn && o.unregisterColumn(r.prop || e.value);
1834
1834
  }), (t, l) => null;
1835
1835
  }
1836
- }), St = { key: 0 }, Et = ["onClick"], Nt = { class: "sort-arrow up" }, Kt = { class: "sort-arrow down" }, Ht = ["onClick"], Vt = { key: 0 }, Pt = ["colspan"], Rt = { style: { display: "none" } }, vn = /* @__PURE__ */ Z({
1836
+ }), St = { key: 0 }, Et = ["onClick"], Nt = { class: "sort-arrow up" }, Kt = { class: "sort-arrow down" }, Ht = ["onClick"], Vt = { key: 0 }, Rt = ["colspan"], Pt = { style: { display: "none" } }, vn = /* @__PURE__ */ Z({
1837
1837
  name: "XTreeTable",
1838
1838
  __name: "index",
1839
1839
  props: {
@@ -1853,103 +1853,103 @@ const sn = /* @__PURE__ */ Z({
1853
1853
  },
1854
1854
  emits: ["row-click", "cell-click", "expand-change", "sort-change"],
1855
1855
  setup(s, { expose: r, emit: n }) {
1856
- const e = s, o = n, a = J("tree-table"), t = _(/* @__PURE__ */ new Set()), l = _([]), i = _({});
1857
- ve("x-tree-table", {
1858
- registerColumn: (g, L) => {
1859
- const f = l.value.findIndex((c) => c.prop === g.prop);
1860
- f === -1 ? l.value.push(g) : l.value[f] = g, L && (i.value[g.prop] = L);
1856
+ const e = s, o = n, a = J("tree-table"), t = O(/* @__PURE__ */ new Set()), l = O([]), c = O({});
1857
+ me("x-tree-table", {
1858
+ registerColumn: (m, L) => {
1859
+ const f = l.value.findIndex((i) => i.prop === m.prop);
1860
+ f === -1 ? l.value.push(m) : l.value[f] = m, L && (c.value[m.prop] = L);
1861
1861
  },
1862
- unregisterColumn: (g) => {
1863
- const L = l.value.findIndex((f) => f.prop === g);
1864
- L > -1 && l.value.splice(L, 1), delete i.value[g];
1862
+ unregisterColumn: (m) => {
1863
+ const L = l.value.findIndex((f) => f.prop === m);
1864
+ L > -1 && l.value.splice(L, 1), delete c.value[m];
1865
1865
  },
1866
- updateColumnSlot: (g, L) => {
1867
- i.value[g] = L;
1866
+ updateColumnSlot: (m, L) => {
1867
+ c.value[m] = L;
1868
1868
  },
1869
1869
  props: e
1870
1870
  });
1871
- const C = (g) => typeof e.rowKey == "function" ? e.rowKey(g) : g[e.rowKey || "id"], S = (g) => {
1871
+ const C = (m) => typeof e.rowKey == "function" ? e.rowKey(m) : m[e.rowKey || "id"], S = (m) => {
1872
1872
  var f;
1873
1873
  const L = ((f = e.treeProps) == null ? void 0 : f.children) || "children";
1874
- return g[L] || [];
1875
- }, P = (g) => {
1876
- var c;
1877
- if (S(g).length > 0) return !0;
1878
- const f = ((c = e.treeProps) == null ? void 0 : c.hasChildren) || "hasChildren";
1879
- return g[f] === !0;
1880
- }, V = (g) => {
1881
- const L = C(g);
1874
+ return m[L] || [];
1875
+ }, R = (m) => {
1876
+ var i;
1877
+ if (S(m).length > 0) return !0;
1878
+ const f = ((i = e.treeProps) == null ? void 0 : i.hasChildren) || "hasChildren";
1879
+ return m[f] === !0;
1880
+ }, V = (m) => {
1881
+ const L = C(m);
1882
1882
  return t.value.has(L);
1883
- }, W = (g) => {
1884
- const L = C(g), f = !t.value.has(L);
1885
- f ? t.value.add(L) : t.value.delete(L), o("expand-change", g, f);
1883
+ }, _ = (m) => {
1884
+ const L = C(m), f = !t.value.has(L);
1885
+ f ? t.value.add(L) : t.value.delete(L), o("expand-change", m, f);
1886
1886
  }, E = () => {
1887
- const g = (L) => {
1887
+ const m = (L) => {
1888
1888
  L.forEach((f) => {
1889
- P(f) && (t.value.add(C(f)), g(S(f)));
1889
+ R(f) && (t.value.add(C(f)), m(S(f)));
1890
1890
  });
1891
1891
  };
1892
- g(e.data);
1892
+ m(e.data);
1893
1893
  }, B = () => {
1894
1894
  t.value.clear();
1895
- }, H = $(() => {
1896
- const g = [], L = (f, c = 0, d = !0) => {
1897
- f.forEach((y) => {
1898
- const h = C(y), T = t.value.has(h), N = d;
1899
- g.push({ row: y, level: c, visible: N });
1900
- const R = S(y);
1901
- R.length > 0 && T && L(R, c + 1, N);
1895
+ }, N = $(() => {
1896
+ const m = [], L = (f, i = 0, d = !0) => {
1897
+ f.forEach((g) => {
1898
+ const h = C(g), T = t.value.has(h), H = d;
1899
+ m.push({ row: g, level: i, visible: H });
1900
+ const P = S(g);
1901
+ P.length > 0 && T && L(P, i + 1, H);
1902
1902
  });
1903
1903
  };
1904
- return L(e.data), g;
1905
- }), K = _({
1904
+ return L(e.data), m;
1905
+ }), K = O({
1906
1906
  prop: "",
1907
1907
  order: null
1908
1908
  }), Y = $(() => {
1909
1909
  if (!K.value.prop || !K.value.order)
1910
- return H.value;
1911
- const { prop: g, order: L } = K.value;
1912
- return [...H.value].sort((f, c) => {
1913
- const d = f.row[g], y = c.row[g];
1914
- if (d === y) return 0;
1915
- const h = d > y ? 1 : -1;
1910
+ return N.value;
1911
+ const { prop: m, order: L } = K.value;
1912
+ return [...N.value].sort((f, i) => {
1913
+ const d = f.row[m], g = i.row[m];
1914
+ if (d === g) return 0;
1915
+ const h = d > g ? 1 : -1;
1916
1916
  return L === "ascending" ? h : -h;
1917
1917
  });
1918
- }), ee = (g) => {
1919
- g.sortable && (K.value.prop === g.prop ? K.value.order === "ascending" ? K.value.order = "descending" : K.value.order === "descending" && (K.value.order = null, K.value.prop = "") : (K.value.prop = g.prop, K.value.order = "ascending"), o("sort-change", { ...K.value }));
1920
- }, v = (g) => g.sortable ? K.value.prop !== g.prop ? a.is("sortable") : [
1918
+ }), q = (m) => {
1919
+ m.sortable && (K.value.prop === m.prop ? K.value.order === "ascending" ? K.value.order = "descending" : K.value.order === "descending" && (K.value.order = null, K.value.prop = "") : (K.value.prop = m.prop, K.value.order = "ascending"), o("sort-change", { ...K.value }));
1920
+ }, v = (m) => m.sortable ? K.value.prop !== m.prop ? a.is("sortable") : [
1921
1921
  a.is("sortable"),
1922
1922
  a.is(`sort-${K.value.order}`)
1923
- ] : "", b = (g, L, f) => {
1924
- const c = g[L.prop];
1925
- return L.formatter ? L.formatter(g, L, c, f) : c ?? "";
1926
- }, m = (g) => {
1923
+ ] : "", b = (m, L, f) => {
1924
+ const i = m[L.prop];
1925
+ return L.formatter ? L.formatter(m, L, i, f) : i ?? "";
1926
+ }, y = (m) => {
1927
1927
  const L = {};
1928
- return g.width && (L.width = typeof g.width == "number" ? `${g.width}px` : g.width), g.minWidth && (L.minWidth = typeof g.minWidth == "number" ? `${g.minWidth}px` : g.minWidth), g.align && (L.textAlign = g.align), L;
1928
+ return m.width && (L.width = typeof m.width == "number" ? `${m.width}px` : m.width), m.minWidth && (L.minWidth = typeof m.minWidth == "number" ? `${m.minWidth}px` : m.minWidth), m.align && (L.textAlign = m.align), L;
1929
1929
  }, D = $(() => [
1930
1930
  a.b(),
1931
1931
  a.is("border", e.border),
1932
1932
  a.is("stripe", e.stripe),
1933
1933
  a.is("loading", e.loading)
1934
1934
  ]), I = () => {
1935
- var g;
1936
- e.defaultExpandAll ? E() : (g = e.defaultExpandedKeys) != null && g.length && e.defaultExpandedKeys.forEach((L) => {
1935
+ var m;
1936
+ e.defaultExpandAll ? E() : (m = e.defaultExpandedKeys) != null && m.length && e.defaultExpandedKeys.forEach((L) => {
1937
1937
  t.value.add(L);
1938
1938
  });
1939
1939
  };
1940
1940
  return se(() => e.data, () => {
1941
1941
  I();
1942
- }, { immediate: !0 }), se(() => e.defaultExpandedKeys, (g) => {
1943
- g != null && g.length && !e.defaultExpandAll && (t.value.clear(), g.forEach((L) => {
1942
+ }, { immediate: !0 }), se(() => e.defaultExpandedKeys, (m) => {
1943
+ m != null && m.length && !e.defaultExpandAll && (t.value.clear(), m.forEach((L) => {
1944
1944
  t.value.add(L);
1945
1945
  }));
1946
1946
  }, { immediate: !0 }), r({
1947
1947
  expandAll: E,
1948
1948
  collapseAll: B,
1949
- toggleExpand: W,
1949
+ toggleExpand: _,
1950
1950
  expandedKeys: t,
1951
1951
  columns: l
1952
- }), (g, L) => (M(), w("div", {
1952
+ }), (m, L) => (M(), w("div", {
1953
1953
  class: p(D.value)
1954
1954
  }, [
1955
1955
  s.loading ? (M(), w("div", {
@@ -1965,25 +1965,25 @@ const sn = /* @__PURE__ */ Z({
1965
1965
  A("table", null, [
1966
1966
  s.showHeader ? (M(), w("thead", St, [
1967
1967
  A("tr", null, [
1968
- (M(!0), w(q, null, le(l.value, (f) => (M(), w("th", {
1968
+ (M(!0), w(te, null, re(l.value, (f) => (M(), w("th", {
1969
1969
  key: f.prop,
1970
1970
  class: p([u(a).e("header-cell"), v(f)]),
1971
- style: F(m(f)),
1972
- onClick: (c) => ee(f)
1971
+ style: U(y(f)),
1972
+ onClick: (i) => q(f)
1973
1973
  }, [
1974
- A("span", null, U(f.label), 1),
1974
+ A("span", null, X(f.label), 1),
1975
1975
  f.sortable ? (M(), w("span", {
1976
1976
  key: 0,
1977
1977
  class: p(u(a).e("sort-icon"))
1978
1978
  }, [
1979
1979
  A("span", Nt, [
1980
- ne(u(te), {
1980
+ le(u(ne), {
1981
1981
  name: "sort-up",
1982
1982
  size: 12
1983
1983
  })
1984
1984
  ]),
1985
1985
  A("span", Kt, [
1986
- ne(u(te), {
1986
+ le(u(ne), {
1987
1987
  name: "sort-down",
1988
1988
  size: 12
1989
1989
  })
@@ -1993,36 +1993,36 @@ const sn = /* @__PURE__ */ Z({
1993
1993
  ])
1994
1994
  ])) : j("", !0),
1995
1995
  A("tbody", null, [
1996
- (M(!0), w(q, null, le(Y.value, (f, c) => (M(), w(q, {
1996
+ (M(!0), w(te, null, re(Y.value, (f, i) => (M(), w(te, {
1997
1997
  key: C(f.row)
1998
1998
  }, [
1999
1999
  f.visible ? (M(), w("tr", {
2000
2000
  key: 0,
2001
2001
  class: p([u(a).e("row"), u(a).is("level-" + f.level)])
2002
2002
  }, [
2003
- (M(!0), w(q, null, le(l.value, (d, y) => (M(), w("td", {
2003
+ (M(!0), w(te, null, re(l.value, (d, g) => (M(), w("td", {
2004
2004
  key: d.prop,
2005
2005
  class: p(u(a).e("cell")),
2006
- style: F(m(d))
2006
+ style: U(y(d))
2007
2007
  }, [
2008
- y === 0 ? (M(), w("div", {
2008
+ g === 0 ? (M(), w("div", {
2009
2009
  key: 0,
2010
2010
  class: p(u(a).e("cell-content"))
2011
2011
  }, [
2012
2012
  A("span", {
2013
2013
  class: p(u(a).e("indent")),
2014
- style: F({ width: `${f.level * s.indent}px` })
2014
+ style: U({ width: `${f.level * s.indent}px` })
2015
2015
  }, null, 6),
2016
- P(f.row) ? (M(), w("span", {
2016
+ R(f.row) ? (M(), w("span", {
2017
2017
  key: 0,
2018
2018
  class: p([u(a).e("expand-icon"), u(a).is("expanded", V(f.row))]),
2019
- onClick: ie((h) => W(f.row), ["stop"])
2019
+ onClick: ue((h) => _(f.row), ["stop"])
2020
2020
  }, [
2021
- V(f.row) ? (M(), re(u(te), {
2021
+ V(f.row) ? (M(), ce(u(ne), {
2022
2022
  key: 0,
2023
2023
  name: "chevron-down",
2024
2024
  size: 14
2025
- })) : (M(), re(u(te), {
2025
+ })) : (M(), ce(u(ne), {
2026
2026
  key: 1,
2027
2027
  name: "chevron-right",
2028
2028
  size: 14
@@ -2032,12 +2032,12 @@ const sn = /* @__PURE__ */ Z({
2032
2032
  class: p(u(a).e("expand-placeholder"))
2033
2033
  }, null, 2)),
2034
2034
  A("span", null, [
2035
- i.value[d.prop] ? (M(), re(xe(() => i.value[d.prop]({ row: f.row, column: d, $index: c })), { key: 0 })) : (M(), w(q, { key: 1 }, [
2036
- ae(U(b(f.row, d, c)), 1)
2035
+ c.value[d.prop] ? (M(), ce(xe(() => c.value[d.prop]({ row: f.row, column: d, $index: i })), { key: 0 })) : (M(), w(te, { key: 1 }, [
2036
+ oe(X(b(f.row, d, i)), 1)
2037
2037
  ], 64))
2038
2038
  ])
2039
- ], 2)) : i.value[d.prop] ? (M(), re(xe(() => i.value[d.prop]({ row: f.row, column: d, $index: c })), { key: 1 })) : (M(), w(q, { key: 2 }, [
2040
- ae(U(b(f.row, d, c)), 1)
2039
+ ], 2)) : c.value[d.prop] ? (M(), ce(xe(() => c.value[d.prop]({ row: f.row, column: d, $index: i })), { key: 1 })) : (M(), w(te, { key: 2 }, [
2040
+ oe(X(b(f.row, d, i)), 1)
2041
2041
  ], 64))
2042
2042
  ], 6))), 128))
2043
2043
  ], 2)) : j("", !0)
@@ -2047,16 +2047,16 @@ const sn = /* @__PURE__ */ Z({
2047
2047
  colspan: l.value.length || 1,
2048
2048
  class: p(u(a).e("empty"))
2049
2049
  }, [
2050
- G(g.$slots, "empty", {}, () => [
2051
- ae(U(s.emptyText), 1)
2050
+ F(m.$slots, "empty", {}, () => [
2051
+ oe(X(s.emptyText), 1)
2052
2052
  ])
2053
- ], 10, Pt)
2053
+ ], 10, Rt)
2054
2054
  ])) : j("", !0)
2055
2055
  ])
2056
2056
  ])
2057
2057
  ], 2),
2058
- A("div", Rt, [
2059
- G(g.$slots, "default")
2058
+ A("div", Pt, [
2059
+ F(m.$slots, "default")
2060
2060
  ])
2061
2061
  ], 2));
2062
2062
  }
@@ -2076,7 +2076,7 @@ const sn = /* @__PURE__ */ Z({
2076
2076
  setup(s) {
2077
2077
  const r = s;
2078
2078
  J("tree-table-column");
2079
- const n = be(), e = ge("x-tree-table"), o = $(() => ({
2079
+ const n = be(), e = ye("x-tree-table"), o = $(() => ({
2080
2080
  prop: r.prop,
2081
2081
  label: r.label,
2082
2082
  width: r.width,
@@ -2090,7 +2090,7 @@ const sn = /* @__PURE__ */ Z({
2090
2090
  e != null && e.registerColumn && e.registerColumn(o.value, n.default);
2091
2091
  }), se(() => n.default, (a) => {
2092
2092
  e != null && e.updateColumnSlot && a && e.updateColumnSlot(r.prop, a);
2093
- }, { immediate: !0 }), me(() => {
2093
+ }, { immediate: !0 }), Me(() => {
2094
2094
  e != null && e.unregisterColumn && e.unregisterColumn(r.prop);
2095
2095
  }), (a, t) => null;
2096
2096
  }
@@ -2112,29 +2112,29 @@ const sn = /* @__PURE__ */ Z({
2112
2112
  o.m(n.shape),
2113
2113
  typeof n.size == "string" ? o.m(n.size) : ""
2114
2114
  ]), t = $(() => {
2115
- const i = {};
2116
- return typeof n.size == "number" && (i.width = `${n.size}px`, i.height = `${n.size}px`, i.lineHeight = `${n.size}px`), i;
2117
- }), l = (i) => {
2118
- e("error", i);
2115
+ const c = {};
2116
+ return typeof n.size == "number" && (c.width = `${n.size}px`, c.height = `${n.size}px`, c.lineHeight = `${n.size}px`), c;
2117
+ }), l = (c) => {
2118
+ e("error", c);
2119
2119
  };
2120
- return (i, z) => (M(), w("span", {
2120
+ return (c, z) => (M(), w("span", {
2121
2121
  class: p(a.value),
2122
- style: F(t.value)
2122
+ style: U(t.value)
2123
2123
  }, [
2124
2124
  s.src ? (M(), w("img", {
2125
2125
  key: 0,
2126
2126
  src: s.src,
2127
2127
  alt: s.alt,
2128
- style: F({ objectFit: s.fit }),
2128
+ style: U({ objectFit: s.fit }),
2129
2129
  onError: l
2130
2130
  }, null, 44, jt)) : s.icon ? (M(), w("span", {
2131
2131
  key: 1,
2132
2132
  class: p(u(o).e("icon"))
2133
- }, U(s.icon), 3)) : (M(), w("span", {
2133
+ }, X(s.icon), 3)) : (M(), w("span", {
2134
2134
  key: 2,
2135
2135
  class: p(u(o).e("default"))
2136
2136
  }, [
2137
- G(i.$slots, "default")
2137
+ F(c.$slots, "default")
2138
2138
  ], 2))
2139
2139
  ], 6));
2140
2140
  }
@@ -2153,7 +2153,7 @@ const sn = /* @__PURE__ */ Z({
2153
2153
  },
2154
2154
  setup(s) {
2155
2155
  const r = s, n = J("descriptions");
2156
- ve("x-descriptions", {
2156
+ me("x-descriptions", {
2157
2157
  props: r,
2158
2158
  column: $(() => r.column)
2159
2159
  });
@@ -2168,13 +2168,13 @@ const sn = /* @__PURE__ */ Z({
2168
2168
  s.title ? (M(), w("div", {
2169
2169
  key: 0,
2170
2170
  class: p(u(n).e("title"))
2171
- }, U(s.title), 3)) : j("", !0),
2171
+ }, X(s.title), 3)) : j("", !0),
2172
2172
  A("div", {
2173
2173
  class: p(u(n).e("body"))
2174
2174
  }, [
2175
2175
  A("table", null, [
2176
2176
  A("tbody", null, [
2177
- G(o.$slots, "default")
2177
+ F(o.$slots, "default")
2178
2178
  ])
2179
2179
  ])
2180
2180
  ], 2)
@@ -2190,35 +2190,35 @@ const sn = /* @__PURE__ */ Z({
2190
2190
  contentAlign: {}
2191
2191
  },
2192
2192
  setup(s) {
2193
- const r = s, n = J("descriptions-item"), e = ge("x-descriptions"), o = $(() => {
2193
+ const r = s, n = J("descriptions-item"), e = ye("x-descriptions"), o = $(() => {
2194
2194
  var k;
2195
- const i = {}, z = (k = e == null ? void 0 : e.props) == null ? void 0 : k.labelWidth;
2196
- return z && (i.width = typeof z == "number" ? `${z}px` : z), i;
2195
+ const c = {}, z = (k = e == null ? void 0 : e.props) == null ? void 0 : k.labelWidth;
2196
+ return z && (c.width = typeof z == "number" ? `${z}px` : z), c;
2197
2197
  }), a = $(() => {
2198
- var i;
2199
- return r.labelAlign || ((i = e == null ? void 0 : e.props) == null ? void 0 : i.labelAlign) || "right";
2198
+ var c;
2199
+ return r.labelAlign || ((c = e == null ? void 0 : e.props) == null ? void 0 : c.labelAlign) || "right";
2200
2200
  }), t = $(() => {
2201
- var i;
2202
- return r.contentAlign || ((i = e == null ? void 0 : e.props) == null ? void 0 : i.contentAlign) || "left";
2201
+ var c;
2202
+ return r.contentAlign || ((c = e == null ? void 0 : e.props) == null ? void 0 : c.contentAlign) || "left";
2203
2203
  }), l = $(() => {
2204
- var i;
2205
- return ((i = e == null ? void 0 : e.props) == null ? void 0 : i.colon) ?? !0;
2204
+ var c;
2205
+ return ((c = e == null ? void 0 : e.props) == null ? void 0 : c.colon) ?? !0;
2206
2206
  });
2207
2207
  return $(() => {
2208
- var i;
2209
- return ((i = e == null ? void 0 : e.props) == null ? void 0 : i.border) ?? !1;
2210
- }), (i, z) => (M(), w("tr", {
2208
+ var c;
2209
+ return ((c = e == null ? void 0 : e.props) == null ? void 0 : c.border) ?? !1;
2210
+ }), (c, z) => (M(), w("tr", {
2211
2211
  class: p(u(n).b())
2212
2212
  }, [
2213
2213
  A("th", {
2214
2214
  class: p([u(n).e("label"), `is-${a.value}`]),
2215
- style: F(o.value)
2216
- }, U(s.label) + U(l.value ? ":" : ""), 7),
2215
+ style: U(o.value)
2216
+ }, X(s.label) + X(l.value ? ":" : ""), 7),
2217
2217
  A("td", {
2218
2218
  class: p([u(n).e("content"), `is-${t.value}`]),
2219
2219
  colspan: s.span * 2 - 1
2220
2220
  }, [
2221
- G(i.$slots, "default")
2221
+ F(c.$slots, "default")
2222
2222
  ], 10, Ot)
2223
2223
  ], 2));
2224
2224
  }
@@ -2240,53 +2240,53 @@ const sn = /* @__PURE__ */ Z({
2240
2240
  },
2241
2241
  emits: ["scroll"],
2242
2242
  setup(s, { expose: r, emit: n }) {
2243
- const e = s, o = n, a = J("scrollbar"), t = _(), l = _(), i = _("0"), z = _("0"), k = _(0), x = _(0), C = $(() => {
2244
- const H = {};
2245
- return e.height && (H.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (H.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), H;
2243
+ const e = s, o = n, a = J("scrollbar"), t = O(), l = O(), c = O("0"), z = O("0"), k = O(0), x = O(0), C = $(() => {
2244
+ const N = {};
2245
+ return e.height && (N.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (N.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), N;
2246
2246
  }), S = () => {
2247
2247
  if (!t.value) return;
2248
- const H = t.value.offsetHeight - 4, K = t.value.offsetWidth - 4, Y = t.value.scrollHeight, ee = t.value.scrollWidth, v = H / Y, b = K / ee;
2249
- z.value = v >= 1 ? "0" : `${H * v}px`, i.value = b >= 1 ? "0" : `${K * b}px`;
2250
- }, P = (H) => {
2248
+ const N = t.value.offsetHeight - 4, K = t.value.offsetWidth - 4, Y = t.value.scrollHeight, q = t.value.scrollWidth, v = N / Y, b = K / q;
2249
+ z.value = v >= 1 ? "0" : `${N * v}px`, c.value = b >= 1 ? "0" : `${K * b}px`;
2250
+ }, R = (N) => {
2251
2251
  if (!t.value) return;
2252
2252
  const K = t.value.offsetHeight, Y = t.value.offsetWidth;
2253
- x.value = t.value.scrollTop * 100 / K, k.value = t.value.scrollLeft * 100 / Y, o("scroll", H);
2254
- }, V = (H) => {
2253
+ x.value = t.value.scrollTop * 100 / K, k.value = t.value.scrollLeft * 100 / Y, o("scroll", N);
2254
+ }, V = (N) => {
2255
2255
  var K;
2256
- (K = t.value) == null || K.scrollTo(H);
2257
- }, W = (H) => {
2258
- t.value && (t.value.scrollTop = H);
2259
- }, E = (H) => {
2260
- t.value && (t.value.scrollLeft = H);
2256
+ (K = t.value) == null || K.scrollTo(N);
2257
+ }, _ = (N) => {
2258
+ t.value && (t.value.scrollTop = N);
2259
+ }, E = (N) => {
2260
+ t.value && (t.value.scrollLeft = N);
2261
2261
  };
2262
2262
  let B = null;
2263
2263
  return pe(() => {
2264
2264
  e.native || (Ee(S), e.noresize || (B = new ResizeObserver(S), l.value && B.observe(l.value), window.addEventListener("resize", S)));
2265
- }), me(() => {
2265
+ }), Me(() => {
2266
2266
  B && B.disconnect(), window.removeEventListener("resize", S);
2267
2267
  }), r({
2268
2268
  scrollTo: V,
2269
- setScrollTop: W,
2269
+ setScrollTop: _,
2270
2270
  setScrollLeft: E,
2271
2271
  update: S
2272
- }), (H, K) => (M(), w("div", {
2272
+ }), (N, K) => (M(), w("div", {
2273
2273
  class: p(u(a).b())
2274
2274
  }, [
2275
2275
  A("div", {
2276
2276
  ref_key: "wrapRef",
2277
2277
  ref: t,
2278
2278
  class: p([u(a).e("wrap"), s.wrapClass, { [u(a).em("wrap", "hidden-default")]: !s.native }]),
2279
- style: F([C.value, { overflow: s.native ? "auto" : "hidden" }]),
2280
- onScroll: P
2279
+ style: U([C.value, { overflow: s.native ? "auto" : "hidden" }]),
2280
+ onScroll: R
2281
2281
  }, [
2282
- (M(), re(xe(s.tag), {
2282
+ (M(), ce(xe(s.tag), {
2283
2283
  ref_key: "resizeRef",
2284
2284
  ref: l,
2285
2285
  class: p([u(a).e("view"), s.viewClass]),
2286
- style: F(s.viewStyle)
2286
+ style: U(s.viewStyle)
2287
2287
  }, {
2288
2288
  default: Ie(() => [
2289
- G(H.$slots, "default")
2289
+ F(N.$slots, "default")
2290
2290
  ]),
2291
2291
  _: 3
2292
2292
  }, 8, ["class", "style"]))
@@ -2294,12 +2294,12 @@ const sn = /* @__PURE__ */ Z({
2294
2294
  !s.native && z.value ? (M(), w("div", {
2295
2295
  key: 0,
2296
2296
  class: p([u(a).e("bar"), u(a).is("vertical")]),
2297
- style: F({ height: z.value, top: `${x.value}%` })
2297
+ style: U({ height: z.value, top: `${x.value}%` })
2298
2298
  }, null, 6)) : j("", !0),
2299
- !s.native && i.value ? (M(), w("div", {
2299
+ !s.native && c.value ? (M(), w("div", {
2300
2300
  key: 1,
2301
2301
  class: p([u(a).e("bar"), u(a).is("horizontal")]),
2302
- style: F({ width: i.value, left: `${k.value}%` })
2302
+ style: U({ width: c.value, left: `${k.value}%` })
2303
2303
  }, null, 6)) : j("", !0)
2304
2304
  ], 2));
2305
2305
  }
@@ -2312,24 +2312,24 @@ const sn = /* @__PURE__ */ Z({
2312
2312
  },
2313
2313
  emits: ["update:modelValue", "change"],
2314
2314
  setup(s, { emit: r }) {
2315
- const n = s, e = r, o = J("collapse"), a = _([]);
2315
+ const n = s, e = r, o = J("collapse"), a = O([]);
2316
2316
  return se(() => n.modelValue, (l) => {
2317
2317
  Array.isArray(l) ? a.value = l : l ? a.value = [l] : a.value = [];
2318
- }, { immediate: !0 }), ve("collapse", {
2318
+ }, { immediate: !0 }), me("collapse", {
2319
2319
  activeNames: a,
2320
2320
  handleItemClick: (l) => {
2321
2321
  if (n.accordion) {
2322
- const i = a.value.includes(l) ? "" : l;
2323
- a.value = i ? [i] : [], e("update:modelValue", i), e("change", i);
2322
+ const c = a.value.includes(l) ? "" : l;
2323
+ a.value = c ? [c] : [], e("update:modelValue", c), e("change", c);
2324
2324
  } else {
2325
- const i = a.value.indexOf(l);
2326
- i > -1 ? a.value.splice(i, 1) : a.value.push(l), e("update:modelValue", a.value), e("change", a.value);
2325
+ const c = a.value.indexOf(l);
2326
+ c > -1 ? a.value.splice(c, 1) : a.value.push(l), e("update:modelValue", a.value), e("change", a.value);
2327
2327
  }
2328
2328
  }
2329
- }), (l, i) => (M(), w("div", {
2329
+ }), (l, c) => (M(), w("div", {
2330
2330
  class: p(u(o).b())
2331
2331
  }, [
2332
- G(l.$slots, "default")
2332
+ F(l.$slots, "default")
2333
2333
  ], 2));
2334
2334
  }
2335
2335
  }), wn = /* @__PURE__ */ Z({
@@ -2341,10 +2341,10 @@ const sn = /* @__PURE__ */ Z({
2341
2341
  disabled: { type: Boolean }
2342
2342
  },
2343
2343
  setup(s) {
2344
- const r = s, n = J("collapse-item"), e = ge("collapse"), { activeNames: o, handleItemClick: a } = e, t = $(() => o.value.includes(r.name)), l = () => {
2344
+ const r = s, n = J("collapse-item"), e = ye("collapse"), { activeNames: o, handleItemClick: a } = e, t = $(() => o.value.includes(r.name)), l = () => {
2345
2345
  r.disabled || a(r.name);
2346
2346
  };
2347
- return (i, z) => (M(), w("div", {
2347
+ return (c, z) => (M(), w("div", {
2348
2348
  class: p([u(n).b(), u(n).is("active", t.value), u(n).is("disabled", s.disabled)])
2349
2349
  }, [
2350
2350
  A("div", {
@@ -2354,13 +2354,13 @@ const sn = /* @__PURE__ */ Z({
2354
2354
  A("span", {
2355
2355
  class: p(u(n).e("arrow"))
2356
2356
  }, [
2357
- ne(u(te), {
2357
+ le(u(ne), {
2358
2358
  name: "right",
2359
2359
  size: 12
2360
2360
  })
2361
2361
  ], 2),
2362
- G(i.$slots, "title", {}, () => [
2363
- ae(U(s.title), 1)
2362
+ F(c.$slots, "title", {}, () => [
2363
+ oe(X(s.title), 1)
2364
2364
  ])
2365
2365
  ], 2),
2366
2366
  ze(A("div", {
@@ -2369,7 +2369,7 @@ const sn = /* @__PURE__ */ Z({
2369
2369
  A("div", {
2370
2370
  class: p(u(n).e("content-box"))
2371
2371
  }, [
2372
- G(i.$slots, "default")
2372
+ F(c.$slots, "default")
2373
2373
  ], 2)
2374
2374
  ], 2), [
2375
2375
  [$e, t.value]
@@ -2393,130 +2393,139 @@ const sn = /* @__PURE__ */ Z({
2393
2393
  },
2394
2394
  emits: ["load", "error"],
2395
2395
  setup(s, { emit: r }) {
2396
- const n = s, e = r, o = J("image"), a = _(!0), t = _(!1), l = _(!1), i = _(0), z = _(1), k = _(0), x = _(0), C = _(0), S = _(!1), P = _({ x: 0, y: 0 }), V = _({ x: 0, y: 0 }), W = _(null), E = $(() => ({
2396
+ const n = s, e = r, o = J("image"), a = O(null), t = O(!0), l = O(!1), c = O(!1), z = O(0), k = O(1), x = O(0), C = O(0), S = O(0), R = O(!1), V = O({ x: 0, y: 0 }), _ = O({ x: 0, y: 0 }), E = O(null), B = $(() => ({
2397
2397
  width: typeof n.width == "number" ? `${n.width}px` : n.width,
2398
2398
  height: typeof n.height == "number" ? `${n.height}px` : n.height,
2399
2399
  objectFit: n.fit
2400
- })), B = $(() => n.previewList.length > 0 ? n.previewList : [n.src]), H = $(() => B.value[i.value]), K = $(
2401
- () => `translate(${x.value}px, ${C.value}px) scale(${z.value}) rotate(${k.value}deg)`
2402
- ), Y = () => {
2403
- z.value = 1, k.value = 0, x.value = 0, C.value = 0, S.value = !1;
2404
- }, ee = (O) => {
2405
- a.value = !1, e("load", O);
2406
- }, v = (O) => {
2407
- a.value = !1, t.value = !0, e("error", O);
2408
- }, b = () => {
2409
- n.preview && (i.value = n.initialIndex, Y(), l.value = !0);
2410
- }, m = () => {
2411
- l.value = !1, Y();
2400
+ })), N = $(() => n.previewList.length > 0 ? n.previewList : [n.src]), K = $(() => N.value[z.value]), Y = $(
2401
+ () => `translate(${C.value}px, ${S.value}px) scale(${k.value}) rotate(${x.value}deg)`
2402
+ ), q = () => {
2403
+ k.value = 1, x.value = 0, C.value = 0, S.value = 0, R.value = !1;
2404
+ }, v = (Q) => {
2405
+ t.value = !1, l.value = !1, e("load", Q);
2406
+ }, b = (Q) => {
2407
+ t.value = !1, l.value = !0, e("error", Q);
2408
+ }, y = () => {
2409
+ n.preview && (z.value = n.initialIndex, q(), c.value = !0);
2412
2410
  }, D = () => {
2413
- B.value.length <= 1 || (i.value = i.value > 0 ? i.value - 1 : B.value.length - 1);
2411
+ c.value = !1, q();
2414
2412
  }, I = () => {
2415
- B.value.length <= 1 || (i.value = i.value < B.value.length - 1 ? i.value + 1 : 0);
2416
- }, g = () => {
2417
- z.value = Math.min(Le, z.value * 1.25);
2413
+ N.value.length <= 1 || (z.value = z.value > 0 ? z.value - 1 : N.value.length - 1);
2414
+ }, m = () => {
2415
+ N.value.length <= 1 || (z.value = z.value < N.value.length - 1 ? z.value + 1 : 0);
2418
2416
  }, L = () => {
2419
- z.value = Math.max(De, z.value / 1.25), z.value <= 1 && (x.value = 0, C.value = 0);
2420
- }, f = () => Y(), c = () => {
2421
- const O = W.value;
2422
- if (!O || !O.naturalWidth) return;
2423
- const Q = O.getBoundingClientRect();
2424
- Q.width <= 0 || (z.value = Math.min(Le, Math.max(De, z.value * (O.naturalWidth / Q.width))));
2425
- }, d = () => {
2426
- k.value = (k.value + 90) % 360;
2427
- }, y = () => {
2428
- const O = document.createElement("a");
2429
- O.href = H.value, O.download = "", O.target = "_blank", O.rel = "noopener", O.click();
2430
- }, h = (O) => {
2431
- O.preventDefault(), O.deltaY < 0 ? g() : L();
2432
- }, T = (O) => {
2433
- z.value <= 1 || (S.value = !0, P.value = { x: O.clientX, y: O.clientY }, V.value = { x: x.value, y: C.value });
2434
- }, N = (O) => {
2435
- S.value && (x.value = V.value.x + (O.clientX - P.value.x), C.value = V.value.y + (O.clientY - P.value.y));
2436
- }, R = () => {
2437
- S.value = !1;
2438
- }, X = (O) => {
2439
- if (l.value)
2440
- switch (O.key) {
2417
+ k.value = Math.min(Le, k.value * 1.25);
2418
+ }, f = () => {
2419
+ k.value = Math.max(De, k.value / 1.25), k.value <= 1 && (C.value = 0, S.value = 0);
2420
+ }, i = () => q(), d = () => {
2421
+ const Q = E.value;
2422
+ if (!Q || !Q.naturalWidth) return;
2423
+ const G = Q.getBoundingClientRect();
2424
+ G.width <= 0 || (k.value = Math.min(Le, Math.max(De, k.value * (Q.naturalWidth / G.width))));
2425
+ }, g = () => {
2426
+ x.value = (x.value + 90) % 360;
2427
+ }, h = () => {
2428
+ const Q = document.createElement("a");
2429
+ Q.href = K.value, Q.download = "", Q.target = "_blank", Q.rel = "noopener", Q.click();
2430
+ }, T = (Q) => {
2431
+ Q.preventDefault(), Q.deltaY < 0 ? L() : f();
2432
+ }, H = (Q) => {
2433
+ k.value <= 1 || (R.value = !0, V.value = { x: Q.clientX, y: Q.clientY }, _.value = { x: C.value, y: S.value });
2434
+ }, P = (Q) => {
2435
+ R.value && (C.value = _.value.x + (Q.clientX - V.value.x), S.value = _.value.y + (Q.clientY - V.value.y));
2436
+ }, W = () => {
2437
+ R.value = !1;
2438
+ }, ee = (Q) => {
2439
+ if (c.value)
2440
+ switch (Q.key) {
2441
2441
  case "ArrowLeft":
2442
- D();
2442
+ I();
2443
2443
  break;
2444
2444
  case "ArrowRight":
2445
- I();
2445
+ m();
2446
2446
  break;
2447
2447
  case "Escape":
2448
- m();
2448
+ D();
2449
2449
  break;
2450
2450
  case "+":
2451
2451
  case "=":
2452
- g();
2452
+ L();
2453
2453
  break;
2454
2454
  case "-":
2455
- L();
2455
+ f();
2456
2456
  break;
2457
2457
  case "r":
2458
2458
  case "R":
2459
- d();
2459
+ g();
2460
2460
  break;
2461
2461
  case "0":
2462
- Y();
2462
+ q();
2463
2463
  break;
2464
2464
  }
2465
2465
  };
2466
- return typeof window < "u" && window.addEventListener("keydown", X), me(() => {
2467
- typeof window < "u" && window.removeEventListener("keydown", X);
2468
- }), se(i, () => Y()), (O, Q) => (M(), w("div", {
2466
+ typeof window < "u" && window.addEventListener("keydown", ee), Me(() => {
2467
+ typeof window < "u" && window.removeEventListener("keydown", ee);
2468
+ });
2469
+ const ae = () => {
2470
+ const Q = a.value;
2471
+ !Q || !n.src || !Q.complete || (t.value = !1, l.value = Q.naturalWidth === 0);
2472
+ };
2473
+ return pe(ae), se(() => n.src, () => {
2474
+ t.value = !0, l.value = !1, D(), ae();
2475
+ }, { flush: "post" }), se(z, () => q()), (Q, G) => (M(), w("div", {
2469
2476
  class: p(u(o).b()),
2470
- style: F({ width: E.value.width, height: E.value.height })
2477
+ style: U({ width: B.value.width, height: B.value.height })
2471
2478
  }, [
2472
2479
  A("img", {
2480
+ ref_key: "imageRef",
2481
+ ref: a,
2473
2482
  src: s.src,
2474
2483
  class: p(u(o).e("inner")),
2475
- style: F(E.value),
2484
+ style: U(B.value),
2476
2485
  loading: s.lazy ? "lazy" : "eager",
2477
- onLoad: ee,
2478
- onError: v,
2479
- onClick: b
2486
+ onLoad: v,
2487
+ onError: b,
2488
+ onClick: y
2480
2489
  }, null, 46, _t),
2481
- a.value ? (M(), w("div", {
2490
+ t.value ? (M(), w("div", {
2482
2491
  key: 0,
2483
2492
  class: p(u(o).e("placeholder"))
2484
2493
  }, [
2485
- G(O.$slots, "placeholder", {}, () => [
2486
- ne(u(te), {
2494
+ F(Q.$slots, "placeholder", {}, () => [
2495
+ le(u(ne), {
2487
2496
  name: "loading",
2488
2497
  size: 24
2489
2498
  })
2490
2499
  ])
2491
2500
  ], 2)) : j("", !0),
2492
- t.value ? (M(), w("div", {
2501
+ l.value ? (M(), w("div", {
2493
2502
  key: 1,
2494
2503
  class: p(u(o).e("error"))
2495
2504
  }, [
2496
- G(O.$slots, "error", {}, () => [
2497
- ne(u(te), {
2505
+ F(Q.$slots, "error", {}, () => [
2506
+ le(u(ne), {
2498
2507
  name: "image",
2499
2508
  size: 24
2500
2509
  }),
2501
- Q[2] || (Q[2] = A("span", null, "加载失败", -1))
2510
+ G[2] || (G[2] = A("span", null, "加载失败", -1))
2502
2511
  ])
2503
2512
  ], 2)) : j("", !0),
2504
- (M(), re(Oe, { to: "body" }, [
2505
- l.value ? (M(), w("div", {
2513
+ (M(), ce(Oe, { to: "body" }, [
2514
+ c.value ? (M(), w("div", {
2506
2515
  key: 0,
2507
2516
  class: p(u(o).e("preview")),
2508
- onClick: m
2517
+ onClick: D
2509
2518
  }, [
2510
2519
  A("div", {
2511
2520
  class: p(u(o).e("preview-toolbar")),
2512
- onClick: Q[0] || (Q[0] = ie(() => {
2521
+ onClick: G[0] || (G[0] = ue(() => {
2513
2522
  }, ["stop"]))
2514
2523
  }, [
2515
2524
  A("span", {
2516
2525
  class: p(u(o).e("preview-tool")),
2517
2526
  title: "放大",
2518
- onClick: g
2519
- }, [...Q[3] || (Q[3] = [
2527
+ onClick: L
2528
+ }, [...G[3] || (G[3] = [
2520
2529
  A("svg", {
2521
2530
  viewBox: "0 0 24 24",
2522
2531
  fill: "none",
@@ -2540,8 +2549,8 @@ const sn = /* @__PURE__ */ Z({
2540
2549
  A("span", {
2541
2550
  class: p(u(o).e("preview-tool")),
2542
2551
  title: "缩小",
2543
- onClick: L
2544
- }, [...Q[4] || (Q[4] = [
2552
+ onClick: f
2553
+ }, [...G[4] || (G[4] = [
2545
2554
  A("svg", {
2546
2555
  viewBox: "0 0 24 24",
2547
2556
  fill: "none",
@@ -2565,8 +2574,8 @@ const sn = /* @__PURE__ */ Z({
2565
2574
  A("span", {
2566
2575
  class: p(u(o).e("preview-tool")),
2567
2576
  title: "1:1 实际大小",
2568
- onClick: c
2569
- }, [...Q[5] || (Q[5] = [
2577
+ onClick: d
2578
+ }, [...G[5] || (G[5] = [
2570
2579
  A("svg", {
2571
2580
  viewBox: "0 0 24 24",
2572
2581
  fill: "none",
@@ -2585,8 +2594,8 @@ const sn = /* @__PURE__ */ Z({
2585
2594
  A("span", {
2586
2595
  class: p(u(o).e("preview-tool")),
2587
2596
  title: "适应窗口",
2588
- onClick: f
2589
- }, [...Q[6] || (Q[6] = [
2597
+ onClick: i
2598
+ }, [...G[6] || (G[6] = [
2590
2599
  A("svg", {
2591
2600
  viewBox: "0 0 24 24",
2592
2601
  fill: "none",
@@ -2605,8 +2614,8 @@ const sn = /* @__PURE__ */ Z({
2605
2614
  A("span", {
2606
2615
  class: p(u(o).e("preview-tool")),
2607
2616
  title: "旋转",
2608
- onClick: d
2609
- }, [...Q[7] || (Q[7] = [
2617
+ onClick: g
2618
+ }, [...G[7] || (G[7] = [
2610
2619
  A("svg", {
2611
2620
  viewBox: "0 0 24 24",
2612
2621
  fill: "none",
@@ -2625,8 +2634,8 @@ const sn = /* @__PURE__ */ Z({
2625
2634
  A("span", {
2626
2635
  class: p(u(o).e("preview-tool")),
2627
2636
  title: "下载",
2628
- onClick: y
2629
- }, [...Q[8] || (Q[8] = [
2637
+ onClick: h
2638
+ }, [...G[8] || (G[8] = [
2630
2639
  A("svg", {
2631
2640
  viewBox: "0 0 24 24",
2632
2641
  fill: "none",
@@ -2645,8 +2654,8 @@ const sn = /* @__PURE__ */ Z({
2645
2654
  A("span", {
2646
2655
  class: p(u(o).e("preview-close")),
2647
2656
  title: "关闭",
2648
- onClick: ie(m, ["stop"])
2649
- }, [...Q[9] || (Q[9] = [
2657
+ onClick: ue(D, ["stop"])
2658
+ }, [...G[9] || (G[9] = [
2650
2659
  A("svg", {
2651
2660
  viewBox: "0 0 24 24",
2652
2661
  fill: "none",
@@ -2665,43 +2674,43 @@ const sn = /* @__PURE__ */ Z({
2665
2674
  ], 2),
2666
2675
  A("img", {
2667
2676
  ref_key: "previewImgRef",
2668
- ref: W,
2669
- src: H.value,
2670
- class: p([u(o).e("preview-image"), { "is-zoomable": z.value > 1 }]),
2671
- style: F({ transform: K.value }),
2677
+ ref: E,
2678
+ src: K.value,
2679
+ class: p([u(o).e("preview-image"), { "is-zoomable": k.value > 1 }]),
2680
+ style: U({ transform: Y.value }),
2672
2681
  draggable: !1,
2673
- onClick: Q[1] || (Q[1] = ie(() => {
2682
+ onClick: G[1] || (G[1] = ue(() => {
2674
2683
  }, ["stop"])),
2675
- onWheel: ie(h, ["prevent"]),
2676
- onMousedown: T,
2677
- onMousemove: N,
2678
- onMouseup: R,
2679
- onMouseleave: R
2684
+ onWheel: ue(T, ["prevent"]),
2685
+ onMousedown: H,
2686
+ onMousemove: P,
2687
+ onMouseup: W,
2688
+ onMouseleave: W
2680
2689
  }, null, 46, Wt),
2681
- B.value.length > 1 ? (M(), w("span", {
2690
+ N.value.length > 1 ? (M(), w("span", {
2682
2691
  key: 0,
2683
2692
  class: p([u(o).e("preview-arrow"), u(o).em("preview-arrow", "left")]),
2684
- onClick: ie(D, ["stop"])
2693
+ onClick: ue(I, ["stop"])
2685
2694
  }, [
2686
- ne(u(te), {
2695
+ le(u(ne), {
2687
2696
  name: "left",
2688
2697
  size: 24
2689
2698
  })
2690
2699
  ], 2)) : j("", !0),
2691
- B.value.length > 1 ? (M(), w("span", {
2700
+ N.value.length > 1 ? (M(), w("span", {
2692
2701
  key: 1,
2693
2702
  class: p([u(o).e("preview-arrow"), u(o).em("preview-arrow", "right")]),
2694
- onClick: ie(I, ["stop"])
2703
+ onClick: ue(m, ["stop"])
2695
2704
  }, [
2696
- ne(u(te), {
2705
+ le(u(ne), {
2697
2706
  name: "right",
2698
2707
  size: 24
2699
2708
  })
2700
2709
  ], 2)) : j("", !0),
2701
- B.value.length > 1 ? (M(), w("div", {
2710
+ N.value.length > 1 ? (M(), w("div", {
2702
2711
  key: 2,
2703
2712
  class: p(u(o).e("preview-counter"))
2704
- }, U(i.value + 1) + " / " + U(B.value.length), 3)) : j("", !0)
2713
+ }, X(z.value + 1) + " / " + X(N.value.length), 3)) : j("", !0)
2705
2714
  ], 2)) : j("", !0)
2706
2715
  ]))
2707
2716
  ], 6));
@@ -2715,8 +2724,8 @@ const sn = /* @__PURE__ */ Z({
2715
2724
  },
2716
2725
  emits: ["update:modelValue", "select", "change"],
2717
2726
  setup(s, { emit: r }) {
2718
- const n = s, e = r, o = J("calendar"), a = _(n.modelValue.getFullYear()), t = _(n.modelValue.getMonth()), l = ["日", "一", "二", "三", "四", "五", "六"], i = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], z = /* @__PURE__ */ new Date(), k = $(() => {
2719
- const B = [], H = new Date(a.value, t.value, 1), K = new Date(a.value, t.value + 1, 0), Y = H.getDay();
2727
+ const n = s, e = r, o = J("calendar"), a = O(n.modelValue.getFullYear()), t = O(n.modelValue.getMonth()), l = ["日", "一", "二", "三", "四", "五", "六"], c = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], z = /* @__PURE__ */ new Date(), k = $(() => {
2728
+ const B = [], N = new Date(a.value, t.value, 1), K = new Date(a.value, t.value + 1, 0), Y = N.getDay();
2720
2729
  for (let v = Y - 1; v >= 0; v--) {
2721
2730
  const b = new Date(a.value, t.value, -v);
2722
2731
  B.push({
@@ -2735,8 +2744,8 @@ const sn = /* @__PURE__ */ Z({
2735
2744
  isSelected: x(b, n.modelValue)
2736
2745
  });
2737
2746
  }
2738
- const ee = 42 - B.length;
2739
- for (let v = 1; v <= ee; v++) {
2747
+ const q = 42 - B.length;
2748
+ for (let v = 1; v <= q; v++) {
2740
2749
  const b = new Date(a.value, t.value + 1, v);
2741
2750
  B.push({
2742
2751
  date: b,
@@ -2746,22 +2755,22 @@ const sn = /* @__PURE__ */ Z({
2746
2755
  });
2747
2756
  }
2748
2757
  return B;
2749
- }), x = (B, H) => B.getFullYear() === H.getFullYear() && B.getMonth() === H.getMonth() && B.getDate() === H.getDate(), C = (B) => {
2758
+ }), x = (B, N) => B.getFullYear() === N.getFullYear() && B.getMonth() === N.getMonth() && B.getDate() === N.getDate(), C = (B) => {
2750
2759
  e("update:modelValue", B.date), e("select", B.date), e("change", B.date);
2751
2760
  }, S = () => {
2752
2761
  a.value--;
2753
- }, P = () => {
2762
+ }, R = () => {
2754
2763
  a.value++;
2755
2764
  }, V = () => {
2756
2765
  t.value === 0 ? (t.value = 11, a.value--) : t.value--;
2757
- }, W = () => {
2766
+ }, _ = () => {
2758
2767
  t.value === 11 ? (t.value = 0, a.value++) : t.value++;
2759
2768
  }, E = () => {
2760
2769
  a.value = z.getFullYear(), t.value = z.getMonth(), e("update:modelValue", z), e("select", z);
2761
2770
  };
2762
2771
  return se(() => n.modelValue, (B) => {
2763
2772
  a.value = B.getFullYear(), t.value = B.getMonth();
2764
- }), (B, H) => (M(), w("div", {
2773
+ }), (B, N) => (M(), w("div", {
2765
2774
  class: p(u(o).b())
2766
2775
  }, [
2767
2776
  A("div", {
@@ -2769,7 +2778,7 @@ const sn = /* @__PURE__ */ Z({
2769
2778
  }, [
2770
2779
  A("div", {
2771
2780
  class: p(u(o).e("title"))
2772
- }, U(a.value) + " 年 " + U(i[t.value]), 3),
2781
+ }, X(a.value) + " 年 " + X(c[t.value]), 3),
2773
2782
  A("div", {
2774
2783
  class: p(u(o).e("actions"))
2775
2784
  }, [
@@ -2777,7 +2786,7 @@ const sn = /* @__PURE__ */ Z({
2777
2786
  class: p(u(o).e("btn")),
2778
2787
  onClick: S
2779
2788
  }, [
2780
- ne(u(te), {
2789
+ le(u(ne), {
2781
2790
  name: "d-arrow-left",
2782
2791
  size: 12
2783
2792
  })
@@ -2786,7 +2795,7 @@ const sn = /* @__PURE__ */ Z({
2786
2795
  class: p(u(o).e("btn")),
2787
2796
  onClick: V
2788
2797
  }, [
2789
- ne(u(te), {
2798
+ le(u(ne), {
2790
2799
  name: "arrow-left",
2791
2800
  size: 12
2792
2801
  })
@@ -2797,18 +2806,18 @@ const sn = /* @__PURE__ */ Z({
2797
2806
  }, "今天", 2),
2798
2807
  A("button", {
2799
2808
  class: p(u(o).e("btn")),
2800
- onClick: W
2809
+ onClick: _
2801
2810
  }, [
2802
- ne(u(te), {
2811
+ le(u(ne), {
2803
2812
  name: "arrow-right",
2804
2813
  size: 12
2805
2814
  })
2806
2815
  ], 2),
2807
2816
  A("button", {
2808
2817
  class: p(u(o).e("btn")),
2809
- onClick: P
2818
+ onClick: R
2810
2819
  }, [
2811
- ne(u(te), {
2820
+ le(u(ne), {
2812
2821
  name: "d-arrow-right",
2813
2822
  size: 12
2814
2823
  })
@@ -2818,15 +2827,15 @@ const sn = /* @__PURE__ */ Z({
2818
2827
  A("div", {
2819
2828
  class: p(u(o).e("weekdays"))
2820
2829
  }, [
2821
- (M(), w(q, null, le(l, (K) => A("div", {
2830
+ (M(), w(te, null, re(l, (K) => A("div", {
2822
2831
  key: K,
2823
2832
  class: p(u(o).e("weekday"))
2824
- }, U(K), 3)), 64))
2833
+ }, X(K), 3)), 64))
2825
2834
  ], 2),
2826
2835
  A("div", {
2827
2836
  class: p(u(o).e("body"))
2828
2837
  }, [
2829
- (M(!0), w(q, null, le(k.value, (K, Y) => (M(), w("div", {
2838
+ (M(!0), w(te, null, re(k.value, (K, Y) => (M(), w("div", {
2830
2839
  key: Y,
2831
2840
  class: p([
2832
2841
  u(o).e("day"),
@@ -2834,161 +2843,161 @@ const sn = /* @__PURE__ */ Z({
2834
2843
  u(o).is("today", K.isToday),
2835
2844
  u(o).is("selected", K.isSelected)
2836
2845
  ]),
2837
- onClick: (ee) => C(K)
2846
+ onClick: (q) => C(K)
2838
2847
  }, [
2839
- G(B.$slots, "default", {
2848
+ F(B.$slots, "default", {
2840
2849
  date: K.date,
2841
2850
  isCurrentMonth: K.isCurrentMonth
2842
2851
  }, () => [
2843
- ae(U(K.date.getDate()), 1)
2852
+ oe(X(K.date.getDate()), 1)
2844
2853
  ])
2845
2854
  ], 10, Yt))), 128))
2846
2855
  ], 2)
2847
2856
  ], 2));
2848
2857
  }
2849
- }), fe = function(s, r) {
2858
+ }), ge = function(s, r) {
2850
2859
  let o = s;
2851
- const a = Me[r];
2852
- let t = null, l = 0, i = null;
2860
+ const a = ke[r];
2861
+ let t = null, l = 0, c = null;
2853
2862
  const z = [], k = {}, x = function(v, b) {
2854
- l = o * 4 + 17, t = function(m) {
2855
- const D = new Array(m);
2856
- for (let I = 0; I < m; I += 1) {
2857
- D[I] = new Array(m);
2858
- for (let g = 0; g < m; g += 1)
2859
- D[I][g] = null;
2863
+ l = o * 4 + 17, t = function(y) {
2864
+ const D = new Array(y);
2865
+ for (let I = 0; I < y; I += 1) {
2866
+ D[I] = new Array(y);
2867
+ for (let m = 0; m < y; m += 1)
2868
+ D[I][m] = null;
2860
2869
  }
2861
2870
  return D;
2862
- }(l), C(0, 0), C(l - 7, 0), C(0, l - 7), V(), P(), E(v, b), o >= 7 && W(v), i == null && (i = K(o, a, z)), B(i, b);
2871
+ }(l), C(0, 0), C(l - 7, 0), C(0, l - 7), V(), R(), E(v, b), o >= 7 && _(v), c == null && (c = K(o, a, z)), B(c, b);
2863
2872
  }, C = function(v, b) {
2864
- for (let m = -1; m <= 7; m += 1)
2865
- if (!(v + m <= -1 || l <= v + m))
2873
+ for (let y = -1; y <= 7; y += 1)
2874
+ if (!(v + y <= -1 || l <= v + y))
2866
2875
  for (let D = -1; D <= 7; D += 1)
2867
- b + D <= -1 || l <= b + D || (0 <= m && m <= 6 && (D == 0 || D == 6) || 0 <= D && D <= 6 && (m == 0 || m == 6) || 2 <= m && m <= 4 && 2 <= D && D <= 4 ? t[v + m][b + D] = !0 : t[v + m][b + D] = !1);
2876
+ b + D <= -1 || l <= b + D || (0 <= y && y <= 6 && (D == 0 || D == 6) || 0 <= D && D <= 6 && (y == 0 || y == 6) || 2 <= y && y <= 4 && 2 <= D && D <= 4 ? t[v + y][b + D] = !0 : t[v + y][b + D] = !1);
2868
2877
  }, S = function() {
2869
2878
  let v = 0, b = 0;
2870
- for (let m = 0; m < 8; m += 1) {
2871
- x(!0, m);
2872
- const D = ue.getLostPoint(k);
2873
- (m == 0 || v > D) && (v = D, b = m);
2879
+ for (let y = 0; y < 8; y += 1) {
2880
+ x(!0, y);
2881
+ const D = he.getLostPoint(k);
2882
+ (y == 0 || v > D) && (v = D, b = y);
2874
2883
  }
2875
2884
  return b;
2876
- }, P = function() {
2885
+ }, R = function() {
2877
2886
  for (let v = 8; v < l - 8; v += 1)
2878
2887
  t[v][6] == null && (t[v][6] = v % 2 == 0);
2879
2888
  for (let v = 8; v < l - 8; v += 1)
2880
2889
  t[6][v] == null && (t[6][v] = v % 2 == 0);
2881
2890
  }, V = function() {
2882
- const v = ue.getPatternPosition(o);
2891
+ const v = he.getPatternPosition(o);
2883
2892
  for (let b = 0; b < v.length; b += 1)
2884
- for (let m = 0; m < v.length; m += 1) {
2885
- const D = v[b], I = v[m];
2893
+ for (let y = 0; y < v.length; y += 1) {
2894
+ const D = v[b], I = v[y];
2886
2895
  if (t[D][I] == null)
2887
- for (let g = -2; g <= 2; g += 1)
2896
+ for (let m = -2; m <= 2; m += 1)
2888
2897
  for (let L = -2; L <= 2; L += 1)
2889
- g == -2 || g == 2 || L == -2 || L == 2 || g == 0 && L == 0 ? t[D + g][I + L] = !0 : t[D + g][I + L] = !1;
2898
+ m == -2 || m == 2 || L == -2 || L == 2 || m == 0 && L == 0 ? t[D + m][I + L] = !0 : t[D + m][I + L] = !1;
2890
2899
  }
2891
- }, W = function(v) {
2892
- const b = ue.getBCHTypeNumber(o);
2893
- for (let m = 0; m < 18; m += 1) {
2894
- const D = !v && (b >> m & 1) == 1;
2895
- t[Math.floor(m / 3)][m % 3 + l - 8 - 3] = D;
2900
+ }, _ = function(v) {
2901
+ const b = he.getBCHTypeNumber(o);
2902
+ for (let y = 0; y < 18; y += 1) {
2903
+ const D = !v && (b >> y & 1) == 1;
2904
+ t[Math.floor(y / 3)][y % 3 + l - 8 - 3] = D;
2896
2905
  }
2897
- for (let m = 0; m < 18; m += 1) {
2898
- const D = !v && (b >> m & 1) == 1;
2899
- t[m % 3 + l - 8 - 3][Math.floor(m / 3)] = D;
2906
+ for (let y = 0; y < 18; y += 1) {
2907
+ const D = !v && (b >> y & 1) == 1;
2908
+ t[y % 3 + l - 8 - 3][Math.floor(y / 3)] = D;
2900
2909
  }
2901
2910
  }, E = function(v, b) {
2902
- const m = a << 3 | b, D = ue.getBCHTypeInfo(m);
2911
+ const y = a << 3 | b, D = he.getBCHTypeInfo(y);
2903
2912
  for (let I = 0; I < 15; I += 1) {
2904
- const g = !v && (D >> I & 1) == 1;
2905
- I < 6 ? t[I][8] = g : I < 8 ? t[I + 1][8] = g : t[l - 15 + I][8] = g;
2913
+ const m = !v && (D >> I & 1) == 1;
2914
+ I < 6 ? t[I][8] = m : I < 8 ? t[I + 1][8] = m : t[l - 15 + I][8] = m;
2906
2915
  }
2907
2916
  for (let I = 0; I < 15; I += 1) {
2908
- const g = !v && (D >> I & 1) == 1;
2909
- I < 8 ? t[8][l - I - 1] = g : I < 9 ? t[8][15 - I - 1 + 1] = g : t[8][15 - I - 1] = g;
2917
+ const m = !v && (D >> I & 1) == 1;
2918
+ I < 8 ? t[8][l - I - 1] = m : I < 9 ? t[8][15 - I - 1 + 1] = m : t[8][15 - I - 1] = m;
2910
2919
  }
2911
2920
  t[l - 8][8] = !v;
2912
2921
  }, B = function(v, b) {
2913
- let m = -1, D = l - 1, I = 7, g = 0;
2914
- const L = ue.getMaskFunction(b);
2922
+ let y = -1, D = l - 1, I = 7, m = 0;
2923
+ const L = he.getMaskFunction(b);
2915
2924
  for (let f = l - 1; f > 0; f -= 2)
2916
2925
  for (f == 6 && (f -= 1); ; ) {
2917
- for (let c = 0; c < 2; c += 1)
2918
- if (t[D][f - c] == null) {
2926
+ for (let i = 0; i < 2; i += 1)
2927
+ if (t[D][f - i] == null) {
2919
2928
  let d = !1;
2920
- g < v.length && (d = (v[g] >>> I & 1) == 1), L(D, f - c) && (d = !d), t[D][f - c] = d, I -= 1, I == -1 && (g += 1, I = 7);
2929
+ m < v.length && (d = (v[m] >>> I & 1) == 1), L(D, f - i) && (d = !d), t[D][f - i] = d, I -= 1, I == -1 && (m += 1, I = 7);
2921
2930
  }
2922
- if (D += m, D < 0 || l <= D) {
2923
- D -= m, m = -m;
2931
+ if (D += y, D < 0 || l <= D) {
2932
+ D -= y, y = -y;
2924
2933
  break;
2925
2934
  }
2926
2935
  }
2927
- }, H = function(v, b) {
2928
- let m = 0, D = 0, I = 0;
2929
- const g = new Array(b.length), L = new Array(b.length);
2930
- for (let y = 0; y < b.length; y += 1) {
2931
- const h = b[y].dataCount, T = b[y].totalCount - h;
2932
- D = Math.max(D, h), I = Math.max(I, T), g[y] = new Array(h);
2933
- for (let O = 0; O < g[y].length; O += 1)
2934
- g[y][O] = 255 & v.getBuffer()[O + m];
2935
- m += h;
2936
- const N = ue.getErrorCorrectPolynomial(T), X = ke(g[y], N.getLength() - 1).mod(N);
2937
- L[y] = new Array(N.getLength() - 1);
2938
- for (let O = 0; O < L[y].length; O += 1) {
2939
- const Q = O + X.getLength() - L[y].length;
2940
- L[y][O] = Q >= 0 ? X.getAt(Q) : 0;
2936
+ }, N = function(v, b) {
2937
+ let y = 0, D = 0, I = 0;
2938
+ const m = new Array(b.length), L = new Array(b.length);
2939
+ for (let g = 0; g < b.length; g += 1) {
2940
+ const h = b[g].dataCount, T = b[g].totalCount - h;
2941
+ D = Math.max(D, h), I = Math.max(I, T), m[g] = new Array(h);
2942
+ for (let ee = 0; ee < m[g].length; ee += 1)
2943
+ m[g][ee] = 255 & v.getBuffer()[ee + y];
2944
+ y += h;
2945
+ const H = he.getErrorCorrectPolynomial(T), W = we(m[g], H.getLength() - 1).mod(H);
2946
+ L[g] = new Array(H.getLength() - 1);
2947
+ for (let ee = 0; ee < L[g].length; ee += 1) {
2948
+ const ae = ee + W.getLength() - L[g].length;
2949
+ L[g][ee] = ae >= 0 ? W.getAt(ae) : 0;
2941
2950
  }
2942
2951
  }
2943
2952
  let f = 0;
2944
- for (let y = 0; y < b.length; y += 1)
2945
- f += b[y].totalCount;
2946
- const c = new Array(f);
2953
+ for (let g = 0; g < b.length; g += 1)
2954
+ f += b[g].totalCount;
2955
+ const i = new Array(f);
2947
2956
  let d = 0;
2948
- for (let y = 0; y < D; y += 1)
2957
+ for (let g = 0; g < D; g += 1)
2949
2958
  for (let h = 0; h < b.length; h += 1)
2950
- y < g[h].length && (c[d] = g[h][y], d += 1);
2951
- for (let y = 0; y < I; y += 1)
2959
+ g < m[h].length && (i[d] = m[h][g], d += 1);
2960
+ for (let g = 0; g < I; g += 1)
2952
2961
  for (let h = 0; h < b.length; h += 1)
2953
- y < L[h].length && (c[d] = L[h][y], d += 1);
2954
- return c;
2955
- }, K = function(v, b, m) {
2962
+ g < L[h].length && (i[d] = L[h][g], d += 1);
2963
+ return i;
2964
+ }, K = function(v, b, y) {
2956
2965
  const D = Te.getRSBlocks(v, b), I = Be();
2957
- for (let L = 0; L < m.length; L += 1) {
2958
- const f = m[L];
2959
- I.put(f.getMode(), 4), I.put(f.getLength(), ue.getLengthInBits(f.getMode(), v)), f.write(I);
2966
+ for (let L = 0; L < y.length; L += 1) {
2967
+ const f = y[L];
2968
+ I.put(f.getMode(), 4), I.put(f.getLength(), he.getLengthInBits(f.getMode(), v)), f.write(I);
2960
2969
  }
2961
- let g = 0;
2970
+ let m = 0;
2962
2971
  for (let L = 0; L < D.length; L += 1)
2963
- g += D[L].dataCount;
2964
- if (I.getLengthInBits() > g * 8)
2965
- throw "code length overflow. (" + I.getLengthInBits() + ">" + g * 8 + ")";
2966
- for (I.getLengthInBits() + 4 <= g * 8 && I.put(0, 4); I.getLengthInBits() % 8 != 0; )
2972
+ m += D[L].dataCount;
2973
+ if (I.getLengthInBits() > m * 8)
2974
+ throw "code length overflow. (" + I.getLengthInBits() + ">" + m * 8 + ")";
2975
+ for (I.getLengthInBits() + 4 <= m * 8 && I.put(0, 4); I.getLengthInBits() % 8 != 0; )
2967
2976
  I.putBit(!1);
2968
- for (; !(I.getLengthInBits() >= g * 8 || (I.put(236, 8), I.getLengthInBits() >= g * 8)); )
2977
+ for (; !(I.getLengthInBits() >= m * 8 || (I.put(236, 8), I.getLengthInBits() >= m * 8)); )
2969
2978
  I.put(17, 8);
2970
- return H(I, D);
2979
+ return N(I, D);
2971
2980
  };
2972
2981
  k.addData = function(v, b) {
2973
2982
  b = b || "Byte";
2974
- let m = null;
2983
+ let y = null;
2975
2984
  switch (b) {
2976
2985
  case "Numeric":
2977
- m = Xt(v);
2986
+ y = Xt(v);
2978
2987
  break;
2979
2988
  case "Alphanumeric":
2980
- m = Qt(v);
2989
+ y = Qt(v);
2981
2990
  break;
2982
2991
  case "Byte":
2983
- m = Ut(v);
2992
+ y = Ut(v);
2984
2993
  break;
2985
2994
  case "Kanji":
2986
- m = Ft(v);
2995
+ y = Ft(v);
2987
2996
  break;
2988
2997
  default:
2989
2998
  throw "mode:" + b;
2990
2999
  }
2991
- z.push(m), i = null;
3000
+ z.push(y), c = null;
2992
3001
  }, k.isDark = function(v, b) {
2993
3002
  if (v < 0 || l <= v || b < 0 || l <= b)
2994
3003
  throw v + "," + b;
@@ -2999,15 +3008,15 @@ const sn = /* @__PURE__ */ Z({
2999
3008
  if (o < 1) {
3000
3009
  let v = 1;
3001
3010
  for (; v < 40; v++) {
3002
- const b = Te.getRSBlocks(v, a), m = Be();
3011
+ const b = Te.getRSBlocks(v, a), y = Be();
3003
3012
  for (let I = 0; I < z.length; I++) {
3004
- const g = z[I];
3005
- m.put(g.getMode(), 4), m.put(g.getLength(), ue.getLengthInBits(g.getMode(), v)), g.write(m);
3013
+ const m = z[I];
3014
+ y.put(m.getMode(), 4), y.put(m.getLength(), he.getLengthInBits(m.getMode(), v)), m.write(y);
3006
3015
  }
3007
3016
  let D = 0;
3008
3017
  for (let I = 0; I < b.length; I++)
3009
3018
  D += b[I].dataCount;
3010
- if (m.getLengthInBits() <= D * 8)
3019
+ if (y.getLengthInBits() <= D * 8)
3011
3020
  break;
3012
3021
  }
3013
3022
  o = v;
@@ -3015,44 +3024,44 @@ const sn = /* @__PURE__ */ Z({
3015
3024
  x(!1, S());
3016
3025
  }, k.createTableTag = function(v, b) {
3017
3026
  v = v || 2, b = typeof b > "u" ? v * 4 : b;
3018
- let m = "";
3019
- m += '<table style="', m += " border-width: 0px; border-style: none;", m += " border-collapse: collapse;", m += " padding: 0px; margin: " + b + "px;", m += '">', m += "<tbody>";
3027
+ let y = "";
3028
+ y += '<table style="', y += " border-width: 0px; border-style: none;", y += " border-collapse: collapse;", y += " padding: 0px; margin: " + b + "px;", y += '">', y += "<tbody>";
3020
3029
  for (let D = 0; D < k.getModuleCount(); D += 1) {
3021
- m += "<tr>";
3030
+ y += "<tr>";
3022
3031
  for (let I = 0; I < k.getModuleCount(); I += 1)
3023
- m += '<td style="', m += " border-width: 0px; border-style: none;", m += " border-collapse: collapse;", m += " padding: 0px; margin: 0px;", m += " width: " + v + "px;", m += " height: " + v + "px;", m += " background-color: ", m += k.isDark(D, I) ? "#000000" : "#ffffff", m += ";", m += '"/>';
3024
- m += "</tr>";
3032
+ y += '<td style="', y += " border-width: 0px; border-style: none;", y += " border-collapse: collapse;", y += " padding: 0px; margin: 0px;", y += " width: " + v + "px;", y += " height: " + v + "px;", y += " background-color: ", y += k.isDark(D, I) ? "#000000" : "#ffffff", y += ";", y += '"/>';
3033
+ y += "</tr>";
3025
3034
  }
3026
- return m += "</tbody>", m += "</table>", m;
3027
- }, k.createSvgTag = function(v, b, m, D) {
3035
+ return y += "</tbody>", y += "</table>", y;
3036
+ }, k.createSvgTag = function(v, b, y, D) {
3028
3037
  let I = {};
3029
- typeof arguments[0] == "object" && (I = arguments[0], v = I.cellSize, b = I.margin, m = I.alt, D = I.title), v = v || 2, b = typeof b > "u" ? v * 4 : b, m = typeof m == "string" ? { text: m } : m || {}, m.text = m.text || null, m.id = m.text ? m.id || "qrcode-description" : null, D = typeof D == "string" ? { text: D } : D || {}, D.text = D.text || null, D.id = D.text ? D.id || "qrcode-title" : null;
3030
- const g = k.getModuleCount() * v + b * 2;
3031
- let L, f, c, d, y = "", h;
3032
- for (h = "l" + v + ",0 0," + v + " -" + v + ",0 0,-" + v + "z ", y += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', y += I.scalable ? "" : ' width="' + g + 'px" height="' + g + 'px"', y += ' viewBox="0 0 ' + g + " " + g + '" ', y += ' preserveAspectRatio="xMinYMin meet"', y += D.text || m.text ? ' role="img" aria-labelledby="' + Y([D.id, m.id].join(" ").trim()) + '"' : "", y += ">", y += D.text ? '<title id="' + Y(D.id) + '">' + Y(D.text) + "</title>" : "", y += m.text ? '<description id="' + Y(m.id) + '">' + Y(m.text) + "</description>" : "", y += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', y += '<path d="', c = 0; c < k.getModuleCount(); c += 1)
3033
- for (d = c * v + b, L = 0; L < k.getModuleCount(); L += 1)
3034
- k.isDark(c, L) && (f = L * v + b, y += "M" + f + "," + d + h);
3035
- return y += '" stroke="transparent" fill="black"/>', y += "</svg>", y;
3038
+ typeof arguments[0] == "object" && (I = arguments[0], v = I.cellSize, b = I.margin, y = I.alt, D = I.title), v = v || 2, b = typeof b > "u" ? v * 4 : b, y = typeof y == "string" ? { text: y } : y || {}, y.text = y.text || null, y.id = y.text ? y.id || "qrcode-description" : null, D = typeof D == "string" ? { text: D } : D || {}, D.text = D.text || null, D.id = D.text ? D.id || "qrcode-title" : null;
3039
+ const m = k.getModuleCount() * v + b * 2;
3040
+ let L, f, i, d, g = "", h;
3041
+ for (h = "l" + v + ",0 0," + v + " -" + v + ",0 0,-" + v + "z ", g += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', g += I.scalable ? "" : ' width="' + m + 'px" height="' + m + 'px"', g += ' viewBox="0 0 ' + m + " " + m + '" ', g += ' preserveAspectRatio="xMinYMin meet"', g += D.text || y.text ? ' role="img" aria-labelledby="' + Y([D.id, y.id].join(" ").trim()) + '"' : "", g += ">", g += D.text ? '<title id="' + Y(D.id) + '">' + Y(D.text) + "</title>" : "", g += y.text ? '<description id="' + Y(y.id) + '">' + Y(y.text) + "</description>" : "", g += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', g += '<path d="', i = 0; i < k.getModuleCount(); i += 1)
3042
+ for (d = i * v + b, L = 0; L < k.getModuleCount(); L += 1)
3043
+ k.isDark(i, L) && (f = L * v + b, g += "M" + f + "," + d + h);
3044
+ return g += '" stroke="transparent" fill="black"/>', g += "</svg>", g;
3036
3045
  }, k.createDataURL = function(v, b) {
3037
3046
  v = v || 2, b = typeof b > "u" ? v * 4 : b;
3038
- const m = k.getModuleCount() * v + b * 2, D = b, I = m - b;
3039
- return qt(m, m, function(g, L) {
3040
- if (D <= g && g < I && D <= L && L < I) {
3041
- const f = Math.floor((g - D) / v), c = Math.floor((L - D) / v);
3042
- return k.isDark(c, f) ? 0 : 1;
3047
+ const y = k.getModuleCount() * v + b * 2, D = b, I = y - b;
3048
+ return qt(y, y, function(m, L) {
3049
+ if (D <= m && m < I && D <= L && L < I) {
3050
+ const f = Math.floor((m - D) / v), i = Math.floor((L - D) / v);
3051
+ return k.isDark(i, f) ? 0 : 1;
3043
3052
  } else
3044
3053
  return 1;
3045
3054
  });
3046
- }, k.createImgTag = function(v, b, m) {
3055
+ }, k.createImgTag = function(v, b, y) {
3047
3056
  v = v || 2, b = typeof b > "u" ? v * 4 : b;
3048
3057
  const D = k.getModuleCount() * v + b * 2;
3049
3058
  let I = "";
3050
- return I += "<img", I += ' src="', I += k.createDataURL(v, b), I += '"', I += ' width="', I += D, I += '"', I += ' height="', I += D, I += '"', m && (I += ' alt="', I += Y(m), I += '"'), I += "/>", I;
3059
+ return I += "<img", I += ' src="', I += k.createDataURL(v, b), I += '"', I += ' width="', I += D, I += '"', I += ' height="', I += D, I += '"', y && (I += ' alt="', I += Y(y), I += '"'), I += "/>", I;
3051
3060
  };
3052
3061
  const Y = function(v) {
3053
3062
  let b = "";
3054
- for (let m = 0; m < v.length; m += 1) {
3055
- const D = v.charAt(m);
3063
+ for (let y = 0; y < v.length; y += 1) {
3064
+ const D = v.charAt(y);
3056
3065
  switch (D) {
3057
3066
  case "<":
3058
3067
  b += "&lt;";
@@ -3072,11 +3081,11 @@ const sn = /* @__PURE__ */ Z({
3072
3081
  }
3073
3082
  }
3074
3083
  return b;
3075
- }, ee = function(v) {
3084
+ }, q = function(v) {
3076
3085
  v = typeof v > "u" ? 1 * 2 : v;
3077
- const m = k.getModuleCount() * 1 + v * 2, D = v, I = m - v;
3078
- let g, L, f, c, d;
3079
- const y = {
3086
+ const y = k.getModuleCount() * 1 + v * 2, D = v, I = y - v;
3087
+ let m, L, f, i, d;
3088
+ const g = {
3080
3089
  "██": "█",
3081
3090
  "█ ": "▀",
3082
3091
  " █": "▄",
@@ -3088,25 +3097,25 @@ const sn = /* @__PURE__ */ Z({
3088
3097
  " ": " "
3089
3098
  };
3090
3099
  let T = "";
3091
- for (g = 0; g < m; g += 2) {
3092
- for (f = Math.floor((g - D) / 1), c = Math.floor((g + 1 - D) / 1), L = 0; L < m; L += 1)
3093
- d = "█", D <= L && L < I && D <= g && g < I && k.isDark(f, Math.floor((L - D) / 1)) && (d = " "), D <= L && L < I && D <= g + 1 && g + 1 < I && k.isDark(c, Math.floor((L - D) / 1)) ? d += " " : d += "█", T += v < 1 && g + 1 >= I ? h[d] : y[d];
3100
+ for (m = 0; m < y; m += 2) {
3101
+ for (f = Math.floor((m - D) / 1), i = Math.floor((m + 1 - D) / 1), L = 0; L < y; L += 1)
3102
+ d = "█", D <= L && L < I && D <= m && m < I && k.isDark(f, Math.floor((L - D) / 1)) && (d = " "), D <= L && L < I && D <= m + 1 && m + 1 < I && k.isDark(i, Math.floor((L - D) / 1)) ? d += " " : d += "█", T += v < 1 && m + 1 >= I ? h[d] : g[d];
3094
3103
  T += `
3095
3104
  `;
3096
3105
  }
3097
- return m % 2 && v > 0 ? T.substring(0, T.length - m - 1) + Array(m + 1).join("▀") : T.substring(0, T.length - 1);
3106
+ return y % 2 && v > 0 ? T.substring(0, T.length - y - 1) + Array(y + 1).join("▀") : T.substring(0, T.length - 1);
3098
3107
  };
3099
3108
  return k.createASCII = function(v, b) {
3100
3109
  if (v = v || 1, v < 2)
3101
- return ee(b);
3110
+ return q(b);
3102
3111
  v -= 1, b = typeof b > "u" ? v * 2 : b;
3103
- const m = k.getModuleCount() * v + b * 2, D = b, I = m - b;
3104
- let g, L, f, c;
3105
- const d = Array(v + 1).join("██"), y = Array(v + 1).join(" ");
3112
+ const y = k.getModuleCount() * v + b * 2, D = b, I = y - b;
3113
+ let m, L, f, i;
3114
+ const d = Array(v + 1).join("██"), g = Array(v + 1).join(" ");
3106
3115
  let h = "", T = "";
3107
- for (g = 0; g < m; g += 1) {
3108
- for (f = Math.floor((g - D) / v), T = "", L = 0; L < m; L += 1)
3109
- c = 1, D <= L && L < I && D <= g && g < I && k.isDark(f, Math.floor((L - D) / v)) && (c = 0), T += c ? d : y;
3116
+ for (m = 0; m < y; m += 1) {
3117
+ for (f = Math.floor((m - D) / v), T = "", L = 0; L < y; L += 1)
3118
+ i = 1, D <= L && L < I && D <= m && m < I && k.isDark(f, Math.floor((L - D) / v)) && (i = 0), T += i ? d : g;
3110
3119
  for (f = 0; f < v; f += 1)
3111
3120
  h += T + `
3112
3121
  `;
@@ -3114,13 +3123,13 @@ const sn = /* @__PURE__ */ Z({
3114
3123
  return h.substring(0, h.length - 1);
3115
3124
  }, k.renderTo2dContext = function(v, b) {
3116
3125
  b = b || 2;
3117
- const m = k.getModuleCount();
3118
- for (let D = 0; D < m; D++)
3119
- for (let I = 0; I < m; I++)
3126
+ const y = k.getModuleCount();
3127
+ for (let D = 0; D < y; D++)
3128
+ for (let I = 0; I < y; I++)
3120
3129
  v.fillStyle = k.isDark(D, I) ? "black" : "white", v.fillRect(I * b, D * b, b, b);
3121
3130
  }, k;
3122
3131
  };
3123
- fe.stringToBytes = function(s) {
3132
+ ge.stringToBytes = function(s) {
3124
3133
  const r = [];
3125
3134
  for (let n = 0; n < s.length; n += 1) {
3126
3135
  const e = s.charCodeAt(n);
@@ -3128,19 +3137,19 @@ fe.stringToBytes = function(s) {
3128
3137
  }
3129
3138
  return r;
3130
3139
  };
3131
- fe.createStringToBytes = function(s, r) {
3140
+ ge.createStringToBytes = function(s, r) {
3132
3141
  const n = function() {
3133
3142
  const o = Zt(s), a = function() {
3134
- const i = o.read();
3135
- if (i == -1) throw "eof";
3136
- return i;
3143
+ const c = o.read();
3144
+ if (c == -1) throw "eof";
3145
+ return c;
3137
3146
  };
3138
3147
  let t = 0;
3139
3148
  const l = {};
3140
3149
  for (; ; ) {
3141
- const i = o.read();
3142
- if (i == -1) break;
3143
- const z = a(), k = a(), x = a(), C = String.fromCharCode(i << 8 | z), S = k << 8 | x;
3150
+ const c = o.read();
3151
+ if (c == -1) break;
3152
+ const z = a(), k = a(), x = a(), C = String.fromCharCode(c << 8 | z), S = k << 8 | x;
3144
3153
  l[C] = S, t += 1;
3145
3154
  }
3146
3155
  if (t != r)
@@ -3154,24 +3163,24 @@ fe.createStringToBytes = function(s, r) {
3154
3163
  if (l < 128)
3155
3164
  a.push(l);
3156
3165
  else {
3157
- const i = n[o.charAt(t)];
3158
- typeof i == "number" ? (i & 255) == i ? a.push(i) : (a.push(i >>> 8), a.push(i & 255)) : a.push(e);
3166
+ const c = n[o.charAt(t)];
3167
+ typeof c == "number" ? (c & 255) == c ? a.push(c) : (a.push(c >>> 8), a.push(c & 255)) : a.push(e);
3159
3168
  }
3160
3169
  }
3161
3170
  return a;
3162
3171
  };
3163
3172
  };
3164
- const oe = {
3173
+ const ie = {
3165
3174
  MODE_NUMBER: 1,
3166
3175
  MODE_ALPHA_NUM: 2,
3167
3176
  MODE_8BIT_BYTE: 4,
3168
3177
  MODE_KANJI: 8
3169
- }, Me = {
3178
+ }, ke = {
3170
3179
  L: 1,
3171
3180
  M: 0,
3172
3181
  Q: 3,
3173
3182
  H: 2
3174
- }, ce = {
3183
+ }, de = {
3175
3184
  PATTERN000: 0,
3176
3185
  PATTERN001: 1,
3177
3186
  PATTERN010: 2,
@@ -3180,7 +3189,7 @@ const oe = {
3180
3189
  PATTERN101: 5,
3181
3190
  PATTERN110: 6,
3182
3191
  PATTERN111: 7
3183
- }, ue = function() {
3192
+ }, he = function() {
3184
3193
  const s = [
3185
3194
  [],
3186
3195
  [6, 18],
@@ -3242,82 +3251,82 @@ const oe = {
3242
3251
  return s[t - 1];
3243
3252
  }, o.getMaskFunction = function(t) {
3244
3253
  switch (t) {
3245
- case ce.PATTERN000:
3246
- return function(l, i) {
3247
- return (l + i) % 2 == 0;
3254
+ case de.PATTERN000:
3255
+ return function(l, c) {
3256
+ return (l + c) % 2 == 0;
3248
3257
  };
3249
- case ce.PATTERN001:
3250
- return function(l, i) {
3258
+ case de.PATTERN001:
3259
+ return function(l, c) {
3251
3260
  return l % 2 == 0;
3252
3261
  };
3253
- case ce.PATTERN010:
3254
- return function(l, i) {
3255
- return i % 3 == 0;
3262
+ case de.PATTERN010:
3263
+ return function(l, c) {
3264
+ return c % 3 == 0;
3256
3265
  };
3257
- case ce.PATTERN011:
3258
- return function(l, i) {
3259
- return (l + i) % 3 == 0;
3266
+ case de.PATTERN011:
3267
+ return function(l, c) {
3268
+ return (l + c) % 3 == 0;
3260
3269
  };
3261
- case ce.PATTERN100:
3262
- return function(l, i) {
3263
- return (Math.floor(l / 2) + Math.floor(i / 3)) % 2 == 0;
3270
+ case de.PATTERN100:
3271
+ return function(l, c) {
3272
+ return (Math.floor(l / 2) + Math.floor(c / 3)) % 2 == 0;
3264
3273
  };
3265
- case ce.PATTERN101:
3266
- return function(l, i) {
3267
- return l * i % 2 + l * i % 3 == 0;
3274
+ case de.PATTERN101:
3275
+ return function(l, c) {
3276
+ return l * c % 2 + l * c % 3 == 0;
3268
3277
  };
3269
- case ce.PATTERN110:
3270
- return function(l, i) {
3271
- return (l * i % 2 + l * i % 3) % 2 == 0;
3278
+ case de.PATTERN110:
3279
+ return function(l, c) {
3280
+ return (l * c % 2 + l * c % 3) % 2 == 0;
3272
3281
  };
3273
- case ce.PATTERN111:
3274
- return function(l, i) {
3275
- return (l * i % 3 + (l + i) % 2) % 2 == 0;
3282
+ case de.PATTERN111:
3283
+ return function(l, c) {
3284
+ return (l * c % 3 + (l + c) % 2) % 2 == 0;
3276
3285
  };
3277
3286
  default:
3278
3287
  throw "bad maskPattern:" + t;
3279
3288
  }
3280
3289
  }, o.getErrorCorrectPolynomial = function(t) {
3281
- let l = ke([1], 0);
3282
- for (let i = 0; i < t; i += 1)
3283
- l = l.multiply(ke([1, de.gexp(i)], 0));
3290
+ let l = we([1], 0);
3291
+ for (let c = 0; c < t; c += 1)
3292
+ l = l.multiply(we([1, fe.gexp(c)], 0));
3284
3293
  return l;
3285
3294
  }, o.getLengthInBits = function(t, l) {
3286
3295
  if (1 <= l && l < 10)
3287
3296
  switch (t) {
3288
- case oe.MODE_NUMBER:
3297
+ case ie.MODE_NUMBER:
3289
3298
  return 10;
3290
- case oe.MODE_ALPHA_NUM:
3299
+ case ie.MODE_ALPHA_NUM:
3291
3300
  return 9;
3292
- case oe.MODE_8BIT_BYTE:
3301
+ case ie.MODE_8BIT_BYTE:
3293
3302
  return 8;
3294
- case oe.MODE_KANJI:
3303
+ case ie.MODE_KANJI:
3295
3304
  return 8;
3296
3305
  default:
3297
3306
  throw "mode:" + t;
3298
3307
  }
3299
3308
  else if (l < 27)
3300
3309
  switch (t) {
3301
- case oe.MODE_NUMBER:
3310
+ case ie.MODE_NUMBER:
3302
3311
  return 12;
3303
- case oe.MODE_ALPHA_NUM:
3312
+ case ie.MODE_ALPHA_NUM:
3304
3313
  return 11;
3305
- case oe.MODE_8BIT_BYTE:
3314
+ case ie.MODE_8BIT_BYTE:
3306
3315
  return 16;
3307
- case oe.MODE_KANJI:
3316
+ case ie.MODE_KANJI:
3308
3317
  return 10;
3309
3318
  default:
3310
3319
  throw "mode:" + t;
3311
3320
  }
3312
3321
  else if (l < 41)
3313
3322
  switch (t) {
3314
- case oe.MODE_NUMBER:
3323
+ case ie.MODE_NUMBER:
3315
3324
  return 14;
3316
- case oe.MODE_ALPHA_NUM:
3325
+ case ie.MODE_ALPHA_NUM:
3317
3326
  return 13;
3318
- case oe.MODE_8BIT_BYTE:
3327
+ case ie.MODE_8BIT_BYTE:
3319
3328
  return 16;
3320
- case oe.MODE_KANJI:
3329
+ case ie.MODE_KANJI:
3321
3330
  return 12;
3322
3331
  default:
3323
3332
  throw "mode:" + t;
@@ -3326,36 +3335,36 @@ const oe = {
3326
3335
  throw "type:" + l;
3327
3336
  }, o.getLostPoint = function(t) {
3328
3337
  const l = t.getModuleCount();
3329
- let i = 0;
3338
+ let c = 0;
3330
3339
  for (let x = 0; x < l; x += 1)
3331
3340
  for (let C = 0; C < l; C += 1) {
3332
3341
  let S = 0;
3333
- const P = t.isDark(x, C);
3342
+ const R = t.isDark(x, C);
3334
3343
  for (let V = -1; V <= 1; V += 1)
3335
3344
  if (!(x + V < 0 || l <= x + V))
3336
- for (let W = -1; W <= 1; W += 1)
3337
- C + W < 0 || l <= C + W || V == 0 && W == 0 || P == t.isDark(x + V, C + W) && (S += 1);
3338
- S > 5 && (i += 3 + S - 5);
3345
+ for (let _ = -1; _ <= 1; _ += 1)
3346
+ C + _ < 0 || l <= C + _ || V == 0 && _ == 0 || R == t.isDark(x + V, C + _) && (S += 1);
3347
+ S > 5 && (c += 3 + S - 5);
3339
3348
  }
3340
3349
  for (let x = 0; x < l - 1; x += 1)
3341
3350
  for (let C = 0; C < l - 1; C += 1) {
3342
3351
  let S = 0;
3343
- t.isDark(x, C) && (S += 1), t.isDark(x + 1, C) && (S += 1), t.isDark(x, C + 1) && (S += 1), t.isDark(x + 1, C + 1) && (S += 1), (S == 0 || S == 4) && (i += 3);
3352
+ t.isDark(x, C) && (S += 1), t.isDark(x + 1, C) && (S += 1), t.isDark(x, C + 1) && (S += 1), t.isDark(x + 1, C + 1) && (S += 1), (S == 0 || S == 4) && (c += 3);
3344
3353
  }
3345
3354
  for (let x = 0; x < l; x += 1)
3346
3355
  for (let C = 0; C < l - 6; C += 1)
3347
- t.isDark(x, C) && !t.isDark(x, C + 1) && t.isDark(x, C + 2) && t.isDark(x, C + 3) && t.isDark(x, C + 4) && !t.isDark(x, C + 5) && t.isDark(x, C + 6) && (i += 40);
3356
+ t.isDark(x, C) && !t.isDark(x, C + 1) && t.isDark(x, C + 2) && t.isDark(x, C + 3) && t.isDark(x, C + 4) && !t.isDark(x, C + 5) && t.isDark(x, C + 6) && (c += 40);
3348
3357
  for (let x = 0; x < l; x += 1)
3349
3358
  for (let C = 0; C < l - 6; C += 1)
3350
- t.isDark(C, x) && !t.isDark(C + 1, x) && t.isDark(C + 2, x) && t.isDark(C + 3, x) && t.isDark(C + 4, x) && !t.isDark(C + 5, x) && t.isDark(C + 6, x) && (i += 40);
3359
+ t.isDark(C, x) && !t.isDark(C + 1, x) && t.isDark(C + 2, x) && t.isDark(C + 3, x) && t.isDark(C + 4, x) && !t.isDark(C + 5, x) && t.isDark(C + 6, x) && (c += 40);
3351
3360
  let z = 0;
3352
3361
  for (let x = 0; x < l; x += 1)
3353
3362
  for (let C = 0; C < l; C += 1)
3354
3363
  t.isDark(C, x) && (z += 1);
3355
3364
  const k = Math.abs(100 * z / l / l - 50) / 5;
3356
- return i += k * 10, i;
3365
+ return c += k * 10, c;
3357
3366
  }, o;
3358
- }(), de = function() {
3367
+ }(), fe = function() {
3359
3368
  const s = new Array(256), r = new Array(256);
3360
3369
  for (let e = 0; e < 8; e += 1)
3361
3370
  s[e] = 1 << e;
@@ -3375,7 +3384,7 @@ const oe = {
3375
3384
  e -= 255;
3376
3385
  return s[e];
3377
3386
  }, n;
3378
- }(), ke = function(s, r) {
3387
+ }(), we = function(s, r) {
3379
3388
  if (typeof s.length > "u")
3380
3389
  throw s.length + "/" + r;
3381
3390
  const n = function() {
@@ -3395,17 +3404,17 @@ const oe = {
3395
3404
  const a = new Array(e.getLength() + o.getLength() - 1);
3396
3405
  for (let t = 0; t < e.getLength(); t += 1)
3397
3406
  for (let l = 0; l < o.getLength(); l += 1)
3398
- a[t + l] ^= de.gexp(de.glog(e.getAt(t)) + de.glog(o.getAt(l)));
3399
- return ke(a, 0);
3407
+ a[t + l] ^= fe.gexp(fe.glog(e.getAt(t)) + fe.glog(o.getAt(l)));
3408
+ return we(a, 0);
3400
3409
  }, e.mod = function(o) {
3401
3410
  if (e.getLength() - o.getLength() < 0)
3402
3411
  return e;
3403
- const a = de.glog(e.getAt(0)) - de.glog(o.getAt(0)), t = new Array(e.getLength());
3412
+ const a = fe.glog(e.getAt(0)) - fe.glog(o.getAt(0)), t = new Array(e.getLength());
3404
3413
  for (let l = 0; l < e.getLength(); l += 1)
3405
3414
  t[l] = e.getAt(l);
3406
3415
  for (let l = 0; l < o.getLength(); l += 1)
3407
- t[l] ^= de.gexp(de.glog(o.getAt(l)) + a);
3408
- return ke(t, 0).mod(o);
3416
+ t[l] ^= fe.gexp(fe.glog(o.getAt(l)) + a);
3417
+ return we(t, 0).mod(o);
3409
3418
  }, e;
3410
3419
  }, Te = function() {
3411
3420
  const s = [
@@ -3618,13 +3627,13 @@ const oe = {
3618
3627
  return t.totalCount = o, t.dataCount = a, t;
3619
3628
  }, n = {}, e = function(o, a) {
3620
3629
  switch (a) {
3621
- case Me.L:
3630
+ case ke.L:
3622
3631
  return s[(o - 1) * 4 + 0];
3623
- case Me.M:
3632
+ case ke.M:
3624
3633
  return s[(o - 1) * 4 + 1];
3625
- case Me.Q:
3634
+ case ke.Q:
3626
3635
  return s[(o - 1) * 4 + 2];
3627
- case Me.H:
3636
+ case ke.H:
3628
3637
  return s[(o - 1) * 4 + 3];
3629
3638
  default:
3630
3639
  return;
@@ -3634,13 +3643,13 @@ const oe = {
3634
3643
  const t = e(o, a);
3635
3644
  if (typeof t > "u")
3636
3645
  throw "bad rs block @ typeNumber:" + o + "/errorCorrectionLevel:" + a;
3637
- const l = t.length / 3, i = [];
3646
+ const l = t.length / 3, c = [];
3638
3647
  for (let z = 0; z < l; z += 1) {
3639
3648
  const k = t[z * 3 + 0], x = t[z * 3 + 1], C = t[z * 3 + 2];
3640
3649
  for (let S = 0; S < k; S += 1)
3641
- i.push(r(x, C));
3650
+ c.push(r(x, C));
3642
3651
  }
3643
- return i;
3652
+ return c;
3644
3653
  }, n;
3645
3654
  }(), Be = function() {
3646
3655
  const s = [];
@@ -3661,22 +3670,22 @@ const oe = {
3661
3670
  s.length <= o && s.push(0), e && (s[o] |= 128 >>> r % 8), r += 1;
3662
3671
  }, n;
3663
3672
  }, Xt = function(s) {
3664
- const r = oe.MODE_NUMBER, n = s, e = {};
3673
+ const r = ie.MODE_NUMBER, n = s, e = {};
3665
3674
  e.getMode = function() {
3666
3675
  return r;
3667
3676
  }, e.getLength = function(t) {
3668
3677
  return n.length;
3669
3678
  }, e.write = function(t) {
3670
3679
  const l = n;
3671
- let i = 0;
3672
- for (; i + 2 < l.length; )
3673
- t.put(o(l.substring(i, i + 3)), 10), i += 3;
3674
- i < l.length && (l.length - i == 1 ? t.put(o(l.substring(i, i + 1)), 4) : l.length - i == 2 && t.put(o(l.substring(i, i + 2)), 7));
3680
+ let c = 0;
3681
+ for (; c + 2 < l.length; )
3682
+ t.put(o(l.substring(c, c + 3)), 10), c += 3;
3683
+ c < l.length && (l.length - c == 1 ? t.put(o(l.substring(c, c + 1)), 4) : l.length - c == 2 && t.put(o(l.substring(c, c + 2)), 7));
3675
3684
  };
3676
3685
  const o = function(t) {
3677
3686
  let l = 0;
3678
- for (let i = 0; i < t.length; i += 1)
3679
- l = l * 10 + a(t.charAt(i));
3687
+ for (let c = 0; c < t.length; c += 1)
3688
+ l = l * 10 + a(t.charAt(c));
3680
3689
  return l;
3681
3690
  }, a = function(t) {
3682
3691
  if ("0" <= t && t <= "9")
@@ -3685,7 +3694,7 @@ const oe = {
3685
3694
  };
3686
3695
  return e;
3687
3696
  }, Qt = function(s) {
3688
- const r = oe.MODE_ALPHA_NUM, n = s, e = {};
3697
+ const r = ie.MODE_ALPHA_NUM, n = s, e = {};
3689
3698
  e.getMode = function() {
3690
3699
  return r;
3691
3700
  }, e.getLength = function(a) {
@@ -3730,7 +3739,7 @@ const oe = {
3730
3739
  };
3731
3740
  return e;
3732
3741
  }, Ut = function(s) {
3733
- const r = oe.MODE_8BIT_BYTE, n = fe.stringToBytes(s), e = {};
3742
+ const r = ie.MODE_8BIT_BYTE, n = ge.stringToBytes(s), e = {};
3734
3743
  return e.getMode = function() {
3735
3744
  return r;
3736
3745
  }, e.getLength = function(o) {
@@ -3740,7 +3749,7 @@ const oe = {
3740
3749
  o.put(n[a], 8);
3741
3750
  }, e;
3742
3751
  }, Ft = function(s) {
3743
- const r = oe.MODE_KANJI, n = fe.stringToBytes;
3752
+ const r = ie.MODE_KANJI, n = ge.stringToBytes;
3744
3753
  (function(a, t) {
3745
3754
  const l = n(a);
3746
3755
  if (l.length != 2 || (l[0] << 8 | l[1]) != t)
@@ -3755,14 +3764,14 @@ const oe = {
3755
3764
  const t = e;
3756
3765
  let l = 0;
3757
3766
  for (; l + 1 < t.length; ) {
3758
- let i = (255 & t[l]) << 8 | 255 & t[l + 1];
3759
- if (33088 <= i && i <= 40956)
3760
- i -= 33088;
3761
- else if (57408 <= i && i <= 60351)
3762
- i -= 49472;
3767
+ let c = (255 & t[l]) << 8 | 255 & t[l + 1];
3768
+ if (33088 <= c && c <= 40956)
3769
+ c -= 33088;
3770
+ else if (57408 <= c && c <= 60351)
3771
+ c -= 49472;
3763
3772
  else
3764
- throw "illegal char at " + (l + 1) + "/" + i;
3765
- i = (i >>> 8 & 255) * 192 + (i & 255), a.put(i, 13), l += 2;
3773
+ throw "illegal char at " + (l + 1) + "/" + c;
3774
+ c = (c >>> 8 & 255) * 192 + (c & 255), a.put(c, 13), l += 2;
3766
3775
  }
3767
3776
  if (l < t.length)
3768
3777
  throw "illegal char at " + (l + 1);
@@ -3814,7 +3823,7 @@ const oe = {
3814
3823
  }, o.flush = function() {
3815
3824
  if (r > 0 && (a(s << 6 - r), s = 0, r = 0), n % 3 != 0) {
3816
3825
  const l = 3 - n % 3;
3817
- for (let i = 0; i < l; i += 1)
3826
+ for (let c = 0; c < l; c += 1)
3818
3827
  e += "=";
3819
3828
  }
3820
3829
  }, o.toString = function() {
@@ -3831,12 +3840,12 @@ const oe = {
3831
3840
  return -1;
3832
3841
  throw "unexpected end of file./" + o;
3833
3842
  }
3834
- const i = r.charAt(n);
3835
- if (n += 1, i == "=")
3843
+ const c = r.charAt(n);
3844
+ if (n += 1, c == "=")
3836
3845
  return o = 0, -1;
3837
- if (i.match(/^\s$/))
3846
+ if (c.match(/^\s$/))
3838
3847
  continue;
3839
- e = e << 6 | t(i.charCodeAt(0)), o += 6;
3848
+ e = e << 6 | t(c.charCodeAt(0)), o += 6;
3840
3849
  }
3841
3850
  const l = e >>> o - 8 & 255;
3842
3851
  return o -= 8, l;
@@ -3872,31 +3881,31 @@ const oe = {
3872
3881
  const k = z;
3873
3882
  let x = 0, C = 0;
3874
3883
  const S = {};
3875
- return S.write = function(P, V) {
3876
- if (P >>> V)
3884
+ return S.write = function(R, V) {
3885
+ if (R >>> V)
3877
3886
  throw "length over";
3878
3887
  for (; x + V >= 8; )
3879
- k.writeByte(255 & (P << x | C)), V -= 8 - x, P >>>= 8 - x, C = 0, x = 0;
3880
- C = P << x | C, x = x + V;
3888
+ k.writeByte(255 & (R << x | C)), V -= 8 - x, R >>>= 8 - x, C = 0, x = 0;
3889
+ C = R << x | C, x = x + V;
3881
3890
  }, S.flush = function() {
3882
3891
  x > 0 && k.writeByte(C);
3883
3892
  }, S;
3884
3893
  }, l = function(z) {
3885
3894
  const k = 1 << z, x = (1 << z) + 1;
3886
3895
  let C = z + 1;
3887
- const S = i();
3896
+ const S = c();
3888
3897
  for (let B = 0; B < k; B += 1)
3889
3898
  S.add(String.fromCharCode(B));
3890
3899
  S.add(String.fromCharCode(k)), S.add(String.fromCharCode(x));
3891
- const P = Ke(), V = t(P);
3900
+ const R = Ke(), V = t(R);
3892
3901
  V.write(k, C);
3893
- let W = 0, E = String.fromCharCode(o[W]);
3894
- for (W += 1; W < o.length; ) {
3895
- const B = String.fromCharCode(o[W]);
3896
- W += 1, S.contains(E + B) ? E = E + B : (V.write(S.indexOf(E), C), S.size() < 4095 && (S.size() == 1 << C && (C += 1), S.add(E + B)), E = B);
3902
+ let _ = 0, E = String.fromCharCode(o[_]);
3903
+ for (_ += 1; _ < o.length; ) {
3904
+ const B = String.fromCharCode(o[_]);
3905
+ _ += 1, S.contains(E + B) ? E = E + B : (V.write(S.indexOf(E), C), S.size() < 4095 && (S.size() == 1 << C && (C += 1), S.add(E + B)), E = B);
3897
3906
  }
3898
- return V.write(S.indexOf(E), C), V.write(x, C), V.flush(), P.toByteArray();
3899
- }, i = function() {
3907
+ return V.write(S.indexOf(E), C), V.write(x, C), V.flush(), R.toByteArray();
3908
+ }, c = function() {
3900
3909
  const z = {};
3901
3910
  let k = 0;
3902
3911
  const x = {};
@@ -3916,8 +3925,8 @@ const oe = {
3916
3925
  }, qt = function(s, r, n) {
3917
3926
  const e = Jt(s, r);
3918
3927
  for (let l = 0; l < r; l += 1)
3919
- for (let i = 0; i < s; i += 1)
3920
- e.setPixel(i, l, n(i, l));
3928
+ for (let c = 0; c < s; c += 1)
3929
+ e.setPixel(c, l, n(c, l));
3921
3930
  const o = Ke();
3922
3931
  e.write(o);
3923
3932
  const a = Gt(), t = o.toByteArray();
@@ -3925,7 +3934,7 @@ const oe = {
3925
3934
  a.writeByte(t[l]);
3926
3935
  return a.flush(), "data:image/gif;base64," + a;
3927
3936
  };
3928
- fe.stringToBytes;
3937
+ ge.stringToBytes;
3929
3938
  const Ce = 4, Cn = /* @__PURE__ */ Z({
3930
3939
  name: "XQRCode",
3931
3940
  __name: "index",
@@ -3939,35 +3948,35 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
3939
3948
  },
3940
3949
  emits: ["ready", "error"],
3941
3950
  setup(s, { emit: r }) {
3942
- const n = s, e = r, o = J("qrcode"), a = _();
3943
- fe.stringToBytes = (k) => Array.from(new TextEncoder().encode(k));
3951
+ const n = s, e = r, o = J("qrcode"), a = O();
3952
+ ge.stringToBytes = (k) => Array.from(new TextEncoder().encode(k));
3944
3953
  const t = (k, x) => {
3945
- const C = fe(0, x);
3954
+ const C = ge(0, x);
3946
3955
  C.addData(k), C.make();
3947
- const S = C.getModuleCount(), P = [];
3956
+ const S = C.getModuleCount(), R = [];
3948
3957
  for (let V = 0; V < S; V++) {
3949
- const W = [];
3958
+ const _ = [];
3950
3959
  for (let E = 0; E < S; E++)
3951
- W.push(C.isDark(V, E));
3952
- P.push(W);
3960
+ _.push(C.isDark(V, E));
3961
+ R.push(_);
3953
3962
  }
3954
- return P;
3963
+ return R;
3955
3964
  }, l = (k) => {
3956
3965
  if (!a.value) return;
3957
3966
  const x = a.value.getContext("2d");
3958
3967
  if (!x) return;
3959
3968
  const C = k.length, S = n.size / (C + Ce * 2);
3960
3969
  a.value.width = n.size, a.value.height = n.size, x.fillStyle = n.bgColor, x.fillRect(0, 0, n.size, n.size), x.fillStyle = n.fgColor;
3961
- const P = Math.ceil(S);
3970
+ const R = Math.ceil(S);
3962
3971
  for (let V = 0; V < C; V++)
3963
- for (let W = 0; W < C; W++)
3964
- k[V][W] && x.fillRect(
3965
- Math.round((W + Ce) * S),
3972
+ for (let _ = 0; _ < C; _++)
3973
+ k[V][_] && x.fillRect(
3974
+ Math.round((_ + Ce) * S),
3966
3975
  Math.round((V + Ce) * S),
3967
- P,
3968
- P
3976
+ R,
3977
+ R
3969
3978
  );
3970
- }, i = () => {
3979
+ }, c = () => {
3971
3980
  if (!(!a.value || !n.value))
3972
3981
  try {
3973
3982
  const k = t(n.value, n.level);
@@ -3981,9 +3990,9 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
3981
3990
  k.download = "qrcode.png", k.href = a.value.toDataURL("image/png"), k.click();
3982
3991
  };
3983
3992
  return se(() => [n.value, n.size, n.bgColor, n.fgColor, n.level], () => {
3984
- i();
3993
+ c();
3985
3994
  }), pe(() => {
3986
- i();
3995
+ c();
3987
3996
  }), (k, x) => (M(), w("div", {
3988
3997
  class: p(u(o).b())
3989
3998
  }, [
@@ -4015,19 +4024,19 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
4015
4024
  },
4016
4025
  emits: ["scroll"],
4017
4026
  setup(s, { expose: r, emit: n }) {
4018
- const e = s, o = n, a = J("virtual-scroll"), t = _(), l = _(0), i = $(() => typeof e.height == "number" ? `${e.height}px` : e.height), z = $(() => e.items.length * e.itemSize), k = $(() => {
4027
+ const e = s, o = n, a = J("virtual-scroll"), t = O(), l = O(0), c = $(() => typeof e.height == "number" ? `${e.height}px` : e.height), z = $(() => e.items.length * e.itemSize), k = $(() => {
4019
4028
  const B = typeof e.height == "number" ? e.height : parseInt(e.height) || 400;
4020
4029
  return Math.ceil(B / e.itemSize) + e.buffer * 2;
4021
4030
  }), x = $(() => {
4022
4031
  if (!e.virtual) return 0;
4023
4032
  const B = Math.floor(l.value / e.itemSize) - e.buffer;
4024
4033
  return Math.max(0, B);
4025
- }), C = $(() => e.virtual ? Math.min(e.items.length, x.value + k.value) : e.items.length), S = $(() => e.virtual ? e.items.slice(x.value, C.value).map((B, H) => ({
4034
+ }), C = $(() => e.virtual ? Math.min(e.items.length, x.value + k.value) : e.items.length), S = $(() => e.virtual ? e.items.slice(x.value, C.value).map((B, N) => ({
4026
4035
  ...B,
4027
- index: x.value + H
4028
- })) : e.items), P = $(() => x.value * e.itemSize), V = (B) => {
4029
- const H = B.target;
4030
- l.value = H.scrollTop, o("scroll", l.value);
4036
+ index: x.value + N
4037
+ })) : e.items), R = $(() => x.value * e.itemSize), V = (B) => {
4038
+ const N = B.target;
4039
+ l.value = N.scrollTop, o("scroll", l.value);
4031
4040
  };
4032
4041
  return r({
4033
4042
  scrollToIndex: (B) => {
@@ -4036,27 +4045,27 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
4036
4045
  scrollToBottom: () => {
4037
4046
  t.value && (t.value.scrollTop = z.value);
4038
4047
  }
4039
- }), (B, H) => (M(), w("div", {
4048
+ }), (B, N) => (M(), w("div", {
4040
4049
  ref_key: "containerRef",
4041
4050
  ref: t,
4042
4051
  class: p(u(a).b()),
4043
- style: F({ height: i.value }),
4052
+ style: U({ height: c.value }),
4044
4053
  onScroll: V
4045
4054
  }, [
4046
4055
  A("div", {
4047
4056
  class: p(u(a).e("wrapper")),
4048
- style: F({ height: `${z.value}px` })
4057
+ style: U({ height: `${z.value}px` })
4049
4058
  }, [
4050
4059
  A("div", {
4051
4060
  class: p(u(a).e("content")),
4052
- style: F({ transform: `translateY(${P.value}px)` })
4061
+ style: U({ transform: `translateY(${R.value}px)` })
4053
4062
  }, [
4054
- (M(!0), w(q, null, le(S.value, (K, Y) => (M(), w("div", {
4063
+ (M(!0), w(te, null, re(S.value, (K, Y) => (M(), w("div", {
4055
4064
  key: K.id ?? Y,
4056
4065
  class: p(u(a).e("item")),
4057
- style: F({ height: `${s.itemSize}px` })
4066
+ style: U({ height: `${s.itemSize}px` })
4058
4067
  }, [
4059
- G(B.$slots, "default", {
4068
+ F(B.$slots, "default", {
4060
4069
  item: K,
4061
4070
  index: K.index
4062
4071
  })
@@ -4078,9 +4087,9 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
4078
4087
  },
4079
4088
  emits: ["load"],
4080
4089
  setup(s, { emit: r }) {
4081
- const n = s, e = r, o = J("infinite-scroll"), a = _(), t = _();
4090
+ const n = s, e = r, o = J("infinite-scroll"), a = O(), t = O();
4082
4091
  let l = null;
4083
- const i = () => {
4092
+ const c = () => {
4084
4093
  l && l.disconnect(), l = new IntersectionObserver(
4085
4094
  (z) => {
4086
4095
  z[0].isIntersecting && !n.loading && !n.finished && e("load");
@@ -4091,7 +4100,7 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
4091
4100
  ), t.value && l.observe(t.value);
4092
4101
  };
4093
4102
  return pe(() => {
4094
- i(), n.immediate && !n.finished && e("load");
4103
+ c(), n.immediate && !n.finished && e("load");
4095
4104
  }), _e(() => {
4096
4105
  l && l.disconnect();
4097
4106
  }), (z, k) => (M(), w("div", {
@@ -4099,7 +4108,7 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
4099
4108
  ref: a,
4100
4109
  class: p(u(o).b())
4101
4110
  }, [
4102
- G(z.$slots, "default"),
4111
+ F(z.$slots, "default"),
4103
4112
  A("div", {
4104
4113
  ref_key: "observerRef",
4105
4114
  ref: t,
@@ -4109,15 +4118,15 @@ const Ce = 4, Cn = /* @__PURE__ */ Z({
4109
4118
  key: 0,
4110
4119
  class: p(u(o).e("loading"))
4111
4120
  }, [
4112
- ne(u(te), {
4121
+ le(u(ne), {
4113
4122
  name: "loading",
4114
4123
  size: 16
4115
4124
  }),
4116
- A("span", null, U(s.loadingText), 1)
4125
+ A("span", null, X(s.loadingText), 1)
4117
4126
  ], 2)) : s.finished ? (M(), w("span", {
4118
4127
  key: 1,
4119
4128
  class: p(u(o).e("finished"))
4120
- }, U(s.finishedText), 3)) : j("", !0)
4129
+ }, X(s.finishedText), 3)) : j("", !0)
4121
4130
  ], 2)
4122
4131
  ], 2));
4123
4132
  }
@@ -4146,7 +4155,7 @@ export {
4146
4155
  cn as Timeline,
4147
4156
  un as TimelineItem,
4148
4157
  sn as Tree,
4149
- he as TreeNode,
4158
+ ve as TreeNode,
4150
4159
  vn as TreeTable,
4151
4160
  pn as TreeTableColumn,
4152
4161
  zn as VirtualScroll